/* 算力数据港 · 白色极简（彩票系统 UI 风格统一版） · v20261001c */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e4e8ef;
  --text: #24292f;
  --muted: #6b7280;
  --primary: #c0392b;
  --primary-deep: #8c1515;
  --accent: #c0392b;
  --ok: #1a7f37;
  --warn: #b45309;
  --err: #cf222e;
  --gold: #d4a017;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }

/* ============ 顶部导航（白底 · 红激活） ============ */
.topbar {
  background: var(--card); color: var(--text); padding: 12px 5vw;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
.topbar .brand {
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; gap: 10px; color: var(--text);
}
.topbar .brand img { height: 32px; width: 32px; border-radius: 8px; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  color: var(--muted); padding: 8px 14px; font-size: 14px; border-radius: 6px;
  transition: all .15s; font-weight: 500; border-bottom: 2px solid transparent;
}
.topbar nav a:hover { background: #f6f8fa; color: var(--text); }
.topbar nav a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ============ 首页 Hero（彩票红渐变） ============ */
.hero {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff; padding: 64px 5vw 52px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.07) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px, 84px 84px;
  opacity: .5;
}
.hero-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-text { flex: 1; min-width: 320px; }
.hero-text h1 {
  font-size: 38px; margin-bottom: 14px; line-height: 1.2;
  color: #fff; letter-spacing: 1px; font-weight: 700;
}
.hero-text h1 .sub { display: block; font-size: 17px; color: rgba(255,255,255,.92); font-weight: 400; margin-top: 8px; }
.hero-text p { max-width: 680px; color: rgba(255,255,255,.92); font-size: 15px; }
.hero-text .cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-text .cta { display: inline-block; padding: 13px 30px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: all .2s; }
.hero-text .cta.primary { background: #fff; color: var(--primary); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.hero-text .cta.primary:hover { background: #fff5f4; color: var(--primary-deep); }
.hero-text .cta.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.85); color: #fff; }
.hero-text .cta.ghost:hover { background: rgba(255,255,255,.12); }

.hero-logo { flex: 0 0 auto; width: 300px; max-width: 86vw; }
.hero-logo img { width: 100%; border-radius: 20px; box-shadow: 0 16px 44px rgba(0,0,0,.35); }

/* 数据条 */
.stat-bar {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 30px; margin: -28px 5vw 30px; display: flex; gap: 40px;
  flex-wrap: wrap; justify-content: space-around;
  position: relative; z-index: 2; box-shadow: var(--shadow-sm);
}
.stat-bar .stat { text-align: center; }
.stat-bar .stat .v { font-size: 26px; font-weight: 800; color: var(--primary); font-family: 'Consolas', monospace; }
.stat-bar .stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============ 主体容器 ============ */
.wrap { padding: 44px 5vw; max-width: 1280px; margin: 0 auto; }
.section-title {
  font-size: 23px; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.section-title::before {
  content: ""; width: 5px; height: 22px;
  background: var(--primary); border-radius: 3px;
}
.section-sub { color: var(--muted); margin-bottom: 24px; font-size: 14px; }

/* ============ 三大支柱卡片 ============ */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.pillar {
  background: var(--card); border-radius: 12px; padding: 26px;
  border: 1px solid var(--line); transition: all .2s;
  position: relative; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--primary);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d0d7de; }
.pillar .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}
.pillar.power .icon { background: #fdecea; }
.pillar.model .icon { background: #fdf0e9; }
.pillar.data .icon { background: #fdf6e3; }
.pillar h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.pillar p { font-size: 13px; color: var(--muted); }
.pillar .stat {
  display: flex; gap: 20px; margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.pillar .stat-item .v { font-size: 20px; font-weight: 700; color: var(--primary); font-family: 'Consolas', monospace; }
.pillar .stat-item .l { font-size: 11px; color: var(--muted); }

/* ============ 数据卡 ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: all .2s; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-3px); }
.card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.card .name { font-weight: 700; color: var(--text); font-size: 15px; }
.card .badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.card .badge.cn { background: #fdecea; color: #c0392b; }
.card .badge.int { background: #fdf0e9; color: #c0392b; }
.card .badge.top { background: #fdf6e3; color: #8a6d0b; }
.card .desc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.card .meta { display: flex; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.card .meta span strong { color: var(--primary); font-size: 13px; }
.card .tag { display: inline-block; font-size: 11px; background: #f1f5f9; color: var(--text); border-radius: 4px; padding: 2px 8px; margin: 6px 4px 0 0; }

/* ============ 筛选条 ============ */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
  padding: 12px; background: var(--card); border-radius: 10px; border: 1px solid var(--line);
}
.filter-bar .group { display: flex; gap: 6px; align-items: center; }
.filter-bar .label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.filter-bar button {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 4px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.filter-bar button:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bar input.search {
  flex: 1; min-width: 200px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 14px; font-size: 13px; outline: none;
}
.filter-bar input.search:focus { border-color: var(--primary); }

/* ============ 数据表 ============ */
.dl-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dl-table th {
  background: #f6f8fa;
  padding: 12px 14px; text-align: left; font-size: 13px; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.dl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dl-table tr:hover td { background: #fafbfc; }
.dl-table .rank { font-weight: 700; color: var(--gold); font-family: 'Consolas', monospace; }
.dl-table .name { font-weight: 600; color: var(--text); }
.dl-table .num { font-family: 'Consolas', monospace; color: var(--primary); font-weight: 600; }

/* ============ 算力中心卡片 ============ */
.center-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; margin-bottom: 16px; transition: all .15s;
}
.center-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.center-card .head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.center-card .name { font-size: 17px; font-weight: 700; color: var(--text); }
.center-card .loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.center-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.center-card .info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.center-card .info { font-size: 12px; }
.center-card .info .k { color: var(--muted); }
.center-card .info .v { color: var(--primary); font-weight: 600; font-family: 'Consolas', monospace; }
.center-card .contact { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; }
.center-card .contact a { color: var(--accent); }
.center-card .contact strong { color: var(--text); }

/* ============ 表单 ============ */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; max-width: 600px; margin: 0 auto; box-shadow: var(--shadow-sm);
}
.panel label { display: block; font-size: 13px; margin: 16px 0 6px; color: var(--text); font-weight: 600; }
.panel input, .panel select, .panel textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fafbfc; outline: none; transition: border .15s;
}
.panel input:focus, .panel select:focus, .panel textarea:focus { border-color: var(--primary); background: #fff; }
.panel button {
  margin-top: 22px; width: 100%;
  background: var(--primary); color: #fff; border: none; padding: 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.panel button:hover { background: var(--primary-deep); }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; display: none; }
.msg.ok { display: block; background: #e8f5e9; color: var(--ok); border: 1px solid #b7dfc0; }
.msg.err { display: block; background: #fdecea; color: var(--err); border: 1px solid #f5c6c0; }

/* ============ 进度条 ============ */
.bar-row { margin-bottom: 14px; }
.bar-row .head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-row .head .name { color: var(--text); font-weight: 600; }
.bar-row .head .v { color: var(--primary); font-family: 'Consolas', monospace; font-weight: 700; }
.bar-track { height: 10px; background: #eef1f5; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #e05a4e); border-radius: 5px; transition: width 1s ease; }

/* ============ 时间线 ============ */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 24px; padding-left: 14px; }
.timeline-item::before {
  content: ""; position: absolute; left: -27px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .date { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.timeline-item h4 { color: var(--text); font-size: 15px; margin-bottom: 6px; }
.timeline-item p { font-size: 13px; color: var(--muted); }
.timeline-item .tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 3px; background: #fdf0e9; color: #c0392b; margin-right: 4px; }

/* ============ 页脚（浅色） ============ */
.footer {
  background: var(--card); color: var(--muted); padding: 36px 5vw; font-size: 13px;
  margin-top: 56px; line-height: 1.9; border-top: 1px solid var(--line);
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--primary); }
.footer .brand-block .name { color: var(--text); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.footer .copyright { max-width: 1280px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer .gold { color: var(--gold); }

/* ============ 工具类 ============ */
.notice-bar {
  background: #fffaf0; border: 1px solid #f3ddb0; color: #8a6d0b;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 22px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.empty {
  padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px;
  background: var(--card); border: 1px dashed var(--line); border-radius: 10px;
}

/* ============ 移动端 ============ */
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 4vw; }
  .topbar nav { flex-wrap: wrap; }
  .topbar nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 36px 4vw 28px; }
  .hero-text h1 { font-size: 26px; }
  .hero-text h1 .sub { font-size: 15px; }
  .hero-logo { width: 200px; }
  .stat-bar { padding: 14px; gap: 16px; margin: -16px 4vw 18px; }
  .stat-bar .stat .v { font-size: 21px; }
  .wrap { padding: 28px 4vw; }
  .pillar-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .panel { padding: 20px; }
  table.dl-table { display: block; overflow-x: auto; white-space: nowrap; }
}
