/* ==========================================================================
   pages-2026.css — 内容页缺失组件样式补全
   本表补齐改版后遗失的页面级组件样式（文章详情、技能库、百科枢纽、政策页等），
   须晚于 style.css / chrome-2026.css 加载。
   ========================================================================== */

/* --- 1. 全站 CSS 变量别名（页面内联样式大量引用的简名 token） --- */
:root {
    --primary: #FF6A00;
    --primary-hover: #E25A00;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --transition-fast: all 0.2s ease;
}

/* --- 2. 通用按钮补充 --- */
.btn-green {
    background-color: #059669;
    color: #fff;
}
.btn-green:hover {
    background-color: #047857;
    color: #fff;
}
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* --- 3. 标签胶囊（文章分类角标） --- */
.article-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #F1F5F9;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
}
.article-card-tag.tag-blue   { background: #EFF6FF; color: #1D4ED8; }
.article-card-tag.tag-green  { background: #ECFDF5; color: #047857; }
.article-card-tag.tag-orange { background: #FFF7ED; color: #C2410C; }
.article-card-tag.tag-red    { background: #FEF2F2; color: #B91C1C; }
.article-card-tag.tag-purple { background: #F5F3FF; color: #6D28D9; }

/* --- 4. 文章详情页布局（article-detail-layout 体系，全站百科/白皮书通用） --- */
.article-breadcrumb {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 22px;
    line-height: 1.6;
}
.article-breadcrumb a {
    color: #64748B;
}
.article-breadcrumb a:hover {
    color: var(--primary);
}
.article-breadcrumb span {
    color: #475569;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: flex-start;
}
@media (max-width: 991px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }
}

.article-main-content {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    min-width: 0;
}
@media (max-width: 767px) {
    .article-main-content {
        padding: 24px 20px;
    }
}

.article-title-block {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 22px;
    margin-bottom: 26px;
}
.article-title-block h1 {
    font-size: 27px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.45;
    margin: 14px 0 12px;
}
@media (max-width: 767px) {
    .article-title-block h1 {
        font-size: 22px;
    }
}

.article-author-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12.5px;
    color: #94A3B8;
}

/* 正文排版 */
.article-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.85;
}
.article-body h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    margin: 34px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    line-height: 1.5;
}
.article-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1E293B;
    margin: 26px 0 10px;
}
.article-body p {
    margin: 0 0 16px;
}
.article-body ul,
.article-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 8px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.article-body table {
    width: 100%;
}

/* 摘要/提示 callout */
.article-callout {
    background: #EFF6FF;
    border-left: 4px solid #2563EB;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #334155;
}
.article-callout.callout-green  { background: #ECFDF5; border-left-color: #059669; }
.article-callout.callout-orange { background: #FFF7ED; border-left-color: #EA580C; }
.article-callout.callout-blue   { background: #EFF6FF; border-left-color: #2563EB; }
.article-callout.callout-purple { background: #F5F3FF; border-left-color: #7C3AED; }

/* 右侧边栏 */
.article-sidebar {
    min-width: 0;
}
.sidebar-widget {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.sidebar-widget h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 12px;
    line-height: 1.5;
}
.sidebar-widget ul {
    margin: 0;
}
.sidebar-widget .btn {
    box-sizing: border-box;
    display: block;
    text-transform: none;
    letter-spacing: 0;
}

/* 政策专题页侧栏（sticky 卡片 + 顾问咨询盒） */
.sidebar-sticky-card {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-contact-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
.sidebar-contact-box h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 10px;
}
.sidebar-contact-box p {
    font-size: 13px;
    color: #64748B;
    line-height: 1.6;
    margin: 0 0 14px;
}

/* 英文站文章侧栏留资表单 */
.sidebar-form .form-control,
.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 13.5px;
    font-family: inherit;
    color: #334155;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}

/* 文中目录（TOC）与 FAQ 手风琴的兜底样式 */
.toc-container {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 32px;
}
.faq-accordion-group .faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    padding: 0;
}

/* 内联 flex 布局文章页（article-layout 体系）的移动端堆叠兜底 */
@media (max-width: 991px) {
    .article-layout {
        flex-direction: column !important;
    }
    .article-layout .article-sidebar {
        width: 100% !important;
    }
    .sidebar-sticky-box,
    .sidebar-sticky-card {
        position: static !important;
    }
    .article-layout .article-main {
        padding: 24px 20px !important;
    }
}

/* --- 5. Accio 技能库页（skills.php） --- */
.skills-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}
.filter-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-tab-btn:hover {
    border-color: #10B981;
    color: #047857;
}
.filter-tab-btn.active {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}

.skill-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.skill-card:hover {
    transform: translateY(-4px);
    border-color: #10B981;
    box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.12);
}
.skill-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.5;
    margin: 0 0 10px;
}
.skill-card > p {
    font-size: 13.5px;
    color: #64748B;
    line-height: 1.7;
    margin: 0 0 14px;
}
.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.skill-category-badge {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #F1F5F9;
    padding: 3px 10px;
    border-radius: 4px;
}
.skill-model-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #047857;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.skill-features-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    flex-grow: 1;
}
.skill-features-list li {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 7px;
}
.skill-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #F1F5F9;
    padding-top: 14px;
    margin-top: auto;
}
.skill-download-stats {
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
}
.btn-get-skill {
    border: none;
    background: none;
    padding: 0;
    color: #059669;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}
.btn-get-skill:hover {
    color: #047857;
    text-decoration: underline;
}

/* 单个技能申领弹窗 */
.skill-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.skill-modal-overlay.active {
    display: flex;
}
.skill-modal-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
.skill-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px;
}
.skill-modal-close:hover {
    color: #0F172A;
}

/* --- 6. 百科枢纽页（articles.php）检索工具条与仪表盘 --- */
.hero-sub-p {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 26px;
}
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-width: 820px;
    margin: 0 auto;
}
.metric-glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}
.metric-val {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
}
.metric-lbl {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

.articles-filter-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 22px 0;
    position: sticky;
    top: var(--c-header-h, 68px);
    z-index: 40;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.filter-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.search-input-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}
.search-input-field {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 38px 11px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    color: #334155;
    background: #F8FAFC;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-input-field:focus {
    outline: none;
    background: #FFFFFF;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.quick-chips-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- 7. Accio 商业团队页（accio.php）横幅与 Bento 强调色 --- */
.banner-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 14px;
    padding: 22px 26px;
    margin-top: 28px;
}
.banner-cta-card h4 {
    margin-top: 0;
}
.banner-cta-card p {
    margin: 0;
}
.policy-bento-card.bento-green  { border-top: 3px solid #10B981; }
.policy-bento-card.bento-orange { border-top: 3px solid #F97316; }
.policy-bento-card.bento-blue   { border-top: 3px solid #3B82F6; }
.policy-bento-card.bento-purple { border-top: 3px solid #8B5CF6; }
.policy-bento-card.bento-cyan   { border-top: 3px solid #06B6D4; }
.policy-bento-card.bento-red    { border-top: 3px solid #EF4444; }

/* --- 8. Hero 标题排版与渐变字 --- */
.hero-gradient-text {
    background: linear-gradient(90deg, #FDBA74 0%, #FF6A00 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #FDBA74;
}
.hero-title-break {
    display: inline;
}
@media (max-width: 640px) {
    .hero-title-separator {
        display: none;
    }
    .hero-title-break {
        display: block;
        margin-top: 4px;
    }
}
