/* 
 * SmartTech Pro - 智能科技公司主题
 * 现代、科技感、简洁专业
 * Version: 2.0
 */

:root {
    /* === 科技感配色方案 === */
    --c-primary: #2563eb;       /* 科技蓝 - 主色调 */
    --c-primary-dark: #1d4ed8;  /* 深蓝 */
    --c-primary-light: #60a5fa; /* 浅蓝 */
    --c-secondary: #8b5cf6;     /* 科技紫 - 强调色 */
    --c-accent: #06b6d4;        /* 青色 - 点缀色 */
    --c-success: #10b981;       /* 成功绿 */
    
    /* === 中性色阶 === */
    --bg-body: #fafafa;         /* 极浅灰背景 */
    --bg-white: #ffffff;        /* 纯白 */
    --bg-card: #ffffff;         /* 卡片背景 */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 渐变 */
    
    --text-main: #1f2937;       /* 主文字 - 深灰 */
    --text-secondary: #4b5563;  /* 次要文字 */
    --text-light: #6b7280;      /* 浅色文字 */
    --text-lighter: #9ca3af;    /* 更浅文字 */
    
    --border-color: #e5e7eb;    /* 边框 */
    --border-light: #f3f4f6;    /* 浅边框 */
    
    /* === 现代设计参数 === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --header-height: 80px;
    --max-width: 1280px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 全局样式重置与基础 === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* 平滑滚动锚点 */
html {
    scroll-behavior: smooth;
}

/* 链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--c-primary);
}

/* 图片优化 */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 列表 */
ul, ol {
    list-style: none;
}

/* 容器 */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === 现代头部导航 === */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 智能科技Logo样式 */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-text {
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    border-radius: var(--radius-full);
}

/* 桌面导航 */
.desktop-nav {
    display: flex;
    gap: 2px;
    background: var(--bg-white);
    padding: 4px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.desktop-nav a {
    padding: 10px 20px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.desktop-nav a:hover {
    color: var(--c-primary);
    background: rgba(37, 99, 235, 0.05);
}

.desktop-nav a.active {
    color: var(--c-primary);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

.desktop-nav a.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--c-primary);
    border-radius: var(--radius-full);
}

/* 移动端菜单 */
.mobile-menu-trigger {
    display: none;
    background: var(--bg-white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.mobile-menu-trigger:hover {
    background: var(--c-primary);
    color: white;
}

.trigger-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    flex-direction: column;
    padding: 30px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-mobile {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    position: relative;
}

.logo-mobile::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    border-radius: var(--radius-full);
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.close-btn:hover {
    background: var(--border-color);
    color: var(--text-main);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--c-primary);
    transform: translateX(5px);
}

/* === 科技感Hero区域 === */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 48px;
    color: #cbd5e1;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.btn:hover::before {
    left: 100%;
}

.primary-btn {
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* === 信息卡片区域 === */
.info-section {
    margin-bottom: 100px;
}

.center-header {
    text-align: center;
    margin-bottom: 60px;
}

.center-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.center-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    border-radius: var(--radius-full);
}

.center-header p {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.info-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--c-primary), var(--c-secondary));
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--c-primary-light);
}

.info-card .icon {
    font-size: 3rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(37, 99, 235, 0.1);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 12px;
    color: var(--c-primary-dark);
}

/* === 主要内容区域 === */
.main-content-area {
    min-height: 500px;
    margin-bottom: 100px;
    padding-top: 40px;
}

.section-header {
    margin-bottom: 40px;
    padding-left: 24px;
    border-left: 4px solid var(--c-primary);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cat-desc {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.7;
}

/* === 文章网格 === */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.grid-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--c-primary-light);
}

/* 封面图容器 */
.card-cover-wrapper {
    display: block;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-card:hover .card-img {
    transform: scale(1.05);
}

/* 无图占位符 */
.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.card-img-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 卡片内容 */
.card-body {
    padding: 28px;
    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-lighter);
    margin-bottom: 16px;
}

.date {
    background: rgba(37, 99, 235, 0.1);
    color: var(--c-primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.cat-tag {
    color: var(--c-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.cat-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--c-secondary);
}

.grid-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-main);
}

.grid-card h3 a:hover {
    color: var(--c-primary);
}

.excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 标签 */
.card-tags {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    font-size: 0.75rem;
    color: var(--text-light);
    padding: 4px 12px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.tag-badge:hover {
    background: var(--c-primary);
    color: white;
    transform: translateY(-1px);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
}

.page-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    background: var(--bg-white);
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

.page-current {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-weight: 700;
    color: var(--text-main);
    background: var(--bg-white);
    height: 48px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* === 文章详情页 === */
.single-post {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.single-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 28px;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb span {
    color: var(--border-color);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.single-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.meta-line {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.meta-line span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-line span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--c-primary);
    border-radius: var(--radius-full);
}

/* Markdown内容样式 */
.markdown-body {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.markdown-body h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 2em 0 1em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

.markdown-body h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--c-primary);
    border-radius: var(--radius-full);
}

.markdown-body h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin: 1.8em 0 0.8em;
}

.markdown-body p {
    margin-bottom: 1.8em;
}

.markdown-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: 2em 0;
    transition: var(--transition);
}

.markdown-body img:hover {
    transform: scale(1.01);
}

.markdown-body a {
    color: var(--c-primary);
    font-weight: 500;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    padding-bottom: 1px;
}

.markdown-body a:hover {
    border-bottom-color: var(--c-primary);
}

.markdown-body blockquote {
    border-left: 4px solid var(--c-primary);
    background: rgba(37, 99, 235, 0.03);
    padding: 24px 32px;
    color: var(--text-secondary);
    margin: 2em 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
    overflow: hidden;
}

.markdown-body blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: serif;
    line-height: 1;
}

.markdown-body code {
    background: rgba(37, 99, 235, 0.1);
    color: var(--c-primary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.markdown-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: var(--shadow-lg);
}

.markdown-body hr {
    margin: 3em 0;
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* 文章标签 */
.post-tags-container {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.tags-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    background: var(--border-light);
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition);
    gap: 6px;
}

.tag-pill::before {
    content: '#';
    color: var(--c-primary);
    font-weight: bold;
}

.tag-pill:hover {
    background: var(--c-primary);
    color: white;
    transform: translateY(-2px);
}

.tag-pill:hover::before {
    color: white;
}

/* 文章CTA - 浅色背景 */
.post-cta {
    margin-top: 48px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(139, 92, 246, 0.05));
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.post-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
}

.post-cta p {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.small-btn {
    font-size: 0.95rem;
    padding: 12px 28px;
}

/* 文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    gap: 20px;
}

.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
    max-width: 45%;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-prev:hover, .nav-next:hover {
    border-color: var(--border-color);
    background: var(--bg-body);
    transform: translateY(-2px);
}

.nav-prev {
    align-items: flex-start;
    text-align: left;
}

.nav-next {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.nav-prev small, .nav-next small {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-prev span, .nav-next span {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
}

/* 404页面 */
.error-404 {
    text-align: center;
    padding: 100px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* === FAQ区域 === */
.faq-section {
    background: var(--bg-white);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--c-primary);
}

.faq-question.active {
    color: var(--c-primary);
}

.faq-question .arrow {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--border-light);
}

.faq-question.active .arrow {
    background: var(--c-primary);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === 页脚 === */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--c-primary);
    border-radius: var(--radius-full);
}

.footer-col p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #cbd5e1;
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--c-primary-light);
    font-weight: 500;
    margin-left: 8px;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-trigger {
        display: flex;
    }
    
    .hero-section {
        padding: 140px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 32px 24px;
    }
    
    .single-header h1 {
        font-size: 2rem;
    }
    
    .meta-line {
        flex-direction: column;
        gap: 12px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-prev, .nav-next {
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .center-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card, .single-post {
        padding: 24px;
    }
    
    .error-404 h1 {
        font-size: 6rem;
    }
}

/* === 动画效果 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-card, .info-card, .single-post {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--c-primary), var(--c-secondary));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--c-primary-dark), var(--c-secondary));
}