/* --- 全局样式 --- */
:root {
    --primary-color: #2563eb;       /* 主色调：蓝色 */
    --secondary-color: #1e293b;     /* 次要色：深蓝灰 */
    --text-color: #334155;          /* 正文颜色 */
    --bg-color: #ffffff;            /* 背景色 */
    --light-bg: #f8fafc;            /* 浅色背景 */
    --accent-color: #f59e0b;        /* 强调色：橙色 */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- 布局容器 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 导航栏 --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* --- 英雄区域 --- */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.secondary-button {
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid #cbd5e1;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    border-color: var(--secondary-color);
    background-color: #f8fafc;
}

/* --- 特性部分 --- */
.features {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #eff6ff;
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: #64748b;
}

/* --- 展示部分 --- */
.showcase {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
}

.showcase-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 行动号召 --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.cta-section .cta-button:hover {
    background-color: #d97706;
}

/* --- 页脚 --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .story-content { 
        flex-direction: column;
    }
    .nav-links {
        display: none; /* 移动端简化：隐藏导航链接 */
    }

    .showcase-content {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .article-grid { 
        grid-template-columns: 1fr;
     }

    .stats-grid {
         flex-direction: column; gap: 30px;
     }
}

/* --- 页面头部 --- */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background-color: var(--light-bg);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- 分类筛选栏 --- */
.categories-wrapper {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- 文章列表网格 --- */
.blog-section {
    padding: 60px 0 100px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-tag {
    color: var(--primary-color);
    font-weight: 600;
    background-color: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1; /* 让摘要占据剩余空间，保证底部对齐 */
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: var(--text-light);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 8px; /* 箭头移动效果 */
}

/* --- 分页 --- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 10px;
}

.pagination > li > a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.2s;
}

.pagination > li > a:hover, .pagination > .active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- 页脚 (保持一致) --- */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.article-header {
    padding: 120px 0 40px;
    text-align: center;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
}

/* --- 主要内容布局 --- */
.content-wrapper {
    display: flex;
    gap: 60px;
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧文章正文 */
.main-content {
    flex: 3;
    min-width: 0; /* 防止代码块撑破布局 */
}

.featured-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body ul {
    list-style: disc;
    margin-left: 2em;
    margin-bottom: 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: #eff6ff;
    padding: 20px;
    margin: 2em 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1e40af;
}

.article-body pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
    font-family: "Menlo", "Monaco", "Consolas", monospace;
    font-size: 0.9rem;
}

/* 作者卡片 */
.author-card {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    margin-top: 60px;
    border: 1px solid var(--border-color);
}

.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 右侧侧边栏 */
.sidebar {
    flex: 1;
    min-width: 300px;
}

.sticky-widget {
    position: sticky;
    top: 100px;
}

.widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-bg);
}

/* 目录样式 */
.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: var(--text-light);
    font-size: 0.95rem;
    display: block;
    padding: 4px 0;
}

.toc-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 相关文章小列表 */
.related-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.related-list a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

 /* --- 通用 Section --- */
 section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- 使命/故事部分 --- */
.story-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-text {
    flex: 1;
}

.story-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.story-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.story-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 核心价值观 --- */
.values-section {
    background-color: var(--light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- 数据展示 --- */
.stats-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* --- 团队成员 --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.team-card {
    text-align: center;
}

.team-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--light-bg);
    transition: border-color 0.3s ease;
}

.team-card:hover .team-img {
    border-color: var(--primary-color);
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- 加入我们 CTA --- */
.cta-section {
    background-color: var(--light-bg);
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}


