/* Same server-rendered content and links. Only home/tag pages at phone widths. */
@media (max-width:767px){
  body.home-mobile-page{min-width:0;background:#f5efe5;background-image:none;font-size:14px}
  body.home-mobile-page .container{width:100%;max-width:100%;min-width:0}
  body.home-mobile-page .side-deco{display:none}
  body.home-mobile-page #Topheader{height:auto}
  body.home-mobile-page #Topheader .center.home-header-navigation{width:100%;height:auto;min-width:0;display:flex;flex-direction:column;gap:0;padding:4px 10px 0}
  body.home-mobile-page #Topheader .home-header-navigation .toplogo{float:none;flex:0 0 auto;width:100%;height:54px;line-height:54px;display:flex;align-items:center;justify-content:center}
  body.home-mobile-page #Topheader .toplogo img{width:auto;height:auto;max-width:100%;max-height:52px}
  body.home-mobile-page #Topheader .home-header-navigation #Topmenu{flex:none;width:100%;height:auto}
  body.home-mobile-page #Topmenu ul{display:flex;justify-content:center;flex-wrap:wrap;height:auto}
  body.home-mobile-page #Topmenu ul{flex-direction:row}
  body.home-mobile-page #Topmenu ul li{float:none;flex:1 1 auto;margin:0;height:auto;line-height:normal}
  body.home-mobile-page #Topmenu ul li a{min-height:44px;display:flex;align-items:center;justify-content:center;padding:6px 8px}
  body.home-mobile-page #Topmenu ul li a strong{height:auto;line-height:22px;font-size:14px;white-space:normal}
  body.home-mobile-page #Topmenu ul li a span{display:none}
  body.home-mobile-page #Topmenu .home-nav-single strong{height:auto;line-height:22px}
  body.home-mobile-page .header{height:160px}
  body.home-mobile-page .header-mask{width:100%}
  body.home-mobile-page .header-logo,body.home-mobile-page .header-logo img{width:100%;max-width:320px;height:150px;object-fit:contain}
  body.home-mobile-page .banner-title{font-size:32px;letter-spacing:3px}
  body.home-mobile-page .banner-sub{font-size:10px;letter-spacing:0;text-align:center}
  body.home-mobile-page .container .top{padding:0 8px 12px;border:0;transform:none;background:transparent}
  body.home-mobile-page .navc,body.home-mobile-page .nav{height:auto}
  body.home-mobile-page .nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
  body.home-mobile-page .nav a{height:auto;min-height:54px}
  body.home-mobile-page .nav a p:first-child{font-size:12px;margin:10px 0 5px}
  body.home-mobile-page .nav a p:nth-child(2){font-size:9px}
  body.home-mobile-page .indexCommonTitle.home-scroll-title{height:30px;padding:2px 8px;border:0;background:transparent}
  body.home-mobile-page .indexCommonTitle.home-scroll-title .scrollInTitle{font-size:12px}

  body.home-mobile-page .home-station-nav{padding:10px 9px 8px;border:1px solid #e6d5bd;border-radius:7px;background:#fffaf3}
  body.home-mobile-page .home-station-groups{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:10px}
  body.home-mobile-page .home-station-group{min-width:0;padding:0!important;border:0!important}
  body.home-mobile-page .home-station-group:first-child{grid-column:1/-1}
  body.home-mobile-page .home-station-nav h2{font-size:12px;line-height:17px;letter-spacing:0;gap:5px;margin-bottom:5px}
  body.home-mobile-page .home-station-nav h2:before,body.home-mobile-page .home-station-nav h2:after{width:12px}
  body.home-mobile-page .home-station-buttons{grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:5px}
  body.home-mobile-page .home-station-item{min-height:48px;padding:5px 2px}
  body.home-mobile-page .home-station-item strong{font-size:14px;line-height:18px}
  body.home-mobile-page .home-station-item small{font-size:10px;line-height:14px}
  body.home-mobile-page .home-station-status-badge{font-size:9px;top:-5px;right:1px;padding:0 1px;line-height:12px}
  body.home-mobile-page .home-station-current{padding-top:8px;font-size:11px}
  body.home-mobile-page .home-station-source-note{font-size:11px}
  body.home-mobile-page .home-banners{margin-top:8px;border:1px solid #e6d5bd;border-radius:7px;padding:6px;gap:6px}
  body.home-mobile-page .home-banners-small{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  body.home-mobile-page .home-banners .home-banner-link{height:auto;min-height:26px}
  body.home-mobile-page .home-banners .home-banner-link img{height:auto;max-height:90px;object-fit:contain}

  body.home-mobile-page .filterBox.home-filter{margin-top:8px;padding:9px;border:1px solid #e6d5bd;border-radius:7px;box-shadow:none}
  body.home-mobile-page .home-filter .home-search-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  body.home-mobile-page .home-filter .home-search-toolbar input,
  body.home-mobile-page .home-filter .home-search-toolbar select,
  body.home-mobile-page .home-filter .home-search-toolbar button,
  body.home-mobile-page .home-filter .home-search-toolbar .btn-rank{height:44px;min-height:44px;font-size:14px;padding-left:6px;padding-right:6px}
  body.home-mobile-page .home-filter .home-search-toolbar input.search-input{grid-column:span 3;order:0;font-size:16px}
  body.home-mobile-page .home-filter .home-search-toolbar .btn-search{grid-column:span 1;order:1}
  body.home-mobile-page .home-filter .home-search-toolbar select{grid-column:span 2;order:2;font-size:16px;max-width:100%}
  body.home-mobile-page .home-filter .home-search-toolbar select[name="h"],
  body.home-mobile-page .home-filter .home-search-toolbar select[name="mi"]{grid-column:span 1}
  body.home-mobile-page .home-filter .home-search-toolbar .btn-rank{grid-column:1/-1;order:3;height:36px;min-height:36px;font-size:13px}
  body.home-mobile-page .home-filter .home-hotsearch{display:block;margin-top:9px;padding-top:8px}
  body.home-mobile-page .home-filter .home-hotsearch>span{min-height:0;border:0;background:none;flex-direction:row;justify-content:flex-start;gap:8px;margin-bottom:6px}
  body.home-mobile-page .home-filter .home-hotsearch>span strong{font-size:13px;line-height:20px;letter-spacing:0}
  body.home-mobile-page .home-filter .home-hotsearch>span small{font-size:10px;line-height:20px;letter-spacing:0}
  body.home-mobile-page .home-filter .home-hotsearch>div{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  body.home-mobile-page .home-filter .home-hotsearch a{height:auto;min-height:36px;line-height:18px;padding:5px 2px;font-size:12px;white-space:normal;overflow-wrap:anywhere}
  body.home-mobile-page .gonggao.home-safety-notice{margin:8px 0;padding:8px 9px;gap:7px;font-size:11px;line-height:18px}
  body.home-mobile-page .home-notice-label{font-size:10px;line-height:18px;padding:1px 4px;white-space:nowrap}
  body.home-mobile-page .tag-topic-intro{padding:10px 12px!important;border-radius:7px}
  body.home-mobile-page .tag-topic-intro h1{font-size:19px!important}
  body.home-mobile-page .top>main{padding:12px!important;overflow-wrap:anywhere}
  body.home-mobile-page .top>main>div{grid-template-columns:1fr!important}

  /* Turn the existing nine cells into one card; no extra ad nodes or URLs. */
  body.home-mobile-page table.dblist[data-ad-visit-table],
  body.home-mobile-page table.dblist[data-ad-visit-table]>tbody{display:block;width:100%;border:0}
  body.home-mobile-page table.dblist .ad-table-heading{display:none}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]{display:grid;grid-template-columns:minmax(0,1fr) 100px;margin:0 0 10px;border:1px solid #ddc6a6;border-radius:7px;overflow:hidden;box-shadow:0 1px 2px #6c37120a}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td{display:block;min-width:0;width:auto;height:auto;min-height:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;border:0;padding:5px 12px;text-align:left;font-size:13px;line-height:21px}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:before{color:#957454;font-weight:400;font-size:12px;margin-right:9px}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(1){grid-column:2;grid-row:1;padding:10px 8px 5px;text-align:right;font-size:10px;line-height:13px;letter-spacing:0}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(1) img{max-width:60px;vertical-align:middle}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(2){grid-column:1;grid-row:1;padding-top:12px;font-size:17px;line-height:25px}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(3){grid-column:1/-1;grid-row:3}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(3):before{content:"IP / 信息"}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(4){grid-column:1/-1;grid-row:2}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(4):before{content:"开服时间"}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(4) img{vertical-align:middle;max-width:100%;object-fit:contain}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(5){grid-column:1/-1;grid-row:4}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(5):before{content:"线路"}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(6){grid-column:1/-1;grid-row:5;line-height:23px}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(6):before{content:"版本介绍"}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(7){grid-column:1/-1;grid-row:6}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(7):before{content:"客服QQ"}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(8){grid-column:2;grid-row:7;padding:6px 10px 12px 0;display:flex;align-items:center}
  body.home-mobile-page table.dblist tr[data-ad-visit-row]>td:nth-child(9){grid-column:1;grid-row:7;padding-bottom:12px;display:flex;align-items:center}
  body.home-mobile-page table.dblist tr[data-ad-visit-row] .btn-enter{display:flex;justify-content:center;align-items:center;width:100%;min-height:44px;padding:8px;font-size:14px;border-radius:5px}
  body.home-mobile-page table.dblist .empty{display:block;width:100%;padding:24px 12px!important;white-space:normal;border:1px solid #e6d5bd;background:#fffaf3}
  body.home-mobile-page .day-tabs{height:auto;display:flex;gap:6px;margin:10px 0}
  body.home-mobile-page .day-tabs .tab{float:none;flex:1;margin:0;padding:7px 5px}

  body.home-mobile-page .rank-banner{height:auto!important;margin-top:16px}
  body.home-mobile-page .rank-banner img{display:none!important}
  body.home-mobile-page .rank-banner:before{content:"传奇广告排行榜";display:block;padding:12px;color:#8c3a16;font-size:17px;font-weight:bold;background:#fff8eb;border:1px solid #e5cfaa;border-radius:6px}
  body.home-mobile-page .advRankList table.dblist,body.home-mobile-page .advRankList table.dblist>tbody{display:block;width:100%;border:0}
  body.home-mobile-page .advRankList table.dblist tr{display:grid;grid-template-columns:minmax(0,1fr) 100px;margin:8px 0;border:1px solid #ddc6a6;border-radius:6px;overflow:hidden;background:#fffaf3}
  body.home-mobile-page .advRankList table.dblist .rank-table-heading{display:none}
  body.home-mobile-page .advRankList table.dblist td{display:block;width:auto;height:auto;padding:6px 12px;white-space:normal;overflow-wrap:anywhere;border:0;text-align:left;line-height:22px}
  body.home-mobile-page .advRankList table.dblist td:before{font-size:12px;color:#957454;margin-right:8px}
  body.home-mobile-page .advRankList table.dblist td:nth-child(1){grid-row:2;grid-column:1}
  body.home-mobile-page .advRankList table.dblist td:nth-child(1):before{content:"排名"}
  body.home-mobile-page .advRankList table.dblist td:nth-child(2){grid-row:2;grid-column:2}
  body.home-mobile-page .advRankList table.dblist td:nth-child(3){grid-row:1;grid-column:1/-1;font-size:16px;padding-top:10px}
  body.home-mobile-page .advRankList table.dblist td:nth-child(4){grid-row:4;grid-column:1/-1}
  body.home-mobile-page .advRankList table.dblist td:nth-child(4):before{content:"IP / 信息"}
  body.home-mobile-page .advRankList table.dblist td:nth-child(5){grid-row:3;grid-column:1/-1}
  body.home-mobile-page .advRankList table.dblist td:nth-child(5):before{content:"开服时间"}
  body.home-mobile-page .advRankList table.dblist td:nth-child(6){grid-row:5;grid-column:1/-1}
  body.home-mobile-page .advRankList table.dblist td:nth-child(6):before{content:"版本介绍"}
  body.home-mobile-page .advRankList table.dblist td:nth-child(7){grid-row:6;grid-column:1;align-self:center}
  body.home-mobile-page .advRankList table.dblist td:nth-child(7):before{content:"点击量"}
  body.home-mobile-page .advRankList table.dblist td:nth-child(8){grid-row:6;grid-column:2;padding:6px 10px 10px 0}
  body.home-mobile-page .advRankList table.dblist .btn-enter{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;font-size:14px}
  body.home-mobile-page .advRankList table.dblist td.empty{grid-column:1/-1}

  body.home-mobile-page .footer{padding:18px 12px;font-size:11px;line-height:1.8;overflow-wrap:anywhere}
  body.home-mobile-page .side-fix{position:static;display:flex;margin:0 8px 12px;border:1px solid #e6d5bd;border-radius:6px;box-shadow:none}
  body.home-mobile-page .side-fix a{width:50%;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;background:#fffaf3}
  body.home-mobile-page .side-fix i{font-size:22px;line-height:24px;margin:0}
  body.home-mobile-page .lx-pop{max-height:90vh;overflow:auto;border-radius:8px}
  body.home-mobile-page .lx-pop-body{padding:8px 12px}
  body.home-mobile-page .lx-row{flex-wrap:wrap;gap:8px}
  body.home-mobile-page .lx-c1,body.home-mobile-page .lx-c3{width:auto;flex:1 1 100%;overflow-wrap:anywhere}
  body.home-mobile-page .lx-c2{flex:1 1 100%}
  body.home-mobile-page .lx-qqbtn{min-height:44px}
  body.home-mobile-page .lx-close{display:block;min-width:44px;min-height:44px;text-align:center}
  @supports(content-visibility:auto){
    /* Content stays in the HTML; only offscreen painting is deferred. */
    body.home-mobile-page table.dblist tr[data-ad-visit-row]{content-visibility:auto;contain-intrinsic-size:auto 268px}
  }
  @media(max-width:359px){
    body.home-mobile-page .home-station-groups{grid-template-columns:1fr}
  }
}
