/* ============================================================
   华良星悦工作台 · NebulaOS — 紫赛博主题
   复刻自 yuzoudiyigongzuotai.cn，全站功能版
   ============================================================ */

:root {
  --bg: #06040f;
  --bg-2: #0a0718;
  --bg-3: #120a26;

  --glass: rgba(30, 16, 56, 0.55);
  --glass-strong: rgba(22, 12, 44, 0.86);
  --glass-edge: rgba(168, 85, 247, 0.18);
  --glass-edge-bright: rgba(192, 132, 252, 0.42);

  --text: #f3eaff;
  --muted: #b39ddb;
  --faint: #7c6aa3;

  --neon: #c084fc;
  --blue: #8b5cf6;
  --violet: #a855f7;
  --pink: #f0abfc;
  --cyan: #22d3ee;
  --neon-soft: rgba(192, 132, 252, 0.13);
  --blue-soft: rgba(139, 92, 246, 0.16);

  --grad: linear-gradient(120deg, #f0abfc 0%, #a855f7 46%, #7c3aed 78%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(240,171,252,.15), rgba(124,58,237,.16));

  --line: rgba(168, 85, 247, 0.14);
  --radius: 18px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 10% -8%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(820px 600px at 94% 6%, rgba(240,171,252,.18), transparent 62%),
    radial-gradient(1000px 720px at 50% 118%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(600px 500px at 20% 90%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg, #06040f 0%, #08050f 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(168,85,247,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 76%);
  animation: gridDrift 44s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 46px, 46px 46px; } }

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 26px;
  background: linear-gradient(180deg, rgba(10,7,24,.9), rgba(10,7,24,.6));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--glass-edge);
}
.brand a { display: flex; align-items: center; gap: 10px; }
.brand-mark { filter: drop-shadow(0 0 10px rgba(192,132,252,.55)); }
.brand .name {
  font-size: 18px; font-weight: 700; letter-spacing: .5px; margin: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.brand .ver {
  font-size: 11px; color: var(--neon); border: 1px solid var(--glass-edge-bright);
  padding: 1px 7px; border-radius: 999px; letter-spacing: .5px;
}

.tabs {
  display: flex; align-items: center; gap: 4px; overflow-x: auto; flex: 1;
  scrollbar-width: none; -ms-overflow-style: none; padding: 4px 2px;
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; font-size: 13.5px; color: var(--muted);
  border-radius: 10px; border: 1px solid transparent; white-space: nowrap;
  transition: color .18s, background .18s, border-color .18s;
}
.tabs a:hover { color: var(--text); background: var(--neon-soft); }
.tabs a.active {
  color: #f7ecff; background: var(--blue-soft); border-color: var(--glass-edge-bright);
  box-shadow: inset 0 0 0 1px rgba(192,132,252,.12), 0 0 18px -6px rgba(168,85,247,.7);
}

.right { display: flex; align-items: center; gap: 14px; }
.stat {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 7px 13px; border: 1px solid var(--glass-edge); border-radius: 11px; background: var(--glass);
}
.stat b { color: var(--neon); font-weight: 700; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.login-btn {
  background: var(--grad); color: #10021f; border: 0; font-weight: 700; font-size: 13.5px;
  padding: 8px 16px; border-radius: 10px; cursor: pointer; box-shadow: 0 0 18px -4px rgba(168,85,247,.8);
  white-space: nowrap;
}
.login-btn:hover { filter: brightness(1.08); }

.menu-wrap { position: relative; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #10021f; background: var(--grad); box-shadow: 0 0 16px -2px rgba(168,85,247,.8); cursor: pointer;
}
.settings-popover {
  position: absolute; right: 0; top: 46px; width: 210px; padding: 8px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge-bright); border-radius: 14px;
  backdrop-filter: blur(20px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.menu-user { padding: 8px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-user strong { display: block; font-size: 14px; }
.menu-user small { color: var(--muted); font-size: 12px; }
.settings-popover button {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text);
  font-size: 13.5px; text-align: left; padding: 9px 11px; border-radius: 9px; cursor: pointer;
}
.settings-popover button:hover { background: var(--neon-soft); }
.mi-ico { width: 18px; text-align: center; opacity: .8; }
.nav-toggle { display: none; }

/* ---------- 通用视图 ---------- */
.view { display: none; }
.view.active { display: block; }

.home-page, .page-wrap {
  flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 24px 80px;
}
.mobile-site-brand { display: none; }

/* 每日签到 */
.daily-checkin {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; margin-bottom: 26px;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px;
}
.daily-checkin-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #10021f; font-weight: 800; background: var(--neon); box-shadow: 0 0 14px -2px var(--neon); }
.daily-checkin-copy { display: flex; flex-direction: column; line-height: 1.25; }
.daily-checkin-copy strong { font-size: 14.5px; }
.daily-checkin-copy small { color: var(--muted); font-size: 12.5px; }
.daily-checkin button[data-checkin-button] {
  margin-left: auto; background: var(--grad); color: #10021f; border: 0; font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; border-radius: 10px; cursor: pointer; box-shadow: 0 0 18px -4px rgba(168,85,247,.8); transition: transform .15s, filter .15s;
}
.daily-checkin button[data-checkin-button]:hover { transform: translateY(-1px); filter: brightness(1.08); }
.daily-checkin button[data-checkin-button]:disabled { filter: grayscale(.4) brightness(.85); cursor: default; }
.daily-checkin-message { color: var(--neon); font-size: 12.5px; }

/* 选题灵感 */
.mobile-inspiration {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 20px; margin-bottom: 30px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius);
}
.mobile-inspiration > div { display: flex; flex-direction: column; }
.mobile-inspiration strong { font-size: 16px; }
.mobile-inspiration span { color: var(--muted); font-size: 13px; }
.mobile-inspiration-links { display: flex; gap: 10px; flex-wrap: wrap; }
.mobile-inspiration-links a { padding: 9px 15px; border-radius: 10px; font-size: 13.5px; border: 1px solid var(--glass-edge); background: var(--bg-2); display: inline-flex; gap: 6px; align-items: center; }
.mobile-inspiration-links a span { color: var(--neon); }
.mobile-inspiration-links a:hover { border-color: var(--glass-edge-bright); background: var(--neon-soft); }

/* 首页编辑区 */
.home-editorial { margin-top: 8px; }
.he-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: stretch; }
.he-intro { position: relative; overflow: hidden; padding: 46px 40px; background: var(--glass); border: 1px solid var(--glass-edge-bright); border-radius: 24px; box-shadow: var(--shadow); }
.he-kicker { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--neon); }
.he-intro h1 { font-size: clamp(38px, 5.6vw, 58px); line-height: 1.05; margin: 14px 0 10px; font-weight: 800; letter-spacing: -1px; }
.he-intro h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.he-intro p { font-size: 18px; color: var(--muted); margin: 0 0 26px; }
.he-start { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px; background: var(--grad); color: #10021f; font-weight: 700; font-size: 15px; box-shadow: 0 0 26px -6px rgba(168,85,247,.9); transition: transform .18s, filter .18s; }
.he-start:hover { transform: translateY(-2px); filter: brightness(1.08); }
.he-orbit { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; }
.he-orbit i, .he-orbit b { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(192,132,252,.22); }
.he-orbit i { transform: rotate(28deg); border-style: dashed; }
.he-orbit b { transform: rotate(-22deg) scale(.66); border-color: rgba(34,211,238,.28); }
.he-orbit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%,-50%); background: var(--neon); box-shadow: 0 0 22px 4px var(--neon); }

.he-featured { display: flex; flex-direction: column; gap: 16px; }
.he-feature { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 26px 28px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 20px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.he-feature:hover { border-color: var(--glass-edge-bright); transform: translateY(-3px); box-shadow: 0 0 30px -10px rgba(192,132,252,.7); }
.he-feature span { display: flex; flex-direction: column; gap: 4px; }
.he-feature strong { font-size: 19px; }
.he-feature small { color: var(--muted); font-size: 13.5px; }
.he-feature em { color: var(--neon); font-style: normal; font-size: 18px; }
.he-feature b { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.he-papers { display: flex; gap: 6px; }
.he-papers i { width: 16px; height: 22px; border-radius: 3px; background: var(--grad); opacity: .7; }

.he-member-pack { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding: 26px 30px; background: var(--grad-soft); border: 1px solid var(--glass-edge-bright); border-radius: 22px; box-shadow: var(--shadow); }
.he-member-copy { display: flex; flex-direction: column; gap: 3px; max-width: 460px; }
.he-member-copy span { font-size: 12.5px; letter-spacing: 1px; color: var(--neon); text-transform: uppercase; }
.he-member-copy strong { font-size: 22px; }
.he-member-copy small { color: var(--muted); font-size: 14px; }
.he-member-links { display: flex; gap: 10px; flex-wrap: wrap; }
.he-member-links a { padding: 10px 16px; border-radius: 11px; font-size: 13.5px; border: 1px solid var(--glass-edge); background: var(--bg-2); display: inline-flex; gap: 6px; align-items: center; }
.he-member-links a span { color: var(--neon); }
.he-member-links a:hover { border-color: var(--glass-edge-bright); background: var(--neon-soft); }
.he-hotspot-link { display: flex !important; align-items: center; gap: 12px; border-color: var(--glass-edge-bright) !important; }
.he-hotspot-link span { display: flex; flex-direction: column; }
.he-hotspot-link strong { font-size: 15px; }
.he-hotspot-link small { color: var(--muted); font-size: 12px; }
.he-hotspot-link b { color: var(--neon); font-size: 18px; }

.he-group-banner { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 20px 24px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 18px; }
.he-group-badge { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; display: grid; place-items: center; background: var(--blue-soft); border: 1px solid var(--glass-edge-bright); }
.he-group-copy { flex: 1; display: flex; flex-direction: column; }
.he-group-copy strong { font-size: 16px; }
.he-group-copy small { color: var(--muted); font-size: 13px; }
.he-group-btn { background: var(--glass-strong); color: var(--neon); border: 1px solid var(--glass-edge-bright); padding: 10px 18px; border-radius: 11px; font-size: 13.5px; cursor: pointer; transition: background .18s, box-shadow .18s; }
.he-group-btn:hover { background: var(--neon-soft); box-shadow: 0 0 18px -6px var(--neon); }

.he-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.he-tool { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 28px 28px 64px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 20px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.he-tool:hover { border-color: var(--glass-edge-bright); transform: translateY(-3px); box-shadow: 0 0 30px -10px rgba(34,211,238,.6); }
.he-tool strong { font-size: 19px; }
.he-tool small { color: var(--muted); font-size: 14px; }
.he-tool em { position: absolute; top: 24px; right: 26px; color: var(--neon); font-style: normal; font-size: 18px; }
.he-art { position: absolute; bottom: 22px; left: 28px; display: flex; gap: 8px; }
.he-pictures i { width: 26px; height: 34px; border-radius: 5px; background: var(--grad); opacity: .75; }
.he-pictures i:last-child { width: 22px; height: 30px; opacity: .5; }
.he-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.he-tiles i { width: 30px; height: 30px; border-radius: 6px; background: var(--grad); opacity: .7; }

.he-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; letter-spacing: 1px; }
.he-footer span:last-child { font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; letter-spacing: 3px; }

/* ---------- 通用页面头 ---------- */
.page-head { margin-bottom: 26px; }
.page-head .eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--neon); }
.page-head h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 8px 0 6px; font-weight: 800; letter-spacing: -.5px; }
.page-head h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- 表单/卡片 ---------- */
.panel { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); padding: 24px; }
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 880px) { .tool-layout { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--glass-edge); border-radius: 11px;
  color: var(--text); font-size: 14.5px; padding: 11px 13px; font-family: inherit; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--glass-edge-bright); box-shadow: 0 0 0 3px rgba(168,85,247,.12); }
.field textarea { resize: vertical; min-height: 90px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12px; color: var(--faint); }

.primary-action {
  width: 100%; background: var(--grad); color: #10021f; border: 0; font-weight: 700; font-size: 15px;
  padding: 13px; border-radius: 12px; cursor: pointer; box-shadow: 0 0 24px -6px rgba(168,85,247,.8);
  transition: transform .15s, filter .15s;
}
.primary-action:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-action:disabled { filter: grayscale(.5) brightness(.8); cursor: default; transform: none; }
.secondary-action {
  background: var(--glass-strong); color: var(--neon); border: 1px solid var(--glass-edge-bright);
  padding: 10px 16px; border-radius: 11px; cursor: pointer; font-size: 14px;
}
.secondary-action:hover { background: var(--neon-soft); }

/* 输出区 */
.output-panel { min-height: 320px; display: flex; flex-direction: column; }
.output-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; color: var(--muted); padding: 40px 20px; }
.output-empty .big { font-size: 42px; }
.output-body { white-space: pre-wrap; line-height: 1.75; font-size: 14.5px; }
.output-body h3 { color: var(--neon); margin: 18px 0 6px; }
.output-tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--neon-soft); color: var(--neon); margin-bottom: 10px; }

/* 卡片网格（灵感/工具/账户） */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--glass);
  border: 1px solid var(--glass-edge); border-radius: 16px; transition: border-color .2s, transform .2s;
}
.link-card:hover { border-color: var(--glass-edge-bright); transform: translateY(-2px); }
.link-card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--blue-soft); border: 1px solid var(--glass-edge-bright); flex: 0 0 auto; }
.link-card .txt { display: flex; flex-direction: column; }
.link-card .txt strong { font-size: 15px; }
.link-card .txt small { color: var(--muted); font-size: 12.5px; }

/* 数据列表（灵感/历史） */
.list-item { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px; margin-bottom: 12px; }
.list-item .lh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-item .lt { font-weight: 600; }
.list-item .lm { font-size: 12px; color: var(--faint); }
.list-item .lb { color: var(--muted); font-size: 13.5px; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--neon-soft); color: var(--neon); white-space: nowrap; }

/* 积分套餐 */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; }
.price-card { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 18px; padding: 24px; text-align: center; }
.price-card.feature { border-color: var(--glass-edge-bright); background: var(--grad-soft); }
.price-card .pc-num { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card .pc-name { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.price-card .pc-price { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

/* 弹窗 */
.account-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(4,2,12,.68); backdrop-filter: blur(6px); padding: 20px; }
.account-modal[hidden] { display: none; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.auth-card, .sheet-card { position: relative; width: min(420px, 92vw); background: var(--glass-strong); border: 1px solid var(--glass-edge-bright); border-radius: 22px; padding: 30px; backdrop-filter: blur(22px); box-shadow: var(--shadow); }
.sheet-card { width: min(560px, 94vw); max-height: 84vh; overflow-y: auto; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-brand strong { display: block; font-size: 16px; }
.auth-brand small { color: var(--neon); font-size: 12px; }
.auth-tabs { display: flex; gap: 8px; background: var(--bg-2); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: none; color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; }
.auth-tabs button.active { background: var(--grad); color: #10021f; }
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-size: 13px; color: var(--muted); }
.auth-form input { background: var(--bg-2); border: 1px solid var(--glass-edge); border-radius: 11px; padding: 12px 14px; color: var(--text); font-size: 14.5px; outline: none; }
.auth-form input:focus { border-color: var(--glass-edge-bright); box-shadow: 0 0 0 3px rgba(168,85,247,.12); }
.auth-form .primary-action { margin-top: 8px; }
.auth-error { color: #ff7a90; font-size: 13px; margin: 4px 0; }
.auth-footer { text-align: center; color: var(--faint); font-size: 12.5px; margin: 18px 0 0; }

/* 二维码弹窗 */
.group-qr-dialog { width: min(340px, 90vw); padding: 26px; background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-edge-bright); border-radius: 20px; backdrop-filter: blur(22px); box-shadow: var(--shadow); }
.group-qr-dialog::backdrop { background: rgba(4,2,12,.65); backdrop-filter: blur(4px); }
.group-qr-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.qr-stage { position: relative; width: 220px; height: 220px; margin: 8px auto 18px; border-radius: 14px; padding: 14px; background: #0b0618; border: 1px solid var(--glass-edge); overflow: hidden; }
.qr-grid { position: absolute; inset: 14px; border-radius: 8px; background-image: linear-gradient(#c084fc 1.5px, transparent 1.5px), linear-gradient(90deg, #c084fc 1.5px, transparent 1.5px); background-size: 12px 12px; opacity: .35; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 60%, transparent 72%); }
.qr-logo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: var(--neon); text-shadow: 0 0 16px var(--neon); }
.group-qr-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 0; }

/* 后台表格 */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tabs button { background: var(--glass); border: 1px solid var(--glass-edge); color: var(--muted); padding: 9px 16px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.admin-tabs button.active { background: var(--blue-soft); color: var(--text); border-color: var(--glass-edge-bright); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 14px; padding: 18px; }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card strong { display: block; font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 4px; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.admin-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
table.admin-table td .mini-btn { background: var(--neon-soft); color: var(--neon); border: 0; padding: 5px 11px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: var(--glass-strong); border: 1px solid var(--glass-edge-bright); color: var(--text); padding: 12px 22px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 300; backdrop-filter: blur(16px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 页脚 */
.foot { display: flex; align-items: center; justify-content: space-between; padding: 22px 30px; margin-top: auto; border-top: 1px solid var(--line); background: rgba(10,7,24,.6); backdrop-filter: blur(10px); color: var(--faint); font-size: 13px; }
.foot .r { display: flex; align-items: center; gap: 8px; }
.dot-sep { opacity: .5; }

/* 响应式 */
@media (max-width: 920px) {
  .he-main { grid-template-columns: 1fr; }
  .he-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { gap: 10px; padding: 10px 16px; }
  .tabs { display: none; }
  .tabs.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 60px; left: 12px; right: 12px; padding: 10px; max-height: 62vh; overflow-y: auto; background: var(--glass-strong); border: 1px solid var(--glass-edge-bright); border-radius: 16px; backdrop-filter: blur(20px); box-shadow: var(--shadow); mask-image: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; justify-content: center; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-edge); cursor: pointer; }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; }
  .stat { display: none; }
  .brand .name { font-size: 15px; }
  .mobile-site-brand { display: block; margin-bottom: 18px; }
  .mobile-site-brand a { display: flex; align-items: center; gap: 9px; }
  .mobile-site-brand span { font-weight: 700; }
  .mobile-site-brand small { color: var(--neon); font-size: 11px; margin-left: 4px; }
  .home-page, .page-wrap { padding: 18px 16px 60px; }
  .he-intro { padding: 30px 24px; }
  .he-member-pack, .he-group-banner { flex-direction: column; align-items: flex-start; }
  .he-group-btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
}
