:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: #111827;
  --panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cta: #22c55e;
  --cta-ink: #052e16;
  --accent: #14b8a6;
  --warn: #f59e0b;
  --info: #38bdf8;
  --danger: #fb7185;
  --shadow: 0 24px 64px rgba(2, 6, 23, 0.55);
  --radius: 24px;
  --gap: 20px;
  --font: "Noto Sans SC", system-ui, sans-serif;
  --font-num: "Space Grotesk", "Noto Sans SC", sans-serif;
  --max: 1100px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
}

button,
input { font: inherit; }

button,
.chip-row button,
.btn-generate { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* display:grid/flex 会盖掉浏览器默认的 [hidden]，必须强制隐藏 */
[hidden] {
  display: none !important;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.bg-mesh,
.bg-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-mesh {
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 15%, transparent 70%);
  opacity: 0.55;
}

.bg-orb-a {
  background: radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.22), transparent 36%);
}

.bg-orb-b {
  background: radial-gradient(circle at 90% 4%, rgba(34, 197, 94, 0.16), transparent 32%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 14px 16px 48px;
  display: grid;
  gap: 12px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--cta), var(--accent));
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-sep {
  color: #e2e8f0;
  font-size: 16px;
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sales-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: pulse-live 1.5s ease-out infinite;
}

.console {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.1), transparent 40%),
    var(--panel);
  box-shadow: var(--shadow);
}

.console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.console-copy {
  min-width: 0;
  flex: 1 1 240px;
}

.console-tip {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.console-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.plan-stats {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-stats strong {
  color: #86efac;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.plan-stats-sep {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 2px;
}

.steps {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.steps li.is-active {
  color: var(--cta-ink);
  background: var(--cta);
  border-color: transparent;
}

.ask-row {
  display: grid;
  gap: 12px;
}

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

.ask-actions .btn-generate,
.ask-actions .btn-export-entry {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-export-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-export-entry:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(125, 211, 252, 0.65);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
}

.btn-export-entry .icon {
  width: 18px;
  height: 18px;
}

.input-shell {
  position: relative;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.06), transparent 55%),
    rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: input-border-breathe 3.6s ease-in-out infinite;
}

.input-shell:hover {
  border-color: rgba(34, 197, 94, 0.48);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.12);
}

.input-shell:focus-within {
  border-color: rgba(74, 222, 128, 0.75);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.12), transparent 60%),
    rgba(2, 6, 23, 0.7);
  box-shadow:
    0 0 0 3px rgba(34, 197, 94, 0.14),
    0 10px 28px rgba(34, 197, 94, 0.16);
  animation: none;
}

#industryInput {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 17px;
}

#industryInput::placeholder { color: #64748b; }

#industryInput:focus {
  outline: none;
}

.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  color: var(--cta-ink);
  background: linear-gradient(135deg, #4ade80, var(--cta));
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-generate:hover {
  background: linear-gradient(135deg, #86efac, #16a34a);
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.34);
}

.btn-generate:focus-visible,
.chip-row button:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.btn-generate:disabled {
  opacity: 0.65;
  cursor: wait;
}

.chip-panel {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.chip-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chip-refresh {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px dashed rgba(125, 211, 252, 0.55);
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip-refresh:hover {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.85);
  background: rgba(14, 165, 233, 0.22);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-row button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.28);
  background: rgba(248, 250, 252, 0.06);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip-row button:hover,
.chip-row button.is-active {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.1);
}

.status {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
  font-size: 15px;
}

.status.is-loading { color: #86efac; }
.status.is-error {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.1);
}

.empty {
  padding: 48px 20px;
  text-align: center;
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  animation: rise 0.45s ease both;
}

.empty-visual {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.empty-visual span {
  width: 46px;
  height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(20, 184, 166, 0.06));
}

.empty-visual span:nth-child(2) {
  transform: translateY(-10px);
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0.06));
}

.empty-visual span:nth-child(3) {
  border-color: rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.06));
}

.empty p {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.empty > span {
  color: var(--muted);
  font-size: 14px;
}

.loading {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 16px 22px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background:
    radial-gradient(circle at 50% 30%, rgba(34, 197, 94, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.88);
  overflow: hidden;
  animation: loading-panel-in 0.35s ease-out both;
}

.radar {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 197, 94, 0.18) 0 2px, transparent 3px),
    repeating-radial-gradient(circle, transparent 0 18px, rgba(34, 197, 94, 0.08) 18px 19px);
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.25),
    0 0 28px rgba(34, 197, 94, 0.15);
}

.radar-pulse {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.45);
  animation: radar-pulse 2.2s ease-out infinite;
}

.radar-pulse.delay {
  animation-delay: 1.1s;
}

.radar-ring {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.18);
  animation: radar-ring-breathe 2.4s ease-in-out infinite;
}

.radar-ring:nth-child(4) { inset: 32px; animation-delay: 0.2s; }
.radar-ring:nth-child(5) { inset: 48px; animation-delay: 0.4s; }

.radar-sweep {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(34, 197, 94, 0.65) 90%, transparent 100%);
  animation: radar-spin 1.25s linear infinite;
  mask-image: radial-gradient(circle, transparent 28%, #000 29%);
}

.radar-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.95);
  animation: radar-core-glow 1.4s ease-in-out infinite;
}

.radar-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 10px rgba(134, 239, 172, 0.9);
  animation: radar-blink 1.8s ease-in-out infinite;
}

.radar-dot.d1 { left: 72%; top: 28%; animation-delay: 0s; }
.radar-dot.d2 { left: 30%; top: 62%; animation-delay: 0.4s; }
.radar-dot.d3 { left: 58%; top: 70%; animation-delay: 0.9s; }

.radar-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #fcd34d;
  box-shadow: 0 0 10px rgba(252, 211, 77, 0.8);
  animation: radar-orbit 2.8s linear infinite;
}

.radar-orbit.o1 { --orbit: 54px; }
.radar-orbit.o2 { --orbit: 40px; animation-duration: 2.1s; animation-direction: reverse; background: #7dd3fc; }

.loading-title {
  margin: 4px 0 0;
  color: #bbf7d0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  animation: loading-title-pulse 1.6s ease-in-out infinite;
}

.loading-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  min-height: 1.2em;
  transition: opacity 0.25s ease;
}

.loading-progress {
  width: min(100%, 260px);
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.loading-progress-bar {
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #86efac, #38bdf8);
  background-size: 200% 100%;
  animation: progress-shine 1.2s linear infinite;
  transition: width 0.35s ease;
}

.loading-percent {
  margin: 0;
  color: #86efac;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
}

.loading-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  margin-top: 2px;
}

.loading-bars i {
  width: 4px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #86efac, #22c55e);
  animation: bar-pulse 1s ease-in-out infinite;
}

.loading-bars i:nth-child(1) { animation-delay: 0s; }
.loading-bars i:nth-child(2) { animation-delay: 0.08s; }
.loading-bars i:nth-child(3) { animation-delay: 0.16s; }
.loading-bars i:nth-child(4) { animation-delay: 0.24s; }
.loading-bars i:nth-child(5) { animation-delay: 0.32s; }
.loading-bars i:nth-child(6) { animation-delay: 0.4s; }
.loading-bars i:nth-child(7) { animation-delay: 0.48s; }
.loading-bars i:nth-child(8) { animation-delay: 0.56s; }

.result {
  display: grid;
  gap: 14px;
  animation: rise 0.45s ease-out both;
}

.overview {
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), transparent 45%),
    var(--panel);
}

.kicker {
  margin: 0 0 10px;
  color: var(--warn);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.overview h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.3;
  font-weight: 900;
}

.summary {
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

.scene {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  background: rgba(20, 184, 166, 0.1);
}

.scene .icon {
  margin-top: 2px;
  color: var(--accent);
}

.scene p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--line);
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-export:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
}

.btn-export:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-export:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.block-export { border-top-color: #38bdf8; }
.block-export .block-no { color: #38bdf8; }

.export-section {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.export-section h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

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

.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tech-list li {
  padding: 12px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.16);
}

.tech-list strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #7dd3fc;
  font-size: 17px;
}

.tech-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(134, 239, 172, 0.35);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tech-list p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.55;
}

.tech-list .tech-empty {
  color: var(--muted);
  border-style: dashed;
}

.price-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 55%),
    rgba(2, 6, 23, 0.35);
  animation: rise 0.45s ease-out both;
}

.price-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.price-recommend {
  margin: 0 0 6px;
  color: #fcd34d;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.price-range {
  margin: 0 0 10px;
  color: #fde68a;
  font-size: 16px;
  font-weight: 700;
}

.price-note {
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1.55;
}

.price-tiers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.price-tiers li {
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.price-tiers .tier-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.price-tiers strong {
  font-size: 16px;
}

.price-tiers .tier-price {
  color: #fcd34d;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.price-tiers p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.cache-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#phoneTailInput {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
  color: var(--text);
  outline: none;
  font-size: 17px;
  letter-spacing: 0.12em;
}

#phoneTailInput:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.btn-cache {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #38bdf8;
  color: #082f49;
  font-weight: 800;
  cursor: pointer;
}

.btn-cache-ghost {
  background: transparent;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.btn-cache:disabled {
  opacity: 0.65;
  cursor: wait;
}

.cache-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cache-item {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.35);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cache-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.cache-item.is-active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.cache-item strong {
  display: block;
  margin-bottom: 4px;
}

.cache-item span {
  color: var(--muted);
  font-size: 14px;
}

.panel-tab {
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.panel-tab.is-active {
  color: var(--cta-ink);
  background: var(--cta);
}

.panel-tab:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.blocks {
  display: grid;
  gap: 12px;
}

.block {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-top: 3px solid var(--accent);
}

/* 手机端：只显示当前 Tab 面板 */
.block:not(.is-active) {
  display: none;
}

.block-features { border-top-color: var(--cta); }
.block-problems { border-top-color: var(--info); }
.block-benefits { border-top-color: var(--warn); }

.block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.block-no {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--cta);
}

.block-problems .block-no { color: var(--info); }
.block-benefits .block-no { color: var(--warn); }

.block-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.block-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: item;
}

.block li {
  counter-increment: item;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  color: #e2e8f0;
  overflow: hidden;
}

.item-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr 14px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.item-toggle::before {
  content: counter(item, decimal-leading-zero);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  color: var(--cta-ink);
  background: var(--cta);
}

.block-problems .item-toggle::before {
  color: #0c4a6e;
  background: var(--info);
}

.block-benefits .item-toggle::before {
  color: #451a03;
  background: var(--warn);
}

.item-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.item-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  justify-self: end;
}

.item-desc {
  display: none;
  margin: 0;
  padding: 0 12px 12px 46px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.block li.is-open .item-desc {
  display: block;
  animation: rise 0.25s ease-out both;
}

.block li.is-open .item-arrow {
  transform: rotate(-135deg);
  border-color: #86efac;
}

.item-toggle:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: -2px;
}

.add-item {
  margin-top: 10px;
}

.btn-add {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px dashed rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.06);
  color: var(--cta);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-add:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.7);
}

.btn-add:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.add-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.add-form[hidden] {
  display: none !important;
}

.add-form input {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
  color: var(--text);
  outline: none;
}

.add-form input:focus {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.add-form button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 800;
  cursor: pointer;
}

.add-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@keyframes input-border-breathe {
  0%, 100% {
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
  50% {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.14);
  }
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

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

@keyframes radar-spin {
  to { transform: rotate(360deg); }
}

@keyframes radar-blink {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes bar-pulse {
  0%, 100% { height: 8px; opacity: 0.45; }
  50% { height: 24px; opacity: 1; }
}

@keyframes radar-pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes radar-ring-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

@keyframes radar-core-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(74, 222, 128, 0.7); transform: translate(-50%, -50%) scale(1); }
  50% { box-shadow: 0 0 24px rgba(74, 222, 128, 1); transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes radar-orbit {
  from { transform: rotate(0deg) translateX(var(--orbit)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--orbit)) rotate(-360deg); }
}

@keyframes loading-title-pulse {
  0%, 100% { opacity: 0.75; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 16px rgba(134, 239, 172, 0.45); }
}

@keyframes loading-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes progress-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (min-width: 720px) {
  .page {
    padding: 18px 24px 56px;
    gap: 14px;
  }

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

  .ask-actions {
    grid-template-columns: repeat(2, minmax(168px, 220px));
    justify-content: start;
  }

  .panel-tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .blocks {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .overview {
    padding: 22px 24px;
  }

  .console {
    padding: 22px;
    gap: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .live-dot,
  .radar-sweep,
  .radar-dot,
  .radar-pulse,
  .radar-orbit,
  .radar-core,
  .radar-ring,
  .loading-title,
  .loading-progress-bar,
  .loading-bars i,
  .result,
  .input-shell {
    animation: none !important;
  }
}
