:root {
  --bg-base: #050a14;
  --bg-layer: #0a1326;
  --bg-elev: #111f34;
  --surface: rgba(9, 21, 38, 0.82);
  --surface-strong: rgba(7, 16, 30, 0.92);
  --surface-soft: rgba(14, 30, 52, 0.62);
  --line: rgba(149, 193, 226, 0.24);
  --line-strong: rgba(167, 210, 242, 0.42);
  --text: #e8f3ff;
  --muted: #9ab7d4;
  --brand: #59c4ff;
  --brand-strong: #2ea8ea;
  --brand-ink: #07243d;
  --accent: #ffb25a;
  --accent-warm: #ffb864;
  --ok: #71d9ab;
  --warn: #f7c16a;
  --danger: #ff8a8a;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 10px 28px rgba(2, 10, 20, 0.24);
  --shadow-md: 0 20px 50px rgba(2, 10, 20, 0.34);
  --shadow-lg: 0 28px 80px rgba(2, 10, 20, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 12, 24, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(89, 196, 255, 0.26);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(89, 196, 255, 0.44);
}

::selection {
  background: rgba(89, 196, 255, 0.28);
  color: #e8f8ff;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 10%, rgba(56, 166, 235, 0.22) 0%, transparent 36%),
    radial-gradient(circle at 92% 6%, rgba(255, 178, 90, 0.14) 0%, transparent 36%),
    radial-gradient(circle at 90% 90%, rgba(113, 217, 171, 0.1) 0%, transparent 40%),
    linear-gradient(160deg, var(--bg-layer) 0%, #090f1d 44%, var(--bg-base) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  opacity: 0.18;
  background-image: radial-gradient(rgba(214, 239, 255, 0.2) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

a {
  color: #96dcff;
}

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

h1,
h2,
h3,
button,
.eyebrow,
.jump-nav,
.hero-badge,
.timeline-badge,
.platform-name {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.01em;
}

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

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

.bg-orb-a {
  width: 380px;
  height: 380px;
  top: -110px;
  right: -120px;
  background: rgba(73, 188, 255, 0.22);
}

.bg-orb-b {
  width: 320px;
  height: 320px;
  left: -90px;
  bottom: 2%;
  background: rgba(255, 178, 90, 0.2);
  animation-delay: 1.8s;
}

@keyframes float-orb {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, -22px) scale(1.07);
  }
}

.hero,
.layout,
.footer {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(152deg, rgba(15, 33, 57, 0.92) 0%, rgba(9, 20, 37, 0.95) 50%, rgba(8, 16, 30, 0.95) 100%),
    radial-gradient(circle at 86% -35%, rgba(130, 203, 255, 0.2) 0%, transparent 56%);
}

.hero::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(130, 203, 255, 0) 0%, rgba(130, 203, 255, 0.9) 45%, rgba(255, 178, 90, 0.72) 100%);
  pointer-events: none;
}

.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.hero-intro {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  color: #a7dbff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.subtitle {
  margin: 0;
  max-width: 760px;
  color: #bad1e8;
  line-height: 1.68;
}

.hero-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(157, 214, 255, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.78rem;
  color: #dff3ff;
  background: rgba(10, 30, 50, 0.66);
}

.hero-panel {
  border: 1px solid rgba(160, 210, 246, 0.32);
  border-radius: 16px;
  background: rgba(8, 20, 36, 0.72);
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.hero-panel h2 {
  margin: 0;
  font-size: 1rem;
  color: #bde3ff;
}

.hero-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: #d3e9fb;
  line-height: 1.5;
  font-size: 0.88rem;
}

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

.hero-kpis article {
  border: 1px solid rgba(158, 208, 241, 0.24);
  border-radius: 12px;
  padding: 9px;
  background: rgba(7, 18, 31, 0.75);
  text-align: center;
}

.hero-kpis strong {
  display: block;
  color: #dff3ff;
  font-size: 1.05rem;
}

.hero-kpis span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.jump-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  background: rgba(7, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(89, 196, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.jump-nav.is-stuck {
  box-shadow: 0 4px 24px rgba(2, 10, 20, 0.55);
  border-bottom-color: rgba(89, 196, 255, 0.18);
}

.jump-nav a {
  color: #dcf2ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(160, 211, 246, 0.36);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  background: rgba(7, 19, 34, 0.76);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.jump-nav a:hover {
  border-color: rgba(160, 211, 246, 0.62);
  background: rgba(17, 43, 70, 0.84);
  transform: translateY(-1px);
}

.jump-nav a.is-active {
  border-color: var(--brand);
  background: rgba(89, 196, 255, 0.14);
  color: var(--brand);
}

.jump-nav .nav-icon {
  width: 14px;
  height: 14px;
  color: #9fd8ff;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  color: var(--text);
  background: rgba(10, 29, 47, 0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3, 12, 23, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid rgba(89, 196, 255, 0.5);
  outline-offset: 2px;
}

.btn-primary {
  color: var(--brand-ink);
  border-color: rgba(133, 217, 255, 0.66);
  background: linear-gradient(135deg, #8de5ff 0%, #59c4ff 45%, #37a8e2 100%);
  box-shadow: 0 14px 28px rgba(55, 168, 226, 0.26);
}

.btn-secondary {
  border-color: rgba(160, 211, 246, 0.3);
  background: rgba(11, 30, 49, 0.9);
  color: #e9f6ff;
}

.btn-ghost {
  border-style: dashed;
  border-color: rgba(167, 199, 224, 0.5);
  color: #b8cfe3;
  background: rgba(7, 18, 31, 0.45);
}

.btn-cta {
  color: #3a1800;
  font-weight: 600;
  border-color: rgba(255, 184, 100, 0.7);
  background: linear-gradient(135deg, #ffd49a 0%, var(--accent-warm) 45%, #f09030 100%);
  box-shadow: 0 14px 28px rgba(240, 144, 48, 0.22);
}

.btn-cta:hover {
  box-shadow: 0 16px 32px rgba(240, 144, 48, 0.32);
}

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

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

.layout {
  margin-top: 14px;
  padding: 0 18px 16px;
  display: grid;
  gap: 14px;
}

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

.card:hover {
  border-color: rgba(165, 212, 243, 0.5);
  transform: translateY(-1px);
}

.card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(165, 212, 243, 0) 0%, rgba(165, 212, 243, 0.84) 55%, rgba(255, 178, 90, 0.66) 100%);
}

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

.card h3 {
  margin: 0 0 10px;
  color: #a9dbff;
  font-size: 1rem;
}

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

.title-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(160, 211, 246, 0.36);
  background: linear-gradient(145deg, rgba(16, 45, 70, 0.9) 0%, rgba(10, 29, 47, 0.9) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a8ddff;
  box-shadow: 0 9px 18px rgba(4, 15, 28, 0.32);
  flex: none;
}

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

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

.card-directory {
  background:
    linear-gradient(152deg, rgba(12, 31, 52, 0.84) 0%, rgba(8, 19, 34, 0.95) 100%),
    radial-gradient(circle at 92% -30%, rgba(123, 210, 255, 0.2) 0%, transparent 58%);
}

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

.directory-item {
  border: 1px solid rgba(157, 211, 245, 0.24);
  border-radius: 13px;
  padding: 11px;
  background: rgba(6, 18, 31, 0.64);
  display: grid;
  gap: 7px;
}

.directory-item h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #b8e1ff;
}

.directory-item a {
  text-decoration: none;
  color: #dcefff;
  font-size: 0.84rem;
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  background: rgba(14, 37, 58, 0.42);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.directory-item a:hover {
  border-color: rgba(163, 213, 243, 0.42);
  background: rgba(17, 45, 70, 0.72);
}

.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.9rem;
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(154, 192, 220, 0.32);
  border-radius: 11px;
  padding: 10px 12px;
  background: rgba(4, 12, 23, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(165, 209, 239, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(89, 196, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(89, 196, 255, 0.17);
  background: rgba(5, 16, 29, 0.86);
}

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

.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

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

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

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

.result-text {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

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

.thread-item {
  border: 1px solid rgba(156, 203, 235, 0.24);
  border-radius: 12px;
  padding: 11px;
  background: rgba(4, 14, 25, 0.66);
}

.thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.81rem;
  color: #a9d9ff;
}

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

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

.timeline-item {
  border: 1px solid rgba(159, 206, 237, 0.25);
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 16, 28, 0.7);
}

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

.timeline-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.77rem;
  color: #08263d;
  background: linear-gradient(120deg, #9ae5ff 0%, #55c7ff 100%);
}

.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.15rem;
  line-height: 1;
}

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

.score-tag {
  border: 1px solid rgba(160, 200, 225, 0.35);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.84rem;
  color: var(--muted);
  background: rgba(7, 19, 33, 0.5);
}

.score-tag.good {
  color: #c6ffe4;
  border-color: rgba(113, 217, 171, 0.52);
  background: rgba(18, 58, 43, 0.65);
}

.score-tag.medium {
  color: #ffe6b9;
  border-color: rgba(247, 193, 106, 0.52);
  background: rgba(71, 50, 9, 0.62);
}

.score-tag.low {
  color: #ffd1d1;
  border-color: rgba(255, 138, 138, 0.52);
  background: rgba(65, 20, 28, 0.64);
}

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

.score-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a8a 0%, #f7c16a 46%, #71d9ab 100%);
  transition: width 0.3s ease;
}

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

.metric-item {
  border: 1px solid rgba(156, 202, 232, 0.24);
  border-radius: 10px;
  background: rgba(4, 14, 25, 0.66);
  padding: 10px;
}

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

.metric-item .value {
  display: block;
  margin-top: 4px;
  color: #b5e2ff;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

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

.check-section {
  border: 1px solid rgba(156, 202, 232, 0.25);
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 15, 27, 0.66);
}

.check-section h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: #b3e0ff;
}

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

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

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

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

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

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

.chip-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(160, 210, 242, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(8, 22, 37, 0.72);
  color: #def1ff;
  cursor: pointer;
  user-select: none;
}

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

.platform-cards {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.platform-card {
  border: 1px solid rgba(158, 205, 236, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(4, 13, 24, 0.68);
}

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

.platform-name {
  font-size: 1rem;
  color: #afe0ff;
}

.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, 203, 234, 0.22);
  border-radius: 10px;
  background: rgba(4, 14, 25, 0.74);
  padding: 10px;
}

.platform-block h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #afdefb;
}

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

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

.resource-filters label {
  font-size: 0.86rem;
}

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

.resource-sensitive {
  margin-bottom: 10px;
  border: 1px solid rgba(158, 206, 237, 0.24);
  border-radius: 12px;
  background: rgba(4, 13, 24, 0.7);
  padding: 10px;
}

.resource-sensitive h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #afddfb;
}

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

.resource-card {
  border: 1px solid rgba(157, 204, 235, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 14, 25, 0.7);
}

.resource-card h4 {
  margin: 0 0 8px;
  color: #b3e0ff;
  font-size: 0.9rem;
}

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

.resource-links a {
  color: #96ddff;
}

.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(158, 206, 237, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 14, 25, 0.7);
}

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

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

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

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

.competitor-card {
  border: 1px solid rgba(157, 204, 235, 0.26);
  border-radius: 14px;
  padding: 12px;
  background: rgba(3, 12, 21, 0.7);
  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.35;
  color: #06243a;
  border-radius: 999px;
  padding: 4px 8px;
  background: linear-gradient(120deg, #9ce6ff 0%, #52c7ff 100%);
}

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

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

.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(89, 196, 255, 0.28), rgba(113, 217, 171, 0.24));
}

.competitor-card h4 {
  margin: 2px 0 0;
  color: #afe0ff;
  font-size: 0.86rem;
}

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

.competitor-source a {
  color: #96ddff;
}

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

.model-panel,
.model-result {
  border: 1px solid rgba(157, 205, 236, 0.24);
  border-radius: 12px;
  background: rgba(4, 13, 24, 0.72);
  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(157, 204, 235, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(4, 14, 25, 0.7);
}

.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: #c5ffe3;
}

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

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

.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: #afe0ff;
}

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

.risk-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ff8a8a 0%, #f7c16a 47%, #71d9ab 100%);
}

.footer {
  margin-top: 56px;
  padding: 22px 20px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin: 0;
  font-size: 0.79rem;
  color: var(--muted);
  opacity: 0.72;
}

.footer-dot {
  opacity: 0.45;
}

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

.footer a {
  color: var(--brand);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* --- Quick Start Guide --- */

.quick-start-guide {
  border: 1px solid rgba(255, 184, 100, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(20, 36, 54, 0.78) 0%, rgba(10, 22, 38, 0.88) 100%),
    radial-gradient(circle at 50% -20%, rgba(255, 184, 100, 0.14) 0%, transparent 52%);
  box-shadow: var(--shadow-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.quick-start-guide::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 184, 100, 0) 0%, var(--accent-warm) 50%, rgba(89, 196, 255, 0.6) 100%);
}

.quick-start-title {
  margin: 0 0 16px;
  font-size: 1.12rem;
  text-align: center;
  color: #ffe0b5;
}

.quick-start-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.quick-step {
  flex: 1;
  max-width: 280px;
  border: 1px solid rgba(255, 184, 100, 0.22);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(6, 16, 28, 0.72);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quick-step:hover {
  border-color: rgba(255, 184, 100, 0.46);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #3a1800;
  background: linear-gradient(135deg, #ffd49a 0%, var(--accent-warm) 100%);
  margin-bottom: 8px;
}

.quick-step h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  color: #ffe0b5;
}

.quick-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.step-arrow {
  color: rgba(255, 184, 100, 0.5);
  font-size: 1.3rem;
  flex: none;
  user-select: none;
}

/* --- Card Featured --- */

.card-featured {
  border-color: rgba(89, 196, 255, 0.38);
  box-shadow:
    var(--shadow-md),
    0 0 36px rgba(89, 196, 255, 0.06);
}

.card-featured::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(89, 196, 255, 0) 0%, rgba(89, 196, 255, 0.95) 45%, var(--accent-warm) 100%);
}

.card-featured:hover {
  border-color: rgba(89, 196, 255, 0.56);
  box-shadow:
    var(--shadow-lg),
    0 0 48px rgba(89, 196, 255, 0.1);
}

/* --- Reveal Animation with Stagger --- */

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

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

/* --- Mobile Bottom Quick-Access Dock --- */

.mobile-dock {
  display: none;
}



@media (max-width: 1180px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .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: 20px 16px 16px;
    border-radius: 20px;
  }

  .layout {
    padding: 0 14px 12px;
    margin-top: 12px;
  }

  h1 {
    line-height: 1.08;
  }

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

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-start-steps {
    flex-direction: column;
  }

  .quick-step {
    max-width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 700px) {
  .hero-actions .btn,
  .action-row .btn {
    width: 100%;
  }

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

  .hero-badges {
    gap: 7px;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .btn {
    justify-content: center;
  }

  .mobile-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(7, 14, 26, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(89, 196, 255, 0.2);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 4px;
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.66rem;
    padding: 4px 6px;
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .dock-item:hover,
  .dock-item:active {
    color: var(--brand);
    background: rgba(89, 196, 255, 0.08);
  }

  .dock-icon {
    width: 20px;
    height: 20px;
  }

  .footer {
    padding-bottom: 80px;
  }

  .layout {
    padding-bottom: 80px;
  }
}

/* ─── Empty State Guidance ────────────────────────────── */
.output-list:empty::before {
  content: "生成内容后将显示在这里";
  display: block;
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.6;
  font-style: italic;
}

.thread-list:empty::before {
  content: "Thread 拆分结果（5–12 条推文）将显示在这里";
  display: block;
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.6;
  font-style: italic;
}

/* ─── Input Meta (word count etc.) ───────────────────── */
.input-meta {
  display: block;
  text-align: right;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.65;
  user-select: none;
}

/* ─── Directory Tier Badges ───────────────────────────── */
.tier-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.6;
}

.tier-core {
  background: rgba(89, 196, 255, 0.15);
  color: var(--brand);
  border: 1px solid rgba(89, 196, 255, 0.3);
}

.tier-pro {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.tier-expert {
  background: rgba(255, 184, 100, 0.12);
  color: var(--accent-warm);
  border: 1px solid rgba(255, 184, 100, 0.25);
}

/* ─── Phase 1: Collapse Empty Modules ────────────────── */
.module-collapsed {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  border-color: transparent !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.45s ease, padding 0.3s ease, opacity 0.35s ease, margin-top 0.3s ease, border-color 0.3s ease;
}

.module-collapsed::before {
  display: none;
}

.module-expanded {
  opacity: 1;
  transition: max-height 0.55s ease, padding 0.3s ease, opacity 0.4s ease 0.08s;
}

/* ─── Phase 1: Button Loading Spinner ────────────────── */
.btn-loading {
  pointer-events: none;
  opacity: 0.72;
  position: relative;
}

.btn-loading .btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
  flex: none;
}

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

.btn-kbd {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 0.7em;
  font-family: inherit;
  opacity: 0.5;
  border: 1px solid currentColor;
  border-radius: 4px;
  line-height: 1.4;
  vertical-align: middle;
}

/* ─── Phase 1: Form Validation ───────────────────────── */
.field-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.22) !important;
  animation: field-shake 0.4s ease;
}

@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.field-invalid-hint {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 3px;
  opacity: 0.92;
}

/* ─── Phase 1: Toast Notification Upgrade ────────────── */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  background: rgba(14, 45, 66, 0.96);
  color: #eaf6ff;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid rgba(140, 231, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 0.88rem;
  backdrop-filter: blur(10px);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.2s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-success { border-color: rgba(113, 217, 171, 0.45); }
.toast-error { border-color: rgba(255, 138, 138, 0.45); color: #ffd1d1; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* ─── Phase 1: Next Step CTA Banner ─────────────────── */
.next-step-banner {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(113, 217, 171, 0.32);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(14, 50, 40, 0.6) 0%, rgba(10, 30, 45, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.next-step-banner .next-step-text {
  font-size: 0.9rem;
  color: #c6ffe4;
}

.next-step-banner .btn {
  flex: none;
}

/* ─── Phase 1: Disabled btn styling ──────────────────── */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Phase 2: Wizard Progress Bar ──────────────────── */
.wizard-bar {
  max-width: 1240px;
  margin: 10px auto 0;
  padding: 12px 24px;
  background: rgba(7, 14, 26, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
  min-width: 72px;
}

.wizard-step.is-future {
  opacity: 0.4;
  cursor: default;
}

.wizard-step.is-completed {
  cursor: pointer;
}

.wizard-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(160, 211, 246, 0.3);
  background: rgba(7, 18, 31, 0.7);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.wizard-dot-inner {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.wizard-step.is-current .wizard-dot {
  border-color: var(--brand);
  background: rgba(89, 196, 255, 0.15);
  transform: scale(1.1);
}

.wizard-step.is-current .wizard-dot-inner {
  color: var(--brand);
}

.wizard-step.is-completed .wizard-dot {
  border-color: var(--ok);
  background: rgba(113, 217, 171, 0.15);
}

.wizard-step.is-completed .wizard-dot-inner {
  color: var(--ok);
}

.wizard-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.wizard-step.is-current .wizard-label {
  color: var(--brand);
  font-weight: 500;
}

.wizard-step.is-completed .wizard-label {
  color: var(--ok);
}

.wizard-connector {
  flex: 1;
  max-width: 80px;
  min-width: 24px;
  height: 2px;
  background: rgba(160, 211, 246, 0.18);
  border-radius: 2px;
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background 0.4s ease;
}

.wizard-connector.is-active {
  background: linear-gradient(90deg, var(--ok), rgba(89, 196, 255, 0.6));
}

/* ─── Phase 2: Version Tabs ─────────────────────────── */
.version-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.version-tab {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(160, 211, 246, 0.28);
  background: rgba(7, 18, 31, 0.6);
  color: var(--muted);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.version-tab:hover {
  border-color: rgba(160, 211, 246, 0.5);
  background: rgba(14, 37, 58, 0.7);
  transform: translateY(-1px);
}

.version-tab.is-active {
  border-color: var(--brand);
  background: rgba(89, 196, 255, 0.14);
  color: var(--brand);
}

.version-tab.has-content {
  border-color: rgba(113, 217, 171, 0.4);
  position: relative;
}

.version-tab.has-content::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

/* ─── Phase 2: Generation Summary Card ──────────────── */
.gen-summary {
  border: 1px solid rgba(113, 217, 171, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(14, 50, 40, 0.5) 0%, rgba(10, 25, 40, 0.75) 100%);
  box-shadow: var(--shadow-md);
  padding: 18px;
  margin-bottom: 14px;
  animation: rise 0.45s ease forwards;
}

.gen-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gen-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #c6ffe4;
}

.gen-summary-dismiss {
  border: 1px solid rgba(160, 211, 246, 0.25);
  border-radius: 8px;
  background: rgba(7, 18, 31, 0.5);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.gen-summary-dismiss:hover {
  border-color: rgba(160, 211, 246, 0.5);
  color: var(--text);
}

.gen-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.gen-stat {
  border: 1px solid rgba(156, 202, 232, 0.2);
  border-radius: 10px;
  padding: 10px;
  background: rgba(4, 14, 25, 0.5);
  text-align: center;
}

.gen-stat-value {
  display: block;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #b5e2ff;
  line-height: 1;
}

.gen-stat-value small {
  font-size: 0.75rem;
  color: var(--muted);
}

.gen-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

.gen-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gen-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(160, 211, 246, 0.28);
  border-radius: 999px;
  background: rgba(7, 19, 34, 0.6);
  color: #dcf2ff;
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gen-pill:hover {
  border-color: rgba(160, 211, 246, 0.55);
  background: rgba(17, 43, 70, 0.7);
  transform: translateY(-1px);
}

/* ─── Phase 2: Stop Button ──────────────────────────── */
.btn-stop {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee4444 100%) !important;
  border-color: rgba(255, 138, 138, 0.6) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(238, 68, 68, 0.25);
}

.btn-stop:hover {
  box-shadow: 0 12px 28px rgba(238, 68, 68, 0.35);
}

.btn-stop-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
  margin-right: 7px;
  flex: none;
}

/* ─── Phase 2: Platform Select All ──────────────────── */
.platform-select-all {
  margin-bottom: 6px;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .gen-summary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-bar {
    margin: 8px 14px 0;
    padding: 10px 14px;
  }

  .wizard-step {
    min-width: 56px;
  }

  .wizard-label {
    font-size: 0.66rem;
  }
}

@media (max-width: 700px) {
  .btn-kbd { display: none; }

  .jump-nav {
    padding: 8px 12px;
    gap: 6px;
  }

  .toast {
    right: 12px;
    bottom: 80px;
    left: 12px;
    text-align: center;
    justify-content: center;
  }

  .wizard-bar {
    margin: 6px 8px 0;
    padding: 8px 10px;
    border-radius: var(--radius-md);
  }

  .wizard-dot {
    width: 26px;
    height: 26px;
  }

  .wizard-dot-inner {
    font-size: 0.72rem;
  }

  .wizard-label {
    font-size: 0.62rem;
  }

  .wizard-connector {
    min-width: 12px;
  }

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

  .version-tab {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}
