/* 小白码支付 - 前台样式 */
:root {
  --primary: #0052D9;
  --primary-light: #e8f0ff;
  --primary-dark: #003cab;
  --bg: #f5f7fa;
  --card-bg: #fff;
  --text: #1a1a2e;
  --text-secondary: #666;
  --text-muted: #999;
  --border: #e8e8e8;
  --green: #00a870;
  --orange: #ed7b2f;
  --red: #e34d59;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --max-width: 1200px;
  --nav-height: 64px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* 主按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 20px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn--ghost:hover { background: var(--primary-light); }
.btn--sm { padding: 6px 14px; font-size: 13px; }
.btn--lg { padding: 12px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* 导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav { display: flex; align-items: center; height: 100%; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.brand__logo {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #4a90d9);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__login, .nav__user { color: var(--text-secondary); font-size: 14px; }
.nav__logout { color: var(--red); font-size: 13px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 50%, #f5f0ff 100%);
  padding: 80px 0 60px; position: relative; overflow: hidden;
}
.hero__inner { display: flex; align-items: center; gap: 60px; }
.hero__copy { flex: 1; }
.hero h1 { font-size: 42px; font-weight: 700; line-height: 1.3; margin: 16px 0; }
.hero__lead { font-size: 16px; color: var(--text-secondary); margin-bottom: 28px; max-width: 500px; }
.hero__actions { display: flex; gap: 12px; margin-bottom: 20px; }
.hero__meta { display: flex; gap: 24px; color: var(--text-muted); font-size: 13px; }
.hero__meta span { display: flex; align-items: center; gap: 4px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--primary); font-weight: 500;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.grad-text {
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Hero 可视化 */
.hero__visual { flex: 0 0 420px; position: relative; }
.dash-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-lg); margin-bottom: 16px;
}
.dash-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dash-card__head span { font-weight: 600; font-size: 14px; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.window-dots i:nth-child(1) { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #28c941; }
.live-pill {
  margin-left: auto; font-size: 11px; color: var(--green);
  display: flex; align-items: center; gap: 4px;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.dash-amount { font-size: 28px; font-weight: 700; }
.dash-compare { font-size: 12px; color: var(--green); margin: 4px 0 12px; }
.dash-chart { height: 60px; margin-bottom: 12px; }
.dash-chart svg { width: 100%; height: 100%; }
.dash-stats { display: flex; gap: 20px; }
.dash-stats div { font-size: 12px; }
.dash-stats span { display: block; color: var(--text-muted); }
.dash-stats strong { font-size: 16px; }

/* 手机卡 */
.phone-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow); margin-top: -20px; margin-left: 40px;
  position: relative; z-index: 2;
}
.phone-card__screen {
  background: linear-gradient(180deg, #f8f9ff, #fff);
  border-radius: 20px; padding: 20px; text-align: center;
}
.success-ring {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.phone-pay__title { font-size: 16px; font-weight: 600; }
.phone-amount { font-size: 24px; font-weight: 700; margin: 8px 0; }
.phone-detail { font-size: 12px; color: var(--text-muted); text-align: left; }
.phone-detail div { display: flex; justify-content: space-between; padding: 4px 0; }

/* QR卡 */
.qr-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 16px; box-shadow: var(--shadow); margin-top: 16px; margin-left: auto;
  width: 200px; text-align: center;
}
.qr-card__head { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.qr-card__image {
  width: 150px; height: 150px; margin: 0 auto;
  background: repeating-conic-gradient(#333 0% 25%, #fff 0% 50%) 50% / 20px 20px;
  border-radius: 8px;
}

/* 通用Section */
.section { padding: 60px 0; }
.section-head--center { text-align: center; margin-bottom: 40px; }
.section-head--center h2 { font-size: 28px; margin: 12px 0 8px; }
.section-head--center p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Channels走马灯 */
.channels { padding: 40px 0; background: var(--card-bg); }
.channels__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.channels__head h2 { font-size: 22px; margin: 8px 0; }
.channels__head p { color: var(--text-secondary); }
.channels__note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 40px; animation: scroll 30s linear infinite; width: max-content; }
.marquee__group { display: flex; gap: 40px; }
@keyframes scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.channel-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Features Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); transition: transform .2s;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bento-card--wide { grid-column: span 2; }
.bento-card--dark { background: #1a1a2e; color: #fff; }
.bento-card--dark h3, .bento-card--dark p { color: #fff; }
.bento-card--dark .mini-badge { color: #67e8f9; }
.bento-card__copy { position: relative; z-index: 1; }
.icon-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.icon-box svg { width: 22px; height: 22px; }
.bento-card h3 { font-size: 16px; margin-bottom: 8px; }
.bento-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.text-link { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-row span { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--bg); color: var(--text-secondary); }
.mini-ledger div { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.mini-ledger .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot--green { background: var(--green); }
.dot--blue { background: var(--primary); }
.dot--violet { background: #7c3aed; }
.mini-code { background: #1e1e2e; border-radius: 8px; padding: 12px; font-family: monospace; font-size: 12px; color: #a6e3a1; }
.mini-code__method { color: #f38ba8; font-weight: 700; }
.settle-card { margin-top: 12px; }
.settle-card__top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); }
.settle-card__amount { font-size: 28px; font-weight: 700; margin: 4px 0; }
.settle-card__foot { font-size: 11px; color: rgba(255,255,255,.4); }

/* Metrics */
.metrics { padding: 60px 0; background: var(--card-bg); }
.metrics__inner { display: flex; align-items: center; gap: 60px; }
.metrics__copy { flex: 0 0 300px; }
.metrics__copy h2 { font-size: 28px; margin: 12px 0 8px; }
.metrics__copy p { color: var(--text-secondary); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; flex: 1; }
.metric { text-align: center; }
.metric strong { font-size: 32px; font-weight: 700; display: block; }
.metric em { font-style: normal; font-size: 16px; }
.metric__label { font-size: 13px; color: var(--text-muted); }

/* Pricing */
.pricing { position: relative; }
.plan-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.plan-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); position: relative; transition: transform .2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-hot {
  position: absolute; top: -1px; right: 20px;
  background: var(--orange); color: #fff; font-size: 11px;
  padding: 2px 10px; border-radius: 0 0 6px 6px;
}
.plan-card__head h3 { font-size: 18px; margin-bottom: 4px; }
.plan-card__head p { font-size: 12px; color: var(--text-muted); }
.plan-price { font-size: 36px; font-weight: 700; margin: 12px 0 4px; }
.plan-price__currency { font-size: 18px; vertical-align: top; }
.plan-valid { font-size: 12px; color: var(--text-muted); }
.plan-card__divider { height: 1px; background: var(--border); margin: 16px 0; }
.plan-specs div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.plan-specs dt { color: var(--text-muted); }
.plan-specs dd { font-weight: 500; }
.plan-note { font-size: 12px; color: var(--green); margin: 12px 0; }
.plan-note em { color: var(--orange); font-style: normal; }

/* Calculator */
.rate-calculator {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.rate-calculator__intro { display: flex; gap: 16px; margin-bottom: 20px; }
.rate-calculator__intro h3 { font-size: 16px; margin-bottom: 4px; }
.rate-calculator__intro p { font-size: 13px; color: var(--text-secondary); }
.rate-slider__head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.rate-slider__head output { font-weight: 700; color: var(--primary); }
input[type=range] { width: 100%; height: 6px; -webkit-appearance: none; background: var(--border); border-radius: 3px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; }
.rate-duration { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.rate-duration__options { display: flex; gap: 8px; }
.rate-duration__option { padding: 6px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; cursor: pointer; font-size: 13px; }
.rate-duration__option.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.rate-calculator__results { display: flex; gap: 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.rate-calculator__results > div { font-size: 13px; }
.rate-calculator__results span { display: block; color: var(--text-muted); margin-bottom: 4px; }
.rate-calculator__results strong { font-size: 18px; font-weight: 700; }
.rate-calculator__result--primary strong { color: var(--primary); }

/* Steps */
.steps-section { background: var(--card-bg); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
.step { text-align: center; }
.step__dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-weight: 700; font-size: 14px;
}
.step h3 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--text-secondary); }
.steps-actions { display: flex; gap: 12px; justify-content: center; }

/* Code Window */
.dev-section { background: var(--bg); }
.dev-panel {
  background: #1a1a2e; border-radius: var(--radius-lg); padding: 40px;
  color: #fff; position: relative; overflow: hidden;
}
.dev-copy { position: relative; z-index: 1; margin-bottom: 24px; }
.dev-copy h2 { font-size: 24px; margin: 12px 0 8px; }
.dev-copy p { color: rgba(255,255,255,.6); max-width: 500px; }
.dev-list { list-style: none; margin: 16px 0; }
.dev-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: rgba(255,255,255,.8); font-size: 14px; }
.dev-list svg { color: var(--green); flex-shrink: 0; }
.code-window { background: #0d0d1a; border-radius: var(--radius); overflow: hidden; }
.code-window__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #16162a; }
.code-tabs { display: flex; gap: 4px; }
.code-tab { padding: 6px 14px; border: none; background: transparent; color: rgba(255,255,255,.4); border-radius: 4px; cursor: pointer; font-size: 13px; }
.code-tab.is-active { background: #2a2a4a; color: #fff; }
.copy-btn { display: flex; align-items: center; gap: 4px; padding: 4px 10px; background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.6); border-radius: 4px; cursor: pointer; font-size: 12px; }
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.code-window__body { padding: 16px; }
.code-panel { display: none; font-family: "Cascadia Code", "Fira Code", monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; }
.code-panel.is-active { display: block; }
.code-panel .c-comment { color: #6c7086; }
.code-panel .c-method { color: #f38ba8; font-weight: 700; }
.code-panel .c-url { color: #89b4fa; }
.code-panel .c-key { color: #fab387; }
.code-panel .c-str { color: #a6e3a1; }
.code-panel .c-num { color: #cba6f7; }
.code-window__foot { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #16162a; font-size: 12px; color: rgba(255,255,255,.4); }

/* Demo */
.demo-section { background: var(--card-bg); }
.demo-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo-copy h2 { font-size: 24px; margin: 12px 0 8px; }
.demo-copy p { color: var(--text-secondary); margin-bottom: 16px; }
.demo-list { list-style: none; }
.demo-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; }
.demo-list svg { color: var(--green); flex-shrink: 0; }
.demo-box {
  background: var(--bg); border-radius: var(--radius-lg); padding: 24px;
  text-align: center;
}
.demo-box__amount { font-size: 32px; font-weight: 700; margin: 16px 0; }
.demo-box__btn { margin-top: 16px; }

/* FAQ */
.faq-section { background: var(--bg); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-item { background: var(--card-bg); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 15px; margin-bottom: 8px; }
.faq-item p { font-size: 13px; color: var(--text-secondary); }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), #4a90d9);
  padding: 60px 0; text-align: center; color: #fff;
}
.cta h2 { font-size: 28px; margin-bottom: 8px; }
.cta p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.cta .btn--primary { background: #fff; color: var(--primary); }
.cta .btn--primary:hover { background: #f0f0f0; }

/* Footer */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,.6); padding: 40px 0 20px; }
.footer__inner { display: flex; gap: 40px; margin-bottom: 24px; }
.footer__brand { flex: 0 0 200px; }
.footer__brand span { font-weight: 700; color: #fff; font-size: 16px; margin-right: 8px; }
.footer__brand p { font-size: 12px; margin-top: 8px; }
.footer__links { display: flex; gap: 60px; }
.footer__links div { display: flex; flex-direction: column; gap: 8px; }
.footer__links h4 { color: #fff; font-size: 14px; margin-bottom: 4px; }
.footer__links a { color: rgba(255,255,255,.5); font-size: 13px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

/* Maintenance */
.maintenance-banner { background: var(--orange); color: #fff; text-align: center; padding: 8px; font-size: 13px; }

/* Responsive */
@media (max-width: 968px) {
  .hero__inner { flex-direction: column; }
  .hero__visual { flex: none; width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
  .metrics__inner { flex-direction: column; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .plan-group { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .demo-panel { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__links { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 28px; }
  .plan-group { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr; }
}
