/* ============================================================
 * about-m.css — 仅 about.html 引用
 * 移动端关于页（≤767px）：m-* 专用结构，桌面零改动
 * 依赖：about.css（桌面布局）
 * ============================================================ */

.m-top, .m-hero, .m-ab-card, .m-ab-sec, .m-footer, .m-tabbar, .m-drawer { display: none; }

@media (max-width: 767px) {
  /* 隐藏桌面结构（本文件仅关于页加载） */
  .ag-header,
  .game-main,
  .game-footer { display: none !important; }

  /* game.css 的移动端块有 html,body{padding:0!important}（为游戏页全屏画布写的），
     会把本站通用的 body{padding:10px} 干掉，导致关于页整页比其他页宽 20px、视觉上"被放大"。
     这里用更高特异性补回，与其他页面（style.css 的 10px 左右留白）保持一致。 */
  body.ag-page { padding: 10px 10px calc(58px + env(safe-area-inset-bottom)) !important; }

  .m-top { display: block; }
  .m-hero, .m-ab-card, .m-ab-sec { display: block; }
  .m-tabbar { display: flex; }

  /* ---------- 顶栏 ---------- */
  .m-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
  }
  .m-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .m-logo img { height: 40px; }
  .m-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
  .m-logo-text b {
    font-size: 19px; color: #ffcc00; letter-spacing: 2px; font-weight: 800;
    text-shadow: 0 0 14px rgba(255, 204, 0, .45);
  }
  .m-logo-text i { font-style: normal; font-size: 9.5px; color: #9a93a8; letter-spacing: 2.5px; }
  .m-topbar-actions { display: flex; gap: 8px; }
  .m-ico-btn {
    width: 40px; height: 40px; border-radius: 11px;
    background: #17171f; border: 1px solid #2b2b36; color: #e8e8f0;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .m-ico-btn--gold {
    background: linear-gradient(160deg, #ffd54a, #ffaa00);
    border-color: transparent; color: #1a1206;
    box-shadow: 0 2px 10px rgba(255, 170, 0, .35);
  }

  /* ---------- 搜索框 ---------- */
  .m-search {
    display: flex; align-items: center; gap: 8px;
    margin: 2px 14px 10px; padding: 0 12px;
    height: 38px; border-radius: 11px;
    background: #14141b; border: 1px solid #2b2b36; color: #8a8a96;
  }
  .m-search input {
    flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
    color: #f0f0f5; font-size: 14px;
  }
  .m-search input::placeholder { color: #6b6b78; }
  .m-search button {
    background: transparent; border: 0; color: #ffcc00;
    font-size: 14px; font-weight: 700; cursor: pointer; padding: 4px 2px;
  }

  /* ---------- 分类导航条 ---------- */
  .m-catnav {
    display: flex; align-items: stretch;
    padding: 6px 10px 10px; gap: 4px;
    border-bottom: 1px solid #1d1d26;
  }
  .m-catnav a {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 0; border-radius: 11px; text-decoration: none;
    color: #c9c9d4; font-size: clamp(10.5px, 3.1vw, 12px); font-weight: 600;
  }
  .m-catnav a span { white-space: nowrap; }
  .m-catnav a svg { width: 21px; height: 21px; }
  .m-catnav a.active {
    background: linear-gradient(160deg, #ffd54a, #ffaa00);
    color: #1a1206; font-weight: 800;
    box-shadow: 0 2px 10px rgba(255, 170, 0, .3);
  }

  /* ---------- 抽屉菜单 ---------- */
  .m-drawer {
    display: none;
    position: fixed; z-index: 90;
    top: 64px; right: 14px; min-width: 148px;
    background: #17171f; border: 1px solid #2b2b36; border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
    overflow: hidden;
  }
  .m-drawer.open { display: block; }
  .m-drawer a {
    display: block; padding: 11px 18px; color: #d8d8e2;
    font-size: 14px; text-decoration: none; border-bottom: 1px solid #22222c;
  }
  .m-drawer a:last-child { border-bottom: 0; }
  .m-drawer a:active { background: #20202b; color: #ffcc00; }

  /* ---------- Banner（关于复古游戏厅） ---------- */
  .m-hero--about {
    display: block;
    margin: 12px 12px 0;
    aspect-ratio: 823 / 203;
    border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(150, 90, 255, .25);
    background: url('../images/common/about-hero.jpg') center / 100% 100% no-repeat, #0a0a0f;
  }

  /* ---------- 通用区块标题 ---------- */
  .m-ab-head { padding: 0 2px; margin-bottom: 10px; }
  .m-ab-head h2 {
    margin: 0; display: flex; align-items: center; gap: 8px;
    color: #ffcc00; font-size: 17.5px; font-weight: 800; letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(255, 204, 0, .4);
  }
  .m-ab-head .h-ic {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1;
    text-shadow: 0 0 10px rgba(255, 204, 0, .6);
  }
  .m-ab-head .h-ic--pad svg { width: 22px; height: 22px; color: #ffcc00; filter: drop-shadow(0 0 6px rgba(255, 204, 0, .5)); }
  .m-ab-head .h-en {
    display: block; margin: 4px 0 0 30px;
    color: #6b6273; font-size: 10px; letter-spacing: 2.5px;
  }

  /* ---------- 通用暗紫卡片 ---------- */
  .m-ab-card {
    margin: 0 12px;
    padding: 14px 13px;
    border-radius: 14px;
    background: linear-gradient(155deg, #1a1322, #100f16);
    border: 1px solid #37284e;
    box-shadow: 0 4px 18px rgba(80, 40, 160, .12);
  }

  /* ---------- 网站简介 ---------- */
  .m-ab-intro { margin-top: 14px; }
  .m-ab-intro-body {
    display: flex; align-items: center; gap: 10px;
  }
  .m-ab-intro-img {
    width: 104px; flex: 0 0 104px;
    align-self: flex-start;
  }
  .m-ab-intro-body p {
    flex: 1; min-width: 0; margin: 0;
    color: #d8d8e2; font-size: 13px; line-height: 1.85;
    text-align: justify;
  }
  .m-ab-slogan {
    margin-top: 12px;
    aspect-ratio: 745 / 63;
    border-radius: 10px; overflow: hidden;
    background: url('../images/common/about-slogan.jpg') center / 100% 100% no-repeat, #17101f;
  }

  /* ---------- 我们的优势 ---------- */
  .m-ab-sec { margin: 20px 12px 0; }
  .m-ab-feats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  }
  .m-ab-feat {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 8px;
    border-radius: 12px;
    background: linear-gradient(150deg, #17121f, #100f16);
    border: 1px solid #322746;
  }
  .m-ab-feat img { width: 38px; flex: 0 0 38px; }
  .m-ab-feat .ft { flex: 1; min-width: 0; }
  .m-ab-feat h3 {
    margin: 0; color: #f2f2f5; font-size: 13px; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .m-ab-feat p {
    margin: 4px 0 0; color: #8a8a96; font-size: 9.5px; line-height: 1.6;
  }

  /* ---------- 我们的愿景 ---------- */
  .m-ab-vision {
    display: flex; align-items: center; gap: 10px;
    background:
      radial-gradient(90px 70px at 82% 30%, rgba(150, 90, 255, .18), transparent 70%),
      linear-gradient(155deg, #1a1322, #100f16);
    padding: 16px 13px;
  }
  .m-ab-vision-txt { flex: 1; min-width: 0; }
  .m-ab-vision-title {
    color: #ffcc00; font-size: 17px; font-weight: 800; letter-spacing: .5px;
    text-shadow: 0 0 14px rgba(255, 170, 0, .5);
    white-space: nowrap;
  }
  .m-ab-vision-txt p {
    margin: 10px 0 0; color: #c9c9d4; font-size: 12.5px; line-height: 1.9;
    text-align: justify;
  }
  .m-ab-vision-img { width: 96px; flex: 0 0 96px; }

  /* ---------- 简化页脚 ---------- */
  .m-footer {
    display: block;
    margin-top: 22px; padding: 16px 14px 18px;
    border-top: 1px solid #1d1d26; text-align: center;
  }
  .m-footer p { margin: 0 0 6px; }
  .m-footer-copy { color: #9a9aa6; font-size: 11.5px; }
  .m-footer-copy .arr { color: #7b5cd6; }
  .m-footer-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 !important; }
  .m-footer-links a { color: #9a9aa6; font-size: 11.5px; text-decoration: none; }
  .m-footer-links span { color: #33333e; }

  /* ---------- 底部 TabBar（首页/分类/排行/主机/我的） ---------- */
  .m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(14, 14, 20, .96);
    border-top: 1px solid #23232d;
    backdrop-filter: blur(10px);
  }
  .m-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #8a8a96; font-size: 11px; text-decoration: none;
  }
  .m-tabbar a svg { width: 22px; height: 22px; }
  .m-tabbar a.active { color: #ffcc00; font-weight: 700; }
}
