/* * Corporate Theme v2.0 - Management & Consulting Edition
 * Style: Sophisticated / Trustworthy / High-End
 */

:root {
    /* --- 核心配色：尊贵商务风 --- */
    --c-primary: #1a365d;       /* 深邃海军蓝：象征权威与管理 */
    --c-primary-light: #2c4a7c; /* 亮海军蓝 */
    --c-accent: #c5a065;        /* 香槟金：象征价值与尊贵 */
    --c-accent-hover: #b08d55;  /* 深金色 */
    
    /* --- 功能色 --- */
    --c-text-main: #2d3748;     /* 深灰炭色，比纯黑更柔和 */
    --c-text-light: #718096;    /* 雅致灰 */
    --c-bg-body: #f7f9fc;       /* 极浅的蓝灰背景，营造冷静态 */
    --c-bg-white: #ffffff;
    --c-bg-light-gold: #fdfbf7; /* 米金色背景，用于强调区域 */
    
    /* --- 布局与阴影 --- */
    --radius-sm: 2px;           /* 极小圆角，更显严谨 */
    --radius-md: 4px;           /* 商务风格不宜过圆 */
    --header-height: 80px;      /* 稍微加高导航栏，更大气 */
    --max-width: 1240px;
    
    /* 现代悬浮投影体系 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 30px rgba(26, 54, 93, 0.15); /* 悬浮时带一点蓝色倾向 */
}

/* === 全局重置与排版 === */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--c-bg-body);
    color: var(--c-text-main);
    /* 使用更加现代、易读的系统字体栈 */
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7; /* 增加行高，提升阅读舒适度 */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, li { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* 标题通用样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-primary);
    letter-spacing: -0.02em; /* 稍微收紧字间距，显得更紧凑有力 */
}

/* === 容器 === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === 头部导航 (高端简约) === */
.site-header {
    background: var(--c-bg-white);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: -0.5px;
}
.logo-text { position: relative; }
/* 给Logo加个金色的小点缀 */
.logo-text::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: 50%;
    margin-left: 4px;
    margin-bottom: 2px;
}

.desktop-nav { display: flex; align-items: center; gap: 30px; }

.desktop-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-main);
    padding: 8px 0;
    position: relative;
}

/* 导航悬停效果：底部金色线条展开 */
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-accent);
    transition: width 0.3s;
}
.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; font-size: 1.5rem; cursor: pointer; color: var(--c-primary); }
.mobile-menu-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.99); z-index: 9999;
    flex-direction: column; padding: 40px;
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu-header { display: flex; justify-content: space-between; width: 100%; margin-bottom: 40px; border-bottom: 1px solid #eee; padding-bottom: 20px;}
.logo-mobile { font-weight: 800; font-size: 1.4rem; color: var(--c-primary); }
.close-btn { font-size: 2rem; cursor: pointer; color: var(--c-text-light); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 25px; text-align: center; }
.mobile-nav-links a { font-size: 1.1rem; color: var(--c-primary); font-weight: 600; border-bottom: 1px solid transparent; padding-bottom: 5px;}
.mobile-nav-links a:hover { border-color: var(--c-accent); }

/* === Hero Section (大气稳重) === */
.hero-section {
    /* 使用深蓝渐变，增加专业度 */
    background: linear-gradient(135deg, var(--c-primary) 0%, #0d1f38 100%);
    color: #fff;
    padding: 120px 0 100px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* 增加背景纹理感 (可选) */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 25%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 24px; 
    color: #ffffff;
    font-weight: 800;
}
.hero-subtitle { 
    font-size: 1.25rem; 
    margin-bottom: 48px; 
    color: rgba(255,255,255,0.85); 
    max-width: 760px; 
    margin-left: auto; 
    margin-right: auto;
    font-weight: 300;
}
.hero-buttons { display: flex; justify-content: center; gap: 24px; }

/* 按钮样式重构 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 36px; font-size: 1rem;
    border-radius: var(--radius-sm); 
    font-weight: 600; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase; /* 商务感 */
}
.primary-btn { 
    background: var(--c-accent); 
    color: #ffffff; 
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.4);
    border: 1px solid transparent;
}
.primary-btn:hover { 
    background: var(--c-accent-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(197, 160, 101, 0.6);
}

.secondary-btn { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #fff; 
}
.secondary-btn:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #ffffff;
}

/* === Info Section (核心价值 - 极简卡片) === */
.info-section { margin-bottom: 100px; }
.center-header { text-align: center; margin-bottom: 60px; }
.center-header h2 { font-size: 2.2rem; color: var(--c-primary); margin-bottom: 15px; position: relative; display: inline-block;}
/* 标题下方的金色装饰线 */
.center-header h2::after {
    content: ''; display: block; width: 40px; height: 3px; background: var(--c-accent);
    margin: 15px auto 0;
}
.center-header p { color: var(--c-text-light); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.info-card {
    background: var(--c-bg-white);
    padding: 50px 40px;
    border-radius: var(--radius-sm);
    /* 取消边框，改用高质感阴影 */
    box-shadow: var(--shadow-card);
    transition: transform 0.4s, box-shadow 0.4s;
    border-top: 3px solid transparent; /* 预留顶部线条 */
}
.info-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
    border-top-color: var(--c-accent); /* 悬停显示金色顶边 */
}
.info-card .icon { font-size: 3rem; margin-bottom: 25px; color: var(--c-primary); opacity: 0.9; }
.info-card h3 { font-size: 1.5rem; margin-bottom: 18px; color: var(--c-primary); }
.info-card p { color: var(--c-text-light); margin-bottom: 25px; font-size: 1rem; line-height: 1.8; }
.read-more { 
    color: var(--c-primary); 
    font-weight: 700; 
    font-size: 0.9rem; 
    border-bottom: 1px solid rgba(26, 54, 93, 0.2);
    padding-bottom: 2px;
}
.read-more:hover { border-bottom-color: var(--c-primary); color: var(--c-accent); }

/* === Main Content Area === */
.main-content-area { min-height: 500px; margin-bottom: 100px; }
.section-header { 
    margin-bottom: 40px; 
    display: flex; 
    align-items: baseline; 
    gap: 15px;
    border-left: none; /* 去掉左侧粗边框，改用更现代的排版 */
    padding-left: 0;
}
.section-header h2 { font-size: 1.8rem; color: var(--c-primary); }
.cat-desc { color: var(--c-text-light); font-size: 1rem; border-left: 1px solid #ddd; padding-left: 15px; }

/* === Post Grid (杂志风格列表) === */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 40px; }
.grid-card {
    background: var(--c-bg-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm); /* 初始状态阴影很淡 */
    transition: all 0.4s ease;
    border: none;
    display: flex; flex-direction: column;
}
.grid-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.card-cover-wrapper {
    display: block;
    width: 100%;
    height: 240px; /* 加高图片区域 */
    position: relative;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.grid-card:hover .card-img { transform: scale(1.08); }

/* 无图时的占位 - 商务蓝风格 */
.card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #eef2f6;
    color: var(--c-primary-light); 
    font-weight: 700; font-size: 1.4rem; letter-spacing: 1px;
}

.card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; border: 1px solid #f0f0f0; border-top: none; }
.card-meta { 
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: #888; margin-bottom: 15px; 
    text-transform: uppercase; letter-spacing: 0.5px;
}
.cat-tag { 
    color: var(--c-accent); 
    font-weight: 700; 
    font-size: 0.75rem;
}
.grid-card h3 { 
    font-size: 1.3rem; 
    margin-bottom: 12px; 
    line-height: 1.5; 
    color: var(--c-primary); 
}
.grid-card h3 a { background-image: linear-gradient(var(--c-primary), var(--c-primary)); background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom; transition: background-size 0.3s; }
.grid-card:hover h3 a { background-size: 100% 1px; }

.excerpt { font-size: 0.95rem; color: var(--c-text-light); flex-grow: 1; margin-bottom: 20px; line-height: 1.6; }

.card-tags { margin-top: auto; padding-top: 15px; border-top: 1px dashed #eee; }
.tag-badge { 
    font-size: 0.75rem; color: #999; margin-right: 10px; 
    background: #f8f9fa; padding: 2px 8px; border-radius: 4px;
}
.tag-badge:hover { color: var(--c-primary); background: #e2e8f0; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.page-btn {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #e2e8f0; border-radius: var(--radius-sm); color: var(--c-text-main);
    background: var(--c-bg-white); transition: all 0.2s;
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-current { 
    display: flex; align-items: center; padding: 0 15px; font-weight: 700; 
    color: var(--c-primary); border-bottom: 2px solid var(--c-accent);
}

/* === 文章详情页 (专注阅读) === */
.single-post { 
    background: var(--c-bg-white); 
    padding: 60px 80px; /* 增加内边距 */
    border-radius: var(--radius-sm); 
    box-shadow: var(--shadow-card); 
}
.single-header { border-bottom: 1px solid #eee; padding-bottom: 30px; margin-bottom: 40px; text-align: center; }
.breadcrumb { font-size: 0.85rem; color: #999; margin-bottom: 20px; display: inline-block; }
.single-header h1 { font-size: 2.4rem; color: var(--c-primary); margin-bottom: 20px; }
.meta-line { 
    font-size: 0.9rem; color: var(--c-text-light); 
    display: flex; justify-content: center; gap: 30px; 
}

/* Markdown 内容样式 - 优化排版 */
.markdown-body { color: #374151; font-size: 1.1rem; line-height: 1.9; font-family: 'Georgia', serif; /* 正文使用衬线体更有质感，如果系统没有则回退 */ }
/* 重新覆盖为无衬线体，保持现代感，如果不喜欢衬线体可保留下面这行 */
.markdown-body { font-family: inherit; }

.markdown-body h2 { 
    font-size: 1.8rem; 
    color: var(--c-primary); 
    margin: 2em 0 1em; 
    border-left: 4px solid var(--c-accent); /* 左侧金色竖线 */
    padding-left: 20px;
    border-bottom: none;
}
.markdown-body h3 { font-size: 1.4rem; color: var(--c-text-main); margin-top: 1.5em; font-weight: 700; }
.markdown-body p { margin-bottom: 1.8em; text-align: justify; }

.markdown-body img { 
    max-width: 100%; 
    border-radius: var(--radius-sm); 
    box-shadow: var(--shadow-sm); 
    margin: 30px 0; 
    border: 1px solid #f0f0f0;
}

.markdown-body blockquote { 
    border-left: 3px solid var(--c-accent); 
    background: var(--c-bg-light-gold); 
    padding: 20px 30px; 
    color: #555; 
    margin: 30px 0; 
    font-style: italic;
}

.post-tags-container { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.tag-pill { 
    display: inline-block; background: #fff; border: 1px solid #ddd; 
    padding: 6px 16px; font-size: 0.85rem; color: #666; 
    border-radius: 50px; margin-right: 10px; transition: all 0.2s;
}
.tag-pill:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* CTA 区域 - 现代清爽风格 (符合禁止深色背景要求) */
.post-cta {
    margin-top: 60px; 
    background: var(--c-bg-light-gold); /* 浅米金色背景 */
    padding: 40px; 
    text-align: center; 
    border-radius: var(--radius-sm);
    border: 1px solid #eaddc5; /* 淡淡的金色边框 */
    box-shadow: inset 0 0 20px rgba(197, 160, 101, 0.05);
}
.post-cta p { 
    font-weight: 700; font-size: 1.25rem; 
    color: var(--c-primary); margin-bottom: 25px; 
}
.small-btn { 
    font-size: 0.95rem; padding: 10px 32px; 
    background: var(--c-primary); color: white; border-radius: var(--radius-sm); 
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.3);
}
.small-btn:hover { background: var(--c-primary-light); transform: translateY(-2px); }

/* 翻页导航 */
.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.nav-prev, .nav-next { 
    display: flex; flex-direction: column; max-width: 45%; 
    padding: 15px; border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.nav-prev:hover, .nav-next:hover { background: #f8f9fa; }
.nav-prev small, .nav-next small { color: #aaa; margin-bottom: 8px; font-size: 0.75rem; text-transform: uppercase; }
.nav-prev span, .nav-next span { color: var(--c-primary); font-weight: 700; font-size: 1rem; }

/* === FAQ Section (手风琴) === */
.faq-section { 
    background: #fff; 
    padding: 80px 0; 
    border-top: 1px solid #eee; 
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { 
    padding: 25px 0; cursor: pointer; display: flex; justify-content: space-between; 
    font-weight: 600; font-size: 1.1rem; color: var(--c-primary); 
    transition: color 0.3s;
}
.faq-question:hover { color: var(--c-accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding-bottom: 25px; color: var(--c-text-light); line-height: 1.8; }
.faq-question.active .arrow { transform: rotate(180deg); display:inline-block; transition: transform 0.3s;}

/* === Footer (专业暗色) === */
.site-footer { 
    background: #0f2038; /* 极深的蓝 */
    color: #a0aec0; 
    padding: 80px 0 30px; 
    font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; }
.footer-col p { margin-bottom: 12px; line-height: 1.6; }
.footer-col a { display: block; margin-bottom: 12px; transition: color 0.2s; color: #cbd5e0; }
.footer-col a:hover { color: var(--c-accent); padding-left: 5px; }

.footer-bottom { 
    text-align: center; padding-top: 30px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.85rem; 
    color: #718096;
}
.footer-bottom a { color: #a0aec0; margin-left: 10px; }
.footer-bottom a:hover { color: #fff; }

/* === 响应式微调 === */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-trigger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .single-post { padding: 30px 20px; }
    .footer-grid { gap: 30px; }
    .btn { width: 100%; margin-bottom: 10px; }
    .hero-buttons { flex-direction: column; gap: 10px; padding: 0 20px;}
    .single-header h1 { font-size: 1.8rem; }
    .meta-line { flex-direction: column; gap: 5px; align-items: center; }
}