/* ============================================================
   京剪官网 · site.css
   header / hero / 区块组件 / 下载区 / FAQ / footer / 法务文档
   依赖 base.css 的 token。
   ============================================================ */

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: block;
  flex: none;
  object-fit: cover;
}
.logo__sub {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-mute);
  border-left: 1px solid var(--border-strong);
  padding-left: .5rem;
}

/* 移动端的主 CTA：放在 logo 右侧，不塞进横向滚动条里 */
.header-cta {
  display: inline-flex;
  min-height: 36px;
  padding: .3rem .875rem;
  font-size: .875rem;
  flex: none;
}
@media (min-width: 960px) { .header-cta { display: none; } }

/* 桌面导航 */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 960px) { .nav-desktop { display: flex; } }

/* 只给导航里的文字链接上样式：按钮是 .btn，不能被这里的 color 覆盖
   （.nav-desktop a 的选择器权重高于 .btn--primary，会让白字变成灰字甚至同色不可见） */
.nav-desktop > a:not(.btn) {
  color: var(--text-sub);
  text-decoration: none;
  font-size: .9375rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-desktop > a:not(.btn):hover { color: var(--brand-ink); border-bottom-color: var(--brand); }
.nav-desktop > a.btn { min-height: 40px; padding: .4rem 1rem; }

.nav-legal {
  display: flex;
  gap: 1rem;
  font-size: .8125rem;
  color: var(--text-mute);
}
.nav-legal a {
  color: var(--text-mute);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-legal a:hover { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* 移动端标签行（横向滚动，代替汉堡菜单：零 JS、无 focus trap） */
.nav-tags {
  display: flex;
  gap: 1rem;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-bottom: -8px;
  -webkit-overflow-scrolling: touch;
  /* 右边缘渐隐，提示这一行还能横向滚动 */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.nav-tags::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .nav-tags { display: none; } }

.nav-tags a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: .875rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-tags a:hover { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* ---------- 选中的菜单项 ----------
   站内锚点：:target 命中目标 section，再用 :has() 反查导航里对应的链接（零 JS）。
   法务页：链接带 aria-current="page"。
   两者的观感统一：品牌色 + 加粗 + 品牌色下划线。 */
.nav-desktop a[aria-current="page"],
.nav-tags a[aria-current="page"],
body:has(#platform:target) :is(.nav-desktop, .nav-tags) a[href$="#platform"]:not(.btn),
body:has(#customer:target) :is(.nav-desktop, .nav-tags) a[href$="#customer"]:not(.btn),
body:has(#stylist:target) :is(.nav-desktop, .nav-tags) a[href$="#stylist"]:not(.btn),
body:has(#trust:target) :is(.nav-desktop, .nav-tags) a[href$="#trust"]:not(.btn),
body:has(#company:target) :is(.nav-desktop, .nav-tags) a[href$="#company"]:not(.btn),
body:has(#download:target) :is(.nav-desktop, .nav-tags) a[href$="#download"]:not(.btn) {
  color: var(--brand-ink);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

/* 导航里那个实心「下载 App」按钮：选中时套一圈浅色光晕，别改成品牌色（白字会糊） */
body:has(#download:target) :is(.nav-desktop, .nav-tags) a.btn[href$="#download"],
body:has(#download:target) .header-cta[href$="#download"] {
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* 跳转落地后给标题一点提示，滚动过去时头部是 sticky 的 */
.section:target h2,
.hero:target h1 { color: var(--brand-ink); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 6vw, 4rem);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--brand-soft) 0%, rgba(255, 229, 230, 0) 55%),
    var(--card);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}

.hero h1 { margin-bottom: .4em; }
.hero__sub {
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  color: var(--text-sub);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero__note {
  margin-top: 1rem;
  font-size: .8125rem;
  color: var(--text-mute);
  max-width: 34rem;
}

/* Hero 里的手机示意图：纯 SVG，移动端隐藏（首屏纯文字，LCP 更好） */
.hero__art { display: none; }
@media (min-width: 960px) { .hero__art { display: block; } }
.hero__art svg { width: 100%; height: auto; }

/* ---------- 三角色 ---------- */
.role-card { display: flex; flex-direction: column; }
.role-card__foot { margin-top: auto; padding-top: 16px; }
.role-card__foot a { font-size: .9375rem; font-weight: 600; }

/* ---------- 四步流程 ---------- */
.steps {
  list-style: none;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
  position: relative;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

.steps li {
  position: relative;
  padding-left: 52px;
  margin: 0;
  min-height: 44px;
}
/* 桌面端节点之间的连线 */
@media (min-width: 960px) {
  .steps li::after {
    content: "";
    position: absolute;
    top: 21px;
    left: calc(100% + 6px);
    width: calc(28px - 12px);
    height: 1px;
    background: var(--border-strong);
  }
  .steps li:last-child::after { display: none; }
}

.steps__num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  counter-increment: step;
}
.steps__num::before { content: counter(step); }

.steps__title {
  font-weight: 600;
  margin-bottom: .15em;
  line-height: 1.5;
}
.steps__desc { font-size: .9375rem; color: var(--text-sub); }

/* 订单进度链 */
.progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  font-size: .875rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
}
.progress__node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .15rem .7rem;
  white-space: nowrap;
}
.progress__arrow { color: var(--text-mute); }
@media (max-width: 639px) { .progress__arrow { display: none; } }

/* ---------- 能力网格 ---------- */
.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature__icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1rem; margin-bottom: .2em; }
.feature p { font-size: .9375rem; color: var(--text-sub); margin: 0; }

/* ---------- 通栏 CTA ---------- */
.cta-band {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.cta-band h2 { color: #fff; margin: 0 0 .25em; font-size: clamp(1.125rem, 2.6vw, 1.375rem); }
.cta-band p { margin: 0; font-size: .9375rem; color: rgba(230, 230, 230, .85); }
/* 按钮底色沿用 --brand-ink（白字 4.87:1，AA）。
   不要在这里改成 --brand：#ff5a5f 配白字只有 3.05:1，15px 正文不过 AA。 */

/* ---------- 保障卡 ---------- */
.trust-card h3 { display: flex; align-items: center; gap: .5rem; }
.trust-card h3 svg { width: 20px; height: 20px; color: var(--brand-ink); flex: none; }

/* ---------- 技术 band ---------- */
.tech-band {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.tech-band p { color: var(--text-sub); font-size: .9375rem; margin: 0; }

/* ---------- 下载区 ---------- */
.download-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-card h3 { margin-bottom: .15em; }
.download-card__sub { color: var(--text-sub); font-size: .9375rem; margin-bottom: 20px; }
.download-card__hint {
  font-size: .8125rem;
  color: var(--text-mute);
  margin-top: 16px;
}
.download-card__meta {
  font-size: .8125rem;
  color: var(--text-mute);
  margin-top: 4px;
}

/* 二维码占位框：纯 CSS 画，不引图片 */
.qr-placeholder {
  width: 168px;
  height: 168px;
  flex: none;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 12px),
    var(--bg);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-mute);
  font-size: .8125rem;
  padding: 12px;
  position: relative;
}
.qr-placeholder::before,
.qr-placeholder::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
}
.qr-placeholder::before { top: 10px; left: 10px; }
.qr-placeholder::after { bottom: 10px; right: 10px; }

.qr-placeholder--empty {
  background: var(--bg);
  border-style: dashed;
}
.qr-placeholder--empty::before,
.qr-placeholder--empty::after { display: none; }

.badge-soon {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .2rem .7rem;
  margin-bottom: 12px;
}

/* 安装说明 */
.install-steps {
  counter-reset: inst;
  list-style: none;
  padding: 0;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  display: grid;
  gap: 12px;
  max-width: 46rem;
}
.install-steps li {
  counter-increment: inst;
  position: relative;
  padding-left: 40px;
  font-size: .9375rem;
  color: var(--text-sub);
  margin: 0;
}
.install-steps li::before {
  content: counter(inst);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: .8125rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 48rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 16px;
  font-weight: 600;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq__body {
  padding: 0 16px 16px;
  font-size: .9375rem;
  color: var(--text-sub);
}
.faq__body p { margin: 0; }

/* ---------- 价值点 ---------- */
.value h3 { display: flex; align-items: center; gap: .5rem; }
.value h3 svg { width: 20px; height: 20px; color: var(--brand-ink); flex: none; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-text);
  padding: 2.5rem 0;
  font-size: .875rem;
}
.site-footer p { margin: 0 0 .35em; }
.site-footer a { color: #c9c9c9; }
.site-footer a:hover { color: #fff; }
.site-footer__name { color: #fff; font-weight: 600; }
.site-footer__legal {
  margin-top: .75rem;
  font-size: .8125rem;
  color: #a8a8a8;
}
.site-footer__legal a { color: #a8a8a8; text-decoration: underline; }

/* ---------- 法务文档页 ---------- */
.doc { background: var(--card); }
.doc__head { padding: clamp(2rem, 5vw, 3rem) 0 0; }
.doc__updated { color: var(--text-mute); font-size: .875rem; margin-bottom: 1.5rem; }
.doc__intro {
  font-size: 1rem;
  color: var(--text-sub);
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 2rem;
}
.doc__section { margin-bottom: 2rem; }
.doc__section h2 {
  font-size: 1.125rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.doc__section p,
.doc__section li { color: var(--text-sub); font-size: .9375rem; }
.doc__section ol { padding-left: 1.4em; }
.doc__section li::marker { color: var(--brand-ink); font-weight: 600; }

.breadcrumb {
  font-size: .8125rem;
  color: var(--text-mute);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-mute); }
.breadcrumb span { margin: 0 .4em; }
