:root {
  --bg: #edf3f9;
  --ink: #122033;
  --muted: #66768a;
  --line: rgba(18, 32, 51, 0.08);
  --blue: #2f75ff;
  --blue-deep: #0d1f33;
  --orange: #ff9b54;
  --orange-soft: #fff0df;
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 48px rgba(13, 31, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 117, 255, 0.14), transparent 28%),
    radial-gradient(circle at right, rgba(255, 155, 84, 0.16), transparent 22%),
    var(--bg);
}

.ambient {
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.ambient-a {
  top: -100px;
  left: -40px;
  background: rgba(47, 117, 255, 0.18);
}

.ambient-b {
  right: -100px;
  top: 120px;
  background: rgba(255, 155, 84, 0.18);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.hero,
.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  background: linear-gradient(135deg, #0d1f33 0%, #1e4f9f 55%, #ffb16a 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.12;
}

.hero-copy {
  margin-top: 16px;
  max-width: 640px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.small {
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

input,
select {
  width: 100%;
  border: 1px solid rgba(18, 32, 51, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(248, 250, 252, 0.95);
}

.btn,
.link-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.link-btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2f75ff 0%, #52a3ff 100%);
  color: #fff;
  box-shadow: 0 16px 28px rgba(47, 117, 255, 0.24);
}

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid rgba(47, 117, 255, 0.22);
}

.link-btn {
  padding: 0;
  background: transparent;
  color: var(--blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 117, 255, 0.12);
  color: var(--blue);
  font-size: 13px;
  white-space: nowrap;
}

.badge.muted {
  background: rgba(102, 118, 138, 0.14);
  color: #6d7a8d;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 117, 255, 0.1);
  color: var(--blue);
  font-size: 13px;
}

.chip.warn {
  background: var(--orange-soft);
  color: #b25e16;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.history-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.history-item,
.module,
.summary-block,
.poster-block {
  border: 1px solid rgba(18, 32, 51, 0.06);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.85);
}

.module.limited {
  background: linear-gradient(180deg, rgba(244, 246, 250, 0.96), rgba(236, 239, 243, 0.96));
}

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

.metric {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 241, 250, 0.9));
  border: 1px solid rgba(18, 32, 51, 0.06);
}

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

.metric-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 700;
}

.module h3,
.summary-block h3,
.poster-block h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.module p,
.summary-block p,
.poster-block p {
  line-height: 1.75;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 31, 51, 0.92);
  color: #fff;
  box-shadow: 0 18px 30px rgba(13, 31, 51, 0.2);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(13, 31, 51, 0.06);
}

@media (max-width: 920px) {
  .hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }
}
