/* ==========================================================================
   装备学堂 · 前台样式
   ========================================================================== */

:root {
    --brand: #143f7d;
    --brand-700: #0e2f60;
    --brand-500: #1f5fb0;
    --brand-300: #5b8ed0;
    --brand-50: #eef4fc;
    --brand-20: #f6f9fd;
    --accent: #e8871e;
    --accent-600: #cb720f;
    --accent-50: #fdf3e6;
    --ink: #16202e;
    --ink-2: #3f4e5e;
    --ink-3: #71829a;
    --line: #e4e9f0;
    --line-2: #eef2f7;
    --bg: #f5f7fa;
    --white: #fff;
    --ok: #0f7b4f;
    --warn: #b26a00;
    --err: #b42318;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 32, 56, .05);
    --shadow: 0 8px 28px rgba(16, 32, 56, .08);
    --shadow-lg: 0 20px 56px rgba(16, 32, 56, .16);
    --wrap: 1200px;
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.72;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* 覆盖浏览器自动填充底色，避免输入框变绿/变黄 */
input:autofill,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--ink) !important;
    background-color: #fff !important;
    background-image: none !important;
    transition: background-color 9999s ease-in-out 0s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--ink-3); }
.ico { flex: none; vertical-align: -3px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
    font-size: 15.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
    background: var(--white); color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 2px 10px rgba(20, 63, 125, .22); }
.btn.primary:hover { background: var(--brand-700); }
.btn.accent { background: linear-gradient(180deg, #f0912b, var(--accent)); color: #fff; box-shadow: 0 4px 16px rgba(232, 135, 30, .32); }
.btn.accent:hover { background: var(--accent-600); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--brand-300); color: var(--brand); background: var(--brand-20); }
.btn.ghost-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .34); color: #fff; backdrop-filter: blur(4px); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .2); }
.btn.wechat { background: #07c160; color: #fff; }
.btn.wechat:hover { background: #06ad56; }
.btn.sm { height: 37px; padding: 0 15px; font-size: 14px; border-radius: 8px; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.link { color: var(--brand-500); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------------- 顶部条 ---------------- */
.topbar {
    background: var(--brand-700); color: rgba(255, 255, 255, .88);
    font-size: 14px; letter-spacing: .2px;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; min-width: 0; }
.topbar-l { display: flex; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.topbar-l > span:last-child { color: #fff; font-weight: 500; letter-spacing: .4px; }
.tb-dot { width: 6px; height: 6px; border-radius: 50%; background: #5bd08a; box-shadow: 0 0 0 3px rgba(91, 208, 138, .18); flex: none; }
.topbar-r { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; }
.topbar-r a:hover { color: #fff; }
.tb-sep { opacity: .35; }
.tb-wx { opacity: .9; }

/* ---------------- 头部 ---------------- */
.site-header {
    background: #fff; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 60;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; min-width: 0; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; }
.brand-text strong { font-size: 22px; letter-spacing: 1.5px; color: var(--brand); white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--ink-3); letter-spacing: 1.2px; margin-top: 3px; }

.mainnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; gap: 4px; white-space: nowrap;
    padding: 0 10px; height: 76px; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
    position: relative; transition: color .18s;
}
.nav-item > a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
    background: var(--accent); border-radius: 2px 2px 0 0; transform: scaleX(0); transition: transform .2s;
}
.nav-item > a:hover { color: var(--brand); }
.nav-item > a.on { color: var(--brand); font-weight: 700; }
.nav-item > a.on::after { transform: scaleX(1); }
.caret { width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; opacity: .55; }

.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 280px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 13px; border-radius: 8px; transition: background .15s; }
.dropdown a:hover { background: var(--brand-20); }
.dropdown b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.dropdown small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 1px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.searchbox { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 0 4px 0 13px; height: 42px; transition: border-color .18s, background .18s; }
.searchbox:focus-within { background: #fff; border-color: var(--brand-300); }
.searchbox input { border: 0; background: none; outline: none; width: 146px; font-size: 14.5px; color: var(--ink); }
.searchbox input::placeholder { color: #9aa9bb; }
.searchbox button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px; display: grid; place-items: center; border-radius: 6px; }
.searchbox button:hover { color: var(--brand); background: var(--brand-50); }

.avatar {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand)); color: #fff;
    font-weight: 600; font-size: 15px; flex: none;
}
.avatar.lg { width: 46px; height: 46px; font-size: 19px; }
.avatar.xl { width: 64px; height: 64px; font-size: 26px; border: 3px solid rgba(255, 255, 255, .22); }

.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 4px 8px 4px 4px; border-radius: 30px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: var(--brand-20); }
.um-name { font-size: 14.5px; font-weight: 600; color: var(--ink-2); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-list {
    position: absolute; right: 0; top: calc(100% + 8px); width: 210px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 70;
}
.um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.um-head b { display: block; font-size: 15px; }
.um-head small { color: var(--ink-3); font-size: 13px; }
.um-list a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.um-list a:hover { background: var(--brand-20); color: var(--brand); }
.um-out { color: var(--err) !important; margin-top: 4px; border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px !important; }

.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; padding: 0; place-items: center; gap: 4px; }
.hamburger span { display: block; width: 17px; height: 2px; background: var(--ink-2); border-radius: 2px; }

/* ---------------- Flash ---------------- */
.flash-wrap { padding-top: 16px; display: grid; gap: 8px; }
.flash { padding: 11px 16px; border-radius: 10px; font-size: 15px; border: 1px solid; }
.flash.ok { background: #eefaf3; border-color: #bfe8d3; color: #0b6b45; }
.flash.warn { background: #fff8e8; border-color: #f5dfae; color: #8a5a00; }
.flash.err { background: #fdf0ef; border-color: #f6cdc9; color: var(--err); }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: var(--brand-700); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hb-grid {
    position: absolute; inset: 0; opacity: .16;
    background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 10%, transparent 72%);
}
.hb-glow {
    position: absolute; width: 560px; height: 560px; right: -120px; top: -210px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 95, 176, .85), transparent 62%);
    filter: blur(10px);
}
.hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 90px;
    background: linear-gradient(to top, rgba(10, 26, 51, .55), transparent);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: center; padding: 16px 0 58px; }
.hero-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 13.5px; letter-spacing: .6px; font-weight: 500;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #eaf2ff; margin-bottom: 12px;
}
.hero h1 { font-size: 34px; line-height: 1.22; letter-spacing: .5px; font-weight: 800; }
.hero h1 em { font-style: normal; color: #ffcb85; position: relative; }
.hero-l > p { margin-top: 10px; font-size: 15.5px; color: rgba(255, 255, 255, .78); max-width: 640px; line-height: 1.6; }
.hero-btns { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.hero-btns .btn.lg { height: 42px; padding: 0 22px; font-size: 15.5px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ico { color: #6fd39b; }

.hero-card {
    background: #fff; border-radius: 18px; padding: 20px; color: var(--ink);
    box-shadow: 0 26px 60px rgba(6, 20, 40, .38); position: relative;
}
.hero-card::before {
    content: ''; position: absolute; inset: -1px; border-radius: 18px; padding: 1px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .1));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hc-title { font-size: 17px; font-weight: 700; }
.hc-desc { font-size: 13.5px; color: var(--ink-3); margin: 5px 0 12px; line-height: 1.6; }
.hero-card p { color: var(--ink-3); }
.hero-card .btn { height: 40px; font-size: 15.5px; }
.hero-card .btn + .btn { margin-top: 8px; }
.hc-btns { display: flex; gap: 8px; }
.hc-btns .btn { flex: 1; min-width: 0; padding: 0 6px; font-size: 14.5px; }
.hc-btns .btn + .btn { margin-top: 0; }
.hc-foot { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.hc-foot a { color: var(--brand-500); font-weight: 600; }
.hc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.hc-user b { display: block; font-size: 17px; }
.hc-user small { color: var(--ink-3); font-size: 13.5px; }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 18px; }
.hc-stats div { background: var(--brand-20); border-radius: 10px; padding: 12px; text-align: center; }
.hc-stats b { display: block; font-size: 24px; color: var(--brand); line-height: 1.2; }
.hc-stats span { font-size: 12.5px; color: var(--ink-3); }
.hc-link { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--brand-500); font-weight: 600; }

/* ---------------- 数据条 ---------------- */
.statbar {
    position: relative; z-index: 3; margin-top: -54px; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 8px;
}
.stat { text-align: center; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; line-height: 1.2; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* ---------------- 区块 ---------------- */
.section { padding-block: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: 27px; letter-spacing: .2px; position: relative; padding-left: 14px; }
.sec-head h2::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 3px; background: var(--accent); }
.sec-head p { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; padding-left: 14px; }
.sec-head-ico { display: flex; align-items: flex-start; gap: 12px; }
.sec-head-ico h2 { padding-left: 0; }
.sec-head-ico h2::before { display: none; }
.sec-head-ico p { padding-left: 0; }
.mini-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand); flex: none; }
.sec-more { display: inline-flex; align-items: center; gap: 3px; font-size: 14.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.sec-more:hover { color: var(--brand); }

/* ---------------- 栏目卡 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
    display: flex; flex-direction: column; align-items: flex-start;
    transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dbf0; }
.cat-card::after {
    content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: var(--brand-50); transition: transform .3s;
}
.cat-card:hover::after { transform: scale(1.35); }
.cat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-500), var(--brand)); color: #fff; position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(20, 63, 125, .24); }
.cat-card h3 { font-size: 19px; margin-top: 16px; position: relative; z-index: 1; }
.cat-card > p { font-size: 14px; color: var(--ink-3); margin-top: 8px; line-height: 1.7; min-height: 3.4em; position: relative; z-index: 1; }
.cat-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; position: relative; z-index: 1; }
.cat-subs span { font-size: 12.5px; color: var(--brand); background: var(--brand-50); padding: 3px 8px; border-radius: 5px; }
.cat-more { display: inline-flex; align-items: center; gap: 3px; margin-top: auto; padding-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent); position: relative; z-index: 1; }

/* ---------------- 课程卡 ---------------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-grid.four { grid-template-columns: repeat(2, 1fr); }
.course-grid.three { grid-template-columns: repeat(3, 1fr); }
.card { display: block; }
.course-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9dbf0; }
.cover { position: relative; aspect-ratio: 16 / 9; background: #eef2f7; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cover-img { position: absolute; inset: 0; z-index: 1; }
.course-card:hover .cover img { transform: scale(1.04); }
.cover-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: rgba(255, 255, 255, .95); background: linear-gradient(135deg, var(--c1), var(--c2)); }
.cover-ph::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .26), transparent 42%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px);
}
.cover-ico { opacity: .55; position: relative; }
.cover-t { display: none; font-size: 13px; letter-spacing: 2px; opacity: .92; position: relative; max-width: 82%; text-align: center; line-height: 1.6; }
.cover.big .cover-t { display: block; }
.cover.thumb { width: 116px; aspect-ratio: 16 / 10; flex: none; border-radius: 8px; }
.cover.big { aspect-ratio: 16 / 10; border-radius: 12px; }
.card-body { padding: 18px 19px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { font-size: 12.5px; color: var(--brand); background: var(--brand-50); padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.tag.solid { background: var(--brand); color: #fff; }
.hours { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.card-title { font-size: 17px; line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog-line { height: 5px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.prog-line span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-500), var(--accent)); transition: width .4s; }
.prog-line.big { height: 8px; }
.prog-txt { font-size: 12.5px; color: var(--accent-600); font-weight: 600; }

/* 单个课程：横向卡片，避免栅格留白 */
.course-grid.one { grid-template-columns: 1fr; }
.course-grid.one .course-card { flex-direction: row; }
.course-grid.one .cover { width: 340px; flex: none; aspect-ratio: auto; min-height: 200px; }
.course-grid.one .card-body { justify-content: center; padding: 24px 28px; }
.course-grid.one .card-title { min-height: 0; }
.course-grid.one .card-desc { -webkit-line-clamp: 3; }

/* 只有文章时的双栏列表 */
.art-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }

/* ---------------- 文章行 ---------------- */
.art-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.art-row:last-child { border-bottom: 0; }
.art-row-main { flex: 1; min-width: 0; }
.art-row:hover h4 { color: var(--brand-500); }
.art-row-main h4 { font-size: 15.5px; line-height: 1.55; transition: color .15s; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.art-row-main p { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.art-row-date { font-size: 13px; color: #9aa9bb; flex: none; font-variant-numeric: tabular-nums; padding-top: 2px; }

/* ---------------- 两栏 ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; }
.panel-soft { background: var(--brand-20); border-color: #e2ecf8; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h4 { font-size: 17px; }
.panel-sub { font-size: 13.5px; color: var(--ink-3); }
.panel-link { font-size: 13.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 2px; }
.panel-link:hover { color: var(--brand); }
.panel .btn + .btn { margin-top: 8px; }
.tips { display: grid; gap: 9px; }
.tips li { position: relative; padding-left: 15px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.tips li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-300); }

.rel-course { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.rel-course:last-child { border-bottom: 0; }
.rel-course:hover b { color: var(--brand-500); }
.rel-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.5; transition: color .15s; }
.rel-main small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- 面包屑 ---------------- */
.crumb-bar { background: #fff; border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 5px; height: 50px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb span { color: var(--ink-2); }
.crumb .ico { opacity: .5; }

/* ---------------- 栏目页 ---------------- */
.cat-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(115deg, var(--brand) 0%, var(--brand-500) 78%, #2a6fbd 100%);
    color: #fff; border-radius: 18px; padding: 34px 38px; position: relative; overflow: hidden;
}
.cat-hero::after {
    content: ''; position: absolute; right: -40px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.cat-hero h1 { font-size: 32px; letter-spacing: 1px; }
.cat-hero p { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.cat-hero-r { text-align: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 12px 22px; position: relative; z-index: 1; }
.cat-hero-r b { display: block; font-size: 32px; line-height: 1.1; font-weight: 800; }
.cat-hero-r span { font-size: 13px; opacity: .8; }

.cat-hero + .split { margin-top: 26px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 20px; }
.tabs a { padding: 8px 16px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: all .18s; }
.tabs a:hover { border-color: var(--brand-300); color: var(--brand); }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------------- 课程详情 ---------------- */
.course-hero { display: grid; grid-template-columns: 392px minmax(0, 1fr); gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.course-hero h1 { font-size: 29px; line-height: 1.4; }
.ch-sum { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.ch-meta { display: flex; gap: 20px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); flex-wrap: wrap; }
.ch-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ch-progress { margin-top: 18px; padding: 14px 16px; background: var(--brand-20); border-radius: 10px; }
.chp-top { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.chp-top b { color: var(--brand); }
.ch-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.course-split { margin-top: 24px; }

.lesson-list { counter-reset: ll; }
.lesson-list li { border-bottom: 1px solid var(--line-2); }
.lesson-list li:last-child { border-bottom: 0; }
.lesson-list li > a { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-radius: 8px; transition: background .15s; }
.lesson-list li > a:hover { background: var(--brand-20); }
.ll-num { font-size: 13px; font-weight: 700; color: #a9b8ca; font-variant-numeric: tabular-nums; width: 20px; flex: none; }
.ll-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; flex: none; background: var(--brand-50); color: var(--brand); }
.ll-ico.type-article { background: #eefaf3; color: #0f7b4f; }
.ll-ico.type-gallery { background: var(--accent-50); color: var(--accent-600); }
.ll-title { flex: 1; font-size: 15px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-type { font-size: 12.5px; color: var(--ink-3); background: var(--bg); padding: 2px 7px; border-radius: 4px; flex: none; }
.ll-done { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--ok); flex: none; }
.ll-go { color: #b9c6d6; display: grid; place-items: center; flex: none; }
.lesson-list li.is-done .ll-title { color: var(--ink-3); }

.lesson-list.compact li > a { padding: 10px 4px; gap: 8px; }
.lesson-list.compact .ll-num { width: 18px; font-size: 12.5px; }
.lesson-list.compact .ll-title { font-size: 14px; }
.lesson-list.compact li.cur > a { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.lesson-list.compact li.cur .ll-title { color: var(--brand); font-weight: 600; }

.prose { font-size: 16px; line-height: 2.05; color: var(--ink-2); }
.prose h3 { font-size: 18.5px; color: var(--ink); margin: 32px 0 12px; padding-left: 12px; border-left: 3px solid var(--accent); }
.prose h4 { font-size: 16.5px; margin: 24px 0 10px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 7px 0; }
.prose img { border-radius: 10px; margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 14px; }
.prose th { background: var(--bg); }
.prose blockquote { margin: 14px 0; padding: 12px 16px; background: var(--brand-20); border-left: 3px solid var(--brand-300); border-radius: 0 8px 8px 0; color: var(--ink-2); }

/* ---------------- 学习页 ---------------- */
.learn-page { background: #0d1520; min-height: 100dvh; padding-bottom: 48px; }
.learn-hd { background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.learn-hd-in { display: flex; align-items: center; gap: 20px; padding: 14px 0; flex-wrap: wrap; }
.lh-back { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: rgba(255, 255, 255, .6); flex: none; }
.lh-back:hover { color: #fff; }
.lh-back .ico { transform: rotate(180deg); }
.lh-title { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; }
.lh-title h1 { font-size: 18px; color: #fff; font-weight: 600; line-height: 1.5; }
.lh-type { font-size: 12.5px; padding: 2px 7px; border-radius: 4px; background: rgba(232, 135, 30, .18); color: #f5b164; flex: none; }
.lh-right { display: flex; align-items: center; gap: 14px; flex: none; }
.lh-prog { font-size: 13.5px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.learn-page .btn.ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .85); }
.learn-page .btn.ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.learn-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; padding-top: 22px; align-items: start; }
.learn-main { min-width: 0; }
.player-box { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.player-box video { width: 100%; height: 100%; display: block; background: #000; }
.player-box.embed iframe { width: 100%; height: 100%; border: 0; }
.player-box.empty-player { background: #111c2b; color: rgba(255, 255, 255, .55); text-align: center; }
.player-box.empty-player h3 { color: #fff; font-size: 17px; margin: 12px 0 6px; }
.player-box.empty-player p { font-size: 14px; color: rgba(255, 255, 255, .45); }
.player-note { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 9px 14px; flex-wrap: wrap; }
.player-bar.center { justify-content: center; }
.rate-group { display: flex; align-items: center; gap: 6px; }
.rate-label { font-size: 13px; color: rgba(255, 255, 255, .45); margin-right: 4px; }
.rate { border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: rgba(255, 255, 255, .72); font-size: 13.5px; padding: 4px 11px; border-radius: 6px; cursor: pointer; transition: all .16s; font-variant-numeric: tabular-nums; }
.rate:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.rate.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pb-right { display: flex; align-items: center; gap: 14px; }
.pb-hint { font-size: 13px; color: rgba(255, 255, 255, .4); }

.article-shell { background: #fff; border-radius: 12px; padding: 38px 44px; }
.article-body { font-size: 16.5px; }
.article-body > :first-child { margin-top: 0; }
.read-foot { margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line); text-align: center; }
.read-tip { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.read-tip b { color: var(--accent-600); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.gallery-shell { background: #fff; border-radius: 12px; padding: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g-item { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; transition: box-shadow .2s, transform .2s; }
.g-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-ph { aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background: linear-gradient(135deg, var(--c1), #2f4f7f); font-size: 14px; letter-spacing: 1px; }
.g-item figcaption { padding: 10px 12px; }
.g-item figcaption b { display: block; font-size: 14.5px; }
.g-item figcaption small { font-size: 13px; color: var(--ink-3); }

.learn-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ln-btn { flex: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 12px 16px; color: rgba(255, 255, 255, .8); transition: background .16s; }
.ln-btn:hover { background: rgba(255, 255, 255, .12); }
.ln-btn small { display: block; font-size: 12.5px; opacity: .55; margin-bottom: 3px; }
.ln-btn b { font-size: 14.5px; font-weight: 500; }
.ln-btn.next { text-align: right; }

.learn-side .panel { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
.learn-side .panel-head h4, .learn-side .panel-head .panel-sub { color: #fff; }
.learn-side .panel-sub { opacity: .6; }
.learn-side .panel .prog-line { background: rgba(255, 255, 255, .12); margin-bottom: 8px; }
.learn-side .lesson-list li { border-bottom-color: rgba(255, 255, 255, .07); }
.learn-side .lesson-list .ll-title { color: rgba(255, 255, 255, .75); }
.learn-side .lesson-list li > a:hover { background: rgba(255, 255, 255, .07); }
.learn-side .lesson-list li.cur > a { background: rgba(232, 135, 30, .16); box-shadow: inset 3px 0 0 var(--accent); }
.learn-side .lesson-list li.cur .ll-title { color: #ffcb85; }
.learn-side .lesson-list .ll-num { color: rgba(255, 255, 255, .35); }
.learn-side .lesson-list .ll-go { color: rgba(255, 255, 255, .3); }
.learn-side .lesson-list .ll-done { color: #6fd39b; }
.sticky { position: sticky; top: 20px; }

.lightbox { position: fixed; inset: 0; background: rgba(6, 12, 22, .92); z-index: 300; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); font-size: 15px; margin-top: 14px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 28px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 11px; display: grid; place-items: center; border-radius: 8px; font-size: 14.5px; }
.pager a { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pager a:hover { border-color: var(--brand-300); color: var(--brand); }
.pager .cur { background: var(--brand); color: #fff; font-weight: 700; }
.pager .gap { background: none; border: 0; color: var(--ink-3); }
.pager .pinfo { background: none; color: var(--ink-3); font-size: 13.5px; min-width: auto; padding: 0 6px; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty .ico { color: #c3d0e0; margin: 0 auto 14px; }
.empty h3 { font-size: 18px; color: var(--ink-2); margin-bottom: 6px; }
.empty p { font-size: 14.5px; margin-bottom: 18px; }
.empty.small { padding: 26px 10px; }
.empty.small p { margin-bottom: 10px; }
.empty-page { text-align: center; padding: 90px 20px; }
.empty-code { font-size: 88px; font-weight: 800; color: #dbe4ef; letter-spacing: 4px; line-height: 1; }
.empty-page h1 { font-size: 26px; margin: 14px 0 8px; }
.empty-page p { color: var(--ink-3); margin-bottom: 24px; }
.empty-btns { display: flex; gap: 12px; justify-content: center; }

/* ---------------- 广告位 ---------------- */
.ad-band { display: flex; align-items: center; gap: 16px; background: linear-gradient(100deg, #fff4e4, #ffe9cc); border: 1px solid #f6dcb8; border-radius: 12px; padding: 16px 22px; margin-top: 4px; transition: box-shadow .2s; }
.ad-band:hover { box-shadow: var(--shadow); }
.ad-band img { max-height: 78px; width: auto; border-radius: 8px; }
.ad-band-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; flex: none; }
.ad-band-t { font-size: 16.5px; font-weight: 700; color: #7a4a10; flex: 1; }
.ad-band-go { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--accent-600); font-weight: 600; }

/* ---------------- 价值点 ---------------- */
.value-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.v-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.value h4 { font-size: 16.5px; }
.value p { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.75; }

/* ---------------- 文章页 ---------------- */
.article-split { grid-template-columns: minmax(0, 1fr) 332px; }
.art-head { margin-bottom: 22px; }
.art-head h1 { font-size: 32px; line-height: 1.42; margin: 12px 0 14px; }
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.art-meta span { display: inline-flex; align-items: center; gap: 5px; }
.art-cover { border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.art-foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.art-share { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.art-note { font-size: 13px; color: #9aa9bb; margin-top: 14px; }
.wx-card { text-align: center; padding: 6px 0 2px; }
.wx-card img { margin: 0 auto 10px; border-radius: 8px; border: 1px solid var(--line); }
.wx-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.qr-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 104px; height: 104px; margin: 0 auto 10px; border: 1px dashed #c8d6e6; border-radius: 8px; background: #fbfdff; color: #93a4bd; font-size: 12.5px; }
.qr-ph.big { width: 120px; height: 120px; }

/* ---------------- 搜索 ---------------- */
.search-hero { background: linear-gradient(160deg, var(--brand-700), var(--brand-500)); color: #fff; padding: 48px 0 46px; }
.search-hero h1 { font-size: 30px; letter-spacing: 1px; }
.search-big { display: flex; gap: 10px; margin-top: 20px; max-width: 680px; }
.search-big input { flex: 1; height: 50px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .95); padding: 0 18px; font-size: 15.5px; outline: none; color: var(--ink); }
.search-big input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 135, 30, .25); }
.search-big .btn { height: 50px; padding: 0 26px; }
.search-count { margin-top: 16px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.search-count b { color: #ffcb85; }

/* ---------------- 验证 ---------------- */
.verify-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.verify-hero h1 { font-size: 28px; }
.verify-hero > .wrap > p { color: var(--ink-3); font-size: 14.5px; margin-top: 6px; }
.verify-hero .search-big input { background: var(--bg); border-color: var(--line); }
.verify-card { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px; text-align: center; }
.verify-card.good { border-color: #bfe8d3; box-shadow: 0 10px 40px rgba(15, 123, 79, .1); }
.verify-card.bad { border-color: #f6cdc9; }
.vc-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #eefaf3; color: var(--ok); font-size: 32px; margin: 0 auto 16px; }
.verify-card.bad .vc-ico { background: #fdf0ef; color: var(--err); }
.verify-card h2 { font-size: 23px; }
.vc-sub { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
.vc-list { margin-top: 26px; text-align: left; border-top: 1px solid var(--line-2); }
.vc-list li { display: flex; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.vc-list span { color: var(--ink-3); }
.hours-num { color: var(--accent-600); font-size: 17px; }

/* ---------------- 消息页 ---------------- */
.msg-page { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 44px; text-align: center; }
.msg-page h1 { font-size: 23px; margin-bottom: 16px; }
.msg-page .prose { text-align: left; margin-bottom: 24px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0e1c30; color: rgba(255, 255, 255, .62); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 40px; }
.f-logo { display: flex; align-items: center; gap: 9px; color: #fff; margin-bottom: 14px; }
.f-logo strong { font-size: 20px; letter-spacing: 1.2px; }
.f-brand p { font-size: 13.5px; line-height: 1.8; max-width: 320px; }
.f-org { margin-top: 10px; opacity: 1; font-size: 14px; color: rgba(255, 255, 255, .92); letter-spacing: .2px; }
.f-links h5, .f-qr h5 { color: #fff; font-size: 14.5px; margin-bottom: 14px; letter-spacing: .5px; }
.f-links a { display: block; font-size: 13.5px; padding: 5px 0; transition: color .15s; }
.f-links a:hover { color: #ffcb85; }
.f-qr img { border-radius: 8px; background: #fff; padding: 4px; }
.f-qr small { display: block; font-size: 12.5px; margin-top: 8px; opacity: .7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-bottom a:hover { color: #fff; }
.f-sep { opacity: .3; }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(8, 18, 33, .62); backdrop-filter: blur(3px); }
.modal-box { position: relative; background: #fff; border-radius: 16px; padding: 30px; width: min(440px, 100%); box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-x { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: #9aa9bb; cursor: pointer; }
.modal-x:hover { color: var(--ink); }
.share-box h3 { font-size: 19px; text-align: center; }
.share-tip { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.share-qr { display: grid; place-items: center; margin: 20px 0 16px; min-height: 172px; }
.share-qr img, .share-qr canvas { border-radius: 8px; }
.share-url { display: flex; gap: 8px; }
.share-url input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 11px; font-size: 13.5px; color: var(--ink-3); background: var(--bg); }
.share-actions { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }

.done-box { text-align: center; width: min(400px, 100%); }
.done-ico { width: 62px; height: 62px; border-radius: 50%; background: #eefaf3; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.done-box h3 { font-size: 20px; }
.done-box p { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
.done-btns { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-body { background: var(--bg); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; }
.auth-visual { position: relative; background: linear-gradient(150deg, var(--brand-700), var(--brand-500) 70%, #2a6fbd); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; overflow: hidden; }
.av-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000, transparent 70%); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: 1.5px; position: relative; z-index: 1; }
.av-text { margin-top: auto; position: relative; z-index: 1; }
.av-text h2 { font-size: 40px; line-height: 1.42; letter-spacing: 1px; font-weight: 800; }
.av-text p { margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.av-points { display: flex; gap: 40px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); position: relative; z-index: 1; }
.av-points li { display: flex; flex-direction: column; }
.av-points b { font-size: 28px; font-weight: 800; color: #ffcb85; }
.av-points span { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 2px; }

.auth-form-side { display: flex; flex-direction: column; justify-content: center; padding: 40px 56px; background: #fff; }
.auth-form-inner { width: 100%; max-width: 430px; margin: 0 auto; }
.auth-head h1 { font-size: 29px; letter-spacing: .5px; }
.auth-head p { font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 26px 0 22px; }
.auth-tabs button { border: 0; background: none; padding: 0 0 12px; font-size: 15.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; position: relative; }
.auth-tabs button.on { color: var(--brand); }
.auth-tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.auth-form { display: grid; gap: 16px; }
.field { display: block; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field > span i { color: var(--err); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px;
    font-size: 15.5px; color: var(--ink); background: #fff; outline: none; transition: border-color .16s, box-shadow .16s;
}
.field textarea { height: auto; padding: 11px 14px; line-height: 1.7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(31, 95, 176, .12); }
.field input:disabled { background: var(--bg); color: var(--ink-3); }
.field small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.check a { color: var(--brand-500); }
.auth-extra { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-3); margin-top: -4px; }
.auth-extra a { color: var(--brand-500); font-weight: 600; }
.auth-tip { display: flex; gap: 8px; align-items: flex-start; margin-top: 26px; padding: 12px 14px; background: var(--brand-20); border-radius: 10px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.auth-tip .ico { color: var(--brand-300); margin-top: 2px; }
.auth-org { margin-top: 30px; text-align: center; font-size: 13px; color: var(--ink-3); letter-spacing: .2px; line-height: 1.6; }
.auth-foot { margin-top: 40px; font-size: 13px; color: #9aa9bb; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.auth-org + .auth-foot { margin-top: 10px; }
.auth-foot a:hover { color: var(--brand); }
.wx-login { text-align: center; }
.wx-ico { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: #e8f9ef; color: #07c160; margin: 4px auto 14px; }
.wx-login h3 { font-size: 18px; }
.wx-login p { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 20px; line-height: 1.8; }
.wx-note { margin-top: 14px; font-size: 12.5px; color: #9aa9bb; }
.wx-bound { display: flex; align-items: center; gap: 8px; background: #e8f9ef; color: #07894a; padding: 10px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; }

/* ---------------- 个人中心 ---------------- */
.me-hero { background: linear-gradient(115deg, var(--brand-700), var(--brand-500)); color: #fff; padding: 34px 0 30px; }
.me-hero-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.me-user { display: flex; align-items: center; gap: 16px; }
.me-user h1 { font-size: 26px; letter-spacing: .5px; }
.me-user p { font-size: 13.5px; color: rgba(255, 255, 255, .68); margin-top: 4px; }
.me-quick { display: flex; gap: 34px; }
.me-quick div { text-align: center; }
.me-quick b { display: block; font-size: 28px; font-weight: 800; color: #ffcb85; line-height: 1.2; }
.me-quick span { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.me-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-top: 26px; align-items: start; }
.me-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 88px; }
.me-side a { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 9px; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.me-side a:hover { background: var(--brand-20); color: var(--brand); }
.me-side a.on { background: var(--brand); color: #fff; font-weight: 600; }
.me-side .me-out { color: var(--ink-3); font-size: 14px; margin-top: 6px; border-top: 1px solid var(--line-2); border-radius: 0 0 9px 9px; }
.me-main { min-width: 0; }
.me-main .panel:last-child { margin-bottom: 0; }

.doing-list { display: grid; gap: 4px; }
.doing-item { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line-2); border-radius: 8px; transition: background .15s; }
.doing-item:last-child { border-bottom: 0; }
.doing-item:hover { background: var(--brand-20); }
.doing-main { flex: 1; min-width: 0; }
.doing-main b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doing-main small { font-size: 13px; color: var(--ink-3); }
.doing-go { font-size: 14px; font-weight: 700; color: var(--accent-600); flex: none; }

.mini-stats { display: grid; gap: 10px; margin-bottom: 16px; }
.mini-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; background: var(--bg); border-radius: 9px; }
.mini-stats b { font-size: 19px; color: var(--brand); }
.mini-stats span { font-size: 13px; color: var(--ink-3); }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 13.5px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.table th:first-child { border-radius: 8px 0 0 8px; }
.table th:last-child { border-radius: 0 8px 8px 0; }
.table td { padding: 14px 14px; border-bottom: 1px solid var(--line-2); }
.table tbody tr:hover td { background: #fbfdff; }
.table tfoot td { padding: 14px 12px; font-weight: 600; background: var(--bg); border-bottom: 0; }
.table-actions { display: flex; gap: 10px; margin-top: 18px; }

.me-course-list { display: grid; gap: 4px; }
.mc-item { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.mc-item:last-child { border-bottom: 0; }
.mc-main { flex: 1; min-width: 0; }
.mc-top { display: flex; align-items: center; gap: 8px; }
.mc-title { font-size: 16px; font-weight: 600; }
.mc-title:hover { color: var(--brand); }
.mc-sub { font-size: 13px; color: var(--ink-3); margin: 4px 0 8px; }
.mc-prog { font-size: 12.5px; color: var(--accent-600); margin-top: 5px; font-weight: 600; }
.mc-act { flex: none; }
.badge { font-size: 12.5px; padding: 3px 9px; border-radius: 20px; background: var(--brand-50); color: var(--brand); white-space: nowrap; }
.badge.ok { background: #eefaf3; color: var(--ok); }

.form-grid { display: grid; gap: 16px; max-width: 620px; }
.form-actions { margin-top: 4px; }
.kv-list { display: grid; gap: 2px; }
.kv-list li { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv-list li:last-child { border-bottom: 0; }
.kv-list span { color: var(--ink-3); }

/* ---------------- 证书 ---------------- */
.cert-body { background: #eceff4; padding: 24px 16px 48px; }
.cert-toolbar { max-width: 820px; margin: 0 auto 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cert-page { max-width: 820px; margin: 0 auto; background: #fff; box-shadow: 0 10px 40px rgba(16, 32, 56, .14); padding: 14px; }
.cert-border { border: 2px solid var(--brand); padding: 6px; }
.cert-inner { border: 1px solid #c8d6e6; padding: 40px 52px 34px; position: relative; background:
    radial-gradient(circle at 50% 0, #f7fbff, #fff 60%); }
.cert-brand { display: flex; align-items: center; gap: 10px; }
.cert-mark { display: grid; place-items: center; }
.cert-brand b { display: block; font-size: 18px; letter-spacing: 2px; color: var(--brand); }
.cert-brand small { display: block; font-size: 12px; color: var(--ink-2); letter-spacing: .5px; }
.cert-title { text-align: center; font-size: 38px; letter-spacing: 12px; color: var(--brand); margin: 26px 0 4px; font-weight: 800; }
.cert-en { text-align: center; font-size: 10.5px; letter-spacing: 3px; color: #97a7b9; margin-bottom: 26px; }
.cert-body-text { font-size: 14.5px; line-height: 2.2; color: var(--ink-2); }
.cert-body-text p { text-indent: 2em; }
.cert-name { text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: 4px; text-indent: 0 !important; border-bottom: 1px solid var(--ink); display: inline-block; padding: 0 22px 4px; margin: 6px 0; }
.cert-body-text p:nth-child(3) { text-align: center; text-indent: 0; font-size: 13px; color: var(--ink-3); }
.cert-hours { font-size: 20px; color: var(--brand); padding: 0 4px; }
.cert-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 12.5px; }
.cert-table th { background: var(--brand-50); color: var(--brand); font-weight: 600; padding: 8px 6px; border: 1px solid #dbe6f3; }
.cert-table td { padding: 7px 6px; border: 1px solid #e6edf5; text-align: center; color: var(--ink-2); }
.cert-table td.left { text-align: left; }
.cert-table tr.filler td { height: 25px; color: transparent; }
.cert-more { font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 28px; gap: 20px; }
.cert-qr { text-align: center; }
.cert-qr small { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.cert-sign { text-align: right; font-size: 12.5px; color: var(--ink-2); line-height: 1.9; position: relative; }
.cert-seal { display: inline-block; margin-top: 10px; border: 2px solid rgba(180, 35, 24, .55); color: rgba(180, 35, 24, .7); border-radius: 50%; width: 86px; height: 86px; display: grid; place-items: center; font-size: 11px; text-align: center; line-height: 1.4; transform: rotate(-8deg); letter-spacing: 1px; padding: 10px; }
.cert-verify { margin-top: 24px; padding-top: 12px; border-top: 1px dashed #dbe6f3; font-size: 10.5px; color: #9aa9bb; text-align: center; }

/* ---------------- 响应式 ---------------- */
/* 一级菜单较多时，先收窄搜索框与导航内距，保证菜单单行不换行 */
@media (max-width: 1420px) {
    .header-inner { gap: 18px; }
    .nav-item > a { padding: 0 9px; font-size: 15px; }
    .brand-text em { display: none; }
    .searchbox { display: none; }
}

@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr 300px; gap: 34px; }
    .hero h1 { font-size: 31px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .value-row { grid-template-columns: repeat(2, 1fr); }
    .course-hero { grid-template-columns: 300px minmax(0, 1fr); }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 28px; }
    .f-qr { grid-column: 1; }
}

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    .split-side .panel { margin-bottom: 0; }
    .learn-body { grid-template-columns: 1fr; }
    .sticky { position: static; }
    .learn-side { order: 2; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-side { justify-content: flex-start; padding: 48px 24px 40px; }
    .auth-form-inner { max-width: 460px; }
    .me-wrap { grid-template-columns: 1fr; }
    .me-side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
    .me-side a { white-space: nowrap; padding: 9px 12px; font-size: 14px; }
    .me-side .me-out { border-top: 0; margin: 0; }
    .article-shell { padding: 26px 22px; }
}

@media (max-width: 760px) {
    .wrap { width: calc(100% - 32px); }
    /* 手机端保留公司全称条，只隐藏右侧快捷入口 */
    .topbar .wrap { height: 30px; justify-content: center; gap: 0; }
    .topbar-l { flex: none; justify-content: center; font-size: 12.5px; }
    .topbar-l > span:last-child { font-weight: 500; letter-spacing: .2px; }
    .topbar-r, .tb-dot { display: none; }
    .header-inner { height: 62px; gap: 10px; }
    .brand { gap: 8px; flex: 1 1 auto; }
    .brand-text em { display: none; }
    .brand-text strong { font-size: 18.5px; letter-spacing: 1px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
    .header-actions { gap: 6px; }
    .header-actions .btn.sm { padding: 0 11px; font-size: 13.5px; height: 32px; }
    .hamburger { width: 36px; height: 36px; }
    .searchbox { display: none; }
    .brand-text strong { font-size: 19px; }
    .brand-mark { width: 38px; height: 38px; }
    .hamburger { display: grid; }
    .mainnav {
        position: fixed; inset: 62px 0 auto 0; background: #fff; flex-direction: column;
        align-items: stretch; padding: 10px; gap: 0; border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow); display: none; max-height: calc(100dvh - 62px); overflow-y: auto; z-index: 70;
    }
    .mainnav.open { display: flex; }
    .nav-item > a { height: auto; padding: 12px 10px; border-radius: 8px; }
    .nav-item > a::after { display: none; }
    .nav-item > a.on { background: var(--brand-50); }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 8px; min-width: 0; display: none; }
    .nav-item.open .dropdown { display: block; }
    .hero-inner { grid-template-columns: 1fr; padding: 22px 0 62px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero-card { order: -1; }
    .statbar { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 18px 6px; }
    .stat:nth-child(2) { border-right: 0; }
    .stat b { font-size: 23px; }
    .section { padding-block: 32px; }
    .sec-head h2 { font-size: 21px; }
    .cat-grid, .course-grid, .course-grid.four, .course-grid.three { grid-template-columns: 1fr; }
    .course-grid.one .course-card { flex-direction: column; }
    .course-grid.one .cover { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
    .course-grid.one .card-body { padding: 16px 17px 18px; }
    .art-cols { grid-template-columns: 1fr; }
    .cover.thumb { width: 96px; }
    .course-hero { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
    .course-hero h1 { font-size: 22px; }
    .ch-cover .cover.big { aspect-ratio: 16 / 9; }
    .cat-hero { padding: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
    .cat-hero h1 { font-size: 24px; }
    .cat-hero-r { padding: 10px 18px; }
    .split-side { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; padding: 34px 0 26px; }
    .f-brand { grid-column: 1 / -1; }
    .f-qr { grid-column: auto; }
    .learn-hd-in { gap: 10px; row-gap: 8px; flex-wrap: wrap; }
    .lh-back { order: 1; }
    .lh-right { order: 2; margin-left: auto; }
    .lh-title { order: 3; flex-basis: 100%; }
    .lh-title h1 { font-size: 16px; line-height: 1.5; }
    .lh-right .lh-prog { display: none; }
    .article-shell { padding: 20px 16px; border-radius: 10px; }
    .article-body { font-size: 16px; line-height: 1.9; }
    .gallery-grid { grid-template-columns: 1fr; }
    .player-bar { padding: 8px 10px; }
    .pb-hint { display: none; }
    .learn-nav { flex-direction: column; }
    .ln-btn.next { text-align: left; }
    .me-quick { gap: 24px; }
    .me-user h1 { font-size: 21px; }
    .tabs a { padding: 7px 12px; font-size: 13.5px; }
    .field-row { grid-template-columns: 1fr; }
    .table { font-size: 13.5px; }
    .table th:nth-child(4), .table td:nth-child(4) { display: none; }
    .cert-inner { padding: 22px 18px; }
    .cert-title { font-size: 26px; letter-spacing: 8px; }
    .cert-foot { flex-direction: column; align-items: center; }
    .cert-sign { text-align: center; }
    .verify-card { padding: 26px 20px; }
    .search-big { flex-direction: column; }
    .search-big .btn { height: 46px; }
    .art-head h1 { font-size: 23px; }
    .sec-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .footer-bottom .wrap { justify-content: center; text-align: center; }
}

/* ---------------- 打印 ---------------- */
@media print {
    .no-print, .site-header, .topbar, .site-footer, .modal, .cert-toolbar { display: none !important; }
    body { background: #fff; }
    .cert-body { padding: 0; background: #fff; }
    .cert-page { box-shadow: none; margin: 0; padding: 0; max-width: none; }
    .cert-inner { padding: 30px 40px; }
    @page { size: A4 portrait; margin: 12mm; }
}
