:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #64707d;
  --line: #d9dee5;
  --paper: #f6f7f9;
  --brand: #0f766e;
  --accent: #b58137;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

.text-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 7vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 88px 7vw 72px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(181, 129, 55, 0.16), transparent 46%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: 32px;
}

.contact-list.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 380px;
}

.contact-card {
  display: grid;
  gap: 4px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.contact-card.primary {
  border-color: rgba(15, 118, 110, 0.42);
  background: #f8fbfa;
}

.contact-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.contact-card strong {
  color: var(--ink);
  font-size: 31px;
  line-height: 1.1;
}

.contact-card em {
  color: var(--brand);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

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

.hero-panel span,
.hero-panel a {
  display: grid;
  min-height: 116px;
  place-items: center;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.tryon-section {
  padding: 76px 7vw;
  background: #111827;
  color: var(--white);
}

.tryon-heading {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 30px;
}

.tryon-heading h2 {
  margin-bottom: 0;
  font-size: 38px;
}

.tryon-heading p:last-child {
  margin-bottom: 0;
  color: #c7d2de;
  font-size: 18px;
}

.tryon-app {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 380px);
  gap: 22px;
  align-items: start;
}

.tryon-stage {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    #1f2937;
}

.tryon-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.empty-state strong {
  font-size: 24px;
}

.empty-state span {
  color: #c7d2de;
}

.empty-state.is-hidden {
  display: none;
}

.tryon-controls {
  display: grid;
  gap: 16px;
}

.upload-box,
.control-block {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-box {
  cursor: pointer;
}

.upload-box span {
  color: #c7d2de;
  font-size: 14px;
}

.upload-box strong {
  font-size: 21px;
}

.upload-box input {
  width: 100%;
}

.control-block h3 {
  margin: 0;
  font-size: 18px;
}

.style-hint {
  margin: -4px 0 0;
  color: #c7d2de;
  font-size: 14px;
}

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

.style-option,
.solid-button,
.ghost-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.style-option {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 70px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-align: left;
}

.style-option strong,
.style-option span {
  display: block;
}

.style-option strong {
  font-size: 15px;
  line-height: 1.2;
}

.style-option span {
  color: #c7d2de;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.style-option.is-active {
  border-color: #46c5b6;
  background: linear-gradient(135deg, #0f766e, #155e75);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.style-option.is-active span {
  color: #dffcf7;
}

.sliders label {
  display: grid;
  gap: 6px;
  color: #dbe4ee;
  font-size: 14px;
  font-weight: 700;
}

.sliders input {
  width: 100%;
  accent-color: #0f766e;
}

.action-row,
.consult-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.solid-button,
.ghost-button {
  display: grid;
  place-items: center;
  padding: 0 16px;
  text-align: center;
}

.solid-button {
  background: var(--brand);
  color: var(--white);
}

.solid-button.gold {
  background: var(--accent);
}

.ghost-button {
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--white);
}

.ghost-button.light {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.simple-header nav {
  gap: 18px;
}

.ad-tryon-page {
  background: #f7f8fa;
}

.ad-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 74px 7vw 64px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(17, 24, 39, 0.94)),
    #111827;
  color: var(--white);
}

.ad-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
}

.ad-hero .lead {
  color: #dbe4ee;
}

.ad-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 12px;
  margin-top: 30px;
}

.ad-hero-actions .solid-button,
.ad-hero-actions .ghost-button {
  min-height: 56px;
}

.ad-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.24);
}

.ad-proof strong {
  grid-column: 1 / -1;
  font-size: 22px;
}

.ad-proof span {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.ad-tryon {
  padding-top: 70px;
}

.qr-consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 32px;
  align-items: center;
  background: #eef3f2;
}

.qr-copy .consult-actions {
  max-width: 520px;
  margin-top: 24px;
}

.qr-copy .ghost-button {
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--brand);
}

.kefu-qr-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.kefu-qr-card img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: 8px;
}

.kefu-qr-card figcaption {
  color: var(--brand);
  font-weight: 700;
  text-align: center;
}

.simple-ai-tryon {
  padding: 34px 7vw 48px;
  background: #111827;
  color: var(--white);
}

.simple-ai-head {
  max-width: 860px;
  margin-bottom: 24px;
}

.simple-ai-head h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 7vw, 76px);
}

.simple-ai-head .lead {
  color: #dbe4ee;
}

.tryon-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tryon-promises span {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(153, 246, 228, 0.32);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.18);
  color: #ccfbf1;
  font-size: 14px;
  font-weight: 700;
}

.simple-ai-grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.simple-controls {
  order: 1;
}

.simple-preview {
  order: 2;
  min-height: 480px;
}

.photo-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 480px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    #1f2937;
}

.photo-preview img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.photo-preview img.is-visible {
  display: block;
}

.hidden-adjust {
  display: none;
}

.ai-tryon-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(181, 129, 55, 0.5);
  border-radius: 8px;
  background: rgba(181, 129, 55, 0.14);
}

.ai-tryon-panel h3 {
  margin-bottom: 4px;
}

.ai-tryon-panel p {
  margin-bottom: 0;
  color: #dbe4ee;
  font-size: 14px;
}

.ai-tryon-status {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbe4ee;
}

.ai-tryon-status.working {
  color: #fde68a;
}

.ai-tryon-status.ok {
  color: #99f6e4;
}

.ai-tryon-status.error {
  color: #fecaca;
}

.dark-text {
  color: var(--ink);
}

.dark-text p:last-child {
  color: var(--muted);
}

.ai-result-section {
  background: var(--white);
}

.ai-result-section.hidden {
  display: none;
}

.ai-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 360px);
  gap: 28px;
  align-items: start;
}

.ai-result-grid img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(31, 41, 51, 0.08);
}

.ai-result-actions {
  display: grid;
  gap: 12px;
}

.ghost-button.teal {
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--brand);
}

.privacy-note {
  margin: 0;
  color: #c7d2de;
  font-size: 14px;
}

.consult-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  background: #eef3f2;
}

.consult-panel h2 {
  margin-bottom: 12px;
}

.consult-panel .solid-button {
  min-height: 58px;
}

.consult-panel .ghost-button {
  min-height: 58px;
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--brand);
}

.section {
  padding: 76px 7vw;
}

.compact-hero {
  min-height: 640px;
}

.section h2 {
  margin-bottom: 28px;
  font-size: 32px;
  letter-spacing: 0;
}

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

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

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.prose {
  max-width: 920px;
}

.prose h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: 28px;
}

.prose p,
.prose li,
.info-list dd {
  color: var(--muted);
  font-size: 18px;
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  font-weight: 700;
}

.info-list dd {
  margin: 0;
}

article h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

article p,
.about,
.steps span {
  color: var(--muted);
}

.band {
  background: #eef3f2;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 150px;
  padding: 24px;
  border-top: 4px solid var(--brand);
  background: var(--white);
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.about {
  max-width: 860px;
  font-size: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 7vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero,
  .grid,
  .grid.three,
  .area-grid,
  .steps,
  .tryon-app,
  .consult-panel,
  .ad-hero,
  .qr-consult,
  .ai-result-grid,
  .simple-ai-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 6vw;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .simple-header {
    min-height: auto;
  }

  .simple-header nav {
    gap: 12px;
    font-size: 14px;
  }

  .hero,
  .section,
  .tryon-section,
  .simple-ai-tryon {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .simple-ai-tryon {
    padding-top: 32px;
  }

  .simple-preview {
    min-height: 360px;
  }

  .tryon-stage {
    min-height: 420px;
  }

  .action-row,
  .consult-actions,
  .ad-hero-actions {
    grid-template-columns: 1fr;
  }

  .style-options {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

  .contact-card strong {
    font-size: 28px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
