/* hidden 属性必须真的隐藏（.lightbox 等用了 display:flex） */
[hidden] { display: none !important; }

/* 官网补充样式：手机导航、产品卡、购买页。style.css 保持与仓库一致，改动都放这里。 */

/* 手机上导航不隐藏，改成可横向滑动的一行 */
@media (max-width: 640px) {
  .nav .wrap { gap: 12px; height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .brand { font-size: 17px; }
  .nav-links { margin-left: 0; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .nav-links a:not(.nav-cta) { display: inline; white-space: nowrap; }
  .nav-links .nav-cta { white-space: nowrap; padding: 4px 14px; }
  section { padding: 48px 0; }
  .section-title h2 { font-size: 24px; }
  .page-head { padding: 40px 0 34px; }
  .page-head h1 { font-size: 26px; }
  .card { padding: 22px; }
  .contact-box { padding: 26px; }
  .doc table { display: block; overflow-x: auto; }
}

.product-card { display: flex; flex-direction: column; }
.product-card ul { flex: 1; margin-bottom: 18px; }
.product-card .btn { align-self: flex-start; }
.license-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* 教程截图替代：界面按钮文字 */
.ui { display: inline-block; background: #fff; border: 1px solid #cfd6e2; border-radius: 6px; padding: 0 7px; font-size: 14px; color: var(--sea-800); white-space: nowrap; }
.doc .figure { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0; font-size: 15px; }

/* 购买页 */
.buy { max-width: 760px; margin: 0 auto; }
.buy-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.buy-step h2 { font-size: 20px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.buy-step h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--flame); color: #fff; font-size: 15px; display: grid; place-items: center; flex: none; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-option { position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; display: block; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option.checked { border-color: var(--flame); background: #fffaf3; }
.plan-option strong { display: block; font-size: 17px; }
.plan-option .amount { font-size: 26px; font-weight: 800; color: var(--sea-800); }
.plan-option .amount small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-option .includes { font-size: 13px; color: var(--muted); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 46px; border: 1px solid #cfd6e2; border-radius: 10px; padding: 0 14px; font-size: 16px;
               font-family: Consolas, "SFMono-Regular", monospace; letter-spacing: .5px; }
.field input:focus { outline: 2px solid #f6c48d; border-color: var(--flame); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.buy-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.buy-error { color: #b42318; background: #fff0ee; border-radius: 10px; padding: 10px 14px; margin-top: 14px; display: none; }
.buy-error.show { display: block; }
.sandbox-banner { background: #fff4df; color: #7a4f0b; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; display: none; }
.sandbox-banner.show { display: block; }

.pay-box { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.qr { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pay-info { flex: 1; min-width: 220px; }
.pay-info .amount { font-size: 32px; font-weight: 800; color: var(--sea-800); }
.pay-info .waiting { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid #cfd6e2; border-top-color: var(--flame); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.order-no { font-size: 13px; color: var(--muted); word-break: break-all; }
.mobile-pay { display: none; margin-top: 12px; }
@media (max-width: 640px) {
  .plan-options { grid-template-columns: 1fr; }
  .buy-step { padding: 20px; }
  .pay-box { flex-direction: column; align-items: stretch; }
  .qr { margin: 0 auto; }
  .mobile-pay { display: inline-block; text-align: center; }
}

.code-box { background: linear-gradient(135deg, var(--sea-800), var(--sea-700)); color: #fff; border-radius: 16px; padding: 24px; text-align: center; }
.code-box .label { color: #c9d4e5; font-size: 14px; }
.code-box .code { font-family: Consolas, "SFMono-Regular", monospace; font-size: 24px; font-weight: 700; letter-spacing: 1px; color: #fff;
                  margin: 10px 0 16px; word-break: break-all; user-select: all; }
.code-box .btn { min-width: 180px; }
.done-list { margin: 18px 0 0; padding-left: 22px; }
.done-list li { margin: 6px 0; }
.warn-save { background: #fff8ee; border-left: 4px solid var(--flame); padding: 12px 16px; border-radius: 8px; margin-top: 16px; color: #5c4424; }
@media (max-width: 640px) { .code-box .code { font-size: 18px; } }

/* 教程锚点跳转时不被顶部导航挡住 */
.doc [id] { scroll-margin-top: 84px; }
@media (max-width: 640px) { .doc [id] { scroll-margin-top: 110px; } }

/* 购买页：上一笔已付款订单的提示 */
.last-order { background: #eef7f1; border: 1px solid #cfe9d9; color: #22543a; border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; }
.last-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.last-code code { font-family: Consolas, "SFMono-Regular", monospace; font-size: 17px; font-weight: 700; color: var(--sea-800); word-break: break-all; }
.btn-sm { padding: 6px 14px; font-size: 14px; }

/* 购买页：试用套餐 */
.plan-option.trial { border-style: dashed; }
.plan-option.trial.checked { border-style: solid; }
.trial-badge { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 600; color: var(--flame-dark); background: #fff3e6; border-radius: 6px; padding: 1px 8px; }
.field input:disabled { background: #f1f3f7; color: var(--muted); cursor: not-allowed; }
.trial-strip { max-width: 786px; margin: 26px auto 0; background: #fff; border: 1px dashed var(--flame); border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trial-strip p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); }
.trial-strip strong { color: var(--ink); }

/* ── 首页改版（2026-09-28）：截图、痛点、功能分区、FAQ ───────────────── */
.hero-v2 { padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero-kicker { display: inline-block; font-size: 13px; letter-spacing: 1px; color: #ffd2a3; background: rgba(242,140,40,.16);
               border: 1px solid rgba(242,140,40,.35); border-radius: 999px; padding: 3px 12px; margin-bottom: 18px; }
.hero-v2 h1 { font-size: 42px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #c9d4e5; font-size: 14px; }
.hero-points li { position: relative; padding-left: 20px; }
.hero-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 5px; border-left: 2px solid #7fd6a0; border-bottom: 2px solid #7fd6a0; transform: rotate(-45deg); }
.hero-shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* 截图外框：仿 Windows 窗口 */
.shot { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid rgba(15,36,64,.12); box-shadow: 0 18px 50px rgba(11,27,46,.16); cursor: zoom-in; }
.shot-bar { height: 30px; background: #eef1f6; border-bottom: 1px solid #dfe4ec; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e1; }
.shot-bar i:first-child { background: #f47b72; } .shot-bar i:nth-child(2) { background: #f6c55b; } .shot-bar i:nth-child(3) { background: #7fcf7a; }
.shot-bar span { margin-left: 8px; font-size: 12px; color: #6b7486; }
.shot img { display: block; width: 100%; height: auto; }

/* 痛点 */
.pain { background: #fff; }
.pain-card { background: var(--bg); border-radius: var(--radius); padding: 26px; position: relative; }
.pain-no { font-size: 13px; font-weight: 800; color: var(--flame); letter-spacing: 1px; }
.pain-card h3 { margin: 6px 0 10px; font-size: 19px; }
.pain-before { color: var(--muted); margin: 0 0 12px; }
.pain-after { margin: 0; padding-top: 12px; border-top: 1px dashed #d6dce6; }
.pain-after b { color: var(--sea-700); }

/* 功能分区 */
.products { padding-top: 64px; }
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: center; margin-bottom: 84px; }
.feature.reverse .feature-copy { order: 2; }
.feature:last-child { margin-bottom: 0; }
.feature-copy h3 { font-size: 26px; margin: 8px 0 10px; }
.feature-copy > p { color: var(--muted); margin: 0 0 16px; }
.feature .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--flame-dark); background: #fff3e6; border-radius: 6px; padding: 2px 10px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding: 6px 0 6px 28px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.text-link { margin-left: 16px; font-weight: 600; }
.shot-tabs { display: inline-flex; gap: 4px; background: #e9edf4; border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.shot-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.shot-tabs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 流程 */
.flow { background: #fff; }
.flow-line { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.flow-step { background: var(--bg); border-radius: 14px; padding: 18px 26px; text-align: center; min-width: 150px; }
.flow-step b { display: block; font-size: 20px; color: var(--sea-800); }
.flow-step span { color: var(--muted); font-size: 14px; }
.flow-arrow { align-self: center; color: var(--flame); font-size: 22px; font-weight: 700; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* 结尾号召 */
.final-cta { background: linear-gradient(160deg, var(--sea-900), var(--sea-700)); color: #fff; text-align: center; }
.final-cta h2 { font-size: 32px; margin: 0 0 10px; }
.final-cta p { color: #c9d4e5; margin: 0 0 26px; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .contact-line { margin: 26px 0 0; font-size: 14px; }
.final-cta .contact-line a { color: #ffd2a3; }

/* 看大图 */
.lightbox { position: fixed; inset: 0; background: rgba(8,16,28,.86); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-copy { order: 0; }
  .hero-shot { transform: none; }
  .feature { margin-bottom: 56px; }
}
@media (max-width: 640px) {
  .hero-v2 { padding: 44px 0 52px; }
  .hero-v2 h1 { font-size: 30px; }
  .feature-copy h3 { font-size: 22px; }
  .flow-arrow { display: none; }
  .flow-step { flex: 1 1 40%; min-width: 0; padding: 14px; }
  .final-cta h2 { font-size: 26px; }
  .text-link { display: inline-block; margin: 12px 0 0 0; }
}

.shot-caption { margin: 12px 4px 0; font-size: 14px; color: var(--muted); }
.feature-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 24px; box-shadow: var(--shadow); }
.panel-step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.panel-step:last-child { border-bottom: 0; }
.panel-step > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sea-100); color: var(--sea-700); font-weight: 800; display: grid; place-items: center; }
.panel-step b { display: block; font-size: 17px; margin-bottom: 2px; }
.panel-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* 首页头图不放截图：单栏 */
.hero-solo .hero-copy { max-width: 760px; }
.hero-solo .hero-copy > p { max-width: 640px; }
