/* PoseWear 官网 · 单一样式表，无 JS，深浅色跟随系统 */

:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.11);
  --accent: #ff2442;
  --accent-ink: #ffffff;
  --blur-bg: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.13);
    --blur-bg: rgba(10, 10, 11, 0.72);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.50);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: 24px;
}

.narrow {
  max-width: 680px;
  margin-inline: auto;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- 顶栏 ---- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blur-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--line);
}

.site-head nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand svg { width: 22px; height: 22px; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

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

/* ---- 首页 hero ---- */

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

.hero h1,
.page-head h1 {
  margin: 0 0 20px;
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-head { padding: 104px 0 0; text-align: center; }

.page-head h1 { font-size: clamp(44px, 7vw, 64px); }

.lede {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(19px, 2.4vw, 22px);
  color: var(--muted);
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 72px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 600;
}

.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { opacity: 0.9; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* 素材库数据带 */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-block: 1px solid var(--line);
}

.stats div {
  padding: 30px 12px;
  text-align: center;
}

.stats b {
  display: block;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

/* 三步流程 */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-weight: 600;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
}

/* ---- 区块 ---- */

section { padding: 96px 0 0; }

h2 {
  margin: 0 0 48px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

/* 功能 / 规格表 */

.features { margin: 0; }

.features > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.features dt { font-weight: 650; }
.features dd { margin: 0; color: var(--muted); }

.text-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover { color: var(--accent); }

/* FAQ */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0;
  max-width: 640px;
  padding: 0 0 22px;
  color: var(--muted);
}

/* 下载页 */

.center-link {
  margin: 0;
  text-align: center;
  font-size: 19px;
}

.files {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}

.files th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.files td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.files td:first-child {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
}

.files.plain-first td:first-child {
  font-family: inherit;
  font-size: 16px;
}

.files.plain-first th:last-child { text-align: left; }

.files .num {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.files th:last-child { text-align: right; }

/* 页脚 */

footer {
  margin-top: 96px;
  padding: 40px 0 64px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

footer a:hover { color: var(--text); }

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

@media (max-width: 640px) {
  .hero, .page-head { padding-top: 72px; }
  section { padding-top: 72px; }
  .actions { margin-bottom: 56px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .features > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 22px 0;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
