:root {
  --home-blue: #2563eb;
  --home-blue-deep: #1d4ed8;
  --home-indigo: #4f46e5;
  --home-purple: #7c3aed;
  --home-ink: #0f172a;
  --home-slate: #334155;
  --home-muted: #64748b;
  --home-line: #e2e8f0;
  --home-paper: #f8fafc;
  --home-surface: #ffffff;
  --home-green: #10b981;
  --home-radius: 14px;
}

.home-main { overflow: hidden; background: var(--home-surface); }
.home-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.home-kicker { margin: 0 0 12px; color: var(--home-indigo); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-title { margin: 0; color: var(--home-ink); font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.home-intro { max-width: 620px; margin: 16px 0 0; color: var(--home-slate); font-size: 16px; line-height: 1.75; }

/* 渐变高亮与徽章 */
.text-gradient { background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.home-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 20px; border: 1px solid #e0e7ff; border-radius: 20px; background: #eef2ff; color: #4338ca; font-size: 13px; font-weight: 600; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); }

/* 按钮规范 */
.home-btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.home-btn { min-height: 48px; padding: 12px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--home-line); border-radius: 10px; color: var(--home-ink); background: var(--home-surface); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1); }
.home-btn:hover { border-color: #cbd5e1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08); }
.home-btn--primary { border: 0; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35); }
.home-btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45); }
.home-btn--quiet { color: var(--home-indigo); background: #f5f3ff; border-color: #ede9fe; }
.home-btn--quiet:hover { background: #ede9fe; }
.btn-icon { width: 18px; height: 18px; }

/* 信任点与背书 */
.home-proof { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; color: var(--home-slate); font-size: 14px; }
.home-proof span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.proof-check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 800; font-style: normal; }
.home-privacy-hint { margin: 18px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.home-privacy-hint a { color: var(--home-blue); text-decoration: underline; text-underline-offset: 3px; }
.hero-visual-card { position: relative; display: flex; align-items: center; gap: 14px; max-width: 440px; margin-top: 24px; padding: 10px 14px 10px 10px; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, #c7d2fe, #bfdbfe 52%, #fbcfe8) border-box; box-shadow: 0 12px 28px rgba(79, 70, 229, .10); }
.hero-visual-card::after { position: absolute; top: -40px; right: 12%; width: 120px; height: 120px; border-radius: 50%; background: rgba(129, 140, 248, .16); filter: blur(28px); content: ''; pointer-events: none; }
.hero-visual-card img { width: 92px; height: 58px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; object-position: center; }
.hero-visual-card span { position: relative; z-index: 1; display: grid; gap: 3px; }
.hero-visual-card b { color: var(--home-ink); font-size: 14px; }
.hero-visual-card small { color: var(--home-muted); font-size: 12px; }

/* Hero 首屏 */
.home-hero { position: relative; min-height: calc(100vh - 76px); min-height: 680px; display: flex; align-items: center; border-bottom: 1px solid var(--home-line); background: radial-gradient(circle at 80% 20%, rgba(224, 231, 255, 0.6) 0%, rgba(248, 250, 252, 0.9) 60%, #ffffff 100%); }
.home-hero-glow { position: absolute; top: 10%; right: 10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%); filter: blur(60px); pointer-events: none; }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr); gap: 56px; align-items: center; padding: 76px 0; }
.home-hero-grid > * { min-width: 0; }
.home-hero-copy h1 { max-width: 580px; margin: 0 0 20px; color: var(--home-ink); font-size: 56px; line-height: 1.12; letter-spacing: -.035em; }

/* 交互式 Hero 多端预览窗口 */
.hero-workspace { position: relative; padding: 18px; border: 1px solid transparent; border-radius: var(--home-radius); background: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)) padding-box, linear-gradient(135deg, #c7d2fe, #bfdbfe 52%, #fbcfe8) border-box; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 4px rgba(129, 140, 248, .06); backdrop-filter: blur(16px); }
.hero-workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--home-line); }
.preview-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; }
.preview-tabs::-webkit-scrollbar { display: none; }
.preview-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 7px; color: var(--home-muted); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.preview-tab.is-active { color: var(--home-indigo); background: #ffffff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.preview-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 16px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 600; }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--home-green); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }

.hero-screen-container { overflow: hidden; border: 1px solid #c7d2fe; border-radius: 10px; background: #f8fafc; box-shadow: inset 0 0 0 1px rgba(191, 219, 254, .36); }
.hero-screen-frame { position: relative; min-height: 330px; }
.hero-tab-panel { width: 100%; }
.panel-tag-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #ffffff; border-bottom: 1px solid var(--home-line); font-size: 13px; }
.tag-title { color: var(--home-slate); font-weight: 600; }
.live-action-btn { display: inline-flex; align-items: center; padding: 5px 12px; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%); font-size: 12px; font-weight: 700; cursor: pointer; transition: transform 0.2s ease; }
.live-action-btn:hover { transform: scale(1.04); }
.live-action-link { color: var(--home-blue); font-weight: 700; text-decoration: none; }
.live-action-link:hover { text-decoration: underline; }
.hero-view-img { width: 100%; height: 280px; display: block; object-fit: cover; object-position: top center; background: #fff; }

.hero-workspace-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.floating-chip { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 20px; background: #f8fafc; color: var(--home-slate); font-size: 12px; font-weight: 600; }

/* 过渡动画 */
.fade-slide-enter-active, .fade-slide-leave-active { transition: all 0.22s ease-out; }
.fade-slide-enter-from { opacity: 0; transform: translateY(8px); }
.fade-slide-leave-to { opacity: 0; transform: translateY(-8px); }

/* Bento Grid 布局 */
.home-section { padding: 96px 0; border-bottom: 1px solid var(--home-line); }
.home-section--paper { background: var(--home-paper); }
.home-section-head { max-width: 680px; margin-bottom: 48px; }
.channel-bento-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento-card { position: relative; padding: 36px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: var(--home-surface); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1); border-color: #cbd5e1; }
.bento-card--large { grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: space-between; }
.bento-card-badge { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 12px; background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 700; }
.bento-card-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; font-size: 24px; margin-bottom: 20px; }
.bento-card-icon--blue { background: #eff6ff; }
.bento-card-icon--purple { background: #f5f3ff; }
.bento-card-icon--dark { background: #f1f5f9; }
.bento-card h3 { margin: 0 0 10px; color: var(--home-ink); font-size: 22px; font-weight: 800; }
.bento-desc { margin: 0 0 20px; color: var(--home-slate); font-size: 15px; line-height: 1.7; }
.bento-list { margin: 0 0 28px; padding: 0; list-style: none; }
.bento-list li { position: relative; margin: 10px 0; padding-left: 20px; color: var(--home-slate); font-size: 14px; line-height: 1.5; }
.bento-list li::before { position: absolute; top: 6px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--home-indigo); content: ""; }
.bento-card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.bento-card-media { position: relative; margin: 18px 0 24px; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: linear-gradient(#f8fafc, #f8fafc) padding-box, linear-gradient(135deg, #c7d2fe, #bfdbfe 52%, #fbcfe8) border-box; box-shadow: 0 12px 28px rgba(79, 70, 229, .10); }
.bento-card-media::after { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(99, 102, 241, .10), transparent 42%, rgba(236, 72, 153, .08)); content: ''; pointer-events: none; }
.bento-card-media img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: center top; }

/* 极速接入 Showcase & 终端 */
.integration-showcase { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.flow-steps { display: grid; gap: 20px; }
.flow-step-item { display: flex; gap: 18px; padding: 20px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-surface); transition: border-color 0.2s ease; }
.flow-step-item.is-active { border-color: var(--home-indigo); box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08); }
.step-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #eef2ff; color: var(--home-indigo); font-size: 16px; font-weight: 800; flex-shrink: 0; }
.step-body h4 { margin: 0 0 6px; color: var(--home-ink); font-size: 17px; }
.step-body p { margin: 0; color: var(--home-slate); font-size: 14px; line-height: 1.6; }

.code-terminal { overflow: hidden; border: 1px solid #1e293b; border-radius: 14px; background: #0f172a; box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35); }
.terminal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #1e293b; background: #1e293b; }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }
.terminal-tabs { display: flex; gap: 4px; }
.terminal-tabs button { padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: #94a3b8; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.terminal-tabs button.is-active { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
.copy-btn { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #e2e8f0; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }
.copy-btn:hover { background: rgba(255, 255, 255, 0.18); }
.copy-success-text { color: #34d399; font-weight: 800; }
.terminal-code { margin: 0; padding: 24px; color: #e2e8f0; font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; overflow-x: auto; white-space: pre; }

/* 产品能力矩阵 */
.matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.matrix-card { position: relative; padding: 34px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: var(--home-surface); transition: transform 0.2s ease; }
.matrix-card:hover { transform: translateY(-3px); }
.matrix-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 10px; background: #eef2ff; font-size: 20px; }
.matrix-index { position: absolute; top: 28px; right: 28px; color: #cbd5e1; font: 800 20px ui-monospace, monospace; }
.matrix-card h3 { margin: 0 0 10px; color: var(--home-ink); font-size: 20px; }
.matrix-card p { margin: 0 0 18px; color: var(--home-slate); font-size: 14px; line-height: 1.65; }
.matrix-list { margin: 0; padding: 0; list-style: none; }
.matrix-list li { position: relative; margin: 8px 0; padding-left: 18px; color: var(--home-slate); font-size: 13px; line-height: 1.5; }
.matrix-list li::before { position: absolute; top: 6px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--home-blue); content: ""; }

/* 商户入驻表单 */
.convert-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
.convert-copy h2 { margin: 0 0 16px; color: var(--home-ink); font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.convert-copy > p { margin: 0 0 32px; color: var(--home-slate); font-size: 16px; line-height: 1.7; }
.feature-bullets { display: grid; gap: 20px; }
.bullet-item { display: flex; gap: 14px; align-items: flex-start; }
.bullet-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #eff6ff; font-size: 18px; flex-shrink: 0; }
.bullet-item b { display: block; margin-bottom: 4px; color: var(--home-ink); font-size: 15px; }
.bullet-item p { margin: 0; color: var(--home-slate); font-size: 13px; line-height: 1.5; }

.home-form { padding: 36px; border: 1px solid var(--home-line); border-radius: var(--home-radius); background: var(--home-surface); box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.08); }
.form-header h3 { margin: 0 0 6px; color: var(--home-ink); font-size: 22px; font-weight: 800; }
.form-header p { margin: 0 0 24px; color: var(--home-muted); font-size: 14px; }
.home-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-field { display: grid; gap: 8px; }
.home-field--wide { grid-column: 1 / -1; }
.home-field label { display: flex; align-items: center; gap: 6px; color: var(--home-slate); font-size: 13px; font-weight: 700; }
.field-icon { font-size: 14px; }
.home-field input, .home-field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 9px; color: var(--home-ink); background: #f8fafc; font: inherit; font-size: 14px; transition: all 0.2s ease; }
.home-field input:focus, .home-field textarea:focus { border-color: var(--home-indigo); background: #ffffff; outline: 3px solid rgba(79, 70, 229, 0.15); }
.home-field textarea { min-height: 98px; resize: vertical; }

.home-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.home-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--home-indigo); }
.home-consent a { color: var(--home-indigo); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.home-submit { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35); transition: all 0.2s ease; }
.home-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45); }
.home-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.submit-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.home-status { min-height: 24px; margin: 14px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
.home-status.is-success { color: #059669; }
.home-status.is-error { color: #dc2626; }

/* 页脚 */
.home-footer { padding: 64px 0 32px; color: #94a3b8; background: #0f172a; }
.home-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #1e293b; }
.footer-logo { color: #fff; font-size: 22px; font-weight: 900; }
.footer-logo span { margin-left: 8px; color: #64748b; font-size: 13px; font-weight: 500; }
.home-footer-brand p { max-width: 320px; margin: 14px 0 20px; font-size: 14px; line-height: 1.7; }
.system-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: #34d399; font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3); }
.home-footer h3 { margin: 0 0 16px; color: #f8fafc; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.home-footer a { display: block; margin: 10px 0; color: #94a3b8; font-size: 14px; text-decoration: none; transition: color 0.2s ease; }
.home-footer a:hover { color: #ffffff; }
.footer-bottom { padding-top: 24px; text-align: center; }
.home-copyright { margin: 0; color: #64748b; font-size: 13px; }

/* 响应式断点 */
@media (max-width: 1080px) {
  .home-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .channel-bento-grid { grid-template-columns: 1fr; }
  .bento-card--large { grid-row: auto; }
  .integration-showcase { grid-template-columns: 1fr; }
  .convert-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .home-hero-copy h1 { font-size: 40px; }
  .matrix { grid-template-columns: 1fr; }
  .home-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-form-grid { grid-template-columns: 1fr; }
  .home-form { padding: 24px; }
  .hero-workspace { padding: 12px; }
  .preview-tabs { overflow-x: auto; }
  .bento-card-media img { height: 180px; }
}

@media (max-width: 360px) {
  .home-shell { width: calc(100% - 32px); }
  .home-hero-grid { gap: 32px; }
  .home-hero-copy,
  .hero-workspace { width: 100%; min-width: 0; }
  .home-hero-copy h1 { font-size: 36px; letter-spacing: -.045em; overflow-wrap: anywhere; }
  .hero-visual-card { max-width: 100%; }
}
