:root {
  --bg: #071423;
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #ecf4ff;
  --muted: #9fb6cd;
  --accent: #f6a623;
  --accent-soft: #ffd17d;
  --ok: #38d39f;
  --warn: #ffcb57;
  --danger: #ff8576;
  --shadow: 0 18px 40px rgba(5, 12, 22, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 20% 0%, #0c2c44 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, #3a250f 0%, transparent 40%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 10%, black 30%, transparent 80%);
}

.topbar {
  width: min(1200px, 94vw);
  margin: 24px auto 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 10px rgba(246, 166, 35, 0.16);
}

.brand-main {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pack-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.pack-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.pack-btn.active {
  background: var(--accent);
  color: #26200d;
}

main {
  width: min(1200px, 94vw);
  margin: 0 auto 32px;
  display: grid;
  gap: 16px;
}

.panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.2fr 1fr;
}

.eyebrow {
  color: var(--accent-soft);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.28;
}

.hero-desc {
  color: var(--muted);
  max-width: 60ch;
}

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

.cta {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 600;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), #ffbf4f);
  border-color: transparent;
  color: #251f11;
}

.hero-metrics {
  display: grid;
  gap: 10px;
}

.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-value {
  margin: 6px 0;
  font-size: 1.44rem;
  font-weight: 700;
}

.metric-note {
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.8rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
}

.tag {
  background: rgba(246, 166, 35, 0.14);
  color: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

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

.req-list,
.team-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

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

.form-grid label,
.filters label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-submit {
  align-self: end;
}

input,
select,
.inline-select {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0f2a3f;
  color: var(--text);
  padding: 8px;
  font-size: 0.88rem;
}

.inline-select {
  width: 88px;
  padding: 4px 6px;
  font-size: 0.82rem;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.quick-stats {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-inline {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.api-box {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.api-box h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.api-controls {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: end;
}

.api-results-wrap table {
  min-width: 700px;
}

.api-import-btn {
  border: 1px solid rgba(56, 211, 159, 0.45);
  color: #89ffd6;
}

.file-label input {
  width: 100%;
}

.goal-wrap {
  display: grid;
  gap: 12px;
}

.goal-wrap p {
  margin: 0 0 6px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress span {
  height: 100%;
  width: 0;
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6a623, #ffd27f);
  transition: width 0.45s ease;
}

.goal-wrap small {
  color: var(--muted);
}

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

.stage {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px;
}

.stage strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.stage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(255, 255, 255, 0.08);
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.score-badge,
.priority-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.score-high,
.priority-a,
.status-green {
  background: rgba(56, 211, 159, 0.16);
  color: #67eec0;
}

.score-mid,
.priority-b,
.status-yellow {
  background: rgba(255, 203, 87, 0.16);
  color: #ffd47a;
}

.score-low,
.priority-c,
.status-red {
  background: rgba(255, 133, 118, 0.16);
  color: #ffae9d;
}

.mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.78rem;
  cursor: pointer;
}

.promote-btn {
  margin-right: 6px;
}

.danger-btn {
  border-color: rgba(255, 133, 118, 0.45);
  color: #ffb0a4;
}

.timeline {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

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

.ai-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.ai-grid h3 {
  margin-top: 0;
}

.ai-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

footer {
  width: min(1200px, 94vw);
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

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

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

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

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

@media (max-width: 1100px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .api-controls {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 14px;
  }

  .hero-cta {
    flex-direction: column;
  }
}
