/* =========================================================
   AI 大模型产业全景 · 大屏公共样式（设计稿 1920 × 1080）
   所有页面都按设计稿的固定像素尺寸布局，再由 common.js 的 fitScreen() 整体等比缩放到窗口大小，
   所以本文件中的尺寸直接写 px 即可。
   ========================================================= */
/* 全局设计变量：颜色、字体。各页面的内联样式也通过 var(--xxx) 引用 */
:root {
  --bg-0: #020a1f;                          /* 最深的背景色（页面底色） */
  --bg-1: #061536;                          /* 次深背景色（大屏顶部渐变起点） */
  --surface: rgba(8, 30, 70, .45);          /* 面板底色（预留，暂未使用） */
  --line: rgba(40, 150, 255, .28);          /* 普通边框线 */
  --line-strong: rgba(60, 190, 255, .75);   /* 强调边框线（悬停、聚焦） */
  --accent: #2fd9ff;                        /* 主强调色：青色高光 */
  --accent-2: #3f7dff;                      /* 辅助强调色：蓝色（预留，暂未使用） */
  --gold: #f2b84b;                          /* 金色：重点数字、年份 */
  --text-1: #e8f4ff;                        /* 主要文字 */
  --text-2: #9dbbe0;                        /* 次要文字 */
  --text-3: #5f7fa8;                        /* 弱化文字（说明、英文小标题） */
  /* 数字字体（窄体，适合数据展示）、中文字体 */
  --num-font: "Bahnschrift", "DIN Alternate", "Agency FB", "Arial Narrow", sans-serif;
  --cn-font: "Microsoft YaHei", "PingFang SC", "Source Han Sans SC", sans-serif;
}

/* 基础重置：清除默认内外边距，盒模型统一为 border-box；页面本身不出现滚动条 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg-0); }
body { font-family: var(--cn-font); color: var(--text-1); }
a { color: inherit; text-decoration: none; }
/* 细滚动条（WebKit 内核浏览器），用于筛选栏、详情卡片等可滚动区域 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(47, 217, 255, .35); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 缩放容器 ---------- */
/* .screen：1920×1080 的大屏画布。left / top 为 50%、变换原点在左上角，
   配合 JS 设置的 transform: scale(s) translate(-50%, -50%) 实现居中等比缩放 */
.screen {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  overflow: hidden;
  /* 多层背景叠加：中央蓝色光晕、左下青色微光、右上紫色微光，最底层为上下渐变 */
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(20, 90, 200, .22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(47, 217, 255, .08), transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(120, 80, 255, .08), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.screen::before { /* 科技网格 */
  /* 间距 48px 的横竖细线，再用径向遮罩让四周逐渐淡出 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 140, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 140, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
/* 背景粒子画布（由 common.js 插入），不拦截鼠标事件 */
#bg-particles { position: absolute; inset: 0; pointer-events: none; opacity: .6; }

/* ---------- 顶部标题栏 ---------- */
.header { position: relative; height: 96px; z-index: 5; }
.header-bg { position: absolute; inset: 0; width: 100%; height: 100%; } /* 背景装饰 SVG 铺满标题栏 */
/* 居中的主标题 + 英文副标题 */
.header-title {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  text-align: center; white-space: nowrap;
}
/* 渐变文字：把背景渐变裁剪成文字形状（background-clip: text），文字本身设为透明，再加发光投影 */
.header-title h1 {
  font-size: 38px; font-weight: 700; letter-spacing: 6px;
  background: linear-gradient(180deg, #ffffff 20%, #8fe9ff 60%, #2fb8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(47, 200, 255, .55));
}
.header-title p {
  margin-top: 2px; font-size: 12px; letter-spacing: 6px; color: var(--text-3);
  font-family: var(--num-font); text-transform: uppercase;
}
/* 左上角数据来源、右上角时钟 */
.header-meta {
  position: absolute; top: 10px; font-size: 14px; color: var(--text-2);
  font-family: var(--num-font); letter-spacing: 1px;
}
.header-meta.left { left: 28px; }
.header-meta.right { right: 28px; text-align: right; }
.header-meta b { color: var(--accent); font-weight: 400; font-size: 18px; margin-left: 6px; }

/* 导航：标题两侧各一组按钮 */
.nav { position: absolute; top: 46px; display: flex; gap: 10px; }
.nav.left { left: 28px; }
.nav.right { right: 28px; }
/* 按钮整体 skewX 倾斜成平行四边形 */
.nav a {
  position: relative; display: block; min-width: 112px; height: 38px; line-height: 38px;
  padding: 0 14px; text-align: center; font-size: 15px; letter-spacing: 2px; color: var(--text-2);
  transform: skewX(-24deg);
  background: linear-gradient(180deg, rgba(20, 70, 150, .25), rgba(20, 70, 150, .55));
  border: 1px solid var(--line);
  transition: all .25s;
}
.nav a span { display: inline-block; transform: skewX(24deg); } /* 文字反向倾斜，抵消按钮的倾斜，保持端正 */
.nav a:hover { color: #fff; border-color: var(--line-strong); box-shadow: 0 0 14px rgba(47, 217, 255, .35) inset; }
/* 当前页按钮：高亮边框 + 内外发光 */
.nav a.active {
  color: #fff; border-color: var(--accent);
  background: linear-gradient(180deg, rgba(47, 217, 255, .15), rgba(47, 160, 255, .55));
  box-shadow: 0 0 18px rgba(47, 217, 255, .45), 0 0 12px rgba(47, 217, 255, .4) inset;
}
/* 当前页按钮底部的白色发光短线 */
.nav a.active::after {
  content: ""; position: absolute; left: 15%; right: 15%; bottom: -1px; height: 2px;
  background: #fff; box-shadow: 0 0 8px #fff, 0 0 16px var(--accent);
}

/* ---------- 主体三栏 ---------- */
/* 位于标题栏下方（top 104px）、页脚上方（bottom 36px）；左右两栏固定 460px，中栏占满剩余宽度 */
.main {
  position: absolute; top: 104px; left: 24px; right: 24px; bottom: 36px;
  display: grid; grid-template-columns: 460px 1fr 460px; gap: 18px; z-index: 2;
}
/* 每栏内的面板纵向排列；min-height / min-width 设为 0，允许内容收缩，防止图表把栏撑破 */
.col { display: flex; flex-direction: column; gap: 16px; min-height: 0; min-width: 0; }
.col > .panel { flex: 1 1 0; } /* 面板默认平分栏高，各页面用行内 style="flex: x" 调整比例 */

/* ---------- 发光面板 ---------- */
/* 半透明渐变底 + 细边框 + 内发光 + 轻微背景模糊 */
.panel {
  position: relative; min-height: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(10, 40, 95, .55), rgba(6, 22, 56, .35));
  border: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(20, 100, 220, .12) inset;
  backdrop-filter: blur(2px);
}
/* 面板四角的发光折角：::before 画左上角、::after 画右下角 */
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--accent); filter: drop-shadow(0 0 4px var(--accent));
}
.panel::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.panel::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
/* 右上角、左下角由 common.js 插入的两个 <i> 元素画出 */
.panel .corner-tr, .panel .corner-bl {
  position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--accent); filter: drop-shadow(0 0 4px var(--accent));
}
.panel .corner-tr { right: -1px; top: -1px; border-left: 0; border-bottom: 0; }
.panel .corner-bl { left: -1px; bottom: -1px; border-right: 0; border-top: 0; }

/* 面板标题栏：发光小竖条 + 中文标题 h3 + 英文小标题 small + 右侧附加说明 .extra */
.panel-title {
  position: relative; flex: none; height: 42px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 14px;
  background: linear-gradient(90deg, rgba(47, 160, 255, .35), rgba(47, 160, 255, .05) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
/* 标题前的发光小竖条（clip-path 裁成梯形） */
.panel-title::before {
  content: ""; width: 6px; height: 18px; flex: none;
  background: linear-gradient(180deg, #fff, var(--accent));
  box-shadow: 0 0 8px var(--accent);
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}
.panel-title h3 { font-size: 18px; font-weight: 600; letter-spacing: 2px; color: #fff; white-space: nowrap; }
.panel-title small {
  font-family: var(--num-font); font-size: 11px; letter-spacing: 1px; color: var(--text-3);
  text-transform: uppercase; white-space: nowrap;
}
.panel-title .extra { margin-left: auto; font-size: 13px; color: var(--text-2); white-space: nowrap; } /* margin-left: auto 推到最右侧 */
.panel-title::after { /* 流光 */
  /* 一段 120px 长的渐变亮线，沿标题栏底边从左到右循环滑过 */
  content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: flow 4s linear infinite;
}
/* 从面板左边界外滑到 460px 处（侧栏面板的宽度） */
@keyframes flow { from { transform: translateX(-120px); } to { transform: translateX(460px); } }
/* 面板内容区：占满标题栏以下的剩余高度；min-height: 0 让内部图表可以随面板收缩 */
.panel-body { position: relative; flex: 1 1 auto; min-height: 0; padding: 10px 14px; }
.chart { width: 100%; height: 100%; } /* 图表容器铺满父元素，ECharts 按它的尺寸绘制 */

/* ---------- 指标卡 ---------- */
.kpis { display: grid; gap: 12px; } /* 指标卡网格，列数由页面行内样式指定 */
.kpi {
  position: relative; padding: 8px 14px 6px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, rgba(47, 160, 255, .16), rgba(47, 160, 255, .03));
  border: 1px solid rgba(47, 160, 255, .25);
}
/* 指标卡左侧的竖向渐变亮条 */
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.kpi .label { font-size: 14px; color: var(--text-2); letter-spacing: 1px; } /* 指标名称 */
/* 指标数值：发光的数字大字 */
.kpi .value {
  margin-top: 2px; font-family: var(--num-font); font-size: 32px; line-height: 1.1; color: #fff;
  text-shadow: 0 0 12px rgba(47, 217, 255, .65);
}
.kpi .value em { font-style: normal; font-size: 15px; color: var(--text-2); margin-left: 4px; text-shadow: none; } /* 数值后的单位 */
.kpi .sub { margin-top: 2px; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 补充说明，超长显示省略号 */

/* 翻牌数字 */
/* 每位数字一张“牌”（由 common.js 的 App.flip 生成 <i> 元素） */
.flip { display: inline-flex; gap: 6px; }
.flip i {
  font-style: normal; display: inline-block; width: 46px; height: 64px; line-height: 64px; text-align: center;
  font-family: var(--num-font); font-size: 48px; color: #fff;
  background: linear-gradient(180deg, rgba(47, 160, 255, .35), rgba(10, 40, 100, .8));
  border: 1px solid rgba(47, 217, 255, .5); border-radius: 3px;
  box-shadow: 0 0 12px rgba(47, 217, 255, .3) inset;
  text-shadow: 0 0 10px rgba(47, 217, 255, .9);
}
.flip i.sep { width: 16px; background: none; border: 0; box-shadow: none; } /* 千分位逗号：窄且无背景 */

/* ---------- 中央主视觉 ---------- */
.center-stage { position: relative; flex: 1 1 auto; min-height: 0; } /* 主视觉区域（3D 地球），占满中栏剩余高度 */
.center-head { flex: none; display: flex; justify-content: center; gap: 28px; padding-top: 4px; } /* 主视觉上方的一排翻牌器 */
.center-head .item { text-align: center; }
.center-head .item .label { font-size: 15px; color: var(--text-2); letter-spacing: 2px; margin-bottom: 6px; }
.stage-ring { /* 底座光环 */
  /* 地球下方的椭圆光晕，明暗呼吸变化 */
  position: absolute; left: 50%; bottom: 10px; width: 640px; height: 110px; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(47, 217, 255, .35), rgba(47, 160, 255, .08) 45%, transparent 70%);
  border: 1px solid rgba(47, 217, 255, .25);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .5; } } /* 呼吸效果：中途变暗再恢复 */

/* ---------- 排行列表 ---------- */
/* 列表行平分高度（每行最高 40px），奇数行加浅色斑马纹 */
.rank { list-style: none; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.rank li {
  display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-height: 0; max-height: 40px; padding: 0 8px; font-size: 14px;
  border-bottom: 1px dashed rgba(47, 160, 255, .15);
}
.rank li:nth-child(odd) { background: rgba(47, 160, 255, .05); }
/* 名次徽标（clip-path 裁成平行四边形）；前三名分别为金、蓝、紫色 */
.rank .no {
  flex: none; width: 24px; height: 20px; line-height: 20px; text-align: center; font-family: var(--num-font);
  font-size: 13px; color: #fff; background: rgba(95, 127, 168, .45); clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
}
.rank li:nth-child(1) .no { background: #c4851a; }
.rank li:nth-child(2) .no { background: #1597c9; }
.rank li:nth-child(3) .no { background: #9168f0; }
.rank .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-1); } /* 名称占满剩余宽度，超长省略 */
.rank .meta { flex: none; color: var(--text-2); font-size: 12px; }
.rank .num { flex: none; font-family: var(--num-font); font-size: 16px; color: var(--accent); min-width: 44px; text-align: right; } /* 右侧数值 */

/* 滚动列表 */
/* 内容在 JS 中复制成两份，动画上移 50%（正好一份的高度）后跳回起点，看起来就是无缝循环；鼠标悬停时暂停 */
.scroll-box { height: 100%; overflow: hidden; position: relative; }
.scroll-box .scroll-inner { animation: scrollUp linear infinite; } /* 动画时长由 JS 按行数设置 */
.scroll-box:hover .scroll-inner { animation-play-state: paused; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* 表格：表头与数据行都用 grid 布局，各列宽度（grid-template-columns）由页面指定 */
.table-head, .table-row { display: grid; align-items: center; font-size: 13px; padding: 0 8px; }
.table-head { height: 34px; color: var(--accent); background: rgba(47, 160, 255, .18); letter-spacing: 1px; }
.table-row { height: 36px; color: var(--text-1); border-bottom: 1px dashed rgba(47, 160, 255, .12); }
.table-row:nth-child(even) { background: rgba(47, 160, 255, .05); }
.table-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; } /* 单元格超长省略 */
.table-row a:hover { color: var(--accent); }

/* ---------- 标签、按钮 ---------- */
.tag {
  display: inline-block; padding: 0 8px; height: 22px; line-height: 22px; font-size: 12px;
  border: 1px solid rgba(47, 217, 255, .4); color: var(--accent); background: rgba(47, 217, 255, .08);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 16px;
  font-size: 14px; color: #fff; cursor: pointer; font-family: inherit;
  background: linear-gradient(180deg, rgba(47, 160, 255, .25), rgba(47, 160, 255, .55));
  border: 1px solid var(--line-strong);
}
.btn:hover { box-shadow: 0 0 12px rgba(47, 217, 255, .5); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-2); } /* 次要按钮：透明底 */

/* 筛选提示条 */
/* 从其他页面下钻过来（URL 带筛选参数）时显示在中栏顶部，如“当前筛选：中国”；默认隐藏，加 .show 后显示 */
.filter-bar {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: none; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; font-size: 14px;
  background: rgba(196, 133, 26, .18); border: 1px solid rgba(242, 184, 75, .6); color: #ffe2a8;
}
.filter-bar.show { display: flex; }

/* 底部 */
/* 页脚：数据来源说明（由 common.js 插入） */
.footer {
  position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px;
  color: var(--text-3); letter-spacing: 1px; z-index: 2;
}
.footer a:hover { color: var(--accent); }

/* 结论文字 */
/* “数据解读”面板：b 为金色重点数字，strong 为白色强调文字 */
.insight { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.insight b { color: var(--gold); font-weight: 600; font-family: var(--num-font); font-size: 18px; margin: 0 2px; }
.insight strong { color: #fff; font-weight: 600; }

/* 图例说明小字 */
.note { font-size: 12px; color: var(--text-3); }
