/* Shared visual system. Page-specific styles load before this file. */
:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  --content-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 88px;
  --dock-h: 0px;
  --dock-safe: 0px;
  --radius-structure: 16px;
  --radius: 16px;
  --space-section: 88px;
  --space-utility: 72px;
  --ink: #162b43;
  --muted: #53677d;
  --muted-strong: #4b627a;
  --line: #dce4ec;
  --font-display-size: 56px;
  --font-page-size: 44px;
  --font-section-size: 36px;
  --font-subhead-size: 22px;
  --font-body-size: 16px;
  --font-lead-size: 17px;
  --font-meta-size: 13px;
  --line-display: 1.25;
  --line-page: 1.35;
  --line-section: 1.45;
  --line-subhead: 1.5;
  --line-body: 1.75;
  --line-lead: 1.8;
  --line-meta: 1.6;
  font-family: var(--font-sans);
  font-synthesis: none;
}

html {
  scroll-padding-top: var(--header-h);
  scroll-padding-bottom: var(--dock-safe);
}

body,
button,
input {
  font-family: var(--font-sans);
}

body {
  color: var(--ink);
}

.wrap {
  width: min(var(--content-max), calc(100% - clamp(40px, 8vw, 96px)));
}

p {
  font-size: var(--font-body-size);
  line-height: var(--line-body);
}

h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 600;
}

h3 {
  font-weight: 500;
}

.header {
  min-height: var(--header-h);
}

.nav {
  min-height: var(--header-h);
}

.brand-name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.navlinks,
.nav-contact {
  font-size: 15px;
}

.navlinks {
  gap: 28px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: var(--line-meta);
}

.hero-grid {
  min-height: clamp(600px, 52vw, 680px);
  gap: 40px;
}

.hero-copy {
  padding: 48px 0;
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: var(--line-display);
  letter-spacing: 0;
  margin: 24px 0 18px;
}

.hero h1 .hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero .hero-product-label {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero-keywords {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.story-heading h2 {
  font-size: 44px;
}

.wearing-copy h2 {
  font-size: 46px;
}

.spectrum-heading h2 {
  font-size: 44px;
}

.hero-description,
.section-head p {
  font-size: var(--font-lead-size);
  line-height: var(--line-lead);
}

.hero-footnote,
.image-label,
.map-caption,
.footer p,
.footer-bottom {
  font-size: var(--font-meta-size);
  line-height: var(--line-meta);
}

.hero-visual {
  height: clamp(500px, 42vw, 620px);
}

.section {
  padding: var(--space-section) 0;
}

.section-head {
  margin-bottom: 38px;
}

.section-head h2,
.section-title,
.network-preview h2,
.about-grid h2,
.detail-sticky h2,
.faq-grid h2 {
  font-size: var(--font-section-size);
  font-weight: 600;
  line-height: var(--line-section);
  letter-spacing: 0;
}

.section-head p,
.network-preview p,
.showcase-copy p,
.product-info p,
.detail-sticky p,
.detail-row p,
.about-note p,
.visit-guide p,
details p {
  color: var(--muted);
  font-size: var(--font-body-size);
  line-height: var(--line-body);
}

.feature h3,
.process-item h3,
.about-note h3,
.visit-guide h3 {
  font-size: var(--font-subhead-size);
  line-height: var(--line-subhead);
}

.feature p,
.process-item p {
  color: var(--muted);
  font-size: var(--font-body-size);
  line-height: var(--line-body);
}

.feature .sub,
.feature-num,
.process-item .number,
.detail-row .number,
.footer-title {
  font-size: var(--font-meta-size);
  line-height: var(--line-meta);
}

.feature .sub {
  letter-spacing: 0.08em;
}

.feature-num {
  color: var(--muted-strong);
}

.btn {
  gap: 10px;
  min-height: 52px;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.btn svg {
  flex: 0 0 17px;
}

.actions {
  gap: 12px;
}

.product-top {
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.product-info h1,
.page-intro h1 {
  font-size: var(--font-page-size);
  font-weight: 600;
  line-height: var(--line-page);
  letter-spacing: 0;
}

.product-info .keywords {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.product-info .note,
.center-note,
.status,
.disabled-btn {
  font-size: var(--font-meta-size);
  line-height: var(--line-meta);
}

.product-showcase,
.gallery-main,
.map-box,
.center-detail,
dialog,
.model-stage {
  border-radius: var(--radius-structure);
}

.gallery-tabs button,
.center-tabs button,
.model-details button {
  min-height: 44px;
}

.gallery-zoom {
  min-height: 44px;
}

.gallery-tabs button,
.center-tabs button {
  font-size: 14px;
}

.text-link {
  font-size: 15px;
}

.page-intro {
  padding: 48px 0 40px;
}

.page-intro h1 {
  margin: 16px 0;
}

.consult-band {
  padding: 52px 0;
}

.consult-band h2 {
  font-size: 30px;
  line-height: var(--line-section);
}

.mobile-dock {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

#main {
  padding-bottom: var(--dock-safe);
}

.footer {
  padding-bottom: calc(26px + var(--dock-safe));
}

#product,
#digital,
#about,
#color-selection,
#wearing-care {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.process {
  gap: 22px;
}

.process-item {
  min-width: 0;
}

.digital .process-item.reveal.pending {
  opacity: 1;
  transform: none;
}

.process-item p {
  color: #b7c9dc;
}

.detail-row.is-active h3,
.process-item.is-active h3 {
  color: var(--blue);
}

.motion-ready .reveal {
  transition: opacity 0.85s ease var(--reveal-delay, 0ms), transform 0.95s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal.pending {
  opacity: 0;
  transform: translateY(36px);
}

.motion-enabled .hero-photo,
.motion-enabled .showcase-img {
  will-change: transform;
}

.motion-enabled .scroll-feature,
.motion-enabled .scroll-title,
.motion-enabled .hero-photo,
.motion-enabled .showcase-img {
  transition: none;
  will-change: transform, opacity;
}

.motion-enabled .scroll-feature {
  opacity: 0.55;
}

.product-showcase {
  isolation: isolate;
}

.showcase-copy {
  position: relative;
  background: var(--pale);
}

.process {
  position: relative;
  padding-top: 12px;
}

.process:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--flow-progress, 0%);
  height: 3px;
  background: #83bfff;
  transition: width 0.55s ease;
  box-shadow: 0 0 15px #74b5ff55;
}

.process-item {
  border-color: #577697;
  transition: border-color 0.4s, background 0.4s;
}

.process-item .number {
  transition: color 0.4s, transform 0.4s;
  transform-origin: left center;
}

.process-item.is-active {
  border-color: #a8d1ff;
}

.process-item.is-active .number {
  color: #fff;
  transform: translateY(-4px) scale(1.06);
}

.detail-row {
  border-left: 2px solid transparent;
  padding-left: 22px;
  transition: border-color 0.4s;
}

.detail-row.is-active {
  border-left-color: var(--blue);
}

.top-progress {
  height: 3px;
}

.spectrum-story,
.helmet-story {
  height: clamp(180svh, 200svh, 220svh);
}

.spectrum-sticky,
.helmet-sticky {
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
}

.spectrum-sticky {
  min-height: 0;
}

.spectrum-copy {
  opacity: calc(0.55 + var(--finish) * 0.45);
}

.story-disclaimer,
.color-caption small,
.spectrum-copy small {
  color: var(--muted-strong);
}

@media (max-width: 1100px) {
  :root {
    --space-section: 72px;
    --space-utility: 64px;
  }

  .navlinks {
    gap: 16px;
    font-size: 14px;
  }

  .nav-contact {
    font-size: 14px;
    padding: 11px 16px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .product-info h1 {
    font-size: 40px;
  }

  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 80px;
    --space-section: 64px;
    --space-utility: 56px;
  }

  .nav {
    min-height: var(--header-h);
  }

  .menu {
    display: block;
    margin-left: auto;
  }

  .nav-contact {
    display: none;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 20px #18335010;
  }

  .navlinks.open {
    display: flex;
  }

  .hero-grid,
  .product-top,
  .detail-grid,
  .centers-layout,
  .network-preview,
  .about-grid,
  .faq-grid,
  .wearing-grid {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    height: clamp(380px, 45vw, 460px);
  }

  .hero-copy {
    padding: 40px 0 0;
  }

  .hero-visual {
    height: 500px;
    margin: 20px auto 12px;
    max-width: 560px;
  }

  .product-info {
    grid-row: 1;
  }

  .detail-sticky,
  .centers-map {
    position: static;
  }

  .centers-map {
    grid-row: 2;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2,
  .section-title,
  .network-preview h2,
  .about-grid h2,
  .detail-sticky h2,
  .faq-grid h2 {
    font-size: 32px;
  }

  .spectrum-story {
    height: clamp(160svh, 175svh, 190svh);
  }

  .helmet-story {
    height: clamp(160svh, 175svh, 190svh);
  }

  .spectrum-sticky,
  .helmet-sticky {
    min-height: 0;
  }
}

@media (min-width: 801px) and (max-width: 960px) {
  /* Keep the homepage product signal visible while task pages become single-column. */
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 600px;
    gap: 24px;
  }

  .hero-copy {
    padding: 32px 0;
  }
}

@media (max-width: 800px) {
  :root {
    --header-h: 74px;
    --dock-h: 66px;
    --dock-safe: calc(var(--dock-h) + env(safe-area-inset-bottom));
    --space-section: 56px;
    --space-utility: 48px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 10px);
  }

  .header,
  .nav {
    min-height: var(--header-h);
  }

  .navlinks {
    top: var(--header-h);
  }

  .brand-name {
    font-size: 21px;
  }

  .hero-copy {
    padding: 30px 0 0;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.3;
    margin: 16px 0 12px;
  }

  .hero .hero-product-label {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .story-heading h2 {
    font-size: 30px;
  }

  .wearing-copy h2 {
    font-size: 32px;
  }

  .spectrum-heading h2 {
    font-size: 28px;
  }

  .hero-keywords {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero .actions {
    margin-top: 20px;
  }

  .hero-visual {
    height: 370px;
    margin: 20px auto 12px;
  }

  .section {
    padding: var(--space-section) 0;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-head h2,
  .section-title,
  .network-preview h2,
  .about-grid h2,
  .detail-sticky h2,
  .faq-grid h2 {
    font-size: 28px;
    line-height: 1.4;
  }

  .section-head p,
  .network-preview p,
  .showcase-copy p,
  .product-info p,
  .detail-sticky p,
  .detail-row p,
  .about-note p,
  .visit-guide p,
  details p {
    font-size: 16px;
    line-height: 1.75;
  }

  .feature h3,
  .process-item h3,
  .about-note h3,
  .visit-guide h3 {
    font-size: 20px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 32px;
  }

  .process-item {
    padding: 22px 0;
  }

  .product-top {
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .product-info h1,
  .page-intro h1 {
    font-size: 32px;
    line-height: 1.35;
  }

  .product-info .keywords {
    font-size: 20px;
  }

  .gallery-main {
    height: 430px;
  }

  .gallery-tabs button,
  .center-tabs button,
  .model-details button {
    min-height: 44px;
  }

  .gallery-tabs button {
    justify-content: center;
  }

  .mobile-dock {
    display: flex;
    min-height: var(--dock-h);
  }

  .mobile-dock a,
  .mobile-dock button {
    min-height: 44px;
    font-size: 14px;
    padding: 12px 10px;
  }

  .page-intro {
    padding: 32px 0 28px;
  }

  .spectrum-story {
    height: clamp(150svh, 165svh, 180svh);
  }

  .helmet-story {
    height: clamp(150svh, 165svh, 180svh);
  }

  .spectrum-sticky,
  .helmet-sticky {
    top: var(--header-h);
    height: calc(100svh - var(--header-h) - var(--dock-safe));
  }

  .spectrum-copy {
    opacity: calc(0.6 + var(--finish) * 0.4);
  }

  .hero h1 .hero-title-line {
    white-space: nowrap;
  }

  .hero h1 br,
  .section-head h2 br,
  .section-title br,
  .network-preview h2 br,
  .about-grid h2 br {
    display: none;
  }
}

/* 2026-10-28 product page UI refinement: a framed product gallery and compact evidence spacing. */
.gallery-main {
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(14px, 2.2vw, 24px);
  background: linear-gradient(145deg, #eef4f8 0%, #e2eaf1 100%);
  box-shadow: inset 0 0 0 1px #ffffffaa, 0 18px 42px #18335018;
}

.gallery-picture {
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px #18335016;
}

.gallery-picture img {
  border-radius: inherit;
  mix-blend-mode: multiply;
}

.gallery-zoom {
  right: clamp(22px, 3vw, 34px);
  bottom: clamp(22px, 3vw, 34px);
  border-color: #c9d6e2;
  background: #ffffffec;
  box-shadow: 0 8px 20px #18335018;
  backdrop-filter: blur(8px);
}

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

.gallery-tabs button {
  min-height: 66px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  background: #fbfcfe;
  box-shadow: 0 4px 14px #1833500b;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.gallery-tabs button:hover {
  transform: translateY(-1px);
  border-color: #9db9d2;
}

.gallery-tabs button[aria-pressed="true"] {
  border-color: var(--blue);
  background: #f1f7fd;
  box-shadow: inset 0 0 0 1px var(--blue), 0 8px 20px #0868c91a;
}

.gallery-tabs img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.detail-evidence {
  margin-top: 0;
  margin-bottom: 56px;
}

@media (max-width: 800px) {
  .gallery-main {
    max-width: none;
    padding: 12px;
  }

  .gallery-zoom {
    right: 22px;
    bottom: 22px;
  }

  .gallery-tabs button {
    min-height: 60px;
    padding: 6px;
  }

  .gallery-tabs img {
    width: 38px;
    height: 42px;
  }

  .detail-evidence {
    margin-bottom: 28px;
  }
}

@media (max-width: 380px) {
  .gallery-tabs {
    gap: 6px;
  }

  .gallery-tabs button {
    gap: 5px;
    font-size: 11px;
  }

  .gallery-tabs img {
    width: 32px;
    height: 36px;
  }
}

@media (min-width: 768px) and (max-width: 800px) {
  :root {
    --space-section: 64px;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    height: 460px;
  }
}

@media (max-width: 480px) {
  .hero-product-label {
    max-width: 100%;
  }

  .actions {
    gap: 10px;
  }

  .btn {
    padding-inline: 18px;
  }

  .product-info h1 {
    line-height: 1.2;
  }

  .product-info p {
    line-height: 1.6;
  }

  .product-info .keywords {
    margin-bottom: 12px;
  }

  .product-info .actions {
    margin-top: 18px;
  }

  .product-points {
    gap: 14px;
    padding: 16px 0;
  }

  .product-info .note {
    margin-top: 10px;
  }

  .color-hero {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .color-stage {
    height: 400px;
  }

  .color-image-stack {
    inset: -40px 8% 16%;
  }

  .color-image {
    object-position: center top;
  }

  .gallery-tabs {
    gap: 8px;
  }

  .gallery-tabs button {
    padding: 6px;
    gap: 6px;
    font-size: 12px;
  }

  .gallery-tabs img {
    width: 32px;
    height: 40px;
  }
}

@media (max-width: 360px) {
  .actions {
    gap: 6px;
  }

  .actions .btn {
    gap: 6px;
    padding-inline: 10px;
    font-size: 14px;
  }

  .product-info p {
    line-height: 1.5;
  }

  .product-points {
    padding: 12px 0;
  }

  .product-info .actions {
    flex-wrap: nowrap;
    margin-top: 6px;
  }

  .product-info .note {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.3;
  }
}

@media (max-width: 360px) and (max-height: 600px) {
  /* Preserve the full product intro above the fixed dock on short phones. */
  .hero-grid {
    row-gap: 16px;
  }

  .page-intro {
    padding-bottom: 18px;
  }

  .product-top {
    padding-top: 18px;
  }

  .product-info h1 {
    margin: 8px 0;
    line-height: 1.1;
  }

  .product-info .keywords {
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .product-points {
    gap: 8px;
    margin-top: 8px;
    padding: 6px 0;
  }

  .product-info .actions {
    margin-top: 0;
  }

  .product-info .note {
    margin-top: 0;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal.pending {
    opacity: 1;
    transform: none;
  }

  .hero-photo,
  .showcase-img,
  .process-item .number,
  .scroll-feature,
  .scroll-title,
  .spectrum-copy {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .process:before {
    display: none;
  }
}

/* Product detail evidence uses responsive WebP with a same-name JPG fallback. */
.product-picture {
  display: block;
  width: 100%;
}

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

.gallery-picture {
  height: 100%;
}

.gallery-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
}

.detail-sticky-gallery {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.detail-sticky-main {
  overflow: hidden;
  border-radius: 18px;
  background: #e9e7e4;
  isolation: isolate;
}

.detail-sticky-picture {
  height: clamp(220px, calc(100svh - 400px), 340px);
  margin: 0;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: normal;
}

.detail-sticky-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  margin: 0;
  border-radius: 0;
  mix-blend-mode: normal;
}

.detail-sticky-main[data-detail-index="1"] {
  background: linear-gradient(145deg, #d6d3ce, #ebe8e5);
}

.detail-sticky-main[data-detail-index="1"] img {
  mix-blend-mode: multiply;
}

.detail-sticky-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-sticky-thumbs button {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted-strong);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.detail-sticky-thumbs button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.detail-sticky-thumbs button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

.detail-sticky-thumbs button[aria-selected="true"] {
  border-color: var(--blue);
  background: #edf5ff;
  color: var(--blue);
}

.detail-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.detail-evidence-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.detail-evidence-picture {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f3f4f2;
}

.detail-evidence-picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f4f2;
}

.detail-evidence-card-buckle .detail-evidence-picture {
  background: #e9e5e0;
}

.detail-evidence-card-buckle .detail-evidence-picture img {
  background: transparent;
  mix-blend-mode: multiply;
}

.detail-evidence-copy {
  padding: 18px 20px 22px;
}

.detail-evidence-copy > span {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.detail-evidence-copy h3 {
  margin: 8px 0 10px;
  font-size: 20px;
}

.detail-evidence-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.material-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.image-dialog-picture img {
  max-height: 85dvh;
  margin: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .detail-sticky-picture {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .detail-sticky-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .detail-sticky-thumbs button {
    flex: 0 0 auto;
  }

  .detail-evidence {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .detail-evidence-copy {
    padding: 16px 18px 20px;
  }
}
