:root {
  --bg: #080915;
  --panel: #11142a;
  --panel2: #191d3a;
  --text: #f6f7ff;
  --muted: #b7bdd9;
  --line: rgba(255, 255, 255, 0.13);
  --violet: #9474ff;
  --cyan: #55d9ff;
  --gold: #f6cb68;
  --max: 1440px;
}
html[data-mode="light"] {
  --bg: #f2f4ff;
  --panel: #fff;
  --panel2: #e9edff;
  --text: #17182b;
  --muted: #555d7d;
  --line: rgba(20, 25, 65, 0.14);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(
      circle at 70% 0,
      rgba(108, 64, 255, 0.25),
      transparent 34%
    ),
    var(--bg);
  color: var(--text);
  font:
    16px/1.75 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans TC",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: auto;
}
.signal {
  background: #050610;
  color: var(--cyan);
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.head {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 78px;
}
.head nav {
  display: flex;
  gap: 19px;
  margin-left: auto;
}
.mode {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #e38b35);
  color: #15101d;
  font-weight: 900;
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(220, 147, 48, 0.2);
}
.hero {
  padding: 58px 0;
  background: linear-gradient(
    145deg,
    rgba(108, 64, 255, 0.22),
    transparent 45%
  );
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: 42px;
}
.hero h1,
.page h1 {
  overflow-wrap: anywhere;
  font-size: clamp(39px, 5.2vw, 72px);
  line-height: 1.05;
  margin: 10px 0 18px;
  letter-spacing: -0.03em;
}
.hero p,
.page p {
  font-size: 19px;
  max-width: 790px;
  color: var(--muted);
}
.hero img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
}
.eyebrow,
.mechanic-card small,
.text-card small {
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.ghost {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dashboard {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr) 265px;
  gap: 24px;
  padding: 42px 0 78px;
  align-items: start;
}
.dashboard > aside {
  position: sticky;
  top: 104px;
}
.dashboard aside > a,
.rail a {
  display: block;
  padding: 10px 3px;
  border-bottom: 1px solid var(--line);
}
.dashboard aside small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}
.section-title h2 {
  font-size: 34px;
  margin: 3px 0 20px;
}
.feature-grid,
.list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.mechanic-card,
.text-card,
.video-card {
  background: linear-gradient(155deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.mechanic-card:hover,
.text-card:hover,
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet);
}
.mechanic-card img,
.video-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.mechanic-card > div,
.video-card > div,
.text-card {
  padding: 19px;
}
.mechanic-card h2,
.text-card h2,
.video-card h2 {
  margin: 2px 0;
  font-size: 21px;
  line-height: 1.35;
}
.mechanic-card p,
.text-card p,
.video-card p,
.article p,
.article li {
  color: var(--muted);
}
.lead {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lead img {
  height: 100%;
}
.more {
  color: var(--gold);
  font-weight: 850;
}
.side-ad {
  padding: 22px;
  background: linear-gradient(145deg, #322261, var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 20px;
}
.side-ad h2 {
  line-height: 1.3;
}
.page {
  padding: 68px 0 42px;
  background: linear-gradient(180deg, rgba(112, 68, 255, 0.2), transparent);
}
.page.compact {
  padding-bottom: 34px;
}
.list {
  padding: 38px 0 78px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 35px 0 78px;
  align-items: start;
}
.article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 48px);
}
.article-layout > aside {
  position: sticky;
  top: 104px;
}
.article h2 {
  font-size: 28px;
  margin: 36px 0 8px;
}
.cover {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
}
.callout {
  padding: 18px 20px;
  background: var(--panel2);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  margin: 24px 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
}
.article th,
.article td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}
.article th {
  background: var(--panel2);
  color: var(--cyan);
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.link-grid a {
  display: block;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.link-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
}
.player {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 15px;
}
.source {
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.sitemap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 35px 0 78px;
}
.sitemap a {
  background: var(--panel);
  padding: 9px;
  border-radius: 8px;
  font-size: 14px;
}
.cta-band {
  background: linear-gradient(90deg, #3d267e, #1b4077);
  padding: 34px 0;
}
.cta-band > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 {
  margin: 3px 0;
}
.cta-band p {
  margin: 0;
  color: #d6ddff;
}
.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 45px 0 95px;
}
.foot img {
  width: 90px;
}
.foot a {
  display: block;
  padding: 4px 0;
}
.mobile {
  display: none;
}
@media (max-width: 1050px) {
  .head nav {
    display: none;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .dashboard > aside:last-child {
    display: none;
  }
  .sitemap {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: min(100% - 24px, var(--max));
  }
  .signal {
    font-size: 11px;
  }
  .head {
    min-height: 66px;
  }
  .brand b,
  .mode,
  .head > .cta {
    display: none;
  }
  .hero {
    padding: 30px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid > img {
    max-height: 300px;
    object-fit: cover;
  }
  .hero h1,
  .page h1 {
    font-size: 39px;
  }
  .dashboard {
    display: block;
    padding-top: 28px;
  }
  .dashboard > aside {
    display: none;
  }
  .feature-grid,
  .list {
    grid-template-columns: 1fr;
  }
  .lead {
    display: block;
    grid-column: auto;
  }
  .mechanic-card img,
  .lead img {
    height: 210px;
  }
  .article-layout {
    display: block;
  }
  .article-layout > aside {
    position: static;
    margin-top: 18px;
  }
  .article {
    padding: 22px;
  }
  .link-grid {
    grid-template-columns: 1fr;
  }
  .sitemap {
    grid-template-columns: 1fr;
  }
  .cta-band > .wrap {
    display: block;
  }
  .cta-band .cta {
    margin-top: 15px;
  }
  .foot {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }
  .mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    border-top: 1px solid var(--line);
    z-index: 30;
  }
  .mobile .cta {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
