:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f9fbff;
  --border: #d9e2ee;
  --border-strong: #c6d2df;
  --text: #102033;
  --muted: #5b6b82;
  --primary: #155eef;
  --primary-soft: #dbe8ff;
  --success: #067647;
  --warn: #b54708;
  --shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
  --radius: 12px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, #edf4ff 0, #f5f7fb 30%, #f5f7fb 100%);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(217, 226, 238, 0.88);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.02);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
  flex: 0 0 auto;
  box-shadow: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.topbar-nav { display: flex; gap: 6px; overflow: auto; }
.topbar-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.topbar-link.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: #bfd3ff;
}

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.hero {
  display: grid;
  margin-bottom: 14px;
}
.hero-card, .tabbar, .panel, .card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 18px 22px;
}
.hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-card h1 { margin: 0; font-size: 20px; line-height: 1.1; letter-spacing: -0.03em; }
.hero-card p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.hero-channel-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.hero-channel {
  min-height: 86px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), #fff);
}
.hero-channel span { display: block; color: var(--muted); font-size: 12px; }
.hero-channel strong { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -0.03em; }
.hero-channel em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  margin-bottom: 14px;
}
.tab-btn {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 12px;
  cursor: pointer;
}
.tab-btn.active {
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px #bfd3ff;
}

.panel { padding: 16px; margin-bottom: 14px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2 { margin: 0; font-size: 16px; }
.panel-note { color: var(--muted); font-size: 13px; }
.panel-stack { display: grid; gap: 14px; }

.two-col, .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  padding: 16px;
  box-shadow: var(--shadow);
}
.lead { margin: 0; color: var(--text); line-height: 1.6; }
.action-row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.btn-primary, .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 700;
}
.btn-primary { border: 1px solid var(--primary); background: var(--primary); color: #fff; }
.btn-link { border: 1px solid var(--border); background: #fff; color: var(--text); }
.mini-head { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.checklist { margin: 0; padding-left: 18px; color: var(--text); line-height: 1.8; }
.form-card { display: grid; gap: 12px; }
.form-card input, .form-card select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.form-card label { display: grid; gap: 8px; color: var(--text); font-size: 14px; }
.form-card.wide { display: grid; gap: 14px; }
.output-panel pre {
  margin: 0;
  padding: 14px;
  min-height: 160px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: auto;
}

@media (max-width: 980px) {
  .hero-channel-row, .two-col, .card-grid { grid-template-columns: 1fr; }
  .tabbar { grid-template-columns: 1fr; }
}
