:root {
  --bg: #07090d;
  --bg-alt: #0b0e15;
  --card: #101521;
  --card-hover: #141b2b;
  --border: rgba(240, 196, 101, 0.22);
  --border-strong: rgba(240, 196, 101, 0.52);
  --gold: #f0c465;
  --gold-bright: #ffe18c;
  --blue: #9fc0ff;
  --red: #ff7a7a;
  --green: #69db9e;
  --text: #eef3fc;
  --muted: #9aa7bd;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(240, 196, 101, 0.12), transparent 42%),
    radial-gradient(circle at 85% 22%, rgba(124, 163, 220, 0.14), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(240, 196, 101, 0.06), transparent 50%);
}

a { color: inherit; text-decoration: none; }
code, pre, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
code { background: rgba(159, 192, 255, 0.12); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; color: var(--blue); }
pre { margin: 8px 0 0; overflow-x: auto; font-size: 13px; color: #dbe6fb; background: #070a11; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); }
pre code { background: none; padding: 0; color: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, rgba(16, 21, 33, 0.55), rgba(7, 9, 13, 0.35)); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.muted { color: var(--muted); }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 196, 101, 0.16);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-avatar, .brand-fallback {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--gold); object-fit: cover; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; background: #161d2d; color: var(--gold-bright);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 900; font-size: 16px; letter-spacing: 0.02em; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--gold-bright); }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 11px 18px; font-weight: 800; font-size: 14px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-gold { background: linear-gradient(135deg, #f3cb70, #dca743); color: #12151c; box-shadow: 0 8px 24px rgba(240, 196, 101, 0.22); }
.btn-outline { background: rgba(240, 196, 101, 0.08); border-color: var(--border-strong); color: var(--gold-bright); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: var(--text); }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--gold-bright); }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(240, 196, 101, 0.12); border: 1px solid var(--border); color: var(--gold-bright);
  font-size: 13px; font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold-bright); box-shadow: 0 0 12px var(--gold-bright); }
.hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.18; margin: 18px 0 16px; font-weight: 900; letter-spacing: -0.01em; }
.gold-grad { background: linear-gradient(90deg, #ffe69e, #f0c465 55%, #b8d1ff); -webkit-background-clip: text; color: transparent; }
.lead { font-size: 16px; color: #c7d2e4; margin: 0 0 24px; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-pill {
  padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 3px;
}
.metric-pill strong { color: var(--gold-bright); font-size: 18px; }
.metric-pill span { color: var(--muted); font-size: 12px; line-height: 1.35; }

.showcase-card {
  background: linear-gradient(160deg, rgba(20, 26, 42, 0.96), rgba(10, 13, 21, 0.98));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.showcase-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 12px; }
.pill-tag {
  display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: rgba(240, 196, 101, 0.15); border: 1px solid var(--border); color: var(--gold-bright);
}
.showcase-media { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 12px; align-items: stretch; }
.media-zoom {
  position: relative; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1);
  background: #07090d; cursor: pointer; text-align: left;
}
.media-zoom img { display: block; width: 100%; height: 260px; object-fit: cover; transition: transform 0.25s ease; }
.media-zoom:hover img { transform: scale(1.03); }
.media-caption {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 8px;
  background: rgba(7, 9, 13, 0.85); border: 1px solid rgba(240, 196, 101, 0.35);
  color: var(--gold-bright); font-size: 11px; font-weight: 700;
}
.showcase-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.gold-link { color: var(--gold-bright); font-weight: 700; white-space: nowrap; }

/* Section Head & Tabs */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--blue); text-transform: uppercase; margin-bottom: 6px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.22; }
.section-desc { margin: 0; color: var(--muted); max-width: 68ch; font-size: 15px; }

.seg-tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: #0c1018; border: 1px solid rgba(255, 255, 255, 0.1); gap: 4px; flex-wrap: wrap; }
.seg-tab {
  border: none; background: transparent; color: var(--muted); padding: 9px 15px; border-radius: 10px;
  font-size: 13px; font-weight: 800; cursor: pointer; transition: 0.16s ease;
}
.seg-tab.active { background: rgba(240, 196, 101, 0.16); color: var(--gold-bright); border: 1px solid var(--border); }

/* Workflow & Quickstart */
.workflow-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.workflow-summary { font-size: 15px; color: #dbe6fb; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 18px; }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role-card { background: #0b0f18; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 16px; }
.role-badge { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 800; background: rgba(159, 192, 255, 0.14); color: var(--blue); margin-bottom: 8px; }
.role-card h4 { margin: 0 0 6px; font-size: 15px; color: var(--gold-bright); }
.role-card p { margin: 0; font-size: 13px; color: var(--muted); }

.quickstart-box { margin-top: 22px; background: #0b0f18; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius); padding: 20px; }
.quickstart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.quickstart-head h3 { margin: 0 0 4px; font-size: 18px; }
.quickstart-head p { margin: 0; font-size: 13px; }
.cmd-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 12px; }
.cmd-card { position: relative; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.cmd-step { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }
.copy-btn {
  margin-top: 10px; align-self: flex-start; border: 1px solid rgba(240, 196, 101, 0.35); background: rgba(240, 196, 101, 0.08);
  color: var(--gold-bright); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.copy-btn:hover { background: rgba(240, 196, 101, 0.18); }

/* Workbench + Reserved MP Card */
.workbench-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wb-card { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 20px; }
.wb-num { font-size: 28px; font-weight: 900; color: rgba(240, 196, 101, 0.85); font-family: Consolas, monospace; margin-bottom: 8px; }
.wb-card h3 { margin: 0 0 8px; font-size: 16px; }
.wb-card p { margin: 0; font-size: 13px; color: var(--muted); }
.next-ep-badge { padding: 8px 14px; border-radius: 999px; background: rgba(159, 192, 255, 0.14); border: 1px solid rgba(159, 192, 255, 0.35); color: var(--blue); font-size: 13px; font-weight: 800; }

.mp-reserve-card {
  margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(240, 196, 101, 0.08), rgba(16, 21, 33, 0.94));
  border: 1px dashed var(--border-strong);
}
.mp-reserve-copy h3 { margin: 10px 0 6px; font-size: 20px; }
.mp-actions { margin-top: 12px; }
.mp-qr-slot { width: 136px; height: 136px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #090c14; display: grid; place-items: center; }
.mp-qr-slot img { width: 100%; height: 100%; object-fit: cover; }
.qr-placeholder { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; gap: 6px; font-size: 11px; color: var(--muted); }
.qr-placeholder strong { color: var(--gold-bright); font-size: 13px; }

/* Components Showcase */
.components-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.16s ease, transform 0.16s ease;
}
.comp-card:hover { border-color: var(--border); transform: translateY(-2px); }
.comp-card[hidden] { display: none; }
.comp-thumb {
  height: 122px; border-radius: 12px; background: #070a11; border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.comp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comp-tier { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.comp-tier.free { background: rgba(105, 219, 158, 0.14); color: var(--green); border: 1px solid rgba(105, 219, 158, 0.35); }
.comp-tier.pro { background: rgba(240, 196, 101, 0.15); color: var(--gold-bright); border: 1px solid var(--border); }
.comp-cat { font-size: 11px; color: var(--muted); }
.comp-card h3 { margin: 0; font-size: 16px; }
.comp-card p { margin: 0; font-size: 13px; color: var(--muted); }
.comp-id { font-size: 11px; color: var(--blue); font-family: Consolas, monospace; opacity: 0.9; }

/* Mini Visual Mockups inside component thumbnails */
.mini-hero { display: flex; align-items: center; gap: 10px; }
.mini-circle { width: 42px; height: 42px; border-radius: 999px; border: 2px solid var(--gold); background: rgba(240, 196, 101, 0.18); display: grid; place-items: center; color: var(--gold-bright); font-weight: 900; flex-shrink: 0; }
.mini-lines { flex: 1; display: grid; gap: 5px; }
.mini-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
.mini-bar.gold { background: linear-gradient(90deg, var(--gold-bright), var(--gold)); width: 85%; }
.mini-bar.blue { background: rgba(159, 192, 255, 0.55); width: 62%; }
.mini-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; }
.mini-box { border-radius: 8px; padding: 8px; font-size: 11px; font-weight: 800; display: flex; flex-direction: column; justify-content: space-between; }
.mini-box.red { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.45); color: var(--red); }
.mini-box.gold { background: rgba(240, 196, 101, 0.14); border: 1px solid var(--border-strong); color: var(--gold-bright); }
.mini-box.blue { background: rgba(159, 192, 255, 0.12); border: 1px solid rgba(159, 192, 255, 0.45); color: var(--blue); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; padding: 0 10px; }
.mini-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(159, 192, 255, 0.45); }
.mini-bars span:last-child { background: linear-gradient(180deg, var(--gold-bright), #c9922c); }
.mini-flow { display: grid; gap: 6px; }
.mini-step { padding: 5px 8px; border-radius: 6px; font-size: 11px; background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--gold); color: #dce6f8; }
.mini-quote { border-left: 3px solid var(--gold-bright); padding-left: 10px; font-size: 11px; color: #dbe6fb; }
.mini-quote mark { background: rgba(240, 196, 101, 0.35); color: var(--gold-bright); padding: 1px 4px; border-radius: 4px; }

/* Notes Grid */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.note-card h3 { margin: 8px 0; font-size: 17px; line-height: 1.4; }
.note-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.note-list { margin: 0; padding-left: 18px; color: #c7d2e4; font-size: 13px; display: grid; gap: 6px; }

/* Pricing */
.payment-status-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: rgba(159, 192, 255, 0.12); border: 1px solid rgba(159, 192, 255, 0.3); color: var(--blue);
}
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 22px;
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative;
}
.price-card.featured {
  border-color: var(--gold-bright);
  background: linear-gradient(175deg, rgba(35, 30, 20, 0.72), rgba(16, 21, 33, 0.98) 46%);
  box-shadow: 0 20px 44px rgba(240, 196, 101, 0.12);
}
.price-tier { font-size: 12px; font-weight: 800; color: var(--blue); }
.price-badge {
  position: absolute; top: 18px; right: 18px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: rgba(240, 196, 101, 0.16); color: var(--gold-bright); border: 1px solid var(--border);
}
.price-card h3 { margin: 6px 0 10px; font-size: 18px; line-height: 1.35; }
.price-amount { font-size: 32px; font-weight: 900; color: var(--gold-bright); font-family: Consolas, monospace; margin-bottom: 12px; }
.price-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: #cfd9ea; }

/* Footer */
.footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 34px 0 48px; background: #05070b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 4px 0 0; font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(4, 6, 10, 0.8); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 18px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: min(500px, 100%); max-height: 92vh; overflow-y: auto;
  background: #101522; border: 1px solid var(--border-strong); border-radius: 22px; padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}
.modal-wide { width: min(760px, 100%); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: #dbe5f6; }
.field input, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: #080b12;
  color: var(--text); padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }

.qr-card {
  background: #090c14; border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-align: center;
  display: grid; gap: 10px; justify-items: center; margin: 14px 0;
}
.qr-card canvas, .qr-card img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; }
.qr-card img.svg-qr { background: transparent; padding: 0; }
.wechat-box {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(240, 196, 101, 0.1); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px;
}
.alert-ok {
  background: rgba(105, 219, 158, 0.12); border: 1px solid rgba(105, 219, 158, 0.45);
  border-radius: 14px; padding: 16px; color: #dffbee; display: grid; gap: 8px;
}

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px);
  z-index: 120; background: #141b2c; color: var(--gold-bright); border: 1px solid var(--border-strong);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1024px) {
  .hero-grid, .roles-grid, .workbench-grid, .components-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .cmd-grid, .notes-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .roles-grid, .workbench-grid, .components-grid, .pricing-grid, .hero-metrics { grid-template-columns: 1fr; }
  .mp-reserve-card { flex-direction: column; align-items: flex-start; }
  .showcase-media { grid-template-columns: 1fr; }
}
