/* ==========================================================
   Wide-screen layout layer — 900px and up.
   ----------------------------------------------------------
   视觉语言沿用手机版（纸张底色、细线卡片、衬线标题、绿色点缀），
   这里只把版式铺开到桌面宽度：1280px 内容列、两行导航、首屏左右分栏、
   各栏目多列网格、桌面尺寸的字号与间距。
   加载顺序在 mobile-* 之后，选择器统一带 html[data-layout="mobile"] 前缀。
   ========================================================== */

@media (min-width: 1024px) {
  /* ---------- 画布：1280px 内容列 ---------- */
  html[data-layout="mobile"] .wrap {
    width: min(100% - 48px, var(--wrap));
    max-width: none;
    padding-inline: 0;
  }
  html[data-layout="mobile"] #main > section.page-section {
    min-height: 100svh;
    padding: 0;
  }
  html[data-layout="mobile"] .page-section .section-inner {
    width: min(100% - 48px, var(--wrap));
    max-width: none;
    min-height: inherit;
    padding-top: calc(var(--cc-nav-clearance, 120px) + 34px);
    padding-bottom: clamp(66px, 8vh, 100px);
  }
  html[data-layout="mobile"] .page-section::before {
    left: max(24px, calc((100% - var(--wrap)) / 2));
    right: max(24px, calc((100% - var(--wrap)) / 2));
    opacity: .75;
  }
  html[data-layout="mobile"] .page-section::after {
    right: max(24px, calc((100% - var(--wrap)) / 2));
    top: 45%;
    font-size: clamp(38px, 6vw, 90px);
    opacity: 1;
  }
  html[data-layout="mobile"] .sec-head {
    max-width: 900px;
    margin: 0 0 clamp(32px, 4.5vw, 58px);
    padding-bottom: 24px;
  }
  html[data-layout="mobile"] .sec-head h2 {
    padding: 0 160px 0 0;
    font-size: clamp(38px, 5.2vw, 62px);
    line-height: 1.05;
    letter-spacing: -.035em;
  }
  html[data-layout="mobile"] .sec-head::after {
    position: absolute;
    top: 2px;
    right: 0;
    margin-top: 0;
    font-size: 9px;
    letter-spacing: .16em;
  }
  html[data-layout="mobile"] .sec-sub {
    max-width: 58ch;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.85;
  }

  /* ---------- 导航：整行铺开，栏目全部可见 ---------- */
  html[data-layout="mobile"] .nav {
    padding: 10px max(24px, calc((100% - var(--wrap)) / 2)) 0;
    gap: 3px 18px;
  }
  html[data-layout="mobile"] .nav-brand {
    margin-left: 0;
    min-height: 44px;
  }
  html[data-layout="mobile"] .nav-brand .mark { width: 30px; height: 30px; }
  html[data-layout="mobile"] .nav-name { font-size: 15px; letter-spacing: .02em; }
  html[data-layout="mobile"] .brand-english { margin-top: 4px; font-size: 8px; letter-spacing: .11em; }
  html[data-layout="mobile"] .nav-actions {
    margin-right: 0;
    gap: 4px;
  }
  html[data-layout="mobile"] .nav-actions .icon-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  html[data-layout="mobile"] #navLinks {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px;
    margin-top: 5px;
    padding: 2px 0 9px;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  html[data-layout="mobile"] #navLinks > a {
    flex: 0 0 auto;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    gap: 6px;
    padding: 0 9px;
    font-size: 12px;
    border-radius: 7px;
  }
  /* 桌面导航不重复图标，让 13 个栏目在 1280 内容列里排成一行。 */
  html[data-layout="mobile"] #navLinks > a svg { display: none; }
  html[data-layout="mobile"] #pagesBtn { display: none; }
  html[data-layout="mobile"] .nav-actions #helpBtn { display: inline-flex; }
  html[data-layout="mobile"] .nav-actions #helpBtn svg { width: 17px; height: 17px; }
  html[data-layout="mobile"] .progress { bottom: 0; }

  /* ---------- 首屏：文案左、时钟右 ---------- */
  html[data-layout="mobile"] .hero-stage {
    display: grid;
    flex-direction: initial;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    align-items: center;
    gap: clamp(32px, 5vw, 96px);
    min-height: 100svh;
    padding-top: calc(var(--cc-nav-clearance, 120px) + 34px);
    padding-bottom: 86px;
  }
  html[data-layout="mobile"] .hero-copy { padding: 0; }
  html[data-layout="mobile"] .hero-title {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    font-size: clamp(68px, 6.6vw, 112px);
    line-height: 1.04;
    letter-spacing: .02em;
  }
  html[data-layout="mobile"] .hero-wordmark { margin-top: 22px; font-size: 9px; letter-spacing: .14em; }
  html[data-layout="mobile"] .hero-lede {
    max-width: 35em;
    margin-top: 22px;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.95;
  }
  html[data-layout="mobile"] .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 23px;
    max-width: 560px;
    margin-top: 30px;
  }
  html[data-layout="mobile"] .hero-action {
    min-width: 176px;
    min-height: 47px;
    padding: 11px 15px;
    font-size: 12.5px;
  }
  html[data-layout="mobile"] .hero-action-secondary { border-color: transparent; padding-inline: 2px; }
  html[data-layout="mobile"] .hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 580px;
    margin-top: 34px;
    padding-top: 17px;
  }
  html[data-layout="mobile"] .hero-chip {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    padding: 0 20px 0 0;
    margin-right: 20px;
    font-size: 11px;
  }
  html[data-layout="mobile"] .hero-chip + .hero-chip {
    padding-left: 20px;
    border-left: 1px solid rgba(239, 239, 226, .17);
  }
  html[data-layout="mobile"] .hero-chip b { font-size: 18px; letter-spacing: -.05em; }
  html[data-layout="mobile"] .like-box { gap: 13px; margin-top: 21px; font-size: 11.5px; }
  html[data-layout="mobile"] .like-btn { min-height: 32px; padding: 5px 11px; font-size: 11.5px; }
  html[data-layout="mobile"] .like-hint { flex-basis: auto; font-size: 10.5px; }

  /* 时钟卡片恢复完整形态：表盘 + 读数 + 页脚 */
  html[data-layout="mobile"] .hero-stage > .clockwork {
    position: relative !important;
    display: block !important;
    justify-self: end;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 360px;
    min-height: 0;
    margin: 0;
    padding: 17px 18px 15px;
    border: 1px solid rgba(241, 242, 229, .23);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(43, 52, 44, .82), rgba(29, 37, 31, .72));
    box-shadow: 0 28px 80px rgba(8, 14, 10, .22);
  }
  html[data-layout="mobile"] .clock-head > span:last-child { display: inline !important; }
  html[data-layout="mobile"] .clock-art {
    display: block !important;
    width: min(100%, 220px);
    height: auto;
    margin: 14px auto 6px;
  }
  html[data-layout="mobile"] .clock-art-caption {
    display: block !important;
    right: -31px;
    bottom: 26px;
    font: 8px/1.7 var(--font-mono);
    letter-spacing: .08em;
  }
  html[data-layout="mobile"] .clock-read {
    margin-top: 4px;
    padding: 13px 0 10px;
    border-top: 1px solid rgba(240, 240, 227, .14);
    text-align: left;
  }
  html[data-layout="mobile"] .clock-time { font-size: clamp(24px, 2.5vw, 34px); }
  html[data-layout="mobile"] .clock-note { display: block !important; margin: 7px 0 15px; font-size: 10px; }
  html[data-layout="mobile"] .clock-footer {
    display: flex !important;
    padding-top: 12px;
    border-top: 1px solid rgba(240, 240, 227, .14);
    font-size: 8px;
  }
  html[data-layout="mobile"] .hero-frame {
    display: flex;
    top: calc(var(--cc-nav-clearance, 120px) + 2px);
    left: max(24px, calc((100% - var(--wrap)) / 2));
    right: max(24px, calc((100% - var(--wrap)) / 2));
  }
  html[data-layout="mobile"] .hero-frame span:last-child { display: none; }
  html[data-layout="mobile"] .hero-bottomline {
    display: flex;
    grid-column: 1 / -1;
    padding-top: 18px;
    margin-top: 1px;
    border-top: 1px solid rgba(240, 240, 229, .18);
    font-size: 10px;
    letter-spacing: .06em;
  }
  html[data-layout="mobile"] .enter-btn {
    display: flex;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 9px 12px;
    font-size: 10px;
  }
  /* 背景圆环与右侧时钟卡同心：圆心由 app.js 量出卡片中心后写入变量。 */
  html[data-layout="mobile"] .hero::after {
    top: var(--ring-top, 18%);
    right: auto;
    left: var(--ring-left, 7%);
    width: var(--ring-size, min(43vw, 650px));
    transform: none;
    opacity: 1;
  }
  html[data-layout="mobile"] .hero-gear-a { width: min(58vw, 880px); top: -42%; right: -26%; opacity: .34; }
  html[data-layout="mobile"] .hero-gear-b { width: min(20vw, 300px); left: -4%; bottom: 12%; opacity: .5; }

  /* 桌面不需要手机端的滚动换页控件与盖章邀请 */
  html[data-layout="mobile"] .mobile-next,
  html[data-layout="mobile"] .mobile-end { display: none !important; }

  /* ---------- 世界索引 ---------- */
  html[data-layout="mobile"] .stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 25px;
  }
  html[data-layout="mobile"] .sec-overview .stat-grid { margin-bottom: 25px; }
  html[data-layout="mobile"] .stat {
    min-height: 144px;
    padding: 22px 22px 20px 20px;
  }
  html[data-layout="mobile"] .stat:nth-child(n) { border-top: 0; border-left: 0; }
  html[data-layout="mobile"] .stat + .stat { border-left: 1px solid var(--line); }
  html[data-layout="mobile"] .stat:last-child { min-height: 144px; }
  html[data-layout="mobile"] .stat-num { flex-wrap: nowrap; font-size: clamp(27px, 3vw, 40px); }
  html[data-layout="mobile"] .stat-label { font-size: 12px; }
  html[data-layout="mobile"] .stat-note { font-size: 10.5px; }
  html[data-layout="mobile"] .split { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 18px; }
  html[data-layout="mobile"] .panel { padding: 22px 24px; }
  html[data-layout="mobile"] .panel-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.2;
  }
  html[data-layout="mobile"] .panel-title small { display: inline; margin: 0; font-size: 10px; text-align: right; }
  html[data-layout="mobile"] .sec-overview .panel { padding: 22px 24px; }
  html[data-layout="mobile"] .sec-overview .panel-title { margin-bottom: 20px; }
  html[data-layout="mobile"] .sec-overview .donut-wrap {
    display: grid;
    grid-template-columns: minmax(120px, .75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 16px;
  }
  html[data-layout="mobile"] .sec-overview .donut { width: min(100%, 210px); height: auto; }
  html[data-layout="mobile"] .sec-overview .donut-legend { gap: 10px !important; }
  html[data-layout="mobile"] .sec-overview .donut-legend > li {
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
  }
  html[data-layout="mobile"] .sec-overview .donut-legend .lg-name { font-size: 11px; }
  html[data-layout="mobile"] .sec-overview .bars { gap: 11px; }
  html[data-layout="mobile"] .sec-overview .bars li {
    grid-template-columns: 26px minmax(90px, .9fr) minmax(50px, 1.2fr) 52px;
    grid-template-areas: none;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
  }
  html[data-layout="mobile"] .sec-overview .bars .bar-name {
    grid-area: auto;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
  }
  html[data-layout="mobile"] .sec-overview .bars .bar-ico { grid-area: auto; width: 25px; height: 25px; }
  html[data-layout="mobile"] .sec-overview .bars .bar-track { grid-area: auto; width: auto; }
  html[data-layout="mobile"] .sec-overview .bars .bar-val { grid-area: auto; width: auto; font-size: 10px; }

  /* ---------- 模组档案 ---------- */
  html[data-layout="mobile"] .toolbar {
    position: sticky;
    top: calc(var(--cc-nav-clearance, 120px) + 6px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surf) 94%, transparent);
    box-shadow: 0 9px 22px -19px rgba(25, 35, 25, .35);
    backdrop-filter: blur(16px);
  }
  html[data-layout="mobile"] .toolbar .search {
    flex: 1 1 280px;
    width: auto;
    min-width: 220px;
    height: 43px;
    padding-inline: 13px;
    border-radius: 5px;
  }
  html[data-layout="mobile"] .toolbar .search input { font-size: 12.5px; }
  html[data-layout="mobile"] .toolbar .search input::placeholder { font-size: 12.5px; }
  html[data-layout="mobile"] .toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    width: auto;
  }
  html[data-layout="mobile"] .seg {
    display: flex;
    gap: 2px;
    width: auto;
    padding: 3px;
    border-radius: 5px;
  }
  html[data-layout="mobile"] .seg button { min-height: 29px; min-width: 0; padding: 5px 9px; font-size: 11px; }
  html[data-layout="mobile"] .seg-actions { padding: 0; }
  html[data-layout="mobile"] .chips {
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    overflow: visible;
  }
  html[data-layout="mobile"] .chip {
    flex: 0 0 auto;
    min-height: 0;
    padding: 6px 11px;
    font-size: 11px;
    border-radius: 4px;
  }
  html[data-layout="mobile"] .chip .c-count { font-size: 10px; }
  html[data-layout="mobile"] #mods .sig-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 17px 0;
    padding-bottom: 0;
    overflow: visible;
  }
  html[data-layout="mobile"] .sig { padding: 13px; gap: 12px; }
  html[data-layout="mobile"] .sig-name { font-size: 12px; }
  html[data-layout="mobile"] .sig-en { margin-top: 0; font-size: 9px; }
  html[data-layout="mobile"] .sig-note { font-size: 10.5px; line-height: 1.65; }
  html[data-layout="mobile"] .result-line { flex-wrap: nowrap; margin: 19px 2px 12px; font-size: 11px; }
  html[data-layout="mobile"] .mod-grid {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 9px;
  }
  html[data-layout="mobile"] .mod-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 5px 11px;
    padding: 12px;
    border-radius: 5px;
  }
  html[data-layout="mobile"] .mod-ico { width: 40px; height: 40px; }
  html[data-layout="mobile"] .mod-name { font-size: 12px; }
  html[data-layout="mobile"] .mod-note { font-size: 10.5px; line-height: 1.65; }

  /* ---------- 依赖图谱 ---------- */
  html[data-layout="mobile"] .graph-shell {
    height: min(70vh, 650px);
    min-height: 430px;
  }
  html[data-layout="mobile"] .graph-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  html[data-layout="mobile"] .gs { padding: 13px 15px; font-size: 11px; }
  html[data-layout="mobile"] .gs b { font-size: 16px; }

  /* ---------- wiki 指南 ---------- */
  html[data-layout="mobile"] .wiki-bar { flex-direction: row; align-items: center; gap: 14px; }
  html[data-layout="mobile"] .wiki-search { padding: 13px 15px; font-size: 12px; }
  html[data-layout="mobile"] .wiki-stat { text-align: right; font-size: 10px; }
  html[data-layout="mobile"] .wiki-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-layout="mobile"] .wiki-sec summary,
  html[data-layout="mobile"] .wiki-sec-head { padding: 15px 17px; }
  html[data-layout="mobile"] .wiki-sec-name { font-size: 13px; }

  /* ---------- 城市影像 ---------- */
  html[data-layout="mobile"] .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }
  html[data-layout="mobile"] .shot,
  html[data-layout="mobile"] .shot:nth-child(n) {
    grid-column: span 4;
    aspect-ratio: 4 / 3;
  }
  html[data-layout="mobile"] .shot:nth-child(7n + 1),
  html[data-layout="mobile"] .shot:nth-child(7n + 5) { grid-column: span 7; aspect-ratio: 16 / 9; }
  html[data-layout="mobile"] .shot:nth-child(7n + 2),
  html[data-layout="mobile"] .shot:nth-child(7n + 6) { grid-column: span 5; aspect-ratio: 16 / 9; }
  html[data-layout="mobile"] .shot .s-cap { padding: 38px 15px 13px; font-size: 11px; line-height: 1.4; }
  html[data-layout="mobile"] .shot .s-cap::before { display: block; }

  /* ---------- 创作者 ---------- */
  html[data-layout="mobile"] .creator-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  html[data-layout="mobile"] .creator-meta { align-items: center; gap: 9px; padding: 11px; }
  html[data-layout="mobile"] .creator-face { width: 32px; height: 32px; }
  html[data-layout="mobile"] .creator-name { font-size: 11.5px; white-space: nowrap; }
  html[data-layout="mobile"] .creator-tag { font-size: 9.5px; }
  html[data-layout="mobile"] .creator-hint { font-size: 8px; }

  /* ---------- 建筑坐标 ---------- */
  html[data-layout="mobile"] .build-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 13px;
  }
  html[data-layout="mobile"] .build-shot { aspect-ratio: 16 / 10; }
  html[data-layout="mobile"] .build-meta { padding: 15px 16px 17px; }
  html[data-layout="mobile"] .build-name { font-size: 20px; }
  html[data-layout="mobile"] .build-coord { gap: 8px; padding: 9px 10px; }
  html[data-layout="mobile"] .coord-text { font-size: 10px; }
  html[data-layout="mobile"] .coord-copy { width: 27px; flex: 0 0 27px; }
  html[data-layout="mobile"] .build-dim { font-size: 10px; }
  html[data-layout="mobile"] .build-note { font-size: 11px; line-height: 1.8; }

  /* ---------- 世界存档 ---------- */
  html[data-layout="mobile"] .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html[data-layout="mobile"] .dl-card { min-height: 200px; gap: 18px; padding: 19px; }
  html[data-layout="mobile"] .dl-top { padding-bottom: 13px; }
  html[data-layout="mobile"] .dl-title { padding-right: 0; font-size: 23px; line-height: 1.25; }
  html[data-layout="mobile"] .dl-note { padding-right: 0; font-size: 11px; }

  /* ---------- 安装上手 / 作品投稿 ---------- */
  html[data-layout="mobile"] .req-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 14px; }
  html[data-layout="mobile"] .req-table { table-layout: auto; }
  html[data-layout="mobile"] .req-table :is(th, td) { padding: 10px 8px; font-size: 11px; }
  html[data-layout="mobile"] .req-table :is(th, td):first-child { width: auto; }
  html[data-layout="mobile"] .req-table :is(th, td):nth-child(2) { width: auto; }
  html[data-layout="mobile"] .req-table :is(th, td):nth-child(3) { width: auto; }
  html[data-layout="mobile"] .req-tip { font-size: 10px; }
  html[data-layout="mobile"] .hw-form label { gap: 5px; font-size: 11px; }
  html[data-layout="mobile"] .hw-form select { min-height: 39px; padding: 8px 10px; font-size: 11px; }
  html[data-layout="mobile"] .hw-out { font-size: 11px; }
  html[data-layout="mobile"] .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  html[data-layout="mobile"] .faq-item { padding: 17px 0; border-bottom: 1px solid var(--line); }
  html[data-layout="mobile"] .faq-item h4 { font-size: 12.5px; }
  html[data-layout="mobile"] .faq-item p { font-size: 11px; }
  html[data-layout="mobile"] .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  html[data-layout="mobile"] .big-card { padding: 26px; }
  html[data-layout="mobile"] .big-card-title { font-size: 24px; }
  html[data-layout="mobile"] .num-list li { font-size: 12px; }
  html[data-layout="mobile"] .big-card-note { font-size: 11px; }
  html[data-layout="mobile"] .mail-link { font-size: 12px; }
  html[data-layout="mobile"] .card-actions { gap: 8px; margin-block: 18px; }
  html[data-layout="mobile"] .pill-btn { flex: 0 0 auto; padding: 9px 14px; font-size: 11px; }

  /* ---------- 更新记录 ---------- */
  html[data-layout="mobile"] .log-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 32px;
  }
  html[data-layout="mobile"] .log-item summary { padding: 15px 17px; }
  html[data-layout="mobile"] .log-brief { font-size: 11.5px; }
  html[data-layout="mobile"] .log-note { font-size: 11px; }
  html[data-layout="mobile"] .log-list > li { font-size: 11px; }
  html[data-layout="mobile"] .log-sub > li { font-size: 10.5px; }

  /* ---------- 支持项目 ---------- */
  html[data-layout="mobile"] .sponsor-card { max-width: 850px; padding: clamp(26px, 5vw, 55px); }
  html[data-layout="mobile"] .sponsor-card::before { margin-bottom: 23px; font-size: 9px; }
  html[data-layout="mobile"] .sponsor-text { margin-bottom: 25px; font-size: clamp(21px, 2.6vw, 29px); line-height: 1.6; }
  html[data-layout="mobile"] .sponsor-btn { min-height: 0; padding: 12px 17px; font-size: 12px; }
  html[data-layout="mobile"] .sponsor-foot { font-size: 10px; }
  html[data-layout="mobile"] .sponsor-list-wrap { margin-top: 35px; }
  html[data-layout="mobile"] :is(.sponsor-list-title, .sponsor-chip) { font-size: 10px; }

  /* ---------- 来过的猫 ---------- */
  html[data-layout="mobile"] .stamp-wall { padding: 23px; }
  html[data-layout="mobile"] .stamp-picker {
    flex-wrap: wrap;
    gap: 9px;
    padding: 0;
    overflow: visible;
  }
  html[data-layout="mobile"] .stamp-btn {
    flex: 0 0 auto;
    min-width: 74px;
    min-height: 0;
    gap: 6px;
    padding: 12px;
  }
  html[data-layout="mobile"] .stamp-emoji { font-size: 25px; }
  html[data-layout="mobile"] .stamp-label { font-size: 10px; }
  html[data-layout="mobile"] .stamp-tip { margin-top: 14px; font-size: 11px; }
  html[data-layout="mobile"] .stamp-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 22px; }
  html[data-layout="mobile"] .stamp-row { font-size: 11px; }
  html[data-layout="mobile"] .stamp-num { font-size: 11px; }
  html[data-layout="mobile"] .stamp-recent-label { font-size: 10px; }

  /* ---------- 页脚 ---------- */
  html[data-layout="mobile"] .foot { padding: 27px 0 30px; }
  html[data-layout="mobile"] .foot-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px 25px;
    padding-block: 0;
  }
  html[data-layout="mobile"] .foot-signature { grid-column: 1; grid-row: 1; }
  html[data-layout="mobile"] .foot-links { grid-column: 2; grid-row: 1; }
  html[data-layout="mobile"] .foot-legal { grid-column: 1 / -1; grid-row: 2; }
  html[data-layout="mobile"] .foot-signature { gap: 8px; }
  html[data-layout="mobile"] .foot-title { font-size: 23px; }
  html[data-layout="mobile"] .foot-seal { width: 23px; height: 23px; font-size: 11px; }
  html[data-layout="mobile"] .foot-signature p { font-size: 8px; letter-spacing: .12em; }
  html[data-layout="mobile"] .foot-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    font-size: 10px;
  }
  html[data-layout="mobile"] .foot-legal { font-size: 10px; }

  /* ---------- 覆盖层按桌面尺寸 ---------- */
  html[data-layout="mobile"] .drawer { width: min(610px, 100%); }
  html[data-layout="mobile"] .drawer-body { padding: 26px 28px 55px; }
  html[data-layout="mobile"] .drawer-close { width: 36px; height: 36px; }
  html[data-layout="mobile"] .dw-name { font-size: 30px; }
  html[data-layout="mobile"] .toast {
    left: 50%;
    right: auto;
    bottom: 28px;
    max-width: 420px;
    transform: translateX(-50%);
    font-size: 12px;
  }
}
