/* Phone layout: the same white, pale blue and navy palette as the classic desktop. */
.mobile-weather,.mobile-section-title{display:none}
@media(max-width:768px){
 html{scroll-padding-top:82px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body,body.classic-enabled{background:#fff;color:#222;font:14px/1.5 "宋体",SimSun,serif;margin:0;padding:0 0 calc(50px + env(safe-area-inset-bottom));overflow-x:visible}
 #desktop-view{display:none!important}
 #mobile-view,.classic-enabled #mobile-view{display:block}
 .site-wrap{width:100%;margin:0;padding:0 max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));box-sizing:border-box}
 a{color:#000088}
 .desktop-nav,.masthead,.secondary-nav,.mobile-intro,.mail-strip,.search-extras{display:none}
 .mobile-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 6px;min-height:70px}
 .mobile-brand>a:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
 .mobile-brand img{display:block;width:140px;height:60px;object-fit:contain}
 .mobile-brand b{font:bold 28px/1 Arial,sans-serif;color:#e70000;letter-spacing:-1px}
 .mobile-brand span{font-size:12px;color:#000088}
 .mobile-brand-tools{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:0;font:12px/1.4 Arial,sans-serif;color:#555}
 .mobile-brand-tools small{font-size:12px;overflow-wrap:anywhere;text-align:right}
 .mobile-brand .directory-link{color:#000088;font:14px/1.4 "宋体",SimSun,serif;border:1px solid #8ebaf0;border-radius:0;background:#f0f7ff;padding:5px 9px;white-space:nowrap}
 .mobile-shortcuts{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:0 0 8px;border:1px solid #5a9dc3;background:#f0f7ff}
 .mobile-shortcuts>a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:35px;padding:6px 2px;color:#000088;font-size:14px;text-align:center;overflow-wrap:anywhere;border-right:1px solid #d9e7f4;border-bottom:1px solid #d9e7f4}
 .mobile-shortcuts>a:nth-child(6n){border-right:0}
 .mobile-shortcuts>a:nth-last-child(-n+6){border-bottom:0}
 .mobile-shortcuts span{display:none}
 .search-bar{display:block;min-height:0;margin:0 0 8px;padding:6px;border:1px solid #538b9b;border-radius:0;background:#fffef0;box-shadow:none}
 .web-search{display:flex;gap:6px;min-width:0;width:100%}
 .web-search select{flex:0 0 76px;width:76px;min-width:0;height:36px;padding:0 3px;background:#fff;color:#000088;border:1px solid #9caab4;border-radius:0;font:14px/1.4 "宋体",SimSun,serif}
 .web-search input{flex:1;width:0;min-width:0;height:36px;padding:5px 6px;background:#fff;color:#111;border:1px solid #888;border-radius:0;font:16px/24px "宋体",SimSun,serif;-webkit-appearance:none;appearance:none}
 .web-search input::placeholder{font-size:12px;color:#777}
 .web-search button,.local-search button,.simple-page button{flex-shrink:0;-webkit-appearance:none;appearance:none;min-height:36px;height:auto;padding:6px 10px;background:#eee;color:#000;border:1px solid #888;border-radius:2px;font:14px/22px "宋体",SimSun,serif;white-space:nowrap;text-align:center}
 .web-search button{height:36px;min-width:50px;padding:0 8px}
 .mobile-weather{display:block;margin:0 0 8px;border:1px solid #8ebaf0;background:#fff}
 .mobile-weather-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:5px 8px;background:#f0f7ff;border-bottom:1px solid #d9e7f4;font-size:12px;color:#555}
 .mobile-weather-frame{width:260px;max-width:100%;margin:5px auto}
 .mobile-weather iframe{display:block;width:260px;height:60px;border:0;max-width:100%}
 .navigation-board{border:1px solid #3984b1}
 .mobile-section-title{display:block;margin:0;padding:5px 9px;background:#f0f7ff;border-bottom:1px solid #8ebaf0;color:#000088;font-size:14px;font-weight:normal}
 .featured{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;min-height:0;margin:0;padding:3px;border:0;border-bottom:1px solid #8ebaf0;border-radius:0;background:#fdfdec}
 .featured-item{min-height:37px;height:auto;padding:5px 3px}
 .featured-item>a{font-size:14px;line-height:1.5;color:#000088;white-space:normal;overflow-wrap:anywhere}
 .home-columns{display:block;background:#fff}
 .home-column:first-child{border:0}
 .home-row{display:block;position:relative;margin:0;padding:0;border:0;border-bottom:1px solid #8ebaf0;border-radius:0;background:#f7fbff}
 .home-column:last-child .home-row:last-child{border-bottom:0}
 .home-row h2{margin:0;padding:6px 62px 6px 9px;border:0;border-bottom:1px solid #d9e7f4;background:#edf5fc;font:normal 14px/22px "宋体",SimSun,serif}
 .home-row h2 a{color:#800000}
 .home-row .more{top:6px;right:9px;padding:0;font-size:12px;line-height:22px;color:#000088}
 .home-row-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:3px 4px;text-align:center}
 .home-row-links a{min-width:0;padding:8px 4px;font-size:14px;line-height:20px;color:#000088;white-space:normal;overflow-wrap:anywhere}
 .integrated-search{display:none}
 .bottom-groups{margin-top:8px;border:1px solid #3984b1}
 .bottom-row{position:relative;margin:0;padding:0;border:0;border-bottom:1px solid #8ebaf0;border-radius:0;background:#fff}
 .bottom-row:last-child{border-bottom:0}
 .bottom-row h2{margin:0;padding:6px 62px 6px 9px;background:#edf5fc;border-bottom:1px solid #d9e7f4;color:#000088;font:normal 14px/22px "宋体",SimSun,serif}
 .bottom-row>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:3px 4px}
 .bottom-row>div>a{min-width:0;padding:8px 4px;text-align:center;color:#000088;font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
 .bottom-row>a{top:6px;right:9px;padding:0;font-size:12px;line-height:22px;color:#000088}
 .portal-groups{display:block;margin-top:8px;border:1px solid #8ebaf0;background:#f7fbff}
 .portal-groups>div{flex-wrap:wrap;justify-content:flex-start;gap:6px 12px;padding:7px 8px;border-bottom:1px solid #d9e7f4;font-size:12px}
 .portal-groups>div:last-child{border-bottom:0}
 .portal-groups b{color:#800000}
 .breadcrumbs{margin:10px 0;gap:5px;font-size:12px;color:#555}
 .breadcrumbs a{color:#000088}
 .category-title{display:flex;flex-direction:row;align-items:baseline;justify-content:space-between;flex-wrap:wrap;margin:10px 0;gap:6px}
 .category-title h1{font:bold 20px/1.4 "宋体",SimSun,serif;color:#000088}
 .category-title span{font-size:12px;color:#555}
 .category-description{padding:9px;border:1px solid #8ebaf0;border-radius:0;background:#f7fbff;line-height:1.8;font-size:13px}
 .section-jumps{display:flex;flex-wrap:wrap;gap:6px 14px;max-height:180px;margin:8px 0;padding:9px;border:1px solid #b8cfe1;border-radius:0;background:#fffef3;font-size:13px;overflow:auto}
 .section-jumps a{background:none;color:#000088;padding:3px 0;border-radius:0}
 .category-box{margin-bottom:8px;border:1px solid #0e6dbc;border-radius:0;overflow:visible;scroll-margin-top:82px}
 .category-box h2{margin:0;padding:6px 9px;color:#fff;background:#0e6dbc;text-align:left;font:normal 14px/22px "宋体",SimSun,serif}
 .category-links,.category-box:nth-of-type(2n) .category-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:3px;background:#f6faff}
 .category-box:nth-of-type(2n) .category-links{background:#f9fef7}
 .category-links>a{padding:9px 5px;font-size:14px;line-height:21px;color:#000088;text-align:center;overflow-wrap:anywhere;border-bottom:1px solid #dce6ed}
 .category-directory{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .category-directory>a{padding:10px;border:1px solid #8ebaf0;border-radius:0;background:#f6faff;color:#000088}
 .category-directory b{font-size:15px}
 .category-directory small{font-size:12px;color:#666;flex-wrap:wrap;gap:3px}
 .category-filter{margin:8px 0 12px;color:#555;font-size:13px}
 .category-filter input,.local-search input,.public-form input,.public-form textarea{font-size:16px;border:1px solid #888;border-radius:0;background:#fff;color:#111;min-width:0;-webkit-appearance:none;appearance:none}
 .category-filter input{padding:8px}
 .local-search{margin:12px 0;gap:6px}
 .local-search input{padding:8px}
 .result-list article{padding:12px;background:#f6faff;border:1px solid #8ebaf0;border-radius:0}
 .result-list article>a{color:#000088;font-size:16px}
 .result-list small,.result-list p{font-size:12px;color:#555}
 .simple-page{margin:12px 0;padding:12px;border:1px solid #8ebaf0;border-radius:0;background:#fff;font-size:14px;min-height:0}
 .simple-page h1{color:#000088;font:bold 21px/1.4 "宋体",SimSun,serif}
 .public-form label{font-size:14px;color:#333;min-width:0}
 .public-form button{border-radius:2px;max-width:100%;white-space:normal}
 .empty-state{margin:12px 0;padding:24px 12px;border:1px solid #8ebaf0;border-radius:0;background:#f7fbff}
 .ad-slot{border:1px solid #8ebaf0;border-radius:0;background:#fff;padding:7px;font-size:12px}
 .ad-slot a{color:#000088;overflow-wrap:anywhere;min-width:0}
 .site-notice{margin:8px 0;padding:8px;border:1px solid #e8e2b8;border-radius:0;background:#fffef0;overflow-wrap:anywhere}
 .site-footer{padding:16px 4px 12px;color:#555;font-size:12px;line-height:1.8}
 .site-footer p:first-child{max-width:none}
 .site-footer nav{gap:6px 18px;margin:8px 0}
 .site-footer nav a,.site-footer .admin-entry{color:#000088}
 .mobile-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:50;left:0;right:0;bottom:0;height:calc(44px + env(safe-area-inset-bottom));padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));border-top:1px solid #5a9dc3;background:#f0f7ff;box-shadow:none}
 .mobile-bottom>a{display:flex;justify-content:center;align-items:center;color:#000088;font:14px/1.4 "宋体",SimSun,serif;min-width:0}
 .mobile-bottom>a span{display:none}
 .mobile-bottom>a.active{color:#0000ff;background:#fff;text-decoration:underline}
 .back-top{width:30px;height:30px;right:10px;bottom:calc(54px + env(safe-area-inset-bottom));border:1px solid #8ebaf0;border-radius:0;background:#fff;color:#000088;opacity:1}
 .pagination{flex-wrap:wrap;margin:16px 0;gap:12px}
 .small-font .featured a,.small-font .home-row a,.small-font .category-links a{font-size:14px}
 dialog{border-radius:2px;border-color:#8ebaf0;font-family:"宋体",SimSun,serif}
}
@media(max-width:359px){.featured{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-shortcuts>a{font-size:13px}.category-links>a{font-size:13px;padding-right:3px;padding-left:3px}}
@media(min-width:540px) and (max-width:768px){.home-row-links,.bottom-row>div,.category-links,.category-box:nth-of-type(2n) .category-links{grid-template-columns:repeat(4,minmax(0,1fr))}.featured{grid-template-columns:repeat(6,minmax(0,1fr))}.category-directory{grid-template-columns:repeat(3,minmax(0,1fr))}}
