/* ============================================================================
   2026 两会提案 AI 评分 — 视觉设计
   主题：中国两会红 + 金色点缀 + 暖色系
   DeepSeek 品牌色：蓝色 (#2563EB)
   ============================================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 两会主色 —— 中国红 */
  --red:         #C0181C;
  --red-deep:    #9A0F12;
  --red-light:   #E53935;
  --red-pale:    #FFF5F5;
  --red-muted:   #FDECEA;

  /* 金色点缀 */
  --gold:        #C9960C;
  --gold-light:  #F5C842;
  --gold-pale:   #FFF8E1;

  /* DeepSeek 品牌蓝 */
  --ds-blue:     #2563EB;
  --ds-blue-lt:  #60A5FA;
  --ds-bg:       #EFF6FF;

  /* 暖中性色 */
  --bg:          #FBF8F5;
  --bg-warm:     #F5EDE6;
  --white:       #FFFFFF;
  --text:        #1C0A0A;
  --text-mid:    #5C3D3D;
  --text-muted:  #8C6E6E;
  --text-light:  #B8A0A0;
  --border:      #E8D8D0;
  --border-light:#F0E8E2;

  /* 分数色 */
  --high:        #16A34A;
  --high-bg:     #DCFCE7;
  --high-text:   #166534;
  --medium:      #D97706;
  --medium-bg:   #FEF3C7;
  --medium-text: #92400E;
  --low:         #DC2626;
  --low-bg:      #FEE2E2;
  --low-text:    #991B1B;

  --radius:      8px;
  --radius-lg:   16px;
  --font-serif:  'Noto Serif SC', 'Songti SC', serif;
  --font-sans:   'Noto Sans SC', -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Menlo', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* 温暖的格子背景，带有中式韵味 */
  background-image:
    linear-gradient(rgba(192, 24, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 24, 28, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
}

/* ============================================================================
   顶部红色横幅 — 两会主题
   ============================================================================ */
.top-banner {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 50%, #E53935 100%);
  color: white;
  text-align: center;
  padding: 10px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.top-banner::before,
.top-banner::after {
  content: '★ ★ ★ ★ ★';
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 6px;
  opacity: 0.9;
}

.banner-text {
  font-weight: 500;
  letter-spacing: 4px;
  white-space: nowrap;
}

/* ============================================================================
   导航栏
   ============================================================================ */
.site-nav {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(192, 24, 28, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  background: var(--red-muted);
  color: var(--red);
  border-radius: 20px;
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.deepseek-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ds-bg);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  color: var(--ds-blue);
  font-weight: 500;
}

.deepseek-badge .ds-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
#hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 48px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow-line {
  flex: 0 0 40px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.hero-text {
  flex: 1;
  max-width: 680px;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--red);
  position: relative;
}

/* 金色下划线装饰 */
.hero-text h1 em::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

/* 进度条 */
.hero-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.progress-icon {
  color: var(--red);
  font-size: 16px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.progress-line {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  max-width: 320px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
  width: 0%;
  transition: width 0.6s ease;
}

.hero-stats-line {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

.stat-highlight {
  color: var(--red);
  font-weight: 700;
  font-size: 16px;
}

/* ---- 环形图区域 ---- */
.hero-chart {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.donut-container {
  position: relative;
  width: 260px;
  height: 260px;
  /* 外框装饰 */
  background: var(--white);
  border-radius: 50%;
  box-shadow:
    0 0 0 8px var(--red-muted),
    0 0 0 10px rgba(192,24,28,0.08),
    0 8px 32px rgba(192,24,28,0.12);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.donut-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 6px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  min-width: 160px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-high   { background: var(--high); }
.dot-medium { background: var(--medium); }
.dot-low    { background: var(--low); }
.dot-all    { background: var(--red); }

/* ============================================================================
   统计卡片行 — 四维数据
   ============================================================================ */
.stats-banner {
  background: linear-gradient(135deg, var(--red-deep) 0%, var(--red) 100%);
  color: white;
  margin: 0;
  padding: 28px 48px;
}

.stats-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,0.18);
}

.stat-card:last-child {
  border-right: none;
}

.stat-card-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.stat-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  display: block;
}

/* ============================================================================
   TABLE SECTION
   ============================================================================ */
#verdicts {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}

.section-header h2 em {
  font-style: italic;
  color: var(--red);
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}

/* 筛选按钮 */
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--red-light);
  color: var(--red);
  background: var(--red-pale);
}

.filter-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

/* 统计小药丸 */
.stats-pills {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- 表格 ---- */
.table-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(192,24,28,0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: linear-gradient(135deg, #1C0A0A 0%, #3B1111 100%);
}

th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7);
  padding: 16px 20px;
  text-align: left;
}

th:first-child {
  color: var(--gold-light);
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.65;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--red-pale);
}

.col-title   { width: 22%; }
.col-score   { width: 10%; }
.col-summary { width: 33%; }
.col-reason  { width: 35%; }

/* 提案标题 */
.proposal-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 5px;
  line-height: 1.5;
}

.proposal-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ds-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.proposal-link:hover { text-decoration: underline; }

.proposal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light);
  display: block;
  margin-top: 3px;
}

/* 评分徽章 */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  min-width: 56px;
}

.score-high   { background: var(--high-bg);   color: var(--high-text); }
.score-medium { background: var(--medium-bg);  color: var(--medium-text); }
.score-low    { background: var(--low-bg);     color: var(--low-text); }

/* 维度小彩条 */
.score-dimensions {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.dim-bar {
  height: 3px;
  border-radius: 2px;
  flex: 1;
  background: var(--border);
  overflow: hidden;
}

.cell-summary {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}

.cell-reason {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 72px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 36px;
  color: var(--red-light);
  margin-bottom: 16px;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.95); }
}

.empty-state p {
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--text-mid);
}

.start-button {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 40px;
  background: linear-gradient(135deg, var(--red-deep), var(--red-light));
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(192,24,28,0.35);
  letter-spacing: 1px;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,24,28,0.45);
}

.start-button:disabled {
  background: var(--border);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 加载行 */
.loading-row td {
  background: var(--bg);
}

.loading-row .proposal-title {
  color: var(--text-mid);
}

/* ============================================================================
   维度评分区
   ============================================================================ */
#dimensions {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 48px 56px;
}

#dimensions h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  margin-bottom: 6px;
}

#dimensions h2 em {
  font-style: italic;
  color: var(--red);
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.dim-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dim-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(192,24,28,0.1);
}

/* 左侧红色竖线装饰 */
.dim-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), var(--gold));
  border-radius: 0 2px 2px 0;
}

.dim-card-value {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.dim-card-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
}

.dim-card-weight {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}

.dim-card-bar {
  margin-top: 18px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.dim-card-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 48px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.footer-prompt h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-prompt pre {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
}

.footer-prompt code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  white-space: pre-wrap;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 30px;
}

.footer-info p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}

.footer-info a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 48px;
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================================
   状态徽章
   ============================================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.status-idle     { background: var(--border-light); color: var(--text-muted); }
.status-running  { background: var(--red-muted);    color: var(--red); }
.status-complete { background: var(--high-bg);      color: var(--high-text); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-running .status-dot {
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ============================================================================
   响应式
   ============================================================================ */
@media (max-width: 960px) {
  .top-banner { display: none; }
  .hero-content { flex-direction: column; }
  .hero-chart { margin-top: 30px; align-self: center; }
  .stats-banner-inner { grid-template-columns: repeat(2, 1fr); }
  .dimensions-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  #hero, #verdicts, #dimensions { padding-left: 20px; padding-right: 20px; }
  .site-nav { padding: 12px 20px; }
  .col-reason { display: none; }
  .col-summary { width: 45%; }
  .col-title   { width: 35%; }
  .col-score   { width: 20%; }
}
