/* Mobile reading layouts for the supporting proposal pages.
   Desktop styles and business content remain in their original files. */
@media screen and (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
  html:has(.deep-header), html:has(.bench-header) { scroll-padding-top: 24px; }
  body { font-size: 17px; line-height: 1.85; }
  :where(main, section, article, aside, nav, details, div) { min-width: 0; }
  :where(p, li, dd, dt, h1, h2, h3, h4, summary, a, button, small) { overflow-wrap: anywhere; }
  img { max-width: 100%; height: auto; }
  select, input, textarea { font-size: 16px; max-width: 100%; min-width: 0; }
  button, summary { touch-action: manipulation; }
  .section, .wrap { width: 100%; padding: 42px 22px; }
  .section-heading, .section-title { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 25px; }
  .section-heading h2, .section-title h2 { font-size: 28px; line-height: 1.45; letter-spacing: -.5px; }
  .section-heading > p, .section-title p { font-size: 17px; line-height: 1.9; }
  .section-index { font-size: 13px; margin-bottom: 16px; letter-spacing: .4px; }
  .eyebrow { font-size: 13px; line-height: 1.8; letter-spacing: .3px; }
  .actions { gap: 12px; margin-top: 22px; }
  .button, .btn { min-height: 48px; max-width: 100%; font-size: 16px; line-height: 1.65; gap: 14px; padding: 12px 17px; justify-content: center; }
  .text-link { min-height: 44px; font-size: 16px; }
  .footer, footer, .mm-footer, .guide-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 28px 22px; }
  .footer > a, footer > a, .mm-footer > a, .guide-footer > a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Chapter links stay reachable without taking over the reading viewport. */
  .header, header:not(.guide-header) {
    position: relative; height: auto; min-height: 0; padding: 15px 22px 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  }
  .header:not(.deep-header):not(.bench-header), .mm-page .mm-header {
    position: relative; height: auto; min-height: 0; padding: 15px 22px 0;
  }
  .header .brand, header:not(.guide-header) .brand { min-width: 0; gap: 9px; white-space: normal; letter-spacing: .5px; }
  .header .brand svg { width: 29px; height: 29px; flex: 0 0 29px; }
  .header .brand > span, header:not(.guide-header) .brand { font-size: 21px; }
  .header .brand small, header:not(.guide-header) .brand small { font-size: 12px; letter-spacing: .2px; margin-top: 3px; }
  .header .header-download, .header:not(.deep-header):not(.bench-header) .header-download,
  .mm-page .mm-header .header-download, .mobile-back {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    font-size: 14px; min-height: 44px; padding: 8px 10px; gap: 5px; white-space: normal;
  }
  .header nav, .header:not(.deep-header):not(.bench-header) nav,
  header:not(.guide-header) > nav {
    display: flex; position: static; order: 3; flex: 1 1 100%; width: 100%; min-width: 0; max-width: 100%;
    align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: 20px;
    margin: 0; padding: 2px 0 8px; overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin; box-shadow: none; scroll-snap-type: x proximity;
  }
  .header nav a, .header:not(.deep-header):not(.bench-header) nav a,
  header:not(.guide-header) > nav a {
    flex: 0 0 auto; padding: 10px 0; min-height: 44px; font-size: 15px;
    line-height: 1.6; white-space: nowrap; text-align: left; scroll-snap-align: start;
  }
  .header nav a::after { bottom: 4px; }

  /* Long documents use the viewport for prose, with only tables scrolling. */
  .document { padding: 30px 22px 48px; width: 100%; }
  .document h1 { font-size: 29px; line-height: 1.5; margin: 17px 0 24px; }
  .document h2 { font-size: 24px; line-height: 1.5; margin-top: 34px; padding-top: 23px; }
  .document h3 { font-size: 21px; line-height: 1.5; }
  .document p, .document li { font-size: 17px; line-height: 1.9; }
  .document ul, .document ol { padding-left: 1.45em; }
  .document blockquote { margin: 20px 0; padding: 14px 17px; }
  .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; border: 1px solid var(--line); border-radius: 8px; }
  .table-scroll::before {
    content: "左右滑动查看完整表格 →"; display: block; position: sticky; left: 0;
    width: fit-content; max-width: 100%; padding: 10px 14px; background: var(--paper);
    color: var(--muted); font-size: 14px; line-height: 1.6;
  }
  .table-scroll table, .document .table-scroll table { min-width: 600px; font-size: 16px; line-height: 1.8; }
  .table-scroll th, .table-scroll td { padding: 13px 14px; }

  /* The plain-language guide keeps the example and reading controls together. */
  .guide-header { position: relative; }
  .header-inner { padding: 15px 22px; gap: 12px; align-items: center; }
  .guide-header .brand { font-size: 21px; }
  .guide-header .brand small { font-size: 12px; }
  .header-links { flex: 1 1 100%; justify-content: space-between; gap: 12px; font-size: 15px; }
  .header-links .header-full { display: inline-flex; }
  .header-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .text-size { min-height: 44px; padding: 9px 12px; white-space: nowrap; }
  .guide-shell { padding: 0 22px; }
  .guide-hero { padding: 34px 0; gap: 24px; }
  .guide-hero h1 { font-size: 36px; line-height: 1.32; margin: 16px 0 20px; }
  .guide-hero p { font-size: 18px; line-height: 1.85; }
  .hero-aside { padding: 24px; }
  .hero-aside h2 { font-size: 24px; }
  .hero-aside li { gap: 12px; }
  .hero-aside strong { font-size: 18px; }
  .hero-aside p { font-size: 16px; }
  .walkthrough { padding: 36px 0; }
  .guide-shell .scene-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .guide-shell .scene-tabs button { font-size: 15px; min-height: 74px; padding: 10px 9px; }
  .guide-shell .scene-tabs b { font-size: 20px; margin-bottom: 5px; }
  .walk-panel { padding: 21px 18px; }
  .walk-title { gap: 10px; }
  .walk-title h3 { font-size: 23px; margin-bottom: 18px; }
  .walk-progress { font-size: 21px; padding-top: 2px; }
  .walk-columns p { font-size: 18px; line-height: 1.9; }
  .walk-result { font-size: 17px; }
  .walk-next { white-space: normal; }
  .reader { padding-top: 32px; }
  .toc { position: static; max-height: none; margin-bottom: 32px; padding: 18px; }
  .toc summary { min-height: 44px; display: list-item; line-height: 1.6; padding: 8px 0; }
  .toc a { min-height: 44px; padding: 10px 8px; font-size: 16px; }
  .chapter { scroll-margin-top: 20px; margin-bottom: 38px; }
  .chapter h2 { font-size: 25px; line-height: 1.5; padding-bottom: 15px; margin-bottom: 20px; }
  .chapter h3 { font-size: 21px; }
  .chapter p, .chapter li { font-size: 18px; line-height: 1.9; }
  .reading-end { margin-bottom: 42px; padding: 22px; }
  .large-type .chapter p, .large-type .chapter li, .large-type .walk-columns p { font-size: 21px; }

  /* Multi-modal case walkthrough: image, controls and result form one column. */
  .mm-hero { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-top: 34px; padding-bottom: 40px; }
  .mm-hero h1 { font-size: 35px; line-height: 1.36; letter-spacing: -.7px; }
  .mm-subtitle { font-size: 20px; line-height: 1.65; margin-top: 21px; }
  .mm-intro { font-size: 18px; line-height: 1.85; }
  .mm-signal-board { padding: 22px; border-radius: 14px; }
  .mm-signal-caption { flex-wrap: wrap; gap: 6px; }
  .mm-signal-caption span { display: none; }
  .mm-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mm-inputs > span { padding: 12px; font-size: 18px; }
  .mm-inputs b { font-size: 16px; margin-left: 5px; }
  .mm-inputs small { font-size: 14px; line-height: 1.7; }
  .mm-brain { padding: 20px; }
  .mm-brain h2 { font-size: 26px; }
  .mm-demo-section .section { padding-top: 40px; }
  .mm-demo-notice { display: block; padding: 16px; font-size: 16px; }
  .mm-demo-notice b { display: block; margin-bottom: 7px; }
  .mm-case-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .mm-case-tabs button { min-height: 48px; padding: 12px 15px; font-size: 16px; }
  .mm-demo { grid-template-columns: minmax(0, 1fr); }
  .mm-image-column { padding: 17px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mm-image-top { flex-wrap: wrap; gap: 8px; font-size: 14px; }
  .mm-image-top span:last-child { white-space: normal; }
  .mm-analysis-column { padding: 21px 18px; }
  .mm-analysis-header h3 { font-size: 23px; }
  .mm-observation-list { display: grid; grid-template-columns: minmax(0, 1fr); }
  .mm-observation-list button { min-height: 46px; font-size: 16px; padding: 10px 12px; }
  .mm-step-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
  .mm-step-tabs button { min-height: 48px; font-size: 16px; }
  .mm-step-panel { min-height: 0; margin-bottom: 23px; }
  .mm-step-panel h4 { font-size: 22px; }
  .mm-step-panel p { font-size: 17px; }
  .mm-context-list { grid-template-columns: minmax(0, 1fr); }
  .mm-demo-ending { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mm-demo-ending > span { grid-column: 1; }
  .mm-demo-ending p { font-size: 18px; }
  .mm-capabilities, .mm-schema-entities, .mm-judgments, .mm-phases,
  .mm-time-story, .mm-evaluation { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .mm-capabilities h3, .mm-phases h3 { font-size: 23px; }
  .mm-time-story { padding: 23px; margin-top: 32px; }
  .mm-time-story ol { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mm-architecture article { grid-template-columns: 30px minmax(0, 1fr); padding: 21px 17px; gap: 12px; }
  .mm-layer-no { font-size: 27px; align-self: start; }
  .mm-architecture h3 { font-size: 22px; }
  .mm-architecture article p { font-size: 17px; }
  .mm-architecture article small { grid-column: 2; padding: 0; border: 0; font-size: 14px; }
  .mm-layer-arrow { gap: 10px; padding: 11px 6px; }
  .mm-layer-arrow span { font-size: 14px; }
  .mm-learning-loop { display: block; padding: 21px 0 0; }
  .mm-learning-loop span { display: block; margin-top: 8px; font-size: 16px; }
  .mm-technical > summary { padding: 17px; font-size: 18px; }
  .mm-technical > div { padding: 0 17px 20px; }
  .mm-bridge { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1px; padding: 16px; }
  .mm-bridge i { transform: rotate(90deg); }
  .mm-schema-entities summary small, .mm-schema-content dt small { display: block; margin: 4px 0 0; font-size: 14px; }
  .mm-mapping-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mm-judgments article { padding: 22px; }
  .mm-doc-links { gap: 12px; }
  .mm-final-link { display: block; padding: 23px; margin-top: 30px; }
  .mm-final-link h3 { font-size: 25px; }
  .mm-final-link .button { margin-top: 20px; }

  /* Manager workflow and competition evidence use stacked, readable cards. */
  .deep-hero, .bench-hero { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-top: 34px; padding-bottom: 40px; }
  .deep-hero h1, .bench-hero h1 { font-size: 35px; line-height: 1.38; letter-spacing: -.6px; }
  .deep-lead, .bench-lead { font-size: 18px; line-height: 1.85; }
  .deep-lead br { display: none; }
  .deep-cover, .bench-position { padding: 25px; box-shadow: none; border-radius: 14px; }
  .source-strip { display: block; padding: 20px; }
  .source-strip > span { white-space: normal; }
  .source-strip p { margin-top: 9px; font-size: 16px; }
  .source-columns, .manager-item-grid, .workbench-steps, .detail-grid, .alert-grid,
  .workflow-steps, .workflow-two, .workflow-rules, .three-state, .ontology-v2-list,
  .sandbox-layout, .pitch-grid, .delivery-links, .bench-grid, .task-matrix, .judge-grid,
  .innovation-grid, .counter-output { grid-template-columns: minmax(0, 1fr); }
  .subheading { display: block; margin-top: 35px; }
  .subheading .muted { display: block; margin-top: 10px; }
  .schedule-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-tabs button { font-size: 16px; padding: 12px; min-height: 48px; }
  .schedule-tabs small { display: block; margin: 4px 0 0; font-size: 14px; }
  .schedule-panel, .area-detail, .workflow-panel, .rule-stage { padding: 22px 18px; }
  .schedule-intro { display: block; }
  .schedule-source { max-width: none; margin-top: 16px; }
  .area-browser { grid-template-columns: minmax(0, 1fr); }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 310px; padding: 10px; }
  .area-list button { min-height: 48px; padding: 12px; font-size: 16px; }
  .area-detail h3, .schedule-intro h3, .rule-stage h3 { font-size: 25px; }
  .callout, .field-check, .sandbox-notice { display: block; padding: 20px; }
  .callout b { white-space: normal; }
  .callout p { margin-top: 9px; }
  .workflow-tabs { display: grid; grid-template-columns: minmax(0, 1fr); }
  .workflow-tabs button { min-height: 48px; font-size: 16px; padding: 12px 15px; text-align: left; }
  .workflow-panel > h3 { font-size: 25px; }
  .semantic-chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .semantic-chain > div { padding: 19px 14px; }
  .ontology-controls { gap: 13px; }
  .ontology-controls select { min-height: 48px; width: 100%; }
  .ontology-v2-list details { padding: 17px; }
  .rule-case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rule-case-list button { min-height: 50px; padding: 12px 10px; font-size: 15px; }
  .rule-stage-head { flex-wrap: wrap; }
  .rule-controls, .rule-input, .suite-results ul { grid-template-columns: minmax(0, 1fr); }
  .rule-controls select { min-height: 48px; }
  .result-states > div { grid-template-columns: 85px minmax(0, 1fr); }
  .suite-bar { display: block; padding: 22px; }
  .suite-bar .button { margin-top: 18px; }
  .bench-strip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bench-card, .task-family { padding: 23px 20px; }
  .bench-card h3, .task-family h3 { font-size: 24px; }
  .innovation-card { display: block; }
  .innovation-card h3 { font-size: 25px; margin: 8px 0 14px; }
  .innovation-card p { margin-bottom: 16px; }
  .counter-buttons { display: grid; grid-template-columns: minmax(0, 1fr); padding: 19px; }
  .counter-buttons button { min-height: 48px; font-size: 16px; text-align: left; }
  .experiment-head, .counter-output { padding: 22px 19px; }
  .counter-output { gap: 22px; }
  .counter-source { padding: 0 19px 22px; }
  .bench-footer-cta, .proof-strip { gap: 12px; }
  .readiness-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; font-size: 16px; }
  .readiness-table::before { content: "左右滑动查看完整表格 →"; display: block; position: sticky; left: 0; width: fit-content; padding: 10px 0; font-size: 14px; color: var(--muted); }
  .readiness-table caption { text-align: left; font-size: 14px; }
  .readiness-table th, .readiness-table td { padding: 15px; }
  .readiness-table th:first-child, .readiness-table td:first-child { min-width: 120px; }
  .readiness-table th:not(:first-child), .readiness-table td:not(:first-child) { min-width: 240px; }
}

@media screen and (max-width: 480px) {
  .section, .wrap { padding: 36px 18px; }
  .header, header:not(.guide-header) { padding-left: 18px; padding-right: 18px; gap: 10px; }
  .header:not(.deep-header):not(.bench-header), .mm-page .mm-header { padding: 15px 18px 0; }
  .header .brand > span, header:not(.guide-header) .brand { font-size: 20px; }
  .header .brand small { font-size: 11px; }
  .header .header-download, .header:not(.deep-header):not(.bench-header) .header-download,
  .mm-page .mm-header .header-download, .mobile-back { font-size: 13px; padding: 8px; }
  .header nav, .header:not(.deep-header):not(.bench-header) nav, header:not(.guide-header) > nav { gap: 19px; }
  .header nav a, .header:not(.deep-header):not(.bench-header) nav a, header:not(.guide-header) > nav a { font-size: 15px; }
  .section-heading h2, .section-title h2 { font-size: 26px; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; align-items: stretch; }
  .actions .button, .actions .btn { width: 100%; }
  .document { padding: 27px 18px 42px; }
  .document h1 { font-size: 27px; }
  .document h2 { font-size: 23px; }
  .document .actions .btn { padding: 12px 16px; }
  .guide-shell { padding: 0 18px; }
  .header-inner { padding: 13px 18px; }
  .header-links { gap: 10px; font-size: 14px; }
  .text-size { font-size: 14px; padding: 8px 10px; }
  .guide-hero h1 { font-size: 32px; letter-spacing: -.7px; }
  .hero-aside { padding: 22px 19px; }
  .hero-aside h2 { font-size: 23px; }
  .guide-shell .scene-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-shell .scene-tabs button { display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 16px; padding: 11px 12px; }
  .guide-shell .scene-tabs b { font-size: 19px; margin: 0; }
  .walk-title { display: block; position: relative; }
  .walk-title > div { padding-right: 0; }
  .walk-progress { display: block; font-size: 18px; margin: -8px 0 16px; }
  .walk-panel { padding: 20px 16px; }
  .chapter h2 { font-size: 24px; }
  .chapter p, .chapter li { font-size: 17px; line-height: 1.95; }
  .large-type .chapter p, .large-type .chapter li, .large-type .walk-columns p { font-size: 20px; }
  .mm-hero h1, .deep-hero h1, .bench-hero h1 { font-size: 32px; }
  .mm-signal-board { padding: 19px 16px; }
  .mm-inputs > span { padding: 11px 10px; }
  .mm-brain { padding: 19px 16px; }
  .mm-brain h2 { font-size: 24px; }
  .mm-inputs small { font-size: 13px; }
  .mm-image-column { padding: 13px; }
  .mm-analysis-column { padding: 20px 16px; }
  .mm-step-tabs button { padding: 10px 8px; }
  .mm-evaluation li { grid-template-columns: 43px minmax(0, 1fr); gap: 12px; }
  .mm-final-link .button { width: 100%; }
  .semantic-chain { grid-template-columns: minmax(0, 1fr); }
  .semantic-chain > div { padding: 18px; }
  .semantic-chain b { font-size: 20px; }
  .deep-cover, .bench-position { padding: 23px 20px; }
  .bench-position li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .bench-position li > b { font-size: 29px; }
  .bench-position h2 { font-size: 25px; }
  .source-columns article, .workbench-steps article, .three-state article { padding: 21px 18px; }
  .cover-numbers { gap: 20px; }
  .cover-numbers b { font-size: 34px; }
  .workflow-panel, .rule-stage, .schedule-panel, .area-detail { padding: 21px 16px; }
  .rule-stage h3, .workflow-panel > h3 { font-size: 23px; }
  .bench-footer-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
  .bench-footer-cta .button { width: 100%; }
  .footer, footer, .mm-footer, .guide-footer { padding: 25px 18px; }
}
