:root {
  --bg: #05070d;
  --bg-soft: #0b1020;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f8fb;
  --muted: #a7afc2;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #e50914;
  --accent-2: #ffb86c;
  --blue: #79c7ff;
  --green: #8ef7c8;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(229, 9, 20, 0.24), transparent 34%),
    radial-gradient(circle at 8% 22%, rgba(121, 199, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #05070d 0%, #090d18 46%, #05070d 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.page { min-height: 100vh; position: relative; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.36));
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff4d5a);
  box-shadow: 0 14px 36px rgba(229, 9, 20, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent-2));
  color: #07101d;
  font-weight: 900;
}

.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 600px;
  padding: 58px 64px 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: center;
  --hero-bg-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==");
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 28px;
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.84) 38%, rgba(5, 7, 13, 0.22) 72%, rgba(5, 7, 13, 0.02) 100%),
    var(--hero-bg-image) center right / cover no-repeat;
  box-shadow: var(--shadow);
  z-index: -1;
  border: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(229, 9, 20, 0.34);
  background: rgba(229, 9, 20, 0.13);
  color: #ffd0d4;
  font-size: 14px;
  margin-bottom: 22px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(229, 9, 20, 0.13);
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: #c6cede;
  font-size: 18px;
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  color: #d7dfec;
  font-size: 14px;
}

.meta-row span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: #05070d; }
.button-accent { background: linear-gradient(135deg, var(--accent), #ff4d5a); color: #fff; box-shadow: 0 18px 50px rgba(229,9,20,.25); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.08); color: var(--text); }

.preview-panel {
  align-self: end;
  justify-self: end;
  width: min(450px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.preview-video {
  position: relative;
  overflow: hidden;
  height: 235px;
  border-radius: 22px;
  background: #111827;
}

.preview-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0,0,0,.05), rgba(0,0,0,.52));
}

.play span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #05070d;
  font-size: 26px;
  padding-left: 4px;
}

.preview-panel h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.preview-panel p { margin: 0; color: var(--muted); line-height: 1.65; }

section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.section-desc {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.rail-wrap {
  position: relative;
}

.rail-wrap .rail {
  padding: 6px 52px 10px;
}

.rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.rail-arrow:hover { transform: translateY(-50%) translateY(-2px); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.rail-arrow:active { transform: translateY(-50%) scale(.98); }
.rail-arrow:focus-visible { outline: 2px solid rgba(121,199,255,.75); outline-offset: 3px; }
.rail-arrow[disabled] { opacity: .35; cursor: default; }
.rail-arrow[disabled]:hover { transform: translateY(-50%); background: rgba(5, 7, 13, 0.62); border-color: var(--line); }

.rail-arrow[data-rail-prev] { left: 8px; }
.rail-arrow[data-rail-next] { right: 8px; }

.title-card {
  min-width: 240px;
  flex: 0 0 240px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  transition: transform .22s ease, background .22s ease;
  scroll-snap-align: start;
}

.title-card:hover {
  transform: translateY(-6px) scale(1.01);
  background: var(--panel-strong);
}

.poster {
  position: relative;
  height: 290px;
  background: #111827;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .35s ease;
  padding: 10px;
}

.title-card:hover .poster img { transform: scale(1.02); }

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.title-info {
  padding: 16px;
}

.title-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.title-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wide-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}

.feature-tile, .side-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--panel);
  min-height: 390px;
  box-shadow: var(--shadow);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.side-tile { min-height: 186px; }

.feature-tile img, .side-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

.feature-tile::after, .side-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 26%, rgba(5,7,13,.9) 100%);
}

.tile-copy {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 24px;
}

.tile-copy h3 {
  margin: 12px 0 8px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.side-tile .tile-copy h3 { font-size: 22px; }
.tile-copy p { margin: 0; color: #c6cede; line-height: 1.65; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category {
  position: relative;
  overflow: hidden;
  min-height: 175px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(229,9,20,.28), transparent 34%),
    rgba(255,255,255,.07);
}

.category strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.category span {
  color: var(--muted);
  line-height: 1.6;
}

.lab-note {
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  line-height: 1.75;
}

.lab-note code {
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  color: #fff;
}

.cta {
  text-align: center;
  padding: 54px 28px;
  border: 1px solid rgba(229, 9, 20, 0.28);
  border-radius: 38px;
  background:
    radial-gradient(circle at 18% 20%, rgba(229,9,20,.2), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(121,199,255,.15), transparent 34%),
    rgba(255,255,255,.07);
  box-shadow: var(--shadow);
}

.cta h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.07em;
}

.cta p {
  max-width: 720px;
  margin: 18px auto 28px;
  color: var(--muted);
  line-height: 1.8;
}

footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5,7,13,.98) 0%, rgba(5,7,13,.82) 48%, rgba(5,7,13,.28) 100%),
      var(--hero-bg-image) center / cover no-repeat;
  }
  .preview-panel { justify-self: start; }
  .section-head { flex-direction: column; align-items: start; }
  .wide-grid, .category-grid { grid-template-columns: 1fr; }
  .rail-wrap .rail { padding: 6px 46px 10px; }
}

.hero-arrows {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.hero-arrow:hover { transform: translateY(-2px); background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
.hero-arrow:active { transform: scale(.98); }
.hero-arrow:focus-visible { outline: 2px solid rgba(121,199,255,.75); outline-offset: 3px; }
.hero-arrow[disabled] { opacity: .35; cursor: default; }

@media (max-width: 620px) {
  .hero { padding-top: 44px; padding-bottom: 34px; }
  .hero::before { inset: 0 16px; border-radius: 28px; }
  .nav, .hero, section, footer { padding-left: 16px; padding-right: 16px; }
  .hero-actions, footer { flex-direction: column; align-items: flex-start; }
  .preview-video { height: 200px; }
  .poster { height: 260px; }
}
