/* =========================================================
   关于我们 · 移动版（about-m.html）
   视觉语言与首页完全一致：暖纸底 · 墨色粗体 · 金色点缀
   移动优先：单列、大点击区、章节快捷导航、安全区适配
   本文件在 about.css 之后加载，用于覆盖为移动版式
   ========================================================= */

html { scroll-padding-top: 118px; }

* { -webkit-tap-highlight-color: transparent; }

/* ---------- Header ---------- */
.abm-header { padding-bottom: 0; }
.abm-header-inner { padding-inline: 18px; }

/* ---------- 章节快捷导航（横向滑动 chips） ---------- */
.abm-nav {
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.abm-nav::-webkit-scrollbar { display: none; }

.abm-nav-list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 18px 10px;
  list-style: none;
  width: max-content;
}

.abm-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 .85rem;
  white-space: nowrap;
  border: 1px solid rgba(20, 20, 15, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.abm-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- 内容容器 ---------- */
.abm-page {
  max-width: 560px;
  padding: clamp(.8rem, 2.4vh, 1.6rem) 18px calc(2.4rem + env(safe-area-inset-bottom));
}
.abm-block { margin-top: 2.2rem; }

/* ---------- 品牌头部 ---------- */
.abm-hero { padding-top: .4rem; }
.abm-logo { width: 84px; height: 84px; }
.abm-brand { font-size: 2.15rem; letter-spacing: .12em; }
.abm-sub {
  margin: .7rem 0 0;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--ink-mute);
}

/* ---------- 正文排版（手机阅读密度） ---------- */
.abm-page .ab-lead,
.abm-page .ab-body {
  font-size: .95rem;
  line-height: 1.95;
}
.abm-page .ab-h2 { letter-spacing: .1em; }
.abm-page .ab-card { padding: 1.15rem 1rem; border-radius: 18px; }
.abm-page .ab-card-title { font-size: 1rem; }
.abm-page .ab-card-desc { font-size: .9rem; line-height: 1.8; }
.abm-page .ab-name { padding: 1.15rem 1.05rem; border-radius: 16px; }
.abm-page .ab-mission { border-radius: 18px; padding: 1.5rem 1.2rem; }
.abm-page .ab-mission-body { font-size: .95rem; }
.abm-page .ab-boundary { padding: 1.15rem 1.05rem; border-radius: 0 14px 14px 0; font-size: .92rem; }

/* ---------- 价值观：关键词与释义上下两行 ---------- */
.abm-page .ab-value {
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.abm-page .ab-value-k { min-width: 0; }
.abm-page .ab-value-d { flex: 1 1 100%; font-size: .92rem; }

/* ---------- 回到顶部 ---------- */
.abm-top {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 30px -18px rgba(20, 20, 15, .7);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.abm-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.abm-top svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.abm-footer-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
.abm-footer .footer-left { gap: 1.1rem; }

/* =========================================================
   平板 / 大屏：仍是移动版式，仅放宽容器与字号
   ========================================================= */
@media (min-width: 480px) {
  .abm-page { padding-inline: 24px; }
  .abm-header-inner { padding-inline: 24px; }
  .abm-nav-list { padding-inline: 24px; }
  .abm-logo { width: 92px; height: 92px; }
  .abm-brand { font-size: 2.4rem; }
}

/* 移动版在大屏下也不切换为双列，保持单列阅读 */
@media (min-width: 760px) {
  .ab-cards { grid-template-columns: 1fr; }
  .ab-mission { flex-direction: column; gap: 24px; }
  .ab-mission-div {
    width: 100%;
    height: 1px;
    align-self: auto;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  }
  .abm-footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .abm-top { transition: none; }
}
