:root {
  --bg: #06121d;
  --panel: rgba(10, 26, 40, 0.78);
  --panel-strong: rgba(9, 21, 33, 0.92);
  --panel-border-strong: rgba(161, 212, 241, 0.36);
  --text: #eaf6ff;
  --muted: #9cc1d9;
  --line: rgba(151, 199, 231, 0.22);
  --brand: #32c0ff;
  --brand-deep: #2c8cc2;
  --brand-soft: #8ce7ff;
  --accent: #f7b538;
  --ok: #5ed29a;
  --shadow: 0 20px 60px rgba(1, 9, 16, 0.35);
  --hero-shadow: 0 24px 70px rgba(2, 12, 22, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(39, 131, 183, 0.28) 0%, rgba(8, 28, 43, 0.1) 36%, transparent 66%),
    radial-gradient(circle at 88% 12%, rgba(247, 181, 56, 0.15) 0%, transparent 44%),
    radial-gradient(circle at 22% 102%, rgba(90, 175, 230, 0.17) 0%, transparent 48%),
    radial-gradient(circle at 15% 20%, #103654 0%, #071724 35%, #050d15 70%, #03070c 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3,
button,
.eyebrow {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.01em;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.12;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: -2;
  animation: drift 13s ease-in-out infinite alternate;
}

.bg-orb-a {
  width: 360px;
  height: 360px;
  background: rgba(50, 192, 255, 0.24);
  top: -80px;
  right: -70px;
}

.bg-orb-b {
  width: 280px;
  height: 280px;
  background: rgba(247, 181, 56, 0.2);
  bottom: 40px;
  left: -70px;
  animation-delay: 2s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, -18px) scale(1.06);
  }
}

.hero {
  max-width: 1120px;
  margin: 22px auto 0;
  padding: 34px 24px 24px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(11, 33, 50, 0.85) 0%, rgba(8, 22, 35, 0.86) 100%),
    radial-gradient(circle at 80% -40%, rgba(140, 231, 255, 0.22) 0%, transparent 58%);
  box-shadow: var(--hero-shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(140, 231, 255, 0.12) 0%, rgba(140, 231, 255, 0.78) 45%, rgba(247, 181, 56, 0.6) 100%);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  color: var(--brand-soft);
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: currentColor;
}

.jump-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6efff;
  text-decoration: none;
  border: 1px solid rgba(140, 231, 255, 0.3);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.82rem;
  background: rgba(7, 23, 35, 0.72);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.jump-nav .nav-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-soft);
}

.jump-nav a:hover {
  background: rgba(26, 79, 111, 0.8);
  border-color: rgba(140, 231, 255, 0.62);
  transform: translateY(-1px) scale(1.01);
}

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 20px;
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--panel) 0%, var(--panel-strong) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(140, 231, 255, 0.14) 0%, rgba(140, 231, 255, 0.86) 52%, rgba(247, 181, 56, 0.56) 100%);
}

.card:hover {
  border-color: rgba(140, 231, 255, 0.4);
  transform: translateY(-1px);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}

.title-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  border: 1px solid rgba(140, 231, 255, 0.34);
  background: linear-gradient(145deg, rgba(18, 55, 79, 0.95) 0%, rgba(10, 30, 45, 0.9) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-soft);
  box-shadow: 0 8px 18px rgba(4, 18, 29, 0.34);
  flex: none;
}

.title-icon svg {
  width: 15px;
  height: 15px;
}

.title-text {
  display: inline-block;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--brand-soft);
  font-size: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.full-width {
  margin-top: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(5, 17, 27, 0.74);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(50, 192, 255, 0.4);
  border-color: rgba(50, 192, 255, 0.6);
}

textarea {
  line-height: 1.55;
  resize: vertical;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.08);
}

.btn-primary {
  color: #012031;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-soft) 100%);
  box-shadow: 0 10px 24px rgba(50, 192, 255, 0.25);
}

.btn-secondary {
  color: var(--text);
  background: rgba(10, 36, 54, 0.86);
  border: 1px solid rgba(140, 231, 255, 0.25);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px dashed rgba(156, 193, 217, 0.45);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.output-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
}

.result-text {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.thread-list {
  display: grid;
  gap: 10px;
}

.thread-item {
  border: 1px solid rgba(140, 231, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 15, 24, 0.58);
}

.thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--brand-soft);
  margin-bottom: 6px;
}

.thread-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.plan-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.timeline-item {
  border: 1px solid rgba(140, 231, 255, 0.18);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.58);
  padding: 10px;
}

.timeline-item p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: #072031;
  background: linear-gradient(120deg, #8ce7ff 0%, #54d0ff 100%);
  border-radius: 999px;
  padding: 4px 8px;
}

.score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.score-number {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.score-number small {
  font-size: 1rem;
  color: var(--muted);
  margin-left: 2px;
}

.score-tag {
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(156, 193, 217, 0.3);
  color: var(--muted);
}

.score-tag.good {
  color: #baf7d4;
  border-color: rgba(94, 210, 154, 0.45);
  background: rgba(20, 64, 47, 0.55);
}

.score-tag.medium {
  color: #ffe7b8;
  border-color: rgba(247, 181, 56, 0.45);
  background: rgba(71, 45, 4, 0.55);
}

.score-tag.low {
  color: #ffc6c6;
  border-color: rgba(255, 118, 118, 0.45);
  background: rgba(66, 17, 24, 0.6);
}

.score-bar {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(156, 193, 217, 0.2);
}

.score-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #ff7676 0%, #f7b538 45%, #5ed29a 100%);
}

.metric-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-item {
  border: 1px solid rgba(140, 231, 255, 0.18);
  border-radius: 10px;
  background: rgba(4, 15, 24, 0.58);
  padding: 10px;
}

.metric-item .name {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.metric-item .value {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.26rem;
  color: var(--brand-soft);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.muted {
  color: var(--muted);
  margin: 10px 0 0;
}

.no-top {
  margin-top: 0;
}

.platform-chooser {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 2px;
}

.chip-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(140, 231, 255, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(5, 17, 27, 0.62);
  color: var(--text);
  cursor: pointer;
}

.chip-option input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.platform-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.platform-card {
  border: 1px solid rgba(140, 231, 255, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 11, 18, 0.6);
}

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

.platform-name {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  color: var(--brand-soft);
}

.platform-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.platform-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10px;
}

.platform-block {
  border: 1px solid rgba(156, 193, 217, 0.2);
  border-radius: 10px;
  background: rgba(4, 14, 22, 0.68);
  padding: 10px;
}

.platform-block h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--brand-soft);
}

.platform-draft {
  margin-top: 8px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  min-height: 200px;
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.resource-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.resource-filters select {
  border: 1px solid rgba(145, 189, 215, 0.28);
  border-radius: 10px;
  background: rgba(5, 15, 24, 0.8);
  color: #dff4ff;
  padding: 8px 10px;
  font-family: "Noto Sans SC", sans-serif;
}

.resource-sensitive {
  margin-bottom: 10px;
  border: 1px solid rgba(140, 231, 255, 0.2);
  border-radius: 12px;
  background: rgba(4, 15, 24, 0.56);
  padding: 10px;
}

.resource-sensitive h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--brand-soft);
}

.resource-sensitive ul {
  margin: 0;
  padding-left: 16px;
}

.resource-card {
  border: 1px solid rgba(140, 231, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 15, 24, 0.58);
}

.resource-card h4 {
  margin: 0 0 8px;
  color: var(--brand-soft);
  font-size: 0.9rem;
}

.resource-links {
  margin: 0;
  padding-left: 16px;
  line-height: 1.55;
}

.resource-links a {
  color: #8ce7ff;
}

.hot-toolbar {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.hot-toolbar label {
  min-width: 220px;
}

.hot-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hot-card {
  border: 1px solid rgba(140, 231, 255, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 15, 24, 0.58);
}

.hot-card h3 {
  margin-bottom: 8px;
}

.hot-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: #a6c9dd;
}

.hot-note.bad {
  color: #ffc8c8;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.competitor-card {
  border: 1px solid rgba(140, 231, 255, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(3, 13, 20, 0.62);
  display: grid;
  gap: 8px;
}

.competitor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.competitor-head h3 {
  margin: 0;
  font-size: 1rem;
}

.competitor-chip {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #082539;
  border-radius: 999px;
  padding: 4px 8px;
  background: linear-gradient(120deg, #8ce7ff 0%, #4ecffb 100%);
}

.competitor-metrics {
  display: grid;
  gap: 6px;
}

.competitor-metric {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(156, 193, 217, 0.22);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 12, 19, 0.68);
}

.competitor-metric span,
.competitor-metric strong {
  position: relative;
  z-index: 1;
}

.competitor-metric i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(50, 192, 255, 0.32), rgba(94, 210, 154, 0.2));
}

.competitor-card h4 {
  margin: 2px 0 0;
  color: var(--brand-soft);
  font-size: 0.86rem;
}

.competitor-source {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.competitor-source a {
  color: #8ce7ff;
}

.ops-note {
  color: #9dc5de;
  font-size: 0.82rem;
}

.model-panel,
.model-result {
  border: 1px solid rgba(140, 231, 255, 0.2);
  border-radius: 12px;
  background: rgba(3, 13, 21, 0.54);
  padding: 10px;
}

.model-grid {
  margin-top: 4px;
}

.model-result {
  margin-top: 12px;
}

.risk-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.risk-summary,
.risk-card {
  border: 1px solid rgba(140, 231, 255, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 15, 24, 0.62);
}

.risk-summary {
  display: grid;
  justify-items: center;
  align-content: center;
}

.risk-summary span {
  color: var(--muted);
  font-size: 0.8rem;
}

.risk-summary strong {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.risk-summary small {
  color: var(--muted);
}

.risk-summary.good strong {
  color: #baf7d4;
}

.risk-summary.mid strong {
  color: #ffe7b8;
}

.risk-summary.low strong {
  color: #ffc2c2;
}

.risk-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.84rem;
}

.risk-card strong {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: var(--brand-soft);
}

.risk-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(156, 193, 217, 0.2);
  overflow: hidden;
}

.risk-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff7676 0%, #f7b538 48%, #5ed29a 100%);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-section {
  border: 1px solid rgba(156, 193, 217, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: rgba(2, 10, 16, 0.5);
}

.check-section h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--brand-soft);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  color: #dbeeff;
  font-size: 0.9rem;
}

.check-item input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--ok);
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer p {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-icon {
  width: 15px;
  height: 15px;
  color: var(--brand-soft);
  flex: none;
}

.footer a {
  color: #8ce7ff;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.55s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.15s;
}

.reveal:nth-child(4) {
  animation-delay: 0.22s;
}

.reveal:nth-child(5) {
  animation-delay: 0.28s;
}

.reveal:nth-child(6) {
  animation-delay: 0.34s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .field-grid,
  .split,
  .checklist-grid,
  .metric-grid,
  .resource-filters,
  .resource-cards,
  .platform-columns,
  .hot-grid,
  .audit-grid,
  .risk-metric-grid {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: 1fr;
  }

  .hero {
    margin: 14px 14px 0;
    padding: 26px 16px 18px;
  }

  .layout {
    padding: 14px;
  }

  h1 {
    line-height: 1.08;
  }

  .jump-nav a {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .card {
    border-radius: 16px;
    padding: 14px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .action-row .btn {
    width: auto;
  }

  .hero-actions .btn {
    width: auto;
  }
}
