* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fff4f1;
  --paper: #fffaf8;
  --ink: #554840;
  --muted: #887973;
  --line: #a89289;
  --accent: #dda1bc;
  --accent-dark: #9f6d83;
  --gold: #9a8f8f;
  --sage: #f5fbf0;
  --lavender: #f2edf8;
  --aqua: #d8f4f4;
  --soft: #fde8ef;
  --shadow: 14px 18px 28px rgba(85, 72, 64, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

.sans {
  font-family: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(85, 72, 64, 0.34);
  background: rgba(255, 244, 241, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
  min-height: 70px;
}

.brand-logo {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 70px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 72, 64, 0.22);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.22s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.hero {
  border-bottom: 1px solid rgba(85, 72, 64, 0.24);
  padding: 76px 32px 92px;
}

.hero-inner,
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-top: 22px;
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  color: #9c8f8a;
  letter-spacing: 0.04em;
}

.title-sub {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1 em,
h2 em,
.next-link em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.lead {
  max-width: 590px;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
}

.section-lead {
  max-width: 760px;
  margin: -24px 0 42px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
}

.profile-bullets {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.profile-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.45;
}

.profile-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.profile-bullets li span {
  display: block;
  margin-top: 2px;
  color: #8f837d;
  font-size: 0.82em;
}

.en {
  display: block;
  margin-top: 8px;
  color: #8f837d;
  font-size: 0.92em;
  line-height: 1.55;
  font-style: normal;
}

.inline-en {
  margin-top: 4px;
  font-size: 0.72em;
}

.motto {
  display: inline-grid;
  gap: 8px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.motto strong {
  font-size: 20px;
  font-weight: 500;
}

.motto span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-portrait {
  position: relative;
  min-height: 610px;
}

.portrait-frame {
  position: absolute;
  inset: 0 0 0 8%;
  overflow: hidden;
  border: 1px solid rgba(85, 72, 64, 0.22);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  transform: scale(1.55);
  transform-origin: 50% 20%;
}

.page-hero {
  padding: 72px 32px 50px;
  border-bottom: 1px solid rgba(85, 72, 64, 0.28);
}

.page-hero h1 {
  max-width: 1040px;
}

.content {
  padding: 82px 32px;
  border-bottom: 1px solid rgba(85, 72, 64, 0.22);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.8fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 50px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(85, 72, 64, 0.28);
}

h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.14;
  color: var(--ink);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: start;
}

.align-start {
  align-items: start;
}

.fact-list {
  border-top: 1px solid rgba(85, 72, 64, 0.24);
}

.fact {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(85, 72, 64, 0.2);
}

.fact .kicker,
.group-title {
  color: var(--accent);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 500;
}

.fact p,
.card p,
.flow-step p,
.note,
.image-caption {
  color: var(--muted);
  font-size: 15px;
}

.quote-panel {
  border-left: 1px solid rgba(85, 72, 64, 0.24);
  padding: 18px 0 18px 42px;
}

.quote-panel .mark {
  color: var(--accent);
  font-size: 84px;
  line-height: 0.55;
}

.quote-panel p {
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.25;
  font-style: italic;
}

.quote-panel span {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.image-panel {
  overflow: hidden;
  border: 1px solid rgba(85, 72, 64, 0.2);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
}

.image-panel.oem-map,
.image-panel.compact-reference {
  max-width: 920px;
  margin: 0 auto 28px;
}

.image-panel.pdf-card {
  box-shadow: 8px 12px 24px rgba(85, 72, 64, 0.14);
}

.image-panel.mini-reference {
  box-shadow: 6px 10px 20px rgba(85, 72, 64, 0.12);
}

.pdf-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.stacked-panels {
  display: grid;
  gap: 18px;
}

.info-panel {
  border: 1px solid rgba(85, 72, 64, 0.24);
  background: rgba(255, 250, 248, 0.74);
  padding: 24px;
}

.info-panel p + p {
  margin-top: 14px;
}

.misconception-panel {
  margin-top: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px 18px;
  margin-top: 16px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-grid strong {
  font-size: 17px;
  font-weight: 600;
}

.split-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.split-note p {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.image-caption {
  margin-top: 18px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(85, 72, 64, 0.2);
  border-left: 1px solid rgba(85, 72, 64, 0.2);
}

.card {
  min-height: 205px;
  padding: 32px;
  border-right: 1px solid rgba(85, 72, 64, 0.2);
  border-bottom: 1px solid rgba(85, 72, 64, 0.2);
  background: rgba(255, 250, 248, 0.5);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(85, 72, 64, 0.16);
  background: var(--paper);
}

.card .num {
  color: var(--gold);
  font-size: 16px;
  font-style: italic;
}

.card h3 {
  margin-top: 18px;
  color: var(--accent-dark);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.22;
}

.card p {
  margin-top: 12px;
}

.flow {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(85, 72, 64, 0.2);
  border-left: 1px solid rgba(85, 72, 64, 0.2);
}

.flow-step {
  counter-increment: flow;
  min-height: 280px;
  padding: 34px 28px;
  border-right: 1px solid rgba(85, 72, 64, 0.2);
  border-bottom: 1px solid rgba(85, 72, 64, 0.2);
  background: var(--sage);
}

.flow-step::before {
  content: "0" counter(flow);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
  font-style: italic;
  line-height: 1;
}

.flow-step h3 {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 500;
}

.flow-step p {
  margin-top: 12px;
}

.note {
  margin-top: 34px;
  padding: 28px 32px;
  border-top: 1px solid rgba(85, 72, 64, 0.22);
  border-bottom: 1px solid rgba(85, 72, 64, 0.22);
  font-size: 18px;
  text-align: center;
}

.tag-board {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(85, 72, 64, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 248, 0.56);
  padding: 0 18px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.tag.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.referral-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.referral-note-grid + .referral-note-grid {
  margin-top: 18px;
}

.referral-note {
  min-height: 260px;
  border: 1px solid rgba(85, 72, 64, 0.18);
  background: rgba(255, 250, 248, 0.72);
  padding: 28px 30px 30px;
  box-shadow: 8px 12px 22px rgba(85, 72, 64, 0.08);
}

.referral-note h3 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.referral-note ul {
  margin-top: 18px;
  margin-left: 18px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
}

.referral-note ul ul {
  margin-top: 8px;
  margin-left: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.group-title {
  margin-bottom: 18px;
}

.starter-label {
  margin-bottom: 24px;
}

.starter-list {
  display: grid;
  gap: 10px;
}

.starter {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(85, 72, 64, 0.2);
}

.starter span {
  color: var(--gold);
  font-size: 28px;
  font-style: italic;
  line-height: 1;
}

.starter p {
  font-size: clamp(18px, 2.3vw, 27px);
  line-height: 1.32;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.video-quote-row {
  align-items: center;
}

.video-quote-row .quote-panel {
  align-self: center;
}

.video-card {
  border: 1px solid rgba(85, 72, 64, 0.2);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.video-card.vertical {
  max-width: 440px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-card.vertical .video-frame {
  aspect-ratio: 9 / 16;
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-copy {
  padding: 24px 26px 28px;
}

.video-copy h3 {
  color: var(--accent-dark);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.video-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.next-band {
  padding: 38px 32px;
  text-align: right;
}

.next-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  transition: 0.22s ease;
}

.next-link:hover {
  color: var(--accent-dark);
  transform: translateX(4px);
}

.footer {
  background: #554840;
  color: var(--paper);
  padding: 76px 32px 34px;
  text-align: center;
}

.footer h2 {
  color: var(--paper);
}

.footer p {
  max-width: 700px;
  margin: 24px auto 36px;
  color: #d5c8bf;
  font-size: 18px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0 22px;
  color: var(--paper);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.22s ease;
}

.footer-actions a:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.copyright {
  margin-top: 62px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8c8c2;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 1060px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner,
  .two-col,
  .section-header {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-portrait {
    min-height: 560px;
  }

  .portrait-frame {
    left: 0;
  }

  .quote-panel {
    border-left: 0;
    padding: 0;
  }

  h1 {
    font-size: clamp(40px, 7vw, 60px);
  }

  h2 {
    font-size: clamp(28px, 5vw, 38px);
  }

  .card-grid,
  .flow,
  .referral-note-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar,
  .hero,
  .page-hero,
  .content,
  .footer,
  .next-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand {
    width: 122px;
    min-height: 62px;
  }

  .brand-logo {
    max-width: 122px;
    max-height: 62px;
  }

  .nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.08;
    letter-spacing: 0;
  }

  h2 {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.16;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-portrait {
    min-height: 500px;
  }

  .fact,
  .starter {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #starters.content {
    padding-top: 58px;
  }

  .starter-label {
    margin-bottom: 18px;
  }

  .starter-note {
    margin-top: 0;
    padding: 14px 0;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .starter-note .en {
    display: none;
  }

  .starter {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .starter span {
    font-size: 18px;
  }

  .starter p {
    font-size: 17px;
    line-height: 1.36;
  }

  .footer h2 {
    font-size: 24px;
    line-height: 1.18;
  }

  .card-grid,
  .flow,
  .referral-note-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card.vertical {
    max-width: none;
  }

  .card,
  .flow-step,
  .referral-note {
    min-height: auto;
    padding: 26px 22px;
  }

  .image-panel {
    margin-left: -20px;
    margin-right: -20px;
    border-left: 0;
    border-right: 0;
  }

  .pdf-reference-grid,
  .split-note,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .next-band {
    text-align: left;
  }

  .next-link {
    font-size: 21px;
  }
}
