/*
 * 购买页样式（迁移自旧站每个 buy-*.html 页内的 <style> 块，六个页面完全相同）。
 *
 * 补两个变量：原版用了 --color-border-light 和 --color-primary-light，
 * 但从未在 main.css 的 :root 里定义过——未定义的 CSS 自定义属性会被当成
 * 无效值，等价于没写这条声明，边框/高亮色在原站上其实是「隐形」的。
 * 这里按站点配色补上合理值，而不是原样复现这个视觉缺陷。
 */
:root {
  --color-border-light: #f1f3f7;
  --color-primary-light: #eef2ff;
}

.purchase-hero { padding: 24px 20px 0; }
.purchase-back { display:inline-block; color:var(--color-text-muted); font-size:14px; margin-bottom:16px; text-decoration:none; }
.purchase-back:hover { color:var(--color-primary); }
.purchase-hero__title { font-size:clamp(28px,3.5vw,40px); font-weight:900; margin-bottom:8px; }
.purchase-hero__subtitle { color:var(--color-text-secondary); font-size:15px; margin-bottom:24px; }

/* 流程步骤 */
.purchase-steps { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.purchase-step { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--color-text-muted); }
.purchase-step__num { width:28px; height:28px; border-radius:50%; background:var(--color-border); color:var(--color-text-muted); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; }
.purchase-step.is-active .purchase-step__num { background:var(--color-primary); color:#fff; }
.purchase-step.is-active { color:var(--color-text); font-weight:600; }
.purchase-step__arrow { color:var(--color-text-muted); font-size:14px; }

/* 左右分栏布局 */
.purchase-layout { display:grid; grid-template-columns:1fr 380px; gap:32px; align-items:start; }
@media (max-width:1024px) { .purchase-layout { grid-template-columns:1fr; } }

/* 左侧商品信息 */
.purchase-product-card { background:var(--color-surface); border:1px solid var(--color-border); border-radius:20px; padding:28px; margin-bottom:20px; }
.purchase-product-card__header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:16px; flex-wrap:wrap; gap:12px; }
.purchase-product-card__header h2 { font-size:22px; font-weight:800; }
.purchase-product-card__price { display:flex; align-items:baseline; gap:2px; }
.purchase-product-card__price-now { font-size:36px; font-weight:900; color:var(--color-primary); }
.purchase-product-card__price-unit { font-size:14px; color:var(--color-text-muted); }
.purchase-product-card__tags { display:flex; gap:8px; margin-bottom:12px; }
.purchase-tag { padding:3px 12px; border-radius:9999px; font-size:12px; font-weight:600; }
.purchase-tag--success { background:#ecfdf5; color:#10b981; }
.purchase-tag--info { background:#eef2ff; color:#4f46e5; }
.purchase-tag--warning { background:#fffbeb; color:#f59e0b; }
.purchase-product-card__desc { font-size:14px; color:var(--color-text-muted); }
.purchase-trust { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; padding-top:24px; border-top:1px solid var(--color-border-light); }
.purchase-trust__item { display:flex; gap:10px; align-items:flex-start; }
.purchase-trust__item > span:first-child { font-size:24px; }
.purchase-trust__item > span:last-child { font-size:13px; font-weight:600; }
.purchase-trust__item small { font-weight:400; color:var(--color-text-muted); }

/* SKU 切换器 */
.purchase-sku-switcher { background:var(--color-surface); border:1px solid var(--color-border); border-radius:20px; padding:24px; margin-bottom:20px; }
.purchase-sku-switcher h3 { font-size:16px; font-weight:700; margin-bottom:16px; }
.purchase-sku-option { display:flex; align-items:center; gap:12px; padding:14px 16px; border:2px solid var(--color-border); border-radius:12px; cursor:pointer; margin-bottom:10px; transition:all .2s; position:relative; }
.purchase-sku-option:hover { border-color:var(--color-primary-light); }
.purchase-sku-option.is-selected { border-color:var(--color-primary); background:rgba(79,70,229,0.03); }
.purchase-sku-option input { display:none; }
.purchase-sku-option__info { flex:1; }
.purchase-sku-option__name { display:block; font-weight:600; font-size:14px; }
.purchase-sku-option__desc { display:block; font-size:12px; color:var(--color-text-muted); margin-top:2px; }
.purchase-sku-option__price { font-size:18px; font-weight:800; color:var(--color-text); }
.purchase-sku-option.is-selected .purchase-sku-option__price { color:var(--color-primary); }
.purchase-sku-option__badge { position:absolute; top:-8px; right:12px; padding:2px 10px; background:linear-gradient(135deg,#4f46e5,#8b5cf6); color:#fff; font-size:11px; font-weight:600; border-radius:9999px; }

/* 温馨提示 */
.purchase-notice { background:#fffbeb; border:1px solid #fde68a; border-radius:12px; padding:16px 20px; font-size:13px; color:#92400e; line-height:1.7; margin-bottom:20px; }

/* FAQ */
.purchase-faq { background:var(--color-surface); border:1px solid var(--color-border); border-radius:20px; padding:24px; }
.purchase-faq h3 { font-size:16px; font-weight:700; margin-bottom:16px; }
.purchase-faq__item { border-bottom:1px solid var(--color-border-light); }
.purchase-faq__item:last-of-type { border-bottom:none; }
.purchase-faq__item summary { padding:14px 0; font-size:14px; font-weight:600; cursor:pointer; list-style:none; }
.purchase-faq__item summary::-webkit-details-marker { display:none; }
.purchase-faq__item summary::after { content:'+'; float:right; font-size:18px; color:var(--color-text-muted); }
.purchase-faq__item[open] summary::after { content:'−'; color:var(--color-primary); }
.purchase-faq__item p { padding:0 0 14px; font-size:13px; color:var(--color-text-secondary); line-height:1.7; }
.purchase-faq__more { display:inline-block; margin-top:12px; font-size:13px; color:var(--color-primary); }

/* 右侧表单（sticky） */
.purchase-form-wrap { position:sticky; top:80px; }
.purchase-form-card { background:var(--color-surface); border:1px solid var(--color-border); border-radius:20px; padding:24px; box-shadow:var(--shadow-lg); }
.purchase-form-card__title { font-size:18px; font-weight:800; margin-bottom:16px; }
.purchase-form-card__summary { background:var(--color-bg); border-radius:12px; padding:16px; margin-bottom:20px; }
.purchase-form-card__row { display:flex; justify-content:space-between; align-items:center; padding:6px 0; font-size:14px; color:var(--color-text-secondary); }
.purchase-form-card__row--total { border-top:1px solid var(--color-border); margin-top:4px; padding-top:12px; font-size:16px; font-weight:700; color:var(--color-text); }
.purchase-form-card__row--total span:last-child { font-size:24px; font-weight:900; color:var(--color-primary); }

.purchase-form { display:flex; flex-direction:column; gap:16px; }
.purchase-form__field { }
.purchase-form__label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.purchase-form__input { width:100%; padding:12px 14px; border:1.5px solid var(--color-border); border-radius:10px; font-size:15px; outline:none; transition:border-color .2s; box-sizing:border-box; }
.purchase-form__input:focus { border-color:var(--color-primary); }
.purchase-form__hint { font-size:12px; color:var(--color-text-muted); margin-top:6px; line-height:1.5; }

.purchase-pay-options { display:flex; gap:10px; }
.purchase-pay-option { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:12px; border:2px solid var(--color-border); border-radius:10px; cursor:pointer; font-size:14px; font-weight:600; transition:all .2s; }
.purchase-pay-option:hover { border-color:var(--color-primary-light); }
.purchase-pay-option.is-selected { border-color:var(--color-primary); background:rgba(79,70,229,0.05); }
.purchase-pay-option__icon { font-size:20px; }

.purchase-form__agree { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--color-text-muted); cursor:pointer; line-height:1.5; }
.purchase-form__agree input { margin-top:2px; }

.purchase-form__note { text-align:center; font-size:12px; color:var(--color-text-muted); }
.purchase-form__error { padding:12px; background:#fef2f2; color:#ef4444; border-radius:10px; font-size:13px; }
.purchase-form__success { padding:14px; background:#ecfdf5; border-radius:10px; }
.purchase-form__success p { font-size:13px; color:var(--color-text-secondary); }

.purchase-form-card__social-proof { display:flex; align-items:center; gap:12px; justify-content:center; margin-top:20px; padding-top:16px; border-top:1px solid var(--color-border-light); font-size:13px; color:var(--color-text-muted); }
.purchase-form-card__divider { width:1px; height:14px; background:var(--color-border); }
.purchase-form-card__social-proof strong { color:var(--color-text); }

@media (max-width:768px) {
  .purchase-trust { grid-template-columns:1fr; }
  .purchase-form-wrap { position:static; }
}
/*
 * 用户评价页样式（迁移自旧站 assets/reviews.html 内的 <style> 块）
 * 放进同一个文件，避免为每个只用一次的内联样式块单独建 CSS 文件。
 */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.review-grid .review-card { height: 100%; }
@media (max-width: 768px) {
  .review-grid { grid-template-columns: 1fr; }
}
