/* Rubik 字体子集声明（原写在各页内联 <style> 中）。
   因本文件为静态资源、无法解析 ${files} 模板变量，此处改用相对路径：
   richtext.css 位于 _files/css/，字体位于 _files/font/，故用 ../font/ */
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 500;
  src: url(../font/cyrillic/normal.woff2);
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 500;
  src: url(../font/hebrew/normal.woff2);
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 500;
  src: url(../font/latin-ext/normal.woff2);
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 500;
  src: url(../font/latin/normal.woff2);
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 500;
  src: url(../font/arabic/normal.woff2);
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 500;
  src: url(../font/cyrillic-ext/normal.woff2);
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  font-display: swap;
}

/* ===========================================================
   richtext.css — 文章富文本（.game_info）排版增强 + 语义组件
   · 作用域严格限定在 .game_info，全站其它页面不受影响
   · 不改动全局 p.css：设计令牌以"局部变量 --rt-*"声明在本作用域内
   · 复用现有令牌（--bg-* / --accent / --border / --text-*），
     因此深色 / .theme-light 浅色主题均自动适配
   =========================================================== */

/* ---------- 0. 局部设计令牌（仅 .game_info 内生效） ---------- */
.game_info {
  --rt-radius-sm: 6px;
  --rt-radius-md: 12px;
  --rt-radius-lg: 16px;
  --rt-shadow-sm: 0 1px 3px rgba(0, 0, 0, .28);
  --rt-shadow-md: 0 4px 12px rgba(0, 0, 0, .32);
  --rt-shadow-lg: 0 10px 25px rgba(0, 0, 0, .38);
  --rt-transition: all .25s cubic-bezier(.4, 0, .2, 1);
  --rt-primary: var(--accent);
  --rt-primary-hover: var(--accent-hover);
  --rt-card-bg: var(--bg-card);
  --rt-border: var(--border);
  --rt-text-2: var(--text-secondary);
  --rt-track: var(--bg-hover);
  /* 新闻页复位：p.css 中 .game_info 为右侧广告栏预留宽度，本页无侧栏需全宽 */
  float: none;
  width: 100%;
  max-width: 100%;
  clear: both;
}
/* 浅色主题下阴影更轻，避免发脏 */
.theme-light .game_info {
  --rt-shadow-sm: 0 1px 3px rgba(0, 0, 0, .05);
  --rt-shadow-md: 0 4px 12px rgba(0, 0, 0, .08);
  --rt-shadow-lg: 0 10px 25px rgba(0, 0, 0, .12);
}

/* ---------- 1. Prose 基础排版增强（针对富文本原有标签） ---------- */

/* 段落：仅做外观（间距/行高），不改旧布局的 float */
.game_info p {
  margin: 0 0 1rem;
  line-height: 1.75;
}
/* 首段 lead：放大、次要色，作导语 */
.game_info > p:first-of-type {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* 标题装饰（覆盖旧 float 标题的左对齐，仅加视觉样式） */
.game_info h2 {
  font-size: var(--font-size-h2);
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.game_info h3 {
  float: none;
  width: auto;
  font-size: var(--font-size-lg);
  margin: 1.75rem 0 .75rem;
  padding-left: .75rem;
  border-left: 4px solid var(--accent);
  font-weight: 600;
}
.game_info h4 {
  float: none;
  width: auto;
  font-size: var(--font-size-base);
  margin: 1.25rem 0 .5rem;
  font-weight: 600;
  color: var(--accent);
}

/* 链接 */
.game_info a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.game_info a:hover {
  color: var(--accent-hover);
}

/* 列表：去掉旧 disc，自定义 accent 方块 marker */
.game_info ul,
.game_info ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}
.game_info li {
  margin: 0 0 .5rem;
  line-height: 1.7;
  padding-left: .25rem;
}
.game_info ul {
  list-style: none;
}
.game_info ul > li {
  position: relative;
  padding-left: 1.5rem;
}
.game_info ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.game_info ol {
  list-style: decimal;
}
.game_info ol > li::marker {
  color: var(--accent);
  font-weight: 600;
}

/* 引用块 */
.game_info blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--rt-radius-sm) var(--rt-radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.game_info blockquote p:last-child {
  margin-bottom: 0;
}

/* 分隔线 */
.game_info hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: var(--border);
}

/* 行内代码 */
.game_info code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bg-hover);
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .9em;
}

/* 表格卡片化 + 行 hover 高亮 */
.game_info table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--rt-radius-md);
  overflow: hidden;
  font-size: var(--font-size-sm);
}
.game_info th,
.game_info td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.game_info thead th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}
.game_info tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .03);
}
.game_info tbody tr:hover {
  background: var(--rt-track);
}
.game_info tbody tr:last-child td {
  border-bottom: 0;
}

/* 图片（已在 p.css 修正为正常流，这里补装饰与对齐工具类） */
.game_info img {
  display: block;
  margin: 1.5rem 0;
}
.game_info figure {
  margin: 1.5rem 0;
}
.game_info figcaption {
  margin-top: .5rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-align: center;
}
.game_info img.align-left {
  float: left;
  margin: .5rem 1.5rem .5rem 0;
  max-width: 50%;
}
.game_info img.align-right {
  float: right;
  margin: .5rem 0 .5rem 1.5rem;
  max-width: 50%;
}
.game_info img.align-center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 2. 语义组件（内容编辑在富文本里手动加 class） ---------- */

/* 通用提示框 callout：默认 info；变体 .tip / .warning / .note */
.game_info .callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border-radius: var(--rt-radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  line-height: 1.6;
  box-shadow: var(--rt-shadow-sm);
  transition: var(--rt-transition);
}
.game_info .callout::before {
  content: "\2139";
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 1.25rem;
  color: var(--accent);
}
.game_info .callout.tip {
  border-color: var(--success);
}
.game_info .callout.tip::before {
  content: "\2714";
  color: var(--success);
}
.game_info .callout.warning {
  border-color: var(--accent);
  background: rgba(245, 158, 11, .12);
}
.game_info .callout.warning::before {
  content: "\0021";
  color: var(--accent);
}
.game_info .callout.note::before {
  content: "\270E";
}
.game_info .callout p:last-child {
  margin-bottom: 0;
}

/* 信息卡 infobox：用于参数/摘要，内部用 dl 或 ul */
.game_info .infobox {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--rt-radius-md);
  background: var(--bg-card);
  box-shadow: var(--rt-shadow-md);
}
.game_info .infobox h4 {
  margin: 0 0 .75rem;
  padding: 0 0 .5rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}
.game_info .infobox dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1rem;
  margin: 0;
}
.game_info .infobox dt {
  color: var(--text-secondary);
  font-weight: 600;
}
.game_info .infobox dd {
  margin: 0;
}
.game_info .infobox ul {
  margin: 0;
}

/* 卡片网格 card-grid：子项 .card（带阴影 + hover 抬升） */
.game_info .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.game_info .card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--rt-radius-md);
  background: var(--bg-secondary);
  box-shadow: var(--rt-shadow-sm);
  transition: var(--rt-transition);
}
.game_info .card:hover {
  box-shadow: var(--rt-shadow-md);
  transform: translateY(-2px);
}
.game_info .card h4 {
  margin: 0 0 .5rem;
  color: var(--accent);
}
.game_info .card p:last-child {
  margin-bottom: 0;
}

/* 特性勾选列表 feature-list */
.game_info .feature-list {
  list-style: none;
  margin: 1.5rem 0;
}
.game_info .feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .75rem;
}
.game_info .feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
}

/* ---------- 3. 参考方案扩展组件（badge / 表格 / FAQ / 媒体） ---------- */

/* 胶囊标签 badge */
.game_info .rt-badge {
  display: inline-block;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 50px;
  background: var(--bg-hover);
  color: var(--accent);
  margin: 0 .35rem .5rem 0;
}

/* 表格响应式滚动包裹（内容用 <div class="rt-table-wrap"> 包住 table） */
.game_info .rt-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--rt-radius-sm);
  border: 1px solid var(--rt-border);
}
.game_info .rt-table-wrap > table {
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
}

/* FAQ 折叠（原生 <details>，无需 JS） */
.game_info .rt-faq {
  margin: 2rem 0;
}
.game_info details.rt-faq-item {
  background: var(--rt-card-bg);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-sm);
  padding: 0 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--rt-shadow-sm);
}
.game_info details.rt-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game_info details.rt-faq-item summary::-webkit-details-marker {
  display: none;
}
.game_info details.rt-faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--rt-transition);
}
.game_info details.rt-faq-item[open] summary::after {
  content: "\2212";
}
.game_info details.rt-faq-item .rt-faq-answer {
  padding: 0 0 1.25rem;
  color: var(--rt-text-2);
  font-size: .95rem;
  line-height: 1.7;
}

/* 媒体自适应包裹（iframe / video），默认 16:9，可选 4:3 / 1:1 */
.game_info .rt-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--rt-radius-md);
  box-shadow: var(--rt-shadow-md);
  background: #000;
  margin: 1.5rem 0;
}
.game_info .rt-media.ratio-4x3 {
  padding-bottom: 75%;
}
.game_info .rt-media.ratio-1x1 {
  padding-bottom: 100%;
}
.game_info .rt-media iframe,
.game_info .rt-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 宽幅配图工具类 */
.game_info img.rt-img {
  width: 100%;
  height: auto;
  border-radius: var(--rt-radius-md);
  box-shadow: var(--rt-shadow-sm);
  object-fit: cover;
  margin: 1.5rem 0;
}

/* ---------- 4. 移动端适配 ---------- */
@media (max-width: 768px) {
  .game_info .card-grid {
    grid-template-columns: 1fr;
  }
  .game_info img.align-left,
  .game_info img.align-right {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }
  .game_info > p:first-of-type {
    font-size: var(--font-size-base);
  }
  /* 触屏无 hover：取消抬升 */
  .game_info .card:hover {
    transform: none;
  }
}

/* ---------- 5. 新闻页组件（news.html，内容位于 .game_info 内） ---------- */

/* 基础复位：覆盖 p.css 通用 .game_info 图片/标题浮动布局，避免破坏新闻版式 */
.game_info img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  border-radius: 12px;
}
.game_info h2,
.game_info h3,
.game_info h4,
.game_info p,
.game_info ul,
.game_info ol,
.game_info li {
  float: none;
  clear: none;
  max-width: 100%;
}
.game_info h2,
.game_info h3,
.game_info h4,
.game_info p,
.game_info ul,
.game_info ol {
  width: 100%;
}
.game_info ul,
.game_info ol {
  padding-left: 1.25rem;
}
.game_info li {
  width: auto;
}

/* 工具类 */
.game_info .mb-30 {
  margin-bottom: 30px;
}

/* 纵向时间线 */
.game_info .timeline-section {
  margin: 2rem 0;
}
.game_info .timeline {
  position: relative;
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
}
.game_info .timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35rem;
  bottom: .35rem;
  width: 2px;
  background: var(--border);
}
.game_info .timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.game_info .timeline-item:last-child {
  padding-bottom: 0;
}
.game_info .timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: .35rem;
  width: 12px;
  height: 12px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-secondary);
}
.game_info .timeline-date {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.game_info .timeline-content h3 {
  border: none;
  padding: 0;
  margin: .25rem 0 .5rem;
  font-size: var(--font-size-lg);
}
.game_info .timeline-content p {
  margin-bottom: 0;
}

/* 新闻列表：单列纵向堆叠（不照抄 70/30 网格，本结构无侧栏） */
.game_info .news-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.game_info .news-full-item {
  display: flex;
  flex-direction: column;
  background: var(--rt-card-bg);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-md);
  box-shadow: var(--rt-shadow-sm);
  overflow: hidden;
  transition: var(--rt-transition);
}
.game_info .news-full-item:hover {
  box-shadow: var(--rt-shadow-md);
}
.game_info .news-full-image {
  width: 100%;
  height: 220px;
  display: block;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.game_info .news-full-content {
  padding: 1.25rem 1.5rem 1.5rem;
}
.game_info .news-date,
.game_info .news-source {
  display: inline-block;
  font-size: .8rem;
}
.game_info .news-date {
  margin-right: .75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.game_info .news-source {
  color: var(--accent);
  background: var(--bg-hover);
  padding: .15rem .6rem;
  border-radius: 50px;
}
.game_info .news-full-content h3 {
  border: none;
  padding: 0;
  margin: .75rem 0 .5rem;
  font-size: var(--font-size-lg);
  color: var(--text-primary);
}
.game_info .news-full-content p {
  margin-bottom: 0;
}

/* 桌面端：图文水平卡片（图左文右） */
@media (min-width: 768px) {
  .game_info .news-full-item {
    flex-direction: row;
    align-items: flex-start;
  }
  .game_info .news-full-image {
    width: 38%;
    min-width: 38%;
    height: 260px;
    object-fit: cover;
    object-position: center;
  }
  .game_info .news-full-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* 触屏：关闭新闻卡片 hover 抬升 */
@media (max-width: 768px) {
  .game_info .news-full-item:hover {
    box-shadow: var(--rt-shadow-sm);
  }
}
