/* 玩家资源库 — 暗色电竞风 */
:root {
  --bg: #070a12;
  --bg-soft: #0b101b;
  --panel: #0f1522;
  --panel-2: #141c2c;
  --panel-3: #1a2436;
  --line: rgba(150, 180, 255, .11);
  --line-strong: rgba(150, 180, 255, .22);
  --text: #eaf0ff;
  --text-2: #b7c3da;
  --muted: #7d8ba6;
  --accent: #38e8c8;
  --accent-dim: rgba(56, 232, 200, .12);
  --violet: #7c8cff;
  --pink: #ff7bd5;
  --danger: #ff6b8b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(120, 160, 255, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 160, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}
.bg-glow { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(120px); opacity: .5; }
.bg-glow-a { width: 620px; height: 620px; top: -260px; left: -160px; background: rgba(56, 232, 200, .16); }
.bg-glow-b { width: 560px; height: 560px; top: 60px; right: -220px; background: rgba(124, 140, 255, .16); }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, .82); backdrop-filter: blur(18px);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px; height: 72px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font: 800 14px/1 var(--mono); letter-spacing: -.5px; color: #051713;
  background: linear-gradient(135deg, var(--accent), #7ff0d8);
  box-shadow: 0 0 22px rgba(56, 232, 200, .35);
}
.brand-mark.small { width: 32px; height: 32px; font-size: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; letter-spacing: .3px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
/* 第一排刻意收敛为辅助导航，视觉重心让给下方带图标的板块导航 */
.nav a {
  padding: 8px 13px; border-radius: 9px; color: var(--muted); font-size: 12.5px;
  transition: .18s; white-space: nowrap;
}
.nav a:hover { color: var(--text-2); background: rgba(255,255,255,.04); }
.nav a.active { color: var(--text-2); background: rgba(255,255,255,.055); }
.topbar-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.mode-badge {
  border: 1px solid rgba(255, 193, 97, .35); background: rgba(255, 193, 97, .09);
  color: #ffc861; padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: .4px; white-space: nowrap;
}
.mode-badge.cloud { border-color: rgba(56,232,200,.35); background: var(--accent-dim); color: var(--accent); }
.icon-btn, .user-btn, .cart-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text-2);
  height: 36px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 12px; font-size: 12px; transition: .18s; white-space: nowrap;
}
.icon-btn { padding: 0; width: 36px; justify-content: center; }
.icon-btn:hover, .user-btn:hover, .cart-btn:hover { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.07); }
.user-btn { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.cart-btn { border-color: rgba(56,232,200,.28); background: var(--accent-dim); color: var(--accent); }
.cart-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent);
  color: #04140f; font: 800 11px/18px var(--mono); text-align: center;
}

/* ---------- 通用 ---------- */
.app-main { max-width: 1240px; margin: 0 auto; padding: 0 28px 80px; min-height: 62vh; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: .2px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; color: var(--muted); margin: 8px 0 0; text-align: center; }
.hint {
  padding: 12px 15px; border: 1px solid rgba(255,193,97,.24); background: rgba(255,193,97,.06);
  border-radius: var(--radius-sm); color: #f2d7a2; font-size: 12.5px; line-height: 1.7;
}
.hint.info { border-color: rgba(124,140,255,.28); background: rgba(124,140,255,.07); color: #c3caff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; transition: .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(150,180,255,.4); background: rgba(255,255,255,.09); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4ad9c0); color: #041713; border-color: transparent;
  box-shadow: 0 8px 26px rgba(56,232,200,.22);
}
.btn-primary:hover { background: linear-gradient(135deg, #5ff2d8, #6ae6cf); box-shadow: 0 10px 32px rgba(56,232,200,.32); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 14px; }
.btn-sm { padding: 7px 13px; font-size: 12px; }

/* ---------- Hero：居中横幅，背后是原创 SVG 背景图 ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; max-width: 1240px; margin: 26px auto 0;
  padding: 68px 32px 56px; text-align: center;
  border: 1px solid rgba(120,160,210,.14); border-radius: 24px;
  background: #080e1a url('hero-bg.svg') center center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 60px rgba(0,0,0,.3);
}
.hero > div { position: relative; z-index: 2; }
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.18; letter-spacing: -.5px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 14.5px; color: var(--text-2); max-width: 640px; line-height: 1.7; letter-spacing: 1px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- 筛选栏 ---------- */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 10px; padding: 10px 13px; outline: none; transition: .18s;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(56,232,200,.55); box-shadow: 0 0 0 3px rgba(56,232,200,.09); }
.input::placeholder, .textarea::placeholder { color: #5f6c85; }
.search-wrap .input { padding-left: 38px; }
.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) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.select option { background: #141c2c; color: var(--text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-2);
  padding: 7px 14px; border-radius: 999px; font-size: 12px; transition: .18s; white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active { border-color: rgba(56,232,200,.5); background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.result-count { font-size: 12px; color: var(--muted); margin-left: auto; }

/* ---------- 商品卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  overflow: hidden; display: flex; flex-direction: column; transition: .22s; position: relative;
}
.card:hover { transform: translateY(-5px); border-color: rgba(56,232,200,.32); box-shadow: 0 18px 42px rgba(0,0,0,.42), 0 0 0 1px rgba(56,232,200,.08); }
.card-cover {
  height: 148px; position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, var(--card-accent, #38e8c8) 0%, transparent 62%), linear-gradient(140deg, #172033, #0c1220);
  border-bottom: 1px solid var(--line);
}
.card-cover::before {
  content: ''; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.card-cover .emoji { font-size: 58px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); position: relative; z-index: 1; }
.badge-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 6px; background: rgba(6,10,18,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.14); letter-spacing: .3px;
}
.badge-hot {
  position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 6px; background: rgba(56,232,200,.16); color: var(--accent);
  border: 1px solid rgba(56,232,200,.3);
}
.card-body { padding: 16px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 15px; font-weight: 700; margin: 0 0 5px; line-height: 1.4; }
.card-sub { font-size: 12px; color: var(--muted); margin: 0 0 12px; min-height: 19px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag { font-size: 10px; color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--line); padding: 3px 8px; border-radius: 5px; }
.card-meta { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.card-meta b { color: #ffc861; font-weight: 700; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 7px; }
.price strong { font: 800 20px/1 var(--mono); color: var(--accent); }
.price del { font: 400 11px/1 var(--mono); color: #5f6c85; }
.card-actions { display: flex; gap: 6px; }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 34px; align-items: start; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }
.detail-cover {
  height: 230px; border-radius: var(--radius); position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 25%, var(--card-accent, #38e8c8) 0%, transparent 60%), linear-gradient(140deg, #172033, #0c1220);
  border: 1px solid var(--line); overflow: hidden; margin-bottom: 22px;
}
.detail-cover::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.detail-cover .emoji { font-size: 96px; position: relative; z-index: 1; filter: drop-shadow(0 14px 30px rgba(0,0,0,.55)); }
.detail h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.3; }
.detail .subtitle { color: var(--text-2); margin: 0 0 20px; font-size: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.panel h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.panel p { margin: 0; color: var(--text-2); line-height: 1.85; font-size: 13px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kv div { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 10px; padding: 12px 14px; }
.kv small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.kv strong { font-size: 13px; font-weight: 600; }
.buy-card { position: sticky; top: 92px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.buy-price strong { font: 800 34px/1 var(--mono); color: var(--accent); }
.buy-price del { color: #5f6c85; font: 400 13px/1 var(--mono); }
.buy-card .btn { margin-top: 12px; }
.included { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.included li { display: flex; gap: 9px; font-size: 12px; color: var(--text-2); padding: 5px 0; }
.included li::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* ---------- 结算 / 订单 / 管理 ---------- */
.page-head { padding: 40px 0 6px; }
.page-head h1 { margin: 10px 0 8px; font-size: 30px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-top: 26px; }
.line-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.li-cover { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,.05); flex-shrink: 0; }
.line-item div { flex: 1; min-width: 0; }
.line-item strong { display: block; font-size: 13px; }
.line-item small { color: var(--muted); font-size: 11px; }
.li-price { font: 700 13px/1 var(--mono); color: var(--accent); }
.pay-option {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 11px; margin-bottom: 10px; cursor: pointer; transition: .18s;
}
.pay-option:hover { border-color: var(--line-strong); }
.pay-option.active { border-color: rgba(56,232,200,.5); background: var(--accent-dim); }
.pay-option.disabled { opacity: .45; cursor: not-allowed; }
.pay-option input { accent-color: var(--accent); }
.pay-option span { flex: 1; font-size: 13px; }
.pay-option small { font-size: 11px; color: var(--muted); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; margin-bottom: 16px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-no { font: 600 12px/1.4 var(--mono); color: var(--text-2); }
.order-time { font-size: 11px; color: var(--muted); }
.status-tag { font-size: 10px; padding: 4px 9px; border-radius: 6px; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(56,232,200,.28); font-weight: 700; }
.status-tag.pending { background: rgba(255,193,97,.1); color: #ffc861; border-color: rgba(255,193,97,.28); }
.dl-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl-row div { flex: 1; min-width: 0; }
.dl-row strong { display: block; font-size: 13px; }
.dl-row small { font-size: 11px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.field label i { color: var(--accent); font-style: normal; }
.field .tip { font-size: 11px; color: var(--muted); }
.textarea { min-height: 96px; resize: vertical; }
.file-drop {
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center;
  background: rgba(255,255,255,.02); transition: .18s;
}
.file-drop:hover { border-color: rgba(56,232,200,.45); background: var(--accent-dim); }
.file-drop input { display: none; }
.file-drop strong { display: block; font-size: 13px; margin-bottom: 5px; }
.file-drop small { color: var(--muted); font-size: 11px; }
.file-name { margin-top: 10px; font: 600 12px/1 var(--mono); color: var(--accent); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.015); }
.empty .big { font-size: 44px; margin-bottom: 12px; }
.empty h3 { margin: 0 0 8px; font-size: 17px; }
.empty p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

/* ---------- 抽屉 ---------- */
.drawer {
  position: fixed; z-index: 60; top: 0; right: 0; height: 100vh; width: 400px; max-width: 92vw;
  background: var(--bg-soft); border-left: 1px solid var(--line-strong); box-shadow: -20px 0 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: translateX(0); }
.drawer-mask { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
.close-btn { border: 0; background: transparent; color: var(--muted); font-size: 17px; padding: 4px 8px; border-radius: 8px; }
.close-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sum-row span { color: var(--text-2); font-size: 13px; }
.sum-row strong { font: 800 24px/1 var(--mono); color: var(--accent); }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line .li-cover { width: 44px; height: 44px; font-size: 22px; }
.cart-line div { flex: 1; min-width: 0; }
.cart-line strong { display: block; font-size: 12.5px; }
.cart-line small { color: var(--muted); font-size: 11px; }
.cart-del { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 4px; }
.cart-del:hover { color: var(--danger); }

/* ---------- 模态 & Toast ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 70; background: rgba(3,6,12,.75); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 420px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); padding: 26px; max-height: 88vh; overflow-y: auto; }
.modal h2 { margin: 0 0 6px; font-size: 20px; }
.modal .lead { margin: 0 0 20px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.modal .field { margin-bottom: 14px; }
.modal-foot { display: flex; gap: 10px; margin-top: 18px; }
.modal-foot .btn { flex: 1; }
.code-row { display: flex; gap: 9px; }
.code-row .input { flex: 1; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field-error { color: var(--danger); font-size: 11px; margin-top: -4px; }

/* 注册弹窗：资料登记 + 服务端点阵图形验证码 */
.reg-form .form-grid { gap: 14px 16px; }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-img {
  width: 176px; height: 54px; flex: 0 0 176px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: #0c1422; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.captcha-img svg { display: block; width: 176px; height: 54px; }
.captcha-loading { color: var(--muted); font-size: 11px; }
.captcha-side { display: flex; flex-direction: column; gap: 8px; flex: 1 1 190px; min-width: 180px; }
.field label.agree-row {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  font-weight: 400; line-height: 1.65; color: var(--text-2); font-size: 12px;
}
.agree-row input { margin: 3px 0 0; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--accent); }
.reg-form .modal-foot { margin-top: 16px; }
.reg-form .field-error { min-height: 16px; }
.cs-contact span { display: block; font-size: 11.5px; color: var(--text-2); line-height: 1.7; }
.cs-contact small { display: block; font-size: 10.5px; color: var(--muted); }

.toast-root { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  border: 1px solid var(--line-strong); background: rgba(20,28,44,.96); color: var(--text);
  padding: 12px 17px; border-radius: 11px; font-size: 12.5px; box-shadow: var(--shadow);
  animation: toastIn .25s ease; max-width: 340px; line-height: 1.6;
}
.toast.ok { border-color: rgba(56,232,200,.4); }
.toast.err { border-color: rgba(255,107,139,.45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(6,9,16,.7); margin-top: 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 42px 28px 30px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.footer-note strong { font-size: 12px; color: var(--text-2); }
.footer-note p { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 16px 28px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #5f6c85; font: 500 11px/1 var(--mono); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 54px 24px 46px; }
  .detail, .two-col { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 0 16px; height: auto; min-height: 64px; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; gap: 2px; }
  .nav a { padding: 7px 10px; }
  .topbar-actions { margin-left: auto; }
  .cart-btn span:not(.cart-count), .mode-badge { display: none; }
  .app-main { padding: 0 16px 60px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 18px 42px; border-radius: 18px; }
  .hero h1 { font-size: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
  .footer-bottom { padding: 16px; flex-direction: column; gap: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .result-count { margin-left: 0; }
}

/* ================= 积分 / 会员 / 签到 ================= */
.points-pill {
  height: 34px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(56,232,200,.28); background: var(--accent-dim); color: var(--accent);
  font-size: 11.5px; white-space: nowrap;
}
.points-pill strong { font: 800 14px/1 var(--mono); }
.checkin-btn, .member-btn {
  height: 34px; padding: 0 13px; border-radius: 9px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text-2);
  white-space: nowrap; transition: .18s;
}
.checkin-btn { border-color: rgba(255,193,97,.35); background: rgba(255,193,97,.08); color: #ffc861; }
.checkin-btn.done { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.member-btn { border-color: rgba(124,140,255,.35); background: rgba(124,140,255,.08); color: #a8b4ff; }
.checkin-btn:hover, .member-btn:hover { transform: translateY(-1px); filter: brightness(1.15); }
.member-btn.is-member { border-color: rgba(255,193,97,.5); color: #ffc861; }

.price { flex-direction: column; align-items: flex-start; gap: 3px; }
.price strong { font: 800 19px/1.1 var(--mono); color: var(--accent); }
.price .unit { font-size: 11px; font-weight: 700; margin-left: 3px; font-family: var(--font); }
.rmb-ref { font-size: 10.5px; color: var(--muted); }
.rmb-ref del { margin-left: 6px; color: #5f6c85; }
.buy-price { gap: 8px; }
.buy-price .rmb-ref { font-size: 12px; }

/* ---------- 会员中心 v2 ---------- */
.modal.wide { max-width: 900px; padding: 28px; }
.mv-status { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border: 1px solid rgba(124,140,255,.28); border-radius: 12px; background: linear-gradient(100deg, rgba(124,140,255,.13), rgba(56,232,200,.05)); }
.mv-status-main { display: flex; align-items: center; gap: 10px; }
.mv-status-main > span { font-size: 11px; color: var(--muted); }
.mv-status-main strong { font-size: 17px; }
.mv-status-main em { font: 700 9px/1 var(--mono); letter-spacing: 1.3px; font-style: normal; border: 1px solid; padding: 4px 7px; border-radius: 6px; }
.mv-status-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); }
.mv-status-meta b { color: var(--accent); font: 700 13px/1 var(--mono); }
.mv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mv-card { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 17px 15px 15px; background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012)); overflow: hidden; }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--m-color); opacity: .8; }
.mv-card.current { border-color: var(--m-color); background: linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); box-shadow: 0 0 0 1px var(--m-color), 0 12px 30px rgba(0,0,0,.35); }
.mv-ribbon { position: absolute; top: 11px; right: 11px; font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--m-color); color: #08101c; }
.mv-top { display: flex; align-items: center; gap: 8px; }
.mv-tag { font: 700 9px/1 var(--mono); letter-spacing: 1.4px; color: var(--m-color); }
.mv-icon { font-size: 15px; color: var(--m-color); opacity: .85; }
.mv-card h3 { margin: 12px 0 13px; font-size: 15px; color: var(--m-color); }
.mv-metric { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.mv-metric b { font: 800 20px/1 var(--mono); color: var(--m-color); }
.mv-metric b small { font: 600 11px/1 var(--font); }
.mv-metric span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mv-perks { list-style: none; padding: 11px 0 0; margin: 10px 0 0; border-top: 1px dashed var(--line); }
.mv-perks li { font-size: 10.5px; color: var(--text-2); padding: 2px 0; }
.mv-perks li::before { content: '✓'; color: var(--m-color); font-weight: 800; margin-right: 6px; }
.mv-compare { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mv-compare table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mv-compare th, .mv-compare td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.mv-compare th { background: rgba(255,255,255,.04); font-size: 11px; font-weight: 700; }
.mv-compare th:first-child, .mv-compare td:first-child { text-align: left; color: var(--muted); }
.mv-compare tr:last-child td { border-bottom: 0; }
.mv-compare td { color: var(--text-2); font-family: var(--mono); }
.mv-compare td:first-child { font-family: var(--font); }
.mv-cta { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid rgba(56,232,200,.3); border-radius: 13px; background: linear-gradient(110deg, rgba(56,232,200,.11), rgba(124,140,255,.06)); }
.mv-cta span { font: 700 10px/1 var(--mono); letter-spacing: 1.4px; color: var(--accent); }
.mv-cta strong { display: block; margin-top: 8px; font: 800 26px/1.1 var(--mono); color: var(--accent); letter-spacing: 1px; }
.mv-cta p { margin: 8px 0 0; font-size: 11.5px; color: var(--text-2); line-height: 1.7; max-width: 620px; }
.mv-cta .btn { flex-shrink: 0; }
.mv-demo { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 11px; }
.mv-demo > span { font-size: 11px; color: var(--muted); }
.mv-demo .demo-switch { margin-top: 0; }
.demo-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.demo-switch button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-2); border-radius: 8px; padding: 6px 10px; font-size: 11px; }
.demo-switch button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.month-progress { margin: 14px 0 4px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.03); }
.mp-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); }
.mp-head b { font: 700 13px/1 var(--mono); color: var(--accent); }
.mp-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin: 10px 0 7px; overflow: hidden; }
.mp-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--violet)); box-shadow: 0 0 10px rgba(56,232,200,.45); }
.mp-foot { font-size: 11px; color: var(--muted); }

.rule-table { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.rule-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); font-size: 12px; }
.rule-row span { color: var(--text-2); }
.rule-row b { color: var(--accent); font: 700 13px/1 var(--mono); white-space: nowrap; }
.rule-note { font-size: 11.5px; color: var(--muted); line-height: 1.8; margin: 0; }
.checkin-result { text-align: center; padding: 8px 0 4px; }
.checkin-result .big { font: 800 38px/1 var(--mono); color: var(--accent); text-shadow: 0 0 26px rgba(56,232,200,.4); }
.checkin-result .big small { font-size: 14px; font-family: var(--font); }
.checkin-result p { margin: 9px 0 0; font-size: 12px; color: var(--text-2); }

.cost-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); padding: 6px 0; }
.cost-row b { font: 700 13px/1 var(--mono); color: var(--text); }
.cost-row.discount b { color: var(--accent); }
.balance-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid rgba(56,232,200,.3); background: var(--accent-dim); border-radius: 11px; margin: 14px 0; }
.balance-box span { font-size: 12px; color: var(--text-2); }
.balance-box strong { font: 800 20px/1 var(--mono); color: var(--accent); }
.balance-box.low { border-color: rgba(255,107,139,.4); background: rgba(255,107,139,.08); }
.balance-box.low strong { color: var(--danger); }

/* ================= 预览图与详情富媒体 ================= */
.card-cover { height: 180px; }
.card-cover img.preview, .detail-cover img.preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card-cover::after, .detail-cover::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,18,.05) 45%, rgba(6,10,18,.72) 100%);
}
.card-cover.has-preview .emoji, .detail-cover.has-preview .emoji { position: absolute; right: 14px; bottom: 10px; z-index: 2; font-size: 26px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.detail-cover.has-preview .emoji { font-size: 42px; }
.card-cover .badge-cat, .card-cover .badge-hot { z-index: 2; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #0b101b; }
.media-item img, .media-item video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #0b101b; }
.media-item .cap { padding: 8px 11px; font-size: 11px; color: var(--muted); }
.media-item .ext { display: block; padding: 20px; font-size: 12px; color: var(--accent); text-align: center; }

.preview-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: 10px; display: none; }
.preview-thumb.show { display: block; }
.price-mode { display: flex; gap: 8px; margin-bottom: 12px; }
.price-mode button { flex: 1; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text-2); border-radius: 9px; padding: 8px; font-size: 11.5px; }
.price-mode button.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.media-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.media-add .input { flex: 1; min-width: 160px; }
.media-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.media-list .chip-item { position: relative; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.03); padding: 8px; font-size: 11px; color: var(--text-2); }
.media-list .chip-item img { width: 100%; height: 60px; object-fit: cover; border-radius: 5px; margin-bottom: 5px; }
.media-list .chip-item button { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(6,10,18,.8); color: var(--danger); border-radius: 5px; font-size: 11px; padding: 2px 6px; }

/* ================= 蓝色镂空三角指针 + 黄色星星拖尾 ================= */
#starCanvas { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
#cursorRing { position: fixed; top: 0; left: 0; width: 26px; height: 32px; z-index: 88; pointer-events: none; opacity: 0; }
#cursorRing svg { display: block; width: 26px; height: 32px; overflow: visible; transform-origin: 2px 2px; transition: transform .16s; }
#cursorRing .cursor-arrow {
  fill: rgba(9, 26, 48, .26); stroke: #52d6ff; stroke-width: 1.8;
  stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(82,214,255,.95)) drop-shadow(0 0 12px rgba(82,214,255,.55));
  transition: fill .16s, stroke .16s, stroke-width .16s;
}
#cursorRing.visible { opacity: 1; }
#cursorRing.hover svg { transform: scale(1.18); }
#cursorRing.hover .cursor-arrow {
  fill: rgba(124,140,255,.24); stroke: #9aa7ff; stroke-width: 2.1;
  filter: drop-shadow(0 0 7px rgba(124,140,255,1)) drop-shadow(0 0 16px rgba(124,140,255,.7));
}
#cursorDot { position: fixed; top: 0; left: 0; width: 3px; height: 3px; border-radius: 50%; background: #e6faff; box-shadow: 0 0 8px #52d6ff, 0 0 14px rgba(82,214,255,.8); z-index: 89; pointer-events: none; opacity: 0; }
#cursorDot.visible { opacity: 1; }
@media (pointer: fine) { .custom-cursor, .custom-cursor a, .custom-cursor button, .custom-cursor label, .custom-cursor .pay-option { cursor: none; } .custom-cursor input, .custom-cursor textarea, .custom-cursor select { cursor: text; } }
@media (pointer: coarse) { #cursorRing, #cursorDot { display: none; } }

/* ================= 首页广告位 ================= */
.ad-strip { margin-top: 52px; }
.ad-strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ad-strip-head h2 { margin: 0; font-size: 20px; }
.ad-strip-tools { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted); }
.ad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ad-slot { position: relative; }
.ad-card { position: relative; display: block; height: 150px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.ad-card.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px dashed rgba(150,180,255,.3); background: linear-gradient(150deg, rgba(255,255,255,.028), rgba(255,255,255,.008)); }
.ad-card.empty:hover { border-color: rgba(56,232,200,.42); }
.ad-card.empty .ad-plus { font-size: 26px; line-height: 1.1; color: var(--ad-accent); opacity: .8; margin-bottom: 4px; }
.ad-card.empty strong { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ad-card.filled { background: #0c1422; }
.ad-card.filled:hover { border-color: var(--ad-accent); }
.ad-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 25% 15%, var(--ad-accent) 0%, transparent 60%), linear-gradient(140deg, #172033, #0b101b); }
.ad-art span { font-size: 15px; font-weight: 800; color: var(--text); text-shadow: 0 2px 12px rgba(0,0,0,.6); text-align: center; padding: 0 20px; }
.ad-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,18,.05) 35%, rgba(6,10,18,.9) 100%); }
.ad-info { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ad-info .ad-tag { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--ad-accent); color: #08101c; margin-bottom: 2px; }
.ad-info strong { font-size: 13.5px; font-weight: 700; color: #fff; }
.ad-info small { font-size: 10.5px; color: rgba(234,240,255,.78); }
.ad-edit { position: absolute; top: 8px; right: 8px; z-index: 3; border: 1px solid rgba(255,255,255,.22); background: rgba(6,10,18,.72); color: var(--text-2); font-size: 10px; padding: 4px 8px; border-radius: 7px; backdrop-filter: blur(6px); }
.ad-edit:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1080px) {
  .topbar-inner { gap: 14px; }
  .points-pill { display: none; }
  .ad-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .checkin-btn, .member-btn { padding: 0 9px; font-size: 11px; }
  .user-btn { display: none; }
  .media-grid { grid-template-columns: 1fr; }
  .media-list { grid-template-columns: repeat(2, 1fr); }
  .ad-grid { grid-template-columns: 1fr; }
  .ad-strip-head { flex-direction: column; align-items: flex-start; }
  .mv-grid { grid-template-columns: repeat(2, 1fr); }
  .modal.wide { padding: 20px; }
  .mv-status { flex-direction: column; align-items: flex-start; }
  .mv-status-meta { gap: 10px; }
  .mv-cta { flex-direction: column; align-items: flex-start; }
  .mv-compare th, .mv-compare td { padding: 8px 5px; font-size: 10px; }
}
@media (max-width: 480px) {
  .mv-grid { grid-template-columns: 1fr; }
}

/* ================= 站长管理后台 ================= */
.console-wrap { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 22px; align-items: start; min-height: 760px; padding: 28px 0 0; }
.console-side { position: sticky; top: 144px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; background: linear-gradient(180deg, rgba(20,28,44,.94), rgba(11,16,27,.94)); box-shadow: var(--shadow); }
.cs-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; border-bottom: 1px solid var(--line); }
.cs-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #08101c; font: 800 13px var(--mono); }
.cs-brand strong { display: block; font-size: 14px; }
.cs-brand small { display: block; font: 700 9px var(--mono); letter-spacing: 1.3px; color: var(--muted); }
.cs-mode { margin: 14px 6px 12px; padding: 6px 9px; border-radius: 8px; background: rgba(255,193,97,.1); color: #ffc861; font-size: 10.5px; font-weight: 600; }
.cs-mode.cloud { background: var(--accent-dim); color: var(--accent); }
.cs-nav { display: flex; flex-direction: column; gap: 3px; }
.cs-nav button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: var(--text-2); text-align: left; padding: 9px 11px; border-radius: 9px; font-size: 12.5px; transition: .16s; }
.cs-nav button span { width: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.cs-nav button:hover { background: rgba(255,255,255,.045); color: var(--text); }
.cs-nav button.active { background: var(--accent-dim); color: var(--accent); font-weight: 700; box-shadow: inset 2px 0 0 var(--accent); }
.cs-nav button.active span { color: var(--accent); }
.cs-publish { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding: 10px; border: 1px dashed rgba(56,232,200,.42); border-radius: 9px; color: var(--accent); font-size: 12px; font-weight: 700; }
.cs-publish:hover { background: var(--accent-dim); }
.cs-side-foot { margin-top: 16px; padding: 12px 10px 2px; border-top: 1px solid var(--line); }
.cs-side-foot strong { display: block; font-size: 12px; }
.cs-side-foot small { display: block; font-size: 10px; color: var(--muted); }
.console-main { min-width: 0; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.cs-head h1 { margin: 8px 0 2px; font-size: 26px; }
.cs-head p { margin: 0; font-size: 12.5px; color: var(--text-2); }
.cs-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cs-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cs-kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-kpi { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.cs-kpi::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: var(--k); opacity: .8; }
.cs-kpi span { font-size: 11px; color: var(--muted); }
.cs-kpi strong { display: block; margin-top: 5px; font: 800 23px/1.35 var(--mono); color: var(--k); }
.cs-kpi small { font-size: 10px; color: var(--muted); }
.cs-panel { border: 1px solid var(--line); border-radius: 14px; background: rgba(15,21,34,.7); padding: 18px; margin-bottom: 18px; }
.cs-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cs-panel-head h3 { margin: 0; font-size: 15px; }
.cs-panel-head span { font-size: 10.5px; color: var(--muted); }
.cs-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.cs-bar-row { margin-bottom: 12px; }
.cs-bar-top { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 11.5px; color: var(--text-2); }
.cs-bar-top b { font: 700 11px var(--mono); color: var(--text); }
.cs-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.cs-bar i { display: block; height: 100%; border-radius: 6px; opacity: .85; }
.cs-table-wrap { padding: 0; overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cs-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.cs-table td { padding: 12px 14px; border-bottom: 1px solid rgba(150,180,255,.06); color: var(--text-2); vertical-align: middle; }
.cs-table tr:last-child td { border-bottom: 0; }
.cs-table tbody tr:hover { background: rgba(255,255,255,.025); }
.cs-table td strong { display: block; color: var(--text); font-size: 12.5px; font-weight: 600; }
.cs-table td small { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--muted); }
.cs-table.compact th, .cs-table.compact td { padding: 9px 12px; }
.cs-table .mono { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.cs-table .pts { color: var(--accent); font-weight: 700; font-family: var(--mono); }
.cs-thumb { display: block; width: 52px; height: 34px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; }
.cs-chip { display: inline-block; padding: 3px 8px; border-radius: 6px; white-space: nowrap; font-size: 10px; font-weight: 700; }
.cs-chip.on { background: var(--accent-dim); color: var(--accent); }
.cs-chip.off { background: rgba(255,107,139,.12); color: var(--danger); }
.cs-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-ops .btn { padding: 4px 9px; font-size: 10.5px; }
.cs-select { width: 120px; padding: 5px 8px; font-size: 11px; }
.cs-memdot { display: block; margin-top: 3px; font-size: 10px; }
.muted-row { opacity: .55; }
.me-row { background: rgba(56,232,200,.04); }
.cs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 11.5px; color: var(--muted); }
.cs-empty { padding: 32px 10px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; color: var(--muted); font-size: 12px; }
.cs-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-ad-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cs-ad { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: rgba(255,255,255,.02); padding-bottom: 12px; }
.cs-ad-no { padding: 10px 12px 0; font: 700 9px var(--mono); letter-spacing: 1.2px; color: var(--ad-accent); }
.cs-ad-visual { display: grid; place-items: center; height: 92px; margin: 8px 12px; border: 1px dashed rgba(150,180,255,.2); border-radius: 9px; overflow: hidden; background: radial-gradient(circle at 25% 20%, var(--ad-accent) 0%, transparent 65%), linear-gradient(140deg, #172033, #0b101b); }
.cs-ad-visual img { width: 100%; height: 100%; object-fit: cover; }
.cs-ad-visual span { padding: 0 8px; text-align: center; font-size: 12px; color: var(--text-2); }
.cs-ad-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0 12px 10px; }
.cs-ad-body strong { color: var(--text); font-size: 12.5px; }
.cs-ad-body small { color: var(--muted); font-size: 10px; }
.cs-ad .btn-block { width: calc(100% - 24px); margin: 0 12px; }
.cs-note { margin-top: 14px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.cs-note b { color: var(--text-2); }
.cs-code { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #080d18; color: var(--accent); font: 12px/1.7 var(--mono); white-space: pre-wrap; }
.cs-danger { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cs-danger span { font-size: 11px; color: var(--muted); }

@media (max-width: 1080px) {
  .console-wrap { grid-template-columns: minmax(0, 1fr); }
  .console-side { position: static; min-width: 0; }
  .console-main { min-width: 0; }
  .cs-nav { flex-direction: row; flex-wrap: wrap; min-width: 0; max-width: 100%; }
  .cs-nav button { width: auto; }
  .cs-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .console-wrap { padding-top: 18px; }
  .cs-two { grid-template-columns: 1fr; }
  .cs-kpi-grid, .cs-kpi-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-head { flex-direction: column; align-items: flex-start; }
  .cs-ad-grid { grid-template-columns: 1fr; }
}

/* ================= 手机端专项排版（追加在最后，覆盖上方断点） ================= */
/* 详情页常驻购买条：默认隐藏，仅窄屏显示 */
.mobile-buybar { display: none; }
@media (min-width: 761px) { .mobile-buybar { display: none !important; } }

@media (max-width: 760px) {
  /* ---- 顶栏：两行。第一行品牌 + 操作，第二行导航四等分，彻底去掉横向滚动条 ---- */
  .topbar-inner { padding: 8px 14px 7px; gap: 8px; min-height: 0; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; font-size: 11px; border-radius: 9px; }
  .brand-text strong { font-size: 14px; }
  .topbar-actions { margin-left: auto; gap: 6px; }
  .mode-badge, #searchBtn, .user-btn { display: none; }
  .points-pill { display: inline-flex; height: 30px; padding: 0 8px; font-size: 10.5px; }
  .points-pill strong { font-size: 12px; }
  .points-pill .unit { display: none; }
  .checkin-btn, .member-btn { height: 30px; padding: 0 8px; font-size: 11px; border-radius: 8px; }
  .cart-btn { height: 30px; padding: 0 9px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .nav {
    order: 3; flex: 0 0 100%; width: 100%; margin: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
    overflow: visible; padding-top: 7px; border-top: 1px solid var(--line);
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 2px; font-size: 12px; text-align: center; }

  /* ---- 通用留白与字号 ---- */
  .app-main { padding: 0 14px 56px; }
  .section { margin-top: 38px; }
  .section-head { gap: 6px; margin-bottom: 16px; }
  .section-head h2 { font-size: 19px; }
  .page-head { padding: 26px 0 4px; }
  .page-head h1 { font-size: 24px; }
  .hint { padding: 10px 12px; font-size: 11.5px; }
  .panel { padding: 16px; }
  .panel h3 { font-size: 13px; }

  /* ---- Hero：手机端按钮两列，横幅内边距收紧 ---- */
  .hero { padding: 30px 14px 36px; margin-top: 18px; border-radius: 16px; }
  .hero h1 { font-size: 30px; margin: 0 0 14px; }
  .hero-lead { font-size: 13.5px; line-height: 1.75; margin-bottom: 22px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-actions > :first-child { grid-column: 1 / -1; }
  .hero-actions .btn { padding: 11px 8px; font-size: 12.5px; }

  /* ---- 卡片与筛选 ---- */
  .grid { gap: 14px; }
  .card-cover { height: 158px; }
  .card-body { padding: 14px; }
  .card-title { font-size: 14px; }
  .toolbar { gap: 10px; }
  .search-wrap { flex: 1 1 100%; min-width: 0; max-width: none; }
  .chips { gap: 6px; }
  .chip { padding: 6px 11px; font-size: 11px; }
  .result-count { margin-left: 0; }

  /* ---- 详情页 + 常驻购买条 ---- */
  .detail { margin-top: 18px; gap: 16px; }
  .detail-cover { height: 168px; }
  .detail-cover .emoji { font-size: 68px; }
  .detail-cover.has-preview .emoji { font-size: 34px; }
  .detail h1 { font-size: 23px; }
  .detail .subtitle { font-size: 13px; margin-bottom: 14px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kv div { padding: 10px 12px; }
  .media-grid { grid-template-columns: 1fr; }
  .mobile-buybar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(9, 14, 24, .95); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 26px rgba(0,0,0,.4);
  }
  .mobile-buybar > div { flex: 1; min-width: 0; }
  .mobile-buybar span { display: block; font: 800 18px/1.2 var(--mono); color: var(--accent); }
  .mobile-buybar small { display: block; font-size: 10.5px; color: var(--muted); }
  .mobile-buybar .btn { flex-shrink: 0; padding: 10px 16px; font-size: 12.5px; }
  body.has-buybar .app-main { padding-bottom: 92px; }
  body.has-buybar .footer { margin-bottom: 62px; }
  body.has-buybar .toast-root { bottom: 76px; }

  /* ---- 弹窗：贴边、减少内边距，规则行改成两列网格避免文字竖排 ---- */
  .modal-mask { padding: 10px; align-items: center; }
  .modal { max-width: 100%; max-height: 90vh; padding: 18px 15px; border-radius: 14px; }
  .modal.wide { padding: 18px 13px; }
  .modal h2 { font-size: 18px; }
  .modal .lead { font-size: 11.5px; margin-bottom: 14px; }
  .modal .field { margin-bottom: 11px; }
  .modal-foot { gap: 8px; margin-top: 14px; }
  .modal-foot .btn { padding: 10px 8px; font-size: 12px; }
  .rule-row {
    display: grid; grid-template-columns: minmax(80px, 38%) minmax(0, 1fr);
    align-items: center; gap: 8px; padding: 9px 11px; font-size: 11.5px;
  }
  .rule-row span { min-width: 0; line-height: 1.5; }
  .rule-row b { white-space: normal; text-align: right; font-size: 11.5px; line-height: 1.5; }
  .rule-table { gap: 6px; margin: 12px 0; }
  .month-progress { padding: 11px 12px; }
  .checkin-result .big { font-size: 32px; }

  /* ---- 会员中心：四档改成 2×2 紧凑卡，不用滚一整屏 ---- */
  .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mv-card { padding: 12px 10px 10px; border-radius: 11px; }
  .mv-card h3 { margin: 8px 0 6px; font-size: 13px; }
  .mv-tag { font-size: 8px; letter-spacing: 1px; }
  .mv-icon { font-size: 13px; }
  .mv-ribbon { top: 7px; right: 7px; font-size: 8px; padding: 2px 5px; }
  .mv-metric { padding: 6px 0; gap: 4px; }
  .mv-metric b { font-size: 16px; }
  .mv-metric span { font-size: 9.5px; }
  .mv-perks { padding-top: 7px; margin-top: 6px; }
  .mv-perks li { font-size: 9.5px; line-height: 1.5; padding: 1px 0; }
  .mv-status { padding: 10px 12px; gap: 8px; margin-bottom: 12px; }
  .mv-status-main strong { font-size: 15px; }
  .mv-status-meta { gap: 10px; font-size: 10.5px; }
  .mv-compare { margin-top: 12px; }
  .mv-compare table { width: 100%; table-layout: fixed; }
  .mv-compare th, .mv-compare td { padding: 7px 3px; font-size: 9px; word-break: break-all; }
  .mv-cta { padding: 14px; gap: 12px; margin-top: 12px; }
  .mv-cta strong { font-size: 22px; }
  .mv-cta p { font-size: 11px; }
  .mv-demo { padding: 10px; margin-top: 12px; }
  .demo-switch button { padding: 5px 8px; font-size: 10px; }

  /* ---- 首页广告位：手机 2 列，避免 4 张竖着排成长条 ---- */
  .ad-strip { margin-top: 38px; }
  .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ad-card { height: 126px; }
  .ad-card.empty .ad-plus { font-size: 22px; }
  .ad-card.empty strong { font-size: 11px; }
  .ad-card.empty small { font-size: 9px; }
  .ad-info { left: 10px; right: 10px; bottom: 9px; }
  .ad-info strong { font-size: 11.5px; }
  .ad-info small { font-size: 9.5px; }
  .ad-strip-head h2 { font-size: 17px; }

  /* ---- 抽屉 / Toast / 页脚 ---- */
  .drawer { width: 100%; max-width: 100%; }
  .toast-root { right: 12px; left: 12px; bottom: 16px; align-items: stretch; }
  .toast { max-width: none; }
  .footer-inner { padding: 26px 14px; gap: 20px; }
  .footer-bottom { padding: 14px; }

  /* ---- 后台侧栏压成一条横向可滑的标签条 ---- */
  .console-wrap { min-height: 0; padding-top: 14px; gap: 14px; }
  .console-side { padding: 10px 11px; border-radius: 12px; box-shadow: none; }
  .cs-brand { padding: 0 2px 8px; gap: 8px; }
  .cs-brand-mark { width: 26px; height: 26px; font-size: 11px; }
  .cs-brand strong { font-size: 12px; }
  .cs-brand small { display: none; }
  .cs-mode { display: none; }
  .cs-brand { border-bottom: 0; padding-bottom: 5px; }
  .cs-nav { flex-direction: row; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .cs-nav::-webkit-scrollbar { display: none; }
  .cs-nav button { width: auto; flex: 0 0 auto; padding: 7px 9px; gap: 5px; font-size: 11px; }
  .cs-nav button span { width: auto; font-size: 11px; }
  .cs-publish { display: none; }
  .cs-side-foot { display: none; }
  .cs-head { gap: 10px; margin-bottom: 14px; }
  .cs-head h1 { font-size: 21px; }
  .cs-head-actions { flex-wrap: wrap; }
  .cs-kpi-grid, .cs-kpi-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .cs-kpi { padding: 11px 12px; }
  .cs-kpi strong { font-size: 19px; }
  .cs-panel { padding: 14px; margin-bottom: 14px; }
  .cs-toolbar { flex-wrap: wrap; gap: 8px; }
  .cs-note { font-size: 10.5px; }
  .cs-code { font-size: 10.5px; padding: 10px; }
  .cs-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* ---- 后台宽表转卡片：字段名由 JS 写入 data-label，这里用伪元素显示 ---- */
  .cs-panel.cs-table-wrap { padding: 11px; }
  .cs-table:not(.compact) thead { display: none; }
  .cs-table:not(.compact), .cs-table:not(.compact) tbody, .cs-table:not(.compact) tr { display: block; width: 100%; }
  .cs-table:not(.compact) tbody tr {
    margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line);
    border-radius: 12px; background: rgba(255,255,255,.022);
  }
  .cs-table:not(.compact) tbody tr:last-child { margin-bottom: 0; }
  .cs-table:not(.compact) td {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center;
    gap: 8px; padding: 6px 0; border: 0;
    border-bottom: 1px dashed rgba(150,180,255,.08); vertical-align: middle;
  }
  .cs-table:not(.compact) td:last-child { border-bottom: 0; }
  .cs-table:not(.compact) td::before {
    content: attr(data-label); grid-column: 1; grid-row: 1;
    align-self: start; padding-top: 2px; color: var(--muted); font-size: 10.5px; white-space: nowrap;
  }
  .cs-table:not(.compact) td > * { grid-column: 2; }
  .cs-table:not(.compact) td small { max-width: none; white-space: normal; }
  .cs-table:not(.compact) td .cs-thumb { width: 64px; height: 42px; }
  .cs-table:not(.compact) td .cs-ops { flex-wrap: wrap; }
  .cs-table:not(.compact) td .cs-select { width: 100%; max-width: 180px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 27px; }
  .mv-grid { gap: 6px; }
  .mv-card { padding: 10px 8px 9px; }
}
/* 只有极窄屏才把广告位收成单列，390 / 360 都保持 2 列 */
@media (max-width: 348px) {
  .ad-grid, .cs-ad-grid { grid-template-columns: 1fr; }
  .ad-card { height: 116px; }
}
@media (pointer: coarse) { #starCanvas { display: none; } }

/* ================= 首页搜索 / 展示框 / 免费教程 ================= */
/* ---- Hero 长条搜索 ---- */
.hero-search {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 720px; height: 56px; margin: 4px auto 0;
  padding: 6px 6px 6px 18px; text-align: left;
  border: 1px solid rgba(56,232,200,.34); border-radius: 14px;
  background: linear-gradient(100deg, rgba(16,26,38,.96), rgba(11,17,29,.96));
  box-shadow: 0 12px 34px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,255,255,.02);
}
.hero-search:focus-within {
  border-color: rgba(56,232,200,.72);
  box-shadow: 0 0 0 4px rgba(56,232,200,.1), 0 14px 40px rgba(0,0,0,.4);
}
.hero-search > svg { flex: 0 0 auto; color: var(--accent); }
.hero-search-input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  color: var(--text); font-size: 14.5px;
}
.hero-search-input::placeholder { color: #6b7c98; }
.hero-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hero-search-go {
  flex: 0 0 auto; height: 42px; padding: 0 20px; border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #4ad9c0); color: #041713;
  font-weight: 700; font-size: 13.5px; letter-spacing: .5px;
  box-shadow: 0 6px 20px rgba(56,232,200,.28);
}
.hero-search-go:hover { filter: brightness(1.08); }
.hero-suggest {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  max-height: 360px; overflow-y: auto; padding: 8px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(12,18,30,.98); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.hero-suggest.show { display: block; }
.hs-head { padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.hs-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; }
.hs-item:hover { background: rgba(56,232,200,.09); }
.hs-ico { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 17px; }
.hs-main { flex: 1; min-width: 0; }
.hs-main strong, .hs-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-main strong { font-size: 12.5px; }
.hs-main small { font-size: 10.5px; color: var(--muted); }
.hs-where { flex: 0 0 auto; font-size: 10px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(56,232,200,.25); border-radius: 999px; padding: 2px 8px; }
.hs-price { flex: 0 0 auto; font: 700 11.5px/1 var(--mono); color: var(--text-2); }
.hs-all { display: block; text-align: center; padding: 9px; margin-top: 4px; border-top: 1px dashed var(--line-strong); font-size: 11.5px; color: var(--accent); }
.hs-empty { padding: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.hero-actions { margin-top: 24px; }

/* ---- 两个次要按钮：暗蓝灰底，与纯黑主体区分开 ---- */
.hero-actions .btn-ghost {
  background: rgba(28, 39, 58, .92);
  border-color: rgba(130, 162, 200, .28);
  color: #c9d6ea;
}
.hero-actions .btn-ghost:hover {
  background: rgba(42, 58, 82, .96);
  border-color: rgba(56, 232, 200, .45);
  color: #eaf6ff;
}

/* ---- 主推按钮：静态亮色 + 轻量悬停，不跑持续动画 ----
   注意 .btn:hover 权重为 0,2,0，会把背景改成半透明灰；
   这里用同权重且靠后的 .hero-cta:hover 显式覆盖，避免深色字糊在深色底上。 */
.hero-cta {
  background: linear-gradient(135deg, #62f4d9, #38e8c8 55%, #6ae6cf);
  border-color: transparent; color: #041713; font-weight: 800; font-size: 15px;
  min-width: 196px; padding: 14px 28px;
  box-shadow: 0 10px 30px rgba(56,232,200,.34), 0 0 0 1px rgba(56,232,200,.35);
  transition: transform .16s ease, box-shadow .16s ease;
}
.hero-cta span { font-size: 16px; }
.hero-cta:hover {
  background: linear-gradient(135deg, #7cffe6, #4af0d5 55%, #8bf6e4);
  border-color: transparent; color: #041713;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(56,232,200,.5), 0 0 0 1px rgba(56,232,200,.5);
}
.hero-cta:active { transform: translateY(0); }

/* ---- 两个展示框 ---- */
.showcase {
  position: relative; overflow: hidden; margin-top: 34px; padding: 26px; scroll-margin-top: 150px;
  border: 1px solid var(--line-strong); border-radius: 20px;
  background: linear-gradient(150deg, rgba(18,26,42,.78), rgba(10,15,25,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 16px 44px rgba(0,0,0,.24);
}
.showcase::before { content: ''; position: absolute; top: -120px; right: -60px; width: 320px; height: 220px; border-radius: 50%; filter: blur(90px); opacity: .16; pointer-events: none; }
.hot-box::before { background: #52d6ff; }
.pick-box::before { background: #7c8cff; }
.showcase .section-head { margin-bottom: 18px; }
.showcase .section-head h2 { font-size: 21px; }
.hot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hot-item {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); transition: .18s;
}
.hot-item:hover { border-color: rgba(82,214,255,.45); background: rgba(82,214,255,.06); transform: translateY(-1px); }
.hot-rank { flex: 0 0 auto; width: 26px; font: 800 17px/1 var(--mono); color: rgba(124,140,255,.65); }
.hot-item:nth-child(-n+3) .hot-rank { color: #ffc861; }
.hot-thumb { flex: 0 0 auto; width: 58px; height: 42px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; }
.hot-main { flex: 1; min-width: 0; }
.hot-main strong, .hot-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-main strong { font-size: 12.5px; }
.hot-main small { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.hot-side { flex: 0 0 auto; text-align: right; }
.hot-side b { display: block; font: 800 13px/1.2 var(--mono); color: var(--accent); }
.hot-side small { display: block; font-size: 10px; color: var(--muted); }
.hot-arrow { flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pick-card {
  display: grid; grid-template-columns: 42% minmax(0, 1fr); overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); transition: .18s;
}
.pick-card:hover { border-color: var(--card-accent, var(--violet)); transform: translateY(-2px); }
.pick-visual { position: relative; min-height: 132px; background: #0a0f1a; overflow: hidden; }
.pick-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-badge { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 10px; font-weight: 700; color: #041713; background: var(--card-accent, var(--accent)); padding: 3px 9px; border-radius: 999px; }
.pick-info { display: flex; flex-direction: column; min-width: 0; padding: 13px 14px; }
.pick-cat { font-size: 10px; letter-spacing: .5px; color: var(--card-accent, var(--accent)); }
.pick-info strong { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
.pick-info small { display: block; flex: 1; margin-top: 4px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.pick-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; }
.pick-foot b { font: 800 14px/1 var(--mono); color: var(--accent); }
.pick-foot span { font-size: 10px; color: var(--muted); }

/* ---- 免费教程页 ---- */
.guide-note { margin: 18px 0 20px; }
.guide-list { display: grid; gap: 12px; }
.guide-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.guide-item[open] { border-color: rgba(56,232,200,.35); }
.guide-item summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.guide-item summary::-webkit-details-marker { display: none; }
.guide-no { font: 800 14px/1 var(--mono); color: var(--muted); }
.guide-ico { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 19px; }
.guide-head { flex: 1; min-width: 0; }
.guide-head strong { display: block; font-size: 14px; }
.guide-head small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.guide-tag { flex: 0 0 auto; font-size: 10.5px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(56,232,200,.28); padding: 3px 10px; border-radius: 999px; }
.guide-chevron { flex: 0 0 auto; font-size: 18px; color: var(--muted); transition: transform .2s; }
.guide-item[open] .guide-chevron { transform: rotate(180deg); }
.guide-body { padding: 4px 22px 18px 70px; border-top: 1px dashed var(--line-strong); }
.guide-body ol { margin: 14px 0 0; padding-left: 18px; }
.guide-body li { padding: 3px 0; font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.guide-tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 9px; background: rgba(124,140,255,.08); color: #c3caff; font-size: 11.5px; line-height: 1.7; }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding: 20px 22px; border: 1px solid rgba(56,232,200,.28); border-radius: 14px; background: var(--accent-dim); }
.guide-cta strong { font-size: 15px; }
.guide-cta p { margin: 5px 0 0; font-size: 12px; color: var(--text-2); }
.publish-points a { color: var(--accent); text-decoration: underline; }

@media (max-width: 1080px) {
  /* minmax(0,1fr) 防止长介绍把单列撑开，导致右侧积分价被挤出屏幕 */
  .hot-list, .pick-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-search { max-width: none; height: 52px; padding-left: 14px; }
  .hero-search-input { font-size: 13px; }
  .hero-search-go { height: 38px; padding: 0 14px; font-size: 12.5px; }
  .hero-actions .hero-cta { padding: 13px 14px; font-size: 13.5px; }
  .showcase { margin-top: 26px; padding: 16px 13px; border-radius: 15px; scroll-margin-top: 190px; }
  .showcase .section-head h2 { font-size: 18px; }
  .showcase .section-head p { font-size: 11px; }
  .hot-item { gap: 9px; padding: 9px; }
  .hot-thumb { width: 46px; height: 36px; }
  .hot-main strong { font-size: 12px; }
  .hot-main small { font-size: 10px; }
  .hot-side b { font-size: 12px; }
  .hot-side small { font-size: 9.5px; }
  .hot-arrow { display: none; }
  .pick-card { grid-template-columns: 38% minmax(0, 1fr); }
  .pick-visual { min-height: 116px; }
  .pick-info { padding: 11px; }
  .pick-info strong { font-size: 12.5px; }
  .guide-item summary { gap: 9px; padding: 13px; }
  .guide-ico { width: 32px; height: 32px; font-size: 16px; }
  .guide-head strong { font-size: 13px; }
  .guide-head small { font-size: 10.5px; }
  .guide-body { padding: 4px 14px 14px; }
  .guide-cta { padding: 16px; }
}
@media (max-width: 360px) {
  .hot-rank { width: 20px; font-size: 14px; }
  .pick-card { grid-template-columns: 1fr; }
  .pick-visual { height: 140px; }
}

/* ================= 第二排板块导航：全站视觉重心，比第一排更亮更醒目 ================= */
.subbar {
  position: relative; border-top: 1px solid rgba(120,200,255,.16);
  background: linear-gradient(180deg, rgba(20,29,49,.97), rgba(9,14,24,.96));
  box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(150,220,255,.09);
}
.subbar::before {
  content: ''; position: absolute; top: -1px; left: 12%; width: 76%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(56,232,200,.75), rgba(124,140,255,.7), transparent);
}
.subbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; height: 62px; display: flex; align-items: center; }
.subnav { display: flex; align-items: center; gap: 9px; width: 100%; height: 100%; }
.subnav-item { position: relative; display: flex; align-items: center; height: 100%; }
.subnav-link {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 15px 0 8px;
  border-radius: 12px; border: 1px solid rgba(150,190,255,.16);
  background-color: rgba(255,255,255,.045);
  background-image: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  color: #e6edfb; font-size: 13px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap; transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.subnav-link:hover {
  color: #fff; border-color: var(--ico); transform: translateY(-2px);
  background: linear-gradient(160deg, var(--ico-soft), rgba(255,255,255,.03));
  box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 18px var(--ico-soft);
}
.subnav-link.active {
  color: #fff; border-color: var(--ico);
  background: linear-gradient(150deg, var(--ico-soft), rgba(9,14,24,.9));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 6px 20px var(--ico-soft);
}
.subnav-ico {
  width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center;
  border-radius: 9px; color: var(--ico); background: var(--ico-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 12px var(--ico-soft);
}
.subnav-ico svg { filter: drop-shadow(0 0 5px var(--ico)); }
.subnav-link:hover .subnav-ico, .subnav-link.active .subnav-ico { background: var(--ico); color: #07111b; }
.subnav-caret {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 26px; padding: 0; border: 0; background: transparent;
  color: var(--ico); font-size: 11px; line-height: 1; cursor: pointer; opacity: .8;
}
.subnav-caret:hover { opacity: 1; }
.has-drop .subnav-link { padding-right: 24px; }
.subnav-drop {
  display: none; position: absolute; top: calc(100% - 4px); left: 0; z-index: 60;
  min-width: 178px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 13px;
  background: rgba(12,18,30,.98); backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
.has-drop:hover .subnav-drop, .has-drop.open .subnav-drop { display: block; }
.subnav-drop-title {
  padding: 4px 10px 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--line);
  font-size: 10.5px; color: var(--muted);
}
.subnav-drop a {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 8px;
  font-size: 12px; color: var(--text-2); white-space: nowrap;
}
.subnav-drop a:hover { background: var(--ico-soft, rgba(56,232,200,.1)); color: var(--ico, var(--accent)); }
.subnav-drop-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--ico, var(--accent)); box-shadow: 0 0 7px var(--ico, var(--accent)); }
.subnav-modal-list { display: flex; flex-direction: column; gap: 8px; }

/* 自定义背景图：图片层在最底，暗罩在中，文字在最上 */
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; user-select: none;
  transform-origin: center center;
}
.hero > div { z-index: 2; }
.hero.has-custom-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,18,.66), rgba(6,10,18,.76));
}

/* ================= 后台「站点外观」面板 ================= */
/* 背景取景框：所见即首页横幅，按住拖动决定露出哪一部分 */
.bg-crop {
  position: relative; height: 210px; border: 1px solid var(--line); border-radius: 13px;
  overflow: hidden; background: #080e1a; cursor: grab; touch-action: none; user-select: none;
}
.bg-crop.dragging { cursor: grabbing; border-color: rgba(56,232,200,.55); }
.bg-crop > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none;
  transform-origin: center center;
}
.bg-crop-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,10,18,.66), rgba(6,10,18,.78));
}
.bg-crop.custom .bg-crop-shade { background: linear-gradient(180deg, rgba(6,10,18,.6), rgba(6,10,18,.76)); }
.bg-crop-sample {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; pointer-events: none; text-align: center; padding: 12px;
}
.bg-crop-sample strong { font-size: 21px; font-weight: 800; color: #f1f6ff; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.bg-crop-sample span { font-size: 11px; letter-spacing: 2px; color: #c7d5ec; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.bg-crop-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); pointer-events: none;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(56,232,200,.35); background: rgba(5,12,20,.8);
  font-size: 10.5px; color: var(--accent);
}
.bg-crop-state {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: rgba(5,10,18,.82); font-size: 10.5px; color: var(--text-2);
  pointer-events: none;
}
.bg-crop-tools { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 12px 0 4px; }
.bg-zoom { display: flex; flex-direction: column; gap: 5px; min-width: 215px; flex: 1 1 215px; }
.bg-zoom label, .bg-opt label { font-size: 11px; color: var(--text-2); }
.bg-zoom label b { color: var(--accent); font-family: var(--mono); }
.bg-zoom-ctl { display: flex; align-items: center; gap: 6px; }
.bg-zoom-ctl input[type=range] { flex: 1 1 auto; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.bg-zoom-ctl .btn { flex: 0 0 auto; height: 30px; padding: 0 10px; font-size: 15px; line-height: 1; }
.bg-opt { display: flex; flex-direction: column; gap: 5px; min-width: 150px; flex: 0 1 170px; }
.bg-opt .select { padding: 6px 34px 6px 10px; font-size: 12px; }
.bg-rot { display: flex; gap: 7px; flex-wrap: wrap; }
.bg-focus-val { font: 11px/1.4 var(--mono); color: var(--muted); }
.site-upload { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; }
/* 自定义背景时用纯深色底，切到「完整显示」时留边干净，不会露出默认 SVG 花纹 */
.hero.has-custom-bg { background: #080e1a; }

/* 六个导航的后台配置行 */
.navcfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.navcfg-row {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: linear-gradient(150deg, var(--ico-soft), rgba(255,255,255,.012));
}
.navcfg-head { display: flex; align-items: flex-start; gap: 10px; }
.navcfg-no { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--muted); font: 700 10px var(--mono); }
.navcfg-icon .subnav-ico { width: 32px; height: 32px; flex-basis: 32px; }
.navcfg-fields { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 9px; flex: 1; min-width: 0; }
.navcfg-groups { margin-top: 10px; }
.navcfg-groups .textarea { min-height: 68px; resize: vertical; font: 11.5px/1.7 var(--mono); }
.site-btn-grid { display: flex; flex-direction: column; gap: 10px; }
.site-btn-row {
  display: grid; grid-template-columns: 28px minmax(0,1fr) minmax(0,1fr); gap: 12px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02);
}
.site-btn-no { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--accent-dim); color: var(--accent); font: 700 11px var(--mono); }
.site-save-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15,21,34,.7); }
.site-save-bar span { font-size: 11px; color: var(--muted); }

/* ================= 六个板块页面 ================= */
.board-chips { margin: 8px 0 14px; }
.board-meta { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.board-note { margin-bottom: 18px; }
.board-rules .rule-row { justify-content: flex-start; }
.board-rules .rule-row span { flex: 0 0 auto; min-width: 22px; color: var(--accent); }
.board-rules .rule-row b { font: 600 12.5px/1.6 var(--font); color: var(--text); white-space: normal; text-align: left; }
.bounty-grid, .free-grid, .setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 8px 0 22px; }
.bounty-card, .free-card, .setup-card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.free-card:hover, .setup-card:hover { border-color: rgba(56,232,200,.45); }
.bounty-card.done { opacity: .55; }
.bounty-top { display: flex; align-items: center; justify-content: space-between; }
.bounty-tag { padding: 3px 9px; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-size: 10px; }
.bounty-status { font-size: 10.5px; color: var(--muted); }
.bounty-card strong, .free-card strong, .setup-card strong { font-size: 13.5px; line-height: 1.45; }
.bounty-card p, .free-card small, .setup-card small { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--text-2); }
.bounty-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-strong); }
.bounty-foot b { font: 800 15px var(--mono); color: var(--accent); }
.free-card > span, .setup-ico { font-size: 22px; }
.free-card em, .setup-card em { margin-top: 4px; font-style: normal; font-size: 10.5px; color: var(--accent); }
.setup-no { width: fit-content; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); font: 700 10px var(--mono); }
.free-grid, .setup-grid { margin-bottom: 24px; }

@media (max-width: 1080px) {
  .subbar-inner { padding: 0 16px; }
  .bounty-grid, .free-grid, .setup-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .navcfg { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* 六个板块改为「图标在上、文字在下」的一行紧凑卡，全部可见且不需横向滚动 */
  .subbar-inner { padding: 0 6px; height: 58px; }
  .subnav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; width: 100%; height: 100%; }
  .subnav-item { min-width: 0; height: 100%; }
  .subnav-link {
    flex-direction: column; justify-content: center; gap: 2px; width: 100%; height: 50px;
    padding: 3px 1px; border-radius: 10px; font-size: 10px; font-weight: 700;
  }
  .has-drop .subnav-link { padding-right: 1px; }
  .subnav-ico { width: 20px; height: 20px; flex-basis: 20px; border-radius: 6px; }
  .subnav-ico svg { width: 13px; height: 13px; }
  .subnav-label { font-size: 10px; letter-spacing: -.4px; }
  .subnav-caret { top: 1px; right: 0; transform: none; width: 13px; height: 14px; font-size: 8px; }
  .subnav-drop { display: none !important; }
  .bg-crop { height: 168px; }
  .bg-crop-sample strong { font-size: 15px; }
  .bg-crop-tools { gap: 10px; align-items: flex-end; }
  .bg-zoom { min-width: 0; flex: 1 1 100%; }
  .bg-opt { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .bg-rot { flex: 1 1 100%; }
  .bg-rot .btn { padding: 6px 9px; font-size: 11px; }
  .bg-focus-val { flex: 1 1 100%; }
  .site-btn-row { grid-template-columns: 24px minmax(0,1fr); gap: 8px; }
  .site-btn-row .field:last-child { grid-column: 2 / -1; }
  .navcfg-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bounty-grid, .free-grid, .setup-grid { grid-template-columns: 1fr; }
}
