/* Mobile detail page enhancement
   Pure media query: PC layout and URL stay untouched.
   Loaded only when viewport <= 820px. */

@media (max-width: 820px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    background: #fff;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  }

  .container-v2 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  /* ---------- header ---------- */
  .header-v2 {
    margin: 0 !important;
    padding: 12px 0 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
  }
  .v2logoimg { height: 36px !important; width: auto !important; }
  .logofont img { height: 20px !important; width: auto !important; }
  .logofont p, .hrcont { display: none !important; }

  .search {
    width: 100% !important;
    order: 9;
    margin: 8px 0 4px !important;
  }
  .search-input {
    width: 100% !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f6fa;
    border-radius: 999px;
    padding: 7px 14px;
  }
  .search-input .key {
    flex: 1;
    width: auto !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    padding: 2px 0 !important;
    outline: none;
  }
  .search-input button {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    display: flex;
    cursor: pointer;
  }
  .search-input button img { width: 17px; height: 17px; }
  .search-key { display: none !important; }

  .navigator {
    height: auto !important;
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .navigator .container-v2 { padding-left: 6px !important; padding-right: 6px !important; }
  .navlist {
    height: 46px;
    justify-content: flex-start !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 2px;
    scrollbar-width: none;
  }
  .navlist::-webkit-scrollbar { display: none; }
  .navlist li {
    flex: 0 0 auto !important;
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
  }
  .navlist li a { display: block; height: 46px; color: #fff; }
  .navlist li.curr { position: relative; }
  .navlist li.curr::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 7px;
    transform: translateX(-50%);
    width: 16px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
  }
  .navlist li.curr a { font-weight: 700; }
  .fline { display: none !important; }

  /* ---------- page shell ---------- */
  #wp.wp, .wp {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .ct2 { width: 100% !important; }
  .bm { border: 0 !important; background: transparent !important; }
  .bm.vw {
    width: 100% !important;
    box-sizing: border-box;
    background: #fff;
    padding: 0 16px 18px !important;
    margin: 0 !important;
  }
  .vwtb, .vwtb tbody, .vwtb tr, .vwtb td {
    display: block !important;
    width: 100% !important;
  }

  /* ---------- title / meta ---------- */
  body .ph2 {
    font-size: 23px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    font-weight: 800 !important;
    color: #141922 !important;
    letter-spacing: -.01em;
    margin: 16px 0 10px !important;
  }
  body .xgn1 {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px !important;
    line-height: 1.7 !important;
    color: #98a2b3 !important;
    padding: 0 0 2px !important;
    margin: 0 0 14px !important;
    overflow: visible !important;
  }
  body .xgn1 a {
    color: #365598 !important;
    background: #eef2f9;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px !important;
    text-decoration: none;
  }
  .xgn1 .pipe { color: #dfe4ee !important; }
  #fxan, #fx, .bdsharebuttonbox { display: none !important; }

  /* ---------- summary as lead ---------- */
  body .s {
    margin: 12px 0 18px !important;
    padding: 12px 14px !important;
    background: #f2f6fc;
    border-left: 3px solid #365598;
    border-radius: 0 8px 8px 0;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    color: #39465d !important;
  }
  body .s strong { color: #365598; font-weight: 700; }

  /* ---------- body text ---------- */
  body .contentbody {
    font-size: 17px !important;
    line-height: 1.9 !important;
    color: #232a35 !important;
    letter-spacing: .01em;
    padding-bottom: 6px;
  }
  body .contentbody p,
  body .contentbody div {
    font-size: 17px !important;
    line-height: 1.9 !important;
    color: #232a35 !important;
  }
  body #article_content,
  body #article_content div,
  body #article_content p {
    font-size: 17px !important;
    line-height: 1.9 !important;
    color: #232a35 !important;
  }
  body #article_content > div { margin: 0 0 1em !important; }
  body #article_content > div > br:only-child { display: none; }

  body .contentbody img,
  body #article_content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 14px auto !important;
    border-radius: 8px;
  }
  body .contentbody a,
  body #article_content a { color: #2f5aa8 !important; }

  body .contentbody blockquote,
  body #article_content blockquote {
    margin: 18px 0 !important;
    padding: 12px 14px !important;
    background: #f7f8fa;
    border-left: 3px solid #dbe2ee;
    border-radius: 0 6px 6px 0;
    color: #4b5563 !important;
  }
  body .contentbody::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: #e3e9f2;
    margin: 28px auto 4px;
  }
  .share-btn, .qrcode-modal { display: none !important; }

  /* ---------- prev / next ---------- */
  body .pren {
    font-size: 14px !important;
    line-height: 1.85 !important;
    padding: 14px 0 2px !important;
    border-top: 1px solid #f0f3f8;
    color: #8b94a6 !important;
    width: 100% !important;
  }
  body .pren em { display: block !important; margin-bottom: 6px; }
  body .pren a { color: #2b3648 !important; }

  /* ---------- footer ---------- */
  body .footer {
    padding: 22px 16px !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    background: #2c477a !important;
  }
  body .footer img { max-width: 100%; height: auto; }
  #scrolltop { display: none !important; }
}
