/*
Theme Name: 爱翻译官网 - Aifanyi CRM
Theme URI: https://aifanyicrm.com/
Author: WorkBuddy Clone
Author URI: https://codebuddy.cn
Description: 1:1 复刻 https://aifanyicrm.com/ 的 WordPress 自定义主题。原生 PHP 开发，搭配 Tailwind CSS v3，支持 ACF 自定义字段、FAQ 自定义文章类型、自定义菜单与 SEO。
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aifanyi
*/

/* 0. Tailwind CSS 入口 —— 已编译后通过 CDN 引入，此处保留原生 CSS 作为主题标识 */
/* Tailwind CSS v3 via CDN is enqueued in functions.php */

/* 1. 主题变量：全部取自原站 CSS 还原 */
:root {
    --theme-color: #08c;
    --theme-hover: #1162e8;
    --action-color: #206be7;
    --theme-base-color: #fff;
    --theme-body-bg-color: #f5f5f5;
    --theme-el-bg-color: #fff;
    --theme-black-color: #1a1a1a;
    --theme-gray-color: #666;
    --theme-light-color: #999;
    --theme-line-color: #ededed;
    --theme-border-color: #d9d9d9;
    --theme-border-radius-s: 3px;
    --theme-border-radius-m: 5px;
    --theme-border-radius-l: 8px;
    --theme-border-radius-xl: 12px;
    --theme-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
    --header-bg-color: #fff;
    --header-height: 64px;
    --container-width: 1200px;
}

/* 2. 基础重置与字体 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    color: #232323;
    font-family: var(--theme-font-family);
    font-size: 14px;
    line-height: 1.428571429;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--theme-body-bg-color);
    margin: 0;
}
body.header-fixed { padding-top: var(--header-height); }
a { color: var(--theme-color); text-decoration: none; transition: color .2s; }
a:hover { color: var(--theme-hover); }
img { max-width: 100%; height: auto; vertical-align: top; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* 3. 容器 */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* 4. 头部 */
.header {
    position: relative;
    width: 100%;
    height: var(--header-height);
    background: var(--header-bg-color);
    border-bottom: 0;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, .06);
    z-index: 999;
}
body.header-fixed .header { position: fixed; left: 0; top: 0; }
.header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    display: flex;
    align-items: center;
    height: var(--header-height);
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}
.logo img { display: block; height: 32px; width: auto; }
.logo a { color: var(--theme-black-color); display: flex; align-items: center; }
.navbar-collapse { display: flex; align-items: center; gap: 20px; }
.primary-menu .nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.primary-menu .nav > li > a {
    display: block;
    color: var(--theme-black-color);
    line-height: var(--header-height);
    padding: 0;
    background: none;
    white-space: nowrap;
}
.primary-menu .nav > li.active > a,
.primary-menu .nav > li > a:hover { color: var(--theme-color); background: none; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    font-size: 14px;
    color: #fff !important;
    background: #0477FE;
    border-radius: 30px;
    line-height: 36px !important;
    transition: opacity .2s, transform .2s;
}
.nav-cta:hover { color: #fff !important; opacity: .9; transform: translateY(-1px); }
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
}
.navbar-toggle .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #888;
    border-radius: 1px;
    transition: transform .3s, opacity .3s;
}
.navbar-toggle .icon-bar + .icon-bar { margin-top: 5px; }

/* 5. 按钮系统（复刻 .wpcom-btn） */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    padding: 9px 20px;
    border-radius: var(--theme-border-radius-m);
    cursor: pointer;
    transition: all .1s ease-out;
    white-space: nowrap;
    border: 1px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}
.btn-primary:hover { background: var(--theme-hover); border-color: var(--theme-hover); color: #fff; }
.btn-xl {
    border-radius: var(--theme-border-radius-l);
    font-size: 16px;
    line-height: 20px;
    padding: 13px 35px;
}
.btn-icon { margin-right: .3em; font-size: 1.1em; line-height: inherit; }
.load-more {
    display: inline-block;
    background: var(--theme-el-bg-color);
    border: 1px solid var(--theme-color);
    color: var(--theme-color) !important;
    padding: 9px 90px;
    border-radius: var(--theme-border-radius-m);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.load-more:hover { background: var(--theme-hover); border-color: var(--theme-hover); color: #fff !important; }

/* 6. 首页模块还原 */
.section { padding: 10px 0; }
.module-fullwidth { padding: 0; }
.hero-section {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 20px 0;
    margin-bottom: 20px;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-title { font-size: 50px; line-height: 1.2; margin: 70px 0 20px; }
.hero-title span { color: #0000ff; }
.hero-subtitle { font-size: 24px; color: #808080; line-height: 1.5; margin: 20px 0; }
.hero-subtitle strong { color: #808080; }
.hero-actions { margin-top: 70px; margin-bottom: 50px; display: flex; flex-wrap: wrap; gap: 20px; }
.hero-actions .btn { background: #0477FF; border-color: #0477FF; }
.hero-actions .btn:hover { background: #1162e8; border-color: #1162e8; }

.section-title { font-size: 42px; text-align: center; margin: 20px 0; }
.section-desc { font-size: 20px; color: #333; text-align: center; line-height: 1.8; margin-bottom: 20px; }

.why-text { font-size: 20px; color: #333; line-height: 1.8; text-align: center; }
.features-image img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.feature-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item h3 { font-size: 20px; color: #0000ff; margin: 0 0 8px; }
.feature-item p { font-size: 16px; color: #232323; line-height: 1.8; margin: 0; }

.advantage-card { padding: 10px; text-align: center; }
.advantage-card h3 { font-size: 20px; color: var(--theme-black-color); margin-bottom: 10px; }
.advantage-card p { font-size: 16px; color: #232323; line-height: 1.8; }

.cta-section { background: #0474F8; padding: 20px 0; margin: 20px 0; color: #fff; text-align: center; }
.cta-section .section-title { color: #fff; margin-bottom: 10px; }
.cta-section .section-desc { color: #fff; font-size: 16px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 70px; margin-bottom: 50px; }
.cta-actions .btn { background: #fff; color: #0578FE; border-color: #fff; }
.cta-actions .btn:hover { background: #f0f7ff; color: #0477FF; }

.news-section { padding: 20px 0; }
.news-section .section-title { margin-bottom: 20px; }

/* 7. 资讯列表（复刻 post-loop-image） */
.post-loop-image { display: flex; flex-wrap: wrap; margin: -10px -10px 10px; }
.post-loop-image .item { width: 25%; padding: 10px; box-sizing: border-box; }
.post-loop-image .item-inner {
    background: var(--theme-el-bg-color);
    border-radius: var(--theme-border-radius-l);
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, .12);
    overflow: hidden;
    transition: all .2s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.post-loop-image .item-inner:hover { box-shadow: 0 2px 10px 3px rgba(0, 0, 0, .08); transform: translateY(-3px); }
.post-loop-image .item-img { position: relative; overflow: hidden; aspect-ratio: 480/300; background: #f0f0f0; }
.post-loop-image .item-thumb { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.post-loop-image .item-category {
    position: absolute;
    left: 15px;
    top: 15px;
    background: rgba(0,0,0,.5);
    border-radius: var(--theme-border-radius-s);
    color: #fff;
    font-size: 12px;
    line-height: 14px;
    padding: 4px 8px;
}
.post-loop-image .item-category:hover { background: var(--theme-hover); color: #fff; }
.post-loop-image .item-title { font-size: 16px; font-weight: 500; margin: 0; padding: 15px; line-height: 1.4; }
.post-loop-image .item-title a { color: var(--theme-black-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 44.8px; }
.post-loop-image .item-title a:hover { color: var(--theme-hover); }
.post-loop-image .item-meta {
    color: var(--theme-light-color);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    line-height: 14px;
    padding: 0 15px 15px;
    margin-top: auto;
}
.load-more-wrap { width: 100%; padding: 20px 0; text-align: center; }

/* 8. 文章详情页 */
.wrap { padding: 20px 0; }
.entry-main { background: var(--theme-el-bg-color); border-radius: var(--theme-border-radius-l); padding: 30px; }
.entry-head { margin-bottom: 20px; }
.entry-title { font-size: 28px; font-weight: 600; line-height: 1.4; margin: 0 0 15px; color: var(--theme-black-color); }
.entry-info { color: var(--theme-light-color); font-size: 14px; }
.entry-info a { color: var(--theme-light-color); }
.entry-info a:hover { color: var(--theme-hover); }
.entry-info .dot { margin: 0 8px; }
.entry-excerpt { color: #666; font-size: 16px; line-height: 1.8; margin-bottom: 20px; padding: 15px; background: #fbfbfb; border-left: 3px solid var(--theme-line-color); }
.entry-content { font-size: 16px; line-height: 1.8; color: #232323; }
.entry-content p { margin-bottom: 24px; }
.entry-content h2 { font-size: 24px; margin: 30px 0 15px; color: var(--theme-black-color); }
.entry-content a { color: #0000cc; }
.entry-content img { display: block; max-width: 100%; height: auto; margin: 15px 0; }
.entry-copyright { color: #666; font-size: 14px; margin-top: 30px; padding: 15px; background: #f9f9f9; border-radius: var(--theme-border-radius-m); }
.entry-tag { margin-top: 20px; }
.entry-tag a { display: inline-block; background: #f5f5f5; color: var(--theme-gray-color); padding: 4px 10px; border-radius: var(--theme-border-radius-s); margin-right: 8px; font-size: 13px; }
.entry-tag a:hover { background: var(--theme-color); color: #fff; }
.entry-action { margin-top: 20px; }
.btn-zan { display: inline-flex; align-items: center; gap: 6px; color: var(--theme-gray-color); cursor: pointer; font-size: 14px; }
.entry-page { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--theme-line-color); }
.entry-page a { color: var(--theme-black-color); font-size: 15px; }
.entry-page a:hover { color: var(--theme-hover); }
.entry-page-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--theme-light-color); margin-top: 8px; }
.entry-related-title { font-size: 20px; margin: 30px 0 15px; }
.entry-related .item { border-bottom: 1px solid var(--theme-line-color); padding: 15px 0; }
.entry-related .item-title { font-size: 16px; margin-bottom: 8px; }
.entry-related .item-title a { color: var(--theme-black-color); }
.entry-related .item-title a:hover { color: var(--theme-hover); }
.entry-comments { margin-top: 30px; }

/* 9. FAQ 列表 */
.faq-list { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--theme-el-bg-color); border-radius: var(--theme-border-radius-l); box-shadow: 0 0 1px 0 rgba(0,0,0,.12); overflow: hidden; }
.faq-question {
    display: block;
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-black-color);
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: "+"; font-size: 20px; color: var(--theme-color); }
.faq-item.active .faq-question::after { content: "-"; }
.faq-answer { display: none; padding: 0 20px 20px; font-size: 15px; line-height: 1.8; color: #232323; }
.faq-item.active .faq-answer { display: block; }

/* 10. 底部 */
.footer { background: #2d3236; color: hsla(0,0%,100%,.7); padding: 50px 0; }
.footer a { color: inherit; }
.footer a:hover { color: hsla(0,0%,100%,.9); text-decoration: none; }
.footer-col-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.footer-nav { font-size: 14px; list-style: none; margin: 0 0 12px; padding: 0; }
.footer-nav li { display: inline-block; line-height: 18px; margin-right: 10px; }
.footer-nav li::after { content: "|"; display: inline-block; font-size: 12px; line-height: 18px; opacity: .8; margin-left: 10px; vertical-align: top; }
.footer-nav li:last-child::after { display: none; }
.footer .copyright { font-size: 14px; }
.footer .copyright p { margin: 0 0 5px; }

/* 11. 悬浮按钮 */
.action { position: fixed; right: 20px; bottom: 20%; display: flex; flex-direction: column; width: 40px; z-index: 999; }
.action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background: var(--theme-el-bg-color);
    border-top: 1px solid rgba(0,0,0,.08);
    color: var(--theme-color);
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.action-item:first-child { border-top: 0; border-radius: var(--theme-border-radius-m) var(--theme-border-radius-m) 0 0; }
.action-item:last-child { border-radius: 0 0 var(--theme-border-radius-m) var(--theme-border-radius-m); }
.action-item:hover { background: var(--theme-hover); color: #fff; }
.action-item.gotop { opacity: 0; pointer-events: none; }
.action-item.gotop.active { opacity: 1; pointer-events: auto; }

/* ================================================================
   wpcom-btn 按钮系统（原站命名，完整还原）
   ================================================================ */
.wpcom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--theme-border-radius-m);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease-out;
    white-space: nowrap;
    text-decoration: none;
}
.wpcom-btn-xl { font-size: 16px; padding: 13px 36px; border-radius: var(--theme-border-radius-l); }
.wpcom-btn-sm { font-size: 13px; padding: 6px 16px; }
.wpcom-btn-primary { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.wpcom-btn-primary:hover { background: var(--theme-hover); border-color: var(--theme-hover); color: #fff; }
.wpcom-btn-outline {
    background: transparent;
    border-color: var(--theme-color);
    color: var(--theme-color);
}
.wpcom-btn-outline:hover { background: var(--theme-color); color: #fff; }
.wpcom-btn-white { background: #fff; border-color: #fff; color: #0474F8; }
.wpcom-btn-white:hover { background: #f0f7ff; color: #0474F8; }

/* ================================================================
   Hero 模块
   ================================================================ */
.hero-section {
    background-image: url(assets/images/banner1.webp);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    min-height: 580px;
    display: flex;
    align-items: center;
}
.hero-section .container { padding-top: 40px; padding-bottom: 40px; }
.hero-section .row { display: flex; align-items: center; flex-wrap: wrap; margin: 0 -15px; }
.hero-section [class*="col-"] { padding: 0 15px; }
.hero-content { padding: 40px 0; }
.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #1a1a1a;
}
.hero-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #888;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }
.hero-meta .fa { color: var(--theme-color); }
.hero-image { display: flex; align-items: center; justify-content: center; }
.hero-screenshot { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.12); }

/* ================================================================
   平台徽标条
   ================================================================ */
.platform-bar {
    background: #f8f9fb;
    border-bottom: 1px solid var(--theme-line-color);
    padding: 14px 0;
}
.platform-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.platform-bar-label { font-size: 13px; color: #888; white-space: nowrap; }
.platform-icons { display: flex; gap: 16px; flex-wrap: wrap; }
.platform-item {
    font-size: 13px;
    color: #555;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    white-space: nowrap;
}
.platform-item .fa { margin-right: 4px; color: var(--theme-color); }

/* ================================================================
   通用 section 样式
   ================================================================ */
.modules-section { padding: 70px 0; }
.modules-fullwidth { width: 100%; }
.bg-light { background: #f8f9fb; }
.text-center { text-align: center; }

.section-header { margin-bottom: 48px; }
.section-header.text-center { text-align: center; }
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}
.section-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.section-header.text-center { display: block; }
.section-header-inner { flex: 1; }
.more-link { font-size: 14px; color: var(--theme-color); white-space: nowrap; flex-shrink: 0; margin-left: 20px; }
.more-link:hover { color: var(--theme-hover); }

/* ================================================================
   为什么要用 - Why Section
   ================================================================ */
.why-cards { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.why-cards .col-md-4 { padding: 0 15px; }
.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.why-icon { font-size: 40px; margin-bottom: 20px; }
.why-card-title { font-size: 20px; font-weight: 600; margin: 0 0 12px; color: #1a1a1a; }
.why-card-desc { font-size: 15px; color: #666; line-height: 1.7; margin: 0; }

/* ================================================================
   核心功能 - Features Section
   ================================================================ */
.features-grid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.features-grid [class*="col-"] { padding: 0 15px; margin-bottom: 30px; }
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    height: 100%;
    border: 1px solid #f0f0f0;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 4px 20px rgba(8,136,204,.12);
    transform: translateY(-3px);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f4ff 0%, #cce8ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--theme-color);
}
.feature-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: #1a1a1a; }
.feature-desc { font-size: 14px; color: #666; line-height: 1.7; margin: 0; }

/* ================================================================
   八大优势 - Advantage Section
   ================================================================ */
.advantage-row { display: flex; flex-wrap: wrap; align-items: center; margin: 0 -15px; }
.advantage-list-col, .advantage-image-col { padding: 0 15px; }
.advantage-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.advantage-item:last-child { border-bottom: none; }
.advantage-num {
    font-size: 32px;
    font-weight: 700;
    color: #e8f0ff;
    line-height: 1;
    min-width: 50px;
    padding-top: 4px;
    font-family: 'Arial Narrow', Arial, sans-serif;
}
.advantage-content { flex: 1; }
.advantage-item-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: #1a1a1a; }
.advantage-item-desc { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }
.advantage-img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.1); }

/* ================================================================
   产品截图
   ================================================================ */
.screenshot-wrap { padding: 20px 0; }
.screenshot-img {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(0,0,0,.12);
    border: 1px solid #e8e8e8;
}

/* ================================================================
   用户评价 - Testimonial
   ================================================================ */
.testimonial-cards { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.testimonial-cards [class*="col-"] { padding: 0 15px; margin-bottom: 24px; }
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.testimonial-stars { color: #faad14; margin-bottom: 16px; font-size: 16px; }
.testimonial-stars .fa { margin-right: 2px; }
.testimonial-content { font-size: 15px; color: #444; line-height: 1.7; flex: 1; margin: 0 0 20px; font-style: italic; }
.testimonial-author { margin-top: auto; }
.testimonial-name { display: block; font-weight: 600; font-size: 14px; color: #1a1a1a; }
.testimonial-role { font-size: 13px; color: #888; }

/* ================================================================
   CTA 全宽横幅（#modules-20）
   ================================================================ */
.cta-section {
    background: #0474F8;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.3;
}
.cta-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    margin: 0 0 40px;
    line-height: 1.7;
}
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   新闻动态 - Post Loop Cards（新版）
   ================================================================ */
.post-loop { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.post-loop-item { padding: 0 12px; margin-bottom: 24px; }
.post-loop-card {
    background: #fff;
    border-radius: var(--theme-border-radius-l);
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.post-loop-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.post-loop-image img { display: block; width: 100%; height: 180px; object-fit: cover; }
a.post-loop-image { display: block; overflow: hidden; }
a.post-loop-image img { transition: transform .3s; }
a.post-loop-image:hover img { transform: scale(1.04); }
.post-loop-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-cat {
    display: inline-block;
    font-size: 12px;
    color: var(--theme-color);
    background: #e8f4ff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.item-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; line-height: 1.5; }
.item-title a {
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.item-title a:hover { color: var(--theme-color); }
.item-meta { font-size: 12px; color: #aaa; margin-bottom: 10px; }
.item-meta span { margin-right: 12px; }
.item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more { font-size: 13px; color: var(--theme-color); margin-top: auto; }
.read-more:hover { color: var(--theme-hover); }
.no-posts { color: #aaa; padding: 40px 0; }

/* ================================================================
   FAQ（新版手风琴）
   ================================================================ */
.faq-accordion { max-width: 800px; margin: 0 auto 40px; }
.faq-page-accordion { max-width: 100%; }
.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    overflow: hidden;
}
.faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color .2s;
}
.faq-question:hover { color: var(--theme-color); }
.faq-item.active .faq-question { color: var(--theme-color); }
.faq-icon { flex-shrink: 0; margin-left: 12px; font-size: 18px; transition: transform .3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.faq-more { margin-top: 32px; }
.faq-cta { margin-top: 48px; }
.faq-cta p { font-size: 16px; color: #888; margin-bottom: 16px; }
.faq-page-header { padding: 60px 0 40px; }
.faq-page-header .page-title { font-size: 36px; font-weight: 700; margin: 0 0 12px; }
.faq-page-header .page-subtitle { font-size: 16px; color: #888; }

/* ================================================================
   分页 / 面包屑 / 归档页
   ================================================================ */
.breadcrumb-nav {
    font-size: 13px;
    color: #aaa;
    padding: 16px 0 8px;
    margin-bottom: 20px;
}
.breadcrumb-nav a { color: #aaa; }
.breadcrumb-nav a:hover { color: var(--theme-color); }
.breadcrumb-sep { margin: 0 6px; font-size: 12px; }
.breadcrumb-current { color: #555; }

.archive-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--theme-color); }
.archive-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.archive-desc { font-size: 15px; color: #666; margin: 0; }

.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 3px;
    border: 1px solid var(--theme-border-color);
    border-radius: var(--theme-border-radius-m);
    font-size: 14px;
    color: #555;
    transition: all .2s;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.pagination-wrap { text-align: center; padding: 24px 0; }

/* ================================================================
   侧边栏
   ================================================================ */
.sidebar { padding-left: 10px; }
.widget { background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-color);
}
.widget-about .sidebar-logo { max-height: 36px; width: auto; margin-bottom: 14px; }
.widget-about p { font-size: 14px; color: #666; line-height: 1.6; margin: 0 0 16px; }
.widget-cat-list li { border-bottom: 1px solid #f5f5f5; }
.widget-cat-list li:last-child { border-bottom: none; }
.widget-cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #444;
}
.widget-cat-list li a:hover { color: var(--theme-color); }
.widget-cat-list li.active a { color: var(--theme-color); font-weight: 600; }
.cat-count { background: #f0f0f0; color: #888; border-radius: 10px; padding: 1px 7px; font-size: 12px; }
.recent-posts-list { display: flex; flex-direction: column; gap: 14px; }
.recent-post-item { display: flex; gap: 12px; }
.recent-post-thumb { flex-shrink: 0; width: 72px; height: 54px; overflow: hidden; border-radius: 6px; }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-post-info { flex: 1; }
.recent-post-title { font-size: 14px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-post-title:hover { color: var(--theme-color); }
.recent-post-date { font-size: 12px; color: #aaa; display: block; margin-top: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-item { font-size: 13px; color: #666; background: #f5f5f5; padding: 4px 10px; border-radius: 4px; }
.tag-cloud-item:hover { background: var(--theme-color); color: #fff; }

/* ================================================================
   文章详情页（补充）
   ================================================================ */
.page-container { padding: 30px 0; }
.entry-thumbnail { margin-bottom: 24px; }
.entry-thumb-img { width: 100%; height: auto; border-radius: 8px; max-height: 400px; object-fit: cover; }
.entry-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #aaa; margin-top: 12px; }
.entry-info .fa { margin-right: 4px; }
.entry-info a { color: #aaa; }
.entry-info a:hover { color: var(--theme-color); }
.entry-page-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding: 24px;
    background: #f8f9fb;
    border-radius: 8px;
}
.nav-label { font-size: 13px; color: #aaa; margin-right: 8px; }
.entry-page-nav a { font-size: 15px; color: #333; }
.entry-page-nav a:hover { color: var(--theme-color); }
.entry-related-posts { margin-top: 36px; }
.related-title { font-size: 20px; font-weight: 600; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--theme-color); }
.related-item { margin-bottom: 16px; }
.related-thumb { display: block; overflow: hidden; border-radius: 8px; margin-bottom: 8px; height: 120px; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-item-title { font-size: 14px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item-title:hover { color: var(--theme-color); }
.no-results { text-align: center; padding: 60px 0; color: #aaa; }
.no-results a { margin-top: 20px; display: inline-block; }

/* ================================================================
   404 页面
   ================================================================ */
.error-404 { padding: 100px 0 80px; }
.error-code { font-size: 140px; font-weight: 900; color: #e8e8e8; line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 32px; font-weight: 700; margin: 0 0 16px; }
.error-desc { font-size: 16px; color: #888; line-height: 1.8; margin: 0 0 32px; }
.error-actions { display: flex; justify-content: center; gap: 16px; }

/* ================================================================
   吸顶效果（JS 添加 .header-sticky）
   ================================================================ */
.header-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,.1) !important;
    animation: slideDown .3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
body.header-fixed { padding-top: var(--header-height); }

/* Bootstrap 3 栅格兼容 */
.row { display: flex; flex-wrap: wrap; margin-left: -15px; margin-right: -15px; }
.col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-12,
.col-sm-6, .col-sm-12 { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; box-sizing: border-box; }
.col-md-3  { width: 25%; }
.col-md-4  { width: 33.333%; }
.col-md-6  { width: 50%; }
.col-md-8  { width: 66.666%; }
.col-md-9  { width: 75%; }
.col-md-12 { width: 100%; }

/* 12. 响应式 */
@media (max-width: 1199px) {
    :root { --container-width: 970px; }
    .post-loop-image .item { width: 33.333%; }
}
@media (max-width: 991px) {
    :root { --container-width: 750px; }
    .post-loop-image .item { width: 50%; }
    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 20px; }
    .section-title { font-size: 32px; }
    .section-desc { font-size: 18px; }
}
@media (max-width: 767px) {
    :root { --container-width: 100%; }
    body.header-fixed { padding-top: 0; }
    .header { height: auto; min-height: 50px; position: relative; }
    .header > .container { flex-wrap: wrap; height: auto; padding: 8px 10px; }
    .logo { height: 50px; }
    .logo img { height: 26px; }
    .navbar-toggle { display: flex; }
    .navbar-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 0;
        border-top: 1px solid var(--theme-line-color);
    }
    .navbar-collapse.open { display: flex; }
    .primary-menu .nav { flex-direction: column; gap: 0; width: 100%; }
    .primary-menu .nav > li { width: 100%; }
    .primary-menu .nav > li > a { line-height: 44px; border-bottom: 1px solid var(--theme-line-color); }
    .nav-cta { margin: 10px 0; }
    .hero-title { font-size: 28px; margin-top: 30px; }
    .hero-subtitle { font-size: 18px; }
    .hero-actions { margin-top: 30px; justify-content: center; }
    .features-grid { flex-direction: column; }
    .post-loop-image .item { width: 100%; }
    .entry-main { padding: 20px; }
    .entry-title { font-size: 22px; }
    .footer { padding: 30px 0; }
    .action { display: none; }
    .why-cards .col-md-4,
    .features-grid [class*="col-"],
    .testimonial-cards [class*="col-"],
    .post-loop .col-md-3,
    .post-loop .col-md-4 { width: 100%; }
    .advantage-row .col-md-6 { width: 100%; }
    .advantage-image-col { margin-top: 30px; }
    .col-md-3, .col-md-4, .col-md-6,
    .col-md-8, .col-md-9 { width: 100%; }
    .col-sm-6 { width: 50%; }
    .section-title { font-size: 26px; }
    .cta-title { font-size: 26px; }
    .hero-title { font-size: 28px; margin-top: 20px; }
    .hero-subtitle { font-size: 15px; }
    .hero-image { margin-top: 30px; }
    .error-code { font-size: 80px; }
    .sidebar { padding-left: 0; margin-top: 30px; }
}

@media (max-width: 575px) {
    .col-sm-6 { width: 100%; }
    .hero-actions { flex-direction: column; }
    .hero-actions .wpcom-btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; align-items: center; }
    .platform-icons { gap: 8px; }
}

/* 锚点偏移：避开固定导航栏（header 高度 64px） */
.section-anchor {
    display: block;
    height: 0;
    overflow: hidden;
    scroll-margin-top: var(--header-height, 64px);
}

/* ================================================================
   FAQ 单页（/faq/123）
   ================================================================ */
.faq-single {
    max-width: 800px;
    margin: 40px auto;
}

.faq-single-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color, #08c);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-single-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.faq-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.faq-single-content p {
    margin-bottom: 16px;
}

.faq-single-content h3,
.faq-single-content h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #222;
}

.faq-single-back {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* FAQ 归档列表页（/faq/） */
.faq-page-header {
    margin-bottom: 30px;
}

.faq-page-accordion {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-page-accordion .faq-item {
    border: 1px solid #eee;
    border-bottom: none;
}

.faq-page-accordion .faq-item:last-child {
    border-bottom: 1px solid #eee;
}

.faq-page-accordion .faq-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.faq-page-accordion .faq-question:hover {
    background: #f5f5f5;
}

.faq-page-accordion .faq-question[aria-expanded="true"] {
    background: var(--theme-color, #08c);
    color: #fff;
}

.faq-page-accordion .faq-answer {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    line-height: 1.8;
    color: #555;
}

.faq-cta {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 30px;
    background: #f0f7ff;
    border-radius: 12px;
}

.faq-cta p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}
