/* Public-site phone overrides. Keep every declaration inside this breakpoint.
   The original templates, desktop CSS and carousel geometry remain untouched. */
@media (max-width: 767px) {
  #layout,
  #headerContainer,
  #mainContainer,
  #footerContainer {
    min-width: 0 !important;
    max-width: 100%;
  }

  #mainContainer .elementContainer,
  #mainContainer .appWrapper {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* One compact logo/menu row on both the home page and inner pages. */
  #headerContainer {
    position: relative;
    z-index: 1000;
  }
  #el_1490683284035nkvy3 {
    padding: 12px 16px !important;
  }
  #el_1490683284035nkvy3 > .rowPatch {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
  }
  #el_1490683284035nkvy3 > .rowPatch::before,
  #el_1490683284035nkvy3 > .rowPatch::after {
    content: none;
  }
  #el_1490683284035nkvy3 > .rowPatch > div {
    width: 100% !important;
    min-width: 0;
    float: none !important;
  }
  #el_1490683284035nkvy3 > .rowPatch > div > .boxBlock,
  #el_15562637007403bwj1,
  #el_1556263716303v2i02 {
    margin: 0 !important;
    padding: 0 !important;
  }
  #app_9183917975886785 .logo a {
    display: block;
  }
  #app_9183917975886785 .logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70px;
  }
  #layout #app_5661103437636054 {
    display: block !important;
  }
  #layout #el_14797853001192a1u21 {
    display: none !important;
  }
  #layout .nav_1 .navMenuContainer {
    padding: 0;
  }
  #layout .nav_1 .navMenu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    color: #c12026 !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    line-height: 1;
  }
  #layout .nav_1 .navContainer {
    z-index: 1100;
  }
  #layout .nav_1 .navList {
    width: min(86vw, 360px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    text-align: left !important;
    overscroll-behavior: contain;
  }
  #layout .nav_1 .navItem {
    margin: 0 !important;
    padding: 0 !important;
  }
  #layout .nav_1 .navItem .navItemBar,
  #layout .nav_1 .navSon li a {
    min-height: 48px;
    height: auto !important;
    padding: 12px 48px 12px 20px !important;
    border-right: 0 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #layout .nav_1 .navArrow {
    min-height: 48px;
    line-height: 48px;
  }

  /* Inner-page gutters: do not change hidden sidebars or slider widths. */
  #el_14797913087278pxa25 {
    padding-top: 20px !important;
    padding-bottom: 36px !important;
  }
  #el_147979506762549lc53 {
    width: 100% !important;
    padding: 0 16px !important;
  }
  #el_147979506762549lc53 .rowPatch,
  #el_147979506762549lc53 .boxBlock {
    margin-left: 0 !important;
  }
  #el_15597234194658lxn3,
  #el_1559723966672xttb6,
  #el_1556417778929v4vm11 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #app_2629167586107143,
  #app_1462421292115221 {
    margin-top: 32px !important;
    font-size: 26px !important;
    line-height: 1.5;
  }
  #el_1556417778929w46i12 {
    font-size: 28px !important;
    line-height: 1.5;
  }

  /* Imported rich text may contain fixed pixel widths from Word/WeChat. */
  #layout .article_detail_content,
  #layout #mainContainer [role="editor"] {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  #layout .article_detail_content :is(div, section, p, blockquote),
  #layout #mainContainer [role="editor"] :is(div, section, p, blockquote) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #layout .article_detail_content img,
  #layout #mainContainer [role="editor"] img {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  #layout .article_detail_content :is(video, iframe, embed),
  #layout #mainContainer [role="editor"] :is(video, iframe, embed) {
    max-width: 100% !important;
  }
  #layout .article_detail_content table,
  #layout #mainContainer [role="editor"] table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #layout .article_detail_content pre,
  #layout #mainContainer [role="editor"] pre {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  #layout .article_detail_title {
    font-size: 22px !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere;
  }
  #layout .article_detail_info {
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #layout .article_detail_content {
    font-size: 16px;
    line-height: 1.8;
  }
  #layout .article_detail :is(.article_detail_prev, .article_detail_next, .article_detail_1_prev, .article_detail_1_next) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Keep schedule headings and their four data columns aligned, scroll locally. */
  #el_14800663722330kci12 .row[column_max479="4"] {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #el_14800663722330kci12 .row[column_max479="4"] > .rowPatch {
    min-width: 560px;
  }

  /* The source list combines a 20% thumbnail with a 100% text column. */
  #layout .article_list_3 .article_list_list {
    display: grid;
    grid-template-columns: minmax(72px, 26%) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px 0 !important;
  }
  #layout .article_list_3 .article_list_list::before,
  #layout .article_list_3 .article_list_list::after {
    content: none;
  }
  #layout .article_list_3 .article_list_list > a,
  #layout .article_list_3 .article_list_imgBox,
  #layout .article_list_3 .article_list_text {
    min-width: 0 !important;
    width: 100% !important;
    float: none !important;
  }
  #layout .article_list_3 .article_list_text {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  #layout .article_list_3 .article_list_pic {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  #layout .article_list_3 .article_list_title {
    display: block;
    height: auto !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  #layout .article_list_3 .article_list_abstract {
    height: auto !important;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  #layout .article_list_3 .article_list_info,
  #layout .article_list_3 .article_list_btn,
  #layout .article_list_3 .article_list_tag {
    float: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #layout .selectPage {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
  }
  #layout .selectPage a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 40px;
    margin: 0 !important;
  }

  /* The legacy footer is 1247px wide and 270px tall even on inner-page phones. */
  #el_1556544567771m5a21 {
    height: auto !important;
    min-height: 0 !important;
  }
  #el_1556544580245q8xa3 {
    width: 100% !important;
    max-width: 100%;
    padding: 28px 16px !important;
    box-sizing: border-box;
  }
  #el_1556544580245q8xa3 .rowPatch,
  #el_1556544580245q8xa3 .boxBlock,
  #el_1556587004675ifli4 .rowPatch,
  #el_1556587004675ifli4 .boxBlock {
    margin-left: 0 !important;
  }
  #el_1556544597875fn0d6 > .rowPatch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
  #el_1556544597875fn0d6 > .rowPatch::before,
  #el_1556544597875fn0d6 > .rowPatch::after {
    content: none;
  }
  #el_1556544597875fn0d6 > .rowPatch > div {
    width: 100% !important;
    min-width: 0;
    float: none !important;
    text-align: center;
  }
  #el_1556544597875fn0d6 > .rowPatch > .span6 {
    grid-column: 1 / -1;
    text-align: left;
  }
  #app_5071173759178287 {
    padding-top: 0 !important;
    font-size: 24px !important;
  }
  #app_4581724796578719 {
    padding-top: 8px !important;
    font-size: 18px !important;
  }
  #app_5682611569715307 {
    padding-top: 12px !important;
    font-size: 14px !important;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }
  #app_3335404971839790,
  #app_2848570303447048 {
    width: 100% !important;
    padding: 0 0 8px !important;
    text-align: center;
  }
  #app_3335404971839790 img,
  #app_2848570303447048 img {
    max-width: min(100%, 140px) !important;
    height: auto !important;
    margin: 0 auto;
  }
  #app_2615154907645319,
  #el_1556545899393es2p4 {
    padding: 0 !important;
    font-size: 13px !important;
    text-align: center;
    overflow-wrap: anywhere;
  }
  #el_1556587004675ifli4 {
    padding: 20px 16px !important;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  #el_1572508772044ghxp2 > .rowPatch {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  #el_1572508772044ghxp2 > .rowPatch > div {
    width: auto !important;
    max-width: 100%;
    float: none !important;
  }
}
