/* ============================================================
   Wearform Studio 官网
   色板沿用应用：纸白 / 墨蓝 / 朱红。
   字体与按钮保持营销页编辑向（Noto Serif SC、胶囊按钮），
   不要把应用顶栏 chrome 搬上来。
   ============================================================ */

:root {
  --ink: #24333e;
  --ink-deep: #1d2731;
  --paper: #fffdfa;
  --paper-2: #f5f2ec;
  --paper-3: #f1efea;
  --line: #e6e2dc;
  --accent: #e76250;
  --accent-deep: #d14e3c;
  --muted: #71808b;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  --shadow-soft: 0 20px 50px -24px rgba(36, 51, 62, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(231, 98, 80, 0.25); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0; }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid rgba(231, 98, 80, 0.45); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  padding: 0.85em 2em;
  box-shadow: 0 12px 28px -12px rgba(231, 98, 80, 0.65);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.85em 2em;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { font-size: 1.05rem; }
.btn-sm { font-size: 0.88rem; padding: 0.6em 1.4em; }

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand em { font-style: normal; color: var(--accent); }
.brand--light { color: var(--paper); }

/* 应用同款品牌图标（clothes-art .brand-mark）：墨蓝圆角方块 + Playfair 衬线 W；
   深色底上按应用登录页的做法反白。 */
.brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #1f2b35;
  color: #fffdfa;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.brand--light .brand-mark { background: var(--paper); color: #263944; }

/* 应用 lucide 图标（ArrowRight）内联尺寸 */
.icon-arrow {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 1.8rem;
  font-size: 0.95rem;
}
.nav-links a { opacity: 0.78; transition: opacity 0.2s ease; }
.nav-links a:hover { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(4.5rem + 4vh) clamp(1.2rem, 4vw, 2.5rem) 4vh;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(231, 98, 80, 0.07), transparent 70%),
    radial-gradient(45% 40% at 12% 82%, rgba(79, 109, 132, 0.08), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: min(calc(100vh - 10rem), 780px);
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.4rem;
  padding-left: 0.1em;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}
.hero-copy .accent { color: var(--accent); }
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
  max-width: 34em;
  margin: 1.6rem 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note {
  margin-top: 1.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* T 恤舞台 */
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.tee-wrap { width: min(100%, 430px); }
.tee-wrap--flat { width: min(100%, 380px); }
.tee {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 36px rgba(36, 51, 62, 0.22));
}
.print-slot .print-item {
  opacity: 0;
  transform: scale(0.9);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.print-slot .print-item.on { opacity: 1; transform: scale(1); }
.tee-caption {
  margin: 0.4rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-height: 1.6em;
}
.dots { display: flex; gap: 0.65rem; }
.dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.dots button:hover { transform: scale(1.25); }
.dots button.on { background: var(--accent); transform: scale(1.25); }
.dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 通用 Section ---------- */

.section { padding: clamp(4.5rem, 9vh, 7.5rem) clamp(1.2rem, 4vw, 2.5rem); }
.section-head { max-width: 1180px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 900; }
.section-head p { color: var(--muted); margin: 0.9rem auto 0; max-width: 32em; }

/* ---------- 三步流程 ---------- */

.how { background: var(--paper); }
.steps {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 1.9rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.step-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- 风格墙 ---------- */

.styles-section { background: var(--paper-2); }
.styles-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.styles-stage { display: flex; justify-content: center; }
.style-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.style-list li {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 1.05rem 1.4rem;
  cursor: pointer;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.style-list li:hover { transform: translateX(6px); }
.style-list li.on {
  border-color: var(--accent);
  box-shadow: 0 10px 26px -16px rgba(231, 98, 80, 0.55);
}
.style-list .style-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.style-list .style-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(231, 98, 80, 0.4);
  border-radius: 999px;
  padding: 0.1em 0.7em;
}
.style-list p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- 精选设计 ---------- */

.shop { background: var(--paper); }
.shop-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.shop-card {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.shop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.shop-card .card-art {
  background: #ece7dd;
  display: flex;
  justify-content: center;
  padding: 1.6rem 1.6rem 0.6rem;
}
.shop-card .card-art svg {
  width: 62%;
  height: auto;
  filter: drop-shadow(0 12px 14px rgba(36, 51, 62, 0.18));
}
.shop-card .card-meta { padding: 1.1rem 1.4rem 1.3rem; }
.shop-card .card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.shop-card .card-name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; }
.shop-card .card-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.shop-card .card-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.shop-card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transition: color 0.2s ease;
}
.shop-card .card-more .icon-arrow { transition: transform 0.2s ease; }
.shop-card:hover .card-more { color: var(--accent); }
.shop-card:hover .card-more .icon-arrow { transform: translateX(3px); }
.shop-cta { text-align: center; margin-top: 2.8rem; }

/* ---------- 创作者分成 ---------- */

.royalty {
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(231, 98, 80, 0.14), transparent 70%),
    var(--ink-deep);
  color: var(--paper);
  padding: clamp(5rem, 10vh, 8rem) clamp(1.2rem, 4vw, 2.5rem);
}
.royalty-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.royalty-num { text-align: center; }
.royalty-percent {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 1;
  color: var(--accent);
  display: block;
}
.royalty-percent i { font-style: normal; font-size: 0.42em; }
.royalty-label {
  display: block;
  margin-top: 0.8rem;
  letter-spacing: 0.4em;
  font-size: 0.9rem;
  opacity: 0.75;
}
.royalty-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; }
.royalty-copy p { color: rgba(255, 253, 250, 0.78); max-width: 34em; margin: 1.4rem 0 0; }
.royalty-note { font-size: 0.86rem; opacity: 0.55 !important; }
.royalty-copy .btn { margin-top: 2rem; }

/* ---------- FAQ ---------- */

.faq { background: var(--paper); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0.4rem;
}
.faq-list summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12rem;
  list-style: none;
  position: relative;
  padding-right: 2.2rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: rotate 0.25s ease;
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { color: var(--muted); margin: 0.7rem 0 0.2rem; font-size: 0.97rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink-deep);
  color: rgba(255, 253, 250, 0.82);
  padding: 4rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-brand p { opacity: 0.66; font-size: 0.94rem; margin: 1rem 0 0; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.94rem; }
.footer-col h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  color: rgba(255, 253, 250, 0.45);
  font-weight: 600;
}
.footer-col a { opacity: 0.78; transition: opacity 0.2s ease, color 0.2s ease; width: fit-content; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-base {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 253, 250, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* ---------- 滚动显现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
    padding-top: 1rem;
  }
  .hero-copy { order: 1; }
  .hero-stage { order: 2; margin-top: 1rem; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .styles-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .royalty-inner { grid-template-columns: 1fr; text-align: center; }
  .royalty-copy p { margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; max-width: 420px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-base { flex-direction: column; }
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .print-slot .print-item { transition: opacity 0.3s ease; transform: none; }
  .btn, .step, .shop-card, .style-list li, .card-more, .card-more .icon-arrow { transition: none; }
}
