/* ============ 基础与主题变量 ============ */
:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #111827;
  --brand-2: #374151;
  --accent: #0ea5e9;     /* 轻微点缀色（用于边缘高亮） */
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.12);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #0b0e13;
    --card: #111418;
    --text: #e5e7eb;
    --muted: #96a0aa;
    --border: #1f242b;
    --brand: #e5e7eb;
    --brand-2: #9ca3af;
    --accent: #22d3ee;
  }
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* 宽度容器 */
.page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ============ 顶部 Hero ============ */
.hero{
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(14,165,233,.10), transparent 60%),
    linear-gradient(180deg, var(--card), var(--card));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-sep{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner{
  padding: 48px 28px 32px;
  text-align: center;
}

.title{
  margin: 0 0 8px;
  font-size: clamp(40px, 6.2vw, 64px);
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--brand);
}

.subtitle{
  margin: 0 auto 18px;
  max-width: 920px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.45;
  color: var(--brand-2);
}

.authors{
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 1.75;
}

.affiliations{
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--muted);
}

/* CTA 胶囊按钮 */
.cta-group{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}
.cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.cta:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: #1f2937;
}

/* ============ 主体 Section ============ */
.main{
  margin-top: 32px;
}
.section{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px 20px 10px;
}
.section-title{
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

/* ============ Demo 表格化 Grid ============ */
.demo-table{
  width: 100%;
  display: grid;
  gap: 10px;
}

/* 头部行 */
.demo-head{
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, transparent));
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
}

/* 数据行 */
.demo-row{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.demo-row:nth-child(odd):not(.demo-head){
  background: var(--card);
}
.demo-row:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--border) 70%, var(--accent));
}

.cell{
  padding: 14px 12px;
  font-size: 14.5px;
  line-height: 1.55;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cell:last-child{ border-right: none; }

/* 音频控件拉满列宽 */
audio{ width: 100%; outline: none; }

/* ============ 移动端 ============ */
@media (max-width: 860px){
  .hero-inner{ padding: 40px 18px 26px; }
  .cta{ padding: 10px 16px; }

  /* 手机端把“表格”转为卡片堆叠 */
  .demo-head{ display: none; }
  .demo-row{
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cell{
    border-right: none;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
    text-align: left;
  }
  .cell:first-child{ border-top: none; }
  .cell audio{ width: 100%; }
}

/* 页脚 */
.footer{
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  margin: 22px 0 0;
}

/* ====== Bigger & Bolder overrides ====== */

/* 让页面更宽一些（从 1100px 提到 1280px；也可以用 90vw 自适应更宽屏） */
.page{
  max-width: 1280px;
  padding: 40px 24px 56px;  /* 外边距稍加大，更有呼吸感 */
}

/* 顶部 Hero：标题更大更粗，副标题也更明显 */
.title{
  font-size: clamp(48px, 7.2vw, 78px); /* 原 40~64 → 48~78 */
  font-weight: 900;
  letter-spacing: .2px;
}
.subtitle{
  font-size: clamp(22px, 2.6vw, 30px);  /* 副标题更大 */
  font-weight: 800;                      /* 更粗更有层级 */
  line-height: 1.6;
  letter-spacing: .2px;
  max-width: 1040px;                     /* 行宽略放宽，视觉更稳 */
}

.authors{
  font-size: 19px;                       /* 作者行比正文大一档 */
  font-weight: 700;                      /* 明显加粗，便于扫读 */
  line-height: 2;
}

.affiliations{
  font-size: 17px;                       /* 机构略小于作者 */
  font-weight: 600;                      /* 比普通正文稍粗 */
  line-height: 1.9;
  color: var(--muted);
}

/* 顶部卡片内边距增大，让内容更“撑开” */
.hero-inner{ padding: 56px 36px 36px; }

/* CTA 胶囊按钮更显眼更粗壮 */
.cta{
  padding: 12px 20px;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
}
.cta i{ font-size: 16px; }

/* Section 卡片增大内边距、标题更粗 */
.section{
  padding: 32px 24px 14px;
}
.section-title{
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Demo 表头更大更粗；每行更高、留白更足 */
.demo-head{
  font-size: 16px;
  font-weight: 800;
  padding: 14px 16px;
}
.demo-row{
  border-radius: 14px;
}
.cell{
  padding: 18px 16px;   /* 原 14x12 → 18x16 */
  font-size: 16px;      /* 原 14.5 → 16 */
  line-height: 1.7;
}

/* 音频控件在不同浏览器可见度更好（宽已100%，这里增大最小高度） */
audio{
  min-height: 44px;     /* 更“触屏友好” */
}

/* 页脚也略放大 */
.footer{
  font-size: 14px;
  margin-top: 28px;
}

/* 可选：让整体卡片阴影更明显一点（更有“厚度”） */
.hero,
.section{
  box-shadow: 0 16px 44px rgba(0,0,0,.12);
}

/* 如果你想整体再放大一点点，也可以把 body 的基准字号抬高到 17px */
@media (min-width: 800px){
  body{ font-size: 17px; }
}

/* 统一 Emoji / IMG 图标的尺寸与间距 */
.cta .emoji,
.cta .icon{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  line-height: 1;
}

/* arXiv 外链 SVG 在深色按钮上更清晰（有些是黑字），强制变为浅色 */
.cta .icon{
  filter: brightness(0) invert(1);
}

/* 统一图标“占位宽度 + 垂直居中 + 与文本的固定间距” */
.cta .glyph{
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  line-height: 1;        /* 消除基线落差 */
  vertical-align: middle;
}

/* 字体类图标（FA 和 Emoji）的字号统一到同一视觉尺寸 */
.cta .glyph:not(img){     /* <i> 和 <span>（emoji） */
  font-size: 18px;
}

/* 图片图标（arXiv SVG）适配容器 */
.cta img.glyph{
  object-fit: contain;
  filter: none;          /* 用的是白色 SVG，无需反相 */
}
