/* ==========================================================================
   Vorbyn 官网 · V2 视觉升级层
   纯增强：只加装饰、动效与新增区块样式，不改原 style.css 的布局规则。
   引入顺序必须在 style.css 之后。
   ========================================================================== */

:root {
  --v2-grad: linear-gradient(120deg, #1f55ff 0%, #3b7bff 46%, #17c9b0 100%);
  --v2-grad-soft: linear-gradient(140deg, #eaf0ff 0%, #e8fbf7 100%);
}

/* ---------- 顶部：进度条 / 渐变线 / 导航胶囊 ---------- */
#v2-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1000;
  background: var(--v2-grad); box-shadow: 0 0 14px rgba(31, 85, 255, .55);
  transition: width .12s linear; pointer-events: none;
}
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #1f55ff, #17c9b0, #1f55ff);
  background-size: 200% 100%; animation: v2Slide 9s linear infinite;
  opacity: .9;
}
@keyframes v2Slide { to { background-position: 200% 0; } }
.nav a.active { background: var(--brand-soft); }
.nav a.active::after { bottom: 3px; width: 16px; }

/* ---------- 按钮光泽 ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: -20%; left: -130%; width: 55%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-22deg); transition: left .65s var(--ease); pointer-events: none;
}
.btn-primary:hover::after { left: 150%; }
.btn-light { box-shadow: 0 12px 30px rgba(3, 12, 32, .18); }

/* ---------- Hero ---------- */
.hero { isolation: isolate; }
.v2-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.v2-orbs i {
  position: absolute; border-radius: 50%; filter: blur(64px); opacity: .55;
  animation: v2Drift 15s ease-in-out infinite alternate;
}
.v2-orbs i:nth-child(1) { width: 440px; height: 440px; left: -150px; top: 4%; background: rgba(31, 85, 255, .55); }
.v2-orbs i:nth-child(2) { width: 380px; height: 380px; right: -80px; bottom: -110px; background: rgba(23, 201, 176, .3); animation-delay: -6s; }
.v2-orbs i:nth-child(3) { width: 280px; height: 280px; left: 44%; top: -140px; background: rgba(133, 170, 255, .25); animation-delay: -3s; }
@keyframes v2Drift { to { transform: translate3d(46px, -34px, 0) scale(1.14); } }

.hero .h1 { text-shadow: 0 10px 34px rgba(0, 0, 0, .2); }
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4fe3c5;
  box-shadow: 0 0 0 4px rgba(79, 227, 197, .18); animation: v2Pulse 2.2s ease-in-out infinite;
}
@keyframes v2Pulse { 50% { box-shadow: 0 0 0 8px rgba(79, 227, 197, 0); } }
.hero-badge { backdrop-filter: blur(8px); }
.gradient-text {
  background: linear-gradient(100deg, #8fb4ff 0%, #fff 42%, #8ff0dd 78%, #8fb4ff 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  animation: v2Shine 9s linear infinite;
}
@keyframes v2Shine { to { background-position: 220% center; } }
.hero-visual { animation: v2Float 7s ease-in-out infinite; }
@keyframes v2Float { 50% { transform: translateY(-13px); } }
.hero-visual svg, .hero-visual img { filter: drop-shadow(0 36px 64px rgba(0, 0, 0, .38)); }
.v2-step .dot svg { width: 26px; height: 26px; }

.v2-scroll {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  font-size: 11.5px; letter-spacing: .16em; color: #8ea6cd; text-transform: uppercase;
}
.v2-scroll i {
  width: 22px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px;
  position: relative; display: inline-block;
}
.v2-scroll i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  margin-left: -1.5px; border-radius: 3px; background: #8fb0ff;
  animation: v2Wheel 1.8s ease-in-out infinite;
}
@keyframes v2Wheel { 50% { transform: translateY(10px); opacity: .35; } }

/* ---------- 数字条 ---------- */
.stats { position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--v2-grad);
}
.stat { transition: background .3s; }
.stat:hover { background: linear-gradient(180deg, #f5f9ff, #fff); }
.stat::after {
  content: ""; position: absolute; top: 30px; right: 26px; width: 7px; height: 7px;
  border-radius: 50%; background: #17c9b0; opacity: .5;
}
.stat { position: relative; }
.stat strong { font-variant-numeric: tabular-nums; }

/* ---------- 卡片统一质感 ---------- */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 2px;
  border-radius: 0 0 3px 3px; background: var(--v2-grad);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease); pointer-events: none;
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  background: var(--v2-grad-soft);
  box-shadow: inset 0 0 0 1px rgba(31, 85, 255, .07);
}
.card:hover .card-icon { box-shadow: 0 8px 20px rgba(31, 85, 255, .16); }
.product-card .num { background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .32; }
.card-link .arrow { transition: transform .25s var(--ease); display: inline-block; }
.card:hover .card-link .arrow { transform: translateX(5px); }

/* ---------- 服务流程（新增区块） ---------- */
.v2-flow { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 0; }
.v2-flow::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 32px; height: 2px;
  background: linear-gradient(90deg, rgba(31, 85, 255, .12), rgba(31, 85, 255, .55), rgba(23, 201, 176, .35));
}
.v2-step { position: relative; padding: 0 20px; text-align: center; }
.v2-step .dot {
  width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 20px;
  background: #fff; border: 1px solid #dce5f8; color: var(--brand);
  display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 10px 30px rgba(16, 32, 66, .07);
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s;
}
.v2-step:hover .dot {
  transform: translateY(-6px); background: var(--v2-grad); color: #fff;
  border-color: transparent; box-shadow: 0 16px 34px rgba(31, 85, 255, .26);
}
.v2-step .stepno { display: block; font-size: 11px; font-weight: 750; letter-spacing: .16em; color: #9aabc7; margin-bottom: 7px; }
.v2-step h4 { font-size: 16px; font-weight: 700; }
.v2-step p { font-size: 13px; color: var(--body); margin-top: 8px; line-height: 1.8; }

/* ---------- 交付保障（新增区块） ---------- */
.v2-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v2-pcard {
  padding: 34px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff 0%, #f6f9ff 100%);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.v2-pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.v2-pcard .big {
  font-size: 34px; font-weight: 780; letter-spacing: -.045em; line-height: 1.15;
  background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-pcard h4 { margin-top: 14px; font-size: 16px; font-weight: 700; }
.v2-pcard p { margin-top: 9px; font-size: 13.5px; color: var(--body); line-height: 1.85; }
.v2-pcard .line { width: 34px; height: 3px; border-radius: 3px; background: var(--v2-grad); margin-bottom: 22px; }

/* ---------- 行业标签（替换原 logo 墙） ---------- */
.v2-industry { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.v2-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff;
  font-size: 14px; font-weight: 620; color: var(--body);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.v2-chip b { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.v2-chip:hover {
  color: #fff; background: var(--v2-grad); border-color: transparent;
  transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 85, 255, .22);
}
.v2-chip:hover b { background: #fff; }

/* ---------- FAQ 精选 ---------- */
.v2-faq { max-width: 860px; margin: 0 auto; }
.v2-faq details { padding: 22px 4px; }
.v2-faq summary { font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { box-shadow: 0 30px 70px rgba(31, 85, 255, .2); }
.v2-ring { position: absolute; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; pointer-events: none; }
.v2-ring.r1 { width: 520px; height: 520px; right: -160px; bottom: -360px; }
.v2-ring.r2 { width: 360px; height: 360px; right: -80px; bottom: -280px; }
.v2-cta-note { margin-top: 20px; font-size: 12.5px; color: #cfe0ff; display: flex; gap: 18px; flex-wrap: wrap; }
.v2-cta-note span::before { content: "✓"; margin-right: 6px; color: #7ef0d6; font-weight: 700; }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--v2-grad); opacity: .85;
}
.site-footer::after {
  content: ""; position: absolute; left: -140px; bottom: -260px; width: 560px; height: 560px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 85, 255, .16), transparent 70%);
  pointer-events: none;
}
.site-footer > .wrap { position: relative; z-index: 1; }

/* ---------- 回到顶部 ---------- */
#v2-top {
  position: fixed; right: 24px; bottom: 88px; width: 46px; height: 46px; z-index: 800;
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-l); display: grid; place-items: center; color: var(--brand);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s, transform .3s, background .3s, color .3s;
}
#v2-top.show { opacity: 1; pointer-events: auto; transform: none; }
#v2-top:hover { background: var(--v2-grad); color: #fff; border-color: transparent; }

/* ---------- 内页页头装饰 ---------- */
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(31, 85, 255, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(31, 85, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.page-hero .crumb { font-weight: 550; }
.crumb a { color: var(--brand); }

/* 登录页左侧氛围 */
.auth-aside::after {
  content: ""; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(23, 201, 176, .22), transparent 70%);
  pointer-events: none;
}

/* ---------- 响应式（强制手机版时会由 site.js 自动提升） ---------- */
@media (max-width: 1080px) {
  .v2-flow { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .v2-flow::before { display: none; }
  .v2-promise { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-visual { animation: none; }
  .v2-scroll { display: none; }
  .v2-orbs i { filter: blur(48px); }
}
@media (max-width: 560px) {
  .v2-flow, .v2-promise { grid-template-columns: 1fr; gap: 30px; }
  .v2-step { padding: 0 6px; }
  .v2-step .dot { margin-bottom: 14px; }
  .v2-chip { padding: 10px 16px; font-size: 13px; }
  .v2-pcard { padding: 26px; }
  .v2-pcard .big { font-size: 29px; }
  #v2-top { right: 16px; bottom: 78px; }
  .v2-cta-note { gap: 8px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-orbs i, .hero-visual, .gradient-text, .v2-scroll i::after, .hero-badge::before { animation: none !important; }
}

/* ===== 接口盒子：第三方登录 / 盟点充值（无新增页面路径） ===== */
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: #8a97ad; font-size: 12.5px; }
.oauth-sep::before, .oauth-sep::after { content: ''; flex: 1; height: 1px; background: #e4eaf5; }
.oauth-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.oauth-btn { flex: 1 1 auto; min-width: 88px; padding: 10px 12px; border: 1px solid #dfe6f3; border-radius: 10px; background: #fff; color: #42506b; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.oauth-btn:hover { border-color: #1f55ff; color: #1f55ff; background: #f5f8ff; transform: translateY(-1px); }
.vb-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12,20,40,.62); backdrop-filter: blur(4px); }
.vb-modal-card { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; padding: 30px; border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(10,20,50,.3); text-align: center; }
.vb-modal-x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1f4fa; color: #64748b; font-size: 20px; line-height: 1; cursor: pointer; }
.vb-qr { display: block; width: 210px; height: 210px; max-width: 100%; margin: 20px auto 16px; border: 1px solid #e4eaf5; border-radius: 12px; background: #fff; object-fit: contain; }
.vb-modal .form-msg { min-height: 20px; }
.pay-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pay-amounts button { padding: 9px 18px; border: 1px solid #dfe6f3; border-radius: 9px; background: #fff; color: #42506b; font-weight: 600; cursor: pointer; }
.pay-amounts button.on { border-color: #1f55ff; background: #eef3ff; color: #1f55ff; }
.pay-stat { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.pay-stat div { flex: 1 1 120px; padding: 14px 16px; border-radius: 12px; background: #f6f8fd; font-size: 12.5px; color: #6b7a90; }
.pay-stat b { display: block; margin-top: 5px; font-size: 21px; color: #1f55ff; }
@media (max-width: 560px) {
  .vb-modal-card { padding: 24px 18px; }
  .oauth-btn { min-width: 76px; font-size: 12px; }
}

/* ================= 注册验证码 ================= */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row .input { flex: 1 1 auto; min-width: 0; }
.captcha-img { width: 120px; height: 48px; flex: 0 0 120px; border: 1px solid #dfe6f3; border-radius: 10px; background: #f2f6ff; cursor: pointer; object-fit: cover; transition: border-color .2s; }
.captcha-img:hover { border-color: #1f55ff; }
.captcha-send { flex: 0 0 auto; white-space: nowrap; }
.captcha-row .input[readonly] { background: #f6f8fd; color: #6b7a90; }

/* ================= 统一认证中心 sso.html ================= */
.section-head { margin-bottom: 26px; }
.section-head .h2 { margin: 10px 0 8px; }
.section-head p { font-size: 14.5px; }
.sso-hero-card { padding: 34px 36px; border: 1px solid #dfe7f8; border-radius: 22px; background: linear-gradient(135deg, #f4f8ff 0%, #fff 55%, #f2fbff 100%); box-shadow: var(--shadow); }
.sso-hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sso-hero-card .h2 { font-size: 25px; }
.sso-url-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px 10px 16px; border: 1px solid #e1e8f6; border-radius: 12px; background: #fff; }
.sso-url { flex: 1 1 auto; min-width: 0; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; color: #1440d0; }
.sso-url-row .btn { flex: 0 0 auto; }
.sso-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.sso-auth { margin-top: 26px; padding: 30px 32px; }
.sso-auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sso-auth .form-msg { min-height: 0; }
.sso-auth form { max-width: 460px; margin-top: 22px; }
.sso-auth .field { margin-bottom: 16px; }
.sso-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #f2f5fb; margin: 18px 0 4px; }
.sso-tabs button { flex: 1; padding: 10px 14px; border: 0; border-radius: 9px; background: transparent; color: #6b7a90; font-size: 13.5px; font-weight: 650; cursor: pointer; transition: .2s; }
.sso-tabs button.on { background: #fff; color: #1f55ff; box-shadow: var(--shadow-s); }

.sso-steps { align-items: stretch; }
.sso-step-n { display: inline-block; margin-bottom: 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #1f55ff; }
.sso-tip-card { display: flex; align-items: flex-start; gap: 18px; margin-top: 18px; }
.sso-tip-card .sso-step-n { margin: 4px 0 0; }

.sso-code-wrap { position: relative; padding: 0 0 16px; border: 1px solid #e1e8f6; border-radius: 18px; background: #fff; overflow: hidden; }
.sso-code-wrap .sso-tabs { margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.sso-code { margin: 0; padding: 22px 24px 8px; overflow-x: auto; background: #0d1b33; color: #d7e5ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; line-height: 1.85; white-space: pre; }
.sso-copy-code { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.sso-copy-code:hover { background: rgba(255,255,255,.2); }
.sso-code-wrap > .sso-tabs { background: #f2f5fb; }
.sso-code-wrap > .sso-tabs button.on { box-shadow: none; }

.sso-endpoints { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sso-ep { display: grid; grid-template-columns: 190px 110px 1fr; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.sso-ep:last-child { border-bottom: 0; }
.sso-ep:nth-child(even) { background: #fbfcfe; }
.sso-ep code { font-family: ui-monospace, Consolas, monospace; color: #1440d0; font-weight: 650; }
.sso-method { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #eaf0ff; color: #1f55ff; font-size: 11.5px; font-weight: 700; text-align: center; }
.sso-ep .muted { font-size: 12.5px; }

.sso-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sso-app-list { display: grid; gap: 10px; max-height: 420px; overflow: auto; }
.sso-app-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.sso-app-item b { display: block; font-size: 14px; }
.sso-app-item code { display: block; margin: 3px 0; font-size: 12px; color: #1440d0; }
.sso-app-item small { display: block; font-size: 11.5px; word-break: break-all; }
.sso-app-item .btn { flex: 0 0 auto; }
.sso-secret { margin-top: 18px; padding: 16px; border: 1px solid #ffd9b8; border-radius: 12px; background: #fff8f1; font-size: 13px; }
.sso-secret > b { display: block; margin-bottom: 10px; color: #b45309; }
.sso-secret-row { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; font-size: 12px; }
.sso-secret-row span { flex: 0 0 88px; color: #8a6a45; }
.sso-secret-row code { word-break: break-all; color: #a13d16; font-family: ui-monospace, Consolas, monospace; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 760px) {
  .sso-hero-card { padding: 24px 20px; }
  .sso-auth { padding: 22px 18px; }
  .sso-admin-grid { grid-template-columns: 1fr; }
  .sso-ep { grid-template-columns: 1fr; gap: 5px; }
  .sso-method { justify-self: start; }
  .sso-url-row { flex-wrap: wrap; }
  .sso-url-row .btn { width: 100%; }
  .captcha-img { width: 104px; flex-basis: 104px; }
  .captcha-send { padding: 0 10px; }
}

/* ===== 在线选购 / 商品页 ================================================= */
.shop-detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.shop-gallery { position: relative; padding: 30px 30px 20px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-s); }
.shop-gallery > img { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
.shop-badge { position: absolute; top: 20px; left: 20px; padding: 6px 13px; border-radius: 999px; background: #1f55ff; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.shop-gallery-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: #8a97aa; font-size: 12px; font-family: ui-monospace, Consolas, monospace; }

.shop-title { margin: 10px 0 6px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.shop-tagline { color: #6b7a90; font-size: 15px; }
.shop-price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; padding: 20px 24px; border: 1px solid #dbe5ff; border-radius: 18px; background: linear-gradient(100deg, #f4f7ff, #fbfcff); }
.shop-price-label { color: #6b7a90; font-size: 13px; }
.shop-price { display: flex; align-items: baseline; gap: 3px; color: #1f55ff; line-height: 1; }
.shop-price small { font-size: 22px; font-weight: 700; }
.shop-price strong { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.shop-price span { margin-left: 8px; color: #6b7a90; font-size: 13px; font-weight: 500; }
.shop-price-note { margin-left: auto; color: #8a97aa; font-size: 12px; }
.shop-desc { color: #4b5b70; font-size: 14.5px; line-height: 1.9; }
.shop-features { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; }
.shop-features li { display: flex; align-items: center; gap: 10px; color: #33445c; font-size: 14px; }
.shop-features li svg { flex: 0 0 auto; color: #1f55ff; }
.shop-pay { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.shop-pay-label { color: #6b7a90; font-size: 13px; }
.shop-pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-pay-tag { padding: 5px 12px; border: 1px solid #cfe0d6; border-radius: 8px; background: #f3fbf6; color: #1a7f45; font-size: 12.5px; font-weight: 650; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.shop-hint { margin-top: 14px; color: #8a6a45; font-size: 12.5px; }
.shop-account { margin-top: 8px; color: #6b7a90; font-size: 12.5px; }
.shop-account a { color: #1f55ff; font-weight: 650; }

/* 付款前联系客服提示 + 两个下单弹层 */
.shop-contact-note { margin: 16px 0 0; padding: 11px 14px; border: 1px solid #ffd9b0; border-radius: 12px; background: #fff8f0; color: #a45a12; font-size: 13px; line-height: 1.75; }
.shop-contact-note b { color: #c2410c; }
.shop-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.shop-modal-actions .btn { flex: 1 1 0; justify-content: center; }
.shop-pay-choices { display: flex; gap: 10px; margin-top: 4px; }
.shop-pay-choices .btn { flex: 1 1 0; justify-content: center; }
.shop-pay-choices .btn:disabled { opacity: .6; cursor: wait; }
.shop-checkout-msg { min-height: 20px; margin-top: 12px; color: #8a6a45; font-size: 12.5px; line-height: 1.7; }
.shop-modal-card p b { color: #c2410c; }
.shop-paid-wrap.is-paid .shop-paid-tip { border-color: #a5dcb9; background: #eafaf0; }

/* 支付完成后从平台同步跳回的提示条 */
.shop-paid-wrap { margin-top: 26px; }
.shop-paid-wrap[hidden] { display: none !important; }
.shop-paid-tip { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid #bfe6cd; border-radius: 16px; background: #f2fbf6; }
.shop-paid-icon { flex: 0 0 auto; color: #1a8f56; }
.shop-paid-body { flex: 1 1 auto; min-width: 0; }
.shop-paid-body b { display: block; margin-bottom: 5px; color: #146c42; font-size: 14px; }
.shop-paid-body p { margin: 0; color: #4a7b62; font-size: 13px; line-height: 1.8; }
.shop-notice { display: flex; align-items: flex-start; gap: 16px; margin-top: 34px; padding: 20px 24px; border: 1px solid #ffe3c2; border-radius: 16px; background: #fff9f2; }
.shop-notice-icon { flex: 0 0 auto; color: #c2761b; }
.shop-notice b { display: block; margin-bottom: 6px; color: #955914; font-size: 14px; }
.shop-notice p { margin: 0; color: #8a6a45; font-size: 13px; line-height: 1.8; }

.shop-service { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 48px 54px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow-s); }
.shop-service-copy p { max-width: 520px; margin-top: 14px; color: #4b5b70; font-size: 14.5px; line-height: 1.9; }
.shop-service-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.shop-service-meta span { padding: 6px 13px; border-radius: 999px; background: #f2f5fb; color: #5b6b82; font-size: 12.5px; }
.shop-service-qr { padding: 20px 24px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfe; text-align: center; }
.shop-service-qr img { display: block; width: 220px; height: 220px; object-fit: contain; }
.shop-service-qr p { margin: 10px 0 0; color: #8a97aa; font-size: 12px; }

.shop-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; }
.shop-modal[hidden] { display: none; }
.shop-modal-mask { position: absolute; inset: 0; background: rgba(9, 20, 40, .58); backdrop-filter: blur(3px); }
.shop-modal-card { position: relative; z-index: 1; width: min(92vw, 360px); padding: 30px 30px 26px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 80px rgba(8, 21, 46, .3); }
.shop-modal-card h3 { margin: 0 0 8px; font-size: 19px; }
.shop-modal-card p { margin: 0 0 18px; color: #6b7a90; font-size: 13px; line-height: 1.7; }
.shop-modal-card img { display: block; width: 240px; height: 240px; margin: 0 auto; object-fit: contain; }
.shop-modal-card > span { display: block; margin-top: 12px; color: #8a97aa; font-size: 12px; }
.shop-modal-close { position: absolute; top: 10px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f2f5fb; color: #5b6b82; font-size: 22px; line-height: 1; cursor: pointer; }
.shop-modal-close:hover { background: #e6ecf7; }

/* 首页 / 产品服务页的商品推广条 */
.shop-promo { display: grid; grid-template-columns: 128px 1fr auto; gap: 26px; align-items: center; margin-top: 34px; padding: 22px 30px; border: 1px solid #dbe5ff; border-radius: 20px; background: linear-gradient(105deg, #f5f8ff, #fff 70%); }
.shop-promo img { width: 128px; height: 128px; object-fit: contain; }
.shop-promo h3 { margin: 4px 0 6px; font-size: 21px; font-weight: 800; }
.shop-promo p { margin: 0; color: #6b7a90; font-size: 13.5px; line-height: 1.7; }
.shop-promo .shop-promo-price { display: inline-block; margin-left: 8px; color: #1f55ff; font-size: 20px; font-weight: 800; }
.shop-inline { display: flex; align-items: center; gap: 22px; margin-top: 34px; padding: 20px 26px; border: 1px dashed #c9d8ff; border-radius: 18px; background: #f8faff; }
.shop-inline > div:first-child { flex: 1 1 auto; }
.shop-inline h3 { margin: 0 0 5px; font-size: 18px; }
.shop-inline p { margin: 0; color: #6b7a90; font-size: 13px; }
.shop-inline b { color: #1f55ff; }

/* 中等宽度下压一压导航，避免菜单文字竖着折行 */
@media (min-width: 861px) and (max-width: 1080px) {
  .header-inner { gap: 16px; }
  .nav a { padding: 8px 9px; font-size: 13px; white-space: nowrap; }
  .header-actions .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
}

/* 中等宽度（笔记本 125% 缩放 / 未最大化窗口）继续保持图左文右，
   不再塌成单列导致右侧一大片空白、商品信息被挤到图片下面 */
@media (max-width: 980px) {
  .shop-detail { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 26px; }
  .shop-gallery { padding: 20px 18px 16px; border-radius: 18px; }
  .shop-gallery-foot { margin-top: 12px; padding-top: 12px; font-size: 11px; }
  .shop-title { font-size: clamp(26px, 3.6vw, 34px); }
  .shop-tagline { font-size: 14px; }
  .shop-price-box { gap: 10px; margin: 18px 0 16px; padding: 14px 16px; }
  .shop-price strong { font-size: 36px; }
  .shop-price small { font-size: 18px; }
  .shop-desc { font-size: 13.5px; line-height: 1.8; }
  .shop-features { gap: 8px; margin: 14px 0 18px; }
  .shop-features li { font-size: 13px; }
  .shop-pay { padding: 11px 0; }
  .shop-actions { margin-top: 18px; gap: 10px; }
  .shop-service { grid-template-columns: 1fr; gap: 26px; padding: 34px 28px; }
}
@media (max-width: 680px) {
  .shop-detail { grid-template-columns: 1fr; gap: 22px; }
  .shop-gallery { padding: 22px; }
  .shop-gallery > img { max-width: 340px; }
  .shop-price-box { gap: 8px; padding: 16px 18px; }
  .shop-price strong { font-size: 36px; }
  .shop-price-note { width: 100%; margin-left: 0; }
  .shop-actions .btn { flex: 1 1 100%; justify-content: center; }
  .shop-notice { padding: 18px; }
  .shop-paid-tip { flex-wrap: wrap; padding: 16px; }
  .shop-paid-body { flex: 1 1 100%; }
  .shop-paid-tip .btn { width: 100%; }
  .shop-modal-actions, .shop-pay-choices { flex-direction: column; }
  .shop-service-qr img { width: 200px; height: 200px; }
  .shop-promo { grid-template-columns: 84px 1fr; gap: 16px; padding: 18px; }
  .shop-promo img { width: 84px; height: 84px; }
  .shop-promo .btn { grid-column: 1 / -1; justify-content: center; }
  .shop-inline { flex-wrap: wrap; gap: 14px; }
  .shop-inline .btn { width: 100%; justify-content: center; }
}

/* 客服确认收款弹层：订单号 + 客服码 + 实时确认状态 */
.shop-manual-card { width: min(92vw, 420px); padding: 28px 28px 22px; }
.shop-manual-card h3 { font-size: 18px; }
.shop-manual-card p { margin-bottom: 14px; font-size: 12.5px; }
.shop-order-no { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed #c9d8ff; border-radius: 12px; background: #f7faff; text-align: left; }
.shop-order-no > span { flex: 0 0 auto; color: #8a97aa; font-size: 12px; }
.shop-order-no > b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #173a8a; font-size: 14px; letter-spacing: .3px; }
.shop-order-no .btn { flex: 0 0 auto; padding: 5px 10px; font-size: 12px; }
.shop-order-money { margin-top: 12px; color: #6b7a90; font-size: 13px; }
.shop-order-money b { margin-left: 6px; color: #e0500e; font-size: 22px; font-weight: 800; }
#shop-manual-qr { width: 200px; height: 200px; margin-top: 12px; }
.shop-manual-qr-tip { margin-top: 8px !important; color: #8a97aa !important; font-size: 12px !important; }
.shop-manual-state { margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: #fff7ed; color: #9a5b16; font-size: 12.5px; line-height: 1.6; }
.shop-manual-state.is-paid { background: #eafaf0; color: #18794e; font-weight: 650; }
@media (max-width: 480px) {
  .shop-manual-card { padding: 24px 18px 18px; }
  .shop-order-no { flex-wrap: wrap; }
  .shop-order-no > b { flex: 1 1 100%; order: 3; }
  #shop-manual-qr { width: 180px; height: 180px; }
}

/* ---------- 聚合支付 / 对接文档：表格与代码块 ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-s)}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;padding:15px 18px;font-size:12.5px;font-weight:600;color:#8492ac;background:#f8faff;border-bottom:1px solid var(--line);white-space:nowrap}
.table td{padding:14px 18px;border-bottom:1px solid #eef2f9;color:var(--body);vertical-align:top}
.table tr:last-child td{border-bottom:0}
.table b{color:var(--ink)}
.table code,.card code,.doc code{background:#eef2fb;padding:1px 6px;border-radius:5px;font-size:12.5px;font-family:ui-monospace,Consolas,Monaco,monospace;color:#1b3a7a}
.mono{font-family:ui-monospace,Consolas,Monaco,monospace;word-break:break-all}
pre.code{margin:0;background:#0d1526;color:#c7d6f5;border-radius:14px;padding:18px 20px;font-size:12.5px;line-height:1.9;overflow-x:auto;font-family:ui-monospace,Consolas,Monaco,monospace}
pre.code b{color:#7fb0ff;font-weight:600}
pre.code i{color:#7f8ba3;font-style:normal}
.doc h3{font-size:19px;font-weight:700;margin:0 0 10px;letter-spacing:-.01em}
.doc h3 .no{display:inline-block;min-width:26px;color:var(--brand);font-size:13px;letter-spacing:.08em;vertical-align:2px}
.doc p{font-size:14.5px;line-height:1.9;color:var(--body)}
.doc .panel-block{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 30px;margin-bottom:20px}
.doc .panel-block>.sub{margin:0 0 16px}
