:root {
  --champagne: #f7edd7;
  --gilded: #d6a96b;
  --bronze: #9a734d;
  --espresso: #5a4030;
  --noir: #17120f;
  --panel-light: linear-gradient(180deg, rgba(251,245,233,.98) 0%, rgba(242,230,208,.96) 100%);
  --panel-dark: linear-gradient(180deg, rgba(23,18,15,.98) 0%, rgba(38,28,22,.96) 100%);
  --line-light: rgba(90,64,48,.12);
  --line-dark: rgba(247,237,215,.14);
  --shadow-lg: 0 28px 60px rgba(23,18,15,.16);
  --shadow-md: 0 16px 36px rgba(23,18,15,.12);
  --shadow-sm: 0 8px 18px rgba(23,18,15,.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--noir);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214,169,107,.16), transparent 20%),
    radial-gradient(circle at top right, rgba(154,115,77,.08), transparent 22%),
    linear-gradient(180deg, #f9f1e3 0%, #f4ebdd 45%, #efe4d5 100%);
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.navbar-luxe {
  background: rgba(23,18,15,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247,237,215,.15);
  box-shadow: 0 10px 26px rgba(23,18,15,.18);
}
.navbar-luxe .navbar-brand,
.navbar-luxe .nav-link { color: var(--champagne) !important; }
.navbar-luxe .navbar-brand {
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 1rem;
}
.navbar-luxe .nav-link { opacity: .78; }
.navbar-luxe .nav-link.active,
.navbar-luxe .nav-link:hover { opacity: 1; color: #fff !important; }
.navbar-search {
  background: rgba(247,237,215,.08);
  border: 1px solid rgba(247,237,215,.14);
  border-radius: 999px;
  overflow: hidden;
}
.navbar-search input {
  min-width: 220px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--champagne);
  padding: .6rem .95rem;
}
.navbar-search input::placeholder { color: rgba(247,237,215,.52); }

.page-shell { padding: 30px 0 52px; }
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(23,18,15,.98) 0%, rgba(46,33,26,.94) 60%, rgba(75,53,40,.92) 100%);
  color: var(--champagne);
  border: 1px solid rgba(247,237,215,.14);
  box-shadow: var(--shadow-lg);
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: -56px;
  top: -56px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(214,169,107,.28), transparent 65%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(247,237,215,.18);
  background: rgba(247,237,215,.08);
  color: #e8d5b5;
  font-size: .86rem;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero-text {
  max-width: 820px;
  color: rgba(247,237,215,.84);
  line-height: 1.7;
}

.panel-light, .panel-dark, .rank-card, .metric-card, .detail-card, .ai-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.panel-light, .rank-card {
  background: var(--panel-light);
  color: var(--noir);
}
.panel-dark, .metric-card, .detail-card, .ai-card {
  background: var(--panel-dark);
  color: var(--champagne);
  border: 1px solid var(--line-dark);
}
.card-head-light, .card-head-luxe {
  padding: 1.1rem 1.35rem;
}
.card-head-light { border-bottom: 1px solid var(--line-light); }
.card-head-luxe { border-bottom: 1px solid var(--line-dark); }
.card-body-luxe { padding: 1.35rem 1.45rem; }
.section-title { font-size: 1.08rem; font-weight: 800; margin-bottom: .2rem; }
.section-subtitle { font-size: .92rem; color: rgba(90,64,48,.68); }
.panel-dark .section-subtitle,
.detail-card .section-subtitle,
.ai-card .section-subtitle,
.panel-dark .small-note { color: rgba(247,237,215,.72) !important; }

.btn-luxe, .btn-outline-luxe, .sort-pill {
  border-radius: 999px;
  font-weight: 700;
  padding: .72rem 1.18rem;
}
.btn-luxe {
  border: none;
  color: var(--noir);
  background: linear-gradient(135deg, var(--gilded) 0%, #e8c28f 100%);
  box-shadow: 0 12px 24px rgba(90,64,48,.18);
}
.btn-luxe:hover { color: var(--noir); }
.btn-outline-luxe {
  color: var(--champagne);
  border: 1px solid rgba(247,237,215,.28);
  background: transparent;
}
.sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--espresso);
  border: 1px solid rgba(90,64,48,.16);
  background: rgba(255,255,255,.35);
}
.sort-pill.active, .sort-pill:hover {
  background: rgba(214,169,107,.18);
  border-color: rgba(154,115,77,.28);
  color: var(--espresso);
}
.hero-panel .sort-pill {
  color: var(--champagne);
  border-color: rgba(247,237,215,.22);
  background: rgba(247,237,215,.08);
}
.hero-panel .sort-pill.active,
.hero-panel .sort-pill:hover {
  color: var(--noir);
  background: linear-gradient(135deg, #d6a96b 0%, #f0cb97 100%);
  border-color: transparent;
}

.overview-grid,
.board-grid,
.feature-grid,
.viz-grid,
.analysis-grid,
.key-info-list,
.score-mini {
  display: grid;
  gap: 18px;
}
.overview-grid { grid-template-columns: repeat(4, 1fr); }
.board-grid, .feature-grid { grid-template-columns: repeat(3, 1fr); }
.viz-grid { grid-template-columns: 1fr 1fr; }
.analysis-grid { grid-template-columns: 1.58fr .92fr; }
.key-info-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.score-mini { grid-template-columns: repeat(3, 1fr); gap: 12px; }

.metric-card,
.rank-card,
.leader-item,
.list-row,
.detail-card,
.ai-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
.metric-card:hover,
.rank-card:hover,
.leader-item:hover,
.list-row:hover,
.detail-card:hover,
.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.metric-label {
  font-size: .92rem;
  color: rgba(247,237,215,.72);
  margin-bottom: 10px;
}
.metric-value {
  font-size: clamp(1.45rem, 2.25vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: .2px;
  word-break: break-word;
}
.metric-foot {
  margin-top: 10px;
  color: rgba(247,237,215,.72);
  font-size: .88rem;
  line-height: 1.55;
}
.tag-gold, .score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.tag-gold {
  padding: .36rem .74rem;
  color: var(--espresso);
  background: rgba(214,169,107,.16);
  border: 1px solid rgba(154,115,77,.18);
}
.score-pill {
  padding: .38rem .8rem;
  color: var(--noir);
  background: linear-gradient(135deg, var(--gilded) 0%, #efc893 100%);
}

.leader-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(90,64,48,.08);
}
.leader-item .d-flex {
  flex: 1;
  min-width: 0;
}
.leader-item:last-child { border-bottom: none; }
.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-weight: 800;
  background: rgba(214,169,107,.22);
  color: var(--espresso);
}
.leader-meta { flex: 1; min-width: 0; }
.leader-title {
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leader-sub {
  font-size: .86rem;
  color: rgba(90,64,48,.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-row {
  display: grid;
  grid-template-columns: 72px 1.35fr .72fr .72fr .72fr .9fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(90,64,48,.08);
  background: rgba(251,245,233,.72);
  margin-bottom: 14px;
}
.list-cover {
  width: 72px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne);
  background: rgba(23,18,15,.88);
  box-shadow: var(--shadow-sm);
}
.list-cover img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  line-height: 1.2;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #d6a96b 0%, #5a4030 100%);
}
.score-block {
  text-align: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(23,18,15,.06);
}
.score-block .label {
  color: rgba(90,64,48,.68);
  font-size: .84rem;
}
.score-block .value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--espresso);
}

.poster-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(247,237,215,.18);
  box-shadow: var(--shadow-sm);
}
.poster-frame.placeholder-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  padding: 28px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, rgba(214,169,107,.35) 0%, rgba(90,64,48,.9) 100%);
}
.key-info-item,
.topic-item,
.comment-item,
.ai-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247,237,215,.08);
  border: 1px solid rgba(247,237,215,.12);
}
.topic-item.light,
.comment-item.light {
  background: rgba(23,18,15,.04);
  border: 1px solid rgba(90,64,48,.08);
}
.key-info-item .label {
  color: rgba(247,237,215,.72);
  font-size: .88rem;
}
.key-info-item .value {
  margin-top: 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.chart-box {
  border-radius: 24px;
  padding: 14px;
  background: rgba(251,245,233,.72);
  border: 1px solid rgba(90,64,48,.08);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.chart-box.dark {
  background: rgba(247,237,215,.06);
  border: 1px solid rgba(247,237,215,.1);
}
.chart-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.chart-note {
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(90,64,48,.72);
  margin-bottom: 10px;
}
.panel-dark .chart-note,
.detail-card .chart-note,
.ai-card .chart-note { color: rgba(247,237,215,.72); }
.echart { width: 100%; height: 340px; }
.echart.small { height: 260px; }
.empty-box {
  padding: 24px;
  border-radius: 22px;
  text-align: center;
  color: var(--espresso);
  background: rgba(251,245,233,.7);
  border: 1px dashed rgba(90,64,48,.18);
}
.footer-luxe {
  margin-top: 40px;
  padding: 24px 0 36px;
  text-align: center;
  color: rgba(90,64,48,.76);
}

@media (max-width: 1200px) {
  .overview-grid,
  .board-grid,
  .feature-grid,
  .analysis-grid,
  .viz-grid { grid-template-columns: 1fr 1fr; }
  .list-row { grid-template-columns: 72px 1.3fr .8fr .8fr .8fr .92fr; }
}
@media (max-width: 992px) {
  .key-info-list,
  .score-mini { grid-template-columns: 1fr 1fr; }
  .list-row { grid-template-columns: 72px 1fr; }
}
@media (max-width: 768px) {
  .page-shell { padding-top: 20px; }
  .hero-panel { padding: 24px; }
  .overview-grid,
  .board-grid,
  .feature-grid,
  .analysis-grid,
  .viz-grid,
  .key-info-list,
  .score-mini { grid-template-columns: 1fr; }
  .navbar-search input { min-width: 0; width: 100%; }
  .navbar-luxe .navbar-brand { font-size: .92rem; }
  .metric-value { font-size: 1.55rem; }
}
