/* ============ 星域互联 · 科技风样式 ============ */
:root {
  --bg: #05070f;
  --bg2: #0a0e1c;
  --panel: rgba(17, 22, 44, 0.6);
  --panel-solid: #0f1428;
  --border: rgba(120, 140, 255, 0.14);
  --border-strong: rgba(120, 140, 255, 0.30);
  --text: #e6ecff;
  --text-dim: #8a94b8;
  --text-faint: #5c668a;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --purple: #a855f7;
  --magenta: #ec4899;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 45%, #a855f7 100%);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html, body { height: 100%; }

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }

::selection { background: rgba(34, 211, 238, 0.3); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(120, 140, 255, 0.25); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 140, 255, 0.45); }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 背景 ============ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 800px at 80% -10%, #13203f 0%, transparent 55%),
  radial-gradient(900px 700px at -10% 110%, #1a1038 0%, transparent 55%),
  var(--bg); }

.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120, 140, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1200px 800px at 50% 40%, #000 30%, transparent 80%);
}

.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.bg-glow.g1 { width: 480px; height: 480px; background: #0e7490; top: -160px; right: -80px; }
.bg-glow.g2 { width: 420px; height: 420px; background: #7c3aed; bottom: -140px; left: -80px; }
.bg-glow.g3 { width: 300px; height: 300px; background: #2563eb; top: 40%; left: 50%; opacity: 0.3; }

#particles { position: absolute; inset: 0; }
.particle { position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cyan); opacity: 0.5; animation: float 8s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-40px); }
}

/* ============ 通用 ============ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: "SF Mono", "JetBrains Mono", "Consolas", monospace; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all .2s; position: relative; border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(59, 130, 246, 0.55); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.08); }
.btn-danger { background: rgba(248,113,113,0.12); color: var(--red); border-color: rgba(248,113,113,0.3); }
.btn-danger:hover { background: rgba(248,113,113,0.22); }
.btn-success { background: rgba(52,211,153,0.14); color: var(--green); border-color: rgba(52,211,153,0.3); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-pad { padding: 24px; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font-size: 12px;
  border-radius: 20px; font-weight: 600; }
.tag-cyan { background: rgba(34,211,238,0.12); color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); }
.tag-purple { background: rgba(168,85,247,0.14); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.tag-green { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }
.tag-red { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.3); }
.tag-amber { background: rgba(251,191,36,0.12); color: var(--amber); border: 1px solid rgba(251,191,36,0.3); }
.tag-gray { background: rgba(255,255,255,0.05); color: var(--text-dim); border: 1px solid var(--border); }

.input, .textarea, .select {
  width: 100%; background: rgba(5, 8, 20, 0.6); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 14px; color: var(--text); font-size: 14px;
  transition: border .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.textarea { resize: vertical; min-height: 80px; }
.select option { background: var(--panel-solid); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.field { margin-bottom: 16px; }
.label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; font-weight: 600; }
.hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.demo-note { font-size: 12.5px; line-height: 1.6; color: #fde68a; background: rgba(250, 204, 21, .08);
  border: 1px solid rgba(250, 204, 21, .35); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.demo-note code { font-size: 15px; letter-spacing: 2px; color: #fbbf24; background: rgba(0,0,0,.25);
  padding: 1px 8px; border-radius: 6px; font-weight: 700; }

.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.badge-dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge-dot.off { background: var(--text-faint); }

/* ============ 导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 15, 0.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 18px rgba(59,130,246,.4); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--text-dim); transition: .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--cyan); background: rgba(34,211,238,0.08); }

.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: var(--grad); display: grid; place-items: center; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.15); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Hero ============ */
.hero { padding: 96px 0 64px; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  border-radius: 30px; background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.25);
  color: var(--cyan); font-size: 13px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 900; line-height: 1.12; letter-spacing: -.5px; }
.hero .sub { margin: 22px auto 0; max-width: 640px; color: var(--text-dim); font-size: 17px; }

.domain-box { max-width: 720px; margin: 40px auto 0; }
.domain-input-row { display: flex; gap: 10px; background: rgba(5,8,20,0.7);
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.domain-input-row input { flex: 1; background: transparent; border: none; color: var(--text);
  font-size: 18px; padding: 10px 14px; font-family: "SF Mono", "Consolas", monospace; }
.domain-input-row input::placeholder { color: var(--text-faint); }
.domain-suffix { display: flex; align-items: center; color: var(--text-dim); font-size: 16px;
  padding: 0 8px; font-family: "SF Mono", "Consolas", monospace; }
.domain-suffix.dot { font-size: 24px; font-weight: 700; color: var(--cyan); padding: 0 2px; }

.suffix-select {
  background: transparent; border: none; color: var(--cyan); font-size: 17px;
  font-family: "SF Mono", "Consolas", monospace; font-weight: 700;
  padding: 10px 6px; cursor: pointer; max-width: 130px;
}
.suffix-select option { background: var(--panel-solid); color: var(--text); }
.suffix-select:focus { outline: none; }
.domain-hint { margin-top: 12px; font-size: 12.5px; color: var(--text-faint); min-height: 18px; }
.domain-hint.ok { color: var(--green); }
.domain-hint.err { color: var(--red); }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 52px; flex-wrap: wrap; }
.hstat .num { font-size: 30px; font-weight: 800; font-family: "SF Mono", "Consolas", monospace; }
.hstat .lbl { font-size: 13px; color: var(--text-faint); }

/* ============ 区块 ============ */
.section { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.section-head p { color: var(--text-dim); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; transition: .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px; background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--text-dim); }

.cta { text-align: center; padding: 70px 0; }
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }

.footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center;
  color: var(--text-faint); font-size: 13px; }
.footer a { color: var(--text-dim); }

/* ============ 认证 ============ */
.auth-page { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; }
.auth-tabs { display: flex; background: rgba(5,8,20,0.5); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 9px; background: transparent;
  color: var(--text-dim); font-size: 14px; font-weight: 600; transition: .2s; }
.auth-tabs button.active { background: var(--grad); color: #fff; }

/* ============ 控制台布局 ============ */
.dash { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 232px; flex: none; border-right: 1px solid var(--border);
  padding: 22px 14px; background: rgba(8, 11, 24, 0.4); }
.sidebar .menu-item { display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border-radius: 11px; color: var(--text-dim); font-size: 14px; font-weight: 600;
  margin-bottom: 4px; cursor: pointer; transition: .18s; border: 1px solid transparent; }
.sidebar .menu-item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar .menu-item.active { color: var(--cyan); background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.2); }
.sidebar .menu-item .mi { font-size: 17px; }
.sidebar .side-label { font-size: 11px; color: var(--text-faint); text-transform: uppercase;
  letter-spacing: 1px; padding: 18px 14px 8px; }
.main { flex: 1; padding: 30px; min-width: 0; }

.page-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.page-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

/* ============ 概览卡片 ============ */
.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; position: relative; overflow: hidden; }
.stat-card .sc-ico { position: absolute; right: 16px; top: 16px; font-size: 26px; opacity: .6; }
.stat-card .sc-lbl { font-size: 13px; color: var(--text-dim); }
.stat-card .sc-num { font-size: 30px; font-weight: 800; margin-top: 4px; font-family: "SF Mono", "Consolas", monospace; }
.stat-card .sc-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }

.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 20px; }
.chart-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bars .bar { width: 100%; max-width: 34px; background: var(--grad); border-radius: 6px 6px 2px 2px;
  min-height: 3px; transition: height .5s; position: relative; }
.chart-bars .bar-val { font-size: 11px; color: var(--text-dim); font-family: "SF Mono", monospace; }
.chart-bars .bar-x { font-size: 11px; color: var(--text-faint); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; padding: 12px 14px; color: var(--text-faint); font-size: 12px;
  font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid rgba(120,140,255,0.07); white-space: nowrap; }
tr:hover td { background: rgba(255,255,255,0.02); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .uname { font-weight: 600; }
.user-cell .uid { font-size: 11px; color: var(--text-faint); }

/* ============ 域名卡片 ============ */
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sub-card { padding: 22px; }
.sub-card .sub-prefix { font-family: "SF Mono", "Consolas", monospace; font-size: 20px;
  font-weight: 700; color: var(--cyan); word-break: break-all; }
.sub-card .sub-url { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; word-break: break-all; }
.sub-card .sub-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.file-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px;
  border: 1px solid var(--border); margin-bottom: 10px; background: rgba(5,8,20,0.3); }
.file-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); font-size: 18px; flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-meta .fn { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta .fs { font-size: 12px; color: var(--text-faint); }
.file-actions { display: flex; gap: 6px; flex: none; }

/* ============ 充值/商品 ============ */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shop-item { padding: 24px; text-align: center; position: relative; transition: .22s; }
.shop-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.shop-item.hot { border-color: rgba(168,85,247,0.45); }
.shop-item .ribbon { position: absolute; top: 14px; right: -2px; background: var(--purple); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 6px 0 0 6px; font-weight: 700; }
.shop-item .p-name { font-size: 17px; font-weight: 700; }
.shop-item .p-desc { font-size: 12.5px; color: var(--text-dim); margin: 6px 0 14px; }
.shop-item .p-price { font-size: 32px; font-weight: 800; font-family: "SF Mono", monospace; }
.shop-item .p-price .cur { font-size: 16px; color: var(--text-dim); }

.pay-qr { text-align: center; padding: 10px 0; }
.pay-qr img { width: 200px; height: 200px; object-fit: contain; border-radius: 14px;
  background: #fff; padding: 8px; }
.pay-qr .amount { font-size: 34px; font-weight: 800; color: var(--green); font-family: "SF Mono", monospace; }

/* ============ 水印角标 ============ */
.wm-badge { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: flex;
  align-items: center; gap: 8px; background: rgba(5,8,20,0.82); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; font-size: 12px; color: var(--text-dim);
  backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.wm-badge .wm-qr { width: 20px; height: 20px; border-radius: 4px; cursor: pointer; }

/* ============ Toast / Modal ============ */
#toast-wrap { position: fixed; top: 76px; right: 20px; z-index: 200; display: flex;
  flex-direction: column; gap: 10px; }
.toast { padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  background: var(--panel-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: slideIn .25s ease; max-width: 340px; }
.toast.ok { border-color: rgba(52,211,153,0.4); }
.toast.err { border-color: rgba(248,113,113,0.4); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

#modal-wrap { position: fixed; inset: 0; z-index: 150; display: none; }
#modal-wrap.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(2,4,10,0.7); backdrop-filter: blur(4px); }
.modal { position: relative; max-width: 520px; margin: 8vh auto 0; padding: 28px;
  animation: pop .22s ease; max-height: 82vh; overflow-y: auto; }
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.modal-close { position: absolute; top: 16px; right: 18px; background: transparent; color: var(--text-dim);
  font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* ============ 站点主页（个人主页）样式 ============ */
.site-head { text-align: center; padding: 56px 24px 30px; }
.site-avatar { width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 44px; position: relative;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  box-shadow: 0 0 0 4px rgba(255,255,255,.1), 0 12px 30px rgba(0,0,0,.4); overflow: hidden; }
.site-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-dot { position: absolute; right: 3px; bottom: 3px; width: 17px; height: 17px; border-radius: 50%;
  border: 3px solid #0b0f1e; background: #5c668a; }
.site-dot.on { background: #34d399; box-shadow: 0 0 10px #34d399; }
.site-name { font-size: 25px; font-weight: 800; }
.site-tagline { margin-top: 8px; font-size: 14.5px; color: var(--text-dim); min-height: 22px; }
.site-tagline .cursor { color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.site-badges { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.site-sec { text-align: center; font-size: 12px; letter-spacing: 2px; color: var(--text-dim);
  text-transform: uppercase; margin: 24px 0 12px; }
.site-link { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-radius: 13px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); margin-bottom: 11px;
  color: var(--text); transition: .18s; }
.site-link:hover { transform: translateY(-2px); border-color: var(--cyan); background: rgba(34,211,238,.07); }
.site-link i { font-style: normal; font-size: 21px; width: 26px; text-align: center; }
.site-link .t { flex: 1; font-size: 15px; font-weight: 600; text-align: left; }
.site-link .sub { font-size: 12.5px; color: var(--text-dim); }

.site-music { margin: 12px 0; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 13px; background: rgba(34,211,238,.06); display: flex; align-items: center; gap: 12px; }
.site-music .eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.site-music .eq span { width: 3px; background: var(--cyan); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.site-music .eq span:nth-child(1) { height: 40%; }
.site-music .eq span:nth-child(2) { height: 90%; animation-delay: .2s; }
.site-music .eq span:nth-child(3) { height: 60%; animation-delay: .4s; }
.site-music .eq span:nth-child(4) { height: 100%; animation-delay: .1s; }
@keyframes eq { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.site-music .mi { flex: 1; min-width: 0; text-align: left; }
.site-music .mi .n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-music .mi .a { font-size: 12px; color: var(--text-dim); }
.site-music button { background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; flex: none; }

.site-about { text-align: center; font-size: 14.5px; color: var(--text-dim); }
.site-proj { padding: 14px 18px; border: 1px solid var(--border); border-radius: 13px;
  background: rgba(255,255,255,.03); margin-bottom: 11px; text-align: left; }
.site-proj h4 { font-size: 15px; margin-bottom: 4px; }
.site-proj p { font-size: 13px; color: var(--text-dim); }
.site-proj a { color: var(--cyan); font-size: 13px; }

/* ============ 讨论区 ============ */
.forum-post { display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  margin-bottom: 12px; cursor: pointer; transition: .2s; }
.forum-post:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.forum-post .fp-side { display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: none; width: 72px; }
.forum-post .fp-name { font-size: 11.5px; color: var(--text-dim); max-width: 72px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-post .fp-main { flex: 1; min-width: 0; }
.forum-post .fp-title { font-size: 16px; font-weight: 700; }
.forum-post .fp-preview { font-size: 13px; color: var(--text-dim); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-post .fp-meta { display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; flex: none; font-size: 11.5px; color: var(--text-faint); }

.forum-content { margin-top: 10px; font-size: 15px; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word; color: var(--text); }
.forum-reply { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  margin-bottom: 10px; }
.forum-reply .fr-main { flex: 1; min-width: 0; }
.forum-reply .forum-content { margin-top: 5px; }

/* ============ 网站分享区 ============ */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.share-card { padding: 20px; display: flex; flex-direction: column; transition: .2s; }
.share-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.share-card .share-domain { font-family: "SF Mono", "Consolas", monospace; font-size: 17px;
  font-weight: 700; color: var(--cyan); word-break: break-all; }
.share-card .share-title { font-size: 14px; font-weight: 600; margin-top: 8px; }
.share-card .share-note { font-size: 12.5px; color: var(--text-dim); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-card .share-owner { display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 12.5px; color: var(--text-dim); }
.share-card .share-actions { display: flex; gap: 8px; margin-top: 14px; }
.share-card .share-actions .btn { flex: 1; }

/* ============ 站点密码锁 ============ */
.auth-card .field { text-align: left; }

@media (max-width: 900px) {
  .share-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .share-grid { grid-template-columns: 1fr; }
  .forum-post { flex-wrap: wrap; }
  .forum-post .fp-meta { flex-direction: row; width: 100%; justify-content: flex-end; }
}

/* ============ 用户协议 ============ */
.term-box { line-height: 1.9; font-size: 14px; color: var(--text); }
.term-box .term-h2 { font-size: 16.5px; font-weight: 800; color: var(--cyan);
  margin: 26px 0 10px; padding-left: 10px; border-left: 3px solid var(--cyan); }
.term-box .term-h2:first-child { margin-top: 4px; }
.term-box .term-hl { margin: 18px 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.25);
  color: #fca5a5; font-weight: 600; line-height: 1.9; }
.term-box .term-p { margin: 9px 0; color: var(--text-dim); text-align: justify;
  word-break: break-word; }
.term-box .term-tail { margin: 26px 0 6px; text-align: center;
  color: var(--text-faint); font-size: 13px; }

.agree-row { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 16px;
  font-size: 12.5px; color: var(--text-dim); cursor: pointer; line-height: 1.6; }
.agree-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: #22d3ee;
  cursor: pointer; flex: none; }

/* ============ 紧急下线卡片 ============ */
.offline-card { border-color: var(--border-strong); }
.offline-card.off-on { border-color: rgba(248,113,113,0.55);
  background: rgba(248,113,113,0.06); animation: offPulse 2s ease-in-out infinite; }
@keyframes offPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(248,113,113,0.12); }
  50% { box-shadow: 0 0 30px 0 rgba(248,113,113,0.28); } }

/* 客服悬浮按钮 */
.service-btn { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex;
  align-items: center; gap: 6px; padding: 11px 18px; border-radius: 30px;
  background: linear-gradient(135deg, #22d3ee, #a855f7); color: #fff; font-size: 14px;
  font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(59,130,246,.4);
  transition: .2s; }
.service-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59,130,246,.55); }

/* 开关 */
.switch { position: relative; width: 46px; height: 26px; display: inline-block; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #2a3352; border-radius: 26px; transition: .2s; cursor: pointer; }
.slider:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: linear-gradient(135deg, #22d3ee, #a855f7); }
.switch input:checked + .slider:before { transform: translateX(20px); }

@media (max-width: 900px) {
  .features, .grid-stats { grid-template-columns: repeat(2, 1fr); }
  .shop-grid, .sub-grid, .grid-2 { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; z-index: 40;
    display: flex; overflow-x: auto; padding: 8px; border-right: none; border-top: 1px solid var(--border);
    background: rgba(5,7,15,0.9); backdrop-filter: blur(16px); }
  .sidebar .side-label { display: none; }
  .sidebar .menu-item { flex: none; padding: 9px 13px; font-size: 13px; }
  .dash { flex-direction: column; }
  .main { padding: 20px 16px 90px; }
  .domain-input-row { flex-direction: column; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 560px) {
  .features, .grid-stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
