/* 算力数据港 V1.11 · 深空蓝 × 量子紫 · 美化版 */
:root {
  --deep: #0b1739;
  --space: #1e3a8a;
  --blue: #3a7bd5;
  --purple: #8b5cf6;
  --gold: #fbbf24;
  --paper: #f1f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --line: #e2e8f0;
  --muted: #64748b;
  --green: #10b981;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(11,23,57,.06);
  --shadow-md: 0 8px 24px rgba(11,23,57,.10);
  --shadow-lg: 0 16px 40px rgba(11,23,57,.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.7;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
a { color: var(--space); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }

/* ============ 顶部导航 ============ */
.topbar {
  background: linear-gradient(135deg, var(--deep) 0%, var(--space) 100%);
  color: #fff; padding: 14px 5vw;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.topbar .brand {
  font-size: 18px; font-weight: 700; letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.topbar .brand img { height: 32px; width: 32px; border-radius: 8px; }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a {
  color: #cbd5e1; padding: 8px 14px; font-size: 14px; border-radius: 8px;
  transition: all .2s; font-weight: 500;
}
.topbar nav a:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.topbar nav a.active {
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
  box-shadow: 0 2px 8px rgba(58,123,213,.3);
}

/* ============ 首页 Hero ============ */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(139,92,246,.25) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(59,130,246,.25) 0%, transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--space) 70%, #1e40af 100%);
  color: #fff; padding: 80px 5vw 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 60px 60px;
  opacity: .6;
}
.hero-inner { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.hero-text { flex: 1.5; min-width: 380px; }
.hero-text h1 {
  font-size: 38px; margin-bottom: 14px; line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #fbbf24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 0.5px;
}
.hero-text h1 .sub { display: block; font-size: 17px; color: #cbd5e1; font-weight: 400; margin-top: 6px;
  -webkit-text-fill-color: #cbd5e1;
}
.hero-text p { max-width: 580px; color: #cbd5e1; font-size: 15px; line-height: 1.75; margin-top: 12px; }
.hero-text .cta-row { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-text .cta {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-size: 14px; transition: all .2s;
}
  font-weight: 600; font-size: 15px; transition: all .2s;
}
.hero-text .cta.primary {
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: var(--deep); box-shadow: 0 4px 14px rgba(251,191,36,.35);
}
.hero-text .cta.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(251,191,36,.5); }
.hero-text .cta.ghost {
  background: transparent; border: 1.5px solid #fff; color: #fff;
}
.hero-text .cta.ghost:hover { background: rgba(255,255,255,.1); }

.hero-logo {
  flex: 0 0 auto; width: 360px; max-width: 88vw;
  animation: float 6s ease-in-out infinite;
}
.hero-logo img { width: 100%; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.hero-chart {
  flex: 0 0 auto; width: 340px; max-width: 88vw;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 12px;
}
.hero-chart canvas { display: block; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 数据条 */
.stat-bar {
  background: rgba(255,255,255,.08); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); border-radius: 16px;
  padding: 20px 32px; margin: 0 5vw 30px; display: flex; gap: 40px;
  flex-wrap: wrap; justify-content: space-around;
  position: relative; z-index: 1;
}
.stat-bar .stat { text-align: center; }
.stat-bar .stat .v {
  font-size: 28px; font-weight: 800; color: var(--gold); font-family: 'Consolas', monospace;
}
.stat-bar .stat .l { font-size: 12px; color: #cbd5e1; margin-top: 2px; }

/* ============ 主体容器 ============ */
.wrap { padding: 50px 5vw; max-width: 1280px; margin: 0 auto; }
.section-title {
  font-size: 24px; color: var(--deep); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.section-title::before {
  content: ""; width: 5px; height: 24px;
  background: linear-gradient(180deg, var(--blue), var(--purple));
  border-radius: 3px; box-shadow: 0 2px 6px rgba(58,123,213,.3);
}
.section-sub { color: var(--muted); margin-bottom: 26px; font-size: 14px; }

/* ============ 三大支柱卡片 ============ */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.pillar {
  background: var(--card); border-radius: 14px; padding: 28px;
  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: linear-gradient(90deg, var(--blue), var(--purple));
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(30,58,138,.12); }
.pillar .icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
}
.pillar.power .icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.pillar.model .icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.pillar.data .icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.pillar h3 { font-size: 18px; color: var(--deep); 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(--space); 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 .25s; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); 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(--deep); font-size: 15px; }
.card .badge {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}
.card .badge.cn { background: #fee2e2; color: #dc2626; }
.card .badge.int { background: #dbeafe; color: #2563eb; }
.card .badge.top { background: linear-gradient(135deg, var(--gold), #f59e0b); color: var(--deep); }
.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(--space); font-size: 13px; }
.card .tag {
  display: inline-block; font-size: 11px; background: #f1f5f9; color: var(--space);
  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(--ink);
  padding: 4px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; transition: all .15s;
}
.filter-bar button:hover { border-color: var(--blue); color: var(--space); }
.filter-bar button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.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(--blue); }

/* ============ 数据表 ============ */
.dl-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.dl-table th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  padding: 12px 14px; text-align: left; font-size: 13px; color: var(--space); font-weight: 700;
  border-bottom: 2px solid var(--line);
}
.dl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dl-table tr:hover td { background: #f8fafc; }
.dl-table .rank { font-weight: 700; color: var(--gold); font-family: 'Consolas', monospace; }
.dl-table .name { font-weight: 600; color: var(--deep); }
.dl-table .num { font-family: 'Consolas', monospace; color: var(--space); font-weight: 600; }

/* ============ 算力中心卡片 ============ */
.center-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; margin-bottom: 16px; transition: all .15s;
}
.center-card:hover { box-shadow: 0 8px 24px rgba(30,58,138,.08); border-color: var(--blue); }
.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(--deep); }
.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(--deep); 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(--blue); }
.center-card .contact strong { color: var(--deep); }

/* ============ 表单 ============ */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; max-width: 600px; margin: 0 auto;
}
.panel label { display: block; font-size: 13px; margin: 18px 0 6px; color: var(--deep); 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(--blue); background: #fff; }
.panel button {
  margin-top: 24px; width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; border: none; padding: 12px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.panel button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58,123,213,.3); }
.msg { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; display: none; }
.msg.ok { display: block; background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.msg.err { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ============ 进度条（国产替代率） ============ */
.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(--deep); font-weight: 600; }
.bar-row .head .v { color: var(--space); font-family: 'Consolas', monospace; font-weight: 700; }
.bar-track { height: 10px; background: #e2e8f0; border-radius: 5px; overflow: hidden; }
.bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple));
  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: linear-gradient(180deg, var(--blue), var(--purple));
}
.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(--blue);
}
.timeline-item .date { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.timeline-item h4 { color: var(--deep); 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: #dbeafe; color: var(--space); margin-right: 4px;
}

/* ============ 页脚 ============ */
.footer {
  background: linear-gradient(135deg, var(--deep) 0%, #1e293b 100%);
  color: #94a3b8; padding: 40px 5vw; font-size: 13px; margin-top: 60px; line-height: 1.9;
}
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--gold); font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #94a3b8; }
.footer ul a:hover { color: var(--gold); }
.footer .brand-block .name { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer .copyright {
  max-width: 1280px; margin: 30px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #64748b;
}
.footer .gold { color: var(--gold); }

/* ============ 工具类 ============ */
.notice-bar {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24; color: #92400e;
  border-radius: 10px; padding: 14px 18px; font-size: 13px; margin-bottom: 24px;
}
.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: 40px 4vw 30px; }
  .hero-text h1 { font-size: 26px; }
  .hero-text h1 .sub { font-size: 15px; }
  .hero-logo { width: 220px; }
  .hero-chart { width: 100%; }
  .stat-bar { padding: 14px; gap: 16px; margin: 0 4vw 20px; }
  .stat-bar .stat .v { font-size: 22px; }
  .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; }
}