/* 「怎么交付」共用样式（2026-10-27）：流程条、演示播放器、教程页。商品页、订单页、/how 都加载 */

/* ---------- 流程条（评审 10-27：圆圈 ≥ 36px、标签 ≥ 13px 深色、按词断行、Telegram 两步带纸飞机） ---------- */
.how-flow { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.how-flow li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 2px 3px 0; font-size: 13px; line-height: 1.3; color: #2f2e29; text-align: center; word-break: keep-all; overflow-wrap: normal; }
.how-flow-label { max-width: 7em; }
.how-flow li::before { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 2px; background: #e6e3da; z-index: 0; }
.how-flow li:last-child::before { display: none; }
.how-flow li.is-done::before { background: #1d1c18; }
.how-flow-dot { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid #d9d6cc; color: #5d5a52; font-size: 14px; font-weight: 650; transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease; }
.how-flow-dot svg { width: 18px; height: 18px; display: block; }
.how-flow li.is-tg .how-flow-dot { border-color: #1d1c18; color: #1d1c18; }
.how-flow li.is-tg .how-flow-label { font-weight: 650; color: #1d1c18; }
.how-flow li.is-done .how-flow-dot { background: #1d1c18; border-color: #1d1c18; color: #fff; }
.how-flow li.is-current .how-flow-dot { border-color: #1d1c18; color: #1d1c18; transform: scale(1.1); box-shadow: 0 0 0 4px rgba(29, 28, 24, .08); }
.how-flow li.is-current .how-flow-label { color: #1d1c18; font-weight: 650; }
.how-flow li.is-done .how-flow-label { color: #2f2e29; }
@keyframes how-flow-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(29, 28, 24, .08); } 50% { box-shadow: 0 0 0 8px rgba(29, 28, 24, .04); } }
.how-flow li.is-current .how-flow-dot { animation: how-flow-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .how-flow li.is-current .how-flow-dot { animation: none; } }
@media (max-width: 420px) { .how-flow li { font-size: 12px; } .how-flow-dot { width: 32px; height: 32px; } .how-flow li::before { top: 16px; } }
.demo .visually-hidden, .visually-hidden-demo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 播放器 ---------- */
.demo { margin: 0; background: #fff; border: 1px solid #e6e3da; border-radius: 16px; overflow: hidden; }
.demo-stage { position: relative; aspect-ratio: 640 / 400; background: #f7f6f2; }
.demo-stage svg { display: block; width: 100%; height: 100%; }
.demo-skeleton { margin: 0; padding: 22px 26px; list-style: none; display: grid; gap: 10px; font-size: 14px; color: #2f2e29; counter-reset: demo; }
.demo-skeleton li { display: flex; align-items: center; gap: 10px; }
.demo-skeleton li::before { counter-increment: demo; content: counter(demo); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d1c18; color: #fff; font-size: 11px; font-weight: 650; flex: none; }
.demo[data-demo-state="loading"] .demo-skeleton { opacity: .45; }
.demo-fallback { margin: 0; padding: 10px 14px; font-size: 13px; color: #8a877e; border-top: 1px solid #efede7; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #efede7; }
.demo-bar .demo-play { align-self: center; }
.demo-play { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #e6e3da; background: #fff center / 10px no-repeat; cursor: pointer; }
.demo-play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='1.5' y='1' width='2.5' height='8' fill='%2326251f'/%3E%3Crect x='6' y='1' width='2.5' height='8' fill='%2326251f'/%3E%3C/svg%3E"); }
.demo.is-paused .demo-play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 1l7 4-7 4z' fill='%2326251f'/%3E%3C/svg%3E"); }
/* 评审 10-27：步骤条不折行，窄的时候横向滚动，播放器把当前步滚到中间 */
.demo-steps { position: relative; display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 2px 0; list-style: none; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.demo-steps::-webkit-scrollbar { display: none; }
.demo-steps li { flex: none; }
.demo-step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid #e6e3da; background: #fff; color: #8a877e; font-size: 12px; line-height: 1.3; white-space: nowrap; cursor: pointer; font-family: inherit; transition: border-color .2s ease, color .2s ease; }
.demo-step:hover { border-color: #9f9b91; color: #2f2e29; }
.demo-step-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #efede7; color: #8a877e; font-size: 11px; font-variant-numeric: tabular-nums; }
.demo-step.is-current { border-color: #1d1c18; color: #1d1c18; }
.demo-step.is-current .demo-step-n { background: #1d1c18; color: #fff; }
.demo-time { flex: none; font-size: 11px; color: #8a877e; font-variant-numeric: tabular-nums; }
.demo-time:empty { display: none; }
.demo.is-static .demo-play, .demo.is-static .demo-time, .demo[data-demo-state="failed"] .demo-play, .demo[data-demo-state="failed"] .demo-time { display: none; }
@media (max-width: 480px) { .demo-time { display: none; } .demo-bar { padding: 8px 10px; } .demo-step { font-size: 11px; padding: 4px 9px 4px 5px; } }

/* ---------- 购买区里的「下单前先做」演示（10-29：KYC 要先复制认证链接再填，演示放在填写框正上方） ---------- */
.store-predemo { padding: 16px 16px 14px; border-radius: 14px; background: #fff; border: 1px solid #e6e3da; }
.store-predemo h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-size: 14px; font-weight: 650; color: #26251f; }
.store-predemo h3 small { font-weight: 400; font-size: 12px; color: #8a877e; }
.store-predemo p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; color: #55534c; }
.store-predemo .demo { border-radius: 12px; }

/* ---------- 商品页「怎么交付」块 ---------- */
.store-how { margin-top: 28px; padding: 24px 26px 22px; background: #fff; border: 1px solid #e6e3da; border-radius: 22px; }
.store-how-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin: 0 0 16px; }
.store-how-head h2 { font-size: 20px; margin: 0; letter-spacing: -.02em; }
.store-how-head p { margin: 0; font-size: 13px; color: #8a877e; }
.store-how .how-flow { margin: 0 -6px 18px; }
.store-how-demo-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 650; color: #26251f; }
.store-how-demo-title small { font-weight: 400; color: #8a877e; }
.store-how-more { margin: 14px 0 0; font-size: 13px; }
.store-how-more a { color: #26251f; text-decoration: underline; text-underline-offset: 3px; }

/* 完整说明默认折叠：原详情一行不少 */

/* ---------- 订单页 ---------- */
.order .how-flow { margin: 14px 0 6px; }
.order .how-use { padding-bottom: 6px; }
.order .how-use .demo { margin-top: 10px; }
.order .how-use .how-use-steps { margin: 10px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.8; color: #2f2e29; }

/* ---------- /how 教程页 ---------- */
.how-page { max-width: 820px; }
.how-hero { padding: 28px 0 22px; }
.how-hero h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; letter-spacing: -.03em; }
.how-hero p { margin: 0; font-size: 15px; color: #8a877e; line-height: 1.7; }
.how-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.how-toc a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid #e6e3da; background: #fff; color: #26251f; font-size: 13px; text-decoration: none; }
.how-toc a:hover { border-color: #9f9b91; }
.how-common { margin: 26px 0 0; padding: 22px 24px; background: #fff; border: 1px solid #e6e3da; border-radius: 22px; }
.how-common h2 { font-size: 18px; margin: 0 0 14px; }
.how-type { margin: 22px 0 0; padding: 22px 24px 20px; background: #fff; border: 1px solid #e6e3da; border-radius: 22px; scroll-margin-top: 84px; }
.how-type h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -.02em; }
.how-type > p { margin: 0 0 14px; font-size: 14px; color: #8a877e; line-height: 1.7; }
.how-type-products { margin: 14px 0 0; font-size: 13px; color: #8a877e; line-height: 1.9; }
.how-type-products a { display: inline-block; white-space: nowrap; color: #26251f; text-decoration: underline; text-underline-offset: 3px; margin-right: 10px; }
@media (max-width: 640px) {
  .store-how { padding: 18px 16px 16px; border-radius: 18px; }
  .how-type, .how-common { padding: 16px; border-radius: 18px; }
  /* 评审 10-27：手机上舞台撑到卡片边，文字多 12% */
  .store-how .demo, .how-type .demo { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; border-radius: 0; }
  .store-how-more { margin-top: 12px; }
}

/* ---------- 交互件：规格问答、充值前自检 ---------- */
.store-chooser { margin: 0 0 14px; padding: 0 14px; background: #faf9f6; border: 1px solid #efede7; border-radius: 14px; }
.store-chooser > summary { list-style: none; cursor: pointer; padding: 11px 0; font-size: 13px; font-weight: 600; color: #26251f; display: flex; align-items: center; gap: 8px; }
.store-chooser > summary::-webkit-details-marker { display: none; }
.store-chooser > summary::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1d1c18; color: #fff; font-size: 12px; flex: none; }
.store-chooser[open] > summary { border-bottom: 1px solid #efede7; }
.store-chooser-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
.store-chooser-opt { padding: 8px 12px; border-radius: 999px; border: 1px solid #e6e3da; background: #fff; color: #26251f; font-size: 13px; cursor: pointer; font-family: inherit; transition: border-color .2s ease, background .2s ease; }
.store-chooser-opt:hover { border-color: #9f9b91; }
.store-chooser-opt.is-on { background: #1d1c18; border-color: #1d1c18; color: #fff; }
.store-chooser-note { margin: 6px 0 12px; font-size: 13px; line-height: 1.6; color: #2f2e29; }
.store-check { margin: 0 0 18px; padding: 16px 18px; border: 1px solid #efede7; border-radius: 14px; background: #faf9f6; }
.store-check h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; font-size: 14px; font-weight: 650; color: #26251f; }
.store-check h3 small { font-weight: 400; font-size: 12px; color: #8a877e; }
.store-check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.store-check-list label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #efede7; font-size: 13px; line-height: 1.6; color: #2f2e29; cursor: pointer; }
.store-check-list label:has(input:checked) { border-color: #b9dcc6; background: #f3faf5; }
.store-check-list input { margin: 4px 0 0; flex: none; accent-color: #1f8a4c; }
.store-check-list b { display: block; font-weight: 650; color: #26251f; }
.store-check-state { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: #b45309; }
.store-check-state.is-ok { color: #1f8a4c; }
.store-check-note { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: #8a877e; }

/* 规格问答售罄时的联系客服；自检没勾完时的下单按钮 */
.store-chooser-contact { margin: 0 0 12px; }
.store-chooser-contact .btn { font-size: 13px; padding: 7px 12px; }
.store-check-state.is-ok { color: #1f8a4c; }
#store-pay.is-gated { opacity: .55; }
