:root {
  /* 统一主题令牌 · 深色青绿系（与 PULSE / 统一门户一致） */
  font-family: "IBM Plex Sans", Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #e8eefc;
  background: #06080c;
  --panel: rgba(18, 24, 38, .86);
  --line: rgba(94, 234, 212, .16);
  --muted: #7d8ba6;
  --cyan: #5eead4;
  --ok: #4ade80;
  --warn: #f5b942;
  --gap: 16px;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(1200px 500px at 80% -10%, rgba(139, 124, 255, .18), transparent 55%),
  radial-gradient(900px 400px at -10% 0%, rgba(94, 234, 212, .12), transparent 50%),
  linear-gradient(180deg, #06080c 0%, #080b12 100%); }
button, input, select, textarea { font: inherit; }
button { color: #b8cbda; background: #11283d; border: 1px solid var(--line); border-radius: 7px; padding: 9px 16px; cursor: pointer; }
button:hover:not(:disabled) { border-color: rgba(40, 184, 230, .55); color: white; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { color: white; border-color: #159cc9; background: linear-gradient(135deg, #159cc9, #0874a5); }
button.compact { padding: 8px 13px; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.home-link { color: var(--cyan); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; padding-right: 18px; border-right: 1px solid var(--line); }
.home-link:hover { color: #dff8ff; text-decoration: none; }
.topbar { height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 28px; background: rgba(5, 15, 26, .93); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; font-weight: 800; border-radius: 9px; color: white; background: linear-gradient(145deg, #30c4ed, #176b9c); }
.brand h1 { margin: 0; font-size: 17px; }
.brand p { margin: 3px 0 0; font-size: 12px; color: #547088; }
.tabs { display: flex; gap: 8px; align-items: center; }
.tabs .spacer { margin-left: auto; }
.tabs button.active { color: #e7f8ff; border-color: rgba(40,184,230,.7); background: #123650; }
.product-nav { display: flex; align-self: stretch; }
.product-nav a { display: grid; place-items: center; padding: 0 22px; color: #7891a7; border-bottom: 2px solid transparent; text-decoration: none; }
.product-nav a.active { color: #dff8ff; border-bottom-color: var(--cyan); background: linear-gradient(0deg, rgba(40,184,230,.1), transparent 72%); }
.product-nav a:hover { color: white; text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.period-global { display: flex; align-items: center; gap: 8px; }
.period-global-label { color: var(--muted); font-size: 12px; letter-spacing: .1em; user-select: none; }
.period-global-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 24, 40, .55); }
.period-global-switch button { padding: 5px 14px; border: 0; border-radius: 999px; background: transparent; color: #9ab3c6; font-size: 13px; line-height: 1.2; }
.period-global-switch button:hover:not(:disabled):not(.active) { color: #dff8ff; background: rgba(40, 184, 230, .14); }
.period-global-switch button.active { color: #e7f8ff; border-color: transparent; background: linear-gradient(135deg, #159cc9, #0874a5); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.idea { padding: 16px 18px; }
.idea h3 { margin: 0 0 8px; font-size: 15px; }
.idea p { margin: 8px 0 0; color: #c5d7e6; line-height: 1.6; font-size: 13px; }
.idea .fit { font: 700 22px/1 monospace; color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5d6c; }
.dot.on { background: var(--ok); }
main { width: min(1440px, calc(100% - 40px)); margin: 22px auto 48px; display: flex; flex-direction: column; gap: var(--gap); }
.period-bar { position: sticky; top: 72px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; }
.period-switch, .period-days { display: flex; flex-wrap: wrap; gap: 8px; }
.period-switch button.active, .period-days button.active { color: #e7f8ff; border-color: rgba(40,184,230,.7); background: #123650; }
.period-date { display: flex; align-items: center; gap: 8px; color: #8eabc0; font-size: 13px; }
.period-date input { color-scheme: dark; }
.trend { display: block; width: 100%; height: auto; }
.trend-hit { cursor: pointer; }
.trend-hit:hover rect { filter: brightness(1.35); }
.trend-total { margin: 0 0 4px; color: #9ad7c4; font: 700 13px/1.4 ui-monospace, monospace; }
.trend-panel .trend { width: 100%; }
.toast { position: fixed; z-index: 40; top: 86px; left: 50%; transform: translateX(-50%); min-width: min(460px, calc(100vw - 32px)); padding: 16px 22px; border-radius: 12px; text-align: center; font-size: 16px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 18px 48px rgba(0, 0, 0, .48); cursor: pointer; }
.toast.ok { color: #f3fff9; background: #0f6b4c; border: 1px solid #7dffc8; }
.toast.error { color: #fff5f6; background: #9d2434; border: 1px solid #ffb3bb; }
.glass { background: linear-gradient(145deg, rgba(16, 36, 56, .92), rgba(8, 23, 38, .93)); border: 1px solid var(--line); border-radius: var(--radius); }
.hero, .panel, .login-card { padding: 22px 24px; }
.eyebrow { color: var(--cyan); font: 11px/1.2 monospace; letter-spacing: .14em; }
.hero h2 { margin: 8px 0; font-size: 26px; }
.hero p, .panel-head p, .field-note { margin: 0; color: #99aec0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; color: #93a9bc; font-size: 12px; }
.meta i { font-style: normal; color: #5f788d; margin-right: 6px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.kpi { padding: 18px 20px; }
button.kpi, a.kpi { display: block; width: 100%; text-align: left; text-decoration: none; color: inherit; cursor: pointer; background: linear-gradient(145deg, rgba(16, 36, 56, .92), rgba(8, 23, 38, .93)); }
button.kpi:hover, a.kpi:hover { text-decoration: none; border-color: rgba(40, 184, 230, .7); }
.kpi span { color: #91a9bc; font-size: 13px; }
.kpi strong { display: block; margin-top: 8px; font: 700 28px/1 monospace; color: var(--ok); }
.kpi strong.kpi-title { font: 650 16px/1.35 Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
#module-bar, #module-grid, #growth-board, #rank-table, #skipped-sites, #gig-list, #gig-skipped { scroll-margin-top: 148px; }
.chips, .modules { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 7px 15px; border-radius: 999px; font-size: 13px; }
.chips button.active, .modules button.active { color: #e7f8ff; border-color: rgba(40,184,230,.7); background: #123650; }
.modules button { background: transparent; }
.group-title { margin: 18px 0 0; font-size: 14px; color: #9ec9de; }
.module-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.module-row input { width: 100%; }
.gig-edit { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); }
.gig-edit input, .gig-edit textarea { width: 100%; }
.gig-edit textarea { min-height: 58px; resize: vertical; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.module-card { width: 100%; padding: 16px 18px; text-align: left; }
.module-card > button { width: 100%; padding: 0 0 8px; text-align: left; color: inherit; background: transparent; border: 0; }
.module-card h3 { margin: 0; font-size: 16px; }
.module-card:hover { border-color: rgba(40, 184, 230, .7); }
a.top-line { color: inherit; text-decoration: none; }
a.top-line:hover { text-decoration: none; }
a.top-line:hover > span { color: #9ad7ff; }
.top-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.top-line span { font-weight: 650; }
.top-line small { color: #99aec0; }
.grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.panel-head h3 { margin: 0 0 5px; font-size: 16px; }
.panel-head p { line-height: 1.6; font-size: 13px; }
.table-scroll { max-height: 680px; overflow: auto; }
.table-scroll thead th { position: sticky; top: 0; background: #102438; z-index: 1; }
th, td { border-top: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; font-size: 13px; }
tbody tr:nth-child(even) { background: rgba(126, 162, 190, .035); }
tbody tr:hover { background: rgba(40, 184, 230, .06); }
th { color: var(--muted); font-size: 12px; }
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]:hover { color: #dff8ff; }
th[data-sort].sorted { color: #8fd8f2; }
td.rank, th:first-child { width: 36px; color: #7f95a8; }
td.lang { width: 108px; color: #9aafc0; white-space: nowrap; }
td.num, th.num { width: 108px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.repo a { font-weight: 650; }
.repo-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.desc { color: #d5e4f0; line-height: 1.55; }
.desc.use { color: #c5d7e6; }
.desc.en { color: #6e8496; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.repo-tip-body { display: none; }
.repo-tip { position: fixed; z-index: 40; max-height: min(340px, 52vh); overflow: auto; padding: 12px 14px; border-radius: 10px; background: #0c1c2c; border: 1px solid rgba(40, 184, 230, .45); box-shadow: 0 16px 36px rgba(0, 0, 0, .4); pointer-events: none; }
.repo-tip strong { display: block; margin: 10px 0 4px; font-size: 12px; letter-spacing: .04em; color: #8eb8cc; }
.repo-tip strong:first-child { margin-top: 0; }
.repo-tip p { margin: 0; color: #d5e4f0; font-size: 13px; line-height: 1.65; }
.repo-tip ol { margin: 0; padding-left: 18px; color: #d5e4f0; font-size: 13px; line-height: 1.6; }
.repo-tip .reason-list { margin-top: 2px; }
.has-tip { cursor: pointer; }
.login-platform { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.login-platform textarea, .login-platform input { width: 100%; }
.recommend { color: #9aafc0; font-size: 12px; }
.brief-row td { border-top: none; padding: 0 8px 14px; }
.brief-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; padding: 16px 18px 18px; border-radius: 10px; background: rgba(5, 16, 28, .72); border: 1px solid rgba(126, 162, 190, .16); }
.brief-wide, .brief-path { grid-column: 1 / -1; }
.brief-box h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; color: #8eb8cc; }
.brief-box p { margin: 0; max-width: 68ch; color: #d5e4f0; font-size: 14px; line-height: 1.75; }
.brief-box ol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.brief-box li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: #d5e4f0; font-size: 14px; line-height: 1.7; }
.brief-box li::before { counter-increment: step; content: counter(step); flex: 0 0 22px; height: 22px; display: grid; place-items: center; margin-top: 2px; border-radius: 50%; background: rgba(40, 184, 230, .16); color: #8fd8f2; font-size: 12px; }
.reason-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.reason-list li { width: auto; padding: 6px 10px; border-radius: 999px; background: rgba(40, 184, 230, .08); font-size: 12px; line-height: 1.4; }
.reason-list li::before { display: none; content: none; }
.bar { height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(40,184,230,.15); }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #159cc9, #2dd4a8); }
.notice { padding: 10px 12px; border-radius: 8px; background: rgba(245,185,66,.12); color: #f5d48a; }
.notice.error { background: rgba(255,93,108,.12); color: #ffb4bc; }
.empty { color: var(--muted); padding: 12px 0; }
.login-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 0 0 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; color: #b7c9d8; font-size: 13px; }
input, textarea, select { color: #d9e7f2; background: #081828; border: 1px solid #1a354d; border-radius: 6px; padding: 9px 11px; }
textarea { min-height: 64px; width: 100%; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.row-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.industry { display: grid; grid-template-columns: 28px 140px 160px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.industry input[type="text"] { width: 100%; }
.badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(40,184,230,.12); color: var(--cyan); }
.badge.failed, .badge.interrupted { background: rgba(255,93,108,.12); color: #ff8b96; }
.badge.completed { background: rgba(45,212,168,.12); color: var(--ok); }
.badge.running { background: rgba(245,185,66,.12); color: var(--warn); }
.badge.remake-high { background: rgba(45,212,168,.14); color: var(--ok); }
.badge.remake-mid { background: rgba(40,184,230,.12); color: var(--cyan); }
.badge.remake-low { background: rgba(154,175,192,.12); color: #9aafc0; }
.tip-line { color: #8fb3c9; font-size: 12px; line-height: 1.5; margin-top: 3px; }
.tip-score { font-size: 12px; color: #d5e4f0; margin-top: 3px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.tip-card { border: 1px solid rgba(40,184,230,.18); border-radius: 10px; padding: 12px 14px; background: rgba(18,54,80,.35); }
.tip-card.tip-high { border-color: rgba(45,212,168,.45); }
.tip-card h4 { margin: 8px 0 6px; font-size: 14px; line-height: 1.5; }
.tip-card h4 a { color: inherit; }
.tip-card p { margin: 0 0 4px; font-size: 12px; line-height: 1.55; }
.tip-head { display: flex; align-items: center; gap: 8px; }
.tip-head .tip-score { margin: 0; }
.tip-hook { color: #9aafc0; }
.tip-note { color: #d5e4f0; }
/* ---------- 周期分析面板 ---------- */
.analysis-panel { padding: 18px 20px; }
.analysis-panel .panel-head h3 { font-size: 18px; }
.ana-periods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.ana-period { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; text-align: left; }
.ana-period span { font-size: 12px; color: #9ab3c6; }
.ana-period strong { font-size: 20px; color: #dff8ff; line-height: 1.2; }
.ana-period i { font-size: 11px; color: #6f8ba2; font-style: normal; }
.ana-period.active { border-color: rgba(40,184,230,.7); background: #123650; }
.ana-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.ana-kpis > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(18,54,80,.28); }
.ana-kpis span { display: block; font-size: 12px; color: var(--muted); }
.ana-kpis strong { display: block; margin-top: 4px; font-size: 20px; color: #e7f8ff; }
.ana-editorial { border-left: 3px solid var(--cyan); padding: 8px 14px; margin-bottom: 16px; background: rgba(40,184,230,.07); }
.ana-editorial strong { font-size: 12px; color: var(--cyan); letter-spacing: .06em; }
.ana-editorial p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: #d5e4f0; white-space: pre-wrap; }
.ana-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.ana-grid h4 { margin: 0 0 10px; font-size: 13px; color: #9ab3c6; font-weight: 600; letter-spacing: .04em; }
.ana-grid h4:not(:first-child) { margin-top: 18px; }
.ana-items { display: flex; flex-direction: column; gap: 8px; }
.ana-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(8,24,40,.4); }
.ana-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.65; color: #c5d7e6; }
.ana-tag { font-size: 12px; font-weight: 700; color: var(--cyan); }
.ana-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ana-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c5d7e6; }
.ana-list li > span:first-child { width: 18px; color: var(--muted); }
.ana-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ana-list li b { color: var(--ok); font-variant-numeric: tabular-nums; }
.ana-list li i { font-style: normal; color: var(--muted); }
.ana-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.65; }
.ana-foot p { margin: 0 0 6px; }
.ana-foot strong { color: #9ab3c6; margin-right: 8px; }
.ana-foot details { margin-top: 6px; }
.ana-foot summary { cursor: pointer; color: #9ab3c6; }
.ana-foot ul { margin: 8px 0 0; padding-left: 18px; }
.ana-foot li { margin-bottom: 4px; }
.desc.why { margin-top: 4px; color: #7fa5bd; font-size: 12px; line-height: 1.5; }
.signal-list { margin: 4px 0 8px; padding-left: 16px; }
.signal-list li { margin-bottom: 5px; font-size: 12px; line-height: 1.55; color: #c5d7e6; }
.signal-list b { color: var(--cyan); margin-right: 4px; }
@media (max-width: 1100px) {
  .kpis, .grid, .row-form, .industry, .brief-box, .brief-box ol, .cards { grid-template-columns: 1fr; }
  .ana-grid, .ana-kpis, .ana-periods { grid-template-columns: 1fr 1fr; }
  .period-bar { position: static; }
  .topbar { height: auto; flex-wrap: wrap; padding: 12px; }
  .product-nav { align-self: auto; }
  .header-actions { flex-wrap: wrap; }
  td.lang { white-space: normal; }
}

/* ===== 统一主题：深色青绿系 · 覆盖硬编码的旧青蓝按钮/品牌色 ===== */
.topbar { background: rgba(6, 8, 12, .82); }
button { background: #121826; color: #c5d7e6; }
button:hover:not(:disabled) { border-color: rgba(94, 234, 212, .55); color: #e8eefc; }
button.primary { border-color: #2fbf9d; background: linear-gradient(135deg, #5eead4, #2fbf9d); color: #06231c; font-weight: 700; }
.tabs button.active { color: #e8fbf5; border-color: rgba(94, 234, 212, .7); background: #12352f; }
.product-nav a.active { color: #e8fbf5; border-bottom-color: var(--cyan); background: linear-gradient(0deg, rgba(94, 234, 212, .12), transparent 72%); }
.period-global-switch button.active { color: #06231c; border-color: transparent; background: linear-gradient(135deg, #5eead4, #2fbf9d); font-weight: 700; }
.brand-mark { background: linear-gradient(145deg, #5eead4, #2fbf9d); color: #06231c; }
a { color: var(--cyan); }
