/* ============================================================
   华泰交运研究站 · 设计系统
   参照华泰汽车研究站 — 藏青墨色 + 华泰红点睛
   ============================================================ */
:root {
  --ink: #14306e;
  --ink-deep: #0d2354;
  --ink-soft: #3a5aa8;
  --red: #c8102e;
  --red-soft: #fbe9ec;
  --green: #067a5e;
  --paper: #f5f6f8;
  --card: #ffffff;
  --line: #dde2ea;
  --line-soft: #edf0f5;
  --t1: #1c2333;
  --t2: #465063;
  --t3: #6b7588;
  --t4: #98a0b3;
  --f-kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "SimKai", serif;
  --f-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --f-num: "Arial", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--t1);
  font-size: 15px;
  line-height: 1.75;
  background-image: repeating-linear-gradient(135deg, rgba(20,48,110,.014) 0 1px, transparent 1px 9px);
}
a { color: inherit; text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 26px; height: 62px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-seal {
  width: 34px; height: 34px; background: var(--red); color: #fff;
  font-family: var(--f-kai); font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; box-shadow: 0 2px 6px rgba(200,16,46,.28);
}
.brand-name { font-family: var(--f-kai); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.brand-sub { font-size: 11px; color: var(--t4); letter-spacing: 2.5px; margin-top: -3px; }

/* ---------- 版面 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 30px 22px 60px; }
.page-head { margin: 8px 0 26px; }
.page-title { font-family: var(--f-kai); font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.page-desc { color: var(--t3); font-size: 13.5px; margin-top: 4px; }

/* ---------- 板块Tab切换 ---------- */
.tab-bar {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--t3);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 16px; cursor: pointer; transition: all .18s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.tab-btn.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.tab-no { font-family: var(--f-num); font-size: 11px; opacity: .7; }

.sector-panes { position: relative; }
.sector-pane { display: none; }
.sector-pane.active { display: block; }

/* ---------- 子板块（行业/公司） ---------- */
.sub-section { margin-bottom: 20px; }
.sub-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer; user-select: none;
}
.sub-title { font-family: var(--f-kai); font-size: 21px; font-weight: 700; color: var(--ink); }
.sub-fold {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; white-space: nowrap; transition: color .15s, border-color .15s;
}
.sub-fold:hover { color: var(--red); border-color: var(--red); }
.sub-fold::before { content: '收起 ▲'; }
.sub-section.collapsed .sub-fold::before { content: '展开 ▼'; }
.sub-section.collapsed .sub-body { display: none; }
.sub-section.collapsed .sub-head { margin-bottom: 0; }

.section { margin-bottom: 38px; scroll-margin-top: 84px; }
.section-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.section-no { font-family: var(--f-num); font-size: 13px; color: var(--red); font-weight: 700; letter-spacing: 1px; }
.section-title { font-family: var(--f-kai); font-size: 21px; font-weight: 700; color: var(--ink); }
.section-note { margin-left: auto; font-size: 12px; color: var(--t4); }
.section-fold {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; user-select: none;
  flex-shrink: 0; transition: color .15s, border-color .15s;
}
.section-fold:hover { color: var(--red); border-color: var(--red); }
.section-fold::before { content: '收起 ▴'; }
.section.section-collapsed .section-fold::before,
.sector-pane.section-collapsed .section-fold::before { content: '展开 ▾'; }
.section.section-collapsed > *:not(.section-head),
.sector-pane.section-collapsed > *:not(.section-head) { display: none !important; }
.section.section-collapsed .section-head,
.sector-pane.section-collapsed .section-head { margin-bottom: 0; }

/* ---------- 图表卡 ---------- */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.chart-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 18px 10px;
}
.chart-title { font-size: 15px; font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.chart-title .en { font-family: var(--f-num); color: var(--t4); font-size: 11px; font-weight: 400; margin-left: 6px; }
.chart-box { width: 100%; height: 360px; }
.chart-foot {
  display: flex; justify-content: space-between; font-size: 11.5px; color: var(--t4);
  padding: 6px 2px 8px; border-top: 1px dashed var(--line-soft); margin-top: 4px;
}

/* ---------- 板块占位 ---------- */
.placeholder-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 900px) { .placeholder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .placeholder-grid { grid-template-columns: 1fr; } }
.sector-card {
  display: block; padding: 22px 20px; position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.sector-card:hover { box-shadow: 0 6px 20px rgba(13,35,84,.08); border-color: #c9d2e2; transform: translateY(-2px); }
.sector-num {
  font-family: var(--f-num); font-size: 44px; font-weight: 800;
  color: var(--line-soft); position: absolute; right: 14px; top: 6px;
  letter-spacing: -2px; transition: color .25s;
}
.sector-card:hover .sector-num { color: var(--red-soft); }
.sector-name { font-family: var(--f-kai); font-size: 20px; font-weight: 700; color: var(--ink); }
.sector-desc { font-size: 12.5px; color: var(--t3); margin-top: 4px; }
.sector-status {
  font-size: 11.5px; color: var(--t4); margin-top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
}
.sector-status.ready { color: var(--green); }

/* ---------- 入场动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeUp .55s cubic-bezier(.22,.8,.36,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .19s; }
.d4 { animation-delay: .26s; } .d5 { animation-delay: .33s; } .d6 { animation-delay: .4s; }
.d7 { animation-delay: .47s; } .d8 { animation-delay: .54s; }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  text-align: center; padding: 22px; font-size: 12px; color: var(--t4); line-height: 2;
}

/* ---------- 响应式 ---------- */
@media (max-width: 620px) {
  body { font-size: 13px; line-height: 1.62; }
  .container { padding: 20px 14px 44px; }
  .page-title { font-size: 24px; }
  .section { margin-bottom: 26px; }
  .section-head { gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .section-title { font-size: 17px; }
  .brand-name { font-size: 17px; }
  .brand-seal { width: 30px; height: 30px; font-size: 17px; }
  .chart-box { height: 280px; }
}
