/* ==========================================================================
   沛沛租号 · 全局样式
   ========================================================================== */
:root {
  --bg: #070b14;
  --bg-2: #0c1220;
  --panel: #111a2b;
  --panel-2: #162034;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2fb;
  --muted: #8a99b5;
  --muted-2: #5f6d88;
  --gold: #f6cd7d;
  --gold-2: #d9a441;
  --gold-3: #a9772a;
  --blue: #5b8cff;
  --green: #33d69f;
  --red: #ff5c72;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(91, 140, 255, 0.16), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(217, 164, 65, 0.13), transparent 60%),
    linear-gradient(180deg, #070b14 0%, #070b14 55%, #050810 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(246, 205, 125, 0.28); }

.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gold {
  background: linear-gradient(135deg, #ffe0a3 0%, var(--gold) 32%, var(--gold-2) 100%);
  color: #2a1c03;
  box-shadow: 0 10px 26px rgba(217, 164, 65, 0.28);
}
.btn-gold:hover:not(:disabled) { box-shadow: 0 14px 32px rgba(217, 164, 65, 0.42); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }

.btn-danger { background: rgba(255, 92, 114, 0.12); border-color: rgba(255, 92, 114, 0.35); color: #ff8b9c; }
.btn-danger:hover { background: rgba(255, 92, 114, 0.2); }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ==========================================================================
   顾客端 · 顶部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, #ffe6b0, var(--gold-2) 58%, #8a5f1d);
  display: grid; place-items: center;
  color: #2b1d04;
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.3);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text strong { display: block; font-size: 17px; letter-spacing: 1px; }
.brand-text span { display: block; font-size: 11px; color: var(--muted-2); letter-spacing: 0.6px; margin-top: 2px; }

.header-nav { display: flex; gap: 24px; margin-left: auto; }
.header-nav a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.header-nav a:hover { color: var(--gold); }

.header-side { display: flex; align-items: center; gap: 14px; }
.online-tip { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(51, 214, 159, 0.14);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(51, 214, 159, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(51, 214, 159, 0.04); }
}

/* ==========================================================================
   顾客端 · 首屏
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 62px 0 46px; }
.hero::after {
  content: "";
  position: absolute; left: 50%; top: -280px; transform: translateX(-50%);
  width: 1100px; height: 620px;
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.18), transparent 72%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--gold);
  background: rgba(217, 164, 65, 0.1);
  border: 1px solid rgba(217, 164, 65, 0.26);
  margin-bottom: 22px;
}
.pill b { color: #fff; font-size: 14px; }

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.18;
  letter-spacing: 1px;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #fff2d0, var(--gold) 46%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.9; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 38px; margin-top: 36px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats div span { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 6px; letter-spacing: 0.5px; }
.hero-stats div b {
  font-size: 26px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.hero-stats div b i { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 3px; font-weight: 500; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-art .ring {
  position: absolute; inset: 0; margin: auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(246, 205, 125, 0.16);
  box-shadow: inset 0 0 80px rgba(246, 205, 125, 0.08);
  animation: spin 26s linear infinite;
}
.hero-art .ring::before, .hero-art .ring::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 16px var(--gold);
}
.hero-art .ring::before { top: 14px; left: 50%; }
.hero-art .ring::after { bottom: 14px; left: 50%; background: var(--blue); box-shadow: 0 0 16px var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }

.emblem {
  width: 210px; height: 210px;
  display: grid; place-items: center;
  border-radius: 40px;
  background: linear-gradient(155deg, rgba(246, 205, 125, 0.18), rgba(91, 140, 255, 0.1));
  border: 1px solid rgba(246, 205, 125, 0.26);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.emblem svg { width: 118px; height: 118px; filter: drop-shadow(0 10px 24px rgba(246, 205, 125, 0.35)); }

/* ---------- 公告条 ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.13), rgba(217, 164, 65, 0.03));
  border: 1px solid rgba(217, 164, 65, 0.2);
  font-size: 13px; color: #f3d9a4;
}
.notice-bar svg { width: 17px; height: 17px; flex-shrink: 0; }
.notice-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   顾客端 · 选号区
   ========================================================================== */
.section { padding: 46px 0 20px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: 1px; }
.section-head h2::before {
  content: ""; display: inline-block; width: 4px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-3));
  margin-right: 12px; vertical-align: -3px;
}
.section-head p { margin: 0; font-size: 13px; color: var(--muted-2); }
.section-head p b { color: var(--gold); }

.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(17, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 24px;
}
.search-box {
  display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 14px;
  min-width: 240px; flex: 1;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within { border-color: rgba(246, 205, 125, 0.5); box-shadow: 0 0 0 3px rgba(246, 205, 125, 0.1); }
.search-box svg { width: 16px; height: 16px; color: var(--muted-2); flex-shrink: 0; }
.search-box input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.search-box input::placeholder { color: var(--muted-2); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px; cursor: pointer;
  transition: all 0.18s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.chip.active {
  background: linear-gradient(135deg, rgba(246, 205, 125, 0.9), rgba(217, 164, 65, 0.9));
  border-color: transparent; color: #2a1c03; font-weight: 700;
}

.toolbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 21px; border-radius: 999px; background: rgba(255,255,255,0.12); position: relative; cursor: pointer; transition: background 0.2s; }
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; transition: transform 0.2s;
}
.switch input:checked { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.switch input:checked::after { transform: translateX(17px); }

select.input, input.input, textarea.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
select.input:focus, input.input:focus, textarea.input:focus {
  border-color: rgba(246, 205, 125, 0.5);
  box-shadow: 0 0 0 3px rgba(246, 205, 125, 0.1);
}
select.input { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.toolbar select.input { width: 132px; height: 42px; }
textarea.input { height: auto; padding: 12px 13px; line-height: 1.7; resize: vertical; }
option { background: #111a2b; color: var(--text); }

/* ---------- 账号卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
  gap: 20px;
}
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.pager:empty { display: none; }
.pager-nums {
  display: flex; align-items: center; gap: 6px;
  flex: 0 1 auto; min-width: 0; max-width: 100%;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 2px;
}
.pager-nums::-webkit-scrollbar { display: none; }
.pager-nums .pager-btn { flex: 0 0 auto; }
.pager-btn {
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  font-size: 14px; cursor: pointer; transition: all .18s ease;
}
.pager-btn:hover:not(:disabled) { border-color: rgba(217, 164, 65, 0.7); color: #f2c96f; }
.pager-btn.active {
  background: linear-gradient(135deg, #f2c96f, #d9a441);
  border-color: transparent; color: #2a1c03; font-weight: 700;
}
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.admin-pager { margin-top: 14px; }
.admin-pager .pager-btn { min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.admin-pager .pager-info { font-size: 12px; color: var(--muted-2); }
.pager-info { margin-left: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .pager { gap: 10px; }
  .pager-nums { order: -1; flex: 1 1 100%; }
  .pager-info { margin-left: auto; }
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 32, 52, 0.95), rgba(14, 21, 35, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(246, 205, 125, 0.34);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(246, 205, 125, 0.1);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1d2a44, #0d1524);
  overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-cover img { transform: scale(1.06); }
.card-cover .no-img {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(246, 205, 125, 0.16), transparent 60%),
    linear-gradient(145deg, #1a2640, #0b1220);
}
.card-cover .no-img span {
  font-size: 30px; font-weight: 800; letter-spacing: 4px;
  color: rgba(246, 205, 125, 0.28);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}
.cover-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(7, 11, 20, 0.86) 100%);
  pointer-events: none;
}
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}
.badge-available { background: rgba(51, 214, 159, 0.16); color: #5cf0bd; border: 1px solid rgba(51, 214, 159, 0.4); }
.badge-rented { background: rgba(255, 92, 114, 0.16); color: #ff91a0; border: 1px solid rgba(255, 92, 114, 0.38); }
.badge-hidden { background: rgba(138, 153, 181, 0.18); color: #b9c5da; border: 1px solid rgba(138, 153, 181, 0.36); }
.badge-hot {
  left: auto; right: 12px;
  background: linear-gradient(135deg, #ff9d5c, #ff5c72);
  color: #fff; border: 0;
  box-shadow: 0 6px 16px rgba(255, 92, 114, 0.34);
}
.cover-rank {
  position: absolute; left: 14px; bottom: 11px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--gold);
}
.cover-rank svg { width: 14px; height: 14px; }

.card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  margin: 0 0 11px;
  font-size: 15.5px; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 47px;
}
.meta-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 11px; }
.meta-tag {
  padding: 4px 9px; border-radius: 7px;
  background: rgba(91, 140, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.18);
  font-size: 11.5px; color: #9fbcff;
  font-variant-numeric: tabular-nums;
}
.meta-tag.gold { background: rgba(217, 164, 65, 0.1); border-color: rgba(217, 164, 65, 0.22); color: var(--gold); }

.card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 6px;
}
.price-block { display: flex; align-items: baseline; gap: 3px; }
.price-block b { font-size: 24px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.price-block b i { font-style: normal; font-size: 13px; margin-right: 1px; }
.price-block span { font-size: 12px; color: var(--muted-2); }
.price-sub { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(17, 26, 43, 0.4);
}
.empty-state .big { font-size: 46px; margin-bottom: 12px; opacity: 0.55; }
.empty-state h3 { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.empty-state p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.8; }

/* ==========================================================================
   顾客端 · 说明区
   ========================================================================== */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rule-card {
  padding: 22px;
  background: rgba(17, 26, 43, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.rule-card:hover { border-color: rgba(246, 205, 125, 0.26); transform: translateY(-3px); }
.rule-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(246, 205, 125, 0.18), rgba(217, 164, 65, 0.06));
  border: 1px solid rgba(246, 205, 125, 0.2);
  color: var(--gold);
  margin-bottom: 14px;
}
.rule-icon svg { width: 20px; height: 20px; }
.rule-card h4 { margin: 0 0 8px; font-size: 15px; }
.rule-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.85; }

.rules-text {
  white-space: pre-line;
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--muted);
  padding: 24px 26px;
  background: rgba(17, 26, 43, 0.65);
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 64px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.6);
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin: 6px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.9; }
.footer-contact { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}
.contact-pill:hover { color: var(--gold); border-color: rgba(246, 205, 125, 0.4); }
.contact-pill svg { width: 15px; height: 15px; }

/* ==========================================================================
   弹层 / 详情
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(7px);
  overflow-y: auto;
}
.overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: min(1000px, 100%);
  background: linear-gradient(180deg, #131c2e, #0b111d);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  animation: popUp 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  overflow: hidden;
}
@keyframes popUp { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 20, 0.72);
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.modal-close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); transform: rotate(90deg); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.gallery { background: #070b14; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1b2a45, #080d16);
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .no-img { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(246,205,125,0.24); font-size: 40px; font-weight: 800; letter-spacing: 6px; }
.thumbs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 2px; }
.thumbs::-webkit-scrollbar { height: 5px; }
.thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 5px; }
.thumb {
  flex-shrink: 0;
  width: 66px; height: 50px;
  border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line-strong);
  cursor: pointer; opacity: 0.55;
  transition: all 0.18s;
  background: #0d1524;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246, 205, 125, 0.2); }
.gallery-actions { display: flex; gap: 8px; }
.gallery-actions .btn { flex: 1; }

/* ---------- 图片放大查看器 ---------- */
.gallery-main.has-img { cursor: zoom-in; }
.gallery-main.has-img::after {
  content: '点击放大 ⤢';
  position: absolute; right: 10px; bottom: 10px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(6, 10, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.img-viewer {
  position: fixed; inset: 0; z-index: 250;
  display: none; flex-direction: column;
  background: rgba(4, 7, 13, 0.97);
}
.img-viewer.open { display: flex; animation: fadeIn 0.18s ease; }
.iv-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 64px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.iv-toolbar button {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; line-height: 1; color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer; transition: all 0.18s;
}
.iv-toolbar button:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.34); }
.iv-toolbar #ivReset { width: auto; padding: 0 14px; border-radius: 999px; font-size: 12.5px; }
.iv-toolbar #ivClose { position: absolute; right: 14px; top: 14px; }
.iv-toolbar #ivZoomLabel { min-width: 52px; text-align: center; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.iv-stage {
  position: relative; flex: 1; overflow: hidden;
  touch-action: none; cursor: grab; user-select: none;
}
.iv-stage.dragging { cursor: grabbing; }
.iv-stage img {
  position: absolute; left: 50%; top: 50%;
  max-width: 92%; max-height: 92%; width: auto; height: auto;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  user-select: none; -webkit-user-drag: none;
}
.iv-hint {
  margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; color: var(--muted-2);
}

.detail-info { padding: 26px 26px 22px; display: flex; flex-direction: column; }
.detail-info h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.45; padding-right: 30px; }
.detail-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.tag-chip {
  padding: 4px 10px; border-radius: 6px; font-size: 11.5px;
  background: rgba(246, 205, 125, 0.1);
  border: 1px solid rgba(246, 205, 125, 0.22);
  color: var(--gold);
}
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.spec-item { background: #0d1524; padding: 12px 10px; text-align: center; }
.spec-item span { display: block; font-size: 11px; color: var(--muted-2); margin-bottom: 5px; }
.spec-item b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.spec-item b.gold { color: var(--gold); }

.detail-desc { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0 0 18px; max-height: 76px; overflow-y: auto; }

.rent-box {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid var(--line);
}
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  margin-bottom: 13px;
}
.seg button {
  height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.18s; font-family: inherit;
}
.seg button.active { background: linear-gradient(135deg, rgba(246,205,125,0.92), rgba(217,164,65,0.92)); color: #2a1c03; }
.seg button:disabled { opacity: 0.32; cursor: not-allowed; }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.qty-row > span { font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.stepper button {
  width: 34px; height: 34px; border: 0; background: rgba(255,255,255,0.05);
  color: var(--text); font-size: 17px; cursor: pointer; transition: background 0.15s;
}
.stepper button:hover { background: rgba(246, 205, 125, 0.16); }
.stepper input {
  width: 46px; height: 34px; border: 0; background: transparent;
  text-align: center; color: var(--text); font-size: 14px; outline: none;
  font-variant-numeric: tabular-nums; font-family: inherit;
}

.cost-lines { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.cost-lines div { display: flex; justify-content: space-between; padding: 3px 0; }
.cost-lines b { color: var(--text); font-variant-numeric: tabular-nums; }
.cost-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 11px; border-top: 1px dashed var(--line-strong); margin-bottom: 14px;
}
.cost-total span { font-size: 13px; color: var(--muted); }
.cost-total b { font-size: 26px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.cost-total b i { font-style: normal; font-size: 14px; margin-right: 2px; }

.field-row { margin-bottom: 10px; }
.field-row label { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.field-row input { height: 40px; font-size: 13px; }
.rent-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.75; margin: 10px 0 0; }

/* 下单成功 */
.success-box { padding: 38px 34px 34px; text-align: center; }
.success-icon {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(51, 214, 159, 0.12);
  border: 1px solid rgba(51, 214, 159, 0.4);
  color: var(--green);
}
.success-icon svg { width: 30px; height: 30px; }
.success-box h3 { margin: 0 0 8px; font-size: 19px; }
.success-box > p { margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.order-card {
  padding: 18px; border-radius: 14px; text-align: left;
  background: rgba(7, 11, 20, 0.6);
  border: 1px dashed rgba(246, 205, 125, 0.34);
  margin-bottom: 20px;
}
.order-card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 6px 0; }
.order-card .row span { color: var(--muted-2); }
.order-card .row b { color: var(--text); font-weight: 600; text-align: right; }
.order-card .row b.gold { color: var(--gold); font-size: 16px; font-variant-numeric: tabular-nums; }
.copy-inline { background: none; border: 0; color: var(--blue); font-size: 12px; cursor: pointer; margin-left: 6px; }
.success-steps { text-align: left; font-size: 12.5px; color: var(--muted); line-height: 2; margin: 0 0 20px; padding-left: 18px; }

/* ==========================================================================
   后台管理
   ========================================================================== */
.admin-body { min-height: 100vh; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.login-card {
  width: min(400px, 100%);
  padding: 38px 34px;
  background: linear-gradient(180deg, #131c2e, #0b111d);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.login-card h2 { margin: 0 0 6px; font-size: 20px; text-align: center; }
.login-card p.sub { margin: 0 0 26px; font-size: 12.5px; color: var(--muted-2); text-align: center; }
.login-card label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.login-card .input { margin-bottom: 18px; height: 46px; }
.login-tip { margin: 16px 0 0; font-size: 11.5px; color: var(--muted-2); text-align: center; line-height: 1.8; }

.admin-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.admin-header .header-inner { height: 62px; }
.admin-tabs { display: flex; gap: 4px; margin-left: 18px; }
.admin-tab {
  height: 36px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 13.5px; cursor: pointer;
  transition: all 0.18s; font-family: inherit;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.admin-tab.active { color: #2a1c03; background: linear-gradient(135deg, var(--gold), var(--gold-2)); font-weight: 700; }
.admin-tab .count {
  padding: 0 6px; height: 17px; line-height: 17px; border-radius: 5px;
  background: rgba(0,0,0,0.25); font-size: 11px;
}
.admin-tab:not(.active) .count { background: rgba(255,255,255,0.1); }

.admin-main { padding: 28px 0 60px; }

/* 悬浮上架按钮（仅账号管理页显示） */
.fab-add {
  position: fixed; right: 26px; bottom: 30px; z-index: 90;
  display: none; align-items: center; gap: 6px;
  padding: 14px 22px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f2c96f, #d9a441);
  color: #2a1c03; font-size: 14.5px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 12px 28px rgba(217, 164, 65, 0.38);
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.fab-add.show { display: inline-flex; }
.fab-add:hover { box-shadow: 0 14px 34px rgba(217, 164, 65, 0.5); }
.fab-add:active { transform: scale(0.95); }
@media (max-width: 640px) {
  .fab-add { right: 16px; bottom: 18px; padding: 13px 20px; font-size: 14px; }
}

.panel {
  background: rgba(17, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.panel-head h3 .hint { font-size: 12px; color: var(--muted-2); font-weight: 400; }
.panel-body { padding: 20px; }

.alert-warn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px; border-radius: 12px; flex-wrap: wrap;
  background: rgba(255, 196, 87, 0.09);
  border: 1px solid rgba(255, 196, 87, 0.26);
  color: #f5d190; font-size: 13px;
  margin-bottom: 18px;
}

.admin-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.admin-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 5px 14px;
  background: #0f1727;
  transition: background 0.18s;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
}
.admin-row:hover { background: #131d30; }
.admin-row:active { background: #04080f; }
.admin-row .info h4,
.admin-row .info .meta { -webkit-user-select: none; user-select: none; }
.admin-row .thumb-sm {
  width: 66px; height: 50px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(145deg, #1b2942, #0b1220);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 10.5px; color: var(--muted-2);
}
.admin-row .thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.admin-row .info { min-width: 0; }
.admin-row .info h4 {
  margin: 0; font-size: 13px; font-weight: 600; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-row .info .meta {
  display: flex; align-items: center; gap: 7px; margin-top: 2px;
  font-size: 11px; color: var(--muted-2); min-width: 0;
  white-space: nowrap; overflow: hidden;
}
.admin-row .info .meta .price {
  font-size: 13px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums;
}
.admin-row .info .meta .price em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted-2); }
.admin-row .info .meta .cat {
  padding: 1px 5px; border-radius: 4px; font-size: 10px;
  border: 1px solid rgba(217, 164, 65, 0.32); color: var(--gold);
}
.admin-row .info .meta .client { color: var(--muted-2); font-size: 10.5px; }
.admin-row .info .meta .note {
  color: var(--gold); opacity: 0.8; overflow: hidden; text-overflow: ellipsis;
  border-left: 1px solid var(--line); padding-left: 7px;
}
.admin-row .col-status select { height: 34px; font-size: 12.5px; }
.admin-row .col-actions { display: flex; gap: 5px; justify-content: flex-end; }
.admin-row .col-actions .btn-sm { height: 27px; padding: 0 9px; font-size: 11.5px; white-space: nowrap; }
.admin-row .col-actions .ico { display: none; width: 13px; height: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.form-grid label .req { color: var(--red); margin-left: 2px; }
.form-grid .help { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }

.upload-zone {
  padding: 24px;
  border: 1.5px dashed rgba(246, 205, 125, 0.3);
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.45);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.07);
}
.upload-zone svg { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 10px; }
.upload-zone b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.upload-zone span { font-size: 11.5px; color: var(--muted-2); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.preview-item {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0b1220;
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item button {
  position: absolute; top: 4px; right: 4px;
  width: 21px; height: 21px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.72); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.preview-item button:hover { background: var(--red); }
.preview-item.cover-tag::after {
  content: "封面"; position: absolute; left: 4px; bottom: 4px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(217, 164, 65, 0.92); color: #2a1c03;
  font-size: 10px; font-weight: 700;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 150px 130px;
  gap: 16px; align-items: center;
  padding: 15px 20px;
  background: #0f1727;
  border-bottom: 1px solid var(--line);
}
.order-item:last-child { border-bottom: 0; }
.order-item h4 { margin: 0 0 5px; font-size: 14px; }
.order-item .ono { font-size: 12px; color: var(--gold); font-family: ui-monospace, "Cascadia Code", Menlo, monospace; }
.order-item p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted-2); }
.order-item .amount { font-size: 17px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.order-item .amount small { display: block; font-size: 11px; color: var(--muted-2); font-weight: 400; }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px;
}
.status-pending { background: rgba(255, 196, 87, 0.14); color: #ffcb70; border: 1px solid rgba(255, 196, 87, 0.3); }
.status-done { background: rgba(51, 214, 159, 0.13); color: #5cf0bd; border: 1px solid rgba(51, 214, 159, 0.3); }
.status-cancel { background: rgba(138, 153, 181, 0.13); color: #b9c5da; border: 1px solid rgba(138, 153, 181, 0.3); }

.toast-host {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 300; display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 20px; border-radius: 11px;
  background: rgba(20, 30, 48, 0.96);
  border: 1px solid var(--line-strong);
  color: var(--text); font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.24s ease;
  max-width: 90vw;
}
.toast.ok { border-color: rgba(51, 214, 159, 0.45); color: #7df3c8; }
.toast.err { border-color: rgba(255, 92, 114, 0.45); color: #ff9aa8; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.loading { display: grid; place-items: center; padding: 60px 0; color: var(--muted-2); font-size: 13px; gap: 14px; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { display: none; }
  .hero { padding: 44px 0 34px; }
  .detail-grid { grid-template-columns: 1fr; }
  .gallery { padding: 14px; }
  .detail-info { padding: 20px; }
  .admin-row { grid-template-columns: 66px minmax(0, 1fr) auto; }
  .admin-row .col-status { display: none; }
  .admin-row .col-actions .txt { display: none; }
  .admin-row .col-actions .ico { display: block; }
  .admin-row .col-actions .btn-sm { width: 30px; height: 26px; padding: 0; justify-content: center; }
  .order-item { grid-template-columns: minmax(0, 1fr) 120px; }
  .order-item .col-status, .order-item .col-time { grid-column: span 1; }
  .header-nav { display: none; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .hero-stats { gap: 24px; }
  .hero-stats div b { font-size: 21px; }
  .toolbar { padding: 12px; gap: 10px; }
  .search-box { min-width: 100%; flex: none; }
  .toolbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .card-body { padding: 11px 12px 13px; }
  .card-body h3 { font-size: 13.5px; min-height: 40px; margin-bottom: 8px; }
  .meta-row { gap: 5px; }
  .meta-tag { font-size: 10.5px; padding: 3px 6px; }
  .price-block b { font-size: 19px; }
  .price-sub { font-size: 10.5px; }
  .card-foot .btn { height: 32px; padding: 0 10px; font-size: 12px; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 94vh; overflow-y: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; padding: 6px 12px; }
  .admin-row .thumb-sm { width: 62px; height: 46px; }
  .admin-row .info h4 { font-size: 12.5px; }
  .admin-row .info .meta .client { display: none; }
  .admin-row .col-actions { display: grid; grid-template-columns: repeat(2, 30px); gap: 5px; }
  .order-item { grid-template-columns: 1fr; gap: 8px; }
  .site-footer { margin-top: 44px; }
  .section { padding: 32px 0 10px; }
  .success-box { padding: 30px 20px 26px; }
  .header-side .online-tip { display: none; }
  .admin-tabs {
    order: 3; flex: 1 1 100%; margin-left: 0; gap: 2px;
    overflow-x: auto; scrollbar-width: none;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { flex: 0 0 auto; padding: 0 10px; font-size: 12.5px; }
  .admin-header .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .admin-header .header-side { order: 2; margin-left: auto; }
}

/* ==========================================================================
   移动端专项优化
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
button, a, .chip, .card, label.switch, .thumb { touch-action: manipulation; }

.form-body { padding: 26px; }

/* 弹层高度自适应：内容过长时内部滚动，避免顶部被裁掉 */
.modal { max-height: calc(100vh - 40px); overflow-y: auto; }

/* 上传操作按钮 / 进度 */
.upload-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.upload-status { display: block; min-height: 16px; margin-top: 8px; font-size: 12px; color: var(--gold); text-align: center; }

/* 表单底部按钮（桌面跟随内容，手机吸底） */
.form-footer {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  gap: 12px;
  margin: 22px -26px -26px;
  padding: 14px 26px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(11, 17, 29, 0) 0%, rgba(11, 17, 29, 0.94) 34%, #0b111d 100%);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* 详情页移动端底部操作条（桌面隐藏） */
.mobile-cta { display: none; }

@media (max-width: 720px) {
  /* 输入框 16px，避免 iOS 聚焦时自动放大页面 */
  input.input, select.input, textarea.input, .search-box input,
  .stepper input, .login-card .input { font-size: 16px; }

  .btn { height: 46px; }
  .btn-sm { height: 38px; }

  /* ---------- 站点头部 / 首屏 ---------- */
  .header-inner { height: 60px; gap: 10px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text span { font-size: 10.5px; }
  .hero h1 { font-size: 29px; letter-spacing: 0.5px; }
  .hero p { font-size: 13.5px; line-height: 1.85; }
  .hero-actions .btn { flex: 1; }
  .notice-bar { font-size: 12px; padding: 11px 14px; }

  /* ---------- 后台头部与页签 ---------- */
  .admin-header .header-inner { padding: 10px 0 0; row-gap: 10px; }
  .admin-header .brand-text span { display: none; }
  .admin-tabs { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding-bottom: 10px; }
  .admin-tab { height: 40px; justify-content: center; padding: 0 4px; }
  .admin-tab .count { display: none; }

  /* ---------- 账号列表：紧凑三列 ---------- */
  .admin-list { background: transparent; gap: 6px; padding: 10px; }
  .admin-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    grid-template-areas: none;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .admin-row .thumb-sm { width: 62px; height: 50px; }
  .admin-row .info { align-self: center; }
  .admin-row .info h4 { font-size: 12.5px; line-height: 1.45; }
  .admin-row .info .meta { gap: 6px; margin-top: 3px; }
  .admin-row .info .meta .client { display: none; }
  .admin-row .col-actions { display: grid; grid-template-columns: repeat(2, 28px); gap: 5px; justify-content: end; }
  .admin-row .col-actions .btn { width: 28px; height: 24px; padding: 0; }

  /* ---------- 订单卡片 ---------- */
  .order-item { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .order-item .col-actions { justify-content: flex-start !important; }
  .order-item .col-actions .btn { flex: 1; }

  /* ---------- 上传弹层 ---------- */
  .form-body { padding: 18px 16px 0; }
  .form-footer { margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .upload-zone { padding: 22px 14px; }
  .upload-actions .btn { flex: 1; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .form-grid { gap: 12px; }

  /* ---------- 顾客详情：底部固定操作条 ---------- */
  .mobile-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    position: sticky;
    bottom: 0;
    z-index: 6;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 17, 29, 0.97);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .mobile-cta .mc-price { flex: 1; }
  .mobile-cta .mc-price span { display: block; font-size: 11px; color: var(--muted-2); margin-bottom: 2px; }
  .mobile-cta .mc-price b { font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
  .mobile-cta .mc-price b i { font-style: normal; font-size: 13px; margin-right: 1px; }
  .mobile-cta .mc-price b em { font-style: normal; }
  .mobile-cta .btn { min-width: 148px; }

  .gallery-main { aspect-ratio: 16 / 10; }
  .detail-info { padding: 18px 16px 14px; }
  .detail-info h2 { font-size: 17px; }
  .detail-desc { max-height: none; }
  .spec-item b { font-size: 15px; }
  .rent-box { padding: 14px; }
  .success-box { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }

  /* 表格类内容可横向滑动，避免挤压 */
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; width: 100%; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .toolbar-right { flex-wrap: wrap; gap: 10px; }
  .toolbar select.input { flex: 1; width: auto; }
}

/* ==========================================================================
   账号体系（登录 / 注册 / 我的订单）
   ========================================================================== */
.auth-box { padding: 30px 26px 26px; }
.auth-box h3 { margin: 0 0 6px; font-size: 20px; }
.auth-sub { margin: 0 0 18px; font-size: 12.5px; line-height: 1.7; color: var(--muted-2); }
.auth-seg { margin-bottom: 18px; }
.auth-seg button { flex: 1; }
.auth-hint { margin: 2px 0 14px; font-size: 12px; line-height: 1.7; color: var(--gold); }
.auth-hint:empty { display: none; }

.user-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text); font-size: 13px;
  cursor: pointer; user-select: none;
  transition: border-color 0.2s, background 0.2s;
}
.user-chip:hover { border-color: rgba(246, 205, 125, 0.45); background: rgba(246, 205, 125, 0.07); }
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f6cd7d, #c08d33);
  color: #2a1c03; font-size: 13px; font-weight: 700;
}
.user-chip .uname { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip > svg { color: var(--muted-2); transition: transform 0.2s; }
.user-chip.open > svg { transform: rotate(180deg); }
.user-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 148px; padding: 6px;
  background: #131c2e;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
}
.user-chip.open .user-menu { display: block; }
.user-menu a, .user-menu button {
  display: block; width: 100%;
  padding: 9px 12px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text);
  font-size: 13px; text-align: left;
  text-decoration: none; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: rgba(246, 205, 125, 0.1); color: var(--gold); }

.my-order {
  margin-bottom: 10px;
  padding: 14px 16px;
  background: #0f1727;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.my-order:last-child { margin-bottom: 0; }
.mo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mo-head b { font-size: 14px; }
.mo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.mo-row span { color: var(--muted-2); }
.mo-row b { font-weight: 600; }
.mo-row b.gold { color: var(--gold); }

@media (max-width: 720px) {
  .auth-box { padding: 26px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .user-chip { height: 40px; padding: 0 10px 0 5px; }
  .user-chip .uname { max-width: 62px; font-size: 12.5px; }
  .user-menu { min-width: 156px; }
}

/* ---------- 管理端 · 服务器监控 ---------- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.stat-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0f1727;
  border: 1px solid var(--line);
}
.stat-label { font-size: 12px; color: var(--muted-2); letter-spacing: 0.4px; }
.stat-value {
  font-size: 22px; font-weight: 800; line-height: 1.2;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.stat-value em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.stat-sub { font-size: 11.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.stat-empty { grid-column: 1 / -1; padding: 26px 0; text-align: center; font-size: 13px; color: var(--muted-2); }

/* 访客 · 按设备统计 */
.visit-device-title {
  margin: 16px 0 10px;
  font-size: 12px; color: var(--muted-2); letter-spacing: 0.4px;
}
.device-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.device-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  background: #0f1727; border: 1px solid var(--line);
}
.device-chip span { font-size: 12.5px; color: var(--muted); }
.device-chip b { font-size: 15px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.device-chip b em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted-2); margin-left: 1px; }
.device-chip i { font-style: normal; font-size: 11px; color: var(--muted-2); }

.chart-legend {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12px; color: var(--muted);
}
.chart-legend .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
}
.chart-legend .dot-gold { background: #f2c96f; }
.chart-legend .dot-blue { background: #5aa9ff; }
.chart-legend .hint { margin-left: auto; color: var(--muted-2); font-size: 11.5px; }

@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: 18px; }
  .stat-sub { font-size: 11px; }
}

/* ==========================================================================
   后台管理 · 白色风格（html[data-theme="light"]）
   ========================================================================== */
html[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-2: #eef2f8;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.17);
  --text: #1b2434;
  --muted: #586782;
  --muted-2: #8391a8;
  --gold: #b8801a;
  --gold-2: #a06f10;
  --gold-3: #8a5f10;
  --shadow: 0 18px 40px rgba(23, 39, 75, 0.12);
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(900px 520px at 12% -8%, rgba(91, 140, 255, 0.10), transparent 62%),
    radial-gradient(760px 480px at 92% 4%, rgba(217, 164, 65, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fafd 0%, #f2f5fa 55%, #edf1f8 100%);
}
html[data-theme="light"] ::selection { background: rgba(217, 164, 65, 0.24); }

/* 顶部 / 登录卡片 */
html[data-theme="light"] .admin-header { background: rgba(255, 255, 255, 0.92); }
html[data-theme="light"] .admin-tab:hover { background: rgba(15, 23, 42, 0.05); }
html[data-theme="light"] .admin-tab:not(.active) .count { background: rgba(15, 23, 42, 0.07); }
html[data-theme="light"] .login-card { background: #ffffff; }
html[data-theme="light"] .login-card .brand-text span { color: var(--muted-2); }

/* 按钮 */
html[data-theme="light"] .btn-ghost {
  background: #ffffff; color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(23, 39, 75, 0.05);
}
html[data-theme="light"] .btn-ghost:hover { background: #f1f5fa; border-color: rgba(15, 23, 42, 0.26); }
html[data-theme="light"] .btn-danger { background: rgba(220, 38, 62, 0.08); border-color: rgba(220, 38, 62, 0.3); color: #c92a41; }
html[data-theme="light"] .btn-danger:hover:not(:disabled) { background: rgba(220, 38, 62, 0.14); }
html[data-theme="light"] .fab-add { box-shadow: 0 12px 28px rgba(184, 128, 26, 0.32); }

/* 面板 / 列表 */
html[data-theme="light"] .panel {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 39, 75, 0.06);
}
html[data-theme="light"] .admin-row,
html[data-theme="light"] .order-item { background: #ffffff; }
html[data-theme="light"] .admin-row:hover { background: #f5f8fc; }
html[data-theme="light"] .admin-row:active { background: #dbe3f0; }
html[data-theme="light"] .admin-row .thumb-sm,
html[data-theme="light"] .preview-item { background: linear-gradient(145deg, #eef2f9, #e2e9f3); }
html[data-theme="light"] .admin-row .col-price { color: #a06f10; }
html[data-theme="light"] .order-item .ono,
html[data-theme="light"] .order-item .amount { color: #a06f10; }
html[data-theme="light"] .alert-warn {
  background: rgba(217, 164, 65, 0.12);
  border-color: rgba(184, 128, 26, 0.3);
  color: #8a5f10;
}

/* 状态标签 */
html[data-theme="light"] .status-pending { background: rgba(217, 164, 65, 0.16); color: #94620c; border-color: rgba(184, 128, 26, 0.32); }
html[data-theme="light"] .status-done { background: rgba(16, 155, 111, 0.13); color: #0b7d59; border-color: rgba(16, 155, 111, 0.3); }
html[data-theme="light"] .status-cancel { background: rgba(88, 103, 130, 0.1); color: #586782; border-color: rgba(88, 103, 130, 0.26); }

/* 表单 / 弹层 */
html[data-theme="light"] select.input,
html[data-theme="light"] input.input,
html[data-theme="light"] textarea.input {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line-strong);
}
html[data-theme="light"] select.input:focus,
html[data-theme="light"] input.input:focus,
html[data-theme="light"] textarea.input:focus {
  border-color: rgba(184, 128, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 128, 26, 0.12);
}
html[data-theme="light"] select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
html[data-theme="light"] option { background: #ffffff; color: var(--text); }
html[data-theme="light"] .overlay { background: rgba(26, 37, 58, 0.42); }
html[data-theme="light"] .modal { background: #ffffff; }
html[data-theme="light"] .modal-close { background: #f2f5fa; color: var(--muted); }
html[data-theme="light"] .modal-close:hover { color: var(--text); border-color: rgba(15, 23, 42, 0.35); }
html[data-theme="light"] .upload-zone { background: #f7f9fc; border-color: rgba(184, 128, 26, 0.38); }
html[data-theme="light"] .upload-zone:hover,
html[data-theme="light"] .upload-zone.dragover { background: rgba(217, 164, 65, 0.1); }
html[data-theme="light"] .form-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.96) 34%, #ffffff 100%);
}
html[data-theme="light"] .upload-status { color: #a06f10; }
html[data-theme="light"] .preview-item button { background: rgba(15, 23, 42, 0.68); }

/* 提示 / 加载 / 监控卡片 */
html[data-theme="light"] .toast {
  background: #ffffff; color: var(--text);
  box-shadow: 0 12px 30px rgba(23, 39, 75, 0.16);
}
html[data-theme="light"] .toast.ok { color: #0b7d59; }
html[data-theme="light"] .toast.err { color: #c92a41; }
html[data-theme="light"] .spinner { border-color: rgba(15, 23, 42, 0.12); }
html[data-theme="light"] .stat-card { background: #f7f9fc; }
html[data-theme="light"] .device-chip { background: #f7f9fc; }
html[data-theme="light"] .device-chip b { color: #a06f10; }
html[data-theme="light"] .stat-value { color: #a06f10; }
html[data-theme="light"] .stat-bar { background: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .chart-legend .dot-gold { background: #c98a12; }
html[data-theme="light"] .chart-legend .dot-blue { background: #3b7dd8; }

/* ---------- 顾客端 · 白色风格 ---------- */
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.88); }
html[data-theme="light"] .header-nav a:hover { color: #a06f10; }
html[data-theme="light"] .pill b { color: var(--text); }
html[data-theme="light"] .hero h1 em {
  background: linear-gradient(100deg, #8a5f10, #c98a12 46%, #a06f10);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .notice-bar {
  background: linear-gradient(90deg, rgba(217, 164, 65, 0.18), rgba(217, 164, 65, 0.05));
  border-color: rgba(184, 128, 26, 0.28);
  color: #8a5f10;
}
html[data-theme="light"] .toolbar { background: #ffffff; box-shadow: 0 8px 24px rgba(23, 39, 75, 0.06); }
html[data-theme="light"] .search-box { background: #f7f9fc; }
html[data-theme="light"] .search-box:focus-within {
  border-color: rgba(184, 128, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 128, 26, 0.12);
}
html[data-theme="light"] .chip { background: #ffffff; }
html[data-theme="light"] .chip:hover { border-color: rgba(15, 23, 42, 0.3); }
html[data-theme="light"] .switch input { background: rgba(15, 23, 42, 0.16); }
html[data-theme="light"] .card { background: #ffffff; box-shadow: 0 10px 26px rgba(23, 39, 75, 0.07); }
html[data-theme="light"] .card:hover {
  border-color: rgba(184, 128, 26, 0.4);
  box-shadow: 0 18px 38px rgba(23, 39, 75, 0.14);
}
html[data-theme="light"] .card-cover { background: linear-gradient(145deg, #eef2f9, #e2e9f3); }
html[data-theme="light"] .cover-rank { color: #ffe3ac; }
html[data-theme="light"] .meta-tag {
  background: rgba(59, 111, 212, 0.1);
  border-color: rgba(59, 111, 212, 0.2);
  color: #3b6fd4;
}
html[data-theme="light"] .meta-tag.gold {
  background: rgba(184, 128, 26, 0.12);
  border-color: rgba(184, 128, 26, 0.24);
  color: #a06f10;
}
html[data-theme="light"] .empty-state { background: #ffffff; }
html[data-theme="light"] .rule-card,
html[data-theme="light"] .rules-text { background: #ffffff; }
html[data-theme="light"] .site-footer { background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .contact-pill { background: #ffffff; }
html[data-theme="light"] .contact-pill:hover { color: #a06f10; border-color: rgba(184, 128, 26, 0.45); }
html[data-theme="light"] .pager-btn { background: #ffffff; }
html[data-theme="light"] .pager-btn:hover:not(:disabled) { color: #a06f10; }
html[data-theme="light"] .gallery { background: #f4f7fc; }
html[data-theme="light"] .gallery-main { background: radial-gradient(circle at 50% 30%, #eef2f9, #e3e9f3); }
html[data-theme="light"] .thumbs::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.16); }
html[data-theme="light"] .thumb { background: #eef2f9; }
html[data-theme="light"] .spec-item { background: #f7f9fc; }
html[data-theme="light"] .rent-box { background: #f7f9fc; }
html[data-theme="light"] .seg { background: rgba(15, 23, 42, 0.05); }
html[data-theme="light"] .stepper button { background: #f2f5fa; }
html[data-theme="light"] .order-card { background: #f7f9fc; }
html[data-theme="light"] .copy-inline { color: #3b6fd4; }
html[data-theme="light"] .user-chip { background: #ffffff; }
html[data-theme="light"] .user-menu { background: #ffffff; }
html[data-theme="light"] .my-order { background: #f7f9fc; }
html[data-theme="light"] .auth-hint { color: #a06f10; }



/* 管理端·图片保存预览（长按存入相册） */
.img-preview {
  position: fixed; inset: 0; z-index: 9999;
  display: none; flex-direction: column;
  background: #04080f;
}
.img-preview.open { display: flex; }
.img-preview-top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top));
  color: #fff; font-size: 14px; font-weight: 600;
}
.img-preview-top span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.img-preview-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 0 14px; overflow: auto;
}
.img-preview-body img {
  flex: 0 1 auto; min-height: 0;
  max-width: 86%; max-height: min(52vh, calc(100% - 44px));
  object-fit: contain; border-radius: 10px;
  -webkit-touch-callout: default; user-select: auto;
}
.img-preview-name {
  flex: none; margin: 0; padding: 0 4px;
  color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center;
}
.thumb-sm { cursor: zoom-in; }
.img-preview-tip {
  flex: none;
  margin: 0; padding: 14px 16px; padding-bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center; color: #f2c96f; font-size: 12.5px; line-height: 1.7;
}
