:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #162033;
  --muted: #63708a;
  --line: #dfe5ef;
  --brand: #2563eb;
  --brand-deep: #1746b8;
  --accent: #0ea5a4;
  --soft: #eef3ff;
  --warn: #f59e0b;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(22, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: 14px;
}
.brand-text { font-size: 14px; }
.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: 14px; transition: color .2s; }
.main-nav a:hover { color: var(--brand); }
.header-cta {
  padding: 8px 16px; border-radius: 999px;
  background: var(--soft); color: var(--brand-deep);
  font-size: 14px; font-weight: 700;
}

.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 54px); line-height: 1.16; letter-spacing: -.03em; }
.lead { max-width: 640px; margin: 0 0 26px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.notice { margin: 20px 0 0; padding: 12px 14px; border-left: 3px solid var(--warn); background: #fff8e8; color: #7a5b16; font-size: 13px; border-radius: 0 8px 8px 0; }

.hero-card {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: 24px; background: #0f172a;
  box-shadow: 0 26px 60px rgba(15, 23, 42, .25);
}
.sphere-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
    radial-gradient(circle at 30% 38%, rgba(14,165,164,.75), transparent 42%),
    radial-gradient(circle at 72% 62%, rgba(37,99,235,.65), transparent 46%);
  background-size: 8.33% 16.66%, 8.33% 16.66%, 100% 100%, 100% 100%;
  border-radius: 50%;
  filter: saturate(1.1);
}
.hero-card-label {
  position: absolute; left: 20px; bottom: 18px;
  color: rgba(255,255,255,.88); font-size: 12px; letter-spacing: .14em;
}

.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: 30px; letter-spacing: -.02em; }
.section-desc { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.workbench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-title h3 { margin: 0; font-size: 18px; }
.step {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
}
.muted { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.upload {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px;
  border: 1px dashed #9fb3d9; border-radius: 10px;
  color: var(--brand-deep); background: var(--soft);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.upload input { display: none; }
.upload-icon { font-size: 18px; line-height: 1; }
.preview, .stage {
  width: 100%; background: #0f172a; border-radius: 12px;
  display: block; aspect-ratio: 2 / 1; object-fit: contain;
}
.stage { margin-top: 12px; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 0; }
.meta div { padding: 10px 12px; border-radius: 10px; background: #f8fafc; }
.meta dt { color: var(--muted); font-size: 11px; }
.meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; word-break: break-all; }
.field-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
select {
  width: 100%; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.progress-wrap { margin: 14px 0 12px; }
.progress { height: 8px; border-radius: 999px; background: #edf1f7; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .2s; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.result { margin-top: 16px; padding: 14px; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.result[hidden] { display: none; }
.result-title { margin: 0 0 6px; font-weight: 800; color: #065f46; }
.download { display: inline-block; color: var(--brand-deep); font-weight: 700; text-decoration: underline; }
.result-meta { margin: 6px 0 0; color: #047857; font-size: 12px; }
.log-panel { margin-top: 22px; }
.log { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.log li { margin: 4px 0; }

.flow { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.flow-no { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.flow-card h3 { margin: 8px 0; font-size: 17px; }
.flow-card p { margin: 0; color: var(--muted); font-size: 13px; }

.sdk { background: var(--bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
th { background: #f8fafc; color: var(--muted); font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
.code {
  margin: 18px 0 0; padding: 18px 20px; overflow-x: auto;
  border-radius: 14px; background: #0f172a; color: #d7e3ff;
  font-size: 13px; line-height: 1.7;
}

.faq { background: #fff; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
details { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
summary { cursor: pointer; font-weight: 800; font-size: 14px; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { background: #0f172a; color: rgba(255,255,255,.72); padding: 24px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-inner, .workbench-grid, .faq-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .hero { padding-top: 44px; }
  .section { padding: 44px 0; }
  .section-head { display: block; }
  .section-desc { margin-top: 10px; }
  .flow-grid { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; }
  .header-cta { margin-left: auto; }
}
