/* ============================================================
   环球维修学院 GRA · 前台样式 v5
   企业站框架 · 明亮清朗 · 品牌红 + 科技蓝 · 全端响应式
   参考：mechanicgroup.cn 企业站布局语言
   ============================================================ */
:root {
    --brand: #b01e24;
    --brand-2: #8b0c09;
    --blue: #1c64d9;
    --blue-2: #409eff;
    --ink: #1c2430;
    --muted: #6b7686;
    --bg: #f5f6f8;
    --bg-2: #ffffff;
    --bg-3: #eef1f5;
    --line: #e6e9ef;
    --header-bg: rgba(255, 255, 255, .92);
    --topbar-bg: #141c26;
    --footer-bg: #141c26;
    --footer-text: #98a3b0;
    --shadow: 0 1px 3px rgba(23, 32, 43, .06);
    --shadow-lg: 0 16px 38px rgba(23, 32, 43, .13);
    --shadow-brand: 0 10px 24px rgba(176, 30, 36, .28);
    --radius: 14px;
    --radius-sm: 8px;
    --grad-brand: linear-gradient(120deg, #c8262c, var(--brand) 45%, var(--brand-2));
    --grad-hero: linear-gradient(100deg, rgba(13, 18, 26, .78) 0%, rgba(13, 18, 26, .42) 48%, rgba(13, 18, 26, .1) 100%);
    --ring: 0 0 0 3px rgba(176, 30, 36, .16);
    /* 兼容旧模板变量名 */
    --amber: var(--brand);
    --amber-2: #d4352b;
    --amber-deep: var(--brand-2);
    --danger: #dc2626;
    --ok: #16a34a;
    --info: var(--blue);
    --text: var(--ink);
}
[data-theme="dark"] {
    --bg: #0f141b;
    --bg-2: #171e28;
    --bg-3: #1d2632;
    --line: #2b3542;
    --ink: #e6e9ef;
    --muted: #8b96a5;
    --text: #e6e9ef;
    --header-bg: rgba(15, 20, 27, .92);
    --topbar-bg: #0b0f15;
    --footer-bg: #0b0f15;
    --shadow: none;
    --shadow-lg: none;
    --shadow-brand: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg); color: var(--ink); line-height: 1.75;
    min-height: 100vh; display: flex; flex-direction: column;
    font-size: 15.5px;
    -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(176, 30, 36, .18); }
a { color: var(--brand); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); font-weight: 800; letter-spacing: .4px; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.site-main { flex: 1; width: 100%; }

/* ============ 顶部信息条 ============ */
.topbar { background: var(--topbar-bg); color: #b7c0cb; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 12px; }
.topbar a { color: #b7c0cb; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 18px; white-space: nowrap; overflow: hidden; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 5px; }
.topbar-links { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.topbar-links .sep { opacity: .35; }

/* ============ 头部导航 ============ */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--header-bg); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-lg); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--grad-brand); color: #fff;
    font-weight: 800; font-size: 15px; letter-spacing: .5px;
    box-shadow: var(--shadow-brand);
}
.logo-text { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .5px; line-height: 1.25; }
.logo-text small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 2.2px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav > a, .nav-drop > a {
    display: inline-flex; align-items: center; padding: 23px 13px;
    font-size: 15px; font-weight: 600; color: var(--ink);
    position: relative; white-space: nowrap;
}
.main-nav > a::after, .nav-drop > a::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 15px;
    height: 3px; border-radius: 2px; background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.main-nav > a:hover, .nav-drop > a:hover { color: var(--brand); }
.main-nav > a:hover::after, .nav-drop > a:hover::after,
.main-nav > a.active::after, .nav-drop > a.active::after { transform: scaleX(1); }
.main-nav > a.active, .nav-drop > a.active { color: var(--brand); }
.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: 100%; left: 0; min-width: 176px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 7px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .2s;
}
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a { display: block; padding: 9px 13px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.nav-drop-menu a:hover { background: var(--bg-3); color: var(--brand); }
.user-box { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.user-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.badge {
    background: var(--bg-3); color: var(--muted); border-radius: 20px;
    font-size: 11.5px; padding: 1px 9px; font-weight: 600;
}
.nav-toggle {
    display: none; border: 0; background: none; font-size: 24px; cursor: pointer;
    color: var(--ink); padding: 6px 10px; margin-left: auto;
}

/* ============ 按钮 ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 24px; border-radius: 9px;
    font-size: 14.5px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all .2s; line-height: 1.5;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(176, 30, 36, .34); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-sm { padding: 6px 15px; font-size: 13px; }

/* ============ 轮播 ============ */
.hero-banner { position: relative; height: clamp(480px, 76vh, 720px); overflow: hidden; background: #10151c; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; z-index: 0; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide .hero-media {
    width: 100%; height: 100%; object-fit: cover;
}
/* 手机端轮播图（<picture> 包装，不影响内部 img 的填充布局） */
.hero-slide .hero-media-wrap { display: contents; }
/* 含手机端专属图的轮播：小屏按 4:5 竖版比例显示整图，不再裁切 */
@media (max-width: 768px) {
    #heroBanner.has-mobi { height: auto; aspect-ratio: 4 / 5; max-height: 82vh; background: #0d1117; }
    #heroBanner.has-mobi .hero-media { object-fit: contain; }
}
/* 静态显示：不放大、无缩放动画；不叠加遮罩，完整展示 Banner 原图 */
.hero-slide::after { content: none; }
.hero-arrow {
    position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .22); color: #fff; font-size: 20px; line-height: 1;
    backdrop-filter: blur(6px); transition: background .25s, transform .25s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .42); }
.hero-arrow.hero-prev { left: max(12px, calc((100% - 1400px) / 2)); }
.hero-arrow.hero-next { right: max(12px, calc((100% - 1400px) / 2)); }
.hero-caption {
    position: absolute; z-index: 2; left: max(4%, calc((100% - 1200px) / 2)); bottom: 132px;
    max-width: 640px; color: #fff;
}
.hero-caption h2 {
    color: #fff; font-size: 50px; font-weight: 800; letter-spacing: 1px;
    margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
    animation: heroUp .8s ease both;
}
.hero-caption .btn { animation: heroUp .8s .15s ease both; }
.hero-caption::before {
    content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
    background: var(--grad-brand); margin-bottom: 18px;
    animation: heroUp .8s ease both;
}
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-dots { position: absolute; z-index: 3; left: max(4%, calc((100% - 1200px) / 2)); bottom: 40px; display: flex; gap: 8px; }
.hero-dots button {
    width: 34px; height: 4px; border: 0; border-radius: 2px; cursor: pointer;
    background: rgba(255, 255, 255, .38); transition: all .25s;
}
.hero-dots button.active { background: #fff; width: 54px; }

/* ============ 数据统计带（浮动白卡） ============ */
.stats-bar {
    background: var(--bg-2); color: var(--ink);
    display: grid; grid-template-columns: repeat(4, 1fr);
    width: min(1100px, 92%); margin: -52px auto 0; position: relative; z-index: 5;
    border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
    border: 1px solid var(--line);
}
.stat-cell { text-align: center; padding: 28px 10px 24px; position: relative; }
.stat-cell + .stat-cell::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line); }
.stat-num {
    font-size: 36px; font-weight: 800; line-height: 1.2;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 13.5px; color: var(--muted); letter-spacing: 1px; margin-top: 4px; }

/* ============ 版块 ============ */
.section { --secw: 1400px; padding: 84px 0 16px; }
.section-alt { background: var(--bg-2); }
.section-alt + .section-alt, .section + .section-alt { border-top: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 50px; position: relative; }
.section-head.head-left { text-align: left; }
.section-head.head-left::after { margin-left: 0; margin-right: 0; }
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: 1.5px; }
.section-kicker {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
    color: var(--brand); margin-bottom: 10px; text-transform: uppercase;
    background: rgba(176, 30, 36, .08); padding: 4px 14px; border-radius: 20px;
}
.section-head::after {
    content: ""; display: block; width: 54px; height: 3px; border-radius: 2px;
    background: var(--grad-brand); margin: 16px auto 0;
}
.section-sub { font-size: 14px; color: var(--muted); letter-spacing: 3px; margin-top: 12px; text-transform: uppercase; }
.section-head .more {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 14px; font-weight: 600; color: var(--muted);
    border: 1px solid var(--line); padding: 7px 16px; border-radius: 20px;
    transition: all .2s;
}
.section-head .more:hover { color: #fff; background: var(--grad-brand); border-color: transparent; }

/* ============ 网格与卡片 ============ */
.grid { display: grid; gap: 28px; padding-bottom: 64px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .28s, box-shadow .28s, border-color .28s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(176, 30, 36, .28); }
.card-cover-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.card-cover { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; display: block; }
/* 无封面时的统一占位图（保持卡片等高、框架统一） */
.card-cover-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 54px; background: color-mix(in srgb, var(--brand) 7%, var(--bg-3, #f4f5f7)); color: var(--brand); }
.card:hover .card-cover { transform: scale(1.07); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
/* 卡片底部统一框架：倒计时/价格/按钮固定吸底，保证同一行卡片按钮对齐、等高统一 */
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.card-actions { display: flex; gap: 12px; align-items: center; }
.card-actions .btn { flex: 1; text-align: center; justify-content: center; padding: 12px 16px; font-size: 15px; }
.card-actions .btn[disabled] { background: #c9ccd1; border-color: #c9ccd1; color: #fff; cursor: not-allowed; }
.card-actions .btn[disabled]:hover { background: #c9ccd1; border-color: #c9ccd1; }
.card-title { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.5; }
a.card-title:hover { color: var(--brand); }
.card-meta { font-size: 13.5px; color: var(--muted); }
.card-text { font-size: 14px; color: var(--muted); }
.tag {
    display: inline-block; background: rgba(176, 30, 36, .09); color: var(--brand);
    font-size: 12px; font-weight: 600; border-radius: 5px; padding: 2px 10px;
}
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; color: var(--brand); margin-top: auto; padding-top: 8px; }
.showcase-card .card-body { text-align: center; align-items: center; }
/* 学员风采：完整展示图片（不裁切），尺寸自适应 */
.showcase-photo { width: 100%; height: auto; display: block; object-fit: contain; background: var(--bg-3); }
/* 学员风采链接卡片 */
.showcase-card a:hover .showcase-photo { opacity: .92; }
.sc-more { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 700; font-size: 14px; text-decoration: none; }
.sc-more:hover { text-decoration: underline; }

/* ============ 弹窗（赛事在线报名等） ============ */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 18, 26, .55); z-index: 990; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask[hidden] { display: none; }
.modal-box { background: var(--bg-2); color: var(--text); border-radius: 14px; width: 470px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-x { border: none; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.modal-body { padding: 16px 18px 18px; }

/* ============ 列表项（论坛/新闻等） ============ */
.list-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 22px; margin-bottom: 14px; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.list-item:hover { border-color: rgba(176, 30, 36, .35); box-shadow: var(--shadow); transform: translateY(-2px); }
.li-title { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.li-title:hover { color: var(--brand); }
.li-meta { font-size: 12.5px; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.thread-body { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; line-height: 1.9; }
.content-video { width: 100%; max-width: 820px; border-radius: 10px; background: #000; display: block; }

/* ============ 倒计时 ============ */
.cd-tip { font-size: 12.5px; color: var(--muted); }
.cd-ended { color: var(--muted); font-weight: 600; }
.cd-cells { display: flex; gap: 10px; }
.cd-cell {
    min-width: 56px; text-align: center; border-radius: 10px;
    background: var(--brand); color: #fff; padding: 8px 6px 7px;
    box-shadow: var(--shadow-brand);
}
.cd-num { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 11.5px; opacity: .88; }

/* ============ 表单 ============ */
.form-card {
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 36px; max-width: 640px; margin: 0 auto 56px;
    box-shadow: var(--shadow);
}
.form-card h2 { font-size: 22px; margin-bottom: 22px; padding-left: 13px; border-left: 4px solid var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14.5px; background: var(--bg); color: var(--ink);
    transition: border-color .18s, box-shadow .18s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: 0; border-color: var(--brand); box-shadow: var(--ring);
}
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 15px 20px; margin-bottom: 24px;
}
.filter-bar select, .filter-bar input {
    padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px;
    background: var(--bg); color: var(--ink); font-size: 14px;
}
.chip {
    display: inline-flex; align-items: center; padding: 7px 16px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
    color: var(--ink); font-size: 13.5px; transition: all .18s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ============ 提示/分页/杂项 ============ */
.flash { margin-top: 16px; padding: 13px 18px; border-radius: 9px; font-size: 14px; }
.flash-success { background: rgba(22, 163, 74, .1); color: var(--ok); border: 1px solid rgba(22, 163, 74, .3); }
.flash-error { background: rgba(220, 38, 38, .08); color: var(--danger); border: 1px solid rgba(220, 38, 38, .28); }
.empty { text-align: center; color: var(--muted); padding: 50px 0; font-size: 14.5px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 10px 0 56px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-size: 14px;
}
.pagination .cur, .pagination a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }
.sub { font-size: 13.5px; color: var(--muted); margin: -8px 0 18px; }
.back-top {
    position: fixed; right: 26px; bottom: 158px; z-index: 150;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--grad-brand); color: #fff; font-size: 19px;
    box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { filter: brightness(1.08); }

/* ============ 悬浮语言切换 ============ */
.lang-float { position: fixed; right: 22px; bottom: 26px; z-index: 980; }
.lang-float-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 30px;
    padding: 9px 16px; cursor: pointer; font-size: 13.5px; font-weight: 600;
    color: var(--ink); box-shadow: var(--shadow-lg);
    transition: all .2s;
}
.lang-float-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.lang-glob { font-size: 16px; }
.lang-float-menu {
    position: absolute; right: 0; bottom: 52px; min-width: 152px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 7px; display: none;
    max-height: 60vh; overflow-y: auto;
}
.lang-float.open .lang-float-menu { display: block; }
.lang-float-menu a {
    display: flex; justify-content: space-between; padding: 8px 13px;
    border-radius: 8px; font-size: 13.5px; color: var(--ink);
}
.lang-float-menu a:hover { background: var(--bg-3); }
.lang-float-menu a.cur { color: var(--brand); font-weight: 700; }

/* ============ 页脚 ============ */
.site-footer {
    background: var(--footer-bg); color: var(--footer-text); margin-top: 48px;
    position: relative;
}
.site-footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-brand);
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 38px;
    padding: 58px 0 44px;
}
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; font-weight: 700; }
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 2px; background: var(--grad-brand); }
.footer-grid p { font-size: 13.5px; line-height: 1.9; }
.footer-grid a { display: block; color: var(--footer-text); font-size: 13.5px; padding: 4.5px 0; transition: color .18s, transform .18s; }
.footer-grid a:hover { color: #fff; transform: translateX(3px); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 38px; height: 38px; font-size: 13px; border-radius: 9px; }
.footer-brand strong { color: #fff; font-size: 17px; }
.footer-contact li { list-style: none; font-size: 13.5px; padding: 4.5px 0; display: flex; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 17px 0; font-size: 12.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* ============ 滚动渐入动画 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .hero-banner { height: clamp(400px, 60vh, 560px); }
    .hero-caption h2 { font-size: 32px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav > a, .nav-drop > a { padding: 23px 9px; font-size: 14px; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .user-box { margin-left: auto; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg); padding: 8px 4%;
    }
    .main-nav.open { display: flex; }
    .main-nav > a, .nav-drop > a { padding: 13px 10px; font-size: 15px; }
    .main-nav > a::after, .nav-drop > a::after { display: none; }
    .nav-drop-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-left: 2px solid var(--line);
        border-radius: 0; margin: 0 0 4px 14px; display: none; padding: 2px;
    }
    .nav-drop.open .nav-drop-menu { display: block; }
    .hero-banner { height: clamp(300px, 50vh, 420px); }
    .hero-caption { bottom: 88px; }
    .hero-caption h2 { font-size: 25px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -34px; }
    .stat-cell + .stat-cell::before { display: none; }
    .stat-num { font-size: 27px; }
    .section-head .more { position: static; display: inline-block; transform: none; margin-top: 12px; }
    .section-head h2 { font-size: 25px; }
    .section { padding: 54px 0 8px; }
}
@media (max-width: 560px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .form-card { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .topbar-contact span:first-child { display: none; }
    .hero-banner { height: 240px; }
    .hero-caption h2 { font-size: 21px; }
    .header-inner { height: 60px; }
    .logo-text { font-size: 16px; }
    .cd-cell { min-width: 42px; }
}

/* ---------- 首页 CTA 咨询带 ---------- */
.cta-band {
    background: var(--grad-brand);
    color: #fff;
    padding: 52px 0;
    margin-top: 12px;
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px;
    border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.cta-band::before {
    content: ""; position: absolute; right: 60px; bottom: -120px; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta-inner p { color: rgba(255, 255, 255, .88); font-size: 15px; max-width: 620px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }
@media (max-width: 700px) {
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .cta-inner h2 { font-size: 21px; }
}

/* ---------- 页脚社交链接 ---------- */
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a {
    font-size: 12.5px; font-weight: 600; padding: 4px 13px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .16); color: var(--footer-text);
    background: rgba(255, 255, 255, .05);
    transition: all .18s;
}
.footer-social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
/* ---------- 手机端导航 ---------- */
.nav-auth { display: none; }
@media (max-width: 860px) {
    .user-box { display: none; }
    .nav-auth {
        display: flex; flex-direction: column;
        border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px;
    }
    .nav-auth a { padding: 11px 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
    .nav-auth a:hover { color: var(--brand); }
    .nav-auth .nav-auth-cta { color: var(--brand); }
    .header-cta { display: none; }
}
/* ---------- 版块内容统一居中约束 ---------- */
.section > .section-head, .section > .grid, .section > .card, .section > .list-item, .section > .filter-bar, .section > .empty {
    width: min(var(--secw, 1200px), 92%);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 首页版块自定义：列数 / 列表样式 / 轮播高度 ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.style-flat .card { background: transparent; box-shadow: none; }
.grid.style-flat .card:hover { transform: none; border-color: var(--brand); }
.grid.style-list { grid-template-columns: 1fr !important; gap: 14px; }
.grid.style-list .card { display: flex; align-items: center; gap: 18px; }
.grid.style-list .card-body { flex: 1; }
.hero-banner.h-sm { height: clamp(340px, 52vh, 540px); }
.hero-banner.h-lg { height: clamp(560px, 92vh, 920px); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } .grid.style-list .card { flex-direction: column; align-items: stretch; } }

/* ---------- 倒计时（修正竖排问题） ---------- */
.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown-sm .cd-cell { min-width: 44px; padding: 5px 3px 4px; }
.countdown-sm .cd-num { font-size: 17px; }

/* ---------- 无轮播时的默认品牌主视觉 ---------- */
.hero-fallback {
    position: relative; height: clamp(420px, 70vh, 640px); overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(200, 38, 44, .5), transparent 46%),
        radial-gradient(circle at 18% 82%, rgba(28, 100, 217, .34), transparent 44%),
        linear-gradient(120deg, #171e29 0%, #10151d 58%, #1a1220 100%);
    display: flex; align-items: center;
}
.hero-fallback::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10, 14, 20, .5), rgba(10, 14, 20, .05) 70%);
}
.hero-fallback-inner { position: relative; z-index: 1; color: #fff; }
.hero-fallback-inner h2 { color: #fff; font-size: 46px; letter-spacing: 1.5px; margin-bottom: 14px; }
.hero-fallback-inner p { color: rgba(255, 255, 255, .82); font-size: 17px; max-width: 560px; margin-bottom: 24px; }
@media (max-width: 860px) {
    .hero-fallback { height: 360px; }
    .hero-fallback-inner h2 { font-size: 26px; }
}

/* ============ 移动端全局保护（防横向溢出 / 内容显示不全） ============ */
html, body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
/* 用户发布/文章内容：长链接换行、图片自适应、宽表格横向滑动 */
.thread-body, .news-article, .rte-content, .ev-desc, .card-text {
    overflow-wrap: anywhere; word-break: break-word;
}
.thread-body img, .news-article img, .rte-content img, .about-page img { height: auto; }
.thread-body table, .news-article table, .rte-content table,
.thread-body pre, .news-article pre, .rte-content pre {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.thread-body table, .news-article table, .rte-content table { border-collapse: collapse; }
.pagination { flex-wrap: wrap; }
.filter-bar select, .filter-bar input { max-width: 100%; }
/* 轮播文案在小屏不贴边 */
.hero-caption { right: max(4%, calc((100% - 1200px) / 2)); }
.hero-caption h2 { max-width: 100%; }

/* ---------- 平板（861px - 1100px）补充 ---------- */
@media (min-width: 861px) and (max-width: 1100px) {
    .hero-caption h2 { font-size: 34px; }
    .stats-bar { margin-top: -40px; }
    .section-head h2 { font-size: 30px; }
    .card-body { padding: 20px 20px 22px; }
}

/* ---------- 手机端细节收紧 ---------- */
@media (max-width: 860px) {
    /* 顶部信息条：只保留第一个联系方式，避免被裁剪显示不全 */
    .topbar-contact span:not(:first-child) { display: none; }
    .topbar-inner { height: auto; min-height: 34px; padding: 4px 0; }
    .topbar-links { gap: 10px; }
    /* 卡片与列表更紧凑 */
    .grid { gap: 18px; padding-bottom: 44px; }
    .card-title { font-size: 17px; }
    .hero-arrow { width: 40px; height: 40px; font-size: 16px; }
}
@media (max-width: 560px) {
    .list-item { padding: 14px 16px; gap: 10px; }
    .card-body { padding: 18px 18px 20px; }
    .card-actions { flex-wrap: wrap; }
    /* 倒计时在小屏完整放下 */
    .cd-cells { gap: 6px; }
    .cd-cell { min-width: 38px; padding: 6px 4px 5px; }
    .cd-num { font-size: 18px; }
    /* 弹窗贴边留白 */
    .modal-mask { padding: 12px; }
    /* 悬浮按钮不遮挡内容 */
    .back-top { right: 14px; bottom: 132px; width: 38px; height: 38px; font-size: 17px; }
    .lang-float { right: 12px; bottom: 16px; }
    /* 统计条更紧凑 */
    .stat-cell { padding: 18px 6px 15px; }
    .stat-num { font-size: 23px; }
    /* 版块标题间距收紧 */
    .section-head { margin-bottom: 32px; }
    .hero-dots button { width: 24px; }
    .hero-dots button.active { width: 38px; }
}
