/* ===========================================================
   JF · 账号自助服务   前台样式
   2026-11-05 初版（模板）
   =========================================================== */

:root {
    --bg: #0b0f14;
    --bg-soft: #11161d;
    --card: rgba(20, 26, 34, .82);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #e9eef5;
    --text-dim: #98a4b3;
    --text-mute: #6b7787;
    --accent: #37e0a0;
    --accent-2: #2ea8ff;
    --danger: #ff6b6b;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---------- 背景装饰 ---------- */
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-deco .glow {
    position: absolute; width: 460px; height: 460px; border-radius: 50%;
    filter: blur(90px); opacity: .30;
}
.glow-a { top: -160px; left: -120px; background: radial-gradient(circle, #1f7a5a, transparent 65%); }
.glow-b { bottom: -200px; right: -140px; background: radial-gradient(circle, #17527a, transparent 65%); }
.bg-deco .grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- 顶栏 ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 22px;
    background: rgba(11, 15, 20, .72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04120c; font-weight: 800; font-size: 13px; letter-spacing: .5px;
}
.brand-text { font-size: 14px; color: var(--text-dim); }

.site-nav { display: flex; gap: 4px; }
.nav-link {
    padding: 7px 13px; border-radius: 999px;
    color: var(--text-dim); text-decoration: none; font-size: 13.5px;
    transition: background .18s, color .18s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-link.is-active { color: var(--text); background: rgba(55, 224, 160, .12); }

/* ---------- 通用 ---------- */
main { position: relative; z-index: 1; }

.eyebrow {
    margin: 0 0 10px; font-size: 11.5px; letter-spacing: .22em;
    color: var(--text-mute); text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
    max-width: 620px; margin: 0 auto;
    padding: 64px 20px 40px;
    text-align: center;
}
.hero-title {
    margin: 0 0 10px; font-size: 30px; line-height: 1.25; letter-spacing: -.01em;
    background: linear-gradient(180deg, #fff, #a9b7c7);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 26px; color: var(--text-dim); font-size: 14.5px; }
.hero-note { margin: 20px 0 0; color: var(--text-mute); font-size: 12.5px; }

/* ---------- Tabs ---------- */
.tabs {
    display: inline-flex; gap: 4px; padding: 4px;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line); border-radius: 999px;
    margin-bottom: 18px;
}
.tab {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    padding: 8px 16px; border-radius: 999px;
    color: var(--text-dim); font-size: 13.5px; font-family: inherit;
    transition: background .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab.is-active {
    background: linear-gradient(135deg, rgba(55,224,160,.20), rgba(46,168,255,.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(55,224,160,.35);
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 20px;
    text-align: left;
    backdrop-filter: blur(8px);
}

.panel { display: none; }
.panel.is-active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label {
    display: block; margin-bottom: 6px;
    font-size: 12.5px; color: var(--text-dim); letter-spacing: .02em;
}
input[type="text"], input[type="password"] {
    width: 100%; padding: 12px 14px;
    background: rgba(0,0,0,.32);
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    color: var(--text); font-size: 14.5px; font-family: inherit;
    outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder { color: var(--text-mute); }
input:focus {
    border-color: rgba(55,224,160,.55);
    box-shadow: 0 0 0 3px rgba(55,224,160,.13);
    background: rgba(0,0,0,.45);
}

.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.eye {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    display: grid; place-items: center; width: 30px; height: 30px;
    background: transparent; border: 0; border-radius: 8px;
    color: var(--text-mute); cursor: pointer;
}
.eye:hover { color: var(--text); background: rgba(255,255,255,.06); }

.btn-primary {
    width: 100%; margin-top: 6px; padding: 13px 18px;
    border: 0; border-radius: var(--radius-sm); cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #04120c; font-size: 15px; font-weight: 700; font-family: inherit;
    letter-spacing: .02em;
    transition: filter .18s, transform .12s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; filter: none; }

.form-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--text-dim); }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--accent); }

/* ---------- 扫码 ---------- */
.qr-box {
    display: grid; place-items: center;
    min-height: 210px; margin-bottom: 14px;
    background: rgba(0,0,0,.30);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}
.qr-placeholder { text-align: center; color: var(--text-mute); font-size: 13px; }
.qr-placeholder svg { color: var(--line-strong); margin-bottom: 8px; }
.qr-box img { width: 190px; height: 190px; border-radius: 10px; background: #fff; padding: 6px; }

/* ---------- 查询结果 ---------- */
.result-box {
    margin-top: 14px; padding: 14px;
    background: rgba(0,0,0,.30);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
}
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.result-row + .result-row { border-top: 1px dashed var(--line); }
.result-row span:first-child { color: var(--text-mute); }
.result-row span:last-child { color: var(--text); text-align: right; word-break: break-all; }

/* ---------- 使用指南 ---------- */
.guide { max-width: 620px; margin: 0 auto; padding: 30px 20px 20px; }
.section-title { margin: 0 0 18px; font-size: 21px; letter-spacing: -.01em; }

.faq { display: grid; gap: 10px; }
.faq details {
    background: rgba(255,255,255,.032);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .18s, background .18s;
}
.faq details[open] { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.faq summary {
    list-style: none; cursor: pointer;
    padding: 14px 16px; font-size: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; color: var(--text-mute); font-size: 17px; line-height: 1;
    transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq-body { padding: 0 16px 14px; color: var(--text-dim); font-size: 13.5px; }
.faq-body p { margin: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
    position: relative; z-index: 1;
    max-width: 620px; margin: 30px auto 0; padding: 22px 20px 40px;
    text-align: center; color: var(--text-mute); font-size: 12.5px;
    border-top: 1px solid var(--line);
}
.site-footer p { margin: 0 0 10px; }
.back-top { color: var(--text-dim); text-decoration: none; font-size: 12.5px; }
.back-top:hover { color: var(--accent); }

/* ---------- 移动端 ---------- */
@media (max-width: 560px) {
    .site-header { padding: 12px 14px; }
    .brand-text { display: none; }
    .nav-link { padding: 6px 10px; font-size: 12.5px; }
    .hero { padding: 44px 14px 30px; }
    .hero-title { font-size: 25px; }
    .card { padding: 18px 15px; border-radius: 14px; }
    .tabs { width: 100%; }
    .tab { flex: 1; padding: 8px 6px; font-size: 12.5px; }
    .guide { padding: 24px 14px 16px; }
    .site-footer { padding: 18px 14px 32px; }
}
