/* 两个前台页面唯一的基础样式。后台及会员中心不受此文件影响。 */
:root{--bg:#f1f5ff;--panel:#fff;--text:#18223f;--muted:#7180a1;--line:#e7ecf7;--blue:#1673ff;--soft:#eef5ff;--shadow:0 4px 22px #3b62ab08;--radius:18px;color-scheme:light;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
:root[data-theme=dark]{--bg:#111a2c;--panel:#19253b;--text:#e7edff;--muted:#a1b1d1;--line:#2a3a54;--blue:#74aeff;--soft:#243756;--shadow:0 4px 22px #0002;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:radial-gradient(ellipse at 15% 0,#dce9ff88,transparent 45%),var(--bg);color:var(--text);font-size:14px;line-height:1.65}body.modal-open{overflow:hidden}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}img{max-width:100%;height:auto;display:block}h1,h2,h3,p{margin:0}ul,ol{list-style:none;padding:0;margin:0}button{color:inherit}a,button{ -webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #72acff;outline-offset:4px}input,textarea{min-width:0;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px 14px;outline:none}input:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1673ff15}textarea{resize:vertical;width:100%}[hidden]{display:none!important}.shell{width:min(1480px,calc(100% - 64px));margin-inline:auto}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.muted{color:var(--muted)}.truncate{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.skip-link{position:fixed;top:-100px;z-index:200;background:var(--panel);padding:12px}.skip-link:focus{top:5px}
/* 导航：桌面横排，平板和手机使用左侧原生模态抽屉。 */
.site-header{position:sticky;top:0;z-index:30;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 2px 14px #4568a008}.header-inner{display:flex;align-items:center;gap:18px;min-height:78px}.brand{display:flex;align-items:center;gap:10px;min-width:0;font-size:21px;font-weight:800;letter-spacing:-.6px;line-height:1.25}.brand>span:last-child{max-width:225px;overflow-wrap:anywhere}.brand-mark{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:14px 5px 14px 5px;background:linear-gradient(140deg,#03a5ff,#2463f8);color:#fff;font-size:20px;box-shadow:0 5px 12px #1673ff26}.desktop-nav{display:flex;gap:22px;align-items:center;margin-left:22px;flex:1}.desktop-nav a{display:flex;gap:8px;align-items:center;font-weight:650;font-size:15px;white-space:nowrap}.desktop-nav>a,.nav-group{min-height:78px;position:relative;display:flex;align-items:center}.desktop-nav .active{color:var(--blue)}.desktop-nav .active:after{content:"";position:absolute;bottom:0;height:3px;background:var(--blue);border-radius:3px;width:36px}.nav-group{gap:2px}.sub-toggle{border:0;background:none;padding:8px 2px;color:var(--muted)}.sub-toggle .icon{width:14px}.nav-sub{display:none;position:absolute;top:calc(100% - 2px);left:-14px;min-width:170px;padding:10px;border:1px solid var(--line);background:var(--panel);border-radius:12px;box-shadow:0 10px 35px #2233561c}.nav-sub a{font-size:14px;padding:9px 12px;border-radius:6px}.nav-sub a:hover{background:var(--soft);color:var(--blue)}.nav-group.open .nav-sub{display:block}.header-search{display:flex;align-items:center;width:240px;min-width:150px;margin-left:auto;border-radius:30px;background:var(--soft);border:1px solid transparent}.header-search:focus-within{border-color:var(--blue)}.header-search input{background:none;border:0;box-shadow:none;width:100%;padding:10px 0 10px 17px;font-size:13px}.header-search button,.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;color:var(--muted)}.icon-button:hover{color:var(--blue);background:var(--soft)}.account-button{width:38px;height:38px;border-radius:50%;background:var(--soft);color:var(--blue);display:grid;place-items:center;flex-shrink:0;overflow:hidden}.account-button img{width:100%;height:100%;object-fit:cover}.menu-toggle{display:none}.site-drawer{margin:0;border:0;border-right:1px solid var(--line);padding:24px 18px;width:min(310px,84vw);height:100%;height:100dvh;max-height:100dvh;background:var(--panel);color:var(--text);box-shadow:12px 0 60px #19295820;overflow-y:auto}.site-drawer[open]{animation:drawer-in .22s ease-out}.site-drawer::backdrop{background:#182a4a45;backdrop-filter:blur(2px)}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:26px}.drawer-heading .brand{font-size:19px}.drawer-nav>a,.drawer-nav summary{display:flex;align-items:center;gap:13px;padding:13px 14px;margin:5px 0;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer}.drawer-nav .active{background:linear-gradient(100deg,var(--soft),#1673ff20);color:var(--blue)}.drawer-nav summary{list-style:none}.drawer-nav summary::-webkit-details-marker{display:none}.drawer-nav summary .icon:last-child{margin-left:auto;width:16px;transition:transform .2s}.drawer-nav details[open] summary .icon:last-child{transform:rotate(180deg)}.drawer-children{display:grid;margin:0 0 12px 26px}.drawer-children a{position:relative;padding:10px 8px 10px 25px;color:var(--muted);font-size:15px}.drawer-children a:before{content:"";width:5px;height:5px;background:#9aaccc;border-radius:50%;position:absolute;left:6px;top:21px}.drawer-nav a:hover{color:var(--blue);background:var(--soft)}.drawer-divider{border-top:1px solid var(--line);margin:20px 8px}.drawer-nav details{border-bottom:1px solid var(--line);padding-bottom:5px}
/* 首页内容与侧栏。 */
.site-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start;padding-top:26px;padding-bottom:40px}.main-column,.site-sidebar{min-width:0;display:grid;gap:22px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;min-width:0}.hero{isolation:isolate;position:relative;min-height:255px;padding:38px 42px;border-radius:var(--radius);overflow:hidden;display:flex;align-items:center;color:white;background:#214779 url('../images/mountains.svg') center 52%/cover no-repeat}.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0d2a5e99,transparent)}.hero-copy{max-width:650px}.hero .eyebrow{color:#c6dbff;letter-spacing:2px;font-size:11px}.hero h1{font-size:clamp(25px,2.6vw,38px);line-height:1.35;margin:9px 0;font-weight:750;letter-spacing:.5px;text-wrap:balance}.hero p{font-size:16px;color:#e0e9ff;margin-bottom:22px;max-width:580px}.hero .button{color:#fff;border-color:#ffffffa8;background:#ffffff10;backdrop-filter:blur(6px)}.hero .button:hover{background:#ffffff28}.hero-caption{position:absolute;bottom:20px;right:24px;font-size:10px;letter-spacing:2px;color:#d4e8ff80}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--blue);border-radius:24px;background:var(--blue);color:white;padding:9px 20px;font-weight:600;font-size:14px;transition:transform .2s,box-shadow .2s,background .2s}.button:hover{transform:translateY(-2px);box-shadow:0 6px 15px #1673ff20}.button:disabled{opacity:.6;cursor:wait;transform:none}.button .icon{width:17px;height:17px}.button-outline{color:var(--blue);background:transparent}.button-small{font-size:12px;padding:5px 13px}.eyebrow{font-size:11px;color:var(--muted);font-weight:500}.section-title{display:flex;align-items:center;gap:9px;font-size:18px;line-height:1.4;padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:8px;position:relative}.section-title>.icon{color:var(--blue);width:22px;height:22px}.hot-title>.icon{color:#ff6159}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);margin-bottom:0}.section-heading .section-title{border:0;margin:0}.section-heading .section-title:after{content:"";position:absolute;bottom:-1px;left:0;width:35px;height:3px;background:var(--blue);border-radius:3px}.section-heading>span{color:var(--muted);font-size:12px;flex-shrink:0;padding-bottom:17px}.article-row{display:flex;align-items:center;gap:22px;padding:20px 0;border-bottom:1px solid var(--line)}.article-row:last-child{border-bottom:0;padding-bottom:0}.article-thumb{width:210px;aspect-ratio:1.85;flex-shrink:0;border-radius:12px;overflow:hidden;background:var(--soft)}.article-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.article-row:hover .article-thumb img{transform:scale(1.05)}.article-info{flex:1;min-width:0}.article-info h2{font-size:18px;line-height:1.5;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.article-info h2 a:hover{color:var(--blue)}.article-summary{font-size:13px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7;margin-bottom:12px}.article-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.article-meta>span,.article-meta>time,.article-meta>a{display:inline-flex;align-items:center;gap:5px}.article-meta .icon{width:15px;height:15px}.badge{font-size:11px;background:var(--soft);color:var(--blue);border-radius:20px;padding:3px 12px;max-width:100%;overflow-wrap:anywhere}.article-meta .badge{margin-left:auto}.pin{display:inline-block;background:var(--soft);color:var(--blue);font-size:10px;padding:1px 5px;border-radius:4px;margin-right:6px;vertical-align:2px}.filter-info{padding:12px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.filter-info a{color:var(--blue);margin-left:10px}.pagination{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;padding-top:26px}.pagination>a,.pagination>span{display:grid;place-items:center;min-width:35px;height:35px;border:1px solid var(--line);border-radius:9px;padding:0 9px}.pagination>a:hover,.pagination .active{background:var(--blue);color:white;border-color:var(--blue)}.empty-state{padding:50px 20px;text-align:center;color:var(--muted)}.empty-state p{margin-bottom:16px}.notice-strip{padding:12px 18px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted);font-size:12px;overflow-wrap:anywhere}.notice-strip span{color:var(--blue);font-weight:650;margin-right:12px}
.profile-card{padding:24px 20px}.profile-top{display:flex;gap:17px;align-items:center}.profile-top>div{min-width:0}.profile-avatar{width:82px;height:82px;object-fit:cover;border-radius:50%;border:4px solid var(--soft);flex-shrink:0}.profile-top h2{font-size:20px;margin:3px 0;overflow-wrap:anywhere}.profile-top p{color:var(--muted);font-size:12px;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;margin-top:24px}.profile-stats>div+div{border-left:1px solid var(--line)}.profile-stats span{display:block;font-size:12px;color:var(--muted)}.profile-stats strong{font-size:19px;font-weight:650}.rank-list a{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:13px}.rank-list a>.truncate{flex:1}.rank-list a:hover,.latest-list a:hover{color:var(--blue)}.rank-list a>.muted{font-size:11px;flex-shrink:0}.rank{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--soft);flex-shrink:0;font-size:12px}.rank-1{background:#ff6f71;color:white}.rank-2{background:#ffa52c;color:white}.rank-3{background:#ffc26c;color:#70441e}.category-panel{padding:12px}.category-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.category-cards>a{display:flex;flex-direction:column;align-items:start;gap:6px;background:var(--soft);border-radius:13px;padding:18px 15px;transition:transform .2s}.category-cards>a:nth-child(even){background:#9a75ff12}.category-cards>a:hover{transform:translateY(-3px)}.category-cards .icon{color:var(--blue);margin-bottom:5px;width:26px;height:26px}.category-cards>a:nth-child(even) .icon{color:#9461f5}.category-cards strong{font-size:16px}.category-cards span{color:var(--muted);font-size:11px}.category-cards .icon:last-child{margin:0 0 0 auto;width:17px}.service-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.service-links a{background:var(--soft);border-radius:9px;text-align:center;padding:9px;font-size:12px;color:var(--blue)}.latest-list a{display:flex;gap:10px;justify-content:space-between;padding:10px 0;font-size:13px}.latest-list time{font-size:11px;color:var(--muted);flex-shrink:0}.tag-cloud{display:flex;flex-wrap:wrap;gap:9px;padding-top:12px}.tag-cloud a{background:var(--soft);padding:4px 11px;border-radius:7px;font-size:12px;color:var(--muted)}.tag-cloud a:hover{color:var(--blue)}.recent-comments>a{display:block;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.recent-comments>a:last-child{border:0;padding-bottom:0}.recent-comments p{margin:4px 0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.recent-comments span{display:block;color:var(--blue);font-size:11px}.custom-widget{padding-top:12px;overflow:auto;overflow-wrap:anywhere}.custom-widget img,.custom-widget iframe{max-width:100%}
/* 文章详情与原有互动功能。 */
.breadcrumbs{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px;flex-wrap:wrap}.breadcrumbs a:hover{color:var(--blue)}.article-detail{padding:34px 38px}.article-heading h1{font-size:clamp(25px,2.5vw,34px);line-height:1.45;margin:15px 0 18px;overflow-wrap:anywhere}.article-heading{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:26px}.article-cover{width:100%;max-height:490px;object-fit:cover;border-radius:14px;margin-bottom:25px}.article-lead{border-left:3px solid var(--blue);padding:14px 18px;background:var(--soft);color:var(--muted);border-radius:0 10px 10px 0;margin-bottom:26px;overflow-wrap:anywhere}.article-content{font-size:16px;line-height:2.1;overflow-wrap:anywhere;white-space:pre-wrap}.article-content img{max-width:100%;height:auto}.attachment-image{margin:24px auto;border-radius:12px}.download-box{display:flex;justify-content:space-between;gap:16px;align-items:center;background:var(--soft);border:1px dashed #9dbcec;padding:20px;border-radius:14px;margin:26px 0}.download-box>div{min-width:0;overflow-wrap:anywhere}.download-box small{display:block;color:var(--muted)}.download-box .button{flex-shrink:0}.article-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:30px;padding-top:25px}.article-actions .selected{background:#fff2ce;color:#a86a10;border-color:#eed394}.tip-box{margin-top:26px;padding:24px;background:linear-gradient(120deg,#fff5dd77,#ffece755);border:1px solid var(--line);border-radius:14px;text-align:center}.tip-box h2{font-size:17px}.tip-box p{font-size:12px;color:var(--muted);margin:6px 0 16px}.tip-form{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.tip-form input{width:85px;padding:8px}.tip-form>button[type=button]{border:1px solid var(--line);border-radius:20px;padding:7px 12px;background:var(--panel)}.tip-form>button[type=button].selected{border-color:var(--blue);color:var(--blue)}.form-note{font-size:12px;color:var(--muted);margin:10px 0}.comment-form{margin-top:20px}.comment-form .button{margin-top:12px}.comment{display:flex;gap:13px;padding:22px 0;border-bottom:1px solid var(--line)}.comment:last-child{border:0;padding-bottom:0}.comment>img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}.comment-body{flex:1;min-width:0}.comment-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.comment-head strong{font-size:13px}.comment-head time{font-size:11px;color:var(--muted)}.comment-head button{border:0;background:transparent;color:var(--blue);margin-left:auto;font-size:12px}.comment-text{margin-top:7px;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap}.comment-replies{padding:0 14px 14px;background:var(--soft);border-radius:10px;margin-top:15px}.reply-alert{padding:10px 14px;background:var(--soft);color:var(--blue);border-radius:10px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.reply-alert button{background:none;border:0;color:inherit}.feedback{border-radius:12px;background:var(--soft);padding:15px 18px;color:var(--blue);font-size:13px;overflow-wrap:anywhere}.feedback.error{color:#cc3e50;background:#ffeded}
/* 页脚波浪与提示。 */
.site-footer{position:relative;isolation:isolate;margin-top:20px;padding:35px 0 28px;border-top:1px solid var(--line);background:linear-gradient(165deg,var(--panel),var(--soft));overflow:hidden}.site-footer:after{content:"";position:absolute;z-index:-1;width:130%;height:110px;left:-10%;bottom:-70px;background:#1673ff0b;border-radius:50% 50% 0 0;transform:rotate(-3deg)}.friend-links{padding-bottom:26px;margin-bottom:22px;border-bottom:1px solid var(--line);display:flex;gap:25px;align-items:baseline}.friend-links h2{font-size:13px;display:flex;gap:7px;align-items:center;flex-shrink:0}.friend-links h2 .icon{width:16px}.friend-links>div{display:flex;gap:12px 24px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.friend-links a:hover{color:var(--blue)}.footer-bottom{display:flex;align-items:center;gap:24px}.footer-bottom .brand{font-size:18px}.footer-bottom .brand-mark{flex-basis:30px;height:30px;font-size:16px}.footer-bottom p{font-size:12px;color:var(--muted);padding-left:20px;border-left:1px solid var(--line)}.footer-bottom small{font-size:11px;color:var(--muted);margin-left:auto}.back-top{position:fixed;bottom:24px;right:18px;background:var(--panel);border:1px solid var(--line);box-shadow:0 4px 15px #263b5e12;z-index:15}.toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--panel);box-shadow:var(--shadow);border-radius:12px;padding:13px 20px;z-index:90;max-width:calc(100% - 32px);width:max-content;font-size:13px}.announcement{width:min(480px,calc(100% - 32px));border:1px solid var(--line);padding:28px;border-radius:22px;background:var(--panel);color:var(--text);box-shadow:0 25px 100px #15274d33}.announcement::backdrop{background:#14294b70;backdrop-filter:blur(5px)}.announcement-heading{display:flex;align-items:center;justify-content:space-between}.announcement h2{font-size:24px;margin:8px 0 16px}.notice-content{font-size:14px;color:var(--muted);line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow-y:auto;margin-bottom:24px}.announcement>.button{width:100%}@keyframes drawer-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(min-width:1181px){.desktop-nav{min-width:0;overflow-x:auto;scrollbar-width:none}.desktop-nav::-webkit-scrollbar{display:none}.desktop-nav>a,.nav-group{flex-shrink:0}.nav-group:hover .nav-sub{display:block}}
@media(max-width:1300px){.desktop-nav{gap:15px;margin-left:10px}.desktop-nav a{font-size:13px}.header-search{width:190px}.header-inner{gap:12px}.site-layout{grid-template-columns:minmax(0,1fr) 310px}.article-thumb{width:175px}.profile-avatar{width:65px;height:65px}.brand{font-size:18px}}
@media(max-width:1180px){.desktop-nav{display:none}.menu-toggle{display:inline-flex}.header-search{width:300px}.site-layout{gap:20px;grid-template-columns:minmax(0,1fr) 290px}.panel{padding:20px}.article-row{gap:16px}.article-thumb{width:150px}.article-info h2{font-size:16px}.article-meta{gap:9px}.profile-top{gap:12px}.profile-top h2{font-size:18px}.profile-avatar{width:58px;height:58px}.profile-top .eyebrow{display:none}}
@media(max-width:900px){.shell{width:calc(100% - 40px)}.site-layout{grid-template-columns:minmax(0,1fr)}.site-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.hero{min-height:255px}.article-thumb{width:210px}.article-info h2{font-size:18px}.article-detail{padding:28px}.footer-bottom{flex-wrap:wrap}.footer-bottom small{margin-left:0}.profile-avatar{width:70px;height:70px}}
@media(max-width:600px){.shell{width:calc(100% - 28px)}.header-inner{min-height:112px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand account menu" "search search search";gap:10px;padding:12px 0}.header-inner>.brand{grid-area:brand;min-width:0;font-size:17px}.header-inner>.brand .brand-mark{flex-basis:31px;height:31px;font-size:16px}.header-inner>.brand>span:last-child{max-width:230px}.account-button{grid-area:account;width:32px;height:32px}.header-inner>.theme-toggle{display:none}.header-search{grid-area:search;width:100%;margin:0}.header-search input{font-size:14px;padding:9px 0 9px 16px}.header-search button{height:38px}.menu-toggle{grid-area:menu;display:inline-flex;height:38px;width:38px;color:var(--text)}.menu-toggle .icon{width:25px;height:25px}.site-layout{padding-top:16px;gap:18px;padding-bottom:20px}.main-column,.site-sidebar{gap:16px}.hero{min-height:225px;padding:27px 23px;border-radius:15px;background-position:60% center}.hero h1{font-size:25px}.hero p{font-size:13px;line-height:1.7;margin-bottom:18px}.hero .eyebrow{font-size:9px}.hero-caption{display:none}.panel{padding:17px;border-radius:15px}.section-title{font-size:17px;padding-bottom:14px}.section-heading>span{font-size:11px;padding-bottom:14px}.article-row{padding:16px 0;gap:12px;align-items:flex-start}.article-thumb{width:112px;aspect-ratio:1.2;border-radius:9px}.article-info h2{font-size:15px;line-height:1.55;margin-bottom:4px}.article-summary{font-size:12px;-webkit-line-clamp:1;line-height:1.6;margin-bottom:8px}.article-meta{gap:5px 9px;font-size:10px;line-height:1.5}.article-meta .icon{width:13px;height:13px}.article-meta .badge{font-size:10px;padding:2px 7px;margin-left:0}.pin{font-size:9px;vertical-align:1px}.site-sidebar{grid-template-columns:minmax(0,1fr)}.profile-top{gap:18px}.profile-avatar{width:78px;height:78px}.profile-top .eyebrow{display:block}.profile-stats{margin-top:18px}.category-cards>a{padding:17px}.article-detail{padding:21px 18px}.article-heading h1{font-size:25px}.article-heading{margin-bottom:20px;padding-bottom:20px}.article-content{font-size:15px;line-height:2}.article-lead{font-size:13px}.article-cover{border-radius:10px}.download-box{padding:15px;flex-wrap:wrap}.download-box .button{width:100%}.article-actions{gap:8px}.article-actions .button{font-size:12px;padding:8px 13px}.tip-box{padding:20px 12px}.tip-box h2{font-size:16px}.tip-form{gap:6px}.tip-form>button[type=button]{font-size:12px;padding:6px 10px}.comment{gap:10px}.comment>img{width:30px;height:30px}.comment-head{gap:4px 8px}.comment-head time{font-size:10px}.comment-text{font-size:13px}.comment-replies{padding-inline:10px}.footer-bottom{gap:15px;justify-content:center;text-align:center}.footer-bottom p{padding:0;border:0;width:100%}.footer-bottom small{width:100%;font-size:10px}.friend-links{display:block}.friend-links>div{margin-top:12px;gap:10px 18px}.site-footer{margin-top:0;padding-top:24px}.back-top{bottom:18px;width:38px;height:38px}.notice-strip{font-size:11px}.breadcrumbs{font-size:11px}.announcement{padding:23px}.announcement h2{font-size:21px}}
@media(max-width:360px){.article-thumb{width:92px;aspect-ratio:1}.article-info h2{font-size:14px}.article-meta{gap:4px 7px}.header-inner>.brand{font-size:15px}.hero h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* 手机端导航从右侧滑出。 */
@media(max-width:1180px){.site-drawer{margin-left:auto;margin-right:0;border-right:0;border-left:1px solid var(--line);box-shadow:-12px 0 60px #19295820}.site-drawer[open]{animation:drawer-in-right .22s ease-out}}
@keyframes drawer-in-right{from{transform:translateX(100%)}to{transform:translateX(0)}}
.drawer-theme-toggle{display:flex;align-items:center;gap:13px;width:100%;padding:13px 14px;margin:5px 0;border:0;background:transparent;color:inherit;border-radius:12px;font-size:16px;font-weight:600;text-align:left}
.drawer-theme-toggle:hover{color:var(--blue);background:var(--soft)}
/* 页脚内容统一居中，页脚品牌仅保留文字。 */
.friend-links{flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}
.friend-links h2{justify-content:center}
.friend-links>div{justify-content:center}
.footer-bottom{flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center}
.footer-bottom p{padding-left:0;border-left:0}
.footer-bottom small{margin-left:0}
/* 手机端恢复顶部深色模式入口，与个人中心和菜单并列。 */
@media(max-width:600px){.header-inner{grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:"brand theme account menu" "search search search search"}.header-inner>.theme-toggle{grid-area:theme;display:inline-flex;width:32px;height:32px}.header-inner>.theme-toggle .icon{width:20px;height:20px}}
/* 手机端所有页面禁止横向溢出，长内容只在自身区域内处理。 */
@media(max-width:600px){html,body{width:100%;max-width:100%;overflow-x:hidden}.shell{width:100%;max-width:100%;padding-left:14px;padding-right:14px}.site-layout,.main-column,.site-sidebar,.panel,.article-detail{width:100%;max-width:100%;min-width:0}.article-content,.article-heading,.article-lead,.download-box{max-width:100%;min-width:0}.article-content pre,.article-content table{display:block;max-width:100%;overflow-x:auto}.article-content pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.article-content img,.article-content video,.article-content iframe{max-width:100%;height:auto}.custom-widget{max-width:100%;overflow-x:auto}}
/* 手机端主体卡片贴齐屏幕左右边缘，间距为 0px。 */
@media(max-width:600px){.site-layout{width:calc(100% + 28px);max-width:none;margin-left:-14px;margin-right:-14px}.site-layout>.main-column,.site-layout>.site-sidebar{width:100%}.site-layout .panel,.site-layout .hero{border-radius:0}}
/* 手机侧边分类栏：缩窄、隐藏顶部品牌，并确保底部菜单可滚动完整显示。 */
@media(max-width:600px){.site-drawer{width:min(280px,78vw);padding:18px 14px calc(24px + env(safe-area-inset-bottom));height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain}.drawer-heading{justify-content:flex-end;margin-bottom:14px}.drawer-heading .brand{display:none}.drawer-nav>a,.drawer-nav summary,.drawer-theme-toggle{gap:10px;padding:10px 12px;margin:3px 0;font-size:15px}.drawer-nav .icon{width:19px;height:19px}.drawer-nav summary .icon:last-child{width:14px}.drawer-divider{margin:14px 8px}.drawer-children{margin-bottom:8px}.drawer-children a{padding-top:8px;padding-bottom:8px}}
@media(max-width:600px){.site-drawer{height:calc(100dvh - env(safe-area-inset-top));max-height:calc(100dvh - env(safe-area-inset-top));padding-bottom:96px!important;scroll-padding-bottom:96px}.site-drawer .drawer-nav:after{content:"";display:block;height:72px;flex:0 0 72px}}
/* 桌面页脚左右分栏：左侧友链右对齐，右侧站点信息左对齐。 */
@media(min-width:601px){.site-footer>.shell{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.site-footer .friend-links{grid-column:1;margin:0;padding:0;border-bottom:0;align-items:flex-end;justify-content:center;text-align:right}.site-footer .friend-links h2{justify-content:flex-end}.site-footer .friend-links>div{justify-content:flex-end}.site-footer .footer-bottom{grid-column:2;align-items:flex-start;justify-content:center;text-align:left}}
@media(max-width:600px){.site-footer>.shell{display:block}.site-footer .friend-links{margin-bottom:22px}}
@media(max-width:600px){.site-footer>.shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center}.site-footer .friend-links{grid-column:1;margin:0;padding:0;border:0;align-items:flex-end;justify-content:center;text-align:right}.site-footer .friend-links h2{justify-content:flex-end;font-size:12px}.site-footer .friend-links>div{justify-content:flex-end;gap:7px 12px;font-size:11px}.site-footer .footer-bottom{grid-column:2;align-items:flex-start;justify-content:center;text-align:left;gap:7px}.site-footer .footer-bottom .brand{font-size:15px}.site-footer .footer-bottom p,.site-footer .footer-bottom small{font-size:10px;line-height:1.5}}
/* 手机顶部只保留品牌、搜索和分类菜单；抽屉顶部不显示关闭图标。 */
@media(max-width:600px){.header-inner{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand menu" "search search"}.header-inner>.theme-toggle,.header-inner>.account-button{display:none}.site-drawer{width:min(250px,70vw)}.drawer-heading [data-close-drawer]{display:none}.drawer-heading{min-height:24px;margin-bottom:10px}}
/* 手机端搜索框移到顶部，与品牌和菜单按钮同排；分类栏占设备宽度一半。 */
@media(max-width:600px){.header-inner{min-height:78px;grid-template-columns:max-content minmax(0,1fr) auto;grid-template-areas:"brand search menu";gap:8px;padding:10px 0}.header-inner>.brand{font-size:15px}.header-inner>.brand>span:last-child{max-width:130px}.header-search{grid-area:search;width:100%;height:38px}.header-search input{font-size:12px;padding-left:12px}.header-search button{width:34px;height:36px}.menu-toggle{grid-area:menu;width:34px;height:38px}.site-drawer{width:50vw;min-width:0;max-width:50vw}}
/* 手机端搜索框点击后从顶部下方展开。 */
@media(max-width:600px){.header-inner{position:relative;grid-template-columns:max-content 38px auto;grid-template-areas:"brand search menu"}.header-search{position:relative;justify-self:end;width:38px;height:38px;margin:0;z-index:35}.header-search input{display:none}.header-search.is-open{position:absolute;top:100%;right:0;width:calc(100% - 0px);height:42px;display:flex;box-shadow:0 8px 20px #203b6814}.header-search.is-open input{display:block;font-size:14px}.header-search.is-open button{height:40px;width:40px}.header-search.is-open:focus-within{border-color:var(--blue)}}
@media(max-width:600px){.header-inner{grid-template-columns:minmax(0,1fr) 38px 34px}.header-inner>.brand{width:100%;min-width:0;overflow:hidden;white-space:nowrap}.header-inner>.brand>span:last-child{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-search{position:relative!important;width:38px!important;min-width:38px!important;max-width:38px!important;justify-self:end!important}.header-search input{display:none!important}.header-search.is-open{position:absolute!important;top:100%!important;right:0!important;width:100%!important;min-width:0!important;max-width:none!important;height:42px!important;display:flex!important}.header-search.is-open input{display:block!important;min-width:0!important;width:100%!important}.header-search.is-open button{flex:0 0 40px!important}}
/* 桌面端主图与右侧站长信息卡片保持上下对齐。 */
@media(min-width:1181px){.hero{height:248px;min-height:0}}
@media(max-width:1180px){.hero{height:auto;min-height:255px}}
@media(max-width:600px){.hero{min-height:225px;height:auto}}
@media(min-width:601px){.panel{padding:18px}}
.site-stat-panel{padding:15px 18px;background:linear-gradient(135deg,var(--panel),var(--soft))}.site-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}.site-stat-item+ .site-stat-item{border-left:1px solid var(--line)}.site-stat-item strong{display:block;font-size:20px;line-height:1.35;color:var(--text)}.site-stat-item span{display:block;margin-top:3px;color:var(--muted);font-size:11px}
/* 站长信息与统计合并为一张连续卡片，并与主图+站点推荐区域对齐。 */
.profile-card .button-small{display:none}.site-sidebar>.profile-card{border-radius:var(--radius) var(--radius) 0 0;min-height:248px}.site-sidebar>.site-stat-panel{height:66px;margin-top:-22px;padding:10px 18px;border-top:0;border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow)}
@media(max-width:1180px){.site-sidebar>.profile-card{min-height:0}.site-sidebar>.site-stat-panel{height:auto;margin-top:-16px}}
.article-content.rich{white-space:normal}.article-content.rich p{margin:0 0 1.1em}.article-content.rich h2,.article-content.rich h3{line-height:1.45;margin:1.4em 0 .5em}.article-content.rich blockquote{margin:1.2em 0;padding:8px 18px;border-left:3px solid var(--blue);background:var(--soft)}.article-content.rich ul,.article-content.rich ol{padding-left:1.8em}.article-content.rich a{color:var(--blue);text-decoration:underline}
.brand-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
