:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --ivory: #fbf9f3;
  --ink: #19382d;
  --deep: #102b21;
  --body: #34483c;
  --muted: #526359;
  --line: #d9dcd0;
  --soft: #edf0e7;
  --serif: "Songti SC", STSong, "Noto Serif CJK SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 1rem/1.7 var(--sans); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a, button { color: inherit; }
a { text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #9a6035; outline-offset: 4px; }
.wrap { width: min(calc(100% - 6rem), 76rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 5;
  top: .4rem;
  left: 1rem;
  padding: .55rem .8rem;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.65rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  color: var(--ink);
  font: 700 1.4rem/1 var(--serif);
  white-space: nowrap;
}
.brand img { flex: none; width: 36px; border-radius: .4rem; }
.masthead nav, .site-footer nav { display: flex; gap: clamp(1rem, 2.9vw, 2.5rem); font-size: .875rem; }
.masthead nav a, .site-footer nav a { padding-block: .45rem; }
.masthead nav a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.masthead .button { justify-self: end; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 2.75rem;
  padding: .55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.button-outline { color: var(--ink); background: transparent; border-color: #adbbaf; }
.button-outline:hover { background: var(--soft); border-color: var(--ink); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover { background: #2d5341; }
.button-light { color: var(--ink); background: #f7f4eb; }
.button-light:hover { background: #e0e6d8; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
}
.text-link:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero {
  padding-block: clamp(1.3rem, 2.4vw, 2.1rem) 2rem;
  background: radial-gradient(ellipse 58% 47% at 50% 78%, #e5e9dd, transparent 95%), var(--paper);
}
.hero-tabs {
  display: flex;
  width: fit-content;
  gap: .2rem;
  margin: 0 auto clamp(1.05rem, 1.9vw, 1.7rem);
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #eeeae0;
}
.hero-tabs button {
  min-height: 2.4rem;
  padding: .24rem 1rem;
  border: 1px solid transparent;
  border-radius: .35rem;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
}
.hero-tabs button:hover { color: var(--ink); }
.hero-tabs button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--ivory);
  color: var(--ink);
}
.hero-copy { text-align: center; }
.hero h1 { color: var(--ink); font: 700 clamp(2.25rem, 4.4vw, 4.05rem)/1.13 var(--serif); }
.hero h1 span { display: inline-block; }
.headline-accent { color: #295342; }
.hero-copy p { max-width: 37em; margin: 1rem auto 0; color: var(--muted); font-size: clamp(.92rem, 1.28vw, 1.04rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem 1.35rem; margin-top: 1.3rem; }
.device-stage {
  display: grid;
  grid-template-columns: minmax(0, 29fr) minmax(0, 56fr) minmax(0, 15fr);
  gap: clamp(.55rem, 1.7vw, 1.4rem);
  align-items: end;
  max-width: 72.5rem;
  margin: clamp(1.7rem, 4.2vw, 3.65rem) auto 0;
}
.device { display: grid; gap: .65rem; min-width: 0; }
.device-frame {
  display: block;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow .18s;
  box-shadow: 0 16px 30px -18px #0d261b80;
  cursor: zoom-in;
}
.device-frame:hover { box-shadow: 0 18px 32px -16px #0d261ba3; }
.device-frame img { width: 100%; }
.tablet-frame { padding: 7px; border-radius: .85rem; border: 1px solid #33493e; background: #203a2f; }
.tablet-frame img { border-radius: .46rem; }
.monitor-frame { display: grid; justify-items: center; overflow: visible; }
.monitor-frame, .monitor-frame:hover { box-shadow: none; }
.monitor-display {
  display: block;
  width: 100%;
  padding: clamp(3px, .7vw, 10px) clamp(3px, .7vw, 10px) clamp(6px, 1.1vw, 15px);
  border: 1px solid #44534a;
  border-radius: clamp(.35rem, 1.2vw, .9rem);
  background: linear-gradient(155deg, #33473d, #152720 65%);
  box-shadow: 0 21px 34px -26px #142a20b3;
}
.monitor-display img { border-radius: clamp(.14rem, .5vw, .4rem); }
.monitor-stand {
  width: 20%;
  height: clamp(.52rem, 2.28vw, 2rem);
  background: linear-gradient(90deg, #6a7a6e, #a0aaa0 51%, #59695e);
  clip-path: polygon(22% 0, 78% 0, 92% 100%, 8% 100%);
}
.monitor-base {
  width: 38%;
  height: clamp(3px, .55vw, 8px);
  border-radius: .5rem .5rem .2rem .2rem;
  background: linear-gradient(#89998c, #53695a);
  box-shadow: 0 .28rem .65rem #0d261b35;
}
.phone-frame {
  padding: 5px;
  border: 1px solid #35463e;
  border-radius: 1.32rem;
  background: #24352d;
}
.phone-frame img {
  border-radius: 1rem;
  background: #f8f5ef;
}
.device figcaption { display: flex; justify-content: center; flex-wrap: wrap; align-items: baseline; gap: .08rem .45rem; color: var(--muted); font-size: .79rem; text-align: center; }
.device figcaption b { color: var(--ink); font-size: .82rem; }
.demo-note { margin-top: .9rem; color: var(--muted); font-size: .74rem; text-align: center; }
.hero-ai {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1.25rem, 3.1vw, 2.8rem) clamp(1rem, 2.5vw, 2.2rem);
}
.hero-ai-status {
  width: fit-content;
  padding: .16rem 0;
  border-bottom: 1px solid #a49b81;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 650;
}
.hero-ai h2 {
  margin-top: .8rem;
  color: var(--ink);
  font: 700 clamp(2.45rem, 4.35vw, 4.15rem)/1.09 var(--serif);
}
.hero-ai h2 span { display: block; }
.hero-ai-intro { max-width: 23em; margin-top: 1.2rem; color: var(--muted); }
.hero-ai .button { margin-top: 1.5rem; }
.hero-ai-example {
  padding: clamp(.55rem, 1.2vw, 1rem);
  border: 1px solid #d6d4c6;
  border-radius: .7rem;
  background: var(--ivory);
  box-shadow: 0 20px 34px -29px #27392c9e;
}
.hero-ai-photo {
  display: block;
  overflow: hidden;
  border-radius: .35rem;
  cursor: zoom-in;
}
.hero-ai-photo img { width: 100%; }
.hero-ai-example figcaption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: .55rem;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 650;
  text-align: center;
}
.hero-ai-example figcaption small {
  grid-column: 1 / -1;
  margin-top: .16rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 400;
}

.section { padding-block: clamp(3rem, 6.05vw, 5.55rem); scroll-margin-top: .75rem; }
.section-header { margin-bottom: clamp(1.5rem, 3.1vw, 2.55rem); }
.section-header h2, .closing h2 { color: var(--ink); font: 700 clamp(1.85rem, 3.55vw, 3.1rem)/1.2 var(--serif); }
.section-header p { margin-top: .65rem; color: var(--muted); }
.workflow { background: var(--ivory); border-block: 1px solid var(--line); }
.workflow-layout { display: grid; grid-template-columns: minmax(9rem, .24fr) minmax(0, 1fr); gap: clamp(1rem, 3.7vw, 3rem); align-items: start; }
.workflow-nav { display: grid; align-content: start; gap: .22rem; }
.workflow-nav button {
  min-height: 3.15rem;
  padding: .62rem .9rem;
  border: 1px solid transparent;
  border-radius: .42rem;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  text-align: left;
  font-size: .92rem;
  font-weight: 650;
}
.workflow-nav button:hover { background: #edf0e7; }
.workflow-nav button[aria-selected="true"] {
  border-color: #cad7c9;
  box-shadow: inset 3px 0 var(--ink);
  background: #e7ede3;
  color: var(--ink);
}
.workflow-nav[hidden] + .workflow-panels { grid-column: 1 / -1; }
.workflow-panel { min-width: 0; }
.workflow-panel + .workflow-panel:not([hidden]) { margin-top: 1.8rem; }
.workflow-nav:not([hidden]) + .workflow-panels .workflow-panel { margin-top: 0; }
.workflow-panel h3 { margin-bottom: .85rem; color: var(--ink); font-size: clamp(1.08rem, 2vw, 1.46rem); }
.shot { display: block; overflow: hidden; border: 1px solid #d8decf; border-radius: .55rem; background: #f0f1e8; cursor: zoom-in; }
.shot:hover { border-color: #648171; }
.shot img { width: 100%; }
.shot-wide { max-width: 55rem; }
.measure-shots, .factory-shots, .delivery-shots { display: grid; gap: .8rem; align-items: start; }
.measure-shots { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.stacked-shots { display: grid; gap: .8rem; }
.factory-shots { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.factory-paper { background: #ebece4; }
.factory-paper img { max-height: 26rem; object-fit: contain; }
.delivery-shots { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.factory-shots figcaption, .operations figcaption, .scene-sample figcaption {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .78rem;
}

.scenes-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.15rem, 4vw, 3.25rem); align-items: start; }
.garment-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: .7rem; background: #e1d7c6; }
.garment-group img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.scene-list { border-top: 1px solid #cdd5c8; }
.scene-list div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: .7rem; padding-block: .86rem; border-bottom: 1px solid #cdd5c8; }
.scene-list dt { color: var(--ink); font-weight: 700; }
.scene-list dd { color: var(--muted); font-size: .9rem; }
.scene-sample { margin-top: 1rem; }
.customization { border-top: 1px solid var(--line); background: var(--ivory); }
.customization .section-header p { max-width: 37em; }
.customization-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.3rem);
  align-items: start;
}
.customization-list { border-top: 1px solid var(--line); }
.customization-list div {
  display: grid;
  grid-template-columns: 5.25em minmax(0, 1fr);
  gap: .85rem;
  align-items: baseline;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line);
}
.customization-list dt { color: var(--ink); font-weight: 700; }
.customization-list dd { color: var(--muted); font-size: .94rem; }
.customization-contact { display: grid; gap: .85rem; margin-top: 1.4rem; }
.customization-contact p { color: var(--muted); font-size: .89rem; }
.customization-example {
  padding: clamp(.65rem, 2vw, 1.4rem);
  border: 1px solid #dce1d6;
  border-radius: .7rem;
  background: var(--soft);
}
.customization-example img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.customization-example figcaption { margin-top: .45rem; color: var(--muted); font-size: .78rem; }
.operations { border-top: 1px solid var(--line); background: var(--soft); }
.operations-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 2.4vw, 2rem); }
.operation-side { display: grid; gap: 1rem; }

.closing { background: var(--deep); }
.closing-inner { display: grid; min-height: 16rem; grid-template-columns: minmax(0, 1fr) minmax(12rem, .62fr); align-items: stretch; }
.closing-copy { align-self: center; padding: 2.1rem 1rem 2.1rem 0; }
.closing h2 { color: var(--paper); margin-bottom: 1.25rem; font-size: clamp(1.65rem, 3.2vw, 2.6rem); }
.closing img { width: 100%; height: 100%; max-height: 17rem; object-fit: cover; object-position: center 74%; }
.site-footer { border-top: 1px solid #cdd4c7; background: var(--paper); }
.footer-inner { min-height: 5.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; padding-block: 1rem; }
.footer-inner .brand { font-size: 1.16rem; }
.footer-inner .brand img { width: 30px; }
.footer-inner small { font-size: .77rem; color: var(--muted); }
.site-footer nav { margin-inline-start: auto; gap: 1rem; }
.image-dialog { width: min(72rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--ivory); color: var(--body); }
.image-dialog::backdrop { background: #10291fba; }
.image-dialog form { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.image-dialog img { max-height: min(70svh, 50rem); margin-inline: auto; object-fit: contain; }
.image-dialog figcaption { margin-top: .55rem; text-align: center; font-size: .83rem; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 3.5rem); }
  .device-stage { gap: .65rem; }
  .device figcaption { font-size: .75rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2.25rem); }
  .masthead-inner { min-height: 3.7rem; grid-template-columns: 1fr auto; }
  .masthead nav { display: none; }
  .masthead .brand img { width: 30px; height: 30px; }
  .masthead .brand { font-size: 1.2rem; }
  .hero { padding-block: 1rem 1.4rem; }
  .hero-ai { grid-template-columns: 1fr; gap: 1.25rem; max-width: 32rem; padding-block: .2rem .35rem; }
  .hero-ai h2 { font-size: clamp(1.9rem, 7.2vw, 3.2rem); }
  .hero-ai h2 span { display: inline; }
  .hero-ai-intro { margin-top: .7rem; font-size: .92rem; }
  .hero-ai .button { margin-top: .85rem; }
  .hero-copy p { max-width: 26em; margin-top: .7rem; }
  .hero-actions { margin-top: .8rem; gap: .3rem .9rem; }
  .device-stage {
    grid-template-columns: minmax(0, 2.2fr) minmax(4.25rem, 1fr);
    column-gap: .75rem;
    row-gap: .65rem;
    max-width: 32rem;
    margin-top: 1.3rem;
  }
  .device-web { grid-column: 1 / -1; grid-row: 1; }
  .device-tablet { grid-column: 1; grid-row: 2; }
  .device-phone { grid-column: 2; grid-row: 2; justify-self: center; width: min(100%, 5.65rem); }
  .device { gap: .27rem; }
  .device figcaption { font-size: .71rem; }
  .device figcaption b { font-size: .74rem; }
  .tablet-frame { padding: 4px; border-radius: .55rem; }
  .tablet-frame img { border-radius: .28rem; }
  .phone-frame { padding: 3px; border-radius: .65rem; }
  .phone-frame img { border-radius: .43rem; }
  .demo-note { margin-top: .5rem; }
  .workflow-layout { grid-template-columns: 1fr; gap: 1rem; }
  .workflow-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .workflow-nav button { min-height: 2.75rem; padding: .32rem .15rem; text-align: center; font-size: .76rem; line-height: 1.35; }
  .workflow-nav button[aria-selected="true"] { box-shadow: inset 0 -2px var(--ink); }
  .scenes-layout, .operations-grid { grid-template-columns: 1fr; }
  .customization-layout { grid-template-columns: 1fr; }
  .customization-list div { grid-template-columns: max-content minmax(0, 1fr); gap: .65rem; }
  .operation-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .closing-inner { min-height: 10rem; grid-template-columns: minmax(0, 1fr) minmax(6rem, .38fr); }
  .closing-copy { padding-block: 1.4rem; }
  .closing h2 { margin-bottom: .72rem; }
  .footer-inner small { flex-basis: 100%; order: 1; }
}
@media (max-width: 390px) {
  .wrap { width: calc(100% - 1.65rem); }
  .hero h1 { font-size: 2.02rem; }
  .device-phone { width: min(100%, 5.1rem); }
  .device-stage { column-gap: .45rem; }
}
@media (min-width: 980px) and (max-height: 950px) {
  .device-stage { max-width: 69rem; margin-top: clamp(1.5rem, 3vw, 2.3rem); }
}
@media (max-width: 390px) and (max-height: 700px) {
  .hero { padding-top: .65rem; }
  .hero-tabs { margin-bottom: .55rem; }
  .hero-tabs button { min-height: 2.25rem; }
  .hero h1 { font-size: 1.86rem; }
  .hero-copy p { margin-top: .55rem; font-size: .85rem; line-height: 1.55; }
  .hero-actions { margin-top: .55rem; }
  .device-stage { row-gap: .35rem; margin-top: .55rem; grid-template-columns: minmax(0, 1.92fr) minmax(4.25rem, 1fr); }
  .device-web { justify-self: center; width: min(100%, 13.65rem); }
  .device-tablet { justify-self: end; width: min(100%, 10.1rem); }
  .device-phone { width: min(100%, 4.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .device-frame { transition: none; }
}
