/* 六智宝库 - 关于页专用样式
   视觉基准：home/antacid.html
   数据条数字复用站点的 pH 三色渐变 #C73E2A → #C89F3D → #1E6B6E */

.about-content {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

/* ---------- 数据条 ---------- */
.about-stats {
  display: grid;
  /* auto-fit：桌面 4 项一行，窄屏自动折成 2 列，无需额外断点 */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.stat {
  --tone: var(--primary);
  padding: 1.35rem 1rem 1.2rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.stat b {
  display: block;
  font-family: 'Fraunces', 'Songti SC','Source Han Serif SC','SimSun', serif;
  font-size: 2.1rem; font-weight: 700; line-height: 1.1;
  /* 每个数字用自己的色相做深色渐变，避免整行都落在浅金上而发灰 */
  background: linear-gradient(135deg, var(--tone), color-mix(in srgb, var(--tone) 58%, #4A3410));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block; margin-top: .35rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 内容区块 ---------- */
.about-block { margin-bottom: 2.5rem; }
.about-block > h2 {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Fraunces', 'Songti SC','Source Han Serif SC','SimSun', serif;
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: .95rem;
}
.about-block > h2::before {
  content: ''; flex-shrink: 0;
  width: 4px; height: 1.15rem; border-radius: 2px;
  background: linear-gradient(180deg, #C73E2A, #1E6B6E);
}
.about-block > p {
  color: var(--muted);
  font-size: .95rem; line-height: 1.85;
}

/* ---------- 场景进度行 ---------- */
.progress-list { display: flex; flex-direction: column; gap: .7rem; }

.progress-row {
  --tone: var(--primary);
  display: flex; align-items: center; gap: .95rem;
  padding: 1.05rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tone) 6%, transparent), transparent 55%),
    var(--card);
  box-shadow: var(--card-shadow);
  text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.progress-row:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--tone) 32%, transparent);
  box-shadow: 0 18px 38px -26px color-mix(in srgb, var(--tone) 48%, rgba(44, 31, 18, .45));
}
.progress-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px; font-size: 1.1rem; line-height: 1;
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent);
}
.progress-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.progress-main strong { font-size: .98rem; font-weight: 700; }
.progress-main span { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.progress-state {
  margin-left: auto; flex-shrink: 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .24rem .62rem; border-radius: 999px;
}
.progress-state.is-live {
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent);
}
.progress-state.is-soon {
  color: var(--muted);
  background: rgba(111, 90, 71, .10);
  border: 1px solid rgba(111, 90, 71, .20);
}

/* ---------- 技术特点 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature-item {
  padding: 1.25rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s;
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 26%, transparent);
  box-shadow: 0 20px 42px -24px rgba(44, 31, 18, .42);
}
.feature-item h3 {
  display: flex; align-items: center; gap: .45rem;
  font-size: .95rem; font-weight: 700;
  margin-bottom: .45rem;
}
.feature-item p {
  font-size: .84rem; line-height: 1.68;
  color: var(--muted);
}

/* ---------- 常见问题（FAQ）----------
   用 <details> 折叠：答案文本始终留在 HTML 里，搜索引擎与 AI 抓取器都能读到；
   首个条目默认展开，保证正文中永远有一段完整的问答可见。 */
.faq-list { display: flex; flex-direction: column; gap: .65rem; }

.faq-item {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color .25s var(--ease);
}
.faq-item:hover { border-color: color-mix(in srgb, var(--primary) 26%, transparent); }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 24%, transparent); }

.faq-item > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: .95rem 2.6rem .95rem 1.2rem;
  font-size: .93rem; font-weight: 600; line-height: 1.5;
  color: var(--fg);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* 展开指示符（纯 CSS 箭头） */
.faq-item > summary::after {
  content: '';
  position: absolute; right: 1.3rem; top: 50%;
  width: .5rem; height: .5rem;
  margin-top: -.34rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease), margin-top .25s, border-color .25s;
}
.faq-item[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: -.14rem;
  border-color: var(--primary);
}

.faq-answer { padding: 0 1.2rem 1.05rem; }
.faq-answer p { font-size: .88rem; line-height: 1.8; color: var(--muted); }
.faq-answer p + p { margin-top: .6rem; }
.faq-answer code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .85em;
  padding: .08em .4em; border-radius: 4px;
  background: rgba(44, 31, 18, .07);
  color: var(--fg);
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .about-stats { gap: .7rem; margin-bottom: 2.1rem; }
  .stat { padding: 1.05rem .6rem .95rem; border-radius: 12px; }
  .stat b { font-size: 1.6rem; }
  .stat span { font-size: .72rem; }
  .about-block { margin-bottom: 2rem; }
  .about-block > h2 { font-size: 1.18rem; }
  .progress-row { padding: .95rem 1.05rem; gap: .8rem; }
  .progress-icon { width: 36px; height: 36px; font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-item > summary { padding: .85rem 2.3rem .85rem 1rem; font-size: .88rem; }
  .faq-item > summary::after { right: 1.1rem; }
  .faq-answer { padding: 0 1rem .95rem; }
}

/* ============ hover-feedback:faq-summary ============ */
.faq-item > summary {
  transition: background-color .18s var(--ease, ease), color .18s var(--ease, ease);
}
@media (hover: hover) {
  .faq-item > summary:hover {
    background: color-mix(in srgb, var(--primary) 6%, transparent);
    color: var(--primary);
  }
}


/* ============ hover-feedback:cards ============ */
/* 关于页四个统计卡：与 topic.css .stat-cell / antacid.css .kpi-cell 同族，
   那两处都有 hover，此处沿用完全相同的数值。
   [WARN] 只写 transform + box-shadow，不写 border-color：
      这些卡片里有用 border-left-color / border-color 做语义配色的
      （.co-smell-card 的左侧竖线、.co-myth.is-wrong/.is-right 的红绿区分），
      :hover 里写 border-color 简写会在悬停瞬间把配色一起刷掉。 */
.stat {
  transition: transform .28s var(--ease, ease), box-shadow .28s var(--ease, ease);
}

@media (hover: hover) {
  /* 先给"无位移也有反馈"的那部分：降动态偏好下同样保留 */
  .stat:hover { box-shadow: 0 8px 18px -10px rgba(44, 31, 18, .20); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stat:hover { transform: translateY(-2px); }
}


/* ============ 资料来源与编制说明页（sources.html）============
   与 about 页共用 .about-content / .about-block / .feature-grid 骨架，
   这里只补「编制流程 / 来源清单 / 边界条目 / 修订记录」四类新结构。
   [WARN] 卡片 hover 只写 transform + box-shadow，不写 border-color。 */

/* ---- 页头与正文栏对齐 ----
   common.css 的 .page-header 是 1100px、本页 .about-content 是 900px，
   两个宽度各自居中后左缘差 100px（1440 下页头内层 194 / 正文内层 294），
   标题看着"飘"在正文左边。
   这里只覆盖 about 系页面（about.css 仅 about.html 与 sources.html 引用，不动全站），
   把页头收到与正文同宽，两处内层左缘在 ≥900px 视口下严格对齐。 */
.page-header { max-width: 900px; }

/* ---- 编制流程（有序列表，编号用 counter 画，避免 list-style 在卡片里对不齐）---- */
.src-steps {
  counter-reset: step;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.src-steps > li {
  counter-increment: step;
  padding: .85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) {
  .src-steps > li:hover { box-shadow: 0 14px 30px -20px rgba(44, 31, 18, .42); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .src-steps > li:hover { transform: translateY(-2px); }
}
.src-steps strong {
  display: block;
  font-size: .9rem;
  margin-bottom: .2rem;
}
.src-steps strong::before {
  content: counter(step) ". ";
  color: var(--primary);
  font-weight: 700;
}
.src-steps span {
  display: block;
  font-size: .84rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---- 来源清单 ---- */
.src-group { margin-top: 1.6rem; }
.src-group > h3 {
  position: relative;
  font-size: .92rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: .7rem;
  padding-left: .75rem;
}
.src-group > h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: .15rem;
  width: 3px;
  height: .95rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #C73E2A, #1E6B6E);
}
.src-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.src-item {
  padding: .8rem .95rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
@media (hover: hover) {
  .src-item:hover { box-shadow: 0 14px 30px -20px rgba(44, 31, 18, .42); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .src-item:hover { transform: translateY(-2px); }
}
/* 用 grid 而不是 flex-wrap：flex-wrap 下名称过长会整块掉到徽章下方，
   实测 23 条里 2 条 nameL=16、其余 81~146（左缘 5 种缩进）+ 行高 96/122/144 三档。
   grid 让名称始终留在第 2 列内换行，左侧不再跳位。
   第 1 列 minmax(6rem, max-content)：当前最宽徽章 88px ≤ 96px，
   所以 23 条第 1 列一律 96px，名称左缘统一 16+96+8 = 120px。 */
.src-head {
  display: grid;
  grid-template-columns: minmax(6rem, max-content) minmax(0, 1fr);
  align-items: baseline;
  column-gap: .5rem;
  row-gap: .25rem;
}
.src-kind {
  white-space: nowrap;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 4px;
  padding: .1rem .42rem;
}
.src-name {
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--fg);
}
.src-url {
  display: inline-block;
  margin-top: .28rem;
  font-size: .74rem;
  color: var(--accent);
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.src-url:hover { border-bottom-color: currentColor; }
.src-note {
  margin-top: .32rem;
  font-size: .79rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- 内容边界 ---- */
.src-bounds {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.src-bounds > li {
  padding: .7rem .95rem;
  font-size: .86rem;
  line-height: 1.75;
  color: var(--muted);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  border-left: 3px solid color-mix(in srgb, var(--primary) 42%, transparent);
  border-radius: 0 10px 10px 0;
}
.src-bounds strong { color: var(--fg); }

/* ---- 修订记录 ---- */
.rev-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
/* 用 grid 固定日期列（11.5rem = 184px，最长日期实测 167px），
   原 space-between 下日期左缘随文本长度漂移（实测 966 / 1037 两种），
   看起来"每行日期起手位置不一样"。改左对齐 + tabular-nums 后日期自成一列。 */
.rev-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11.5rem;
  align-items: baseline;
  column-gap: 1rem;
  padding: .55rem .8rem;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: .84rem;
  line-height: 1.6;
}
.rev-name { color: var(--fg); }
.rev-date {
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: .76rem;
  color: var(--muted);
}

/* ---- 纠错联系 ---- */
.src-contact {
  margin-top: .9rem;
  font-size: .92rem;
}
.src-contact a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 34%, transparent);
  transition: border-color .2s var(--ease);
}
.src-contact a:hover { border-bottom-color: currentColor; }

/* ---- 窄屏 ---- */
@media (max-width: 640px) {
  /* 两处已由 flex 改 grid，这里同步成单列堆叠。
     justify-items: start —— 单列下 grid item 默认 stretch，
     不加会把 .src-kind 徽章拉成通栏（看着像一条色带）。 */
  .src-head { grid-template-columns: minmax(0, 1fr); row-gap: .25rem; justify-items: start; }
  .rev-row { grid-template-columns: minmax(0, 1fr); row-gap: .12rem; }
}
