/*
Theme Name: XYQC 新能源汽车网
Theme URI: https://www.xyqc.net/
Author: XYQC
Author URI: https://www.xyqc.net/
Description: 新能源汽车行业资讯 + B2B招商加盟 + 车商/品牌宣传推广综合平台主题。原生 PHP/CSS/JS，无需构建工具。
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.7
Text Domain: xyqc
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   00 · 变量与基础
   ============================================================ */
:root {
    --ink:        #0B1B2B;
    --ink-2:      #1F2D3D;
    --muted:      #6B7A8D;
    --line:       #E3E9EF;
    --line-2:     #EEF2F6;
    --bg:         #FFFFFF;
    --bg-soft:    #F5F8FA;
    --bg-deep:    #0A2540;
    --brand:      #00B386;
    --brand-dark: #007A5E;
    --brand-soft: #E6F8F2;
    --accent:     #FF6B2C;
    --accent-soft:#FFF1E8;
    --radius:     12px;
    --radius-sm:  8px;
    --shadow:     0 8px 28px rgba(11, 27, 43, .08);
    --shadow-lg:  0 18px 48px rgba(11, 27, 43, .14);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { margin: 0 0 .6em; color: var(--ink); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; } h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.xyqc-wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.xyqc-wrap--narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   01 · 按钮 / 标签 / 占位
   ============================================================ */
.xyqc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    text-align: center;
}
.xyqc-btn:hover { transform: translateY(-1px); color: inherit; }
.xyqc-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 107, 44, .24); }
.xyqc-btn--primary:hover { background: #F05A1B; color: #fff; }
.xyqc-btn--brand { background: var(--brand); color: #fff; }
.xyqc-btn--brand:hover { background: var(--brand-dark); color: #fff; }
.xyqc-btn--dark { background: var(--ink); color: #fff; }
.xyqc-btn--dark:hover { background: var(--bg-deep); color: #fff; }
.xyqc-btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.xyqc-btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.xyqc-btn--sm { padding: 7px 14px; font-size: 13px; }
.xyqc-btn--block { width: 100%; }

.xyqc-tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 1.6;
    background: var(--brand-soft); color: var(--brand-dark);
}
.xyqc-tag--accent { background: var(--accent-soft); color: #C74A11; }
.xyqc-tag--muted { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.xyqc-placeholder {
    display: inline-block; padding: 2px 9px; border: 1px dashed var(--line);
    border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-size: 12px;
}
.xyqc-notice {
    padding: 12px 16px; margin: 0 0 22px; border-radius: var(--radius-sm);
    border-left: 3px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-size: 14px;
}
.xyqc-notice--error { border-color: #D64545; background: #FDECEC; color: #A52A2A; }

/* ============================================================
   02 · 页头 / 导航
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header-top { background: var(--bg-deep); color: rgba(255,255,255,.72); font-size: 12px; }
.header-top .xyqc-wrap { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.header-top a { color: rgba(255,255,255,.72); }
.header-top a:hover { color: #fff; }
.header-top-links { display: flex; gap: 18px; }

.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-brand img { max-height: 46px; width: auto; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-brand-name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.site-brand-name em { font-style: normal; color: var(--brand); }
.site-brand-sub { font-size: 10px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }

.header-search { flex: 1; max-width: 420px; position: relative; min-width: 0; }
.header-search form { display: flex; align-items: stretch; }
.header-search input[type="search"] {
    flex: 1 1 auto; min-width: 0; width: auto; height: 40px; padding: 0 14px; border: 1px solid var(--line);
    border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--bg-soft); color: var(--ink);
}
.header-search input[type="search"]:focus { border-color: var(--brand); outline: none; background: #fff; }
.header-search button {
    flex: 0 0 auto; white-space: nowrap;
    height: 40px; padding: 0 18px; border: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--ink); color: #fff; font-weight: 600; cursor: pointer;
}
.header-search button:hover { background: var(--brand-dark); }
.header-search-hint { position: absolute; left: 14px; top: 100%; font-size: 11px; color: var(--muted); display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .xyqc-btn--primary { box-shadow: none; }

.site-nav { border-top: 1px solid var(--line-2); }
.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block; padding: 13px 20px; font-size: 15px; font-weight: 600; color: var(--ink);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-ancestor > a {
    color: var(--brand-dark); border-bottom-color: var(--brand);
}
.nav-menu .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 70; min-width: 190px;
    list-style: none; margin: 0; padding: 8px; background: #fff;
    border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 12px; font-size: 14px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
.nav-menu .sub-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-menu .menu-item--cta > a { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); }

/* ============================================================
   03 · 首页 Hero（左焦点资讯 + 右招商快捷通道）
   ============================================================ */
.section { padding: 54px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: .32em; bottom: .32em; width: 4px; border-radius: 2px; background: var(--brand); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-more { font-size: 14px; color: var(--brand-dark); font-weight: 600; white-space: nowrap; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding: 28px 0 8px; }
.hero-main { min-width: 0; }
.hero-slides { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-deep); }
.hero-slide { display: none; position: relative; }
.hero-slide.is-active { display: block; }
.hero-slide img { width: 100%; height: 420px; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,64,.05) 30%, rgba(10,37,64,.88) 100%); }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 30px; color: #fff; }
.hero-caption .xyqc-tag { margin-right: 10px; }
.hero-caption h2 { color: #fff; font-size: 26px; margin: 10px 0 6px; }
.hero-caption h2 a { color: #fff; }
.hero-caption h2 a:hover { color: var(--brand); }
.hero-caption p { margin: 0; color: rgba(255,255,255,.78); font-size: 13px; }
.hero-dots { position: absolute; right: 20px; top: 18px; z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--brand); width: 20px; border-radius: 5px; }
.hero-noimage { height: 420px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 14px; background: linear-gradient(135deg, #0A2540, #004E42); }

.hero-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.hero-thumb { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.hero-thumb:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.hero-thumb-media { width: 88px; height: 64px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.hero-thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb-body { min-width: 0; }
.hero-thumb-body h4 { font-size: 14px; margin: 0 0 4px; line-height: 1.45; }
.hero-thumb-body span { font-size: 11px; color: var(--muted); }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-quick { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.hero-quick-head { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; padding: 16px 18px; }
.hero-quick-head h3 { color: #fff; font-size: 17px; margin: 0 0 2px; }
.hero-quick-head p { margin: 0; font-size: 12px; color: rgba(255,255,255,.82); }
.hero-quick-list { list-style: none; margin: 0; padding: 8px 12px; }
.hero-quick-list li { border-bottom: 1px dashed var(--line); }
.hero-quick-list li:last-child { border-bottom: 0; }
.hero-quick-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 6px; font-size: 14px; }
.hero-quick-list a span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hero-quick-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line-2); }
.hero-quick-foot .xyqc-btn { width: 100%; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); text-align: center; }
.hero-stats div strong { display: block; font-size: 18px; color: var(--ink); }
.hero-stats div span { font-size: 11px; color: var(--muted); }

/* ============================================================
   04 · 卡片网格
   ============================================================ */
.xyqc-grid { display: grid; gap: 20px; }
.xyqc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xyqc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xyqc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.post-card, .project-card, .vehicle-card, .brand-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover, .project-card:hover, .vehicle-card:hover, .brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-thumb { display: block; position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card-thumb img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-thumb img, .project-card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb--empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #E9F3F7, #DFF3EC); color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.card-thumb-badge { position: absolute; left: 10px; top: 10px; z-index: 2; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card-title { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand-dark); }
.card-excerpt { font-size: 13px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: auto; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }

.project-card .card-body { padding-top: 14px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.project-meta span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; color: var(--muted); }
.project-brand { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.project-card--gold { border-color: #F4C89A; box-shadow: 0 8px 26px rgba(255, 107, 44, .12); }
.project-card--gold .card-thumb-badge { position: absolute; }

.vehicle-rank { position: absolute; left: 10px; top: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vehicle-spec { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.brand-card .card-thumb { aspect-ratio: 16 / 9; }

/* ============================================================
   05 · 频道横幅 / 面包屑 / 栏目导航
   ============================================================ */
.page-hero { background: linear-gradient(120deg, var(--bg-deep), #00463D); color: #fff; padding: 44px 0 40px; }
.page-hero h1 { color: #fff; font-size: 32px; margin: 0 0 10px; }
.page-hero p { margin: 0; color: rgba(255,255,255,.76); max-width: 760px; font-size: 14px; }
.page-hero .xyqc-tag { margin-bottom: 12px; }
.breadcrumb { font-size: 12px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb span { margin: 0 6px; color: var(--line); }

.channel-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.channel-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: #fff; }
.channel-nav a:hover, .channel-nav a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; padding: 40px 0 60px; }
.content-main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.side-box h3 { font-size: 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; line-height: 1.5; }
.side-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.side-box .xyqc-btn { margin-top: 14px; }
.side-cta { background: linear-gradient(140deg, #00463D, var(--brand-dark)); color: #fff; border: 0; }
.side-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,.18); }
.side-cta p { font-size: 13px; color: rgba(255,255,255,.8); }
.side-cta .xyqc-btn { background: #fff; color: var(--brand-dark); }

/* ============================================================
   06 · 筛选器
   ============================================================ */
.filter-bar { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; margin-bottom: 26px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.filter-group > label { font-size: 12px; font-weight: 600; color: var(--muted); }
.filter-group select, .filter-group input {
    height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); color: var(--ink); width: 100%;
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--brand); outline: none; background: #fff; }
.filter-actions { display: flex; gap: 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.filter-chips a { padding: 5px 12px; font-size: 13px; border-radius: 6px; background: var(--bg-soft); color: var(--ink-2); }
.filter-chips a:hover, .filter-chips a.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.result-count { font-size: 13px; color: var(--muted); margin: 0 0 16px; }

/* ============================================================
   07 · 表单 / 留资
   ============================================================ */
.xyqc-lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.xyqc-lead-form--compact { padding: 0; border: 0; background: transparent; }
.xyqc-lead-title { font-size: 19px; margin: 0 0 4px; }
.xyqc-lead-note { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.xyqc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xyqc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.xyqc-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.xyqc-field em { font-style: normal; color: var(--accent); }
.xyqc-field input, .xyqc-field select, .xyqc-field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px;
    background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
.xyqc-field input:focus, .xyqc-field select:focus, .xyqc-field textarea:focus { border-color: var(--brand); outline: none; background: #fff; }
.xyqc-field textarea { resize: vertical; }
.xyqc-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.xyqc-agree a { color: var(--brand-dark); text-decoration: underline; }
.xyqc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xyqc-lead-submit { min-height: 44px; }
.xyqc-lead-result { margin: 12px 0 0; font-size: 13px; min-height: 18px; }
.xyqc-lead-result.is-ok { color: var(--brand-dark); }
.xyqc-lead-result.is-error { color: #C0392B; }
.xyqc-lead-target { font-size: 13px; color: var(--muted); background: var(--bg-soft); padding: 8px 12px; border-radius: 6px; margin: 0 0 14px; }

.xyqc-contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.xyqc-contact-card h3 { margin: 0 0 14px; }
.xyqc-contact-card ul { list-style: none; margin: 0; padding: 0; }
.xyqc-contact-card li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.xyqc-contact-card li span { color: var(--muted); flex-shrink: 0; }
.xyqc-contact-card li strong { font-weight: 600; text-align: right; }
.xyqc-contact-qr { margin-top: 18px; text-align: center; }
.xyqc-contact-qr img { width: 160px; height: 160px; object-fit: contain; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; }
.xyqc-contact-qr p { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* ============================================================
   08 · 表格 / 服务模块 / 步骤
   ============================================================ */
.xyqc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.xyqc-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.xyqc-table th, .xyqc-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.xyqc-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
.xyqc-table tr:last-child td { border-bottom: 0; }
.xyqc-table td strong { color: var(--accent); }
.table-hint { display: none; font-size: 12px; color: var(--muted); margin: 0 0 8px; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-card .num { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--brand); }
.service-card h3 { font-size: 17px; margin: 8px 0 8px; }
.service-card p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-card { position: relative; padding: 24px 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); color: #fff; }
.step-card .step-no { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.step-card h3 { color: #fff; margin: 12px 0 8px; font-size: 17px; }
.step-card p { font-size: 13px; color: rgba(255,255,255,.72); margin: 0; }

.ticker { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.ticker-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ticker-head h3 { margin: 0; font-size: 15px; }
.ticker-body { max-height: 210px; overflow: hidden; }
.ticker-track { list-style: none; margin: 0; padding: 0; }
.ticker-track li { padding: 11px 18px; border-bottom: 1px dashed var(--line-2); font-size: 13px; display: flex; gap: 12px; transition: opacity .3s ease; }
.ticker-track li span { color: var(--muted); flex-shrink: 0; font-size: 12px; }

/* ============================================================
   09 · 文章页 / 详情页
   ============================================================ */
.article { padding: 36px 0 10px; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.article-header h1 { font-size: 32px; line-height: 1.35; margin: 10px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.article-body { font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.article-body h2 { font-size: 22px; margin: 34px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); }
.article-body h3 { font-size: 18px; margin: 26px 0 10px; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.article-body li { margin-bottom: .5em; }
.article-body img { border-radius: 8px; }
.xyqc-img-center { display: block; margin: 24px auto; max-width: 100%; height: auto; }
.article-body .alignleft { float: left; margin: 6px 20px 16px 0; }
.article-body .alignright { float: right; margin: 6px 0 16px 20px; }
.article-body .aligncenter { display: block; margin: 20px auto; }
/* WordPress 经典编辑器 / 区块编辑器插入的图片（含 figure 与 caption）统一居中 */
.article-body figure:not(.alignleft):not(.alignright) { margin: 24px auto; max-width: 100%; text-align: center; }
.article-body figure img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.article-body figcaption, .wp-caption-text { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-body .wp-caption { max-width: 100%; margin: 24px auto; text-align: center; }
.article-body .alignnone { display: block; margin: 24px auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; }
.article-body th { background: var(--bg-soft); }
.article-body details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 10px; }
.article-body summary { cursor: pointer; font-weight: 600; }
.article-body blockquote { margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--brand); background: var(--bg-soft); color: var(--ink-2); }

.post-after { margin: 40px 0 0; }
.article-meta time { font-variant-numeric: tabular-nums; }
.breadcrumb .crumb-sep { color: var(--line); margin: 0 8px; }

/* 文章标签 */
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 18px; }
.article-tags-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.article-tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--bg-soft); text-decoration: none; }
.article-tag:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; }

/* 社交分享图标 */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row > strong { font-size: 13px; color: var(--muted); margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; line-height: 1; background: #fff; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.share-btn .share-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.share-btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--bg-soft); }
.share-btn--wechat:hover { color: #07A34A; border-color: #07A34A; }
.share-btn--weibo:hover { color: #C8102E; border-color: #C8102E; }
.share-btn--qzone:hover { color: #F5A623; border-color: #F5A623; }
.share-btn--x:hover { color: #0B1B2B; border-color: #0B1B2B; }
.share-btn--facebook:hover { color: #1877F2; border-color: #1877F2; }
.share-btn--linkedin:hover { color: #0A66C2; border-color: #0A66C2; }

/* 上下文与相关图文 */
.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.adjacent a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.adjacent a:hover { border-color: var(--brand); }
.adjacent small { color: var(--muted); font-size: 12px; }
.adjacent .adjacent--next { text-align: right; }
.related-block { padding-top: 8px; }
.related-block h3, .post-after h3 { font-size: 20px; margin: 0 0 16px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; padding: 36px 0 60px; }
.detail-gallery { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 22px; }
.detail-gallery img { width: 100%; max-height: 460px; object-fit: cover; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 24px; }
.detail-facts div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); font-size: 13px; }
.detail-facts span { display: block; color: var(--muted); font-size: 12px; }
.detail-facts strong { font-weight: 600; }

/* ============================================================
   10 · 通用归档 / 分页 / 空状态 / 404
   ============================================================ */
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 34px 0 0; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state h3 { color: var(--ink); }
.error-404 { padding: 90px 0; text-align: center; }
.error-404 .code { font-size: 88px; font-weight: 800; color: var(--brand); line-height: 1; }
.error-404 h1 { margin: 10px 0 16px; }

/* ============================================================
   11 · 页脚 / 移动操作条
   ============================================================ */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.66); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 36px; }
.footer-brand-name { color: #fff; font-size: 20px; font-weight: 800; }
.footer-about { font-size: 13px; line-height: 1.9; margin: 14px 0 0; max-width: 340px; }
.footer-col h3 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer-bottom a:hover { color: #fff; }

.mobile-bar { display: none; }

/* ============================================================
   12 · 响应式
   ============================================================ */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) 290px; }
    .xyqc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-layout, .detail-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
    .nav-menu > li > a { padding: 13px 13px; font-size: 14px; }
    .header-search { max-width: 300px; }
}

@media (max-width: 900px) {
    .header-top { display: none; }
    .header-inner { height: 62px; gap: 12px; flex-wrap: wrap; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-toggle { display: block; margin-left: auto; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-menu { flex-direction: column; align-items: stretch; padding: 8px 0; }
    .nav-menu > li > a { padding: 11px 4px; border-bottom: 1px solid var(--line-2); }
    .nav-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
    .nav-menu .sub-menu a { padding: 6px 8px; font-size: 13px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-slide img, .hero-noimage { height: 320px; }
    .content-layout, .detail-layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-grid, .step-grid, .xyqc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .article-header h1 { font-size: 26px; }
}

@media (max-width: 640px) {
    .xyqc-wrap, .xyqc-wrap--narrow { width: calc(100% - 28px); }
    .section { padding: 36px 0; }
    .section-head h2 { font-size: 21px; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .header-actions .xyqc-btn--ghost { display: none; }
    .hero-slide img, .hero-noimage { height: 230px; }
    .hero-caption { padding: 16px 18px; }
    .hero-caption h2 { font-size: 19px; }
    .hero-thumbs { grid-template-columns: 1fr; }
    .xyqc-grid--2, .xyqc-grid--3, .xyqc-grid--4, .service-grid, .step-grid, .archive-grid, .sidebar { grid-template-columns: 1fr; }
    .xyqc-cta-grid, .content-layout[style*="grid-template-columns"], .detail-layout[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .xyqc-field-row, .adjacent { grid-template-columns: 1fr; }
    .adjacent .adjacent--next { text-align: left; }
    .detail-facts { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .page-hero { padding: 30px 0; }
    .page-hero h1 { font-size: 24px; }
    .article-header h1 { font-size: 23px; }
    .article-body { font-size: 15px; }
    .table-hint { display: block; }
    .filter-group { min-width: 100%; }
    .filter-actions { width: 100%; }
    .filter-actions .xyqc-btn { flex: 1; }
    body { padding-bottom: 62px; }
    .mobile-bar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 0;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
        background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,27,43,.08);
    }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 58px; font-size: 15px; font-weight: 700; }
    .mobile-bar a:first-child { border-right: 1px solid var(--line); color: var(--brand-dark); }
    .mobile-bar a:last-child { background: var(--accent); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
