/* 拼豆集官网 — 首页专用样式 */

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 56px;
  align-items: center;
  padding: 72px 0 40px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent-tint);
  color: var(--c-accent);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero__tag .bead {
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  animation: dj-float-s 2.6s ease-in-out infinite;
}
.hero__tag .bead::after { background: var(--c-accent-tint); }

.hero__title {
  font-size: var(--text-hero);
  line-height: 1.16;
  font-weight: 900;
  margin-top: 20px;
  letter-spacing: -.01em;
}
.hero__title em { font-style: normal; color: var(--c-accent); }

.hero__lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--c-muted);
  margin-top: 20px;
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex;
  align-items: center;
  background: var(--c-green-tint);
  color: var(--c-green-deep);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  font-size: var(--text-xs);
  font-weight: 700;
}

/* —— Hero 手机 —— */
.hero__visual { position: relative; display: flex; justify-content: center; }

.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob--rose { top: -24px; right: 0; width: 220px; height: 220px; background: var(--c-accent-tint); animation: dj-float 9s ease-in-out infinite; }
.blob--cream { bottom: 40px; left: -4px; width: 54px; height: 54px; background: var(--c-bead-yellow-tint); animation: dj-float 6s ease-in-out infinite .8s; }

.float-bead { position: absolute; z-index: 2; }
.float-bead--blue { top: 18%; left: 2%; width: 26px; height: 26px; background: var(--c-bead-blue); animation: dj-float-s 4.4s ease-in-out infinite .3s; }
.float-bead--blue::after { width: 9px; height: 9px; }
.float-bead--yellow { bottom: 12%; right: 1%; width: 34px; height: 34px; background: var(--c-bead-yellow); animation: dj-float-s 5.6s ease-in-out infinite 1.2s; }
.float-bead--yellow::after { width: 12px; height: 12px; }

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: var(--c-dark);
  border-radius: 46px;
  box-shadow: var(--shadow-phone);
}
.phone img {
  width: 100%;
  aspect-ratio: var(--aspect-phone);
  object-fit: cover;
  object-position: top;
  border-radius: 37px;
}
.phone--parallax { transition: transform .5s var(--ease-out-soft); will-change: transform; }

/* 顶部有分隔线的白底区块 */
.section--surface-top {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
}

/* ============ 数据条 ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-section);
}
.stat { text-align: center; padding-block: 6px; }
.stat + .stat { border-left: 1px solid var(--c-border); }
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; font-size: var(--text-xs); color: var(--c-muted); margin-top: 4px; }

/* ============ 功能卡 ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  transition: transform var(--dur-normal) var(--ease-out-soft),
              box-shadow var(--dur-normal) ease,
              border-color var(--dur-normal) ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-border-rose);
}
.feature-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--c-accent-tint);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent);
}
.feature-card h3 { font-size: var(--text-h3); font-weight: 700; margin-top: 18px; }
.feature-card p { font-size: var(--text-sm); line-height: 1.85; color: var(--c-muted); margin-top: 10px; }

.feature-card--accent {
  background: var(--c-accent-tint);
  border-color: var(--c-accent-tint-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.feature-card--accent:hover { box-shadow: 0 12px 30px rgba(201, 105, 124, .16); border-color: var(--c-accent-tint-2); }
.feature-card--accent h3 { color: var(--c-accent); margin-top: 0; }
.feature-card--accent p { color: var(--c-accent-strong); }
.feature-card--accent .btn { align-self: flex-start; }

/* ============ 三步 ============ */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.step-card {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-normal) var(--ease-out-soft), box-shadow var(--dur-normal) ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift-strong); }
.step-card__num { font-family: var(--font-mono); font-size: 34px; font-weight: 500; color: var(--c-accent-light); }
.step-card h3 { font-size: 18px; font-weight: 700; margin-top: 12px; }
.step-card p { font-size: var(--text-sm); line-height: 1.85; color: var(--c-muted); margin-top: 8px; }

/* ============ 真机截图轮播 ============ */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.shot-list { display: flex; flex-direction: column; gap: 10px; }

.shot-tab {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--c-ink);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  background: transparent;
  border: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease-out-soft);
}
.shot-tab[aria-pressed='true'] {
  background: var(--c-surface);
  border-color: var(--c-accent-tint-2);
  box-shadow: 0 6px 20px rgba(61, 55, 51, .07);
  transform: translateX(4px);
}
.shot-tab__row { display: flex; align-items: center; gap: 14px; }
.shot-tab__num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--c-border);
  color: var(--c-muted);
  transition: background .3s ease, color .3s ease;
}
.shot-tab[aria-pressed='true'] .shot-tab__num { background: var(--c-accent); color: #fff; }
.shot-tab__text { flex: 1; }
.shot-tab__title { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.shot-tab__desc { display: block; font-size: 13.5px; line-height: 1.7; margin-top: 2px; color: var(--c-muted-2); }
.shot-tab[aria-pressed='true'] .shot-tab__desc { color: var(--c-muted); }

.shot-tab__track {
  display: block;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--c-border);
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}
.shot-tab[aria-pressed='true'] .shot-tab__track { opacity: 1; }
.shot-tab__bar { display: block; height: 100%; width: 0; background: var(--c-accent); border-radius: var(--r-pill); }

.shot-stage { display: flex; justify-content: center; }
.shot-stage__phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 8px;
  background: var(--c-dark);
  border: none;
  border-radius: 44px;
  box-shadow: 0 22px 52px rgba(61, 55, 51, .22);
  cursor: zoom-in;
}
.shot-stage__screen {
  display: block;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: var(--aspect-phone);
  background: var(--c-bg);
}
.shot-slide {
  position: absolute;
  inset: 0;
}

.shot-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .6s ease, transform .8s var(--ease-out-soft);
}
.shot-slide.is-active .shot-frame { opacity: 1; transform: scale(1); }

.callout {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 84%;
  background: rgba(255, 255, 255, .94);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  box-shadow: 0 4px 14px rgba(61, 55, 51, .16);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .45s ease, transform .45s var(--ease-out-soft);
}
@supports (backdrop-filter: blur(4px)) { .callout { backdrop-filter: blur(4px); } }
.callout.is-in { opacity: 1; transform: translateX(0); }
.callout::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
}

/* 放大灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(61, 55, 51, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border: none;
  cursor: zoom-out;
  animation: dj-pop .28s var(--ease-out-soft);
}
@supports (backdrop-filter: blur(6px)) { .lightbox { backdrop-filter: blur(6px); } }
.lightbox[hidden] { display: none; }
.lightbox__inner {
  max-height: 100%;
  padding: 8px;
  background: var(--c-dark);
  border-radius: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.lightbox__inner img { border-radius: 31px; height: min(78vh, 860px); width: auto; }
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(250, 246, 241, .92);
  color: var(--c-ink);
  font-size: 20px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
}

/* ============ 色号 ============ */
.brands-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: start;
}
.brands-layout .section-lead { font-size: var(--text-body); line-height: 1.85; margin-top: 16px; }

.note {
  font-size: 13.5px;
  line-height: 1.8;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--c-notice-bg);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
}

.brand-panel {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.brand-panel__hint {
  font-size: var(--text-xs);
  color: var(--c-faint);
  font-family: var(--font-mono);
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.brand-panel__hint--inline { margin-bottom: 0; }
.brand-panel__rule { height: 1px; background: var(--c-border); margin-block: 24px; }
.brand-panel__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.brand-panel__current { font-size: var(--text-xs); color: var(--c-accent); font-weight: 700; }

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

.brand-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  color: var(--c-ink-soft);
  transition: background .25s var(--ease-out-soft), border-color .25s var(--ease-out-soft),
              color .25s var(--ease-out-soft), transform .25s var(--ease-out-soft);
}
.brand-chip:hover { border-color: var(--c-border-rose); }
.brand-chip[aria-pressed='true'] {
  background: var(--c-accent-tint);
  border: 1.5px solid var(--c-accent);
  color: var(--c-accent);
  font-weight: 700;
  transform: translateY(-1px);
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 6px 12px 6px 7px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.swatch__dot { width: 18px; height: 18px; flex: none; }
.swatch__dot::after { width: 6px; height: 6px; }
.swatch__code { font-weight: 500; min-width: 2.4em; text-align: left; }
.swatch__code.is-swapped { animation: dj-pop .34s var(--ease-out-soft); }

/* ============ 隐私（深色） ============ */
.privacy { background: var(--c-dark); color: var(--c-bg); }
.privacy .section-title { color: #fff; }
.privacy .section-lead { color: var(--c-dark-ink); max-width: 38em; }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.privacy-card {
  background: var(--c-dark-veil);
  border: 1px solid var(--c-dark-line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: transform var(--dur-normal) var(--ease-out-soft), background var(--dur-normal) ease;
}
.privacy-card:hover { transform: translateY(-5px); background: var(--c-dark-veil-strong); }
.privacy-card h3 { font-size: 16.5px; font-weight: 700; color: var(--c-accent-tint); }
.privacy-card p { font-size: 14px; line-height: 1.85; color: var(--c-dark-ink-2); margin-top: 9px; }

.privacy .btn--light { margin-top: 32px; }

/* ============ 创作者 ============ */
.creators-card {
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}
.creators-card h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; margin-top: 12px; }
.creators-card > div > p:last-child { font-size: 15.5px; line-height: 1.85; color: var(--c-muted); margin-top: 14px; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); line-height: 1.75; }
.check-list .bead {
  flex: none;
  margin-top: 5px;
  width: 10px;
  height: 10px;
  background: var(--c-bead-green);
}
.check-list .bead::after { width: 3.5px; height: 3.5px; background: #fff; }
.check-list b { font-weight: 700; }
.check-list span span { color: var(--c-muted); }

/* ============ 结尾 CTA ============ */
.cta-band { background: var(--c-accent-tint); text-align: center; }
.cta-band h2 { font-size: var(--text-h2-cta); font-weight: 900; line-height: 1.25; }
.cta-band p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--c-accent-strong);
  margin: 14px auto 0;
  max-width: 26em;
}
.cta-band .btn { margin-top: 30px; padding: 17px 34px; animation: dj-pulse 3.2s ease-in-out infinite; }

/* 窄屏：数据条换行后竖线会落在行首，改用留白分隔 */
@media (max-width: 700px) {
  .stats { gap: 4px 14px; }
  .stat + .stat { border-left: none; }
}
