/* ============================================================
   MONEY138 · base.css — 布局族: neon-arcade-purple
   深紫底 / 电紫+霓虹青 / 发光CTA / Russo One 刊头 / 街机光效
   ============================================================ */

:root {
  --bg: #240F41;             /* 深紫 */
  --bg-2: #1D0C35;
  --surface: #32155B;        /* 卡面 */
  --surface-2: #33165C;
  --primary: #F864AF;        /* 电紫 ~275° */
  --primary-600: #F63D9B;
  --primary-soft: rgba(248, 100, 175, 0.13);
  --accent: #14D0ED;         /* 霓虹青 */
  --accent-soft: rgba(43, 213, 239, 0.12);
  --text: #E1DBFF;
  --muted: #A5A5AE;
  --border: rgba(168, 85, 247, 0.28);
  --on-primary: #FAFAFA;

  --font-sans: "Kanit", "Segoe UI", system-ui, sans-serif;
  --font-display: "Russo One", "Kanit", sans-serif;
  --fs-h1: clamp(1.8rem, 4.6vw, 2.7rem);
  --fs-h2: clamp(1.3rem, 3.1vw, 1.7rem);
  --fs-h3: 1.08rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh: 1.7;

  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;     --sp-7: 3rem;    --sp-8: 4rem;

  --r-sm: 10px; --r-md: 16px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 4px 18px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.55);
  --glow-primary: 0 0 22px rgba(168, 85, 247, 0.45);
  --glow-accent: 0 0 22px rgba(34, 211, 238, 0.4);

  --header-h: 66px;
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-size: var(--fs-body);
  line-height: var(--lh); color: var(--text); background: var(--bg);
  background-image: radial-gradient(900px 380px at 85% -5%, rgba(168, 85, 247, 0.18), transparent 60%),
                    radial-gradient(700px 320px at 0% 110%, rgba(34, 211, 238, 0.10), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 var(--sp-3); font-weight: 400; letter-spacing: 0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--font-sans); font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.3rem; }
li { margin-bottom: var(--sp-2); }
strong { color: var(--accent); font-weight: 700; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .steps > *, .step { min-width: 0; }
p, li, td { overflow-wrap: break-word; }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--sp-4); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 8, 38, 0.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; color: var(--text); }
.header-cta { margin-left: auto; display: flex; gap: var(--sp-2); }
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; cursor: pointer; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px; background: transparent;
}
.nav-burger span { display: block; height: 2px; background: var(--text); }
.site-nav { display: none; width: 100%; padding-bottom: var(--sp-3); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.site-nav a {
  display: block; padding: var(--sp-3) var(--sp-3); color: var(--text);
  border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-small); min-height: 44px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--border); }
.site-nav.open { display: block; }
@media (min-width: 768px) {
  .nav-burger { display: none; }
  .site-nav { display: block !important; width: auto; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
  .site-nav a { padding: var(--sp-2) var(--sp-3); }
}

/* ---------- buttons / chips（发光 CTA） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-small); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--primary), #8B50EF); color: var(--on-primary); box-shadow: var(--glow-primary); }
.btn-primary:hover { color: var(--on-primary); box-shadow: 0 0 32px rgba(168, 85, 247, 0.65); }
.btn-accent { background: linear-gradient(120deg, var(--accent), #099EC2); color: #031015; box-shadow: var(--glow-accent); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow-accent); }
.btn-lg { padding: var(--sp-4) var(--sp-7); font-size: 1rem; }

.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3); border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-small); font-weight: 600; color: var(--muted);
}
.chip-neon { border-color: rgba(34, 211, 238, 0.5); color: var(--accent); background: var(--accent-soft); }

/* ---------- sections & cards（霓虹描边卡） ---------- */
.section { padding-block: var(--sp-7); }
.section-alt { background: rgba(20, 8, 38, 0.6); }
.section-head { max-width: 700px; margin: 0 0 var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { position: relative; padding-bottom: var(--sp-3); }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: var(--glow-accent); }
.section-head.center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-head p { color: var(--muted); margin-top: var(--sp-2); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); box-shadow: var(--shadow-1); }
.card:hover { border-color: rgba(34, 211, 238, 0.55); box-shadow: var(--glow-accent), var(--shadow-1); }
.card h3 { color: var(--text); }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); margin-bottom: var(--sp-3);
  background: var(--primary-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary);
}
.card-cta { margin-top: var(--sp-3); font-weight: 600; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- hero（居中霓虹标题 + 光晕） ---------- */
.hero { padding-block: var(--sp-8); text-align: center; background: radial-gradient(720px 340px at 50% -10%, rgba(168, 85, 247, 0.28), transparent 65%); }
.hero-inner { display: grid; gap: var(--sp-6); align-items: center; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 34px rgba(168, 85, 247, 0.35); }
.hero-lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0; justify-content: center; }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.hero-media img { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--glow-primary), var(--shadow-2); }
@media (min-width: 768px) { .hero-inner { grid-template-columns: 1fr; } .hero { text-align: left; } .hero-inner { grid-template-columns: 1.1fr 0.9fr; } .hero-lead, .hero-actions, .hero-chips { margin-inline: 0; justify-content: flex-start; } }

/* ---------- steps / faq / breadcrumb ---------- */
.steps { display: grid; gap: var(--sp-4); }
.step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step-num {
  flex: 0 0 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--primary), #8B50EF); color: #FFF;
  font-family: var(--font-display); box-shadow: var(--glow-primary);
}
.faq-list { display: grid; gap: var(--sp-3); }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4); }
.faq-list summary { cursor: pointer; font-weight: 700; list-style: none; min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > p { margin: var(--sp-3) 0 0; color: var(--muted); }

.breadcrumb { padding-block: var(--sp-3); font-size: var(--fs-small); color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--border); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- prose / table / note / cta ---------- */
.prose { max-width: 740px; }
.prose h2 { margin-top: var(--sp-6); }
.prose h3 { color: var(--accent); margin-top: var(--sp-5); }
.prose img { margin-block: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md); }
.prose ul, .prose ol { color: var(--muted); }

.note { background: var(--accent-soft); border: 1px solid rgba(34, 211, 238, 0.4); border-radius: var(--r-md); padding: var(--sp-4); color: var(--text); }
.note strong { color: var(--accent); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.cta-band { background: linear-gradient(130deg, rgba(168, 85, 247, 0.2), rgba(34, 211, 238, 0.12)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); text-align: center; box-shadow: var(--shadow-1); }
.cta-band .btn { margin: var(--sp-2); }

.related-links { display: grid; gap: var(--sp-3); }
@media (min-width: 768px) { .related-links { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: var(--sp-7) var(--sp-4); margin-top: var(--sp-7); }
.footer-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-sans); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-about { color: var(--muted); font-size: var(--fs-small); }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  color: var(--muted); font-size: var(--fs-small);
}

/* ---------- misc ---------- */
.to-top {
  position: fixed; right: var(--sp-4); bottom: var(--sp-4); z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), #8B50EF); color: #FFF;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-primary);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
