/* =========================================
   数据中心样式 data.css — 深色科技风
   ========================================= */
.data-hero {
  background: linear-gradient(135deg, #0d3d21 0%, #1a6b3a 40%, #0d3d21 100%);
  border-radius: 12px; padding: 36px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.data-hero h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.data-hero p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.dh-content { position: relative; z-index: 1; }
.dh-stats { display: flex; gap: 24px; }
.dh-stat { text-align: center; }
.dh-stat strong { display: block; font-size: 22px; color: #2d9b5a; font-weight: 800; }
.dh-stat span { font-size: 12px; color: rgba(255,255,255,0.55); }
.dh-time { position: absolute; top: 20px; right: 28px; font-size: 12px; color: rgba(255,255,255,0.4); }

.data-section { margin-bottom: 36px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e8e8e8; }
.section-header-left { display: flex; align-items: center; gap: 10px; }
.section-dot { width: 6px; height: 22px; background: var(--primary); border-radius: 3px; flex-shrink: 0; }
.section-title { font-size: 18px; font-weight: 700; color: var(--text-main); }
.section-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--primary-pale); color: var(--primary); font-weight: 600; }
.section-more { font-size: 13px; color: var(--text-light); }
.section-more:hover { color: var(--primary); }

/* 价格卡片 */
.price-index-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.price-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.pc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pc-name { font-size: 13px; color: var(--text-sub); }
.pc-trend { font-size: 11px; font-weight: 600; }
.pc-trend.up { color: var(--accent-red); }
.pc-trend.down { color: var(--primary); }
.pc-body { margin-bottom: 10px; }
.pc-value { font-size: 28px; font-weight: 800; color: var(--text-main); }
.pc-unit { font-size: 13px; color: var(--text-light); }
.pc-chart { margin-bottom: 10px; }
.mini-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.mb-col { flex: 1; background: var(--primary-pale); border-radius: 3px 3px 0 0; position: relative; }
.mb-col.active { background: var(--primary); }
.mb-col span { position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--text-light); white-space: nowrap; }
.pc-footer { font-size: 11px; color: var(--text-light); }

/* 装机数据 */
.capacity-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cap-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.cap-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.cap-label { font-size: 12px; color: var(--text-sub); }
.cap-value { font-size: 22px; font-weight: 800; }
.cap-unit { font-size: 13px; color: var(--text-light); font-weight: 400; }
.cap-change { font-size: 12px; font-weight: 600; margin: 2px 0; }
.cap-change.up { color: var(--accent-red); }
.cap-change.down { color: var(--primary); }
.cap-detail { font-size: 11px; color: var(--text-light); }

/* 排行表 */
.rank-table { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.rank-table table { width: 100%; border-collapse: collapse; }
.rank-table th { background: var(--primary-dark); color: #fff; font-size: 12px; padding: 12px 14px; text-align: left; }
.rank-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.rank-table tr:hover td { background: var(--primary-pale); }
.rank-num { font-weight: 700; width: 30px; }
.rank-num.gold { color: var(--accent); }
.rank-num.silver { color: #888; }
.rank-num.bronze { color: #cd7f32; }
.up { color: var(--accent-red); }
.down { color: var(--primary); }

/* 招投标 */
.tender-list { display: flex; flex-direction: column; gap: 8px; }
.tender-item { display: flex; gap: 14px; background: #fff; border-radius: 8px; padding: 14px 16px; box-shadow: var(--shadow); }
.ti-date { font-size: 12px; color: var(--primary); font-weight: 600; min-width: 48px; }
.ti-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ti-meta { display: flex; gap: 10px; font-size: 11px; align-items: center; }
.ti-scale { color: var(--text-sub); }
.ti-type { color: var(--primary); }
.ti-status { padding: 1px 6px; border-radius: 3px; }
.ti-status.bidding { background: #fff3e0; color: #e65100; }
.ti-status.open { background: #e3f2fd; color: #1565c0; }
.ti-status.result { background: #e8f5e9; color: #2e7d32; }

.data-page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.data-main { min-width: 0; }

.data-tools { display: flex; flex-direction: column; gap: 8px; }
.data-tool-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.data-tool-item:hover { background: var(--primary-pale); }
.dt-icon { font-size: 18px; }

.hot-reports { display: flex; flex-direction: column; gap: 10px; }
.hr-item { display: flex; flex-direction: column; padding: 10px; border-radius: 8px; background: #f9f9f9; transition: all 0.2s; cursor: pointer; }
.hr-item:hover { background: var(--primary-pale); }
.hr-badge { font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-bottom: 4px; display: inline-block; width: fit-content; }
.hr-badge { background: var(--accent-red); color: #fff; }
.hr-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.hr-meta { font-size: 11px; color: var(--text-light); }

.subscribe-content p { font-size: 13px; color: var(--text-sub); margin-bottom: 10px; }
.sub-form { display: flex; gap: 8px; }
.sub-form input { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.sub-form button { padding: 8px 16px; border: none; border-radius: 6px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; }

.breadcrumb-bar {
  background: #fff; padding: 10px 0; border-bottom: 1px solid #eee; margin-bottom: 20px;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb .current { color: var(--text-sub); font-weight: 600; }

@media (max-width: 900px) {
  .price-index-grid { grid-template-columns: 1fr 1fr; }
  .capacity-grid { grid-template-columns: 1fr 1fr; }
  .data-page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .price-index-grid, .capacity-grid { grid-template-columns: 1fr; }
  .dh-stats { flex-wrap: wrap; }
}
