/* ==========================================================================
   Platform 落地页（/user/platform/index?slug=xxx）
   命名空间 .pf-* —— 不复用 shop-home.css 的类名，避免与其 !important 规则互撞。
   设计 token 与 shop-home.css 保持一致（同站点同一套色），但这里自己声明，
   因为平台页可能在没有首页 CSS 的情况下单独渲染。
   ========================================================================== */

.pf-page {
  --pf-bg: #F2F0F8;
  --pf-surface: #FFFFFF;
  --pf-s2: #EDE9F6;
  --pf-s3: #f8f9fe;
  --pf-purple: #6D28D9;
  --pf-p2: #8B5CF6;
  --pf-pink: #DB2777;
  --pf-blue: #2563EB;
  --pf-green: #059669;
  --pf-text: #170F2E;
  --pf-text2: #4C3D6E;
  --pf-text3: #7c6f9c;
  --pf-border: #DDD6EF;
  --pf-radius: 14px;
  --pf-grad: linear-gradient(120deg, #DB2777 0%, #6D28D9 55%, #2563EB 100%);
  --pf-shadow: 0 2px 12px rgba(109, 40, 217, .09);
  --pf-shadow-lg: 0 8px 28px rgba(109, 40, 217, .13);
  background: var(--pf-bg);
  color: var(--pf-text);
}

[data-theme="dark"] .pf-page {
  --pf-bg: #0f0c1d;
  --pf-surface: #171331;
  --pf-s2: #1f1a3d;
  --pf-s3: #191434;
  --pf-text: #f1eefb;
  --pf-text2: #b9aede;
  --pf-text3: #9187b5;
  --pf-border: #2b2450;
  --pf-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  --pf-shadow-lg: 0 8px 28px rgba(0, 0, 0, .5);
}

.pf-page .container-v1 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- breadcrumb ---------- */
.pf-crumb {
  background: var(--pf-surface);
  border-bottom: 1px solid var(--pf-border);
  padding: 12px 0;
  font-size: 13px;
}

.pf-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--pf-text3);
}

.pf-crumb li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: .5;
}

.pf-crumb a {
  color: var(--pf-text2);
  text-decoration: none;
}

.pf-crumb a:hover {
  color: var(--pf-purple);
}

.pf-crumb li[aria-current] {
  color: var(--pf-text);
  font-weight: 600;
}

/* ---------- hero ---------- */
.pf-hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(900px 400px at 12% -10%, rgba(219, 39, 119, .1), transparent 60%),
    radial-gradient(900px 400px at 88% 0%, rgba(37, 99, 235, .1), transparent 60%),
    var(--pf-bg);
}

.pf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  color: var(--pf-purple);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--pf-shadow);
}

.pf-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pf-text);
}

.pf-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--pf-text2);
}

.pf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 14px;
  color: var(--pf-text2);
}

.pf-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pf-badges i {
  color: var(--pf-green);
}

.pf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pf-page .btn-v1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease;
}

.pf-page .btn-v1:hover {
  transform: translateY(-2px);
  box-shadow: var(--pf-shadow-lg);
}

.pf-page .btn-v1.primary {
  background: var(--pf-grad);
  color: #fff;
}

.pf-page .btn-v1.outline {
  background: var(--pf-surface);
  border-color: var(--pf-border);
  color: var(--pf-text);
}

/* hero stats 卡 */
.pf-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pf-stat {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 18px 16px;
  box-shadow: var(--pf-shadow);
}

.pf-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  background: var(--pf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pf-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--pf-text3);
  letter-spacing: .01em;
}

/* ---------- generic section ---------- */
.pf-page .section-v1 {
  padding: 64px 0;
}

.pf-section-head {
  margin-bottom: 26px;
}

.pf-section-head.center {
  text-align: center;
}

.pf-section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--pf-text);
}

.pf-section-head p {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pf-text3);
}

.pf-section-head.center p {
  margin: 0 auto;
}

.pf-page .section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pf-purple);
}

/* ---------- intro prose ---------- */
.pf-prose {
  max-width: 880px;
}

.pf-prose p,
.pf-split-right p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--pf-text2);
}

.pf-prose p:last-child,
.pf-split-right p:last-child {
  margin-bottom: 0;
}

/* ---------- product grid ---------- */
.pf-list-wrap {
  background: var(--pf-surface);
}

.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  color: var(--pf-text2);
  font-size: 13px;
  cursor: pointer;
  transition: all .14s ease;
}

.pf-chip em {
  font-style: normal;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--pf-s2);
  color: var(--pf-text3);
}

.pf-chip:hover {
  border-color: var(--pf-p2);
  color: var(--pf-purple);
}

.pf-chip.is-active {
  background: var(--pf-grad);
  border-color: transparent;
  color: #fff;
}

.pf-chip.is-active em {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}

.pf-card {
  display: flex;
  flex-direction: column;
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.pf-card:hover {
  transform: translateY(-3px);
  border-color: var(--pf-p2);
  box-shadow: var(--pf-shadow-lg);
}

.pf-card-cover {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--pf-s2);
  overflow: hidden;
}

.pf-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  flex: 1;
}

.pf-card-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--pf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-card-cat {
  font-size: 12px;
  color: var(--pf-text3);
}

.pf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pf-tag {
  font-style: normal;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--pf-s2);
  color: var(--pf-purple);
}

.pf-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.pf-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--pf-pink);
}

.pf-price i {
  font-style: normal;
  font-size: 12px;
  margin-right: 1px;
  opacity: .8;
}

.pf-price small {
  margin-left: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--pf-text3);
}

.pf-stock {
  font-size: 12px;
  color: var(--pf-green);
  font-weight: 600;
}

.pf-stock.is-out {
  color: #b91c1c;
}

.pf-card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--pf-text3);
}

.pf-grid-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--pf-text3);
}

.pf-empty {
  text-align: center;
  padding: 56px 20px;
  background: var(--pf-s3);
  border: 1px dashed var(--pf-border);
  border-radius: var(--pf-radius);
}

.pf-empty i {
  font-size: 34px;
  color: var(--pf-text3);
  opacity: .6;
}

.pf-empty p {
  margin: 14px auto 18px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pf-text2);
}

/* ---------- choose split ---------- */
.pf-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 44px;
  align-items: start;
}

.pf-checklist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pf-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pf-text2);
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.pf-checklist i {
  color: var(--pf-green);
  margin-top: 2px;
  flex: none;
}

/* ---------- steps ---------- */
.pf-steps {
  background: var(--pf-surface);
}

.pf-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.pf-step {
  position: relative;
  background: var(--pf-s3);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 22px 18px 18px;
}

.pf-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pf-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pf-step h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pf-text);
}

.pf-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--pf-text2);
}

/* ---------- why ---------- */
.pf-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pf-why-item {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 22px;
  box-shadow: var(--pf-shadow);
}

.pf-why-item > i {
  font-size: 18px;
  color: var(--pf-purple);
}

.pf-why-item h3 {
  margin: 10px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pf-text);
}

.pf-why-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--pf-text2);
}

/* ---------- reviews ---------- */
.pf-reviews {
  background: var(--pf-surface);
}

.pf-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pf-review {
  margin: 0;
  background: var(--pf-s3);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 18px;
}

.pf-review-stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  font-size: 12px;
  margin-bottom: 10px;
}

.pf-review blockquote {
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--pf-text2);
}

.pf-review figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}

.pf-review figcaption b {
  color: var(--pf-text);
  font-weight: 700;
}

.pf-review figcaption span {
  color: var(--pf-text3);
}

/* ---------- faq ---------- */
.pf-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: 44px;
  align-items: start;
}

.pf-faq-left h2 {
  margin: 8px 0 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--pf-text);
}

.pf-faq-left p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pf-text3);
}

.pf-faq-item {
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  background: var(--pf-surface);
  margin-bottom: 10px;
  overflow: hidden;
}

.pf-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-text);
  cursor: pointer;
  font-family: inherit;
}

.pf-faq-q i {
  flex: none;
  font-size: 12px;
  color: var(--pf-text3);
  transition: transform .18s ease;
}

.pf-faq-item.is-open .pf-faq-q i {
  transform: rotate(180deg);
  color: var(--pf-purple);
}

.pf-faq-a {
  display: none;
  padding: 0 16px 16px;
}

.pf-faq-item.is-open .pf-faq-a {
  display: block;
}

.pf-faq-a p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--pf-text2);
}

/* ---------- guides ---------- */
.pf-guides {
  background: var(--pf-surface);
}

.pf-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.pf-guide {
  background: var(--pf-s3);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 18px;
}

.pf-guide-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pf-pink);
  margin-bottom: 8px;
}

.pf-guide h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--pf-text);
}

.pf-guide p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--pf-text2);
}

/* ---------- policy accordion ---------- */
.pf-acc {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 0;
  overflow: hidden;
}

.pf-acc summary {
  cursor: pointer;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pf-text);
  list-style: none;
}

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

.pf-acc summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--pf-purple);
}

.pf-acc[open] summary::after {
  content: "–";
}

.pf-acc-body {
  padding: 0 18px 18px;
}

.pf-acc-body ol {
  margin: 0;
  padding-left: 20px;
}

.pf-acc-body li {
  font-size: 13px;
  line-height: 1.8;
  color: var(--pf-text2);
  margin-bottom: 8px;
}

/* ---------- nav grid + cta ---------- */
.pf-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.pf-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--pf-border);
  background: var(--pf-surface);
  text-decoration: none;
  color: var(--pf-text);
  transition: all .14s ease;
}

.pf-nav-item > i {
  font-size: 18px;
  color: var(--pf-purple);
  flex: none;
  width: 22px;
  text-align: center;
}

.pf-nav-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pf-nav-item b {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-nav-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--pf-text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-nav-item:hover {
  border-color: var(--pf-p2);
  transform: translateY(-2px);
  box-shadow: var(--pf-shadow);
}

.pf-nav-item.is-active {
  border-color: var(--pf-purple);
  background: var(--pf-s2);
}

.pf-cta {
  margin-top: 40px;
  text-align: center;
  padding: 40px 24px;
  border-radius: 18px;
  background: var(--pf-grad);
  color: #fff;
}

.pf-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: #fff;
}

.pf-cta p {
  margin: 0 auto 20px;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

.pf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pf-cta .btn-v1.primary {
  background: #fff;
  color: var(--pf-purple);
}

.pf-cta .btn-v1.outline {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pf-hero-grid,
  .pf-split,
  .pf-faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .pf-hero {
    padding: 36px 0 28px;
  }

  .pf-page .section-v1 {
    padding: 44px 0;
  }
}

@media (max-width: 560px) {
  .pf-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .pf-card-body {
    padding: 11px;
  }

  .pf-price {
    font-size: 16px;
  }

  .pf-cta {
    padding: 30px 18px;
  }
}
