/* ============================================================
   BACOT138 · base.css — 布局族: midnight-violet-neon
   午夜紫 #150E2D / 深紫 #A659F5 + 翡翠 #34D399 / Audiowide 灯管标题 / Nunito Sans
   ============================================================ */

:root {
  --bg: #150E2D;
  --bg-2: #100A20;
  --surface: #1D1540;
  --surface-2: #251B4E;
  --primary: #A659F5;        /* 深紫 ~270° */
  --primary-600: #8F3FE8;
  --primary-soft: rgba(166, 89, 245, 0.13);
  --accent: #34D399;         /* 翡翠 */
  --accent-soft: rgba(52, 211, 153, 0.12);
  --text: #F3EEFF;
  --muted: #A9A3C4;
  --border: rgba(166, 89, 245, 0.35);
  --on-primary: #1C0733;

  --font-sans: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Audiowide", "Nunito Sans", sans-serif;
  --fs-h1: clamp(1.7rem, 4.4vw, 2.5rem);
  --fs-h2: clamp(1.26rem, 3vw, 1.6rem);
  --fs-h3: 1.05rem;
  --fs-body: 1rem;
  --fs-small: 0.87rem;
  --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: 8px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 14px 36px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 24px rgba(166, 89, 245, 0.5);
  --glow-accent: 0 0 22px rgba(52, 211, 153, 0.4);

  --header-h: 64px;
  --max-w: 1100px;
}

*, *::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(860px 380px at 82% -8%, rgba(166, 89, 245, 0.2), transparent 62%),
                    radial-gradient(640px 300px at 0% 112%, rgba(52, 211, 153, 0.09), 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.25; 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: 800; letter-spacing: 0; }
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(--primary); font-weight: 800; }
: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(16, 10, 32, 0.93); border-bottom: 1px solid var(--border); backdrop-filter: blur(9px); }
.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: 42px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.1rem; 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(--primary); }
.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: 2px; }
.site-nav a { display: block; padding: var(--sp-3); color: var(--text); font-weight: 700; font-size: var(--fs-small); min-height: 44px; }
.site-nav a:hover, .site-nav a.is-active { color: var(--primary); background: var(--primary-soft); text-shadow: 0 0 14px rgba(166, 89, 245, 0.6); }
.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-4); flex-wrap: wrap; }
  .site-nav a { padding: var(--sp-2) 0; background: transparent; }
}

/* ---------- buttons / chips ---------- */
.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: 1.5px solid var(--border);
  font-family: var(--font-display); font-weight: 400; font-size: 0.85rem; 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), #7C3AED); color: var(--on-primary); border-color: transparent; box-shadow: var(--glow-primary); }
.btn-primary:hover { color: #FFFFFF; }
.btn-accent { background: var(--accent); color: #04291D; border-color: transparent; box-shadow: var(--glow-accent); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: var(--sp-4) var(--sp-7); font-size: 0.95rem; }

.chip { display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-3); border: 1px solid var(--border); font-size: var(--fs-small); font-weight: 700; color: var(--muted); background: var(--surface); }
.chip-violet { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- sections & cards（霓虹灯管卡） ---------- */
.section { padding-block: var(--sp-7); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 700px; margin: 0 0 var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2); }
.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 { box-shadow: var(--glow-primary), var(--shadow-1); border-color: rgba(166, 89, 245, 0.65); }
.card h3 { color: var(--text); }
.card-icon { width: 42px; height: 42px; border-radius: 50%; 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: 700; }

.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; }
.hero-inner { display: grid; gap: var(--sp-6); align-items: center; }
.hero h1 { color: #FFFFFF; text-shadow: 0 0 12px rgba(166, 89, 245, 0.85), 0 0 44px rgba(166, 89, 245, 0.4); }
.hero h1 span { color: var(--accent); text-shadow: 0 0 16px rgba(52, 211, 153, 0.8); }
.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: 1.1fr 0.9fr; }
  .hero { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-actions, .hero-chips { 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 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, var(--primary), #7C3AED); 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: 800; 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(--primary); 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(--primary); }

/* ---------- 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(52, 211, 153, 0.42); 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: 800; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.cta-band { background: linear-gradient(125deg, rgba(166, 89, 245, 0.2), rgba(52, 211, 153, 0.12)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); text-align: center; }
.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.12em; color: var(--primary); }
.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(--primary); }
.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), #7C3AED); color: #FFF; display: flex; align-items: center; justify-content: center; font-weight: 800; 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; }
}
