/* style.css - 完全修正版 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-gray: #7f8c8d;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 语言切换栏 - 固定顶部 */
.language-bar {
    background-color: var(--primary-color);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 40px;
}

.language-notice {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.language-notice i {
    margin-right: 8px;
    font-size: 14px;
}

/* 语言下拉菜单 */
.compact-language-switcher {
    position: relative;
    display: inline-block;
}

.current-language {
    color: white;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.current-language:hover {
    background-color: rgba(255,255,255,0.3);
}

.current-language i {
    margin-left: 8px;
    font-size: 12px;
}

.language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 180px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.compact-language-switcher:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.language-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.language-dropdown a.active {
    background-color: var(--secondary-color);
    color: white;
}

/* 主头部导航 - 固定在语言栏下方 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    position: fixed;
    top: 40px; /* 与语言栏高度匹配 */
    left: 0;
    right: 0;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.logo span {
    color: var(--secondary-color);
}

/* 主导航菜单 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a.active {
    color: var(--secondary-color);
}

.main-nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.main-nav a i {
    margin-right: 8px;
    font-size: 14px;
}

/* 主要内容区域 - 添加顶部内边距避免被固定头部遮挡 */
.main-content {
    max-width: 1200px;
    margin: 120px auto 40px; /* 顶部留出语言栏+导航栏的空间 */
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* 页脚 - 始终保持在底部 */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto; /* 确保页脚在底部 */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-bar {
        padding: 8px 15px;
        justify-content: flex-end;
    }
    
    .language-notice {
        display: none;
    }
    
    header {
        padding: 10px 15px;
        top: 40px;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .main-content {
        margin-top: 100px;
    }
}
/* style.css - 完整版本 */

/* 基础样式 (从index.html继承) */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* 语言栏样式 */
.language-bar {
    background-color: var(--primary-color);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 头部导航栏 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    position: sticky;
    top: 40px;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--dark-gray);
}

/* 搜索框样式 */
.search-container {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-container button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-container button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* 博客列表容器 */
.blog-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
}

.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* 单个博客文章样式 */
.blog-post {
    padding: 25px;
    border-radius: 6px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.blog-post h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 22px;
}

.blog-post h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-post h2 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.post-meta i {
    width: 16px;
    text-align: center;
}

.post-excerpt {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.7;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s;
}

.read-more:hover {
    color: #2980b9;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pagination button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.7;
}

.pagination button:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(41, 128, 185, 0.3);
}

#pageInfo {
    color: var(--dark-gray);
    font-weight: bold;
    min-width: 100px;
    text-align: center;
}

/* 搜索高亮样式 */
.match {
    background-color: #fffacd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px;
    color: var(--dark-gray);
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-container button {
        padding: 12px;
        justify-content: center;
    }
    
    .blog-container {
        padding: 20px 15px;
    }
    
    .blog-post {
        padding: 20px 15px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --dark-gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* 顶部语言切换栏 */
.language-bar {
    background-color: var(--primary-color);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.language-notice {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    display: flex;
    align-items: center;
}

.language-notice i {
    margin-right: 8px;
    font-size: 14px;
}

/* 紧凑型语言切换器 */
.compact-language-switcher {
    position: relative;
    display: inline-block;
}

.current-language {
    color: white;
    background-color: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.current-language:hover {
    background-color: rgba(255,255,255,0.3);
}

.current-language i {
    margin-left: 8px;
    font-size: 12px;
}

.language-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 180px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.compact-language-switcher:hover .language-dropdown {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.language-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.language-dropdown a.active {
    background-color: var(--secondary-color);
    color: white;
}

/* 主导航栏（下移一层） */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
    position: sticky;
    top: 40px;
    z-index: 999;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.logo span {
    color: var(--secondary-color);
}

/* 主导航菜单 */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a i {
    margin-right: 8px;
    font-size: 14px;
}
  /* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 0;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--dark-gray);
}

.btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn i {
    margin-right: 8px;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    margin-left: 15px;
}

.btn-accent:hover {
    background-color: #c0392b;
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.3);
}

/* 特色部分 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--dark-gray);
}

/* 定价部分 */
.pricing {
    margin-top: 80px;
    text-align: center;
}

.pricing h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--secondary-color);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.price span {
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--dark-gray);
    border-bottom: 1px solid #eee;
}

.pricing-features li i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* 页脚 */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 14px;
    width: 20px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 15px;
    }
}

@media (max-width: 768px) {
    .language-notice {
        display: none;
    }
    
    .language-bar {
        justify-content: flex-end;
    }
    
    header {
        top: 36px;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
}

/* 问答博客专用样式 */
.blog-post h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: var(--primary-color);
}

.post-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: var(--secondary-color);
}

.notice {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
}

.notice.tip {
    border-left-color: #28a745;
    background-color: #e6f7ee;
}

.notice i {
    margin-right: 10px;
}

.related-questions {
    margin: 20px 0;
    padding-left: 20px;
}

.related-questions li {
    margin-bottom: 8px;
}

.post-tags {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.post-tags a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 8px;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Recent Blogs 样式 */
.recent-blogs {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.recent-blogs h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.recent-blogs h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.recent-blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.recent-blog-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.recent-blog-list a:hover {
    background-color: var(--light-gray);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .recent-blog-list {
        grid-template-columns: 1fr;
    }
    
    .blog-post h1 {
        font-size: 24px;
    }
}
/* 添加高亮样式 */
.match {
    background-color: #FFEB3B;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 40px;
    color: #ccc;
    margin-bottom: 15px;
}
/* 增强的搜索和分页样式 */
.search-container {
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    gap: 10px;
}

#searchInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#searchButton {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#searchButton:hover {
    background: #2980b9;
}

.match {
    background-color: #fffacd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.category-tag {
    background: #e8f4fc;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

/* 分页样式增强 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.pagination button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background: #2980b9;
}
/* ====================== */
/* 文章页专用样式 (完整版) */
/* ====================== */

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.article-meta i {
    margin-right: 5px;
    width: 15px;
    text-align: center;
}

.article-category {
    background: #e8f4fc;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.article-image {
    margin: 25px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.article-image figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

.article-content h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.article-content h3 {
    font-size: 20px;
    color: #3498db;
    margin: 25px 0 12px;
}

.article-content .notice {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
}

.article-content .notice i {
    margin-right: 10px;
}

.article-content .notice.tip {
    border-left-color: #2ecc71;
    background: #e8f8f0;
}

.article-content .notice.warning {
    border-left-color: #e74c3c;
    background: #fdedec;
}

.article-content .search-operators {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content .search-operators th,
.article-content .search-operators td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.article-content .search-operators th {
    background: #f8f9fa;
}

.article-footer .article-tags {
    margin-top: 40px;
    padding-top: 20px;
    padding-left:30px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #ccc;
}

.article-footer .article-tags a {
    color: #3498db;
    text-decoration: none;
    padding: 3px 8px;
    background: #e8f4fc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.article-footer .article-tags a:hover {
    background: #3498db;
    color: white;
}

.article-footer .article-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.article-footer .share-button,
.article-footer .search-related {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-footer .share-button {
    background: #3498db;
    color: white;
}

.article-footer .share-button:hover {
    background: #2980b9;
}

.article-footer .search-related {
    background: #f8f9fa;
    color: #2c3e50;
}

.article-footer .search-related:hover {
    background: #e8f4fc;
}

.related-articles {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-articles .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-articles .related-article {
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.related-articles .related-article:hover {
    transform: translateY(-3px);
}

.related-articles .related-article h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.related-articles .related-article h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-articles .related-article h3 a:hover {
    color: #3498db;
}

.related-articles .related-article p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #95a5a6;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: #7f8c8d;
}

.article-toc {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 3px solid #3498db;
}

.article-toc h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: all 0.3s;
}

.article-toc a:hover,
.article-toc a.active {
    color: #3498db;
    padding-left: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-article {
        padding: 15px;
    }
    
    .article-header h1 {
        font-size: 26px;
    }
    
    .related-articles .article-grid {
        grid-template-columns: 1fr;
    }
    
    .article-footer .article-actions {
        flex-direction: column;
    }
}
