/* ==========================================================================
   引智人事官网 - 全站样式 v2（视觉升级版）
   商务青主色 + 暖色 CTA，参考蚂蚁人事 / 壹人事
   ========================================================================== */

:root {
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 112, 192, 0.14);
    --max-width: 1280px;
    --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    font-size: var(--text-md);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 全局背景：蓝图网格 + 极光漂移（与首页一致，仅浅色模式） ===== */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) body {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%230070c0' stroke-opacity='.05'/%3E%3Ccircle cx='.5' cy='.5' r='1' fill='%230070c0' fill-opacity='.07'/%3E%3C/svg%3E");
        background-attachment: fixed;
    }
}
:root[data-theme="light"] body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 .5H.5V48' fill='none' stroke='%230070c0' stroke-opacity='.05'/%3E%3Ccircle cx='.5' cy='.5' r='1' fill='%230070c0' fill-opacity='.07'/%3E%3C/svg%3E");
    background-attachment: fixed;
}
body::before, body::after {
    content: ""; position: fixed; z-index: -1; border-radius: 50%;
    pointer-events: none; filter: blur(90px);
}
body::before {
    width: 560px; height: 560px; left: -160px; top: -120px;
    background: rgba(41, 181, 240, .15);
    animation: idx-aurora-a 26s ease-in-out infinite alternate;
}
body::after {
    width: 520px; height: 520px; right: -180px; bottom: -140px;
    background: rgba(243, 152, 0, .11);
    animation: idx-aurora-b 32s ease-in-out infinite alternate;
}
@keyframes idx-aurora-a { to { transform: translate(130px, 100px) scale(1.18); } }
@keyframes idx-aurora-b { to { transform: translate(-120px, -90px) scale(1.12); } }

/* ===== 通用区块 ===== */
.section { padding: 88px 0; }
.section-gray { background: var(--bg-secondary); }
.section-blue { background: var(--bg-tertiary); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .tag {
    display: inline-block;
    color: var(--primary);
    background: var(--primary-light);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 5px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.section-head h2 {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -.5px;
}
.section-head p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-head .hl {
    background: linear-gradient(135deg, #ffd166, #ff9a3c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
    opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,112,192,.35); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff9a3c); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,122,24,.35); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,112,192,.25); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.8); transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: var(--text-lg); border-radius: var(--radius-md); }
.btn-sm { padding: 8px 18px; font-size: var(--text-base); border-radius: var(--radius-sm); }

/* ==========================================================================
   HEADER / 导航
   ========================================================================== */
.header {
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(212,230,231,.6);
    transition: all .3s ease;
}
.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary) 35%, #f39800 65%, transparent);
    opacity: 0; transition: opacity .4s; pointer-events: none;
}
.header.scrolled::after { opacity: 1; }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: var(--text-2xl); font-weight: 800; color: var(--primary); flex-shrink: 0; transition: transform .3s; }
.logo:hover { transform: scale(1.03); }
.logo .logo-badge {
    width: 38px; height: 38px; border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    background: linear-gradient(135deg, #1f3864, var(--primary));
    color: #fff; display: grid; place-items: center; font-size: var(--text-xl); font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,112,192,.3);
    transition: box-shadow .3s;
}
.logo:hover .logo-badge { box-shadow: 0 2px 18px rgba(0,112,192,.55); }
.logo small { display: block; font-size: 10px; color: #f39800; font-weight: 700; letter-spacing: 2.5px; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav > li { position: relative; }
.nav > li > a {
    display: flex; align-items: center; gap: 4px;
    padding: 0 12px; height: var(--header-h); line-height: var(--header-h);
    font-size: var(--text-base); font-weight: 500; color: var(--text-primary);
    position: relative; white-space: nowrap;
}
.nav > li > a::after { display: none; }
.nav > li > a:hover, .nav > li.active > a { color: var(--primary); }
.nav > li > a .caret { width: 12px; height: 12px; transition: transform .25s; opacity: .7; }
.nav > li:hover > a .caret { transform: rotate(180deg); opacity: 1; }

/* 「标准化」蓝 / 「增值」橙 凸显（导航下拉 + 服务切换器统一） */
.mega-item[href="/service/standard"] .mega-title strong,
.svc-switch-item[href="/service/standard"] .svc-switch-title strong { color: var(--primary); }
.mega-item[href="/service/value-added"] .mega-title strong,
.svc-switch-item[href="/service/value-added"] .svc-switch-title strong { color: #f39800; }

/* 下拉菜单 - 高端卡片式设计 */
.mega-dropdown {
    position: absolute; top: calc(var(--header-h) - 4px); left: 50%;
    transform: translateX(-50%) translateY(12px);
    min-width: 280px; background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.04);
    border: 1px solid var(--border-color);
    padding: 8px; opacity: 0; visibility: hidden; transition: all .25s cubic-bezier(.4,0,.2,1);
    z-index: 1000;
}
.nav > li:hover .mega-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-dropdown::before {
    content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px;
    background: linear-gradient(90deg, var(--primary), #f39800); border-radius: 2px;
}
.mega-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: var(--radius-md); cursor: pointer;
    transition: all .2s; text-decoration: none; color: var(--text-primary);
}
.mega-item:hover { background: var(--primary-light); }
.mega-icon {
    width: 44px; height: 44px; border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); color: var(--primary);
    transition: all .25s; flex-shrink: 0;
}
.mega-icon .ic { width: 22px; height: 22px; }
.mega-item:hover .mega-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 12px rgba(0,112,192,.25);
    transform: scale(1.08);
}
.mega-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mega-title { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); }
.mega-item:hover .mega-title { color: var(--primary); }
.mega-desc { font-size: var(--text-xs); color: var(--text-muted); }
.mega-arrow {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all .2s; flex-shrink: 0;
    opacity: 0; transform: translateX(-4px);
}
.mega-arrow .ic { width: 16px; height: 16px; }
.mega-item:hover .mega-arrow { opacity: 1; transform: translateX(0); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions .btn {
    border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.header-actions .btn-accent { box-shadow: 0 4px 14px rgba(243, 152, 0, .38); }

.nav-hot {
    position: relative;
}
.nav-hot::before {
    content: ''; position: absolute; top: -4px; right: -8px;
    width: 7px; height: 7px; border-radius: 0;
    background: var(--accent); box-shadow: 0 0 8px rgba(255,122,24,.5);
    animation: hotBlink 1.6s ease-in-out infinite;
}
@keyframes hotBlink { 50% { opacity: .3; } }

/* 移动端汉堡 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; background: none; border: none; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }

/* ==========================================================================
   HERO / 首屏
   ========================================================================== */
.hero {
    position: relative;
    background: var(--grad-hero);
    color: #fff; overflow: hidden;
    padding: 100px 0 110px;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,209,102,.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(41,181,240,.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
    pointer-events: none;
}
.hero::before {
    content: ""; position: absolute; right: -200px; top: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(41,181,240,.3), transparent 70%);
    animation: float 8s ease-in-out infinite;
}
.hero::after {
    content: ""; position: absolute; left: -150px; bottom: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,209,102,.15), transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    padding: 8px 18px; border-radius: var(--radius-xl); font-size: var(--text-sm); margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.15);
}
.hero h1 { font-size: var(--text-6xl); line-height: 1.2; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 .hl {
    background: linear-gradient(135deg, #ffd166, #ff9a3c);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .subtitle { font-size: var(--text-xl); opacity: .88; margin-bottom: 36px; max-width: 520px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats .num { font-size: var(--text-4xl); font-weight: 800; color: #ffd166; }
.hero-stats .lbl { font-size: var(--text-sm); opacity: .75; margin-top: 4px; }

.hero-visual {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-xl); padding: 32px; backdrop-filter: blur(8px);
}
.hero-visual .hv-card {
    background: var(--surface); color: var(--text-primary); border-radius: var(--radius-lg);
    padding: 20px 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: all .3s; cursor: default;
}
.hero-visual .hv-card:hover { transform: translateX(6px); box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.hero-visual .hv-card:last-child { margin-bottom: 0; }
.hero-visual .hv-ico {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; font-size: var(--text-3xl); flex-shrink: 0;
    transition: all .3s;
}
.hero-visual .hv-card:hover .hv-ico {
    background: var(--primary); color: #fff; transform: scale(1.08);
}
.hero-visual .hv-t { font-weight: 700; font-size: var(--text-md); }
.hero-visual .hv-d { font-size: var(--text-sm); color: var(--text-muted); }

/* 信任背书条 */
.trust-bar {
    background: var(--surface); border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,.03);
    position: relative; overflow: hidden;
}
.trust-bar::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0,112,192,.03), transparent);
    pointer-events: none;
}
.trust-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; padding: 32px 24px; gap: 24px; }
.trust-item { text-align: center; transition: transform .3s; }
.trust-item:hover { transform: translateY(-2px); }
.trust-item .tn { font-size: var(--text-4xl); font-weight: 800; color: var(--primary); }
.trust-item .tl { font-size: var(--text-base); color: var(--text-secondary); margin-top: 4px; }

/* ==========================================================================
   卡片网格 / 通用
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 32px 28px; transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,112,192,.10); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ico {
    width: 60px; height: 60px; border-radius: var(--radius-lg);
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; font-size: var(--text-4xl); margin-bottom: 20px;
    transition: all .35s;
}
.card:hover .ico {
    background: var(--primary); color: #fff;
    box-shadow: 0 8px 20px rgba(0,112,192,.3);
    transform: scale(1.05);
}
.card h3 { font-size: var(--text-xl); font-weight: 700; margin-bottom: 10px; }
.card p { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.7; }
.card ul.points { margin-top: 14px; }
.card ul.points li { font-size: var(--text-sm); color: var(--text-secondary); padding-left: 20px; position: relative; margin-bottom: 8px; }
.card ul.points li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* 痛点卡片 */
.pain-card { text-align: center; }
.pain-card .ico { margin: 0 auto 20px; background: var(--accent-light); color: var(--accent); }

/* 服务图标网格 */
.svc-item {
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    padding: 28px 16px; text-align: center; transition: all .3s;
    position: relative; overflow: hidden;
}
.svc-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    opacity: 0; transition: opacity .3s;
}
.svc-item:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,112,192,.12); transform: translateY(-4px); }
.svc-item:hover::before { opacity: .3; }
.svc-item .si-ico { font-size: var(--text-4xl); margin-bottom: 12px; position: relative; z-index: 1; }
.svc-item .si-name { font-size: var(--text-base); font-weight: 600; position: relative; z-index: 1; }

/* 流程步骤 */
.steps { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; counter-reset: step; }
.step { flex: 1; min-width: 140px; text-align: center; }
.step .snum {
    width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    background: linear-gradient(160deg, #1f3864, #2b4c8c); color: #fff;
    display: grid; place-items: center;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: var(--text-2xl); font-weight: 700;
    box-shadow: 0 8px 20px rgba(31,56,100,.28);
    transition: all .3s;
}
.step:hover .snum { transform: scale(1.1); box-shadow: 0 6px 24px rgba(0,112,192,.4); }
.step h4 { font-size: var(--text-lg); margin-bottom: 6px; font-weight: 600; }
.step p { font-size: var(--text-sm); color: var(--text-muted); }

/* ===== 页面横幅（内页）：藏青科技风 · 流光 ===== */
.page-banner {
    background: linear-gradient(135deg, #0a1628 0%, #095c5d 40%, #0e7a7b 100%);   /* hr-website-v2 同款配色 */
    color: #fff; padding: 76px 0; text-align: center;
    position: relative; overflow: hidden;
    min-height: 260px; display: flex; flex-direction: column; justify-content: center;
}
/* 双色漂移光斑（流动性） */
.page-banner::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(420px 300px at 12% 112%, rgba(243,152,0,.20), transparent 70%),
        radial-gradient(460px 320px at 88% -22%, rgba(94,234,212,.18), transparent 70%);
    animation: pbOrbDrift 14s ease-in-out infinite alternate;
}
@keyframes pbOrbDrift {
    to { background-position: 70px -36px, -80px 44px; }
}
.page-banner h1 { font-size: var(--text-5xl); font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1; letter-spacing: -.5px; }
.page-banner p { font-size: var(--text-lg); opacity: .88; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: var(--text-sm); opacity: .75; margin-top: 16px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: #ffb84d; }


/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 560px; }
table.data th, table.data td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: var(--text-base); }
table.data th {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; font-weight: 600; font-size: var(--text-sm); letter-spacing: .5px;
}
table.data tr:nth-child(even) td { background: var(--bg-secondary); }
table.data tr:hover td { background: var(--primary-light); }
.price-hl { color: var(--accent); font-weight: 700; font-size: var(--text-md); }

/* ===== 服务详情列表（页内展示，不跳转） ===== */
.svc-detail {
    display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 28px; transition: all .3s;
    position: relative; overflow: hidden;
}
.svc-detail::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--primary-2));
    opacity: 0; transition: opacity .3s;
}
.svc-detail:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.svc-detail:hover::before { opacity: 1; }
.svc-detail .sd-ico { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: var(--text-3xl); flex-shrink: 0; transition: all .3s; }
.svc-detail:hover .sd-ico { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(0,112,192,.3); }
.svc-detail .sd-body h3 { font-size: var(--text-xl); margin-bottom: 8px; font-weight: 700; }
.svc-detail .sd-body .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.svc-detail .sd-body .meta span { font-size: var(--text-xs); background: var(--bg-secondary); color: var(--text-secondary); padding: 4px 12px; border-radius: var(--radius-xs); }

/* ===== 文章列表 ===== */
.article-item { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border-color); color: inherit; text-decoration: none; transition: all .3s; }
.article-item:hover { padding-left: 12px; }
.article-item:hover h3 { color: var(--primary); }
.article-item .ai-date { flex-shrink: 0; text-align: center; width: 76px; }
.article-item .ai-date .d { font-size: var(--text-4xl); font-weight: 800; color: var(--primary); }
.article-item .ai-date .m { font-size: var(--text-xs); color: var(--text-muted); }
.article-item h3 { font-size: var(--text-xl); margin-bottom: 8px; transition: color .2s; font-weight: 600; }
.article-item p { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.6; }
.article-item .tag-sm { display:inline-block; font-size: var(--text-xs); color: var(--primary); background: var(--primary-light); padding: 3px 12px; border-radius: var(--radius-xs); margin-top: 12px; font-weight: 500; }
/* 卡片式文章列表 */
.article-item.card { border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px 28px; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.02); }
.article-item.card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(0,112,192,.08); transform: translateY(-2px); padding-left: 28px; }
.article-item.card:hover .ai-date .d { color: var(--accent); }
.article-item.card .ai-date .d { font-size: var(--text-4xl); }

/* ===== 文章详情 ===== */
.article-banner { padding: 56px 0 48px; min-height: auto; text-align: left; }
.article-banner .container { max-width: var(--list-width); margin: 0 auto; padding: 0 24px; }
.article-banner h1 { font-size: var(--text-4xl); line-height: 1.35; max-width: var(--list-width); }
.article-banner h1::before, .article-banner h1::after { display: none; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.article-meta .am-item { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-base); color: var(--text-muted); }
.article-meta .am-item .ic { width: 16px; height: 16px; }
.article-detail { max-width: var(--prose-width); margin: 0 auto; }
.article-detail p { font-size: var(--text-lg); line-height: 1.9; color: var(--text-secondary); margin-bottom: 20px; }
.article-lead { font-size: 17px !important; line-height: 1.85 !important; color: var(--text-primary) !important; font-weight: 500; padding: 20px 24px; background: var(--bg-secondary); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 28px !important; }
.article-back { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.article-back .btn .ic { width: 16px; height: 16px; margin-right: 4px; }
.related-box { max-width: var(--prose-width); margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--border-color); }
.related-title { font-size: var(--text-2xl); margin-bottom: 16px; }
.related-list { list-style: none; display: grid; gap: 12px; }
.related-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary); transition: all .25s ease; }
.related-list a:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(0,112,192,.1); transform: translateY(-2px); }
.related-list .r-date { flex-shrink: 0; font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.related-list .r-title { flex: 1; font-size: var(--text-md); font-weight: 500; }
.related-list .r-arrow { width: 16px; height: 16px; color: var(--text-muted); transition: all .2s; }
.related-list a:hover .r-arrow { color: var(--primary); transform: translateX(3px); }

/* ===== 表单 ===== */
.form-card {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.06); padding: 44px; max-width: var(--form-width); margin: 0 auto;
    border: 1px solid var(--border-color);
}
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: var(--text-base); font-weight: 600; margin-bottom: 8px; }
.form-group label .req { color: var(--danger); }
.form-control {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md); font-size: var(--text-base); transition: all .25s; font-family: inherit;
    background: var(--surface); color: var(--text-primary);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,112,192,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { color: var(--danger); font-size: var(--text-xs); margin-top: 6px; display: none; }
.form-group.error .form-control { border-color: var(--danger); }
.form-group.error .form-error { display: block; }

/* ===== 登录页 ===== */
.login-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary)); padding: 40px 20px; }
.login-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: 0 16px 48px rgba(0,0,0,.08); padding: 48px 44px; width: 100%; max-width: 420px; border: 1px solid var(--border-color); }
.login-card h2 { text-align: center; margin-bottom: 8px; font-size: var(--text-3xl); }
.login-card .sub { text-align: center; color: var(--text-muted); font-size: var(--text-base); margin-bottom: 32px; }
.login-tip { background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 14px 18px; font-size: var(--text-sm); color: var(--text-secondary); margin-top: 24px; border: 1px solid var(--border-color); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--grad-footer); color: var(--footer-text); padding: 64px 0 0; position: relative; }
.footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,112,192,.3), transparent);
}
.footer a { color: var(--footer-link); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid var(--footer-divider); }
.footer h4 { color: var(--footer-heading); font-size: var(--text-lg); margin-bottom: 20px; font-weight: 600; }
.footer .f-brand .logo { color: #fff; margin-bottom: 18px; }
.footer .f-brand p { font-size: var(--text-sm); line-height: 1.8; }
.footer ul li { margin-bottom: 12px; font-size: var(--text-base); }
.footer .f-contact li { display: flex; gap: 8px; font-size: var(--text-base); }
.footer .qr { display: flex; gap: 20px; margin-top: 12px; }
.footer .qr .qr-box { text-align: center; }
.footer .qr .qr-img { width: 96px; height: 96px; background: #fff; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--text-muted); font-size: var(--text-xs); text-align: center; }
.footer .qr .qr-cap { font-size: var(--text-xs); margin-top: 8px; }
.footer .f-contact ul li { display: flex; align-items: center; gap: 8px; font-size: var(--text-base); padding: 6px 0; }
.footer .f-contact ul li svg.ic { width: 16px; height: 16px; color: rgba(255,255,255,.5); flex-shrink: 0; }

/* ---- 设计稿版页脚：左侧联系信息 + 右侧二维码 ---- */
.footer-top { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.f-contact-main h2 { font-size: var(--text-4xl); font-weight: 800; color: #fff; margin-bottom: 28px; letter-spacing: 1px; }
.f-contact-main ul { list-style: none; padding: 0; margin: 0; }
.f-contact-main li { display: flex; gap: 10px; font-size: var(--text-md); line-height: 1.7; margin-bottom: 14px; color: rgba(255,255,255,.85); }
.f-contact-main .f-label { color: var(--primary); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.f-contact-main .f-value { color: rgba(255,255,255,.85); }
.f-qr-main { display: flex; justify-content: flex-end; gap: 28px; flex-wrap: wrap; }
.f-qr-main .qr-box { text-align: center; }
.f-qr-main .qr-img { width: 120px; height: 120px; background: #fff; border-radius: var(--radius-md); padding: 8px; display: grid; place-items: center; }
.f-qr-main .qr-img img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-xs); }
.f-qr-main .qr-cap { font-size: var(--text-sm); color: rgba(255,255,255,.72); margin-top: 10px; }

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .f-qr-main { justify-content: flex-start; }
}
.footer-bottom { text-align: center; padding: 24px 0; font-size: var(--text-sm); color: var(--footer-bottom-text); }
.footer-bottom a { color: var(--footer-bottom-text); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   弹窗 / MODAL
   ========================================================================== */
.modal-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: none; place-items: center; z-index: 2000; padding: 20px;
    animation: fadeIn .25s;
}
.modal-mask.show { display: grid; }
.modal {
    background: var(--surface); border-radius: var(--radius-xl); padding: 40px; max-width: 440px; width: 100%;
    text-align: center; position: relative; animation: popIn .3s;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.modal .modal-close { position: absolute; top: 12px; right: 16px; font-size: var(--text-4xl); color: var(--text-muted); cursor: pointer; line-height: 1; transition: color .2s; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; border-radius: var(--radius-sm); }
.modal .modal-close:hover { color: var(--text-primary); }
.modal .modal-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.modal h3 { font-size: var(--text-2xl); margin-bottom: 10px; }
.modal .modal-sub { color: var(--text-secondary); font-size: var(--text-base); margin-bottom: 24px; }
.modal .qr-large { width: 200px; height: 200px; margin: 0 auto 16px; background: var(--bg-secondary); border: 1px dashed var(--border-color); border-radius: var(--radius-md); display: grid; place-items: center; color: var(--text-muted); font-size: var(--text-sm); text-align: center; padding: 12px; }
.modal .email-box { background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: var(--text-xl); padding: 16px; border-radius: var(--radius-md); margin: 16px 0; user-select: all; }
.modal .modal-note { font-size: var(--text-sm); color: var(--text-muted); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1281px) {
    .nav > li > a { padding: 0 18px; font-size: var(--text-md); }
    .logo small { display: block; }
}

@media (max-width: 1280px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border-color);
        max-height: 0; overflow: hidden; transition: max-height .35s;
        box-shadow: 0 8px 32px rgba(0,0,0,.1);
    }
    .nav.open { max-height: 80vh; overflow-y: auto; }
    .nav > li > a { height: 52px; line-height: 52px; padding: 0 24px; border-bottom: 1px solid var(--bg-secondary); font-size: var(--text-md); white-space: nowrap; }
    .nav > li > a::after { display: none; }
    .mega-dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; max-height: 0; overflow: hidden; padding: 0; transition: max-height .3s; background: var(--bg-secondary); border-radius: 0; }
    .nav > li.open-sub .mega-dropdown { max-height: 400px; padding: 8px; }
    .nav > li:hover .mega-dropdown { transform: none; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-head h2 { font-size: var(--text-3xl); }
    .hero h1 { font-size: var(--text-5xl); }
    .hero-stats { gap: 24px; flex-wrap: wrap; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .svc-detail { flex-direction: column; }
    .form-card { padding: 32px 24px; }
    .steps { flex-direction: column; }
    .header-actions .btn-outline { display: none; }
}

/* ==========================================================================
   服务类型切换器
   ========================================================================== */
.svc-switcher-section {
    background: var(--bg-secondary); padding: 0; margin-top: -1px;
    border-bottom: 1px solid var(--border-color);
}
.svc-switcher {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--surface); border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.06); overflow: hidden;
}
.svc-switch-item {
    display: flex; align-items: center; gap: 16px;
    padding: 28px 32px; position: relative;
    transition: all .3s cubic-bezier(.4,0,.2,1); cursor: pointer;
    border-right: 1px solid var(--border-color);
    text-decoration: none; color: var(--text-primary);
}
.svc-switch-item:last-child { border-right: none; }
.svc-switch-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    opacity: 0; transition: opacity .35s;
}
.svc-switch-item:hover::before { opacity: .04; }
.svc-switch-item.active::before { opacity: .08; }
.svc-switch-icon {
    width: 56px; height: 56px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); color: var(--primary);
    transition: all .35s; flex-shrink: 0; position: relative; z-index: 1;
}
.svc-switch-icon .ic { width: 26px; height: 26px; }
.svc-switch-item:hover .svc-switch-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 16px rgba(0,112,192,.3);
    transform: scale(1.05);
}
.svc-switch-item.active .svc-switch-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 20px rgba(0,112,192,.35);
}
.svc-switch-text {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1; position: relative; z-index: 1;
}
.svc-switch-title {
    font-size: var(--text-xl); font-weight: 700; color: var(--text-primary);
    transition: color .3s;
}
.svc-switch-title strong { color: var(--accent); font-weight: 800; margin-right: 2px; }
.svc-switch-item.active .svc-switch-title { color: var(--primary); }
.svc-switch-item.active .svc-switch-title strong { color: var(--accent-dark); }
.svc-switch-desc {
    font-size: var(--text-sm); color: var(--text-muted);
    transition: color .3s;
}
.svc-switch-item.active .svc-switch-desc { color: var(--text-secondary); }
.svc-switch-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); color: var(--text-muted);
    transition: all .3s; flex-shrink: 0; position: relative; z-index: 1;
}
.svc-switch-arrow .ic { width: 18px; height: 18px; }
.svc-switch-item:hover .svc-switch-arrow {
    background: var(--primary); color: #fff;
    transform: translateX(3px);
}
.svc-switch-item.active .svc-switch-arrow {
    background: var(--primary); color: #fff;
}

/* ===== 页面级导航切换栏 ===== */
.page-nav-section {
    background: var(--bg-secondary); padding: 0; margin-top: -1px;
    border-bottom: 1px solid var(--border-color);
}
.page-nav-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    background: var(--surface); border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04); overflow: hidden;
}
.page-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 24px; position: relative; cursor: pointer;
    transition: all .25s; text-decoration: none; color: var(--text-primary);
    border-right: 1px solid var(--border-color);
}
.page-nav-item:last-child { border-right: none; }
.page-nav-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    opacity: 0; transition: opacity .3s;
}
.page-nav-item:hover::before { opacity: .04; }
.page-nav-item.active::before { opacity: .08; }
.page-nav-icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); color: var(--primary);
    transition: all .25s; flex-shrink: 0; position: relative; z-index: 1;
}
.page-nav-icon .ic { width: 20px; height: 20px; }
.page-nav-item:hover .page-nav-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 3px 10px rgba(0,112,192,.25);
    transform: scale(1.08);
}
.page-nav-item.active .page-nav-icon {
    background: var(--primary); color: #fff;
    box-shadow: 0 3px 12px rgba(0,112,192,.3);
}
.page-nav-text {
    display: flex; flex-direction: column; gap: 1px; flex: 1;
    position: relative; z-index: 1;
}
.page-nav-title { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); }
.page-nav-item.active .page-nav-title { color: var(--primary); }
.page-nav-item:hover .page-nav-title { color: var(--primary); }
.page-nav-desc { font-size: var(--text-xs); color: var(--text-muted); }

/* ===== Banner 轮播 ===== */
.banner-carousel { position: relative; width: 100%; height: 560px; overflow: hidden; }
.banner-slides { position: relative; width: 100%; height: 100%; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; transition: opacity 2s ease-in-out;
    text-decoration: none; color: #fff; display: block;
}
.banner-slide:hover { color: #fff; text-decoration: none; }
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,.78) 0%, rgba(13,37,64,.52) 100%);
}
.banner-content {
    position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start; color: #fff;
}
.banner-title {
    font-size: var(--text-6xl); font-weight: 800; line-height: 1.25; margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0,0,0,.3); max-width: 680px;
}
.banner-subtitle {
    font-size: var(--text-2xl); line-height: 1.6; opacity: .9; margin-bottom: 32px;
    max-width: var(--form-width); text-shadow: 0 1px 8px rgba(0,0,0,.2);
}
.banner-cta { display: flex; gap: 16px; }
.banner-nav {
    position: absolute; top: 50%; z-index: 10; transform: translateY(-50%);
    width: 46px; height: 40px; border: none; border-radius: 0;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
    color: #fff; cursor: pointer; transition: all .25s;
    display: flex; align-items: center; justify-content: center;
}
.banner-nav .ic { width: 18px; height: 18px; }
.banner-nav:hover { background: #f39800; transform: translateY(-50%) scale(1.06); }
.banner-prev { left: 28px; }
.banner-next { right: 28px; }
.banner-frac {
    position: absolute; right: 34px; bottom: 24px; z-index: 10;
    display: flex; align-items: baseline; gap: 7px;
    font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums; letter-spacing: 2px;
    color: rgba(255,255,255,.62); font-size: var(--text-base);
}
.banner-frac span:first-child { font-size: var(--text-3xl); font-weight: 700; color: #f39800; }
.banner-frac i { font-style: normal; opacity: .5; }

/* ===== 管理后台 ===== */
.admin-topbar { background: #0f172a; color: #fff; height: 56px; display: flex; align-items: center; position: sticky; top: 0; z-index: 50; }
.admin-topbar-in { display: flex; align-items: center; justify-content: space-between; }
.admin-brand { font-weight: 700; letter-spacing: .5px; font-size: var(--text-md); }
.admin-topbar .admin-link { color: #cbd5e1; }
.admin-topbar .admin-link:hover { color: #fff; }
.admin-main { padding: 32px 0 64px; min-height: calc(100vh - 56px); background: var(--bg-secondary); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-toolbar h1 { font-size: var(--text-2xl); font-weight: 700; }
.admin-link { color: var(--primary); text-decoration: none; font-size: var(--text-base); font-weight: 500; }
.admin-link:hover { text-decoration: underline; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: var(--text-base); vertical-align: middle; }
.admin-table th { background: var(--bg-secondary); font-weight: 600; color: var(--text-secondary); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .admin-title { font-weight: 500; color: var(--text-primary); }
.admin-cat { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--primary-light); color: var(--primary); font-size: var(--text-xs); font-weight: 600; }
.admin-ops { display: flex; gap: 14px; align-items: center; }
.admin-del-form { display: inline; }
.admin-del { background: none; border: none; padding: 0; color: var(--danger); cursor: pointer; font-size: var(--text-base); font-weight: 500; }
.admin-del:hover { text-decoration: underline; }
.admin-empty { text-align: center; color: var(--text-muted); padding: 32px 0; }

.admin-form { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px; }
.admin-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.admin-form .form-group { margin-bottom: 18px; }
.admin-form-actions { display: flex; gap: 12px; margin-top: 10px; }
.login-error { color: var(--danger); font-size: var(--text-sm); margin-bottom: 14px; font-weight: 500; }
.brand { font-size: var(--text-xl); font-weight: 800; color: var(--primary); margin-bottom: 18px; }

@media (max-width: 640px) {
    .admin-row { grid-template-columns: 1fr; }
    .admin-table thead { display: none; }
    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
    .admin-table tr { border-bottom: 8px solid var(--bg-secondary); }
    .admin-table td { border-bottom: 1px solid var(--border-color); }
}

.admin-layout { display: flex; min-height: 100vh; background: var(--bg-secondary); }
.admin-sidebar { width: 240px; background: #0f172a; color: #cbd5e1; flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { padding: 20px 24px; display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: var(--text-lg); border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand .logo-badge { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--text-lg); }
.sidebar-brand small { display: block; font-size: var(--text-xs); font-weight: 400; color: #64748b; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: #94a3b8; text-decoration: none; font-size: var(--text-base); transition: all .15s; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: rgba(41,181,240,.15); color: var(--primary-2); border-left: 3px solid var(--primary-2); padding-left: 21px; }
.sidebar-nav .ic { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { padding: 12px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-ext { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: var(--text-sm); text-decoration: none; }
.sidebar-ext:hover { color: #94a3b8; }
.sidebar-ext .ic { width: 16px; height: 16px; }

.admin-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border-color); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 50; }
.admin-topbar h1 { font-size: var(--text-xl); font-weight: 700; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-user { display: flex; align-items: center; gap: 6px; font-size: var(--text-base); color: var(--text-secondary); }
.topbar-user .ic { width: 18px; height: 18px; }
.topbar-role { background: var(--danger-light); color: var(--danger); font-size: var(--text-xs); padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; }
.topbar-logout { display: flex; align-items: center; gap: 4px; color: #64748b; font-size: var(--text-sm); text-decoration: none; }
.topbar-logout:hover { color: var(--danger); }
.topbar-logout .ic { width: 16px; height: 16px; }

.admin-body { flex: 1; padding: 24px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dash-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; display: flex; align-items: center; gap: 16px; text-decoration: none; transition: all .2s; }
.dash-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); transform: translateY(-2px); }
.dash-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-icon .ic { width: 28px; height: 28px; }
.dash-info { display: flex; flex-direction: column; }
.dash-num { font-size: var(--text-4xl); font-weight: 700; line-height: 1; color: var(--text-primary); }
.dash-label { font-size: var(--text-base); color: var(--text-muted); margin-top: 4px; }
.dash-section-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: 16px; }
.dash-quick { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-quick-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); text-decoration: none; font-size: var(--text-base); font-weight: 500; transition: all .15s; }
.dash-quick-btn:hover { border-color: var(--primary); color: var(--primary); }
.dash-quick-btn .ic { width: 16px; height: 16px; }

.admin-tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; }
.login-success { color: var(--success); font-size: var(--text-sm); margin-bottom: 14px; font-weight: 500; background: var(--success-light); padding: 8px 14px; border-radius: var(--radius-sm); }

.config-section { margin-bottom: 28px; }
.config-section-title { font-size: var(--text-md); font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }

/* ===== 响应式 - 切换器 ===== */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-carousel { height: 440px; }
    .banner-title { font-size: var(--text-5xl); }
    .svc-switch-item { padding: 24px 24px; }
}
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-body { padding: 16px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .banner-carousel { height: 360px; }
    .banner-title { font-size: var(--text-4xl); }
    .banner-subtitle { font-size: var(--text-lg); }
    .banner-nav { width: 38px; height: 33px; }
    .banner-prev { left: 12px; }
    .banner-next { right: 12px; }
    .svc-switcher { grid-template-columns: 1fr; border-radius: 0 0 12px 12px; }
    .svc-switch-item { border-right: none; border-bottom: 1px solid var(--border-color); padding: 20px 24px; }
    .svc-switch-item:last-child { border-bottom: none; }
    .svc-switch-icon { width: 48px; height: 48px; border-radius: var(--radius-md); }
    .svc-switch-icon .ic { width: 22px; height: 22px; }
    .svc-switch-title { font-size: var(--text-md); }
    .page-nav-bar { grid-template-columns: 1fr; border-radius: 0 0 10px 10px; }
    .page-nav-item { border-right: none; border-bottom: 1px solid var(--border-color); padding: 14px 20px; }
    .page-nav-item:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
    .banner-carousel { height: 320px; }
    .banner-title { font-size: var(--text-2xl); }
    .banner-subtitle { font-size: var(--text-base); margin-bottom: 20px; }
    .svc-switch-item { padding: 16px 20px; gap: 12px; }
    .svc-switch-icon { width: 44px; height: 44px; }
    .svc-switch-desc { font-size: var(--text-xs); }
}

/* ==========================================================================
   回到顶部按钮
   ========================================================================== */
.scroll-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 48px; height: 48px; border-radius: var(--radius-lg);
    background: var(--primary); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 24px rgba(0,112,192,.3);
    opacity: 0; transform: translateY(12px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,112,192,.4); }
.scroll-top .ic { width: 22px; height: 22px; }
