:root {
  --ink: #101418;
  --ink-2: #1c232b;
  --muted: #6b7280;
  --line: #e6e8eb;
  --bg: #f7f7f5;
  --gold: #c9a15a;
  --gold-dark: #b08a44;
  --navy: #0d0f12;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 12px;
  --shadow: 0 14px 36px rgba(13, 15, 18, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Announcement + ticker ---------- */
.announce {
  background: var(--bg); color: var(--ink); text-align: center;
  font-size: 13px; letter-spacing: .3px; padding: 9px 16px;
}
.ticker {
  background: var(--navy); color: #fff; overflow: hidden; white-space: nowrap;
  padding: 10px 0; border-top: 1px solid #26292e;
}
.ticker-track { display: inline-flex; gap: 56px; animation: ticker 28s linear infinite; padding-left: 28px; }
.ticker-track span { font-size: 13px; font-weight: 700; letter-spacing: .6px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 30px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: 3px; color: var(--navy); }
.light-logo { color: #fff; }
.nav { display: flex; gap: 24px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .8px; }
.nav a:hover { color: var(--gold-dark); }
.nav .nav-admin { color: var(--gold-dark); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; }
.search-box input {
  width: 220px; padding: 9px 12px 9px 34px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; outline: none; font-size: 13px;
}
.search-box input:focus { border-color: var(--gold); }
.search-box::before { content: "⌕"; position: absolute; left: 12px; top: 6px; color: var(--muted); font-size: 17px; }
.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 38px; height: 38px; display: grid; place-items: center; position: relative; color: var(--ink);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px;
  display: none; place-items: center; padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,15,.82) 0%, rgba(10,12,15,.55) 45%, rgba(10,12,15,.25) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 1280px; width: 100%; margin: 0 auto; padding: 90px 24px 40px; }
.hero-tag {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: rgba(201,161,90,.18); border: 1px solid rgba(201,161,90,.5);
  color: #e8cf9d; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 20px 0 16px; line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
.hero p { font-size: 17px; color: #d6d9dd; max-width: 560px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 1; max-width: 1280px; width: 100%; margin: 0 auto; padding: 26px 24px 40px;
  display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats strong { display: block; font-size: 26px; letter-spacing: -.5px; }
.hero-stats span { font-size: 12px; color: #aeb3ba; letter-spacing: .8px; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; border-radius: 8px; padding: 12px 22px; font-size: 13px; font-weight: 700;
  letter-spacing: .5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: .18s;
}
.btn-primary { background: var(--gold); color: #161616; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #23272e; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }

/* ---------- Sections ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.light { background: #fff; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark .section-head p { color: #aeb3ba; }
.section.light-alt { background: var(--bg); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; gap: 16px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 10px; letter-spacing: -.6px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; max-width: 560px; }
.section-kicker { color: var(--gold-dark); font-size: 11px; font-weight: 800; letter-spacing: 2.4px; text-transform: uppercase; }
.section.dark .section-kicker { color: var(--gold); }

.filter-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: transparent; font-size: 13px; font-weight: 600; color: #d6d9dd; letter-spacing: .4px;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #161616; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.section.dark .product-card { background: #14171c; border-color: #262a30; }
.section.dark .product-name { color: #fff; }
.section.dark .product-price { color: #fff; }
.section.dark .product-price small { color: #8b929c; }
.section.dark .product-meta { color: #8b929c; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-thumb { height: 180px; position: relative; overflow: hidden; background: #e9ebce; background: #eceef1; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #b3b9c2; }
.product-thumb .badge {
  position: absolute; top: 12px; left: 12px; background: rgba(13,15,18,.85); color: #fff;
  font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 6px; letter-spacing: 1.2px; text-transform: uppercase;
}
.product-thumb .flag {
  position: absolute; top: 12px; right: 12px; background: rgba(201,161,90,.92); color: #161616;
  font-size: 10px; font-weight: 800; padding: 5px 10px; border-radius: 6px; letter-spacing: .8px; text-transform: uppercase;
}
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { color: var(--gold-dark); font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.section.dark .product-cat { color: var(--gold); }
.product-name { font-size: 15.5px; font-weight: 700; margin: 8px 0 10px; line-height: 1.4; min-height: 44px; }
.spec-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.spec {
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(201,161,90,.12); color: #8a6f3d; letter-spacing: .3px;
}
.section.dark .spec { background: rgba(201,161,90,.14); color: #e8cf9d; }
.product-meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.product-price { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: auto; }
.product-price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 2px; }
.product-actions { display: flex; gap: 8px; margin-top: 14px; }
.product-actions .btn { flex: 1; padding: 10px 12px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1fr; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.split-body h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 10px 0 14px; letter-spacing: -.5px; }
.split-body p { color: var(--muted); line-height: 1.8; font-size: 15px; }
.pull-quote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; margin: 22px 0;
  font-size: 17px; font-style: italic; color: var(--ink-2) !important;
}
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(201,161,90,.16); color: var(--gold-dark);
  display: grid; place-items: center; font-size: 11px; font-weight: 900;
}
.check-list strong { font-size: 14px; }
.check-list span { font-size: 12.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; position: relative;
}
.step-no { font-size: 13px; font-weight: 900; color: var(--gold-dark); letter-spacing: 2px; }
.step h4 { margin: 10px 0 8px; font-size: 15px; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }

/* ---------- Markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.market-card {
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius);
  padding: 22px; background: rgba(255,255,255,.03); transition: border-color .2s;
}
.market-card:hover { border-color: rgba(201,161,90,.6); }
.market-card h4 { margin: 0 0 8px; font-size: 15px; color: #fff; }
.market-card p { margin: 0; font-size: 12.5px; color: #aeb3ba; line-height: 1.7; }

/* ---------- Quote ---------- */
.quote-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.quote-intro h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 10px 0 12px; }
.quote-intro p { color: var(--muted); line-height: 1.8; }
.quote-contact { display: grid; gap: 12px; margin-top: 26px; }
.quote-contact div { display: flex; gap: 12px; align-items: baseline; }
.quote-contact strong { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-dark); min-width: 64px; }
.quote-contact span { font-size: 14px; color: var(--ink-2); }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding: 56px 24px 30px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 13px; margin: 0 0 14px; letter-spacing: 1.4px; text-transform: uppercase; }
.footer p, .footer a { font-size: 13px; line-height: 2; color: #9aa1ab; }
.footer a { display: inline-block; }
.footer a:hover { color: var(--gold); }
.footer-bottom { max-width: 1280px; margin: 36px auto 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12px; color: #6b7280; }

/* ---------- Modal / Drawer ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(13,15,18,.6); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal-card {
  background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 90vh; overflow: auto;
  padding: 30px; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.modal-card.wide { width: min(820px, 100%); }
.modal-close { position: absolute; right: 16px; top: 12px; border: 0; background: none; font-size: 26px; color: var(--muted); }
.modal-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.4px; }
.muted { color: var(--muted); font-size: 13px; }
.auth-card { width: min(400px, 100%); }
.field-label { display: block; font-size: 12px; font-weight: 700; margin: 16px 0 6px; letter-spacing: .3px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; outline: none; font-size: 14px; color: var(--ink);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); }
.textarea { min-height: 90px; resize: vertical; }
.field-error { color: var(--red); font-size: 12px; min-height: 16px; margin-top: 4px; }
.code-row { display: flex; gap: 8px; margin-top: 8px; }
.code-row .input { flex: 1; }
.auth-divider { text-align: center; color: var(--muted); font-size: 12px; margin: 18px 0 12px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--line); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.btn-wechat { background: #07c160; color: #fff; }
.ja-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 13px; z-index: 200; opacity: 0; pointer-events: none; transition: .25s;
}
.ja-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ja-toast.error { background: #b91c1c; }
.ja-toast.success { background: #15803d; }

.drawer-mask { position: fixed; inset: 0; background: rgba(13,15,18,.45); z-index: 90; display: none; }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(430px, 100%); background: #fff;
  z-index: 95; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { margin: 0; font-size: 17px; letter-spacing: .4px; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #eceef1; display: grid; place-items: center; flex: none; font-weight: 800; color: #b3b9c2; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.cart-item .price { color: var(--gold-dark); font-weight: 800; font-size: 14px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
.total-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.total-row strong { font-size: 22px; color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* detail modal */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail-grid img { border-radius: 10px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.spec-table { width: 100%; font-size: 13px; margin: 14px 0; }
.spec-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.spec-table td:first-child { color: var(--muted); width: 45%; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Admin ---------- */
.admin-layout { min-height: 100vh; display: flex; background: #f1f3f5; }
.sidebar { width: 236px; background: var(--navy); color: #cbd5e1; padding: 22px 16px; flex: none; display: flex; flex-direction: column; }
.sidebar .logo { color: #fff; padding: 0 8px 24px; display: block; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav button {
  border: 0; background: transparent; color: #94a3b8; text-align: left;
  padding: 11px 14px; border-radius: 9px; font-size: 14px; font-weight: 600;
}
.sidebar nav button:hover, .sidebar nav button.active { background: rgba(201,161,90,.14); color: #e8cf9d; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 12px; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { height: 66px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 16px; }
.admin-top h2 { font-size: 17px; margin: 0; }
.admin-content { padding: 28px; max-width: 1320px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-size: 12px; color: var(--muted); }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 8px; letter-spacing: -.5px; }
.stat-card .delta { font-size: 11px; color: var(--green); margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.gray { background: #f1f5f9; color: #475569; }
.badge.orange { background: #ffedd5; color: #9a3412; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.gold { background: rgba(201,161,90,.16); color: #8a6f3d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.bar-chart { display: flex; align-items: end; gap: 12px; height: 180px; padding: 10px 4px 0; }
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, var(--gold), #e2c893); border-radius: 6px 6px 0 0; min-height: 4px; position: relative; }
.bar-chart .bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(201,161,90,.14), transparent 45%), var(--navy); }
.admin-login .modal-card { box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.section.dark .empty { color: #8b929c; }

@media (max-width: 960px) {
  .split, .quote-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; width: 100%; overflow: auto; gap: 16px; }
  .search-box input { width: 150px; }
  .hero-stats { gap: 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { width: 72px; padding: 18px 8px; }
  .sidebar .logo span, .sidebar nav button span, .sidebar-foot { display: none; }
  .sidebar nav button { justify-content: center; padding: 12px 0; }
  .admin-content { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
}
