:root {
  --green: #8cb826;
  --green-deep: #90c31b;
  --green-bright: #39cd5e;
  --green-ink: #415b43;
  --mint: #f2ffd5;
  --mint-soft: #f6ffe2;
  --yellow: #ffd65d;
  --yellow-line: #d4d635;
  --ink: #252525;
  --ink-strong: #2c2c2c;
  --muted: #6a6a6a;
  --faint: #4b4b4b;
  --paper: #ffffff;
  --gray: #f6f6f6;
  --line: #e0e0e0;
  --navy: #282e53;
  --card: #ffffff;
  --shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --shell: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right))
    12px max(var(--gutter), env(safe-area-inset-left));
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-strong);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--green), var(--green-bright));
}

.nav-mid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
}

.lang-switch button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button.is-on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.lang-switch button:hover:not(.is-on) {
  border-color: var(--green);
  color: var(--green);
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

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

.nav-cta {
  min-height: 40px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
}

.wrap,
.section > *,
.stats,
.foot-main {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.hero {
  padding: 72px 0 56px;
  background: var(--gray);
}

.cert {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 8px 16px 6px;
  border: 1px solid var(--yellow-line);
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow,
.preview-kicker,
.stylist-kicker,
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 22px;
  border-radius: 50px;
  background: var(--green-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

h1 {
  max-width: none;
  font-size: clamp(32px, 5vw, 48px);
}

h1 span {
  display: inline;
}

h1 span + span::before {
  content: " ";
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
}

.lede {
  margin: 22px 0 0;
  color: var(--green);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.hero-copy {
  max-width: 40rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #8cb826 0%, #39cd5e 100%);
  color: #fff;
  box-shadow: #415b43 0 8px 0;
}

.btn-primary:hover {
  box-shadow: #39cd5e 0 8px 0;
}

.btn-ghost {
  background: #fff;
  border-color: #2c2c2c;
  color: #2c2c2c;
  box-shadow: #2c2c2c 0 8px 0;
}

.btn-ghost:hover {
  box-shadow: #39cd5e 0 8px 0;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  box-shadow: #2c2c2c 0 4px 0;
}

.stats-band {
  background: linear-gradient(to right, #4cc35c 0%, #91c322 100%);
  padding: 28px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stats dt {
  color: #252525;
  font-size: 14px;
  font-weight: 700;
}

.stats dd {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
}

.section {
  padding: 64px 0;
}

.band-white {
  background: #fff;
}

.band-gray {
  background: var(--gray);
}

.band-mint {
  background: linear-gradient(to bottom, #fff 0%, var(--mint) 100%);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.shot,
.preview,
.quad figure,
.book-card,
.compare article,
.pad,
.salon-grid blockquote,
.stage {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 28%;
}

.shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
  font-size: 14px;
  font-weight: 700;
}

.shot figcaption span {
  color: var(--green);
  font-size: 12px;
}

.plus {
  color: var(--green);
  font-size: 36px;
  font-weight: 900;
}

.section > .preview {
  width: min(720px, calc(100% - var(--gutter) * 2));
  margin: 28px auto 0;
  padding-bottom: 8px;
  text-align: center;
}

.preview-kicker {
  margin: 16px auto 0;
}

.preview .turntable {
  padding: 0 16px 8px;
  width: 100%;
}

.preview .stage {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  box-shadow: none;
}

.frame {
  overflow: hidden;
}

.preview .frame {
  aspect-ratio: 4 / 3;
}

.preview img,
.quad img,
.stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.preview figcaption {
  padding: 0 20px 18px;
  color: var(--muted);
  text-align: center;
}

.quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.quad figure {
  margin: 0;
}

.quad .frame {
  aspect-ratio: 1;
}

.quad figcaption {
  padding: 8px 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.book-card {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 12px;
  border-radius: 50px;
  background: var(--mint-soft);
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 700;
}

.stylist h3 {
  margin-bottom: 8px;
  font-size: 28px;
}

.stylist p,
.pad p {
  margin: 0;
  color: var(--muted);
}

.pad-lead {
  margin: 0 0 10px !important;
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 700;
}

.price {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.price dt {
  color: var(--muted);
  font-size: 13px;
}

.price dd {
  margin: 4px 0 0;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.book-btn {
  justify-self: start;
}

.compare,
.salon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.compare article,
.pad,
.salon-grid blockquote {
  margin: 0;
  padding: 22px;
}

.compare .is-next {
  outline: 2px solid var(--green-deep);
}

.compare ol,
.pad ol {
  margin: 0;
  padding-left: 1.15rem;
}

.compare li + li,
.pad li + li {
  margin-top: 8px;
}

.salon-grid blockquote p {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.salon-grid blockquote footer {
  color: var(--muted);
  font-size: 13px;
}

.kpi {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin: 24px auto 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.kpi p {
  margin: 0;
}

.kpi p + p {
  margin-top: 8px;
  color: var(--yellow);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.3;
}

.note {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin: 24px auto 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.note p {
  margin: 0;
}

.turntable {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.stage {
  position: relative;
  width: min(100%, 720px);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.stage.is-drag {
  cursor: grabbing;
}

.stage img {
  aspect-ratio: 1;
}

.hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 50px;
  background: rgba(44, 44, 44, 0.82);
  color: #fff;
  font-size: 12px;
}

.angle-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.angle {
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 50px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.angle.is-on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.viewer-shell {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
  margin-inline: auto;
}

.viewer {
  position: relative;
  overflow: hidden;
  min-height: min(48vh, 460px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--mint));
  box-shadow: var(--shadow);
}

.viewer canvas {
  width: 100%;
  height: min(48vh, 460px);
}

.viewer-ui {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 2;
  width: calc(100% - 40px);
}

.viewer-ui.is-ready {
  display: none;
}

.viewer-status {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.bar {
  overflow: hidden;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
}

.bar span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--green);
  transition: width 0.2s ease;
}

.viewer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.viewer-meta p {
  margin: 0;
  width: 100%;
}

.foot-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  background: transparent;
}

.foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.foot-model {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.foot-model-label {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.foot-actions .btn-ghost {
  color: #fff;
  border-color: #fff;
  box-shadow: rgba(255, 255, 255, 0.35) 0 4px 0;
}

.foot-actions .btn-ghost:hover {
  box-shadow: var(--green-bright) 0 4px 0;
}

.foot {
  background: var(--ink-strong);
  color: #fff;
}

.foot a {
  color: var(--yellow);
}

.foot-bar {
  margin: 0;
  padding: 16px max(var(--gutter), env(safe-area-inset-right))
    16px max(var(--gutter), env(safe-area-inset-left));
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 960px) {
  .section {
    padding: 48px 0;
  }

  .book-card {
    padding: 22px;
  }

  .stylist h3 {
    font-size: clamp(22px, 4.5vw, 28px);
  }
}

@media (max-width: 800px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand lang cta"
      "links links links";
    align-items: center;
    gap: 10px 12px;
    padding-block: 10px;
  }

  .brand {
    grid-area: brand;
    font-size: 20px;
  }

  .nav-mid {
    display: contents;
    margin-left: 0;
  }

  .lang-switch {
    grid-area: lang;
  }

  .nav-cta {
    grid-area: cta;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  .nav-links {
    grid-area: links;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .pair,
  .stats,
  .price,
  .compare,
  .salon-grid {
    grid-template-columns: 1fr;
  }

  .plus {
    justify-self: center;
    transform: rotate(90deg);
  }

  .hero {
    padding: 48px 0 40px;
    text-align: center;
  }

  h1 {
    max-width: none;
    margin-inline: auto;
  }

  h1 span:first-child {
    display: block;
  }

  h1 span + span::before {
    content: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .lede,
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .stats {
    text-align: center;
  }

  .section-head {
    text-align: left;
  }

  .shot figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .book-btn {
    width: 100%;
  }

  .viewer {
    min-height: min(42vh, 360px);
  }

  .viewer canvas {
    height: min(42vh, 360px);
  }

  .salon-grid blockquote p {
    font-size: clamp(17px, 4vw, 20px);
  }

  .kpi {
    padding: 22px 18px;
  }

  .foot-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .foot-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .foot-model {
    align-items: center;
    width: 100%;
  }

  .foot-model-label {
    white-space: normal;
    max-width: none;
    text-align: center;
  }

  .foot-model .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 18px;
  }

  .nav-cta {
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .cert {
    font-size: 12px;
    padding: 6px 12px 5px;
  }

  .btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .stats-band {
    padding: 20px 0;
  }

  .stats dd {
    font-size: clamp(18px, 5vw, 24px);
  }

  .section {
    padding: 40px 0;
  }

  .eyebrow,
  .preview-kicker,
  .stylist-kicker,
  .kicker {
    font-size: 13px;
    padding-inline: 16px;
  }

  .angle-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .angle {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .preview .turntable {
    padding-inline: 12px;
  }

  .hint {
    left: 10px;
    bottom: 10px;
    font-size: 11px;
  }

  .book-card {
    padding: 18px;
    gap: 18px;
  }

  .price dd {
    font-size: 18px;
  }

  .compare article,
  .pad,
  .salon-grid blockquote {
    padding: 18px;
  }

  .viewer-ui {
    inset: auto 12px 12px;
    width: calc(100% - 24px);
  }

  .viewer-meta .btn {
    width: 100%;
  }

  .foot-main {
    padding: 22px 0;
  }

  .foot-bar {
    font-size: 12px;
    line-height: 1.5;
    padding-block: 14px;
  }
}

@media (max-width: 360px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lang"
      "cta cta"
      "links links";
  }

  .nav-cta {
    width: 100%;
    justify-self: stretch;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    flex: none;
  }
}
