/* ============================================================
   Inquisition · 用户中心 — "Morning Mint" fresh light theme
   Bespoke, no component library. Drives the existing
   console-assets/user.js DOM contract: it keeps the same hooks
   (.hidden, .active, .section, .pill, .toast, .meta-card, .card)
   and the --text variable that user.js inline-styles reference.
   ============================================================ */

:root {
    --bg:        #eef4f1;
    --surface:   #ffffff;
    --surface-2: #f5faf8;

    --ink:    #25342f;          /* primary text */
    --ink-2:  #51635d;          /* secondary text */
    --muted:  #8a9a93;
    --text:   #25342f;          /* referenced by user.js inline styles */

    --line:      rgba(37, 52, 47, 0.08);
    --line-soft: rgba(37, 52, 47, 0.05);

    --mint:      #2fb98a;
    --mint-deep: #1fa377;
    --mint-soft: #e3f5ed;
    --sky:       #459fd8;
    --sky-soft:  #e7f1fa;
    --coral:     #ef7a5f;
    --coral-soft:#fdeae3;
    --amber:     #e2a035;
    --amber-soft:#fbf0d8;

    --shadow-sm: 0 2px 10px rgba(37, 52, 47, 0.05);
    --shadow:    0 14px 36px -16px rgba(37, 52, 47, 0.20);
    --shadow-lg: 0 28px 60px -24px rgba(37, 52, 47, 0.28);

    --font-display: 'Quicksand', "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
    --font-body:    'Manrope', "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;

    --radius:    18px;
    --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    line-height: 1.55;
}

/* user.js may toggle [data-theme]; this build is committed light and ignores it. */

.hidden { display: none !important; }
::selection { background: var(--mint-soft); color: var(--mint-deep); }

/* ---- Soft background atmosphere ------------------------------ */
.bg-soft { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-soft::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(820px 520px at 8% -10%, rgba(47, 185, 138, 0.16), transparent 60%),
        radial-gradient(760px 520px at 104% 6%, rgba(69, 159, 216, 0.14), transparent 60%),
        linear-gradient(168deg, #f4f9f6 0%, #eaf2ee 60%, #e7f0ec 100%);
}
.bg-soft__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.bg-soft__blob--1 { width: 38vmax; height: 38vmax; top: -14vmax; left: -8vmax; background: radial-gradient(circle, rgba(47,185,138,.25), transparent 65%); animation: float 18s ease-in-out infinite; }
.bg-soft__blob--2 { width: 34vmax; height: 34vmax; bottom: -16vmax; right: -10vmax; background: radial-gradient(circle, rgba(69,159,216,.22), transparent 65%); animation: float 22s ease-in-out infinite reverse; }

/* ---- Layout -------------------------------------------------- */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; gap: 0; }
.content { min-width: 0; padding: 32px clamp(20px, 3.6vw, 56px) 64px; }

/* ---- Sidebar ------------------------------------------------- */
.sidebar {
    position: sticky; top: 0; align-self: start; height: 100vh;
    display: flex; flex-direction: column; gap: 8px;
    padding: 30px 22px;
    margin: 16px 0 16px 16px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 24px;
    box-shadow: var(--shadow);
    height: calc(100vh - 32px);
}

.brand { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.brand .eyebrow { color: var(--mint-deep); }
.brand h1 { font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.01em; margin: 6px 0 10px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.brand h1 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.brand .muted { font-size: 12.5px; }

.eyebrow { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* nav */
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; flex: 1; }
.nav button {
    display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; cursor: pointer;
    font-family: var(--font-display); font-size: 14.5px; font-weight: 600; letter-spacing: .005em;
    color: var(--ink-2); background: transparent; border: none; padding: 12px 14px; border-radius: 14px;
    transition: background .22s ease, color .22s ease, transform .15s, box-shadow .22s ease;
}
.nav button:active { transform: scale(.96); }
.nav button .nav-ico { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; transition: all .2s; }
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button:hover .nav-ico { opacity: .8; }
.nav button.active { background: var(--mint-soft); color: var(--mint-deep); box-shadow: inset 0 0 0 1px rgba(47,185,138,.18); }
.nav button.active .nav-ico { background: var(--mint); opacity: 1; box-shadow: 0 0 0 3px rgba(47,185,138,.18); }

.sidebar-footer { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- Hero ---------------------------------------------------- */
.hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
    padding: 30px 32px; margin-bottom: 24px;
    background: linear-gradient(120deg, #ffffff 0%, #f3fbf7 100%);
}
.hero::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(47,185,138,.16), transparent 70%); pointer-events: none;
}
.hero .eyebrow { color: var(--mint-deep); }
.hero h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 36px); margin: 8px 0 8px; letter-spacing: -0.01em; color: var(--ink); }
.hero .muted { font-size: 14px; max-width: 54ch; }
.hero-pill-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero-pill { font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.hero-sidecar { display: flex; gap: 12px; position: relative; z-index: 1; }
.hero-clock, #heroExpire { font-family: var(--font-display) !important; font-size: 26px !important; font-weight: 700; color: var(--mint-deep) !important; letter-spacing: .01em; font-variant-numeric: tabular-nums; }

/* ---- Cards --------------------------------------------------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head.compact { margin-bottom: 12px; }
.section-head h3, .card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.muted { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.empty { color: var(--muted); font-size: 13px; padding: 22px 4px; text-align: center; }

/* ---- meta-card ----------------------------------------------- */
.meta-card { display: flex; flex-direction: column; gap: 5px; padding: 13px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.meta-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.meta-card strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.account-switcher { margin-top: 4px; width: 100%; padding: 6px 8px; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; font-family: inherit; }
.account-switcher:focus { outline: none; border-color: var(--mint-deep); }

/* ---- account list (multi-account management) ----------------- */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.account-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    cursor: pointer;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .14s cubic-bezier(.22,.7,.3,1);
}
.account-card:hover { border-color: var(--mint); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.account-card:active { transform: scale(.98); }
.account-card:focus-visible { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.account-card-active {
    border-color: var(--mint);
    background: var(--surface);
    box-shadow: 0 0 0 1.5px var(--mint) inset, var(--shadow-sm);
    cursor: default;
}
.account-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-card-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); word-break: break-all; }
.account-card-meta { font-size: 12px; color: var(--muted); }
.account-card-statusline { margin-top: 2px; }

/* status badges */
.acct-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.acct-badge-current { color: #fff; background: var(--mint); }
.acct-badge-ok      { color: var(--mint-deep); background: var(--mint-soft); }
.acct-badge-frozen  { color: var(--amber); background: rgba(217, 164, 65, 0.14); }
.acct-badge-expired { color: var(--coral); background: rgba(239, 124, 107, 0.14); }

/* add tile */
.account-card-add {
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--mint-deep);
    font-weight: 700;
    font-size: 14px;
    border-style: dashed;
    background: transparent;
}
.account-card-add:hover { background: var(--mint-soft); }
.account-add-plus { font-size: 24px; line-height: 1; }
.account-card-add-disabled { color: var(--muted); cursor: not-allowed; border-color: var(--line-soft); }
.account-card-add-disabled:hover { background: transparent; box-shadow: none; border-color: var(--line-soft); }

/* "currently managing" banner above the edit forms */
.managing-banner {
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--mint-soft);
    border: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--text);
}
.managing-banner strong { font-family: var(--font-display); color: var(--mint-deep); }

/* ---- stats --------------------------------------------------- */
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.mini-stats .meta-card { background: linear-gradient(160deg, #ffffff, var(--surface-2)); box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); padding: 16px 18px; }
.stat-value   { font-family: var(--font-display) !important; font-size: 24px !important; font-weight: 700; color: var(--mint-deep) !important; font-variant-numeric: tabular-nums; }
.stat-message { font-size: 14px !important; color: var(--ink) !important; }
.stat-state   { font-size: 15px !important; color: var(--mint-deep) !important; font-family: var(--font-display); font-weight: 700; }
.stat-state.is-frozen { color: var(--coral) !important; }

/* ---- buttons ------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font-family: var(--font-display); font-size: 13.5px; font-weight: 700; letter-spacing: .005em;
    color: var(--ink); cursor: pointer; user-select: none;
    padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface);
    transition: background .18s, border-color .18s, color .18s, transform .12s, box-shadow .18s;
}
.btn:hover { background: var(--surface-2); border-color: rgba(47,185,138,.4); color: var(--mint-deep); transform: translateY(-1px); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--mint), var(--mint-deep)); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(47,185,138,.6); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #36c795, var(--mint)); box-shadow: 0 12px 26px -8px rgba(47,185,138,.7); }
.btn-danger { color: var(--coral); background: var(--coral-soft); border-color: transparent; }
.btn-danger:hover { color: #fff; background: var(--coral); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- forms --------------------------------------------------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
label { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; gap: 7px; }
input, select, textarea {
    font-family: var(--font-body); font-size: 14px; color: var(--ink); font-weight: 500;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 11px 14px; width: 100%; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 400; }
input:focus, select:focus, textarea:focus { border-color: var(--mint); background: #fff; box-shadow: 0 0 0 4px rgba(47,185,138,.14); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) center, calc(100% - 12px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.stack { display: grid; gap: 16px; }

/* ---- layout helpers ------------------------------------------ */
.two-column { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.three-column { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* Only the active section is shown; user.js toggles .active per nav target. */
.section { display: none; }
.section.active { display: block; animation: section-in .42s cubic-bezier(.22,.7,.3,1) both; }
@keyframes section-in {
    from { opacity: 0; transform: translateY(14px) scale(.995); }
    to   { opacity: 1; transform: none; }
}

/* ---- pills --------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-info   { color: var(--sky);       background: var(--sky-soft); }
.pill-ok     { color: var(--mint-deep);  background: var(--mint-soft); }
.pill-warn   { color: var(--amber);      background: var(--amber-soft); }
.pill-danger { color: var(--coral);      background: var(--coral-soft); }

/* ---- lists / logs -------------------------------------------- */
.list-item { padding: 15px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.log-meta-grid { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.break-all { word-break: break-all; }
.quote { font-size: 14px; line-height: 1.85; color: var(--ink); padding: 16px 18px; border-radius: 14px; background: var(--mint-soft); border-left: 3px solid var(--mint); }

/* ---- tables -------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
th { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--muted); text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); vertical-align: middle; }
tr:hover td { background: var(--surface-2); }
code { font-family: var(--font-body); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--mint-deep); font-size: 12.5px; }

/* ---- overlays / modals --------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(37, 52, 47, 0.28); backdrop-filter: blur(6px); }
.overlay.active { display: flex; animation: fade .22s ease; }
.modal { position: relative; padding: 30px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); animation: fade-up .35s cubic-bezier(.22,.7,.3,1); }
.modal h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }

/* ── 支付二维码弹层 ── */
.pay-modal { width: min(380px, 100%); text-align: center; }
.pay-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; transition: background .18s, color .18s; }
.pay-close:hover { background: var(--coral-soft); color: var(--coral); }
.pay-frame-wrap { width: 280px; min-height: 280px; margin: 4px auto 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pay-qr-img { width: 100%; height: auto; display: block; }
.pay-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.pay-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(47,185,138,0.5); animation: pay-pulse 1.4s ease-out infinite; }
.pay-status.paid .pay-dot { background: var(--mint-deep); animation: none; }
@keyframes pay-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,185,138,0.5); } 70% { box-shadow: 0 0 0 8px rgba(47,185,138,0); } 100% { box-shadow: 0 0 0 0 rgba(47,185,138,0); } }

/* ── 支付成功：全屏居中大提示 ── */
.pay-success-overlay { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(37,52,47,0.42); backdrop-filter: blur(8px); }
.pay-success-overlay.active { display: flex; animation: fade .22s ease; }
.pay-success-box { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 56px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); animation: pay-success-pop .42s cubic-bezier(.2,.9,.3,1.1); }
.pay-success-check { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); }
.pay-success-check svg { width: 76px; height: 76px; }
.pay-success-ring { stroke: var(--mint); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: pay-ring .5s ease forwards; }
.pay-success-tick { stroke: var(--mint-deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: pay-tick .4s .42s ease forwards; }
.pay-success-title { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.pay-success-sub { font-size: 15px; color: var(--ink-2); }
@keyframes pay-success-pop { 0% { opacity: 0; transform: scale(.82) translateY(10px); } 100% { opacity: 1; transform: none; } }
@keyframes pay-ring { to { stroke-dashoffset: 0; } }
@keyframes pay-tick { to { stroke-dashoffset: 0; } }
@media (max-width: 520px) { .pay-success-box { padding: 38px 34px; } .pay-success-title { font-size: 28px; } .pay-success-check { width: 100px; height: 100px; } .pay-success-check svg { width: 62px; height: 62px; } }
.account-editor-tab { flex: 1; font-family: var(--font-display); font-size: 13.5px; font-weight: 700; padding: 10px 14px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; border-radius: var(--radius-sm); transition: all .18s; }
.account-editor-tab.active { color: #fff; background: linear-gradient(135deg, var(--mint), var(--mint-deep)); border-color: transparent; box-shadow: 0 6px 16px -8px rgba(47,185,138,.6); }

/* ---- toasts -------------------------------------------------- */
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast { font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 13px 18px; min-width: 220px; max-width: 360px; background: var(--surface); border-radius: 14px; border-left: 4px solid var(--sky); box-shadow: var(--shadow); animation: slide-in .28s cubic-bezier(.22,.7,.3,1); }
.toast.success { border-left-color: var(--mint); }
.toast.error   { border-left-color: var(--coral); }
.toast.warning { border-left-color: var(--amber); }
.toast.info    { border-left-color: var(--sky); }

/* ---- animations ---------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2vmax, 3vmax); } }

.sidebar { animation: fade-up .5s cubic-bezier(.22,.7,.3,1) both; }
.hero { animation: fade-up .5s .05s cubic-bezier(.22,.7,.3,1) both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 折叠开关：桌面端永远隐藏，导航常驻展开 */
.nav-toggle { display: none; }

/* ---- responsive ---------------------------------------------- */
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; margin: 14px; flex-direction: column; }
    /* 展开态：等宽两列网格，按钮整齐对齐（取代按文字伸缩的 flex-wrap 参差布局） */
    .nav {
        display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px;
        /* 折叠/展开走平滑过渡：用 max-height + opacity 取代 display 瞬切 */
        max-height: 320px; opacity: 1; overflow: hidden;
        transition: max-height .32s cubic-bezier(.22,.7,.3,1), opacity .26s ease, margin-top .32s cubic-bezier(.22,.7,.3,1);
    }
    .nav button {
        width: 100%; justify-content: center; padding: 12px 10px;
        transition: background .2s, color .2s, transform .15s, opacity .26s ease;
    }
    .hero { grid-template-columns: 1fr; }
    .mini-stats { grid-template-columns: 1fr; }

    /* 移动端：显示折叠开关 */
    .nav-toggle {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; margin-top: 6px; padding: 12px 16px; cursor: pointer;
        font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
        color: var(--mint-deep); background: var(--mint-soft);
        border: 1px solid rgba(47,185,138,.18); border-radius: 14px;
    }
    .nav-toggle-caret { transition: transform .2s ease; font-size: 12px; }
    .nav-toggle[aria-expanded="false"] .nav-toggle-caret { transform: rotate(-90deg); }

    /* 折叠态：高度收为 0 + 淡出（平滑过渡，非瞬间 display 切换） */
    .nav.collapsed { max-height: 0; opacity: 0; margin-top: 0; pointer-events: none; }
}
