/* shots.css —— 01 模式 #modes 与 08 远征 #expedition：实机截图 + 页签（shots.js）。
   截图都来自同一台本机实例、同一时刻（docs/longe-site.md「实机截图」）；页面只摆图、不改图。
   无 JS：页签条隐藏，面板依次铺开；有 JS（.is-tabbed）：一次只显示一张。 */

/* ── 页签：像素字分段控件，样子照产品右上角的模式菜单 ── */
.sh-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 56px 0 20px; border: 1px solid var(--line-1); border-radius: 10px; background: var(--sidebar); }
.sh-tabs [role="tab"] { min-width: 64px; min-height: 36px; padding: 0 13px; text-align: left; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-3); cursor: pointer; }
.sh-tabs [role="tab"]:hover { color: var(--text-1); }
.sh-tabs [role="tab"][aria-selected="true"] { background: var(--raised); border-color: var(--line-2); color: var(--text-1); }
.sh-tabs [role="tab"] .sh-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; background: var(--line-2); }
.sh-tabs [role="tab"][aria-selected="true"] .sh-dot { background: var(--accent); }

/* ── 面板：截图框（HUD 角标）+ 说明 ── */
.sh-panel { margin: 0; }
.sh-panel + .sh-panel { margin-top: 48px; }          /* 无 JS 时依次铺开 */
.is-tabbed .sh-panel + .sh-panel { margin-top: 0; }
.sh-shot { margin: 12px; container-type: inline-size; }
/* 截图都是 16:10。高度按容器宽度算再向下取整，免得 height:auto 带出小数、把后面的像素字挤到半像素上（audit pixel） */
.sh-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-1); border-radius: 10px; background: var(--stage); }
@supports (height: round(down, 62.5cqw, 1px)) {
  .sh-shot img { height: round(down, 62.5cqw, 1px); aspect-ratio: auto; }
}
.sh-cap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 24px 12px 0; }
@media (min-width: 768px) {
  .sh-cap { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}
.sh-cap h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sh-cap p { max-width: 680px; color: var(--text-2); text-wrap: pretty; }
.sh-cap .chip { font-size: 12px; }
.sh-cap .chip.chip-def { border-color: var(--success); color: var(--success); }

/* 面板切换：非减弱动效时淡入 */
@media (prefers-reduced-motion: no-preference) {
  .is-tabbed .sh-panel:not([hidden]) { animation: sh-in var(--t-m) var(--ease-out) both; }
}
@keyframes sh-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── 01 模式：底部那句「同一时刻」的说明 ── */
#modes .md-note { display: flex; gap: 12px; align-items: flex-start; max-width: 860px; margin: 48px 12px 0; padding: 20px 24px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--text-2); text-wrap: pretty; }
#modes .md-note .ic { margin-top: 6px; color: var(--warning); }
#modes .md-note b { color: var(--text-1); font-weight: 600; }

/* ── 08 远征：六张事实卡 ── */
/* 等分列用累计取整（data-grid="even"，写法同 06 的 .jr-facts），关 JS 时卡里的像素字也落在整像素上 */
#expedition .xc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 64px 0 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
  #expedition .xc-grid { --s: calc(100% - 20px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  @supports (grid-template-columns: round(1px, 1px)) {
    #expedition .xc-grid { grid-template-columns: round(down, calc(var(--s) * 1 / 2 + .05px), 1px) minmax(0, 1fr); }
  }
}
@media (min-width: 1024px) {
  #expedition .xc-grid { --s: calc(100% - 48px); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  @supports (grid-template-columns: round(1px, 1px)) {
    #expedition .xc-grid { grid-template-columns:
      round(down, calc(var(--s) * 1 / 3 + .05px), 1px)
      calc(round(down, calc(var(--s) * 2 / 3 + .05px), 1px) - round(down, calc(var(--s) * 1 / 3 + .05px), 1px))
      minmax(0, 1fr); }
  }
}
#expedition .xc-grid h3 { margin-bottom: 8px; }
#expedition .xc-grid p { color: var(--text-2); font-size: 16px; line-height: 26px; text-wrap: pretty; }
#expedition .xc-grid .xc-k { display: block; margin-bottom: 12px; color: var(--accent-soft-text); }
#expedition .xc-note { max-width: 760px; margin-top: 40px; color: var(--text-3); text-wrap: pretty; }
#expedition .xc-note b { color: var(--text-1); font-weight: 600; }

@media (max-width: 767px) {
  .sh-tabs { margin-top: 40px; }
  .sh-shot { margin: 8px; }
  .sh-cap { margin-inline: 8px; }
  #modes .md-note { margin-inline: 8px; padding: 16px; }
}
