:root {
  --bg-1: #050813;
  --bg-2: #0a1432;
  --bg-panel: rgba(13, 22, 49, 0.55);
  --line: rgba(122, 200, 255, 0.25);
  --text-main: #e9f0ff;
  --text-dim: #99aad2;
  --accent-a: #5df7cb;
  --accent-b: #5ea4ff;
  --accent-c: #8a7cff;
  --danger: #ffb347;
  --shadow-soft: rgba(3, 8, 24, 0.55);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% -8%, rgba(89, 174, 255, 0.22), transparent 35%),
    radial-gradient(circle at 88% 5%, rgba(93, 247, 203, 0.2), transparent 32%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  letter-spacing: 0.01em;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px);
  background-size: 4px 4px;
  opacity: 0.08;
  z-index: -2;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.36;
  pointer-events: none;
  z-index: -1;
}

.orb-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(94, 164, 255, 0.54), transparent 70%);
  left: -150px;
  top: 40px;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(93, 247, 203, 0.45), transparent 70%);
  right: -190px;
  top: 420px;
}

.hero {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border: 1px solid rgba(149, 190, 255, 0.22);
  background: linear-gradient(136deg, rgba(15, 24, 52, 0.76), rgba(7, 12, 29, 0.55));
  border-radius: 20px;
  padding: 1.35rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 36px var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(93, 247, 203, 0.15), rgba(93, 164, 255, 0.08) 40%, transparent 68%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(93, 164, 255, 0.06) 24px 25px);
  opacity: 0.5;
}

.hero-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-links {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--accent-b);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
}

h1 {
  margin: 0.55rem 0 0.6rem;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  margin: 0.2rem 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.hero p {
  max-width: 980px;
}

.hero-metrics {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-metrics div {
  border: 1px solid rgba(148, 195, 255, 0.3);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: rgba(13, 24, 56, 0.6);
  color: #e8f1ff;
  font-size: 0.9rem;
}

.hero-metrics strong {
  color: #ffffff;
}

.ghost-btn,
.primary-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-main);
  background: rgba(11, 18, 38, 0.8);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: 160ms ease;
}

.ghost-btn:hover,
.primary-btn:hover {
  border-color: var(--accent-b);
  box-shadow: 0 0 0 2px rgba(94, 164, 255, 0.2);
}

.primary-btn {
  border-color: rgba(93, 247, 203, 0.45);
  background: linear-gradient(90deg, rgba(93, 247, 203, 0.14), rgba(93, 164, 255, 0.14));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

main {
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 20px 38px rgba(3, 10, 27, 0.55);
  position: relative;
  animation: riseIn 0.45s ease both;
  backdrop-filter: blur(4px);
}

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

.report-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.75rem;
}

.report-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(93, 164, 255, 0.22);
  border-radius: 14px;
  padding: 0.95rem;
  background: linear-gradient(145deg, rgba(17, 31, 68, 0.72), rgba(14, 22, 50, 0.55));
  color: var(--text-main);
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: riseIn 0.45s ease both;
}

.report-card:hover {
  border-color: rgba(93, 247, 203, 0.6);
  box-shadow: 0 12px 24px rgba(93, 247, 203, 0.15);
  transform: translateY(-4px);
}

.report-card .chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin: 0 0 0.65rem;
  background: rgba(93, 247, 203, 0.2);
  border: 1px solid rgba(93, 247, 203, 0.6);
  font-size: 0.76rem;
  color: #d7fff0;
}

.report-card h3 {
  margin: 0.2rem 0 0.45rem;
}

.report-card span {
  color: var(--accent-b);
  font-size: 0.92rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

label {
  color: #d9e3f9;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 130px;
}

select,
input {
  border: 1px solid rgba(146, 178, 255, 0.5);
  background: rgba(8, 14, 32, 0.72);
  color: #dbe6ff;
  border-radius: 8px;
  padding: 0.55rem;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--accent-b);
  box-shadow: 0 0 0 2px rgba(94, 164, 255, 0.15);
}

.muted {
  margin: 0.55rem 0 0.3rem;
  color: #95a9d6;
  font-size: 0.92rem;
}

.table-wrap {
  margin-top: 0.55rem;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.table-wrap {
  border: 1px solid rgba(95, 151, 255, 0.18);
  border-radius: 12px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

th,
td {
  padding: 0.72rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  white-space: nowrap;
  font-size: 0.9rem;
}

th {
  color: #b8cbfb;
  font-weight: 500;
  background: rgba(9, 16, 35, 0.9);
  position: sticky;
  top: 0;
}

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

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(24px);
  }
}

.orb-1 {
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.orb-2 {
  animation: orbDrift 20s ease-in-out infinite alternate-reverse;
}

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

.glass-card {
  border: 1px solid rgba(129, 183, 255, 0.24);
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(142deg, rgba(10, 22, 54, 0.88), rgba(10, 18, 40, 0.56));
}

form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.result {
  margin-top: 0.9rem;
  background: rgba(4, 10, 28, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.7rem;
  min-height: 130px;
  color: #e4edff;
}

.metric-row {
  margin-top: 0.4rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.chart-wrap {
  margin-top: 0.9rem;
  border: 1px solid rgba(120, 180, 255, 0.22);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(3, 10, 24, 0.68);
}

#yieldChart {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

footer {
  margin-top: 0.3rem;
  text-align: center;
  color: #93a4d0;
}

@media (max-width: 940px) {
  body {
    padding: 0.8rem;
  }

  .grid-2,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    border-radius: 16px;
  }

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

  .table-wrap {
    border-radius: 10px;
  }
}
