:root {
  --bg: #07111f;
  --bg-tint: #0a1728;
  --ink: #eaf6ff;
  --muted: #9bb0c4;
  --line: rgba(80, 205, 255, 0.2);
  --accent: #2dd4ff;
  --accent-strong: #00b4e6;
  --sign: #050b14;
  --sign-line: rgba(255, 255, 255, 0.16);
  --surface: #0d1d30;
  --wash: #102a42;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --header: 64px;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(45, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 255, 0.035) 1px, transparent 1px),
    radial-gradient(760px 420px at 100% 0, rgba(0, 180, 230, 0.16), transparent 68%);
  background-size: 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family: "Bahnschrift", "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  text-wrap: balance;
}

ul,
ol {
  padding: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--sign);
  color: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  z-index: 40;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: calc(var(--header) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--sign);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(45, 212, 255, 0.22));
}

.keep {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
}

.dock {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid #ffffff;
  background: transparent;
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
}

.hero {
  padding: 2.75rem 0 2.25rem;
  background:
    radial-gradient(540px 280px at 80% 45%, rgba(45, 212, 255, 0.17), transparent 70%),
    linear-gradient(180deg, rgba(10, 23, 40, 0.94) 0%, rgba(7, 17, 31, 0.96) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(45, 212, 255, 0.1);
}

.hero-copy p {
  margin-top: 0.9rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.3rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #03131d;
  box-shadow: 0 8px 24px rgba(45, 212, 255, 0.24);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-secondary {
  background: rgba(13, 29, 48, 0.76);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #03131d;
}

.hero-photo {
  width: 100%;
  height: min(52dvh, 460px);
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 255, 0.34);
  box-shadow: 8px 8px 0 #0e4960, 0 20px 40px rgba(0, 0, 0, 0.34);
}

section {
  padding: 3.25rem 0;
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

#repair {
  padding-top: 2.75rem;
}

section h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  font-weight: 700;
}

section h2::before {
  content: "";
  width: 1.8rem;
  height: 3px;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(45, 212, 255, 0.5);
}

.lede {
  margin-top: 0.45rem;
  margin-bottom: 1.25rem;
  max-width: 40rem;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas:
    "boot hdmi net"
    "boot system remote";
  gap: 12px;
}

.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cell:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 255, 0.5);
  box-shadow: 0 16px 36px rgba(0, 180, 230, 0.12);
}

.cell h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.cell p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.cell-boot {
  grid-area: boot;
  background: linear-gradient(145deg, #0e5a73, #102840 72%);
  border-color: var(--accent);
  color: #ffffff;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 16px 36px rgba(0, 180, 230, 0.17);
}

.cell-boot p {
  color: rgba(255, 255, 255, 0.9);
}

.cell-boot h3 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.cell-hdmi { grid-area: hdmi; }
.cell-net { grid-area: net; }

.cell-system {
  grid-area: system;
  background: var(--wash);
}

.cell-remote { grid-area: remote; }

.band {
  background: var(--bg-tint);
}

.tablist {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  scroll-snap-align: start;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #03131d;
}

.tab[aria-selected="true"]:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #03131d;
}

.panel {
  margin-top: 0.85rem;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: 0.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}

.model-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}

.model-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.model-list li span:last-child {
  color: var(--muted);
  text-align: right;
}

.panel-note,
.fine {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}

.groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.1rem;
}

.groups h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--accent);
}

.groups p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: center;
}

.buy-photo {
  width: 100%;
  height: min(52dvh, 420px);
  object-fit: cover;
  object-position: 62% 18%;
  border-radius: 18px;
  border: 0;
  background: var(--surface);
  box-shadow: -8px 8px 0 #0e4960, 0 20px 40px rgba(0, 0, 0, 0.34);
}

.buy-list article + article {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.buy-list h3 {
  font-size: 1.15rem;
  line-height: 1.35;
}

.buy-list p {
  margin-top: 0.2rem;
  color: var(--muted);
}

.steps,
.faq,
.contact-panel {
  margin-top: 1.5rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(45, 212, 255, 0.3);
}

.step-no {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #03131d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
}

.steps p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-item button::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
}

.faq-item.is-open button::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-item .answer {
  display: none;
  padding: 0 2rem 1rem 0;
  max-width: 65ch;
  color: var(--muted);
}

.faq-item.is-open .answer {
  display: block;
}

.contact-panel {
  max-width: 46rem;
}

.contact-lead {
  font-size: 1.25rem;
  font-weight: 700;
}

.owner-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 46rem;
}

.phone-big {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.phone-big:hover {
  color: var(--accent-strong);
}

.contact-list {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.contact-list dt {
  color: var(--muted);
}

.contact-list a {
  color: var(--accent);
  font-weight: 700;
}

.line-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.line-link::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  background: url("../images/line.svg") center / contain no-repeat;
}

.site-footer {
  background: var(--sign);
  color: #ffffff;
  padding: 1.8rem 0 2.1rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-top strong {
  font-size: 1.05rem;
}

.footer-top nav {
  display: flex;
  gap: 1.1rem;
}

.footer-top a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.footer-top a:hover {
  color: var(--accent);
}

.legal,
.copy {
  margin-top: 0.85rem;
  color: #9bb0c4;
  max-width: 62ch;
}

.copy {
  font-size: 0.95rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #03131d;
}

@media (max-width: 900px) {
  .hero-grid,
  .bento,
  .buy-grid,
  .groups,
  .steps,
  .model-list {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .cell-boot,
  .cell-hdmi,
  .cell-net,
  .cell-system,
  .cell-remote {
    grid-area: auto;
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero {
    display: block;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-photo {
    height: 200px;
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .steps::before {
    display: none;
  }

  .buy-photo {
    height: 220px;
    object-position: center 30%;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.15rem 1.25rem 0.7rem;
    background: var(--sign);
    grid-template-columns: 1fr;
    gap: 0;
    max-height: calc(100dvh - var(--header) - env(safe-area-inset-top));
    overflow-y: auto;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0.35rem 0;
    border-top: 1px solid var(--sign-line);
  }

  .cta-row .btn {
    flex: 1 1 0;
  }

  .faq-item button {
    min-height: 48px;
  }

  .model-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .model-list li span:last-child {
    text-align: left;
  }

  .footer-top,
  .footer-top nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .contact-list dd {
    margin-bottom: 0.7rem;
  }

  .dock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    background: rgba(5, 11, 20, 0.94);
    border-top: 0;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
    padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
  }

  .dock a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    color: var(--ink);
    border: 1.5px solid var(--line);
    background: var(--surface);
  }

  .dock a:first-child {
    background: var(--accent);
    border-color: var(--accent);
    color: #03131d;
  }

  section {
    padding: 2.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:active,
  .cell:hover {
    transform: none;
  }
}
