:root {
  color-scheme: light;
  --ink: #182034;
  --muted: #55617a;
  --line: #dfe5f1;
  --blue: #1743dd;
  --blue-deep: #1235b6;
  --soft: #edf2ff;
  --surface: #f7f9fd;
  --white: #fff;
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--white);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #345fff; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.7; }

.wrap { width: min(100% - 64px, 1280px); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  transform: translateY(-160%);
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 42px; min-height: 75px; }
.brand, .footer-brand { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark {
  width: 35px;
  aspect-ratio: 1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
}
.brand-title { font-size: 1.4rem; font-weight: 850; letter-spacing: -.08em; }
.brand-subtitle { border-left: 1px solid var(--line); padding-left: 9px; font-size: .875rem; color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 25px; min-height: inherit; }
.nav a {
  display: inline-grid;
  place-items: center;
  align-self: stretch;
  color: var(--muted);
  font-weight: 650;
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 2px 2px 0;
}
.nav a:hover, .nav [aria-current=page] { color: var(--blue); }
.nav [aria-current=page] { border-bottom-color: var(--blue); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 720;
  font-size: .9375rem;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.button svg { flex: 0 0 auto; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: var(--blue-deep); }
.button.secondary { background: #fff; color: var(--ink); border-color: #d8e0f0; }
.button.secondary:hover { background: #f4f7ff; border-color: #aebced; }
.button.header-picker { margin-left: auto; min-height: 43px; color: var(--blue); background: var(--soft); padding-inline: 14px; }
.button.header-picker:hover { background: #e0e8ff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { color: var(--blue-deep); font-weight: 680; text-underline-offset: .24em; font-size: .9375rem; }
.text-link:hover { color: var(--ink); }

.home-top { margin-top: 28px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  min-height: 406px;
  border: 1px solid #dde5fb;
  border-radius: 20px;
  background: #f0f4ff;
  overflow: hidden;
}
.hero-content { padding: clamp(30px, 4.1vw, 59px); align-self: center; }
.hero-media {
  min-width: 0;
  background: #152848 62% 50% / cover no-repeat;
  position: relative;
}
.hero-media::after {
  content: "情境示意";
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: .75rem;
  color: #fff;
  background: #081124aa;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue-deep); font-weight: 730; font-size: .875rem; margin-bottom: 16px; }
.eyebrow-rule { width: 21px; height: 2px; background: var(--blue); }
.hero h1 {
  line-height: 1.18;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 820;
  letter-spacing: -.075em;
}
.hero h1 span { color: var(--blue-deep); }
.hero-description { max-width: 34rem; margin-top: 18px; margin-bottom: 24px; color: #485774; }
.home-products { margin-top: 54px; margin-bottom: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.375rem, 2.4vw, 2rem); letter-spacing: -.055em; }
.section-head a { flex-shrink: 0; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px #263f6610;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 12px 25px #20305e14; border-color: #bdcaed; transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-link:focus-visible { outline-offset: -4px; border-radius: 16px; }
.card-content { padding: 18px 20px 21px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .875rem; font-weight: 760; color: var(--blue-deep); line-height: 1.35; }
.card h3 { margin-top: 6px; font-size: 1.125rem; line-height: 1.38; }
.card-use { color: var(--muted); margin-top: 8px; margin-bottom: 16px; font-size: .9375rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tags span { display: inline-block; max-width: 100%; padding: 5px 8px; border-radius: 6px; font-size: .875rem; font-weight: 670; color: #304363; background: #edf1f9; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 24px; margin-bottom: 22px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs > * + *::before { content: "/"; display: inline-block; margin-right: 12px; color: #7b879f; }
.category, .detail { padding-bottom: 60px; }
.category-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.category-head h1, .detail h1 { font-size: clamp(1.75rem, 3.5vw, 3rem); font-weight: 810; line-height: 1.2; letter-spacing: -.065em; }
.category-head p { margin-top: 9px; color: var(--muted); }
.category-results { margin-top: 20px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 100px;
  min-height: 42px;
  padding: 7px 13px;
  font-size: .875rem;
  font-weight: 670;
  cursor: pointer;
}
.filter:hover { color: var(--blue); background: var(--soft); }
.filter[aria-pressed=true] { background: var(--blue); color: #fff; border-color: var(--blue); }
.result-count { color: var(--muted); font-size: .875rem; font-weight: 630; }
.detail-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.detail-content { padding: 16px 0 0; }
.detail h1 { margin-top: 8px; }
.detail-summary { margin-top: 18px; color: var(--muted); }
.detail .actions { margin-top: 21px; }
.buy-note { margin-top: 7px; font-size: .8125rem; color: var(--muted); }
.info-panel { border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 27px); }
.info-panel h2 { font-size: 1.35rem; letter-spacing: -.035em; }
.info-panel .button { margin-top: 20px; }
.spec-panel table { width: 100%; margin-top: 12px; border-collapse: collapse; text-align: left; font-size: .9375rem; }
.spec-panel th, .spec-panel td { padding: 10px 8px; border-top: 1px solid var(--line); line-height: 1.55; overflow-wrap: anywhere; }
.spec-panel th { width: 34%; color: #34435d; background: var(--surface); }
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 114px; padding: 19px 0; }
.footer-brand { font-size: 1rem; font-weight: 820; color: var(--ink); }
.footer-brand span { font-weight: 630; }
.footer-inner p { font-size: .875rem; }
.footer-inner div p { margin-top: 5px; }

@media (max-width: 940px) {
  .wrap { width: min(100% - 40px, 1280px); }
  .hero h1 { font-size: clamp(1.85rem, 4.25vw, 2.75rem); }
  .hero { min-height: 345px; }
  .hero-content { padding: 32px; }
  .product-grid { gap: 13px; }
  .card-content { padding: 15px; }
}

@media (max-width: 670px) {
  .wrap { width: min(100% - 32px, 1280px); }
  .header-inner { min-height: 64px; gap: 14px; }
  .brand { gap: 7px; }
  .brand-mark { width: 31px; border-radius: 8px; }
  .brand-title { font-size: 1.23rem; }
  .brand-subtitle, .nav a:first-child { display: none; }
  .nav { gap: 0; }
  .button.header-picker { min-height: 38px; font-size: .875rem; gap: 5px; padding: 7px 9px; }
  .button.header-picker svg { width: 16px; height: 16px; }
  .home-top { margin-top: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 25px 21px; }
  .hero h1 { font-size: clamp(1.87rem, 7.7vw, 2.65rem); }
  .hero-description { margin-top: 13px; margin-bottom: 18px; }
  .hero-media { min-height: 181px; background-position: 50% 52%; }
  .home-products { margin-top: 33px; margin-bottom: 40px; }
  .section-head { align-items: baseline; gap: 10px; }
  .section-head a { font-size: .875rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 12px; }
  .card-content { padding: 12px; }
  .card h3 { font-size: 1rem; }
  .card-use { font-size: .875rem; margin-bottom: 10px; }
  .tags span { font-size: .8125rem; }
  .category-head { align-items: start; flex-direction: column; padding: 20px; }
  .category, .detail { padding-bottom: 42px; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-content { padding: 0; }
  .footer-inner { display: block; }
  .footer-inner > p { margin-top: 10px; }
}

@media (max-width: 360px) {
  .wrap { width: min(100% - 20px, 1280px); }
  .header-inner { gap: 10px; }
  .hero-content { padding-inline: 17px; }
  .hero .button { padding-inline: 11px; }
  .section-head h2 { font-size: 1.2rem; }
  .card-content { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .button { transition: none; }
  .card:hover { transform: none; }
}

.key-hero {background-image:url('/assets/keyboard-hero.jpg');background-position:center}
.key-art {width:100%;height:auto;display:block;aspect-ratio:3/2}
.key-price {display:block;margin-top:16px;color:var(--blue-deep);font-size:1.12rem}
.detail-content>.tags {margin-top:14px}
@media(max-width:670px){.nav{gap:9px}.header-inner{gap:8px}.header-picker svg{display:none}.nav a{font-size:.84rem}}

.key-art-photo {
  object-fit: contain;
  padding: clamp(8px, 2vw, 20px);
  background: #fff;
}
.key-photo-figure { margin: 0; min-width: 0; }
.key-photo-figure > .key-art-photo {
  border: 1px solid var(--line);
  border-radius: 16px;
}
.key-photo-figure figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: .875rem;
}

.key-detail-story {
  max-width: 780px;
  margin: clamp(24px, 5vw, 48px) auto 0;
}

.key-intro img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.key-buying-points {
  margin-block-start: 23px;
}

.key-buying-points ul {
  padding-inline-start: 1.3rem;
  line-height: 1.65;
}

@media (max-width: 670px) {
  .key-intro img {
    border-radius: 10px;
  }
}
