:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-alt: #eef4ff;
  --text: #172033;
  --muted: #60708a;
  --line: #d9e2ef;
  --blue: #315fd4;
  --blue-dark: #1e3f98;
  --green: #1f8f63;
  --orange: #c97a19;
  --red: #c34b4b;
  --shadow: 0 18px 48px rgba(27, 54, 114, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, select {
  font: inherit;
}
.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid rgba(217,226,239,0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}
.nav a:hover { color: var(--blue-dark); }
.hero {
  background: linear-gradient(135deg, #1e3f98 0%, #315fd4 50%, #4f7cf2 100%);
  color: white;
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}
.hero-subtitle {
  margin: 18px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  border: none;
  cursor: pointer;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: white;
  color: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.24);
}
.hero-note {
  margin-top: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.hero-card,
.panel,
.offer-card,
.bank-card,
.record-card {
  background: var(--panel);
  border: 1px solid rgba(217,226,239,0.7);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-card {
  color: var(--text);
  padding: 24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat-item {
  background: #f7f9fe;
  border: 1px solid #e4ecfb;
  border-radius: 18px;
  padding: 18px;
}
.stat-item strong {
  display: block;
  font-size: 28px;
  color: var(--blue-dark);
}
.stat-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.announcement {
  background: #fff7ea;
  border-top: 1px solid #f3e2b8;
  border-bottom: 1px solid #f3e2b8;
}
.announcement-inner {
  padding: 14px 0;
  color: #6d5418;
  line-height: 1.6;
}
.section {
  padding: 56px 0;
}
.alt-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(238,244,255,0.72));
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2, .section h3 {
  margin: 0;
}
.recommend-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}
.panel {
  padding: 24px;
}
.field-grid {
  display: grid;
  gap: 16px;
}
.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label {
  display: grid;
  gap: 8px;
}
label > span, .field-label {
  font-weight: 700;
}
input[type="text"], input[type="search"], input[type="number"], select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
}
.field-group {
  margin-top: 18px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}
.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.segmented-control label,
.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfcff;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.result-header {
  margin-bottom: 18px;
}
.empty-state {
  padding: 22px;
  background: var(--panel-alt);
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.hidden { display: none !important; }
.result-card {
  display: grid;
  gap: 14px;
}
.result-main {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  border: 1px solid #d5e1fb;
  border-radius: 18px;
  padding: 18px;
}
.result-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kpi {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}
.kpi strong {
  display: block;
  font-size: 24px;
  color: var(--blue-dark);
}
.result-reasons, .result-alt-list, .bullet-list, .steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}
.offer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.offer-grid, .bank-grid, .record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.offer-card, .bank-card, .record-card {
  padding: 18px;
}
.offer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.offer-scene, .offer-badge, .tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.offer-scene { background: #eaf1ff; color: var(--blue-dark); }
.offer-badge { background: #fff2da; color: #875c0a; }
.offer-title { margin: 0; font-size: 19px; }
.offer-summary, .offer-risk, .offer-entry, .bank-card p, .record-meta, .footer-inner p {
  color: var(--muted);
  line-height: 1.7;
}
.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.tag { background: #f3f6fc; color: #3d4f6d; }
.bank-card h3, .record-card h3 { margin: 0 0 8px; }
.record-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.summary-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.summary-card strong {
  display: block;
  font-size: 28px;
  color: var(--green);
}
.record-empty {
  padding: 22px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: white;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
}
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef8f3;
  color: var(--green);
}
.notice.warning {
  background: #fff7ea;
  color: #8b6112;
}
@media (max-width: 960px) {
  .hero-grid, .recommend-layout, .about-grid {
    grid-template-columns: 1fr;
  }
  .two-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .header-inner, .section-head, .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    gap: 10px 14px;
  }
}
