/* 拍摄星历 · 手写 CSS（零框架，亮/暗双色，移动优先） */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-muted: #f0f0ec;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --border: #e3e3de;
  --accent: #0a6cff;
  --on-accent: #ffffff;
  --gold: #b7791f;
  --blue: #2563eb;
  --danger: #c0392b;
  --warn-bg: #fff7e6;
  --radius: 14px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1f;
    --surface-muted: #2a2a2e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --border: #38383d;
    --accent: #4d9fff;
    --gold: #e0a63c;
    --blue: #6ea8fe;
    --danger: #ff6b5e;
    --warn-bg: #3a2f14;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand small { font-size: 12px; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  padding: 6px 12px; border-radius: 999px; color: var(--muted);
  text-decoration: none; white-space: nowrap; font-size: 15px;
}
.nav a.active { background: var(--surface-muted); color: var(--text); font-weight: 600; }
.lang-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
main { max-width: 1080px; margin: 0 auto; padding: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hidden { display: none !important; }
.center { text-align: center; color: var(--muted); }
.error { border-color: var(--danger); color: var(--danger); }
.warn { background: var(--warn-bg); }
h2 { margin: 0 0 10px; font-size: 19px; }
h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
h3 { margin: 8px 0; font-size: 16px; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; padding: 9px 16px; font-size: 15px; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: 0.5; cursor: default; }
input, select {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; padding: 9px 12px; font-size: 15px;
}
input[type="date"] { min-width: 150px; }
.loc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.loc-row input { width: 110px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.big-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
@media (max-width: 560px) { .big-times { grid-template-columns: 1fr; } }
.big-times .label { display: block; font-size: 13px; color: var(--muted); }
.big-times strong { font-size: 30px; font-weight: 700; display: block; }
.big-times .sub { font-size: 13px; color: var(--muted); }
.windows { margin-top: 14px; display: grid; gap: 6px; }
.win { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--surface-muted); }
.win.golden { border-left: 4px solid var(--gold); }
.win.blue { border-left: 4px solid var(--blue); }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
canvas { width: 100%; height: auto; display: block; border-radius: 10px; background: var(--surface-muted); }
.ar-box { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/10; }
.ar-box video, .ar-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.ar-overlay { position: absolute; inset: 0; pointer-events: none; }
.ar-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.slider-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.ar-limits ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.ar-limits li { margin: 4px 0; }
.plan-form, .row, .order-row, .redeem-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-form input { flex: 1; min-width: 200px; }
.quota { color: var(--muted); font-size: 14px; }
.plan-moment { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-moment b { min-width: 56px; }
.plan-moment:last-child { border-bottom: none; }
.tips li { margin: 4px 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.login-form { display: grid; gap: 10px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface-muted); }
.price-card h3 { margin-top: 0; }
.price-card .price { font-size: 30px; font-weight: 700; }
.price-card ul { padding-left: 18px; margin: 8px 0; font-size: 14px; }
.tut { border-bottom: 1px solid var(--border); padding: 12px 0; }
.tut:last-child { border-bottom: none; }
.tut h3 { margin: 0 0 4px; }
.tut .meta { color: var(--muted); font-size: 13px; }
.tut p { margin: 6px 0; font-size: 14px; }
.footer { max-width: 1080px; margin: 0 auto; padding: 8px 16px 32px; color: var(--muted); font-size: 12px; }
.spot-item, .order-item, .eclipse-item { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; flex-wrap: wrap; }
.spot-item:last-child, .order-item:last-child, .eclipse-item:last-child { border-bottom: none; }
