/* =========================================================
   LuminCity 炳城  —  Common Stylesheet
   Design language: 极简 / 留白 / 深墨蓝 + 暖金光
   ========================================================= */

:root {
  --ink: #0a1628;
  --ink-2: #12253d;
  --ink-3: #1c3352;
  --gold: #c8a45c;
  --gold-2: #e0c188;
  --gold-soft: #f7efe0;
  --cyan: #38bdf8;

  --text: #16233a;
  --text-2: #445572;
  --muted: #7488a5;
  --line: #e6ebf3;
  --line-soft: #f0f4fa;
  --white: #ffffff;
  --bg-soft: #f7f9fc;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, .05);
  --shadow: 0 10px 30px rgba(10, 22, 40, .07);
  --shadow-lg: 0 26px 60px rgba(10, 22, 40, .16);

  --maxw: 1200px;
  --nav-h: 74px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-en: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(100% - 32px, var(--maxw)); } }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(10, 22, 40, .05);
}
.site-header.on-dark {
  background: rgba(10, 22, 40, .55);
  border-bottom-color: rgba(255, 255, 255, .1);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-cn { font-size: 19px; font-weight: 700; letter-spacing: .16em; color: var(--ink); }
.brand-en {
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.on-dark .brand-cn { color: #fff; }
.on-dark .brand-en { color: rgba(255, 255, 255, .6); }

.nav-menu { display: flex; align-items: center; gap: 38px; }
.nav-link {
  position: relative; font-size: 15px; color: var(--text-2); font-weight: 500;
  padding: 6px 0; transition: color .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.on-dark .nav-link { color: rgba(255, 255, 255, .78); }
.on-dark .nav-link:hover, .on-dark .nav-link.active { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--ink); transition: .3s; }
.on-dark .nav-toggle span { background: #fff; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(10, 22, 40, .18); }
.btn-primary:hover { background: var(--ink-3); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10, 22, 40, .26); }
.btn-gold { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #2a1d05; font-weight: 600; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 164, 92, .38); }
.btn-outline { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------------- Typography helpers ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.eyebrow.on-light { color: var(--gold-2); }
.eyebrow.on-light::before { background: var(--gold-2); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.28; color: var(--ink); letter-spacing: -.01em; }
.h-display { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.02em; line-height: 1.16; }
.h-section { font-size: clamp(27px, 3.4vw, 42px); }
.h-card { font-size: 19px; }
.lead { font-size: 17px; color: var(--text-2); line-height: 1.85; }
.muted { color: var(--muted); }

.text-gold { color: var(--gold); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-section { margin: 18px 0 16px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--ink); color: #fff; overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 15% 40%, rgba(10, 22, 40, .82), rgba(10, 22, 40, .35) 55%, rgba(10, 22, 40, .9)),
    linear-gradient(180deg, rgba(10,22,40,.72) 0%, rgba(10,22,40,.35) 40%, rgba(10,22,40,.94) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 80px 0 100px; width: 100%; }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold), var(--gold-2) 40%, #fff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 26px; max-width: 620px; font-size: 18px; line-height: 1.85; color: rgba(255,255,255,.78); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tags { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-tags li {
  font-size: 14px; color: rgba(255,255,255,.68); display: flex; align-items: center; gap: 9px;
}
.hero-tags li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,.5); font-size: 12px; letter-spacing: .2em;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-en);
}
.scroll-hint i { display: block; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: drop 1.9s infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- Stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 40px 24px; border-right: 1px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat-num { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--ink); font-family: var(--font-en); letter-spacing: -.02em; }
.stat-num span { color: var(--gold); font-size: .62em; margin-left: 2px; }
.stat-label { margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------------- Feature / value grid ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 960px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-3.split-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3.split-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px; transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8e1ee; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: #8a6c22; margin-bottom: 22px;
}
.card p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; }
.card-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.card-link svg { transition: transform .25s; }
.card-link:hover svg { transform: translateX(4px); }

/* Icon set variants */
.card-icon.navy { background: #eef2f8; color: var(--ink-3); }
.card-icon.gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #fff; }

/* ---------------- Split section (image + text) ---------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); border-radius: var(--radius-lg); }
.badge-float {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
}
.badge-float b { display: block; font-size: 22px; color: var(--ink); line-height: 1.2; }
.badge-float span { font-size: 12.5px; color: var(--muted); }

.check-list { margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-2); }
.check-list svg { flex-shrink: 0; margin-top: 5px; color: var(--gold); }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 8px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; border: 2px solid var(--gold);
}
.tl-year { font-family: var(--font-en); font-size: 13px; letter-spacing: .18em; color: var(--gold); font-weight: 600; }
.tl-title { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.tl-desc { margin-top: 4px; font-size: 15px; color: var(--text-2); }

/* ---------------- Product cards ---------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
  height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14.5px; color: var(--text-2); transition: .25s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .products { grid-template-columns: 1fr; } }

.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, border-color .35s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8e1ee; }
.product-thumb { position: relative; aspect-ratio: 16/10; background: var(--ink); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .4s; }
.product:hover .product-thumb img { transform: scale(1.06); opacity: .95; }
.product-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.15), rgba(10,22,40,.72));
}
.product-code {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .18em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
}
.product-tag {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  font-size: 11.5px; padding: 5px 11px; border-radius: 999px; font-weight: 600;
  background: var(--gold); color: #2a1d05;
}
.product-tag.service { background: rgba(255,255,255,.9); color: var(--ink); }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 19px; }
.product-desc { margin-top: 10px; font-size: 14.8px; color: var(--text-2); flex: 1; }
.product-meta { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 24px; font-weight: 700; color: var(--ink); font-family: var(--font-en); letter-spacing: -.02em; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.price-origin { font-size: 13.5px; color: var(--muted); text-decoration: line-through; }
.product-actions { margin-top: 20px; display: flex; gap: 10px; }
.product-actions .btn { flex: 1; }

/* ---------------- Modal / Drawer ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(10, 22, 40, .55);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .32s;
}
.overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed; z-index: 130; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.97);
  width: min(100% - 32px, 720px); max-height: min(88svh, 860px);
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  display: flex; flex-direction: column;
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-head {
  padding: 22px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0;
}
.modal.wide { width: min(100% - 32px, 880px); }
.modal-head h3 { font-size: 19px; }
.modal-head .muted b { color: var(--ink); }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--line-soft);
  display: grid; place-items: center; color: var(--text-2); transition: .25s; flex-shrink: 0;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-body { padding: 26px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: flex-end; flex-shrink: 0; background: var(--bg-soft); }
@media (max-width: 560px) { .modal-foot { flex-direction: column-reverse; } .modal-foot .btn { width: 100%; } }

/* Product detail bits */
.pd-hero { position: relative; aspect-ratio: 16/7; background: var(--ink); overflow: hidden; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.pd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,.2), rgba(10,22,40,.85)); }
.pd-hero-text { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 22px; color: #fff; }
.pd-hero-text h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); }
.spec-list { display: grid; gap: 12px; margin-top: 8px; }
.spec-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text-2); }
.spec-list svg { flex-shrink: 0; margin-top: 5px; color: var(--gold); }
.pd-note {
  margin-top: 22px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid #efdfc0; font-size: 14.5px; color: #6b5320;
}
.pd-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Video card */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 720px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background: var(--ink); aspect-ratio: 16/9; border: 1px solid transparent; transition: .35s;
}
.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.video-card > img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform .6s; }
.video-card:hover > img { transform: scale(1.05); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,.1), rgba(10,22,40,.78)); }
.video-info { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.video-info b { display: block; font-size: 17px; }
.video-info span { font-size: 13px; color: rgba(255,255,255,.7); }
.play-btn {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  transition: .3s;
}
.video-card:hover .play-btn { background: var(--gold); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.video-lock {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  font-size: 11.5px; padding: 5px 11px; border-radius: 999px;
  background: rgba(10,22,40,.66); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
}

/* Video player modal */
.vm-media { position: relative; aspect-ratio: 16/9; background: #000; }
.vm-media video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.vm-fallback {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 32px; color: #fff; background: linear-gradient(135deg, #0a1628, #1c3352);
}
.vm-fallback.show { display: flex; }
.vm-fallback b { font-size: 18px; }
.vm-fallback p { font-size: 14px; color: rgba(255,255,255,.66); max-width: 420px; }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font-size: 15px; background: #fff; color: var(--text);
  transition: border-color .25s, box-shadow .25s;
}
.input::placeholder, .textarea::placeholder { color: #a9b6c9; }
.input:focus, .textarea:focus, .select:focus {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,22,40,.06);
}
.textarea { resize: vertical; min-height: 128px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--muted); margin-top: -6px; }

/* ---------------- Auth pages ---------------- */
.auth-page { min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } }
.auth-visual { position: relative; background: var(--ink); color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,.4), rgba(10,22,40,.92)); }
.auth-visual-inner { position: relative; z-index: 2; padding: 48px clamp(28px, 4vw, 64px); }
.auth-visual-inner h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin: 16px 0 14px; }
.auth-visual-inner p { color: rgba(255,255,255,.72); max-width: 42ch; }
.auth-points { margin-top: 30px; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 11px; align-items: center; font-size: 15px; color: rgba(255,255,255,.82); }
.auth-panel {
  display: flex; align-items: center; justify-content: center; padding: 96px 24px 64px;
}
.auth-box { width: min(100%, 420px); }
.auth-tabs { display: flex; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 999px; margin-bottom: 30px; }
.auth-tab { flex: 1; height: 40px; border-radius: 999px; font-size: 15px; color: var(--text-2); transition: .25s; }
.auth-tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.auth-switch { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth-switch button { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.demo-hint {
  margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft);
  border: 1px dashed var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.7;
}

/* ---------------- Account ---------------- */
.acct-head {
  background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #fff;
  padding: calc(var(--nav-h) + 56px) 0 56px; position: relative; overflow: hidden;
}
.acct-head::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,164,92,.28), transparent 70%);
}
.acct-user { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1d05;
  font-size: 24px; font-weight: 700; flex-shrink: 0;
}
.acct-user h1 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.acct-user p { color: rgba(255,255,255,.66); font-size: 14.5px; margin-top: 4px; }

.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; }
.tab {
  position: relative; padding: 14px 2px 16px; font-size: 15.5px; color: var(--muted); white-space: nowrap;
}
.tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); transition: width .3s; }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after { width: 100%; }
.tab-panel { display: none; animation: fadeUp .45s ease both; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.order {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px;
  transition: .3s; background: #fff;
}
.order:hover { box-shadow: var(--shadow); border-color: #d8e1ee; }
.order-main { flex: 1; min-width: 220px; }
.order-no { font-family: var(--font-en); font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }
.order-title { font-size: 17px; font-weight: 600; margin: 4px 0 6px; }
.order-sub { font-size: 14px; color: var(--text-2); }
.order-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.order-amount { font-family: var(--font-en); font-size: 21px; font-weight: 700; color: var(--ink); }
.status {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px; font-weight: 600;
  background: #e8f6ee; color: #1d7a45;
}
.status.pending { background: var(--gold-soft); color: #8a6c22; }
.status.failed { background: #fdecec; color: #b4342f; }

.empty { text-align: center; padding: 72px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); }
.empty b { display: block; font-size: 17px; color: var(--ink); }
.empty p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.info-list { display: grid; gap: 2px; }
.info-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--muted); }
@media (max-width: 560px) { .info-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-of-type { padding-top: 0; }
.contact-item .card-icon { margin-bottom: 0; width: 46px; height: 46px; border-radius: 12px; }
.contact-item b { display: block; font-size: 15px; color: var(--ink); }
.contact-item p { font-size: 15.5px; color: var(--text-2); margin-top: 3px; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.map-embed { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.map-embed svg { display: block; width: 100%; height: auto; }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(200,164,92,.22), transparent 70%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 16px auto 34px; max-width: 620px; color: rgba(255,255,255,.72); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 72px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-cn { color: #fff; font-size: 21px; }
.footer-brand .brand-en { color: rgba(255,255,255,.45); }
.footer-brand p { margin-top: 18px; font-size: 14.5px; line-height: 1.85; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: .04em; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; transition: color .25s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.42); }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; z-index: 200; top: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: max-content; max-width: calc(100% - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 14.5px; box-shadow: var(--shadow-lg);
  animation: toastIn .35s cubic-bezier(.4,0,.2,1) both;
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast.ok { background: #12734a; }
.toast.err { background: #a93a35; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }

/* ---------------- User menu ---------------- */
.user-menu { position: relative; }
.user-trigger {
  display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 8px 0 6px;
  border-radius: 999px; transition: .25s; color: var(--text);
}
.user-trigger:hover { background: var(--line-soft); }
.on-dark .user-trigger { color: #fff; }
.on-dark .user-trigger:hover { background: rgba(255,255,255,.14); }
.user-trigger .avatar-mini {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1d05;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.user-trigger span { font-size: 14.5px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 216px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
}
.user-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown-head { padding: 12px 12px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.dropdown-head b { display: block; font-size: 15px; color: var(--ink); }
.dropdown-head span { font-size: 13px; color: var(--muted); word-break: break-all; }
.dropdown button.item, .dropdown a.item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; font-size: 14.5px; color: var(--text-2); transition: .2s;
}
.dropdown .item:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown .item.danger:hover { background: #fdecec; color: #b4342f; }

/* ---------------- Mobile menu ---------------- */
.mobile-menu {
  position: fixed; z-index: 110; inset: var(--nav-h) 0 0 0; background: #fff;
  padding: 28px 24px 40px; transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: .3s; overflow-y: auto; display: none;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a { display: block; padding: 16px 0; font-size: 19px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-menu .mm-actions { margin-top: 26px; display: grid; gap: 12px; }
@media (max-width: 900px) {
  .nav-menu, .nav-actions .desk-only { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 76px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 12% 20%, rgba(200,164,92,.2), transparent 65%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-top: 16px; }
.page-hero p { margin-top: 14px; max-width: 60ch; color: rgba(255,255,255,.7); font-size: 17px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.crumb a:hover { color: var(--gold-2); }

/* ---------------- Misc ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

.divider { height: 1px; background: var(--line); }

.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
.logo-cell {
  height: 78px; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; font-family: var(--font-en); font-size: 14px;
  letter-spacing: .18em; color: var(--muted); background: #fff; transition: .3s;
}
.logo-cell:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------- Language Switcher ---------------- */
.lang-menu { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: inherit; font-size: 13.5px; line-height: 1; transition: .25s;
}
.lang-trigger:hover { border-color: var(--gold); color: var(--gold); }
.on-dark .lang-trigger { color: #fff; border-color: rgba(255,255,255,.28); }
.on-dark .lang-trigger:hover { background: rgba(255,255,255,.14); border-color: var(--gold-2); color: var(--gold-2); }

.lang-drop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;
  min-width: 168px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s ease;
}
.lang-menu.open .lang-drop { opacity: 1; visibility: visible; transform: none; }
.lang-drop button {
  display: flex; width: 100%; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; text-align: left;
  font-size: 13.5px; color: var(--text); background: none; transition: .2s;
}
.lang-drop button:hover { background: var(--bg-soft); color: var(--ink); }
.lang-drop button[aria-current="true"] { color: var(--gold); font-weight: 600; }
.lang-drop button[aria-current="true"]:hover { background: var(--gold-soft); }
.lang-drop .lg-short {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px;
  display: grid; place-items: center; background: var(--bg-soft);
  font-size: 11.5px; color: var(--text-2); letter-spacing: 0;
}
.lang-drop button[aria-current="true"] .lg-short { background: var(--gold-soft); color: var(--gold); }

.mm-lang { border-top: 1px solid var(--line-soft); margin-top: 18px; padding-top: 16px; }
.mm-lang-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-bottom: 10px; }
.mm-lang-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mm-lang-row button {
  height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 13px; transition: .25s;
}
.mm-lang-row button[aria-current="true"] { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); font-weight: 600; }

/* ---------------- 表单：分段切换 / 验证码行 / 提示 ---------------- */
.seg { display: flex; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.seg-btn { flex: 1; height: 36px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: .22s; }
.seg-btn.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

.field-inline { display: flex; gap: 10px; align-items: stretch; }
.field-inline .input { flex: 1; min-width: 0; }
.btn-code { height: 46px; padding: 0 18px; white-space: nowrap; font-size: 14px; flex-shrink: 0; }

.form-hint { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.form-hint.err { color: #c0392b; }
.form-hint.ok { color: #1f8a5f; }
.form-hint:empty { display: none; }

.auth-note {
  margin: 0 0 22px; padding: 12px 14px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid rgba(200, 164, 92, .38);
  font-size: 13.5px; color: #7a5c18; line-height: 1.65;
}

.auth-links {
  margin-top: 20px; display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted);
}
.auth-links button { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-links .dot { color: #c3cddd; }

/* ---------------- 后台管理 ---------------- */
.admin-page { background: var(--bg-soft); }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.admin-side { padding: 30px 16px 60px; border-right: 1px solid var(--line); }
.admin-side h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 12px; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 12px; border-radius: 11px; font-size: 14.5px;
  color: var(--text-2); text-align: left; transition: .2s;
}
.admin-nav button:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.admin-nav button.active { background: var(--ink); color: #fff; font-weight: 600; }
.admin-nav .n-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--gold); color: #2a1d05;
  font-size: 11.5px; font-weight: 700; display: grid; place-items: center;
}
.admin-nav button.active .n-badge { background: var(--gold-2); }
.admin-main { padding: 30px clamp(18px, 3vw, 42px) 90px; min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.admin-head p { margin: 9px 0 0; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-sm); }
.admin-card + .admin-card { margin-top: 22px; }
.admin-card h3 { font-size: 17px; margin: 0 0 6px; }
.admin-card > .card-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: fadeUp .4s ease both; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.admin-grid .full { grid-column: 1 / -1; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-card b { display: block; font-size: 26px; color: var(--ink); line-height: 1.2; margin-bottom: 4px; }
.stat-card span { font-size: 13px; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 0 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 600;
}
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .t-strong { font-weight: 600; color: var(--ink); }
.data-table .t-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.table-empty { padding: 48px 12px; text-align: center; color: var(--muted); font-size: 14.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-on { background: #e8f6ef; color: #1f8a5f; }
.badge-off { background: #f1f3f7; color: var(--muted); }
.badge-new { background: var(--gold-soft); color: #8a6a1f; }
.badge-done { background: #eef2f8; color: var(--text-2); }

.row-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.link-btn { font-size: 13.5px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.link-btn:hover { color: var(--ink); }
.link-btn.danger { color: #c0392b; }

.gate { max-width: 540px; margin: clamp(56px, 12vh, 130px) auto; text-align: center; }
.gate .gate-icon { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 22px; background: var(--ink); color: var(--gold); }
.gate h2 { font-size: clamp(21px, 2.6vw, 27px); margin: 0 0 12px; }
.gate p { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.gate .gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 13px; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 16px; }
  .admin-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .admin-nav button { white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}
