/* ======================================================================
   Nebula Menu · 官网样式
   深空底色 + 极光点缀，与后台管理（浅色）区分开，偏向对外的品牌感
   ====================================================================== */

:root {
    --bg:        #06080f;
    --bg-soft:   #0b0f1c;
    --panel:     rgba(255, 255, 255, .045);
    --panel-2:   rgba(255, 255, 255, .07);
    --border:    rgba(255, 255, 255, .10);
    --border-2:  rgba(255, 255, 255, .18);
    --text:      #e8ecf8;
    --text-sub:  #98a2c0;
    --text-dim:  #6b769b;
    --primary:   #7c5cff;
    --primary-2: #a78bfa;
    --accent:    #22d3ee;
    --success:   #34d399;
    --warning:   #fbbf24;
    --danger:    #f87171;
    --radius:    16px;
    --shadow:    0 24px 60px rgba(0, 0, 0, .55);
}

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

/* ----------------------------------------------------------------------
   必须放在所有组件样式之前生效：hidden 属性靠浏览器默认的
   [hidden] { display: none } 生效，而它只是一个 UI 样式表规则，
   一旦作者样式里给元素写了 display（.modal 的 grid、.alert 的 flex 等），
   就会把它盖掉 —— 元素带着 hidden 却依然显示。
   这里显式兜底，避免"全屏加载遮罩永远不消失"这类问题。
   ---------------------------------------------------------------------- */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

button, input, textarea, select { font-family: inherit; font-size: inherit; outline: none; }
a { color: var(--primary-2); text-decoration: none; transition: .18s; }
a:hover { color: #c4b5fd; }
b { font-weight: 600; }
.muted { color: var(--text-sub); font-size: 13.5px; }

/* ---------------- 背景装饰 ---------------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg .blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg .b1 { width: 620px; height: 620px; background: #6d28d9; top: -220px; left: -140px; }
.bg .b2 { width: 520px; height: 520px; background: #0e7490; top: 8%; right: -180px; opacity: .42; }
.bg .b3 { width: 700px; height: 700px; background: #4c1d95; bottom: -320px; left: 32%; opacity: .32; }
.bg .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: 56px 56px;
    mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 76%);
}

/* ---------------- 维护提示条 ---------------- */
.maintain-bar {
    position: relative; z-index: 30; text-align: center;
    background: linear-gradient(90deg, #b45309, #f59e0b);
    color: #1c1207; font-weight: 700; font-size: 13.5px; padding: 9px 16px;
}

/* ---------------- 导航 ---------------- */
.nav {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 26px;
    padding: 14px clamp(18px, 5vw, 64px);
    backdrop-filter: blur(16px);
    background: rgba(6, 8, 15, .72);
    border-bottom: 1px solid var(--border);
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 17px; color: #fff; letter-spacing: .2px;
}
.brand:hover { color: #fff; }
.brand-logo {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: block; object-fit: contain;
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 6px 20px rgba(124, 92, 255, .35);
}
.nav-links { display: flex; gap: 24px; margin-left: 14px; }
.nav-links a { color: var(--text-sub); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 12px 5px 6px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--border);
}
.nav-user .mini-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.nav-user span { font-size: 13.5px; font-weight: 600; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: 1px solid transparent; border-radius: 11px;
    font-size: 14.5px; font-weight: 600; cursor: pointer;
    transition: .18s; white-space: nowrap; color: var(--text);
    background: var(--panel-2);
}
.btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: #fff; box-shadow: 0 10px 26px rgba(124, 92, 255, .38);
}
.btn.primary:hover { box-shadow: 0 12px 32px rgba(124, 92, 255, .55); filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); color: #fff; }
.btn.danger-ghost { border-color: rgba(248, 113, 113, .45); color: #fca5a5; }
.btn.danger-ghost:hover { background: rgba(248, 113, 113, .14); color: #fecaca; }
.btn.block { width: 100%; padding: 12px; }
.btn.lg { padding: 13px 30px; font-size: 15.5px; border-radius: 13px; }
.btn.xs { padding: 6px 13px; font-size: 12.5px; font-weight: 600; border-radius: 8px; }

/* ---------------- hero ---------------- */
.hero { position: relative; z-index: 1; padding: clamp(56px, 9vw, 108px) clamp(18px, 5vw, 64px) 40px; }
.hero-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px; border-radius: 999px; font-size: 13px; color: var(--text-sub);
    background: var(--panel); border: 1px solid var(--border); margin-bottom: 22px;
}
.pill .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
    font-size: clamp(30px, 5.4vw, 54px);
    line-height: 1.22; font-weight: 800; letter-spacing: -.5px; margin-bottom: 20px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--primary-2), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--text-sub); font-size: clamp(14px, 1.6vw, 16.5px); max-width: 660px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    max-width: 760px; margin: 0 auto;
}
.hero-stats .stat {
    padding: 16px 10px; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--border);
}
.hero-stats .stat b { display: block; font-size: 19px; color: #fff; letter-spacing: .2px; }
.hero-stats .stat span { font-size: 12.5px; color: var(--text-dim); }

/* 在线人数：拿到真实数据后才亮起绿色脉动点（避免加载/失败时误示"在线"） */
.pill-online { color: #fff; font-weight: 700; }
.hero-stats .stat-online.is-live::before {
    content: ""; display: inline-block; vertical-align: middle;
    width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 8px var(--success);
    animation: pulse 2s ease-in-out infinite;
}
.hero-stats .stat-online.is-live { color: var(--success); }

/* ---------------- 通用 section ---------------- */
.section { position: relative; z-index: 1; padding: 54px clamp(18px, 5vw, 64px); max-width: 1120px; margin: 0 auto; }
.sec-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; text-align: center; margin-bottom: 8px; }
.sec-sub { text-align: center; color: var(--text-sub); font-size: 14.5px; margin-bottom: 38px; }

/* 功能卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 18px; }
.card {
    padding: 26px 22px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border);
    transition: .22s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.card .ico {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 13px; font-size: 21px; font-style: normal; margin-bottom: 15px;
}
.card .i1 { background: rgba(124, 92, 255, .18); }
.card .i2 { background: rgba(52, 211, 153, .16); }
.card .i3 { background: rgba(34, 211, 238, .16); }
.card .i4 { background: rgba(251, 191, 36, .16); }
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--text-sub); font-size: 13.8px; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; list-style: none; }
.steps li {
    position: relative; padding: 26px 22px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border);
}
.steps .num {
    display: block; font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 12px;
    background: linear-gradient(120deg, var(--primary-2), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 16.5px; margin-bottom: 7px; }
.steps p { color: var(--text-sub); font-size: 13.8px; }

/* 公告 */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-list .item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px; border-radius: 13px;
    background: var(--panel); border: 1px solid var(--border);
}
.notice-list .item .tag {
    flex-shrink: 0; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700;
    background: rgba(124, 92, 255, .2); color: #c4b5fd;
}
.notice-list .item .tag.hot { background: rgba(248, 113, 113, .18); color: #fca5a5; }
.notice-list .item h4 { font-size: 15px; margin-bottom: 4px; }
.notice-list .item p { color: var(--text-sub); font-size: 13.5px; white-space: pre-wrap; }
.notice-list .item time { display: block; margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.notice-list.compact .item { padding: 13px 15px; }

.empty { color: var(--text-dim); font-size: 13.5px; text-align: center; padding: 22px 0; }
.empty.error { color: #fca5a5; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details {
    border-radius: 13px; border: 1px solid var(--border); background: var(--panel);
    padding: 14px 18px; transition: .18s;
}
.faq details[open] { background: var(--panel-2); border-color: var(--border-2); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.8px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "＋ "; color: var(--primary-2); font-weight: 700; }
.faq details[open] summary::before { content: "－ "; }
.faq p { color: var(--text-sub); font-size: 13.8px; margin-top: 10px; padding-left: 20px; }

/* ---------------- 个人中心 ---------------- */
#viewPanel { position: relative; z-index: 1; padding: 38px clamp(18px, 5vw, 64px) 24px; }
.panel-wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.panel-head {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 22px 26px; border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .10));
    border: 1px solid var(--border-2);
}
.greet { display: flex; align-items: center; gap: 16px; }
.greet h2 { font-size: 22px; }
.avatar {
    width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 23px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 26px rgba(124, 92, 255, .4);
}
.panel-head-btns { margin-left: auto; display: flex; gap: 10px; }

.alert {
    display: flex; flex-direction: column; gap: 3px;
    padding: 15px 20px; border-radius: 13px; font-size: 14px;
    border: 1px solid transparent;
}
.alert b { font-size: 14.5px; }
.alert span { font-size: 13.5px; }
.alert.warn { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .38); color: #fcd34d; }
.alert.ok { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .38); color: #6ee7b7; }

.panel-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.panel-right { display: flex; flex-direction: column; gap: 18px; }

.panel-card {
    padding: 22px 24px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border);
}
.card-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; margin-bottom: 16px;
}
.card-title-extra { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--text-dim); }
.card-title .btn.xs { margin-left: 10px; }

.vip-badge {
    display: inline-block; margin-bottom: 18px; padding: 6px 15px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    background: rgba(148, 163, 184, .16); color: #cbd5e1;
}
.vip-badge.on {
    background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(34, 211, 238, .24));
    color: #ddd6fe; border: 1px solid rgba(167, 139, 250, .45);
}

.kv { list-style: none; display: flex; flex-direction: column; }
.kv li {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 10px 0; font-size: 14px; border-bottom: 1px dashed var(--border);
}
.kv li:last-child { border-bottom: none; }
.kv li span { color: var(--text-sub); flex-shrink: 0; }
.kv li b { color: #fff; text-align: right; word-break: break-all; }

/* 激活 */
.activate-card .muted { margin-bottom: 16px; }
.act-form { display: flex; gap: 10px; flex-wrap: wrap; }
.act-form input {
    flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 11px;
    background: rgba(0, 0, 0, .32); border: 1px solid var(--border-2);
    color: #fff; font-size: 15px; letter-spacing: 1px; transition: .18s;
}
.act-form input::placeholder { color: var(--text-dim); letter-spacing: 1px; }
.act-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.act-result {
    margin-top: 16px; padding: 13px 16px; border-radius: 11px; font-size: 14px;
    background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); color: #6ee7b7;
}
.act-result.err { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fca5a5; }
.act-tips { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 5px; }
.act-tips li { font-size: 12.5px; color: var(--text-dim); padding-left: 14px; position: relative; }
.act-tips li::before { content: "·"; position: absolute; left: 4px; color: var(--primary-2); font-weight: 800; }

/* 永久会员状态卡（替换激活表单） */
#actForever .muted { margin-bottom: 0; }
.forever-badge {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 14px; padding: 7px 16px; border-radius: 999px;
    font-size: 13.5px; font-weight: 700; letter-spacing: .4px;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(245, 158, 11, .24), rgba(251, 191, 36, .13));
    border: 1px solid rgba(251, 191, 36, .48);
    box-shadow: 0 0 18px rgba(245, 158, 11, .16);
}
.forever-badge i { font-style: normal; font-size: 12px; color: #fbbf24; }

/* 设备表 */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.tbl th, .tbl td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td { color: var(--text-sub); }
.tbl td:first-child { color: #fff; font-weight: 600; }
.tbl .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.dot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.dot-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); }
.dot-tag.on::before { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dot-tag.off::before { background: var(--text-dim); }
.tbl .col-act { width: 84px; text-align: right; }
.tbl td.col-act { text-align: right; }
.tbl tr.is-off td { opacity: .55; }
.tbl tr.is-off td:first-child { color: var(--text-sub); }
.tbl .act-none { font-size: 12.5px; color: var(--text-dim); }
.hint-line { margin-top: 12px; font-size: 12.5px; color: var(--text-dim); }
.hint-line b { color: var(--text-sub); }
.hint-line .warn-text { color: #fca5a5; }

/* ======================================================================
   效果展示（客户端截图）
   ====================================================================== */
.shots {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.shots .empty { grid-column: 1 / -1; }
.shot {
    position: relative; margin: 0; overflow: hidden;
    border-radius: var(--radius); background: var(--panel);
    border: 1px solid var(--border); transition: .22s;
}
.shot:hover { border-color: var(--border-2); transform: translateY(-3px); }
.shot img {
    display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    cursor: zoom-in; background: rgba(0, 0, 0, .35);
    transition: .3s;
}
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
    padding: 11px 15px; font-size: 13.5px; color: var(--text-sub);
    border-top: 1px solid var(--border);
}
/* 图挂了（地址失效 / 防盗链）时的降级：不展示破图 */
.shot.shot-bad { display: none; }

/* 灯箱 */
.lightbox {
    position: fixed; inset: 0; z-index: 120;
    display: grid; place-items: center; gap: 14px;
    grid-template-rows: 1fr auto;
    padding: 44px 24px 28px;
    background: rgba(3, 5, 12, .92); backdrop-filter: blur(8px);
    animation: fadeIn .18s ease; cursor: zoom-out;
}
.lightbox img {
    max-width: min(1180px, 94vw); max-height: 82vh;
    border-radius: 14px; border: 1px solid var(--border-2);
    box-shadow: var(--shadow);
}
.lightbox-cap { color: var(--text-sub); font-size: 14px; text-align: center; }
.lightbox-close {
    position: absolute; top: 16px; right: 20px;
    width: 38px; height: 38px; border: none; border-radius: 11px; cursor: pointer;
    background: var(--panel-2); color: var(--text); font-size: 24px; line-height: 1;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ======================================================================
   价格套餐
   ====================================================================== */
.plans {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px; align-items: stretch;
}
.plans .empty { grid-column: 1 / -1; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 28px 24px 24px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border);
    transition: .22s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.plan.on {
    border-color: rgba(167, 139, 250, .55);
    background: linear-gradient(165deg, rgba(124, 92, 255, .17), rgba(34, 211, 238, .08));
    box-shadow: 0 20px 48px rgba(124, 92, 255, .22);
}
.plan-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    background: rgba(251, 191, 36, .18); color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, .42);
}
.plan h3 { font-size: 18px; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 6px; }
.plan-price b {
    font-size: 34px; font-weight: 800; line-height: 1;
    background: linear-gradient(120deg, var(--primary-2), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plan-price i { font-style: normal; font-size: 14px; color: var(--text-sub); }
.plan-duration { font-size: 13px; color: var(--text-sub); margin-bottom: 14px; }
.plan-points { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.plan-points li {
    position: relative; padding-left: 18px;
    font-size: 13.5px; color: var(--text-sub);
}
.plan-points li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--success); font-weight: 800; font-size: 12.5px;
}
/* 按钮统一沉底，多列时高度参差不齐也能对齐 */
.plan .btn { margin-top: auto; }
.plans-note {
    margin-top: 22px; text-align: center;
    font-size: 12.5px; color: var(--text-dim);
}

/* ======================================================================
   购买商家
   ====================================================================== */
.sellers {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px; align-items: stretch;
}
.sellers .empty { grid-column: 1 / -1; }
.seller {
    position: relative; display: flex; flex-direction: column;
    padding: 24px 22px 20px; border-radius: var(--radius);
    background: var(--panel); border: 1px solid var(--border);
    transition: .22s;
}
.seller:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.seller.on {
    border-color: rgba(34, 211, 238, .45);
    background: linear-gradient(165deg, rgba(34, 211, 238, .12), rgba(124, 92, 255, .07));
    box-shadow: 0 20px 48px rgba(34, 211, 238, .16);
}
.seller-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
    background: rgba(34, 211, 238, .14); color: var(--accent);
    border: 1px solid rgba(34, 211, 238, .4);
}
.seller-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 56px; }
.seller-logo {
    width: 46px; height: 46px; flex: none;
    border-radius: 12px; object-fit: cover;
    background: var(--panel-2); border: 1px solid var(--border);
}
.seller-logo-ph {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: var(--primary-2);
}
.seller-head h3 { font-size: 16.5px; }
.seller-points { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.seller-points li {
    position: relative; padding-left: 18px;
    font-size: 13px; color: var(--text-sub);
}
.seller-points li::before {
    content: "◈"; position: absolute; left: 0; top: 0;
    color: var(--accent); font-size: 11px;
}
.seller-foot { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.seller-foot .btn { flex: 1; text-align: center; justify-content: center; }

/* ======================================================================
   留言板
   ====================================================================== */
.board { max-width: 860px; margin: 0 auto; }

.board-compose {
    padding: 18px 20px; border-radius: var(--radius); margin-bottom: 18px;
    background: var(--panel); border: 1px solid var(--border);
}
.compose-ask {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}
.compose-box textarea {
    width: 100%; padding: 12px 14px; border-radius: 12px; resize: vertical;
    background: rgba(0, 0, 0, .32); border: 1px solid var(--border-2);
    color: #fff; font-size: 14.5px; line-height: 1.6; transition: .18s;
}
.compose-box textarea::placeholder { color: var(--text-dim); }
.compose-box textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.compose-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 11px;
}

/* ---------------- 图形验证码 ---------------- */
.captcha-line { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.fb-form .captcha-line { margin-top: 0; }
.captcha-input {
    flex: 1; min-width: 0; padding: 10px 14px; border-radius: 11px;
    background: rgba(0, 0, 0, .34); border: 1px solid var(--border);
    color: #fff; font-size: 14.5px; letter-spacing: 2px; text-transform: uppercase;
    transition: .18s;
}
.captcha-input::placeholder { color: var(--text-dim); letter-spacing: normal; }
.captcha-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.captcha-img {
    flex-shrink: 0; width: 120px; height: 41px; border-radius: 10px;
    border: 1px solid var(--border); background: #121624;
    cursor: pointer; display: block; object-fit: cover;
    transition: .18s;
}
.captcha-img:hover { border-color: var(--border-2); }
.compose-foot .counter { font-size: 12.5px; color: var(--text-dim); }
.compose-foot .counter b { color: var(--text-sub); }
.reply-tip {
    margin-bottom: 9px; font-size: 13.5px; color: var(--text-sub);
}
.reply-tip b { color: var(--primary-2); }
.link-btn {
    margin-left: 10px; padding: 0; border: none; background: none; cursor: pointer;
    color: var(--text-dim); font-size: 13px; text-decoration: underline;
}
.link-btn:hover { color: #fff; }

.board-list { display: flex; flex-direction: column; gap: 12px; }
.msg {
    display: flex; gap: 14px; padding: 18px 20px;
    border-radius: 14px; background: var(--panel); border: 1px solid var(--border);
    transition: .2s;
}
.msg:hover { border-color: var(--border-2); }
.msg-avatar {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center; font-size: 15px; font-weight: 700; font-style: normal; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.msg-name { font-size: 14.5px; color: #fff; }
.msg-tag {
    padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
    background: rgba(34, 211, 238, .18); color: #67e8f9;
}
.msg-head time { margin-left: auto; font-size: 12px; color: var(--text-dim); }
.msg-text { font-size: 14.5px; color: var(--text); word-break: break-word; white-space: pre-wrap; }
.msg-acts { display: flex; gap: 16px; margin-top: 11px; }
.msg-acts button {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0; border: none; background: none; cursor: pointer;
    font-size: 13px; color: var(--text-dim); transition: .18s;
}
.msg-acts button:hover { color: #fff; }
.msg-acts button:disabled { opacity: .5; cursor: not-allowed; }
.act-like i { font-style: normal; font-size: 14px; transition: .18s; }
.act-like.on { color: #fb7185; }
.act-like.on i { color: #fb7185; transform: scale(1.14); }

.msg-replies {
    margin-top: 13px; padding: 12px 15px;
    border-radius: 11px; background: rgba(0, 0, 0, .26);
    border-left: 2px solid rgba(124, 92, 255, .45);
    display: flex; flex-direction: column; gap: 11px;
}
.reply { font-size: 13.5px; }
.reply b { color: var(--primary-2); font-size: 13.5px; }
.reply em { font-style: normal; color: var(--text-dim); font-size: 12.5px; margin-left: 6px; }
.reply p { color: var(--text-sub); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.reply time { display: block; margin-top: 4px; font-size: 11.5px; color: var(--text-dim); }

.board-pager {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin-top: 20px; flex-wrap: wrap;
}
.pager-info { font-size: 13px; color: var(--text-dim); }

/* ======================================================================
   个人中心 · 我的反馈
   ====================================================================== */
.fb-intro { margin-bottom: 16px; }
.fb-form-wrap {
    padding: 18px 20px; margin-bottom: 18px;
    border-radius: 13px; background: rgba(0, 0, 0, .26);
    border: 1px solid var(--border);
}
.fb-form .field select,
.fb-form .field textarea {
    width: 100%; padding: 11px 14px; border-radius: 11px;
    background: rgba(0, 0, 0, .34); border: 1px solid var(--border);
    color: #fff; font-size: 14.5px; transition: .18s;
}
.fb-form .field textarea { resize: vertical; line-height: 1.6; }
.fb-form .field select:focus,
.fb-form .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .18); }
.fb-form .field select option { background: #131829; color: #fff; }
.fb-form-btns { display: flex; gap: 10px; }

.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-item {
    padding: 16px 18px; border-radius: 13px;
    background: rgba(0, 0, 0, .2); border: 1px solid var(--border);
}
.fb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.fb-type {
    flex-shrink: 0; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
    background: rgba(124, 92, 255, .2); color: #c4b5fd;
}
.fb-title { font-size: 14.5px; color: #fff; }
.fb-status {
    margin-left: auto; flex-shrink: 0;
    padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.fb-status.wait   { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.fb-status.doing  { background: rgba(34, 211, 238, .16); color: #67e8f9; }
.fb-status.done   { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.fb-status.closed { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
.fb-content {
    font-size: 13.8px; color: var(--text-sub);
    white-space: pre-wrap; word-break: break-word;
}
.fb-reply {
    margin-top: 12px; padding: 12px 14px;
    border-radius: 10px; background: rgba(52, 211, 153, .09);
    border-left: 2px solid rgba(52, 211, 153, .55);
}
.fb-reply-head { font-size: 12.5px; font-weight: 700; color: #6ee7b7; margin-bottom: 6px; }
.fb-reply p { font-size: 13.5px; color: var(--text-sub); white-space: pre-wrap; word-break: break-word; }
.fb-meta { margin-top: 10px; font-size: 12px; color: var(--text-dim); }

/* ======================================================================
   购买咨询弹窗
   ====================================================================== */
.modal-card.sm { max-width: 400px; }
.modal-title { font-size: 18px; margin-bottom: 8px; }
.modal-desc { font-size: 13.8px; color: var(--text-sub); margin-bottom: 16px; }
.contact-body {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 15px 16px; border-radius: 12px;
    background: rgba(0, 0, 0, .3); border: 1px solid var(--border);
}
.contact-body a { font-size: 15px; font-weight: 600; word-break: break-all; }
.contact-code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 15px; color: #fff; word-break: break-all;
}

/* 小屏：表单两列塌成单列 */
@media (max-width: 640px) {
    .fb-form .row2,
    .modal-card .row2 { grid-template-columns: 1fr; }
}

/* ---------------- 页脚 ---------------- */
.foot { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, .3); }
.foot-inner {
    max-width: 1120px; margin: 0 auto; padding: 32px clamp(18px, 5vw, 64px);
    display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.foot-inner > div:first-child { flex: 1; min-width: 200px; }
.foot-inner b { font-size: 15.5px; }
.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-logo {
    width: 28px; height: 28px; border-radius: 8px;
    display: block; object-fit: contain;
    background: rgba(255, 255, 255, .05);
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--text-sub); font-size: 13.5px; }
.foot-links a:hover { color: #fff; }
.copyright { width: 100%; font-size: 12.5px; color: var(--text-dim); border-top: 1px dashed var(--border); padding-top: 16px; }

/* ---------------- 弹窗 ---------------- */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: 20px;
    background: rgba(3, 5, 12, .78); backdrop-filter: blur(7px);
    animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    position: relative; width: 100%; max-width: 420px;
    padding: 32px 30px 26px; border-radius: 20px;
    background: linear-gradient(160deg, #131829, #0b0e19);
    border: 1px solid var(--border-2); box-shadow: var(--shadow);
    animation: popIn .22s cubic-bezier(.2, .9, .3, 1.2);
    max-height: calc(100vh - 40px); overflow-y: auto;
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border: none; border-radius: 9px; cursor: pointer;
    background: transparent; color: var(--text-dim); font-size: 22px; line-height: 1;
}
.modal-close:hover { background: var(--panel-2); color: #fff; }

.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab {
    flex: 1; padding: 10px; border: none; border-radius: 11px; cursor: pointer;
    background: transparent; color: var(--text-sub); font-weight: 600; font-size: 15px;
    transition: .18s;
}
.tab:hover { background: var(--panel); color: #fff; }
.tab.active { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--border-2); }

.field { margin-bottom: 15px; }
/* 两列并排字段（窄屏由下方媒体查询塌成单列） */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { margin-bottom: 0; }
.row2 + .field { margin-top: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; }
.field input {
    width: 100%; padding: 12px 14px; border-radius: 11px;
    background: rgba(0, 0, 0, .34); border: 1px solid var(--border);
    color: #fff; transition: .18s;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.form-note { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--text-sub); }
.modal-foot-note { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); text-align: center; }

/* ---------------- 提示条 ---------------- */
#toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
    min-width: 220px; max-width: 340px; padding: 13px 17px; border-radius: 12px;
    font-size: 13.8px; color: #fff;
    background: rgba(20, 24, 38, .96); border: 1px solid var(--border-2);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
    animation: slideIn .22s ease;
}
.toast.ok    { border-color: rgba(52, 211, 153, .55); }
.toast.err   { border-color: rgba(248, 113, 113, .55); }
.toast.info  { border-color: rgba(124, 92, 255, .55); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

#loadingMask {
    position: fixed; inset: 0; z-index: 150;
    display: grid; place-items: center; background: rgba(3, 5, 12, .6);
}
.spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .18); border-top-color: var(--primary-2);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
    .panel-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .panel-head { flex-direction: column; align-items: flex-start; }
    .panel-head-btns { margin-left: 0; width: 100%; }
    .panel-head-btns .btn { flex: 1; }
    .greet h2 { font-size: 19px; }
    .act-form input { min-width: 0; }
    .act-form .btn { width: 100%; }
}
