/* * Educational Consulting Theme v1.1 (Fixed)
 * Style: Modern / Clean / Professional for Educational Consulting
 */ 

:root { 
    /* --- 教育咨询公司配色 (柔和且专业) --- */ 
    --c-primary: #2c7be5; /* 主色：明亮的蓝色 */ 
    --c-primary-dark: #1e63b0; /* 悬停深色 */ 
    --c-secondary: #6c757d; /* 辅助色：灰色 */ 
    --c-accent: #28a745; /* 强调色：绿色 */ 

    /* --- 基础背景与文字 --- */ 
    --bg-body: #f8f9fc; /* 更柔和的浅灰背景 */ 
    --bg-white: #ffffff; /* 纯白卡片 */ 
    --text-main: #343a40; /* 主要文字：深灰色 */ 
    --text-light: #6c757d; /* 次要文字 */ 
    --text-lighter: #adb5bd; /* 极淡文字 */ 
    --border-color: #e9ecef; /* 边框颜色 */ 

    /* --- 布局参数 --- */ 
    --radius-sm: 4px; 
    --radius-md: 8px; 
    --radius-lg: 12px; 
    --header-height: 70px; 
    --max-width: 1200px; 
    --shadow-card: 0 4px 6px rgba(0,0,0,0.05); 
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.1); 
} 

/* === 全局重置 === */ 
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; } 

body { 
    background-color: var(--bg-body); 
    color: var(--text-light); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    line-height: 1.6; 
    font-size: 16px; 
    /* 修正：让页脚始终置底 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
} 

.site-main {
    flex: 1; /* 修正：撑开主体区域 */
}

a { text-decoration: none; color: inherit; transition: color 0.2s; } 
ul, li { list-style: none; } 
img { display: block; max-width: 100%; height: auto; } 

/* === 容器 === */ 
.container { 
    width: 100%; 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 20px; 
} 

/* === 头部导航 === */ 
.site-header { 
    background: var(--bg-white); 
    height: var(--header-height); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
} 

.header-inner { 
    height: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
} 

.logo a { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--c-primary); 
    display: flex; 
    align-items: center; 
} 

.desktop-nav { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
} 

.desktop-nav a { 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: var(--text-main); 
    padding: 8px 12px; 
    border-radius: 4px; 
    transition: all 0.2s; 
} 

.desktop-nav a:hover, 
.desktop-nav a.active { 
    color: var(--c-primary); 
    background-color: rgba(44, 123, 229, 0.05); 
} 

/* 移动端菜单触发器（默认隐藏） */
.mobile-menu-trigger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); } 

.mobile-menu-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(255,255,255,0.98); z-index: 9999; 
    flex-direction: column; padding: 30px; 
} 
.mobile-menu-header { display: flex; justify-content: space-between; width: 100%; margin-bottom: 30px; } 
.logo-mobile { font-weight: bold; font-size: 1.4rem; color: var(--c-primary); } 
.close-btn { font-size: 2rem; cursor: pointer; } 
.mobile-nav-links { display: flex; flex-direction: column; gap: 20px; text-align: center; } 
.mobile-nav-links a { font-size: 1.2rem; color: var(--text-main); font-weight: 500; } 
.mobile-nav-links .mobile-cta { color: var(--c-primary); font-weight: 700; } 

/* === Hero Section (企业大图/Banner) === */ 
.hero-section { 
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); 
    color: #fff; 
    padding: 100px 0; 
    text-align: center; 
    margin-bottom: 60px; 
} 
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; } 
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; } 
.hero-buttons { display: flex; justify-content: center; gap: 20px; } 

.btn { 
    display: inline-block; padding: 12px 30px; font-size: 1rem; 
    border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; 
    transition: all 0.3s; 
} 
.primary-btn { background: #fff; color: var(--c-primary); } 
.primary-btn:hover { background: #f0f0f0; transform: translateY(-2px); } 

.secondary-btn { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: #fff; } 
.secondary-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); } 

/* === Info Section (核心价值) === */ 
.info-section { margin-bottom: 60px; } 
.center-header { text-align: center; margin-bottom: 50px; } 
.center-header h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 10px; } 
.center-header p { color: var(--text-lighter); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; } 

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } 
.info-card { 
    background: var(--bg-white); 
    padding: 40px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--shadow-card); 
    transition: transform 0.3s, box-shadow 0.3s; 
    border: 1px solid var(--border-color); 
} 
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); } 
.info-card .icon { font-size: 2.5rem; margin-bottom: 20px; } 
.info-card h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 15px; } 
.info-card p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; } 
.read-more { color: var(--c-primary); font-weight: 600; font-size: 0.9rem; } 
.read-more:hover { text-decoration: underline; } 

/* === Main Content Area === */ 
.main-content-area { margin-bottom: 80px; } 
.section-header { margin-bottom: 30px; border-left: 4px solid var(--c-primary); padding-left: 15px; } 
.section-header h2 { font-size: 1.8rem; color: var(--text-main); } 
.cat-desc { margin-top: 5px; color: var(--text-light); font-size: 0.95rem; } 

/* === Post Grid (文章列表) === */ 
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; } 
.grid-card { 
    background: var(--bg-white); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    box-shadow: var(--shadow-card); 
    transition: all 0.3s; 
    border: 1px solid var(--border-color); 
    display: flex; flex-direction: column; 
} 
.grid-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); } 

.card-cover-wrapper { 
    display: block; 
    width: 100%; 
    height: 200px; 
    background: #eee; 
    overflow: hidden; 
    position: relative; 
} 
.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s; 
} 
.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, #e9ecef 0%, #dee2e6 100%); 
    color: #adb5bd; font-weight: 700; font-size: 1.2rem; 
} 

.card-body { padding: 25px; display: flex; flex-direction: column; flex: 1; } 
.card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #999; margin-bottom: 12px; } 
.cat-tag { color: var(--c-primary); font-weight: 500; } 
.grid-card h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; color: var(--text-main); } 
.grid-card h3 a:hover { color: var(--c-primary); } 
.excerpt { font-size: 0.9rem; color: var(--text-light); flex-grow: 1; margin-bottom: 15px; } 

.card-tags { margin-top: auto; padding-top: 15px; border-top: 1px solid #f1f1f1; } 
.tag-badge { font-size: 0.75rem; color: #888; margin-right: 8px; } 
.tag-badge:hover { color: var(--c-primary); } 

/* 分页 */ 
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; } 
.page-btn { 
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; 
    border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-main); 
    background: var(--bg-white); 
} 
.page-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); } 
.page-current { display: flex; align-items: center; padding: 0 10px; font-weight: bold; color: var(--text-main); } 

/* === 文章详情页 === */ 
.single-post { background: var(--bg-white); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); } 
.single-header { border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 30px; } 
.breadcrumb { font-size: 0.9rem; color: #999; margin-bottom: 15px; } 
.single-header h1 { font-size: 2rem; color: var(--text-main); margin-bottom: 15px; line-height: 1.3; } 
.meta-line { font-size: 0.9rem; color: #888; display: flex; gap: 20px; } 

/* Markdown 内容样式 */ 
.markdown-body { color: #444; font-size: 1.05rem; line-height: 1.8; word-wrap: break-word; } 

.markdown-body h2 { 
    font-size: 1.5rem; color: #222; margin: 1.5em 0 0.8em; 
    border-bottom: 1px solid #eee; padding-bottom: 10px; 
} 
.markdown-body h3 { font-size: 1.3rem; color: #333; margin: 1.3em 0 0.6em; }
.markdown-body p { margin-bottom: 1.5em; } 

.markdown-body hr { 
    margin: 1.5em 0 0.8em; height: 1px; border: none; background-color: var(--border-color); 
} 

.markdown-body img { 
    max-width: 100%; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin: 20px 0; 
} 

.markdown-body a { 
    color: var(--c-primary); border-bottom: 1px solid rgba(44, 123, 229, 0.3); 
} 
.markdown-body a:hover { border-bottom-color: var(--c-primary); } 

.markdown-body blockquote { 
    border-left: 4px solid var(--c-primary); background: #f8f9fa; padding: 15px 20px; 
    color: #555; margin: 20px 0; 
}

/* 修正：增加代码块和列表样式 */
.markdown-body ul, .markdown-body ol { margin-bottom: 1.5em; padding-left: 2em; list-style: inherit; }
.markdown-body pre { background: #f6f8fa; padding: 15px; border-radius: 4px; overflow-x: auto; margin-bottom: 1.5em; }
.markdown-body code { background: #f6f8fa; padding: 2px 5px; border-radius: 3px; font-family: monospace; font-size: 0.9em; }

.post-tags-container { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; } 
.tags-label { font-weight: bold; margin-right: 10px; color: #555; } 
.tag-pill { display: inline-block; background: #f1f1f1; padding: 5px 12px; font-size: 0.85rem; color: #666; border-radius: 20px; margin-right: 8px; } 
.tag-pill:hover { background: var(--c-primary); color: #fff; } 

.post-cta { 
    margin-top: 40px; 
    background: #eef7ff; 
    padding: 30px; 
    text-align: center; 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-color); 
    /* 修正：移除了语法错误的 ^[1]^ */
} 
.post-cta p { font-weight: 600; font-size: 1.1rem; color: var(--text-main); margin-bottom: 15px; } 
.small-btn { font-size: 0.9rem; padding: 8px 24px; background: var(--c-primary); color: white; border-radius: 4px;} 

.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; } 
.nav-prev, .nav-next { display: flex; flex-direction: column; max-width: 45%; } 
.nav-prev small, .nav-next small { color: #999; margin-bottom: 5px; font-size: 0.8rem; } 
.nav-prev span, .nav-next span { color: var(--text-main); font-weight: 500; } 
.nav-prev:hover span, .nav-next:hover span { color: var(--c-primary); } 

/* === FAQ === */ 
.faq-section { background: #fff; padding: 60px 0; border-top: 1px solid var(--border-color); } 
.faq-item { border-bottom: 1px solid #eee; } 
.faq-question { padding: 20px 0; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; color: var(--text-main); } 
.faq-question:hover { color: var(--c-primary); } 
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; } 
.faq-answer p { padding-bottom: 20px; color: var(--text-light); }

/* === 修正：404 页面样式 === */
.error-404 { 
    text-align: center; padding: 100px 0; 
}
.error-404 h1 { 
    font-size: 6rem; color: var(--c-primary); margin-bottom: 20px; font-weight: 700; line-height: 1; 
}
.error-404 p { 
    font-size: 1.2rem; color: var(--text-light); margin-bottom: 30px; 
}

/* === 修正：页脚样式 (原缺失) === */
.site-footer {
    background-color: #2b3035; /* 深色背景 */
    color: #adb5bd;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col a {
    display: block;
    color: #adb5bd;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #3e444a;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #868e96;
}
.footer-bottom a { display: inline-block; margin-left: 10px; }

/* === 修正：响应式适配 (Media Queries) === */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    /* 导航栏适配 */
    .desktop-nav { display: none; } /* 隐藏桌面菜单 */
    .mobile-menu-trigger { display: block; } /* 显示汉堡按钮 */
    
    /* 布局调整 */
    .hero-section { padding: 60px 0; }
    .hero-content h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    
    .single-post { padding: 20px; }
    .single-header h1 { font-size: 1.6rem; }
    
    .info-card { padding: 30px; }
    
    /* 底部调整 */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}