/* AUREUM — 全球黄金交易所落地页
   视觉：曜石底 + 香槟金，避开紫渐变 / 奶油衬线套件 / 报纸排版 */
:root {
  --void: #070605;
  --ink: #0e0c0a;
  --panel: #14110e;
  --panel-2: #1b1713;
  --line: rgba(212, 168, 83, 0.14);
  --line-strong: rgba(212, 168, 83, 0.32);
  --gold: #d4a853;
  --gold-bright: #f0d78c;
  --gold-deep: #8a6a2e;
  --cream: #f3ebe0;
  --mute: #9a9084;
  --up: #3dba7a;
  --down: #e05a45;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Sora", system-ui, sans-serif;
  --shell: min(1180px, calc(100% - 2rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.rtl { direction: rtl; }
img, svg { display: block; max-width: 100%; }
button, select, input, a { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.shell { width: var(--shell); margin-inline: auto; }

/* —— Locale banner —— */
.locale-banner {
  background: linear-gradient(90deg, #1a140c, #2a2114);
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}
.locale-banner[hidden] { display: none; }
.locale-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0;
}
.locale-banner__close { opacity: 0.6; font-size: 1.25rem; line-height: 1; }
.locale-banner__close:hover { opacity: 1; }

/* —— Nav —— */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 6, 5, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 1.25rem;
  height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  flex-shrink: 0;
}
.brand__mark { width: 1.85rem; height: 1.85rem; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--gold-bright);
}
.nav__links {
  display: none; gap: 1.35rem; margin-left: 1.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.nav__links a { color: var(--mute); transition: color 0.25s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__actions {
  display: none; align-items: center; gap: 0.75rem; margin-left: auto;
}
.lang-wrap { position: relative; }
.lang-select {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23d4a853'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  color: var(--cream);
  padding: 0.45rem 1.75rem 0.45rem 0.7rem;
  font-size: 0.78rem;
  max-width: 11rem;
  border-radius: 2px;
}
.lang-select:focus { outline: 1px solid var(--gold); }
.nav__menu {
  margin-left: auto;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-content: center; gap: 5px;
}
.nav__menu span {
  display: block; width: 1.15rem; height: 1.5px; background: var(--cream);
  transition: transform 0.3s var(--ease);
}
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav {
  display: grid; gap: 0.25rem; padding: 0.75rem 0 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a, .mobile-nav .btn {
  padding: 0.85rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__menu { display: none; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 2px; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 45%, var(--gold-deep));
  color: var(--void);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.7rem; }
.btn--block { width: 100%; }

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid; align-items: end;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,5,0.35) 0%, rgba(7,6,5,0.55) 40%, rgba(7,6,5,0.92) 100%),
    url("https://images.unsplash.com/photo-1762463176312-1757d5125c85?auto=format&fit=crop&w=2000&q=78") center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 0 4.5rem;
  max-width: 40rem;
}
.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 0.85rem;
}
.hero__lead {
  color: var(--mute);
  font-size: 1rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* —— Reveal —— */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* —— Live ticker —— */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}
.ticker__track {
  display: flex; gap: 2.5rem; width: max-content;
  padding: 0.85rem 0;
  animation: ticker 40s linear infinite;
  font-size: 0.78rem; font-variant-numeric: tabular-nums;
}
.ticker__item { display: flex; gap: 0.55rem; white-space: nowrap; color: var(--mute); }
.ticker__item strong { color: var(--cream); font-weight: 500; }
.ticker__item .up { color: var(--up); }
.ticker__item .down { color: var(--down); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}
.section--tight { padding: 3.5rem 0; }
.section__head {
  display: grid; gap: 0.65rem;
  margin-bottom: 2.25rem;
  max-width: 36rem;
}
.eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 400; line-height: 1.15;
}
.section__lead { color: var(--mute); font-size: 0.98rem; }

/* —— Spot board —— */
.spot-board {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .spot-board { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
}
.spot-main {
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(212,168,83,0.16), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
}
.spot-main__label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}
.spot-main__price {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
}
.spot-main__meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1rem; color: var(--mute); font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.spot-main__change.up { color: var(--up); }
.spot-main__change.down { color: var(--down); }
.spot-units {
  display: grid; gap: 0.65rem;
}
.spot-unit {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.spot-unit span { color: var(--mute); font-size: 0.8rem; }
.spot-unit strong { font-size: 1.05rem; font-weight: 500; }

/* —— Country prices —— */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.chip {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  font-size: 0.75rem;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover, .chip.is-active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212,168,83,0.08);
}
.price-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  min-width: 640px;
}
.price-table th, .price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute); font-weight: 500; background: var(--panel-2);
  position: sticky; top: 0;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(212,168,83,0.04); }
.flag { margin-inline-end: 0.4rem; }
.change.up { color: var(--up); }
.change.down { color: var(--down); }

/* —— Chart —— */
.chart-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.25rem;
}
.chart-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.chart-ranges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chart-canvas-wrap {
  position: relative;
  height: min(420px, 58vw);
  background:
    linear-gradient(180deg, rgba(212,168,83,0.04), transparent 40%),
    var(--ink);
}
#priceChart, #marketChart {
  width: 100%; height: 100%; display: block;
}
.chart-hint {
  margin-top: 0.75rem;
  color: var(--mute);
  font-size: 0.78rem;
}

/* —— Buy grid —— */
.buy-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .buy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .buy-grid { grid-template-columns: repeat(3, 1fr); }
}
.product {
  display: grid; gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
.product__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--panel);
}
.product__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.product:hover .product__media img { transform: scale(1.04); }
.product__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.product__meta { color: var(--mute); font-size: 0.82rem; }
.product__price {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  color: var(--gold-bright);
}
.product__premium { color: var(--mute); font-size: 0.78rem; }
.product__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* —— Valuation —— */
.valuate {
  display: grid; gap: 1.5rem;
}
@media (min-width: 860px) {
  .valuate { grid-template-columns: 1fr 1fr; align-items: start; }
}
.form {
  display: grid; gap: 1rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
}
.field input, .field select {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 0.75rem 0.85rem;
  border-radius: 2px;
}
.field input:focus, .field select:focus { outline: 1px solid var(--gold); }
.valuate-result {
  padding: 1.75rem 1.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,168,83,0.18), transparent 50%),
    var(--panel);
  border: 1px solid var(--line);
  min-height: 14rem;
}
.valuate-result__label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}
.valuate-result__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.valuate-result__note { margin-top: 1rem; color: var(--mute); font-size: 0.85rem; }

/* —— Retention dock —— */
.stay-dock {
  position: fixed; z-index: 60;
  inset-inline: 1rem; bottom: 1rem;
  max-width: 420px;
  margin-inline: auto;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 2rem);
  background: rgba(14, 12, 10, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.stay-dock.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.stay-dock__top {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.stay-dock__title {
  font-size: 0.82rem; font-weight: 600; color: var(--gold-bright);
}
.stay-dock__close { opacity: 0.5; font-size: 1.1rem; }
.stay-dock__close:hover { opacity: 1; }
.stay-bar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
  margin-bottom: 0.65rem;
}
.stay-bar__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.35s linear;
}
.stay-dock__text { font-size: 0.78rem; color: var(--mute); }
.stay-dock__code {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(212,168,83,0.1);
  border: 1px dashed var(--gold);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  display: none;
}
.stay-dock.is-unlocked .stay-dock__code { display: block; }

/* —— Price alert —— */
.alert-form {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-top: 1.25rem;
}
.alert-form input {
  flex: 1 1 180px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
}

/* —— Simulator —— */
.sim-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .sim-grid { grid-template-columns: repeat(3, 1fr); }
}
.sim-stat {
  padding: 1.35rem 1.15rem;
  border-top: 2px solid var(--gold);
  background: var(--panel);
}
.sim-stat__label { color: var(--mute); font-size: 0.78rem; margin-bottom: 0.45rem; }
.sim-stat__value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
}
.sim-stat__value.up { color: var(--up); }
.sim-stat__value.down { color: var(--down); }

/* —— Fact strip —— */
.facts {
  display: grid; gap: 1rem;
}
.fact {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.35rem;
}
.fact__q {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.fact__a { color: var(--mute); font-size: 0.92rem; max-width: 40rem; }

/* —— Page hero compact —— */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,168,83,0.12), transparent 50%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 0.65rem;
}
.page-hero p { color: var(--mute); max-width: 36rem; }

/* —— Footer —— */
.footer {
  padding: 3rem 0 5rem;
  color: var(--mute);
  font-size: 0.82rem;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer__grid {
  display: grid; gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer a:hover { color: var(--gold-bright); }
.footer__links { display: grid; gap: 0.45rem; }
.footer__copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* —— Coupon modal —— */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.72);
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal__panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 1.75rem 1.5rem;
  text-align: center;
  animation: modalIn 0.45s var(--ease);
}
.modal__panel h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}
.modal__panel p { color: var(--mute); font-size: 0.9rem; margin-bottom: 1rem; }
.modal__code {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  padding: 0.85rem;
  border: 1px dashed var(--gold);
  color: var(--gold-bright);
  margin-bottom: 1.15rem;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* —— Misc —— */
.pulse-dot {
  display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--up); margin-inline-end: 0.4rem;
  box-shadow: 0 0 0 0 rgba(61,186,122,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,186,122,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(61,186,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,186,122,0); }
}
.calib-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-inline-start: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.calib-dot {
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.18);
}
.live-row {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--mute); margin-bottom: 1rem;
}
.search-box {
  width: 100%; max-width: 320px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  color: var(--cream);
  padding: 0.7rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.exchanges {
  display: grid; gap: 0.75rem;
}
.exchange {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.exchange__name { font-weight: 500; }
.exchange__meta { color: var(--mute); font-size: 0.8rem; }
@media (max-width: 899px) {
  .stay-dock { bottom: 0.75rem; }
}
