:root {
  /* 渐变灰主题：参考开场特效地球图的灰调，深浅不一、带玻璃透明感 */
  --bg: #d8dade;
  --panel: rgba(255, 255, 255, 0.40);
  --panel-strong: rgba(255, 255, 255, 0.66);
  --panel-deep: rgba(32, 35, 42, 0.055);
  --border: rgba(32, 35, 42, 0.13);
  --border-soft: rgba(32, 35, 42, 0.07);
  --cyan: #0e7490;
  --violet: #6d28d9;
  --amber: #92400e;
  --green: #166534;
  --red: #b91c1c;
  --text: #23262d;
  --text-mute: #4b505a;
  --text-dim: #868b95;
  --grad: linear-gradient(135deg, #3a3e46, #83878f);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== 开场特效 Intro Overlay ===== */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 46%, #e3e4e6 0%, #c7cacd 55%, #9a9ea3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  opacity: 1;
  visibility: visible;
}
#introOverlay.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#introOverlay.intro-instant {
  transition: none;
}
#introCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
.intro-skip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 33, 0.15);
  background: rgba(255, 255, 255, 0.55);
  color: #2a2f3a;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  opacity: 0;
  animation: introSkipIn 0.6s ease 0.5s forwards;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}
.intro-skip:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}
@keyframes introSkipIn {
  to { opacity: 1; }
}
@media (max-width: 640px) {
  .intro-skip { right: 14px; bottom: 14px; font-size: 11.5px; padding: 7px 13px; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 10% -6%, rgba(255,255,255,0.55), transparent 58%),
    radial-gradient(800px 600px at 92% 8%, rgba(32,35,42,0.10), transparent 60%),
    radial-gradient(1000px 760px at 50% 105%, rgba(32,35,42,0.14), transparent 62%),
    linear-gradient(165deg, #eceded 0%, #d8dade 45%, #c2c5ca 100%);
}

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(32,35,42,0.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(32,35,42,0.28); }

/* ---------- floating pill nav ---------- */
.nav-float-wrap {
  position: sticky;
  top: 16px;
  z-index: 45;
  padding: 0 20px;
}
.nav-float {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 10px 9px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 34px rgba(32,35,42,0.14);
}
.nav-logo {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  white-space: nowrap;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(32,35,42,0.35);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.nav-links::-webkit-scrollbar { display: none; }
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-mute);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.tab-btn:hover { color: var(--text); background: rgba(32,35,42,0.06); }
.tab-btn.active { color: #fff; background: var(--text); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; flex-shrink: 0; }
.btn-nav-action {
  background: rgba(32,35,42,0.055);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-nav-action:hover { background: rgba(32,35,42,0.11); color: var(--text); }
.mode-badge {
  font-size: 11px;
  color: var(--text-mute);
  background: rgba(32,35,42,0.045);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: default;
}

@media (max-width: 640px) {
  .nav-logo-text { display: none; }
  .nav-logo { margin-right: 4px; }
  .nav-float { padding: 8px 8px 8px 12px; gap: 2px; }
  .mode-badge { display: none; }
  .btn-nav-action { padding: 7px 10px; font-size: 11px; }
  .tab-btn { padding: 7px 11px; font-size: 12px; }
}

main { padding: 30px 28px 70px; max-width: 1240px; margin: 0 auto; }

.tab-panel { display: none; animation: fadeUp .4s ease both; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Full-bleed cinematic hero ---------- */
.hero-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 100vh;
  height: 100svh; /* 现代浏览器优先用 small viewport height，避免移动端地址栏遮挡 */
  min-height: 640px;
  margin-top: -18px;
  margin-bottom: 0;
  overflow: hidden;
  background: #04060a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-image-layer {
  position: absolute;
  inset: 0;
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  display: block;
  transition: transform .5s ease-out;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.4%, -1%); }
}
.hero-glow-pulse {
  position: absolute;
  left: 10%;
  top: 20%;
  width: 24%;
  height: 36%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(147,197,253,0.5), transparent 68%);
  mix-blend-mode: screen;
  animation: heroPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroPulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.1); }
}
.hero-flow-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  display: block;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-vignette-full {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(2,4,8,0.55) 0%, rgba(2,4,8,0.15) 30%, rgba(2,4,8,0.35) 70%, rgba(2,4,8,0.75) 100%),
    radial-gradient(ellipse 90% 70% at 50% 50%, transparent 40%, rgba(2,4,8,0.55) 100%);
}
.hero-full-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.hero-full-title {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.22;
  font-weight: 700;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: -.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-title-dim { color: rgba(255,255,255,0.42); font-weight: 500; }
.hero-full-sub {
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(230,235,245,0.72);
  margin: 0 0 36px;
}
.hero-full-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn-pill-primary {
  background: #fff;
  color: #0a0e1a;
  border: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.btn-pill-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.btn-text-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.btn-text-link:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero-stats-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 56px;
  padding-top: 4px;
}
.hero-stats-caption {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.4);
}
.hero-stat {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hero-stat strong { font-size: 19px; font-weight: 700; color: #fff; }
@media (max-width: 800px) {
  .hero-full { height: 100vh; height: 100svh; min-height: 600px; }
  .hero-full-title { font-size: clamp(30px, 8vw, 40px); }
  .hero-full-sub { font-size: 15px; }
  .hero-full-inner { max-width: 460px; }
  .hero-image { object-position: 70% 40%; }
  .hero-stats-strip { gap: 20px 26px; margin-top: 42px; }
}
@media (max-width: 420px) {
  .hero-stats-strip { gap: 16px 22px; }
  .hero-stats-caption { flex-basis: 100%; text-align: center; margin-bottom: 2px; }
}

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  animation: fadeUp .4s ease both;
  transition: transform .18s, border-color .18s;
}
.kpi-card:nth-child(1) { animation-delay: .02s; }
.kpi-card:nth-child(2) { animation-delay: .08s; }
.kpi-card:nth-child(3) { animation-delay: .14s; }
.kpi-card:nth-child(4) { animation-delay: .2s; }
.kpi-card:hover { transform: translateY(-2px); border-color: rgba(32,35,42,0.2); }
.kpi-label { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.kpi-value { font-size: 25px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.kpi-delta { font-size: 12px; margin-top: 4px; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card h3 { margin-top: 0; font-size: 14.5px; color: var(--text); font-weight: 700; }
.card.note { font-size: 12.5px; color: var(--text-mute); background: var(--panel-deep); }
.card.note code { color: var(--cyan); }

/* ---------- toolbar / inputs ---------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  background: var(--panel-strong);
  color: var(--text);
}
.toolbar input::placeholder { color: var(--text-dim); }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: rgba(32,35,42,0.3); }
.toolbar h3 { color: var(--text); font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn-primary { background: var(--text); color: #fff; box-shadow: 0 4px 16px rgba(32,35,42,0.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(32,35,42,0.3); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: rgba(32,35,42,0.05); color: var(--text); border-color: var(--border); margin-left: 8px; }
.btn-ghost:hover { background: rgba(32,35,42,0.09); }
.btn-small { padding: 5px 13px; font-size: 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-strong); color: var(--text-mute); cursor: pointer; }
.btn-small:hover { background: rgba(32,35,42,0.10); color: var(--text); }
.btn-small.danger { color: var(--red); border-color: rgba(185,28,28,0.3); }
.btn-small.danger:hover { background: rgba(185,28,28,0.10); color: var(--red); }

/* ---------- Card list (Research / Opportunities) ---------- */
.card-list { display: flex; flex-direction: column; gap: 12px; }
.entry-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 17px 20px;
  transition: border-color .15s;
}
.entry-card-clickable { cursor: pointer; }
.entry-card-clickable:hover { border-color: rgba(32,35,42,0.2); }
.entry-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.entry-card-title { font-size: 15px; font-weight: 700; color: var(--text); }
.entry-card-sub { font-size: 12px; color: var(--text-mute); margin-top: 3px; }
.entry-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.entry-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; font-size: 13px; }
.entry-field-value { overflow-wrap: anywhere; }
.field-wide { grid-column: 1 / -1; }
.price-tag { color: var(--red); font-weight: 700; }
.entry-field-label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.entry-field-value { margin-bottom: 8px; white-space: pre-wrap; color: var(--text); }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(32,35,42,0.06); color: var(--text); border: 1px solid var(--border); }
.pill.status-待评估 { background: rgba(14,116,144,0.12); color: var(--cyan); border-color: rgba(14,116,144,0.3); }
.pill.status-跟进中 { background: rgba(146,64,14,0.12); color: var(--amber); border-color: rgba(146,64,14,0.3); }
.pill.status-已验证 { background: rgba(22,101,52,0.12); color: var(--green); border-color: rgba(22,101,52,0.3); }
.pill.status-已放弃 { background: rgba(100,107,120,0.14); color: #4b5058; border-color: rgba(100,107,120,0.28); }
.pill.priority-高 { background: rgba(185,28,28,0.12); color: var(--red); border-color: rgba(185,28,28,0.3); }
.pill.priority-中 { background: rgba(146,64,14,0.12); color: var(--amber); border-color: rgba(146,64,14,0.3); }
.pill.priority-低 { background: rgba(100,107,120,0.14); color: #4b5058; border-color: rgba(100,107,120,0.28); }

/* ---------- Brands: app-icon grid ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 24px 14px;
}
.app-icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  border-radius: 12px;
  transition: background .15s;
}
.app-icon-tile:hover { background: rgba(32,35,42,0.045); }
.app-icon-image {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.app-icon-tile:hover .app-icon-image { transform: translateY(-2px) scale(1.05); border-color: rgba(32,35,42,0.25); box-shadow: 0 8px 20px rgba(32,35,42,0.18); }
.app-icon-image img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.app-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: var(--grad);
}
/* 纯色深灰版占位图标（产品细分类型用，不用渐变、不配图片） */
.app-icon-fallback-gray { background: #4a4e57; }
.app-icon-label {
  font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3;
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-icon-sub { font-size: 10.5px; color: var(--text-dim); }

/* ---------- Tables ---------- */
.table-wrap { background: var(--panel); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 14px; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
thead th {
  background: rgba(32,35,42,0.035);
  text-align: left;
  padding: 12px 14px;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; color: var(--text); }
tbody tr:hover { background: rgba(32,35,42,0.035); }

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--border); margin-left: 8px; padding-left: 22px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: ""; position: absolute; left: -27px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(32,35,42,0.35);
}
.timeline-date { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.timeline-title { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.timeline-desc { font-size: 13px; color: var(--text-mute); }
.timeline-tag { display: inline-block; font-size: 10.5px; background: rgba(109,40,217,0.12); color: var(--violet); border: 1px solid rgba(109,40,217,0.3); padding: 1px 9px; border-radius: 999px; margin-left: 8px; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(24, 26, 31, 0.45);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  z-index: 50; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeUp .2s ease both; }
.modal {
  background: #f2f3f4;
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto;
  padding: 22px 24px 24px;
  box-shadow: 0 20px 70px rgba(32,35,42,0.28);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-header h3 { margin: 0; color: var(--text); font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-mute); line-height: 1; }
.modal-close:hover { color: var(--text); }
.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 11.5px; color: var(--text-mute); margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; font-family: inherit;
  background: rgba(255,255,255,0.55); color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: rgba(32,35,42,0.3); }
.form-row textarea { min-height: 60px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.empty-state { text-align: center; color: var(--text-dim); padding: 34px; font-size: 13px; }

footer { text-align: center; font-size: 11.5px; color: var(--text-dim); padding: 26px; }
