/* 文章列表页布局 */
.article-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.article-page .wrapper {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.article-page .footer {
    flex-shrink: 0;
}

/* 文章列表页样式 */
.article-page-content {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(85, 85, 85, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-3);
}

/* 搜索框样式 */
.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-box .search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--gray-4);
    border-radius: 25px;
    background: rgba(102, 102, 102, 0.3);
    color: var(--white);
    font-size: 1rem;
}

.search-box .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #ff8533;
    transform: translateY(-2px);
}

/* 文章分类样式 */
.article-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;  /* 居中显示分类 */
}

.category-item {
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(102, 102, 102, 0.3);
    border: 1px solid var(--gray-4);
    font-size: 1rem;  /* 调整字体大小 */
    min-width: 100px;  /* 设置最小宽度 */
    text-align: center;  /* 文字居中 */
    display: inline-block;  /* 确保链接正确显示 */
}

.category-item:hover,
.category-item.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* 文章列表样式 */
.article-list-full {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-item {
    background: rgba(102, 102, 102, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--gray-4);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(102, 102, 102, 0.5);
}

.article-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-meta-top .category {
    color: var(--primary);
}

.article-meta-top .date {
    color: var(--gray-4);
}

.article-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.article-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-stats {
    display: flex;
    gap: 1.5rem;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-4);
}

.read-more-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #ff8533;
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    align-items: center;
}

.pagination a,
.pagination .pageinfo {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(102, 102, 102, 0.3);
}

.pagination .pageinfo {
    background: none;
    color: var(--gray-4);
}

.pagination .pageinfo strong {
    color: var(--primary);
    margin: 0 0.3rem;
}

.pagination a:hover:not(.nopage),
.pagination .curpage {
    background: var(--primary);
    transform: translateY(-2px);
}

.pagination .nopage {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .homepage,
.pagination .endpage {
    font-weight: 500;
}

.pagination .listpage {
    min-width: 2.5rem;
    text-align: center;
}

/* 文章详情页样式 */
.article-detail {
    padding: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(85, 85, 85, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-3);
    position: relative;
    z-index: 1;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-4);
}

.article-header h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    justify-content: flex-start;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta .category {
    color: var(--primary);
}

/* 文章内容容器 */
.article-content-wrapper {
    width: 100%;
    min-width: 0;
}

/* 导读区域样式 */
.article-guide {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.article-guide h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-guide .guide-content {
    color: var(--white);
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* 文章内容样式 */
.article-content {
    color: var(--white);
    line-height: 1.8;
    width: 100%;
    overflow-wrap: break-word;
}

/* 文章内容图片样式 */
.article-content img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* 图片容器样式 */
.article-content p[style*="text-align: center"] {
    text-align: center;
    margin: 2rem 0;
}

/* 图片标题样式 */
.article-content img[title]:after {
    content: attr(title);
    display: block;
    text-align: center;
    color: var(--gray-4);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.article-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    text-align: left;
    font-size: 1.5rem;
}

.article-content h3 {
    color: var(--white);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.article-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* 文章导航样式 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-4);
}

.nav-item {
    flex: 1;
    padding: 1rem;
    background: rgba(102, 102, 102, 0.3);
    border: 1px solid var(--gray-4);
    border-radius: 8px;
    transition: all 0.3s ease;
    max-width: 48%;
    text-align: center;
}

.nav-item:hover {
    background: rgba(102, 102, 102, 0.5);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.nav-label {
    display: block;
    color: var(--gray-4);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 链接样式 */
.nav-title a,
.nav-title {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-title a:hover,
.nav-item:hover .nav-title {
    color: #ff8533;
}

/* 相关推荐部分调整 */
.related-section {
    margin-top: 1rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 相关推荐样式 */
.related-articles {
    padding: 2rem;
    background: rgba(102, 102, 102, 0.3);
    border-radius: 10px;
    border: 1px solid var(--gray-4);
}

.related-articles h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-item {
    padding: 1.2rem;
    background: rgba(85, 85, 85, 0.5);
    border-radius: 8px;
    border: 1px solid var(--gray-3);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(85, 85, 85, 0.7);
}

.related-item h4 {
    margin-bottom: 1rem;
}

.related-item h4 a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.related-item h4 a:hover {
    color: var(--primary);
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 搜索页布局 */
.search-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 搜索页粒子背景样式 */
.search-page .particle-bg,
.article-page .particle-bg,
.article-detail-page .particle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.search-page .particle-bg .bg,
.article-page .particle-bg .bg,
.article-detail-page .particle-bg .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #838383, #301300);
    opacity: 1;
    z-index: 1;
}

.search-page .particle-bg canvas,
.article-page .particle-bg canvas,
.article-detail-page .particle-bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.search-page .wrapper {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.search-page .footer {
    flex-shrink: 0;
}

/* 搜索结果页样式 */
.search-results {
    margin-top: 1rem;
    margin-bottom: 3rem;  /* 增加底部间距 */
    padding: 2rem;
    background: rgba(85, 85, 85, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-3);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.search-stats {
    margin: 1.5rem 0;
    color: var(--white);
    opacity: 0.9;
}

.search-item {
    background: rgba(102, 102, 102, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-4);
    transition: all 0.3s ease;
}

.search-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(102, 102, 102, 0.5);
}

.search-item h3 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-item h3 a:hover {
    color: var(--primary);
}

.search-desc {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
    line-height: 1.6;
}

.search-desc em {
    color: var(--primary);
    font-style: normal;
    font-weight: bold;
}

/* 面包屑导航样式 */
.breadcrumb {
    margin: 0 auto 1rem;
    max-width: 1200px;
    padding: 0.5rem 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    opacity: 0.5;
}

.breadcrumb-list a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .current {
    color: var(--primary);
}

/* 搜索结果分页样式 */
.search-results .pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-4);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-results {
        margin-bottom: 2rem;
    }
    
    .search-results .pagination {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

/* 警告提示样式 */
.warning-notice {
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    background: rgba(255, 102, 0, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .warning-notice {
        margin-top: 60px;  /* 移动端导航栏高度较小 */
        margin-bottom: 1.5rem;  /* 只设置底部间距 */
    }
}

/* 导航栏样式 */
.navbar {
    background: rgba(68, 68, 68, 0.8);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;  /* 增加z-index确保导航栏在最上层 */
    left: 0;
    transform: translateY(0);
    border-bottom: 1px solid var(--gray-3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.article-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.related-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
} 