:root {
  /* Linear / Vercel 级极简暗黑科技风 */
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --text-soft: #a1a1aa;
  --text-muted: #71717a;

  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.16);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.07);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.07);
  --cyan: #2dd4bf;
  --cyan-bg: rgba(45, 212, 191, 0.07);

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 顶部极克制冷光 + 细网格 */
.ambient-glow {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.12) 0%, rgba(9, 9, 11, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.app-shell {
  max-width: 660px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ==================== 顶部导航 ==================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

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

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ==================== 通用面板 ==================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (max-width: 520px) {
  .panel {
    padding: 20px 16px;
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.panel-title,
.step-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.panel-desc,
.step-desc {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* ==================== 进度条 ==================== */
.progress-bar-wrap {
  margin-bottom: 14px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== 步骤切换动画 ==================== */
.wizard-step {
  display: none;
  animation: fadeSlide 0.25s ease;
}

.wizard-step.active {
  display: block;
}

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

/* 输入框 */
input[type="text"],
textarea {
  width: 100%;
  background: #0c0c0f;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.passcode-row {
  display: flex;
  gap: 10px;
}

.passcode-row input {
  flex: 1;
}

/* 岗位标签 */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent);
  color: #e0f2fe;
  font-weight: 600;
}

.quick-fill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.mini-label {
  font-size: 12px;
  color: var(--text-muted);
}

.link-btn {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

/* 多选列表 */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.option-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.option-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.pill-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--text-muted);
  flex-shrink: 0;
  position: relative;
}

.option-pill.active {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent);
  color: var(--text);
}

.option-pill.active .pill-indicator {
  background: var(--accent);
  border-color: var(--accent);
}

.option-pill.active .pill-indicator::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #09090b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 单选卡片 */
.select-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
}

.select-card:hover {
  border-color: var(--border-strong);
}

.select-main strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 2px;
}

.select-main span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

.select-arrow {
  color: var(--text-muted);
  font-size: 15px;
}

.select-card.active {
  background: rgba(56, 189, 248, 0.11);
  border-color: var(--accent);
}

.select-card.active .select-arrow {
  color: var(--accent);
}

/* 按钮 */
.wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.wizard-nav .btn-primary {
  flex: 1;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
}

.btn-primary {
  background: #f4f4f5;
  color: #09090b;
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-lg {
  width: 100%;
  padding: 15px 20px;
  font-size: 15.5px;
}

.extra-actions {
  margin-top: 14px;
  text-align: center;
}

.link-subtle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-subtle:hover {
  color: var(--text-soft);
}

.error-text {
  color: var(--red);
  font-size: 13px;
  margin: 12px 0 0;
}

.mini-hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==================== Loading ==================== */
.loading-panel {
  text-align: center;
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 1.6s ease-in-out infinite;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loading-title {
  margin: 6px 0 8px;
  font-size: 19px;
}

.loading-progress-wrap {
  max-width: 380px;
  margin: 20px auto 0;
}

.loading-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loading-bar-fill {
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  box-shadow: 0 0 12px var(--accent);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.loading-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== 诊断报告 ==================== */
.report-shell {
  background: #0d0d10;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.report-hero {
  padding: 26px 24px 24px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 55%), #111115;
  border-bottom: 1px solid var(--border);
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mono-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.mode-pill {
  font-size: 10.5px;
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  border-radius: 99px;
}

.report-role {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gauge-row {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 500px) {
  .gauge-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero-summary {
    width: 100%;
  }
}

.gauge-box {
  position: relative;
  width: 120px;
  height: 120px;
}

.gauge-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.gauge-arc {
  fill: none;
  stroke: var(--red);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-num {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.gauge-label {
  font-size: 11px;
  color: var(--red);
  margin-top: 2px;
}

.summary-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.quadrant-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.verdict-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent);
  padding: 10px 13px;
  border-radius: 0 8px 8px 0;
}

.verdict-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* 报告正文区块 */
.report-block {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 520px) {
  .report-hero,
  .report-block {
    padding: 20px 16px;
  }
}

.block-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.mono-idx {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.block-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

/* 信号灯卡片 */
.signal-card {
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.signal-card:last-child {
  margin-bottom: 0;
}

.sig-red { background: var(--red-bg); border-color: rgba(248, 113, 113, 0.2); }
.sig-amber { background: var(--amber-bg); border-color: rgba(251, 191, 36, 0.2); }
.sig-cyan { background: var(--cyan-bg); border-color: rgba(45, 212, 191, 0.2); }

.sig-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.sig-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sig-red .sig-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.sig-amber .sig-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.sig-cyan .sig-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.sig-title {
  font-size: 13.5px;
  font-weight: 700;
}

.sig-red .sig-title { color: var(--red); }
.sig-amber .sig-title { color: var(--amber); }
.sig-cyan .sig-title { color: var(--cyan); }

.sig-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.sig-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: #e4e4e7;
}

.sig-list li {
  margin-bottom: 4px;
}

/* 升级路线 */
.upgrade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.upgrade-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 15px;
}

.upgrade-item h3 {
  margin: 0 0 5px;
  font-size: 14.5px;
  color: #ffffff;
}

.upgrade-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* 工具与终端风 Prompt */
.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 15px;
}

.tool-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.tool-usage {
  font-size: 13.2px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.prompt-terminal {
  background: #09090b;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.copy-mini-btn {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}

.copy-mini-btn:hover {
  background: rgba(56, 189, 248, 0.24);
}

.prompt-code {
  padding: 10px 12px;
  font-size: 12.5px;
  color: #d4d4d8;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* 30 天行动清单 */
.action-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13.8px;
  color: #e4e4e7;
}

.action-list li {
  margin-bottom: 8px;
}

/* 底部抖音尾卡 */
.cta-bar {
  background: #09090b;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-profile-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 8px 0 6px;
}

.cta-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.cta-author {
  font-size: 14.5px;
  margin: 0 0 2px;
}

.cta-handle {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.cta-slogan {
  font-size: 12px;
  color: var(--text-muted);
}

.cta-qr {
  text-align: center;
  flex-shrink: 0;
}

.cta-qr img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  background: #14141d;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  display: block;
  margin: 0 auto 6px;
}

.qr-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  border: 1px dashed rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.qr-placeholder small {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.cta-qr span {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* 报告操作区 */
.report-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .secondary-row {
    grid-template-columns: 1fr;
  }
}

.page-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #f4f4f5;
  color: #09090b;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
