/* ============================================================
   星晨公路赛车队 STAR ROAD RACING - starroad.racing
   赛车运动视觉体系：深空黑 × 赛道红 × 速度线
   ============================================================ */
:root {
  --bg: #0b0b10;
  --bg-2: #111118;
  --panel: #16161f;
  --panel-2: #1d1d28;
  --line: #2a2a38;
  --red: #e10600;
  --red-2: #ff2b1f;
  --gold: #ffb400;
  --text: #f2f2f6;
  --muted: #9a9aa8;
  --green: #00c853;
  --radius: 12px;
  --font-head: 'Oswald', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Rajdhani', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

h1, h2, h3, .head { font-family: var(--font-head); letter-spacing: .04em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 22px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.logo .flag {
  width: 30px; height: 30px; border-radius: 6px; flex: none;
  background:
    linear-gradient(135deg, var(--red) 0 50%, transparent 50%),
    conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0);
  background-size: 100% 100%, 12px 12px;
  border: 1px solid #000;
}
.logo small { color: var(--red-2); font-size: 12px; letter-spacing: .18em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: .06em; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.cta {
  color: #fff; background: var(--red); padding: 8px 18px; border-radius: 999px;
  font-size: 14px; transition: background .2s, transform .2s;
}
.nav-links a.cta:hover { background: var(--red-2); transform: translateY(-1px); }
.lang-switch { display: inline-flex; gap: 4px; margin-left: 8px; align-items: center; }
.lang-switch button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; transition: all .2s;
}
.lang-switch button:hover, .lang-switch button.on { color: var(--text); border-color: var(--red); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 18px; }

/* ---------- 轮播 ---------- */
.hero { position: relative; height: min(88vh, 720px); min-height: 480px; overflow: hidden; margin-top: 64px; }
.slides { height: 100%; position: relative; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transform: translateX(46px) scale(1.02);
  transition: opacity .85s ease, transform .85s ease;
  display: flex; align-items: center; pointer-events: none;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,6,10,.88) 20%, rgba(6,6,10,.35) 60%, rgba(6,6,10,.15));
}
/* 内置三种速度场景（未上传图片时使用） */
.slide.scene-1 { background: radial-gradient(1200px 600px at 78% 30%, rgba(225,6,0,.45), transparent 60%), linear-gradient(160deg, #15151f 0%, #0b0b10 70%); }
.slide.scene-2 { background: radial-gradient(1000px 500px at 20% 80%, rgba(47,123,255,.35), transparent 60%), linear-gradient(200deg, #131320 0%, #0b0b10 70%); }
.slide.scene-3 { background: radial-gradient(1000px 500px at 80% 80%, rgba(255,180,0,.30), transparent 60%), linear-gradient(180deg, #17131a 0%, #0b0b10 70%); }
/* 上传真实图片时：Ken Burns 缓慢缩放+平移 */
.slide.has-image {
  background-size: 110% auto; background-position: 50% 50%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { background-size: 105% auto; background-position: 46% 46%; }
  100% { background-size: 114% auto; background-position: 54% 54%; }
}
.slide .speedlines {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.05) 60px 62px);
  background-size: 200% 100%;
  animation: flow 1.6s linear infinite;
}
@keyframes flow { from { background-position: 0 0; } to { background-position: 200% 0; } }
.slide .slide-car {
  position: absolute; right: 4%; bottom: 8%; width: min(46vw, 560px);
  opacity: .9; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
  animation: drive 16s ease-in-out infinite alternate;
}
@keyframes drive {
  0%   { transform: translateX(6vw) translateY(0) rotate(0deg); }
  55%  { transform: translateX(-3vw) translateY(-14px) rotate(-1.2deg); }
  100% { transform: translateX(-6vw) translateY(0) rotate(0deg); }
}
/* 文案分层入场动画 */
.slide .slide-kicker, .slide h1, .slide p, .slide .btn-row { opacity: 0; }
.slide.active .slide-kicker { animation: rise .55s .1s both; }
.slide.active h1        { animation: rise .7s  .28s both; }
.slide.active p         { animation: rise .7s  .46s both; }
.slide.active .btn-row  { animation: rise .7s  .62s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.slide-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 22px; width: 100%; }
.slide-kicker { color: var(--red-2); font-weight: 700; letter-spacing: .3em; font-size: 14px; text-transform: uppercase; }
.slide h1 { font-size: clamp(38px, 6.5vw, 78px); font-weight: 700; line-height: 1.08; margin: 10px 0 14px; text-transform: uppercase; }
.slide p { color: #d6d6e0; font-size: clamp(16px, 2vw, 21px); font-weight: 600; letter-spacing: .05em; }
.slide .btn-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; border: none; border-radius: 8px; font-weight: 700;
  padding: 13px 30px; font-size: 16px; letter-spacing: .08em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(225,6,0,.35); }
.btn-red:hover { background: var(--red-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #4a4a5c; }
.btn-ghost:hover { border-color: var(--red); color: var(--red-2); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(20,20,28,.7); border: 1px solid var(--line); color: var(--text);
  font-size: 20px; transition: background .2s;
}
.hero-arrow:hover { background: var(--red); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button { width: 34px; height: 4px; border: none; border-radius: 2px; background: #3d3d4c; transition: background .3s; }
.hero-dots button.active { background: var(--red); }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head .kicker { color: var(--red-2); font-weight: 700; letter-spacing: .28em; font-size: 13px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; }
.sec-head .sub { color: var(--muted); }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; position: relative; z-index: 6; }
.stat {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat b { display: block; font-family: var(--font-head); font-size: 34px; color: var(--red-2); }
.stat span { color: var(--muted); font-size: 14px; letter-spacing: .1em; }

/* ---------- 日历 ---------- */
.cal-shell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.cal-bar h3 { font-size: 22px; letter-spacing: .06em; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 16px; transition: all .2s; }
.cal-nav button:hover { border-color: var(--red); color: var(--red-2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-grid .wd { padding: 10px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .15em; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.cal-day {
  min-height: 96px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; transition: background .2s;
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day .num { font-family: var(--font-head); font-size: 17px; color: var(--muted); }
.cal-day.other { background: rgba(255,255,255,.015); }
.cal-day.other .num { color: #3f3f4d; }
.cal-day.past .num { color: #4a4a58; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--red); }
.cal-day.today .num { color: var(--red-2); }
.cal-day.open { cursor: pointer; }
.cal-day.open:hover { background: rgba(225,6,0,.12); }
.cal-day.open .num { color: var(--text); }
.open-badge {
  display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700;
  background: var(--red); color: #fff; border-radius: 4px; padding: 2px 8px; letter-spacing: .1em;
}
.open-info { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.cal-legend { display: flex; gap: 22px; padding: 14px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- 视频 ---------- */
.video-shell {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  aspect-ratio: 16 / 9;
}
.video-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(800px 380px at 50% 40%, rgba(225,6,0,.28), transparent 65%),
    repeating-linear-gradient(115deg, transparent 0 60px, rgba(255,255,255,.04) 60px 62px),
    linear-gradient(160deg, #15151f, #0b0b10);
}
.video-placeholder .play {
  width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  color: var(--red-2); font-size: 30px; padding-left: 6px;
  box-shadow: 0 0 40px rgba(225,6,0,.4);
}
.video-placeholder p { color: var(--muted); letter-spacing: .12em; }

/* ---------- 商品 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 16px 36px rgba(0,0,0,.45); }
.prod-img { aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--panel-2), #101018); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .ph { font-family: var(--font-head); font-size: 54px; color: rgba(225,6,0,.5); font-weight: 700; }
.prod-tag {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: .12em;
}
.prod-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-body h3 { font-size: 19px; }
.prod-body .desc { color: var(--muted); font-size: 14px; flex: 1; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { color: var(--gold); font-family: var(--font-head); font-size: 22px; }
.price small { font-size: 13px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { background: #08080c; border-top: 1px solid var(--line); padding: 54px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 15px; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; text-transform: uppercase; }
.footer p, .footer a { color: #c6c6d2; font-size: 15px; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--red-2); }
.foot-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: #66666f; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   预约页
   ============================================================ */
.page-head { padding: 120px 0 44px; background: radial-gradient(900px 400px at 70% 0%, rgba(225,6,0,.25), transparent 60%), var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 5vw, 50px); text-transform: uppercase; }
.page-head .kicker { color: var(--red-2); letter-spacing: .28em; font-weight: 700; font-size: 13px; }

.steps { display: flex; gap: 10px; margin: 34px 0; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 160px; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); color: var(--muted); font-weight: 700;
}
.step b { font-family: var(--font-head); margin-right: 8px; }
.step.on { border-color: var(--red); color: var(--text); background: rgba(225,6,0,.1); }
.step.on b { color: var(--red-2); }

.car-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.car-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .22s; position: relative;
}
.car-card:hover { border-color: #55556a; transform: translateY(-3px); }
.car-card.sel { border-color: var(--red); background: rgba(225,6,0,.07); box-shadow: 0 10px 30px rgba(225,6,0,.18); }
.car-card .car-svg { margin-bottom: 12px; }
.car-card .car-paint { margin-bottom: 12px; }
.car-card .car-paint img {
  width: 100%; max-height: 190px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.car-card h3 { font-size: 21px; }
.car-card .code { color: var(--red-2); font-family: var(--font-head); letter-spacing: .14em; font-size: 14px; }
.car-card .specs { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin: 8px 0; flex-wrap: wrap; }
.car-card .desc { color: var(--muted); font-size: 14px; }
.car-card .car-price { position: absolute; top: 18px; right: 20px; text-align: right; }
.sess-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sess-card {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; cursor: pointer; transition: all .22s;
}
.sess-card:hover { border-color: #55556a; }
.sess-card.sel { border-color: var(--red); background: rgba(225,6,0,.07); }
.sess-card h3 { font-size: 20px; }
.sess-card p { color: var(--muted); }
.sess-card .seats { margin-top: 8px; font-weight: 700; letter-spacing: .08em; }
.sess-card .seats.low { color: var(--gold); }
.sess-card .seats.full-t { color: var(--red-2); }
.sess-card .seats-booked { margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sess-card.full { opacity: .45; border-style: dashed; cursor: not-allowed; }
.sess-card.full:hover { border-color: var(--line); transform: none; }

.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; letter-spacing: .08em; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--red); }
.form-row.has-err input, .form-row.has-err textarea { border-color: var(--red-2); }
.form-row .err { color: var(--red-2); font-size: 13px; margin-top: 5px; font-weight: 600; }
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.summary-line b { color: var(--text); }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0 4px; font-size: 20px; }
.summary-total b { color: var(--gold); font-family: var(--font-head); }

.success-box { text-align: center; padding: 70px 20px; }
.success-box .ok {
  width: 90px; height: 90px; margin: 0 auto 22px; border-radius: 50%;
  border: 3px solid var(--green); color: var(--green); font-size: 42px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(0,200,83,.3);
}
.success-box h2 { font-size: 32px; margin-bottom: 10px; }
.success-box p { color: var(--muted); }
.success-box .bid { color: var(--gold); font-family: var(--font-head); font-size: 22px; letter-spacing: .1em; }

.notice { background: rgba(255,180,0,.1); border: 1px solid rgba(255,180,0,.4); color: var(--gold); border-radius: 10px; padding: 16px 20px; }

/* ============================================================
   后台管理
   ============================================================ */
.admin-body { background: var(--bg-2); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(800px 400px at 50% 0%, rgba(225,6,0,.18), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.login-card h1 { font-size: 24px; margin: 14px 0 4px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.login-err { color: var(--red-2); font-size: 14px; min-height: 20px; margin-bottom: 8px; }

.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: #0d0d13; border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { margin-bottom: 26px; padding: 0 8px; }
.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 600;
  padding: 11px 14px; border-radius: 8px; margin-bottom: 4px; transition: all .2s;
}
.side-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.side-link.on { color: #fff; background: var(--red); }
.side-link .dot { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: .6; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 26px; text-transform: uppercase; }
.admin-topbar .acts { display: flex; gap: 10px; flex-wrap: wrap; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.a-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.a-table th { text-align: left; color: var(--muted); font-size: 13px; letter-spacing: .1em; padding: 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.a-table td { padding: 12px; border-bottom: 1px solid rgba(42,42,56,.6); vertical-align: middle; }
.a-table tr:hover td { background: rgba(255,255,255,.02); }
.a-table .thumb { width: 90px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: .08em; }
.tag.green { background: rgba(0,200,83,.15); color: var(--green); border: 1px solid rgba(0,200,83,.4); }
.tag.gray { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.tag.red { background: rgba(225,6,0,.15); color: var(--red-2); border: 1px solid rgba(225,6,0,.4); }
.tag.gold { background: rgba(255,180,0,.12); color: var(--gold); border: 1px solid rgba(255,180,0,.4); }

.mini-btn { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; transition: all .2s; margin-right: 6px; }
.mini-btn:hover { border-color: var(--red); color: var(--red-2); }
.mini-btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.mini-btn.solid { background: var(--red); border-color: var(--red); color: #fff; }
.mini-btn.solid:hover { background: var(--red-2); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; user-select: none; }
.check-chip input { accent-color: var(--red); }
.check-chip:hover { border-color: var(--red); }

.admin-cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.admin-cal .wd { padding: 8px; text-align: center; color: var(--muted); font-size: 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.admin-cal .d { min-height: 64px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; position: relative; }
.admin-cal .d:hover { background: rgba(255,255,255,.04); }
.admin-cal .d.open { background: rgba(225,6,0,.1); }
.admin-cal .d.sel { box-shadow: inset 0 0 0 2px var(--red); }
.admin-cal .d .n { font-family: var(--font-head); font-size: 15px; }
.admin-cal .d.open .n { color: var(--red-2); }
.admin-cal .d .m { font-size: 11px; color: var(--muted); }
.admin-cal .d.dim .n { color: #45454f; }

.upload-box {
  border: 2px dashed var(--line); border-radius: 10px; padding: 26px; text-align: center;
  color: var(--muted); cursor: pointer; transition: all .2s; background: var(--bg);
}
.upload-box:hover { border-color: var(--red); color: var(--text); }
.upload-box input { display: none; }

/* 上传进度条 + spinner */
.upload-progress { margin-top: 10px; display: none; }
.upload-progress.on { display: block; }
.upload-progress .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.upload-progress .bar .fill { height: 100%; background: var(--red); width: 0%; transition: width .4s ease; border-radius: 3px; }
.upload-progress .label { font-size: 12px; color: var(--muted); margin-top: 5px; }
.lds-ring { display: inline-block; position: relative; width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }
.lds-ring div { box-sizing: border-box; display: block; position: absolute; width: 18px; height: 18px; margin: 3px; border: 3px solid var(--red); border-radius: 50%; animation: lds-ring 1.2s cubic-bezier(0.5,0,0.5,1) infinite; border-color: var(--red) transparent transparent transparent; }
.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }
@keyframes lds-ring { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-cards .stat b { font-size: 30px; }

.empty { color: var(--muted); text-align: center; padding: 34px 10px; border: 1px dashed var(--line); border-radius: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--red); color: var(--text);
  padding: 12px 24px; border-radius: 10px; font-weight: 600; z-index: 999;
  opacity: 0; pointer-events: none; transition: all .3s; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 商品图片放大（Lightbox） ---------- */
.prod-img img { cursor: zoom-in; transition: transform .3s; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 4, 8, .9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 30px; opacity: 0; transition: opacity .25s;
  cursor: zoom-out;
}
.lightbox.show { opacity: 1; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65); cursor: default;
  animation: lb-in .3s ease both;
}
@keyframes lb-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lb-close {
  position: absolute; top: 22px; right: 26px; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1); color: #fff; font-size: 24px; line-height: 1;
  transition: background .2s;
}
.lb-close:hover { background: var(--red); }

/* ---------- 后台内联二次确认 ---------- */
.mini-btn.arm, .btn.arm {
  background: var(--red) !important; border-color: var(--red) !important; color: #fff !important;
  animation: arm-pulse .5s ease;
}
@keyframes arm-pulse { 50% { transform: scale(1.06); } }

/* ---------- 首页预约弹层（全屏独立页面） ---------- */
.booking-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.booking-overlay-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1000px; margin: 0 auto; padding: 16px 22px;
  background: rgba(6, 6, 10, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.booking-overlay-head h2 { font-size: 20px; letter-spacing: .04em; }
.booking-close {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-size: 22px; line-height: 1; transition: all .2s;
}
.booking-close:hover { background: var(--red); border-color: var(--red); }
.booking-overlay-body { max-width: 1000px; margin: 0 auto; padding: 26px 22px 70px; }

/* ---------- 查询预约 ---------- */
.query-box { max-width: 560px; margin: 30px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.query-result { border-top: 1px solid var(--line); padding-top: 14px; }
.query-result h3 { font-size: 22px; color: var(--gold); margin-bottom: 12px; letter-spacing: .08em; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .car-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .stats-2col { grid-template-columns: 1fr !important; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,11,16,.97); border-bottom: 1px solid var(--line); padding: 10px 22px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.cta { text-align: center; margin-top: 12px; border-bottom: none; }
  .nav-toggle { display: block; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; }
  .admin-side .logo { width: 100%; margin-bottom: 10px; }
  .side-link { width: auto; margin-bottom: 0; }
  .admin-main { padding: 20px 16px 50px; }
}
@media (max-width: 640px) {
  .prod-grid { grid-template-columns: 1fr; }
  .sess-grid { grid-template-columns: 1fr; }
  .cal-day { min-height: 70px; padding: 6px; }
  .open-info { display: none; }
  .slide .slide-car { width: 80vw; opacity: .35; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .a-table { font-size: 13px; }
  .a-table .thumb { width: 60px; height: 38px; }
}
