/* ═══════════════════════════════════════════════════
   DESIGN SYSTEM — Premium Editorial · Naval Gold
═══════════════════════════════════════════════════ */
:root {
  --navy-900: #060E1A;
  --navy-800: #0B1828;
  --navy-700: #0F2238;
  --navy-600: #162D4A;
  --navy-500: #1E3D5E;
  --gold-500: #C9974A;
  --gold-400: #D9AE6A;
  --gold-300: #EDD49A;
  --gold-100: #FBF5E8;
  --red-600: #A8192E;
  --red-500: #C1203A;
  --red-100: #FDF0F2;
  --ink-900: #0D1319;
  --ink-700: #1F2D3A;
  --ink-500: #3D5166;
  --ink-300: #7A90A2;
  --ink-100: #C2CDD6;
  --surface-0: #FAFBFC;
  --surface-1: #FFFFFF;
  --surface-2: #F3F6F9;
  --surface-3: #E8EDF3;
  --border: #DFE6EE;
  --border-strong: #C8D3DD;

  --shadow-xs: 0 1px 3px rgba(15,34,56,0.06);
  --shadow-sm: 0 2px 8px rgba(15,34,56,0.07), 0 1px 2px rgba(15,34,56,0.04);
  --shadow-md: 0 8px 24px rgba(15,34,56,0.09), 0 2px 6px rgba(15,34,56,0.05);
  --shadow-lg: 0 20px 48px rgba(15,34,56,0.14), 0 4px 12px rgba(15,34,56,0.07);
  --shadow-gold: 0 4px 20px rgba(201,151,74,0.25);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --font-display: 'Playfair Display', 'Noto Serif SC', serif;
  --font-serif: 'Noto Serif SC', 'DM Serif Display', serif;
  --font-sans: 'DM Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body.page-home header.site-header,
body.page-list header.site-header,
body.page-article header.site-header,
body.page-home footer.site-footer,
body.page-list footer.site-footer,
body.page-article footer.site-footer {
  display: none !important;
}

.ha-ad-module {
  padding: 18px 24px;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ha-list-hero .hero-media {
  min-height: 300px;
  grid-template-columns: 1fr;
}

.ha-list-hero .hero-content {
  padding: 34px;
}

.ha-list-hero .hero-content h1 {
  font-size: 40px;
}

.ha-pagination {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}

.ha-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.ha-pagination a,
.ha-pagination span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.ha-pagination .current {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}

.ha-article-shell {
  max-width: 1320px;
  margin: 28px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ha-article-main {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ha-article-hero {
  background:
    linear-gradient(90deg, rgba(6,14,26,0.94), rgba(6,14,26,0.76)),
    linear-gradient(135deg, #09213d 0%, #162d4a 56%, #6e2532 100%);
  padding: 42px 44px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ha-article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  pointer-events: none;
}

.ha-article-hero > * {
  position: relative;
  z-index: 1;
}

.ha-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.54);
}

.ha-breadcrumb a {
  color: var(--gold-300);
}

.ha-article-hero h1 {
  max-width: 900px;
  color: rgba(255,255,255,0.96);
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.ha-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.ha-entry-content {
  padding: 36px 44px;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.9;
}

.ha-entry-content > * + * {
  margin-top: 1.1em;
}

.ha-entry-content h2,
.ha-entry-content h3 {
  margin-top: 1.8em;
  color: var(--ink-900);
  font-family: var(--font-serif);
  line-height: 1.35;
}

.ha-entry-content h2 {
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ha-entry-content h3 {
  font-size: 22px;
}

.ha-entry-content a {
  color: var(--red-600);
  border-bottom: 1px solid rgba(193,32,58,0.25);
}

.ha-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.ha-post-tools,
.ha-related {
  padding: 24px 44px;
  border-top: 1px solid var(--border);
}

.ha-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ha-tag-list a,
.ha-share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
}

.ha-nav-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.ha-nav-posts a {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.ha-nav-posts span {
  display: block;
  font-size: 11px;
  color: var(--ink-300);
  margin-bottom: 6px;
}

.ha-nav-posts strong {
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .ha-article-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ha-article-shell,
  .page-layout {
    padding: 0 16px;
  }
  .ha-article-hero,
  .ha-entry-content,
  .ha-post-tools,
  .ha-related {
    padding-left: 22px;
    padding-right: 22px;
  }
  .ha-article-hero h1 {
    font-size: 30px;
  }
  .ha-nav-posts {
    grid-template-columns: 1fr;
  }
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Layout ── */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

/* ── Accessibility / Motion ── */
:focus-visible { outline: 3px solid rgba(15, 34, 56, 0.18); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ── Subtle separators ── */
.hairline { height: 1px; background: var(--border); }

/* ═══════════════════════════════════════════════════
   MOBILE HEADER / DRAWER
═══════════════════════════════════════════════════ */
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--ink-700);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 18px; height: 18px; display: block; }

.m-actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,14,26,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 500;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(380px, 92vw);
  background: var(--surface-1);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 220ms ease;
  visibility: hidden;
  z-index: 520;
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ink-900);
}
.drawer-title .tiny {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-300);
}
.drawer-body { padding: 12px 12px 16px; overflow: auto; }
.drawer-search { padding: 10px 10px 14px; }
.drawer-search .search-wrap { width: 100%; }
.drawer-nav {
  display: grid;
  gap: 6px;
  padding: 0 10px 14px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--ink-700);
  font-weight: 700;
}
.drawer-nav a:hover { background: var(--surface-2); border-color: var(--border-strong); }
.drawer-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.drawer-foot .btn { flex: 1; justify-content: center; }

body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: translateX(0); visibility: visible; }

/* ═══════════════════════════════════════════════════
   TOP ANNOUNCEMENT BAR
═══════════════════════════════════════════════════ */
.topbar {
  background: var(--navy-900);
  padding: 7px 0;
  border-bottom: 1px solid rgba(201,151,74,0.15);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.topbar-ticker .live-dot {
  width: 6px; height: 6px;
  background: #FF4D4D;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.topbar-ticker .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  white-space: nowrap;
}
.topbar-ticker .text {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.topbar-right .date {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}
.topbar-right a {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.topbar-right a:hover { color: var(--gold-300); }

/* ═══════════════════════════════════════════════════
   MAIN HEADER
═══════════════════════════════════════════════════ */
.header {
  background: var(--surface-1);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--navy-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-900) 100%);
}
.logo-mark::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.logo-mark span {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 16px;
  color: white;
  letter-spacing: -0.5px;
}
.logo-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-mark.is-image::before,
.logo-mark.is-image::after { content: none; }
.logo-mark.is-image {
  width: 58px;
  background: transparent;
  border-radius: 0;
}
.logo-mark.cgy-wide-logo {
  width: 56px;
  height: 55px;
  background: transparent;
  border-radius: 0;
}
.logo-mark.cgy-wide-logo img {
  object-fit: contain;
}
.logo .logo-wordmark.cgy-hide-wordmark {
  display: none;
}
.logo .logo-wordmark.cgy-logo-text-only .brand {
  font-size: 22px;
}
.logo .logo-wordmark.cgy-logo-text-only .sub {
  display: none;
}
.footer-brand .f-logo-text.cgy-hide-wordmark {
  display: none;
}
.logo-wordmark { line-height: 1; }
.logo-wordmark .brand {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.5px;
  display: block;
}
.logo-wordmark .sub {
  font-size: 10px;
  color: var(--ink-300);
  letter-spacing: 0.08em;
  font-weight: 400;
  margin-top: 1px;
}

/* Nav */
.nav {
  display: flex;
  align-items: stretch;
  height: 72px;
  margin-left: 4px;
  flex: 1;
}
.nav a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  height: 100%;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav a:hover { color: var(--ink-900); }
.nav a.active {
  color: var(--red-500);
  border-bottom-color: var(--red-500);
  font-weight: 600;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red-500);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  line-height: 1.4;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap:focus-within {
  border-color: var(--ink-300);
  box-shadow: 0 0 0 3px rgba(15,34,56,0.06);
}
.search-wrap svg { flex-shrink: 0; }
.search-wrap input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  width: 170px;
  color: var(--ink-700);
  outline: none;
}
.search-wrap input::placeholder { color: var(--ink-300); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  padding: 7px 20px;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--ink-700);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink-700);
  background: var(--surface-2);
}
.btn-primary {
  background: var(--red-500);
  color: white;
  border-color: var(--red-500);
  box-shadow: 0 1px 3px rgba(193,32,58,0.3);
}
.btn-primary:hover {
  background: var(--red-600);
  box-shadow: 0 3px 10px rgba(193,32,58,0.35);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   MARKET PULSE TICKER
═══════════════════════════════════════════════════ */
.pulse-bar {
  background: var(--navy-800);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pulse-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: stretch;
}
.pulse-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 9px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 20px;
  flex-shrink: 0;
}
.pulse-label span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.pulse-items {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pulse-items::-webkit-scrollbar { display: none; }
.pulse-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.pulse-city {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
.pulse-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.pb-bear { background: rgba(215,50,60,0.2); color: #FF8A8A; }
.pb-bull { background: rgba(40,168,80,0.2); color: #72E08E; }
.pb-hold { background: rgba(255,180,50,0.2); color: #FFD080; }

/* ═══════════════════════════════════════════════════
   CITY RIBBON
═══════════════════════════════════════════════════ */
.city-ribbon {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.city-ribbon-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.city-ribbon-inner::-webkit-scrollbar { display: none; }
.ctab {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: all 0.18s;
  font-family: inherit;
}
.ctab:hover { color: var(--ink-900); background: var(--surface-2); }
.ctab.active {
  color: var(--red-500);
  border-bottom-color: var(--red-500);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   MAIN CONTENT LAYOUT
═══════════════════════════════════════════════════ */
.page-layout {
  max-width: 1320px;
  margin: 28px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.main-col > * + * { margin-top: 24px; }

/* ═══════════════════════════════════════════════════
   HERO FEATURE (Upgraded)
═══════════════════════════════════════════════════ */
.hero-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 460px;
  border: 1px solid rgba(15,34,56,0.10);
  background: var(--surface-1);
}
.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(250,251,252,1) 0%, rgba(250,251,252,0.85) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-topline-left { display: flex; align-items: center; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-1);
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1;
}
.pill strong { color: var(--ink-900); font-weight: 700; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 4px rgba(193,32,58,0.10); }
.hero-topline-right { display: flex; align-items: center; gap: 10px; }
.seg {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--surface-1);
}
.seg button {
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  white-space: nowrap;
}
.seg button.active { background: var(--navy-900); color: rgba(255,255,255,0.92); }

.hero-stage {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 410px;
}
.hero-media {
  position: relative;
  background: #0B1828;
  overflow: hidden;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(6,14,26,0.92) 0%, rgba(6,14,26,0.78) 44%, rgba(6,14,26,0.60) 100%),
    linear-gradient(135deg, #09213d 0%, #162d4a 54%, #6e2532 100%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.03);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  padding: 34px 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,151,74,0.15);
  border: 1px solid rgba(201,151,74,0.3);
  color: var(--gold-300);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  width: fit-content;
}
.hero-eyebrow .dot {
  width: 5px; height: 5px;
  background: var(--gold-400);
  border-radius: 50%;
}
.hero-content h1,
.hero-content h2 {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 800;
  color: rgba(255,255,255,0.96);
  line-height: 1.16;
  letter-spacing: 0;
  max-width: 640px;
  text-shadow: 0 10px 26px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.35);
}
.hero-content h1 em,
.hero-content h2 em {
  font-style: normal;
  color: var(--gold-300);
}
.hero-sub {
  max-width: 620px;
  color: rgba(255,255,255,0.66);
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.hero-date { font-size: 11px; color: rgba(255,255,255,0.38); letter-spacing: 0.04em; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  border: none;
  transition: all 0.2s;
}
.hero-cta:hover {
  background: var(--gold-400);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.hero-secondary:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.hero-search {
  display: flex;
  align-items: center;
  width: min(100%, 560px);
  margin-top: 8px;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.hero-search svg { flex-shrink: 0; margin-left: 8px; color: var(--ink-300); }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: none;
  background: transparent;
  padding: 0 10px;
  color: var(--ink-900);
  font-size: 14px;
  outline: none;
}
.hero-search button {
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  background: var(--red-500);
  color: white;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: auto;
}
.hero-metric {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 12px;
  min-width: 0;
}
.hero-metric .hm-label { font-size: 11px; color: rgba(255,255,255,0.52); margin-bottom: 5px; }
.hero-metric .hm-val { font-size: 22px; font-weight: 900; color: white; line-height: 1; }
.hero-metric .hm-val.down { color: #FF8A8A; }
.hero-metric .hm-val.up { color: #8BE3A0; }
.hero-metric .hm-sub { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.44); }
.hero-visual {
  position: relative;
  z-index: 2;
  padding: 26px 24px 26px 0;
  display: flex;
  align-items: stretch;
}
.market-board {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  backdrop-filter: blur(10px);
}
.board-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.56);
}
.board-head strong { display: block; color: white; font-size: 13px; letter-spacing: 0; }
.market-row {
  display: grid;
  grid-template-columns: 74px 1fr 46px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}
.market-row:hover { color: white; }
.market-row .city { font-weight: 800; color: white; }
.market-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}
.market-fill { height: 100%; border-radius: inherit; background: var(--gold-400); }
.market-fill.down { background: #E03350; }
.market-fill.up { background: #2DB55D; }
.market-score { text-align: right; font-weight: 800; }
.board-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.58);
}
.hero-rail {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.rail-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rail-head .title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}
.rail-head .meta { font-size: 12px; color: var(--ink-300); }

.rail-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.kpi {
  background: var(--surface-1);
  padding: 14px 14px;
  min-height: 86px;
}
.kpi .k-label { font-size: 11px; color: var(--ink-300); margin-bottom: 6px; }
.kpi .k-val { font-size: 22px; font-weight: 900; color: var(--ink-900); line-height: 1; }
.kpi .k-sub { margin-top: 6px; font-size: 11px; color: var(--ink-300); display: flex; align-items: center; gap: 6px; }
.kpi .delta { font-weight: 800; }
.delta.up { color: #1A7A3A; }
.delta.down { color: #C0182C; }

/* ── Rail Sentiment (Community Index) ── */
.rail-sent {
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.rail-sent .sentiment-label { margin-bottom: 10px; }
.rail-sent .sentiment-label a {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-300);
  transition: color 0.2s;
}
.rail-sent .sentiment-label a:hover { color: var(--red-500); }
.rail-sent .sentiment-strip {
  padding: 0;
  background: transparent;
  border-bottom: none;
}
.rail-sent-meta {
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-300);
  line-height: 1.5;
}
.rail-sent-callout {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.rail-sent-callout strong { color: var(--ink-900); font-weight: 800; }

.rail-list {
  display: flex;
  flex-direction: column;
}
.rail-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.rail-item:last-child { border-bottom: none; }
.rail-item:hover { background: var(--surface-2); }
.rail-item .h4 { font-size: 13px; font-weight: 700; color: var(--ink-700); line-height: 1.45; }
.rail-item:hover .h4 { color: var(--red-500); }

.item-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 3px;
  width: fit-content;
}
.tag-policy { background: #EFF4FF; color: #2952A3; }
.tag-market { background: var(--gold-100); color: #8A5F1C; }
.tag-hot { background: var(--red-100); color: var(--red-600); }
.tag-data { background: #F0F9F4; color: #1A6B3A; }

/* Hero responsiveness */
@media (max-width: 980px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-media { min-height: 360px; grid-template-columns: 1fr; }
  .hero-visual { padding: 0 24px 24px; }
  .hero-metrics { margin-top: 10px; }
}

/* ═══════════════════════════════════════════════════
   SECTION MODULE (shared card)
═══════════════════════════════════════════════════ */
.module {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.module-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-1);
}
.module-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.module-title .bar {
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--red-500));
  flex-shrink: 0;
}
.module-title h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.02em;
}
.module-more {
  font-size: 12px;
  color: var(--ink-300);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s;
}
.module-more:hover { color: var(--red-500); }

/* ═══════════════════════════════════════════════════
   INSIGHT LIST (洞察报告)
═══════════════════════════════════════════════════ */
.insight-list {}
.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.insight-item:last-child { border-bottom: none; }
.insight-item:hover { background: var(--surface-2); }
.insight-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  font-style: italic;
  color: var(--border);
  min-width: 42px;
  line-height: 1;
  margin-top: -3px;
  transition: color 0.15s;
}
.insight-num.is-hot { color: rgba(193,32,58,0.18); }
.insight-item:hover .insight-num { color: rgba(193,32,58,0.3); }
.insight-body { flex: 1; }
.insight-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: 6px;
}
.insight-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.insight-item:hover .insight-title { color: var(--red-600); }
.insight-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-300);
}
.insight-meta .views { display: flex; align-items: center; gap: 3px; }

/* ═══════════════════════════════════════════════════
   FORUM MODULE
═══════════════════════════════════════════════════ */
.forum-header {
  background: var(--navy-800);
  padding: 16px 24px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forum-header .module-title .bar {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
}
.forum-header .module-title h3 { color: white; }
.forum-header .module-more { color: rgba(255,255,255,0.4); }
.forum-header .module-more:hover { color: var(--gold-300); }

.sentiment-strip {
  background: var(--surface-2);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.sentiment-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sentiment-bar {
  height: 6px;
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
  gap: 2px;
}
.sb-bear { background: #E03350; flex: 32; border-radius: var(--radius-full) 0 0 var(--radius-full); }
.sb-bull { background: #2DB55D; flex: 18; }
.sb-hold { background: #F0A930; flex: 50; border-radius: 0 var(--radius-full) var(--radius-full) 0; }
.sentiment-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}
.sl-bear { color: #E03350; }
.sl-bull { color: #2DB55D; }
.sl-hold { color: #D4921A; }

.post-item {
  display: block;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--surface-2); }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}
.ptag-city {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 3px;
  background: var(--navy-700);
  color: rgba(255,255,255,0.85);
}
.ptag-senti {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 3px;
}
.ptag-bear { background: #FFF0F0; color: #C0182C; }
.ptag-hold { background: #FFFAED; color: #B07A0A; }
.ptag-pin {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 3px;
  background: rgba(201,151,74,0.12);
  color: var(--gold-500);
}
.post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.post-item:hover .post-title { color: var(--red-500); }
.post-excerpt {
  font-size: 12px;
  color: var(--ink-300);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-100);
}
.post-foot .author { color: var(--ink-300); }
.post-foot .stats { display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════════
   COMMUNITY IMAGE POSTS
═══════════════════════════════════════════════════ */
.photo-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.photo-post-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.photo-post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}
.photo-post-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.photo-post-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photo-post-body {
  padding: 12px 14px 14px;
}
.photo-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-300);
}
.photo-post-city {
  color: var(--red-500);
}
.photo-post-title {
  min-height: 42px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.photo-post-card:hover .photo-post-title {
  color: var(--red-600);
}
.photo-post-excerpt {
  min-height: 36px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-300);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════
   CITY FORUM GRID
═══════════════════════════════════════════════════ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
}
.city-tile {
  background: var(--surface-1);
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.city-tile:hover {
  background: var(--navy-900);
  z-index: 1;
}
.city-tile:hover .ct-name { color: white; }
.city-tile:hover .ct-count { color: rgba(255,255,255,0.4); }
.ct-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  transition: color 0.18s;
}
.ct-mood {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 3px;
}
.ct-m-bear { color: #C0182C; background: #FFF0F0; }
.ct-m-hold { color: #B07A0A; background: #FFFAED; }
.ct-m-bull { color: #1A7A3A; background: #EAF7EE; }
.ct-count { font-size: 10px; color: var(--ink-100); transition: color 0.18s; }

.city-grid-footer {
  padding: 16px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.btn-outline-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  background: transparent;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-outline-full:hover {
  border-color: var(--red-500);
  color: var(--red-500);
  background: var(--red-100);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.sidebar > * + * { margin-top: 20px; }
.sidebar > .side-panel:last-child { padding-bottom: 12px; }

/* AI Card */
.ai-card {
  background: var(--navy-900);
  background-image:
    radial-gradient(ellipse at 100% 0%, rgba(201,151,74,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(193,32,58,0.08) 0%, transparent 55%),
    linear-gradient(160deg, #0B1828 0%, #060E1A 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ai-card-head {
  padding: 20px 22px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-icon {
  width: 32px; height: 32px;
  background: rgba(201,151,74,0.15);
  border: 1px solid rgba(201,151,74,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.ai-card-head .ai-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.ai-card-head .ai-sublabel {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 1px;
}
.ai-body {
  padding: 16px 22px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-body p { margin: 0; }
.ai-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.ai-gauge {
  padding: 16px 12px;
  text-align: center;
  background: var(--navy-900);
}
.ai-gauge .g-val {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-sans);
  line-height: 1;
  margin-bottom: 4px;
}
.ai-gauge .g-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.gv-bear { color: #FF7B7B; }
.gv-hold { color: #FFD070; }
.gv-bull { color: #72E08E; }

/* Side panels */
.side-panel {
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.side-panel-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.side-panel-head .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 7px;
}
.side-panel-head .more {
  font-size: 11px;
  color: var(--ink-300);
  transition: color 0.2s;
}
.side-panel-head .more:hover { color: var(--red-500); }

/* BBS latest publish */
.bbs-latest-wrap {
  padding: 10px 16px 14px;
  background: #FFFDF8;
}
.contrib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.contrib-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(28,18,7,.72);
}
.contrib-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contrib-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.contrib-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C4A45E 0%, #8A6427 100%);
  color: #120C06;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(160,120,48,.16);
}
.contrib-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.contrib-body {
  min-width: 0;
  flex: 1;
}
.contrib-name {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #1C1207;
  margin-bottom: 3px;
}
.contrib-name a { color: inherit; }
.contrib-meta {
  font-size: 11.5px;
  line-height: 1.2;
  color: rgba(28,18,7,.62);
  margin-bottom: 4px;
}
.contrib-post {
  font-size: 12.5px;
  line-height: 1.58;
  color: rgba(28,18,7,.84);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.contrib-post a { color: inherit; }
.contrib-post a:hover { color: var(--red-600); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.stat-cell {
  background: var(--surface-1);
  padding: 16px 16px;
}
.stat-cell .s-label { font-size: 11px; color: var(--ink-300); margin-bottom: 4px; }
.stat-cell .s-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
  font-family: var(--font-sans);
}
.stat-cell .s-val.accent-red { color: var(--red-500); }
.stat-cell .s-val.accent-gold { color: var(--gold-500); }

/* Hot posts */
.hot-post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.hot-post-item:last-child { border-bottom: none; }
.hot-post-item:hover { background: var(--surface-2); }
.hot-rank {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.hr-1 { background: var(--red-500); color: white; }
.hr-2 { background: #E67E22; color: white; }
.hr-3 { background: #D4AC00; color: white; }
.hr-4, .hr-5 { background: var(--surface-2); color: var(--ink-500); }
.hot-post-title { font-size: 13px; font-weight: 500; color: var(--ink-700); line-height: 1.4; margin-bottom: 3px; }
.hot-post-meta { font-size: 11px; color: var(--ink-300); }

/* Sidebar community content */
.side-photo-list {
  padding: 12px;
}
.side-photo-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.side-photo-item:first-child { padding-top: 0; }
.side-photo-item:last-child { padding-bottom: 0; border-bottom: none; }
.side-photo-thumb {
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.side-photo-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.side-photo-title {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-photo-item:hover .side-photo-title { color: var(--red-600); }
.side-photo-meta {
  font-size: 11px;
  color: var(--ink-300);
}
.side-rank-list {
  padding: 10px 14px 14px;
}
.side-rank-row {
  display: grid;
  grid-template-columns: 56px 1fr 38px;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-500);
}
.side-rank-row:last-child { border-bottom: none; }
.side-rank-name {
  font-weight: 700;
  color: var(--ink-700);
}
.side-rank-track {
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: var(--surface-2);
}
.side-rank-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--red-500), var(--gold-500));
}
.side-rank-count {
  text-align: right;
  font-size: 11px;
  color: var(--ink-300);
}

/* Tools grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all 0.18s;
  font-family: inherit;
}
.tool-btn .t-icon { width: 22px; height: 22px; display: block; }
.tool-btn:hover {
  border-color: var(--red-500);
  background: var(--red-100);
  color: var(--red-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Partner links */
.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}
.partner-link {
  padding: 5px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--ink-500);
  transition: all 0.18s;
}
.partner-link:hover {
  background: var(--navy-800);
  color: white;
  border-color: var(--navy-800);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
footer {
  background: var(--navy-900);
  margin-top: 48px;
  padding: 52px 0 0;
}
.footer-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 40px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .f-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand .f-logo-mark {
  width: 52px; height: 38px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-300);
}
.footer-brand .f-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.footer-brand .f-logo-text { font-size: 16px; font-weight: 700; color: white; font-family: var(--font-serif); }
.footer-brand p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
}
.footer-social:hover { color: white; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color 0.18s;
}
.footer-col ul li a:hover { color: var(--gold-300); }
.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color 0.18s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-bottom .sep { margin: 0 8px; opacity: 0.3; }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-card { animation: fadeUp 0.5s ease both 0.05s; }
.module:nth-child(2) { animation: fadeUp 0.5s ease both 0.12s; }
.module:nth-child(3) { animation: fadeUp 0.5s ease both 0.18s; }
.module:nth-child(4) { animation: fadeUp 0.5s ease both 0.24s; }
.sidebar > * { animation: fadeUp 0.5s ease both 0.1s; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .page-layout { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 340px; }
  .city-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .wrap, .header-inner, .pulse-bar-inner, .city-ribbon-inner, .page-layout, .footer-grid, .footer-bottom {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav { display: none; }
  .header-actions { display: none; }
  .m-actions { display: inline-flex; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .header-inner { height: 64px; }
  .logo { padding-right: 0; border-right: none; gap: 12px; }
  .logo-wordmark .sub { display: none; }
  .logo-wordmark .brand { font-size: 17px; letter-spacing: 0.2px; }

  .search-wrap input { width: 100%; }

  .hero-topline { flex-wrap: wrap; gap: 10px; }
  .hero-content { padding: 22px 18px 18px; }
  .hero-content h1, .hero-content h2 { font-size: 28px; line-height: 1.22; }
  .hero-sub { font-size: 13px; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .hero-cta { width: fit-content; }
  .hero-search { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; }
  .market-board { min-height: 260px; }

  .rail-head { padding: 14px 16px; }
  .rail-sent { padding: 12px 16px 14px; }
  .rail-item { padding: 12px 16px; }
  .module-header { padding: 14px 16px; }
  .insight-item { padding: 14px 16px; gap: 14px; }
  .insight-title { font-size: 14px; }
  .insight-num { font-size: 30px; min-width: 36px; }
  .post-item { padding: 14px 16px; }
  .photo-post-grid { grid-template-columns: 1fr; padding: 14px; }
}
@media (max-width: 420px) {
	  .hero-media { min-height: 320px; }
	  .hero-content h1, .hero-content h2 { font-size: 24px; }
	  .pill { font-size: 11px; }
	  .city-grid { grid-template-columns: repeat(2, 1fr); }
	  .city-tile { padding: 14px 10px; }
}
