/* 首页母版统一移动优先体验层
 * 目标：单手浏览、赛程优先、稳定的触控尺寸和窄屏可读性。
 */
:root {
  --jzt-mobile-gutter: clamp(14px, 4vw, 24px);
  --jzt-mobile-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { min-width: 0; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }

@media (max-width: 767px) {
  body { font-size: 15px; }
  .site-shell, .shell, .ledger-wrap, .site-main, .ledger-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: var(--jzt-mobile-gutter);
  }
  .site-main, .ledger-main { padding-top: 16px; padding-bottom: 36px; }
  .site-main > *, .ledger-main > *, .site-shell > * { min-width: 0; max-width: 100%; }

  .site-header, .ledger-header { position: relative; }
  .header-inner, .masthead, .ledger-bar, .header-main {
    min-height: 64px; height: auto; padding-block: 9px; gap: 10px;
  }
  .brand, .ledger-brand { min-width: 0; gap: 8px; }
  .brand img, .ledger-brand img { width: 40px; height: 40px; }
  .brand b, .ledger-brand strong { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
  .brand small, .ledger-brand small { display: block; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; letter-spacing: .08em; }
  .desktop-nav, .ledger-nav, .header-home, .site-search { display: none !important; }
  .menu-toggle { display: inline-grid !important; place-items: center; gap: 4px; min-width: 44px; min-height: 44px; margin-left: auto; padding: 10px; background: transparent; border: 0; }
  .menu-toggle span { display: block; width: 23px; height: 2px; border-radius: 2px; }
  .mobile-nav { display: none; width: 100%; padding: 10px var(--jzt-mobile-gutter) 14px; }
  .mobile-nav:not([hidden]) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 800; }
  .mobile-nav a:active { transform: translateY(1px); }

  .score-hero, .court-hero, .lead-grid, .matchday-hero, .jrs-board, .signal-hero,
  .daily-lead, .press-lead, .wire-hero, .hero, .hero-grid {
    display: grid !important; grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; border-radius: var(--jzt-mobile-radius); overflow: hidden;
  }
  .hero-copy, .hero-board, .court-hero-copy, .court-focus, .lead-copy, .court-card,
  .jrs-score, .jrs-focus, .signal-copy, .radar-card, .daily-mast, .daily-focus,
  .daily-links, .press-intro, .press-focus, .wire-copy, .wire-focus { min-width: 0; padding: 24px var(--jzt-mobile-gutter); }
  .hero h1, .hero-copy h1, .hero-board h1, .court-hero h1, .lead-copy h1, .jrs-score h1,
  .signal-copy h1, .daily-mast h1, .press-intro h1, .wire-copy h1 { font-size: clamp(34px, 11vw, 48px); line-height: 1.08; overflow-wrap: anywhere; }
  .hero p, .hero-copy p, .lead-copy p, .court-hero-copy p, .jrs-score p, .signal-copy p, .press-intro p, .wire-copy p { font-size: 15px; overflow-wrap: anywhere; }
  .hero-actions, .lead-actions, .board-actions, .court-actions, .signal-actions, .press-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
  .hero-actions a, .lead-actions a, .board-actions a, .court-actions a, .signal-actions a, .press-actions a { min-height: 44px; justify-content: center; }
  .hero-board > a, .court-matchup, .court-match, .focus-match-card, .radar-match, .press-match { min-width: 0; grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); gap: 6px; padding: 18px 8px; }
  .hero-board > a > div, .court-matchup > span, .court-match > span, .focus-match-card > div, .radar-match > span, .press-match > span { min-width: 0; overflow-wrap: anywhere; text-align: center; }
  .hero-board img, .court-matchup img, .court-match img, .focus-match-card img, .radar-match img, .press-match img { width: 52px; height: 52px; object-fit: contain; }

  .league-ribbon, .day-tabs, .press-day-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .league-ribbon a, .day-tabs a, .press-day-tabs a { min-height: 46px; padding: 10px 12px; }
  .league-ribbon span { font-size: 14px; }

  .ledger-section, .fixture-panel, .content-card, .content-panel, .court-panel,
  .schedule-panel, .match-page, .article-page, .archive-hero, .archive-banner,
  .related, .seo-copy, .seo-home { padding: 16px !important; border-radius: 12px; }
  .ledger-title, .section-head, .section-title, .court-section-head, .press-section-head, .match-section-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .ledger-title h2, .section-head h2, .section-title h2, .court-section-head h2, .press-section-head h2, .match-section-head h2 { max-width: 100%; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
  .ledger-title > a, .section-head > a, .section-title > a, .court-section-head > a, .press-section-head > a { margin-left: auto; min-height: 40px; display: inline-flex; align-items: center; }

  .fixture-list, .fixture-ledger, .schedule-list, .court-schedule-list, .press-games, .signal-board { min-width: 0; overflow: visible; }
  .fixture-row, .fixture-line, .game-ticket, .court-game, .signal-row, .match-row { min-width: 0; overflow: hidden; }
  .fixture-row { grid-template-columns: 54px 50px minmax(0, 1fr) !important; gap: 7px !important; padding-block: 12px !important; }
  .fixture-main { min-width: 0; grid-template-columns: 54px minmax(0, 1fr) 34px minmax(0, 1fr) !important; gap: 5px !important; }
  .fixture-club, .teams > span, .ticket-teams > span, .court-game-teams > span, .signal-pair > span, .match-teams > span { min-width: 0; display: grid; justify-items: center; justify-content: center; gap: 4px; text-align: center !important; overflow-wrap: anywhere; font-size: 12px; }
  .fixture-club img, .teams img, .ticket-teams img, .court-game-teams img, .signal-pair img, .match-teams img { width: 32px; height: 32px; object-fit: contain; }
  .watch-now, .fixture-watch, .row-action, .signal-button, .watch-button, .match-detail-link { min-height: 42px; padding: 9px 10px; display: inline-flex; align-items: center; justify-content: center; }
  .fixture-row .match-state, .fixture-row .watch-now { grid-column: 1 / -1; }
  .fixture-row .watch-now { width: 100%; }

  .content-duo, .content-columns, .editorial-grid, .desk-layout, .press-columns, .press-media,
  .court-data-grid, .court-media-grid, .media-deck, .data-strip, .recent-columns, .related-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .data-strip { display: grid; }
  .data-strip > div { min-width: 0; padding: 12px; }
  .news-list > a, .wire-list article { grid-template-columns: 52px minmax(0, 1fr) !important; gap: 10px; }
  .news-list > a span, .wire-list article p { min-width: 0; overflow-wrap: anywhere; }
  .video-grid, .film-grid, .replay-rail, .vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .video-grid h3, .film-grid h3, .replay-rail h3, .vault-grid h3 { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
  .article-page h1, .match-title h1, .archive-banner h1, .archive-hero h1 { font-size: 27px; line-height: 1.35; overflow-wrap: anywhere; }
  .article-content, .article-content p { overflow-wrap: anywhere; word-break: break-word; }
  .article-content table, .match-table-wrap { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .scoreboard { grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr) !important; padding: 18px 8px !important; }
  .score-team img, .score-team .team-initial { width: 56px; height: 56px; }
  .score-team strong, .score-team b { max-width: 100%; overflow-wrap: anywhere; text-align: center; font-size: 13px; }
  .score-center > b { font-size: 32px; }
  .signals > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid, .footer-score { grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
  .footer-links, .copyright { display: grid; gap: 10px; }
  .footer-links nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .empty-state { padding: 20px 8px; }
}

@media (max-width: 380px) {
  .mobile-nav:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .video-grid, .film-grid, .replay-rail, .vault-grid, .signals > div { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-board > a, .court-matchup, .court-match, .focus-match-card, .radar-match, .press-match { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); }
}

/* Shared factory themes: data-rich layouts keep the first match visible. */
@media (max-width: 767px) {
  .al-shell, .al-main-shell, .site-container, .sb-page-shell { width: 100% !important; max-width: 100% !important; padding-inline: var(--jzt-mobile-gutter); }
  .al-site-header, .cp-header, .ps-header, .tw-header, .td-header, .pi-header, .jzt-frame-header { position: relative; }
  .al-primary-nav, .cp-primary, .ps-primary, .tw-main-nav, .td-primary-nav, .pi-nav nav, .jzt-frame-nav { min-width: 0; }
  .al-menu-toggle, .jzt-frame-menu, .mobile-menu-btn { display: inline-grid !important; place-items: center; min-width: 44px; min-height: 44px; }
  .al-mobile-menu:not([hidden]), .jzt-mobile-drawer.is-open, .jzt-mobile-drawer.show, #mobile_right_nav.is-open { display: grid !important; gap: 8px; }
  .al-mobile-menu nav, .al-mobile-menu form, .jzt-mobile-priority, .jzt-mobile-list { min-width: 0; }
  .al-mobile-menu a, .jzt-mobile-priority a, .jzt-mobile-list a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }
  .al-main-shell, .sb-page-shell { padding-top: 16px; padding-bottom: 36px; }
  .al-main-shell > *, .sb-page-shell > * { min-width: 0; max-width: 100%; }
  .al-main-shell h1, .al-main-shell h2, .sb-page-shell h1, .sb-page-shell h2 { overflow-wrap: anywhere; }
  .al-main-shell .wc-home-hero, .al-main-shell .cp-hero, .al-main-shell .ps-hero, .al-main-shell .tw-hero, .al-main-shell .td-hero, .al-main-shell .pi-hero, .al-main-shell .h24-hero, .al-main-shell .cn-hero { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; }
  .al-main-shell .wc-home-hero > *, .al-main-shell .cp-hero > *, .al-main-shell .ps-hero > *, .al-main-shell .tw-hero > *, .al-main-shell .td-hero > *, .al-main-shell .pi-hero > *, .al-main-shell .h24-hero > *, .al-main-shell .cn-hero > * { min-width: 0; }
  .al-main-shell .wc-home-hero h1, .al-main-shell .cp-hero h1, .al-main-shell .ps-hero h1, .al-main-shell .tw-hero h1, .al-main-shell .td-hero h1, .al-main-shell .pi-hero h1, .al-main-shell .h24-hero h1, .al-main-shell .cn-hero h1 { font-size: clamp(32px, 10vw, 46px); line-height: 1.12; }
  .al-main-shell .wc-fixture-row, .al-main-shell .cp-game, .al-main-shell .ps-match-row, .al-main-shell .tw-score-row, .al-main-shell .td-fixture-row, .al-main-shell .pi-fixture-row, .al-main-shell .h24-game, .al-main-shell .cn-match-row { min-width: 0; overflow: hidden; }
  .al-main-shell .wc-fixture-row, .al-main-shell .cp-game, .al-main-shell .ps-match-row, .al-main-shell .tw-score-row, .al-main-shell .td-fixture-row, .al-main-shell .pi-fixture-row, .al-main-shell .h24-game, .al-main-shell .cn-match-row { padding-block: 12px; }
  .al-main-shell .wc-fixture-row a, .al-main-shell .cp-game a, .al-main-shell .ps-match-row a, .al-main-shell .tw-score-row a, .al-main-shell .td-fixture-row a, .al-main-shell .pi-fixture-row a, .al-main-shell .h24-game a, .al-main-shell .cn-match-row a { min-height: 42px; overflow-wrap: anywhere; }
  .al-main-shell .wc-content-grid, .al-main-shell .cp-content-grid, .al-main-shell .ps-content-grid, .al-main-shell .tw-content-grid, .al-main-shell .td-content-grid, .al-main-shell .pi-content-grid, .al-main-shell .h24-content-grid, .al-main-shell .cn-content-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 14px; }
  .al-main-shell table, .sb-page-shell table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .al-main-shell .al-footer-grid, .sb-page-shell .footer-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
