:root {
  --bg: #f4f7f3;
  --panel: #ffffff;
  --soft: #f1f5ef;
  --text: #1f2d3d;
  --muted: #607280;
  --accent: #2f9833;
  --accent-roz: #f9c307;
  --accent-shale: #5aa5e8;
  --border: #e1e7e3;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: linear-gradient(155deg, #f7faf6, #eef4ed 45%, #f5f9f4);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 48px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  padding: 56px 64px 32px;
  align-items: start;
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(47, 152, 51, 0.08);
  margin: 32px 64px 12px;
}

.hero__content h1 {
  margin: 8px 0 12px;
  font-size: 36px;
  letter-spacing: -0.2px;
}

.lede {
  max-width: 800px;
  color: var(--muted);
}

.hero__actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 152, 51, 0.08), rgba(47, 152, 51, 0.02));
  color: var(--accent);
  transition: all 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  box-shadow: 0 8px 18px rgba(47, 152, 51, 0.2);
  text-decoration: none;
}

.hero__badge {
  background: linear-gradient(135deg, #f7fbf4, #eef5ed);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 45px rgba(0,0,0,0.05);
}

.badge__title { font-weight: 600; margin-bottom: 12px; }
.badge__hint { color: var(--muted); font-size: 13px; margin-top: 12px; }
.dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot--saline { background: var(--accent); }
.dot--roz { background: var(--accent-roz); }
.dot--shale { background: var(--accent-shale); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #53983d;
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}

main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 64px 32px;
}

.module-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}

.module-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.module-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  font-family: var(--sans);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease, border-color 0.2s ease;
  color: var(--text);
  font-weight: 600;
}

button:active { transform: translateY(1px); }

.primary {
  background: linear-gradient(120deg, #5ca540, #2f9833);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 152, 51, 0.25);
  border-color: #2f9833;
}

.ghost {
  background: #f6faf4;
  border: 1px solid var(--border);
  color: var(--accent);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.panel {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.panel__hint {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.file-input {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.file-input input { display: none; }

.row-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.row-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.row-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.field-group {
  background: #f8fbf7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.field-group h4 { margin: 0 0 10px; font-size: 15px; }

.field {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.field label { color: var(--muted); font-size: 13px; }

.field input, .field select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: var(--mono);
}

.results {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.results h4 { margin: 10px 0 6px; }

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.table th, .table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 13px;
}

.table th { text-align: left; background: #f6faf4; }
.table td { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f7fbf6;
  border: 1px solid var(--border);
  font-size: 12px;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 20px 0 8px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 22px 20px;
    margin: 16px 16px 8px;
  }
  main { padding: 0 22px 24px; }
}

/* ===== Edge / Windows 强制颜色 & 深色模式 兼容 ===== */
@media (forced-colors: active) {
  body {
    forced-color-adjust: none;
  }

  .hero,
  .hero__badge,
  .panel,
  .module-card,
  .pill,
  button,
  .primary,
  .ghost {
    forced-color-adjust: none;
    background-color: Canvas;
    color: CanvasText;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(180deg, #f4f8f2 0%, #ffffff 60%);
    color: #0f172a;
  }
}

