/* 
 * 南京电子科技有限公司 - 现代科技主题
 * 设计理念：简洁、专业、科技感、可信赖
 * 配色方案：科技蓝、深空灰、纯净白、活力橙
 * 设计元素：圆角、渐变、微阴影、现代字体
 */

:root {
    /* === 主色调 - 南京科技蓝 === */
    --c-primary: #0a56a5;           /* 主蓝 - 南京科技蓝 */
    --c-primary-dark: #074078;      /* 深蓝 - 稳重感 */
    --c-primary-light: #4a8fd9;     /* 浅蓝 - 科技感 */
    --c-accent: #ff6b35;            /* 强调色 - 活力橙 */
    --c-accent-light: #ff9a6c;      /* 浅橙 - 柔和强调 */
    
    /* === 中性色调 === */
    --c-dark: #1a1f2e;              /* 深空灰 - 背景/文字 */
    --c-dark-light: #2c3348;        /* 稍浅深灰 */
    --c-light-bg: #f8fafc;          /* 浅灰背景 */
    --c-card-bg: #ffffff;           /* 卡片背景 */
    --c-border: #e2e8f0;            /* 边框颜色 */
    --c-border-light: #f1f5f9;      /* 浅边框 */
    
    /* === 文字颜色 === */
    --text-primary: #1e293b;        /* 主文字 */
    --text-secondary: #475569;      /* 次级文字 */
    --text-tertiary: #94a3b8;       /* 辅助文字 */
    --text-white: #ffffff;          /* 白色文字 */
    --text-accent: #ff6b35;         /* 强调文字 */
    
    /* === 尺寸与圆角 === */
    --max-width: 1200px;
    --header-height: 80px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* === 阴影体系 === */
    --shadow-sm: 0 2px 8px rgba(10, 86, 165, 0.05);
    --shadow-md: 0 4px 16px rgba(10, 86, 165, 0.08);
    --shadow-lg: 0 8px 30px rgba(10, 86, 165, 0.12);
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 12px 40px rgba(10, 86, 165, 0.15);
    
    /* === 过渡效果 === */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === 全局重置与基础样式 === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-light-bg);
    color: var(--text-secondary);
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* === 容器与通用类 === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* === 按钮样式 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(10, 86, 165, 0.25);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 86, 165, 0.35);
    color: var(--text-white);
}

.secondary-btn {
    background-color: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}

.secondary-btn:hover {
    background-color: var(--c-primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.accent-btn {
    background-color: var(--c-accent);
    color: var(--text-white);
}

.accent-btn:hover {
    background-color: var(--c-accent-light);
    transform: translateY(-3px);
    color: var(--text-white);
}

/* === 顶部导航栏 === */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(226, 232, 240, 0.8);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: -0.5px;
}

.logo-text {
    position: relative;
    padding-left: 12px;
}

.logo-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, var(--c-primary) 0%, var(--c-accent) 100%);
    border-radius: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.desktop-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--c-primary) 0%, var(--c-accent) 100%);
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--c-primary);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.mobile-menu-trigger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--c-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-menu-trigger:hover {
    background-color: rgba(10, 86, 165, 0.05);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    flex-direction: column;
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--c-border);
}

.logo-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
}

.close-btn {
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    background-color: rgba(10, 86, 165, 0.05);
    color: var(--c-primary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 15px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
    background-color: rgba(10, 86, 165, 0.05);
    color: var(--c-primary);
    padding-left: 25px;
}

/* === 主要内容区域 === */
.site-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* === Hero 区域 === */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0f8 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="800" viewBox="0 0 1200 800"><g fill="%230a56a5" opacity="0.03"><circle cx="200" cy="100" r="40"/><circle cx="800" cy="300" r="60"/><circle cx="400" cy="500" r="30"/><circle cx="1000" cy="150" r="50"/><circle cx="600" cy="600" r="40"/></g></svg>');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 0;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* === Info 区域 - 核心价值 === */
.info-section {
    background-color: var(--c-card-bg);
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: var(--c-card-bg);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--c-border-light);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 86, 165, 0.2);
}

.info-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    color: var(--c-primary);
    height: 80px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 86, 165, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 50%;
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--c-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.read-more:hover {
    color: var(--c-accent);
    gap: 12px;
}

/* === 主要内容区域 === */
.main-content-area {
    padding: 60px 0;
    min-height: 500px;
}

.section-header {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--c-primary) 0%, var(--c-accent) 100%);
    border-radius: 2px;
}

.center-header {
    align-items: center;
    text-align: center;
}

.center-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cat-desc {
    margin-top: 10px;
    color: var(--text-secondary);
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* === 文章网格 === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grid-card {
    background-color: var(--c-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--c-border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(10, 86, 165, 0.2);
}

.card-cover-wrapper {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.grid-card:hover .card-img {
    transform: scale(1.05);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 86, 165, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    color: var(--c-primary);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.placeholder-text {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1rem;
    color: var(--c-primary);
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 15px;
}

.date {
    font-weight: 500;
}

.cat-tag {
    background-color: rgba(10, 86, 165, 0.08);
    color: var(--c-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.cat-tag:hover {
    background-color: rgba(10, 86, 165, 0.15);
}

.grid-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 600;
    flex-grow: 0;
}

.grid-card h3 a:hover {
    color: var(--c-primary);
}

.excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.card-tags {
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
    margin-top: auto;
}

.tag-badge {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 5px;
    transition: all var(--transition-fast);
}

.tag-badge:hover {
    color: var(--c-accent);
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.page-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background-color: var(--c-card-bg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    transform: translateY(-2px);
}

.page-current {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* === 文章详情页 === */
.single-post {
    background-color: var(--c-card-bg);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border-light);
}

.single-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 30px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.breadcrumb span {
    color: var(--text-tertiary);
}

.single-header h1 {
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.meta-line {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.meta-line a {
    color: inherit;
    transition: all var(--transition-fast);
    position: relative;
    padding-bottom: 2px;
}

.meta-line a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--c-primary);
    transition: width var(--transition-normal);
}

.meta-line a:hover {
    color: var(--c-primary);
}

.meta-line a:hover::after {
    width: 100%;
}

/* === Markdown 内容样式 === */
.markdown-body {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.markdown-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5em;
    margin-bottom: 1em;
    color: var(--text-primary);
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.markdown-body h3 {
    font-size: 1.5rem;
    margin-top: 2em;
    margin-bottom: 0.8em;
    color: var(--text-primary);
    font-weight: 600;
}

.markdown-body p {
    margin-bottom: 1.5em;
}

.markdown-body hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-border), transparent);
    margin: 40px 0;
}

.markdown-body img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 30px 0;
}

.markdown-body a {
    color: var(--c-primary);
    font-weight: 500;
    border-bottom: 1px solid rgba(10, 86, 165, 0.3);
    padding-bottom: 1px;
    transition: all var(--transition-fast);
}

.markdown-body a:hover {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
}

.markdown-body blockquote {
    border-left: 4px solid var(--c-primary);
    background-color: rgba(10, 86, 165, 0.03);
    padding: 25px 30px;
    margin: 30px 0;
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    position: relative;
}

.markdown-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(10, 86, 165, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.markdown-body ul, 
.markdown-body ol {
    margin-left: 20px;
    margin-bottom: 1.5em;
}

.markdown-body li {
    margin-bottom: 0.5em;
}

.markdown-body ul li {
    list-style-type: disc;
}

.markdown-body ol li {
    list-style-type: decimal;
}

.markdown-body code {
    background-color: rgba(10, 86, 165, 0.05);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--c-primary);
}

.markdown-body pre {
    background-color: var(--c-dark);
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === 修正：Markdown 表格样式 === */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.markdown-body th,
.markdown-body td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--c-border);
}

.markdown-body th {
    background-color: rgba(10, 86, 165, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--c-primary);
}

.markdown-body tr {
    border-bottom: 1px solid var(--c-border);
}

.markdown-body tr:nth-child(even) {
    background-color: rgba(10, 86, 165, 0.02);
}

.markdown-body tr:hover {
    background-color: rgba(10, 86, 165, 0.05);
    transition: background-color var(--transition-fast);
}

.markdown-body td {
    border-left: 1px solid var(--c-border-light);
    border-right: 1px solid var(--c-border-light);
}

.markdown-body thead {
    border-bottom: 2px solid var(--c-primary);
}

.post-tags-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--c-border);
}

.tag-pill {
    display: inline-block;
    background-color: rgba(10, 86, 165, 0.08);
    padding: 8px 18px;
    font-size: 0.9rem;
    color: var(--c-primary);
    border-radius: 50px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(10, 86, 165, 0.1);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag-pill:hover {
    background-color: var(--c-primary);
    color: var(--text-white);
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

.post-cta {
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(10, 86, 165, 0.03) 0%, rgba(255, 107, 53, 0.03) 100%);
    padding: 50px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(10, 86, 165, 0.1);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--c-border);
}

.nav-prev, .nav-next {
    max-width: 48%;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.nav-prev:hover, .nav-next:hover {
    border-color: rgba(10, 86, 165, 0.2);
    background-color: rgba(10, 86, 165, 0.02);
}

.nav-prev small, .nav-next small {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-prev span, .nav-next span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* === 404 页面 === */
.error-404 {
    text-align: center;
    padding: 100px 0;
    background-color: var(--c-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border-light);
}

.error-404 h1 {
    font-size: 5rem;
    color: var(--c-primary) !important; /* 修正：覆盖内联样式，保持主题色一致 */
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === FAQ 区域 === */
.faq-section {
    background-color: var(--c-card-bg);
    padding: 80px 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 25px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--c-primary);
}

.faq-question.active {
    color: var(--c-primary);
}

.faq-question .arrow {
    font-size: 1.5rem;
    color: var(--c-primary);
    transition: transform var(--transition-normal);
}

.faq-question.active .arrow {
    transform: rotate(45deg);
}

.faq-answer {
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === 页脚 === */
.site-footer {
    background-color: var(--c-dark);
    color: #cbd5e0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--c-accent);
    border-radius: 2px;
}

.footer-col p, .footer-col a {
    color: #94a3b8;
    margin-bottom: 15px;
    display: block;
    line-height: 1.6;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--c-accent-light);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #cbd5e0;
    transition: all var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--c-accent-light);
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-trigger {
        display: flex;
    }
    
    .single-post {
        padding: 30px 20px;
    }
    
    .single-header h1 {
        font-size: 1.9rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 20px 0;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-prev, .nav-next {
        max-width: 100%;
    }
    
    .markdown-body {
        font-size: 1rem;
    }
    
    .markdown-body h2 {
        font-size: 1.6rem;
    }
    
    .markdown-body h3 {
        font-size: 1.3rem;
    }
    
    .markdown-body table {
        font-size: 0.9rem;
    }
    
    .markdown-body th,
    .markdown-body td {
        padding: 10px 12px;
    }
    
    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .single-post {
        padding: 25px 15px;
    }
    
    .markdown-body table {
        display: block;
        overflow-x: auto;
    }
    
    .error-404 h1 {
        font-size: 4rem;
    }
}

/* === 工具类 === */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.text-center {
    text-align: center;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-50 {
    margin-top: 50px;
}

/* === 动画效果 === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* === 自定义滚动条 === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--c-light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--c-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary-dark);
}

/* === 打印样式 === */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .post-cta,
    .faq-section {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .markdown-body table {
        border: 1px solid #000 !important;
    }
    
    .markdown-body th,
    .markdown-body td {
        border: 1px solid #ccc !important;
    }
}