:root {
  --bg: #0b0d0c;
  --bg-2: #101311;
  --panel: #111412;
  --panel-strong: #151916;
  --line: #262b27;
  --line-strong: #3a433d;
  --text: #eceee9;
  --muted: #a3aaa4;
  --faint: #6f7771;
  --brand: #65e6ae;
  --cyan: #8bc5ff;
  --orange: #e5b06d;
  --danger: #ed7d7d;
  --shadow: none;
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", serif;
}

body.light {
  --bg: #f1f1ed;
  --bg-2: #e9eae5;
  --panel: #f7f7f3;
  --panel-strong: #fff;
  --line: #d3d6cf;
  --line-strong: #aeb7ae;
  --text: #151815;
  --muted: #515851;
  --faint: #7c847d;
}

* { scrollbar-color: var(--line-strong) transparent; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
}

.backdrop-video { display: none; }
body::before { display: none; }
.hero-kicker, .hero h2, .hero p, .hero .liquid-button, .story-card { animation: none; opacity: 1; transform: none; }
button, input { letter-spacing: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 1px solid var(--brand); outline-offset: 2px; }

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  overflow-y: auto;
}

.brand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  padding: 0 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--brand);
  border-radius: 2px;
  color: #07100b;
  background: var(--brand);
  font-weight: 900;
}

.brand strong { display: block; font-size: 18px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 2px; color: var(--faint); font-size: 9px; letter-spacing: .24em; }

.nav-group { display: grid; gap: 2px; margin: 0 0 26px; }
.nav-group > p { margin: 0 8px 8px; color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.nav-group button, .nav-item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  text-align: left;
}
.nav-group button:hover { color: var(--text); background: rgba(255,255,255,.025); }
.nav-group button.active { color: var(--text); border-left-color: var(--brand); background: rgba(101,230,174,.055); }
.nav-group > button[data-view="daily"] { color: var(--orange); background: transparent; border-color: transparent; font-weight: 700; }
.nav-group > button[data-view="daily"].active { border-left-color: var(--orange); background: rgba(229,176,109,.06); }
.nav-group button em { margin-left: auto; padding: 0; color: var(--faint); background: transparent; font-size: 11px; font-style: normal; }
.nav-icon { width: 16px; color: var(--faint); text-align: center; font-family: ui-monospace, Consolas, monospace; }
.nav-group button.active .nav-icon { color: var(--brand); }
.nav-scroll { max-height: none; overflow: visible; }
.nav-bottom { padding-top: 18px; border-top: 1px solid var(--line); }

.main { min-width: 0; padding: 0 34px 48px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: 1380px;
  height: 68px;
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 38px minmax(260px, 660px) 1fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
}

.search-form { height: 38px; display: flex; border: 1px solid var(--line); border-radius: 2px; background: transparent; overflow: hidden; }
.search-form input { flex: 1; min-width: 0; padding: 0 14px; border: 0; color: var(--text); background: transparent; }
.search-form input::placeholder { color: var(--faint); }
.search-button, .icon-button, .pill-button, .liquid-button, .text-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.search-button { width: 42px; border: 0; border-left: 1px solid var(--line); color: var(--brand); }
.icon-button { width: 38px; height: 38px; }
.pill-button, .liquid-button, .text-button { padding: 0 14px; }
.icon-button:hover, .pill-button:hover, .liquid-button:hover, .text-button:hover { color: var(--text); border-color: var(--line-strong); transform: none; }
.top-actions { display: flex; justify-content: flex-end; gap: 8px; }

.hero {
  max-width: 1380px;
  min-height: 210px;
  margin: 0 auto;
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker { color: var(--brand); font-size: 11px; letter-spacing: .16em; }
.hero-kicker i { width: 6px; height: 6px; box-shadow: none; }
.hero h2 { margin: 12px 0 8px; font-family: var(--font-serif); font-size: clamp(42px, 5vw, 70px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.hero p { color: var(--muted); font-size: 14px; }
.hero .liquid-button { margin: 0 0 2px; color: var(--text); }

.stat-row {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.stat-card {
  min-height: 82px;
  padding: 17px 22px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
.stat-card:last-child { border-right: 0; }
.stat-icon { width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 0; color: var(--brand); background: transparent; }
.stat-card div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-card strong { color: var(--text); font-size: 25px; font-weight: 750; }
.stat-card div > span { grid-column: 1 / -1; color: var(--faint); font-size: 11px; }

.toolbar {
  max-width: 1380px;
  min-height: 52px;
  margin: 0 auto 22px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.filter-tabs, .view-controls { display: flex; align-items: center; gap: 4px; }
.filter-tabs button, .view-controls button { padding: 7px 11px; border: 0; border-radius: 2px; color: var(--faint); background: transparent; }
.filter-tabs button.active, .view-controls button.active, .filter-tabs button:hover, .view-controls button:hover { color: var(--text); background: var(--panel-strong); }

.content-shell { max-width: 1380px; margin: 0 auto; padding: 0; }
.page-head { margin: 0 0 28px; padding: 24px 0 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.page-head h1, .daily-title h1, .guide-page h1, .profile-page h1 { margin: 0 0 6px; font-family: var(--font-serif); font-size: clamp(34px, 4vw, 54px); font-weight: 600; letter-spacing: -.035em; }
.page-head p, .daily-title p { color: var(--muted); font-size: 13px; }

.timeline-wrap { display: grid; }
.timeline-day { display: block; margin: 0 0 34px; }
.date-stamp { min-height: 38px; display: flex; align-items: baseline; gap: 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line-strong); }
.date-stamp strong { font-size: 13px; letter-spacing: .03em; }
.date-stamp span { color: var(--faint); font-size: 11px; }
.timeline-list { display: grid; }
.timeline-list::before { display: none; }

.story-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 184px;
  gap: 24px;
  padding: 22px 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.story-card:hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.018), transparent); transform: none; }
.story-time { position: static; display: block; padding-top: 2px; text-align: left; }
.story-time strong { display: block; color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 20px; font-weight: 650; }
.story-time span { color: var(--faint); font-size: 11px; }
.story-time i { display: none; }
.story-meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--faint); font-size: 11px; }
.story-meta span { padding: 0; border: 0; background: transparent; }
.story-meta span:first-child { color: var(--brand); }
.story-body h2 { max-width: 900px; margin: 9px 0 10px; font-family: var(--font-sans); font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.32; letter-spacing: -.025em; }
.story-body p { max-width: 920px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.78; }
.tag-row, .impact-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag-row span, .impact-row span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 2px; color: var(--faint); background: transparent; font-size: 10px; }
.story-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; align-content: start; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.story-side div { min-height: 54px; display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.story-side b { color: var(--text); font-size: 17px; }
.story-side span { color: var(--faint); font-size: 9px; }

.selected-grid { display: grid; gap: 0; }
.selected-grid .story-card { border-radius: 0; }
.hotspot-grid, .source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hot-card, .source-card { border: 0; border-radius: 0; background: var(--bg); box-shadow: none; backdrop-filter: none; }
.hot-card { padding: 20px; }
.hot-card h2 { margin: 0 0 12px; font-size: 16px; }
.hot-row { padding: 12px 0; border-top: 1px solid var(--line); }
.hot-row span { color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.hot-row strong { font-size: 13px; line-height: 1.5; }
.hot-row p { color: var(--faint); font-size: 11px; }

.market-filters { margin: 0 0 22px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.market-filters button { border-radius: 2px; background: transparent; }
.market-filters button.active { border-color: var(--line-strong); color: var(--text); background: var(--panel-strong); }
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
.market-feed { border-left: 0; }
.market-item { grid-template-columns: 116px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.market-item h2 { font-size: 21px; }
.market-time time { font-family: ui-monospace, Consolas, monospace; }
.market-source { color: var(--cyan); }
.market-signal { border-radius: 2px; }
.market-panel { gap: 0; border-top: 1px solid var(--line-strong); }
.quote-card { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }

.cluster-list { display: grid; gap: 0; }
.cluster-card { grid-template-columns: minmax(0, 1fr) 130px; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.cluster-card h2 { font-size: 22px; }
.cluster-card aside { padding-left: 18px; border-left: 1px solid var(--line); color: var(--brand); }

.daily-page { display: grid; grid-template-columns: minmax(220px, .32fr) minmax(0, 1fr); column-gap: 48px; }
.daily-title { position: sticky; top: 92px; align-self: start; padding: 24px 0; border-top: 2px solid var(--orange); }
.daily-title > span { color: var(--orange); font-size: 10px; letter-spacing: .2em; }
.daily-title h1 { font-size: 44px; }
.daily-section { grid-column: 2; padding: 22px 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; box-shadow: none; }
.daily-section h2 { font-size: 15px; }
.daily-section article { padding: 16px 0; border-top: 1px solid var(--line); }
.daily-section article strong { font-size: 15px; }
.daily-section p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.guide-page, .profile-page { padding: 24px 0; }
.guide-page article, .profile-card { padding: 22px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.source-card { min-height: 110px; padding: 18px; }
.empty-panel, .skeleton-panel { min-height: 320px; border: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.view-market .empty-panel { min-height: 210px; align-items: flex-start; padding: 46px 0; border: 0; border-top: 1px solid var(--line); text-align: left; }
.view-market .empty-panel > span { display: none; }
.footer { max-width: 1380px; margin: 60px auto 0; padding: 20px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }

body:not([data-current-view="timeline"]) .stat-row,
body:not([data-current-view="timeline"]) .toolbar { display: none; }
body:not([data-current-view="timeline"]) .content-shell { padding-top: 22px; }

.auth-modal { background: rgba(0,0,0,.72); }
.auth-card { border: 1px solid var(--line-strong); border-radius: 2px; background: var(--panel-strong); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.toast { border-radius: 2px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .main { padding-inline: 24px; }
  .story-card { grid-template-columns: 80px minmax(0, 1fr); }
  .story-side { grid-column: 2; grid-template-columns: repeat(4, 1fr); }
  .market-layout { grid-template-columns: 1fr; }
  .market-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: auto; height: auto; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin-bottom: 16px; }
  .nav-group { margin-bottom: 12px; }
  .nav-scroll, .nav-bottom { display: none; }
  .nav-group:first-of-type { display: flex; overflow-x: auto; }
  .nav-group:first-of-type p { display: none; }
  .nav-group:first-of-type button { width: max-content; flex: 0 0 auto; border-left: 0; border-bottom: 2px solid transparent; }
  .nav-group:first-of-type button.active { border-bottom-color: var(--brand); }
  .main { padding: 0 16px 36px; }
  .topbar { grid-template-columns: 36px 1fr; height: auto; min-height: 62px; }
  .top-actions { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 8px; }
  .top-actions { flex-wrap: wrap; }
  .top-actions #auth-button { width: auto; min-width: 84px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 30px 0 24px; }
  .hero h2 { font-size: 42px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .toolbar { align-items: flex-start; gap: 10px; }
  .filter-tabs { overflow-x: auto; }
  .story-card { grid-template-columns: 1fr; gap: 12px; }
  .story-time { display: flex; align-items: baseline; gap: 8px; }
  .story-time strong { font-size: 16px; }
  .story-side { grid-column: 1; grid-template-columns: repeat(4, 1fr); }
  .market-item { grid-template-columns: 1fr; }
  .market-time { grid-template-columns: repeat(2, 1fr); }
  .market-panel { grid-template-columns: 1fr; }
  .daily-page { grid-template-columns: 1fr; }
  .daily-title { position: static; }
  .daily-section { grid-column: 1; }
  .cluster-card { grid-template-columns: 1fr; }
  .cluster-card aside { padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: left; }
}
