/* SL 全站 UI 重构：不改变业务逻辑，仅重新设计视觉层 */
:root{
  --bg:#f4f5f7;--surface:#ffffff;--surface-2:#f8f9fb;--text:#17181b;--muted:#747983;
  --line:#e7e8eb;--accent:#111214;--accent-2:#3b3d42;--soft:#f0f1f3;
  --shadow:0 12px 34px rgba(20,22,26,.07);--shadow-lg:0 24px 60px rgba(20,22,26,.12);
  --r-xl:30px;--r-lg:24px;--r-md:18px;--r-sm:14px;
  --ease:cubic-bezier(.22,.61,.36,1);
}
html{scroll-behavior:smooth}
body{background:var(--bg)!important;color:var(--text)!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif!important;letter-spacing:-.01em}
body:before{content:"";position:fixed;inset:-30%;z-index:-1;pointer-events:none;background:radial-gradient(circle at 18% 8%,rgba(0,0,0,.045),transparent 28%),radial-gradient(circle at 85% 12%,rgba(0,0,0,.035),transparent 24%)}
a{transition:color .2s ease,opacity .2s ease}
.navbar{height:72px!important;padding:0 max(22px,calc((100vw - 1240px)/2))!important;background:rgba(255,255,255,.82)!important;border-bottom:1px solid rgba(0,0,0,.06)!important;box-shadow:0 6px 24px rgba(0,0,0,.035)!important;backdrop-filter:blur(22px)!important;-webkit-backdrop-filter:blur(22px)!important}
.navbar .logo,.logo{color:var(--text)!important;font-size:17px!important;font-weight:750!important;gap:11px!important}
.logo-icon{width:40px!important;height:40px!important;border-radius:13px!important;background:#111!important;color:#fff!important;font-size:15px!important;box-shadow:0 8px 18px rgba(0,0,0,.16)!important;letter-spacing:-.04em}
.container{max-width:1240px!important;padding:28px 22px 88px!important;animation:slFade .55s var(--ease) both}
/* 首页 */
.sl-hero{position:relative;overflow:hidden;margin:2px 0 22px;padding:36px 36px 34px;border-radius:32px;background:#111;color:#fff;box-shadow:var(--shadow-lg)}
.sl-hero:before,.sl-hero:after{content:"";position:absolute;border-radius:999px;pointer-events:none}
.sl-hero:before{width:340px;height:340px;right:-110px;top:-170px;background:radial-gradient(circle,rgba(255,255,255,.16),transparent 66%)}
.sl-hero:after{width:260px;height:260px;left:45%;bottom:-190px;background:radial-gradient(circle,rgba(255,255,255,.09),transparent 68%)}
.sl-hero-content{position:relative;z-index:1;max-width:720px}.sl-kicker{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.08);border-radius:999px;font-size:12px;color:#d9dadd}.sl-hero h1{font-size:clamp(32px,5vw,54px);line-height:1.08;margin:16px 0 12px;letter-spacing:-.055em}.sl-hero p{margin:0;color:#b9bbc0;font-size:15px;line-height:1.8}.sl-hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.sl-hero-meta span{padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.08);font-size:12px;color:#d6d7da}
.carousel{height:260px!important;margin-bottom:22px!important;border-radius:28px!important;overflow:hidden!important}.carousel-item{height:240px!important;width:92%!important;max-width:760px!important;border-radius:26px!important;box-shadow:0 16px 42px rgba(0,0,0,.14)!important}.carousel-placeholder{background:linear-gradient(135deg,#eceef1,#f8f9fa)!important;border:1px dashed #d8dadd!important}
.carousel-dots{bottom:14px!important}.carousel-dot{width:7px!important;height:7px!important;background:rgba(0,0,0,.22)!important}.carousel-dot.active{background:#111!important}
.stats-card{display:grid!important;grid-template-columns:repeat(3,1fr);gap:12px!important;margin:0 0 22px!important}.stat-item{min-width:0!important;padding:19px 20px!important;text-align:left!important;background:rgba(255,255,255,.9)!important;border:1px solid var(--line)!important;border-radius:22px!important;box-shadow:none!important}.stat-number{font-size:28px!important;color:var(--text)!important;letter-spacing:-.04em}.stat-label{color:var(--muted)!important;font-size:12px!important;margin-top:3px;display:block}
.button-group{justify-content:flex-start!important;gap:10px!important;margin:0 0 20px!important}.btn{width:auto!important;min-width:136px;padding:12px 18px!important;border-radius:14px!important;font-size:14px!important}.btn-primary{background:#111!important;box-shadow:0 8px 20px rgba(0,0,0,.14)!important}.btn-primary:hover{background:#292a2d!important;box-shadow:0 12px 26px rgba(0,0,0,.18)!important}.btn-qq{background:#fff!important;color:#17181b!important;border:1px solid var(--line)!important;box-shadow:none!important}.btn-qq:hover{background:#f2f3f5!important;box-shadow:none!important}
.search-box{position:relative;margin:0 0 30px!important;display:flex!important;justify-content:stretch!important;gap:10px!important}.search-box input{order:2;max-width:none!important;flex:1;padding:14px 18px!important;border:1px solid var(--line)!important;background:#fff!important;box-shadow:none!important;border-radius:16px!important;font-size:14px!important}.search-box input:focus{border-color:#bfc1c5!important;box-shadow:0 0 0 4px rgba(0,0,0,.04)!important}.search-box #slShowFavorites{order:1;margin:0!important;padding:0 17px!important;background:#fff!important;color:#303237!important;border-color:var(--line)!important;white-space:nowrap}
.hot-section,.normal-section{margin-bottom:32px!important}.hot-header{margin-bottom:13px!important}.hot-header h2,.normal-section h2{font-size:20px!important;letter-spacing:-.03em}.hot-header a{font-size:13px!important;color:#666a71!important}.hot-scroll{gap:14px!important;padding:3px 2px 10px!important}.hot-card{flex:0 0 188px!important;width:188px!important;height:188px!important;border-radius:22px!important;box-shadow:none!important;border:1px solid var(--line)!important;background:#fff!important}.hot-card:hover{transform:translateY(-5px)!important;box-shadow:var(--shadow)!important}
.script-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:14px!important}.script-card{aspect-ratio:1/1.04!important;border:1px solid var(--line)!important;border-radius:22px!important;box-shadow:none!important;background:#fff!important}.script-card:hover{transform:translateY(-5px)!important;box-shadow:var(--shadow)!important}.script-card:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0) 58%);pointer-events:none}.script-card .card-info{z-index:2;padding:16px!important;background:transparent!important}.script-card .card-title{font-size:15px!important}.script-card .card-type{font-size:11px!important;color:#d4d5d7}.sl-local-tools{gap:7px!important}.sl-fav-btn,.sl-like-btn{background:rgba(255,255,255,.9)!important;border-color:rgba(255,255,255,.65)!important;color:#202126!important;border-radius:999px!important}.sl-fav-btn.active,.sl-like-btn.active{background:#111!important;color:#fff!important;border-color:#111!important}
.empty-state{padding:70px 20px!important;background:#fff;border:1px dashed var(--line);border-radius:22px}
.sl-favorites-panel{border:1px solid var(--line)!important;border-radius:22px!important;box-shadow:var(--shadow)!important;background:#fff!important}
.sl-theme-toggle{right:20px!important;bottom:20px!important;border:1px solid var(--line)!important;background:rgba(255,255,255,.88)!important;color:#17181b!important;box-shadow:0 12px 30px rgba(0,0,0,.12)!important;padding:11px 15px!important;backdrop-filter:blur(16px)!important}
/* 通用弹窗 / 表单 */
.modal-overlay,.announcement-overlay{background:rgba(15,16,18,.46)!important;backdrop-filter:blur(8px)!important}.modal-box{border:1px solid rgba(0,0,0,.06)!important;border-radius:26px!important;box-shadow:0 28px 80px rgba(0,0,0,.22)!important;padding:28px!important}.modal-close{width:34px;height:34px;border-radius:50%;background:#f0f1f3!important;line-height:1!important;font-size:23px!important}.form-group input[type=text],.form-group textarea,.form-group select{border:1px solid var(--line)!important;border-radius:14px!important;padding:12px 14px!important;background:#fafbfc}.form-group input[type=file]{border:1px dashed #d5d7db!important;background:#fafbfc!important}.announcement-glass{border-radius:28px!important;background:rgba(255,255,255,.88)!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 30px 80px rgba(0,0,0,.2)!important}.announcement-btn{background:#111!important;border-radius:14px!important;box-shadow:none!important}
/* 夜间提醒 */
.night-tip{background:rgba(255,255,255,.74)!important;color:#17181b!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 18px 50px rgba(0,0,0,.16)!important;backdrop-filter:blur(24px) saturate(145%)!important;-webkit-backdrop-filter:blur(24px) saturate(145%)!important;border-radius:22px!important;padding:14px 16px!important}.night-tip .tip-close{background:rgba(0,0,0,.07)!important;color:#17181b!important}
/* 详情页 */
body:has(.sl-detail-tools) .container{max-width:1040px!important}.action-buttons{margin-bottom:18px!important}.btn-outline{border:1px solid var(--line)!important;background:#fff!important;color:#34363b!important;border-radius:14px!important;padding:10px 15px!important}.btn-outline:hover{border-color:#c7c9cd!important;color:#111!important;background:#f8f9fa!important}.btn-danger{background:#18191b!important;border-radius:14px!important;padding:10px 15px!important}.header{padding:28px!important;margin-bottom:18px!important;border:1px solid var(--line);background:#fff;border-radius:28px!important;gap:20px!important}.app-icon{border-radius:22px!important;box-shadow:0 10px 25px rgba(0,0,0,.1)!important}.app-name{font-size:34px!important;letter-spacing:-.045em}.app-type{background:#f0f1f3!important;color:#383a3f!important;border-radius:999px!important;padding:6px 11px!important;font-size:12px!important}.description{padding:22px 24px!important;margin-bottom:18px!important;background:#fff;border:1px solid var(--line);border-radius:22px!important;color:#5e626a!important;font-size:15px!important}.sl-detail-tools{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;padding:14px!important;margin-bottom:28px!important;background:#fff;border:1px solid var(--line);border-radius:18px!important}.sl-detail-tools button{border:1px solid var(--line)!important;background:#f7f8f9!important;color:#25272b!important;border-radius:999px!important;padding:9px 13px!important}.sl-detail-tools button.active{background:#111!important;color:#fff!important;border-color:#111!important}.screenshots-title{font-size:20px!important}.screenshot-grid{gap:14px!important}.screenshot-item{border-radius:20px!important;border:1px solid var(--line)!important}.link-card{background:#fff!important;border:1px solid var(--line)!important;border-radius:18px!important;padding:14px!important}.copy-btn{background:#111!important;border-radius:13px!important}.download-btn{border-radius:16px!important;background:#111!important;box-shadow:0 12px 25px rgba(0,0,0,.12)!important}.download-btn a{color:#fff!important}
/* 应用中心 / 热门页 */
body:has(.app-grid) .container,body:has(.page-header) .container{max-width:1240px!important}.app-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important;gap:15px!important}.app-card{border:1px solid var(--line)!important;box-shadow:none!important;border-radius:22px!important}.app-card:hover{transform:translateY(-5px)!important;box-shadow:var(--shadow)!important}.app-icon{border-radius:18px!important}.app-body{padding:16px!important}.app-name{font-size:16px!important}.app-version{color:#70747b!important}.script-card .card-body{padding:15px!important}.page-header h1,h1{letter-spacing:-.04em}.bottom-nav{height:68px!important;max-width:560px!important;left:50%!important;right:auto!important;bottom:14px!important;transform:translateX(-50%);border:1px solid var(--line)!important;border-radius:22px!important;background:rgba(255,255,255,.9)!important;box-shadow:0 16px 40px rgba(0,0,0,.12)!important;backdrop-filter:blur(18px)!important;padding:4px!important}.nav-item{border-radius:18px!important;padding:8px 0!important;color:#858991!important}.nav-item.active{background:#111!important;color:#fff!important}.nav-icon{font-size:18px!important}
/* 后台 */
.admin-rework,.sidebar,.main-content{--admin-bg:#f3f4f6}
.sidebar{background:#111214!important;border-right:none!important;box-shadow:12px 0 40px rgba(0,0,0,.08)!important}.sidebar .logo{color:#fff!important}.sidebar a{border-radius:13px!important;margin:4px 10px!important}.sidebar a:hover,.sidebar a.active{background:#fff!important;color:#111!important}.main-content{background:#f3f4f6!important}.top-bar{background:rgba(255,255,255,.82)!important;border-bottom:1px solid #e3e4e7!important;backdrop-filter:blur(18px)!important}.section{background:#fff!important;border:1px solid #e5e6e9!important;border-radius:24px!important;box-shadow:none!important}.section h2{letter-spacing:-.03em}.btn{border-radius:13px!important}.btn-primary{background:#111!important}.btn-danger{background:#18191b!important}.btn-success{background:#ededee!important;color:#111!important}.btn-outline{background:#fff!important}.table-container{border-radius:18px!important;border:1px solid #e5e6e9!important;overflow:auto}.section table{border-collapse:separate!important;border-spacing:0!important}.section th{background:#f7f8f9!important}.section td,.section th{border-color:#ececef!important}.login-box{border:1px solid #e5e6e9!important;border-radius:26px!important;box-shadow:0 25px 70px rgba(0,0,0,.1)!important}.login-box button{background:#111!important;border-radius:14px!important}
/* 深色主题：继续兼容现有 sl-dark */
.sl-dark{--bg:#111214;--surface:#191a1e;--surface-2:#202126;--text:#f4f4f5;--muted:#a2a5ad;--line:#303238;--soft:#24252a;--accent:#fff!important}
.sl-dark,.sl-dark body{background:#111214!important}.sl-dark .navbar{background:rgba(25,26,30,.78)!important;border-color:#2d2e33!important}.sl-dark .navbar .logo{color:#fff!important}.sl-dark .stat-item,.sl-dark .search-box input,.sl-dark .script-card,.sl-dark .hot-card,.sl-dark .sl-favorites-panel,.sl-dark .header,.sl-dark .description,.sl-dark .sl-detail-tools,.sl-dark .link-card,.sl-dark .app-card{background:#191a1e!important;border-color:#303238!important;color:#f4f4f5!important}.sl-dark .btn-qq,.sl-dark .btn-outline{background:#191a1e!important;color:#f4f4f5!important;border-color:#303238!important}.sl-dark .hot-header h2,.sl-dark .normal-section h2,.sl-dark h1,.sl-dark h2,.sl-dark h3{color:#f4f4f5}.sl-dark .card-type,.sl-dark .app-type{color:#b9bcc4!important}.sl-dark .sl-theme-toggle{background:rgba(25,26,30,.82)!important;color:#fff!important;border-color:#303238!important}.sl-dark .bottom-nav{background:rgba(25,26,30,.9)!important;border-color:#303238!important}.sl-dark .night-tip{background:rgba(31,32,37,.82)!important;color:#fff!important;border-color:#44464e!important}.sl-dark .night-tip .tip-close{color:#fff!important;background:rgba(255,255,255,.1)!important}
@keyframes slFade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width:760px){.navbar{height:64px!important}.container{padding:18px 14px 88px!important}.sl-hero{padding:27px 22px 25px;border-radius:25px}.sl-hero h1{font-size:34px}.carousel{height:190px!important}.carousel-item{height:174px!important;border-radius:20px!important}.stats-card{gap:8px!important}.stat-item{padding:15px 12px!important;border-radius:18px!important}.stat-number{font-size:23px!important}.button-group{display:grid!important;grid-template-columns:1fr 1fr}.button-group .btn{width:100%!important;min-width:0}.search-box{flex-wrap:wrap}.search-box #slShowFavorites{flex:0 0 auto}.search-box input{flex:1 1 180px;min-width:0}.hot-card{flex-basis:155px!important;width:155px!important;height:155px!important}.script-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.script-card{border-radius:18px!important}.script-card .card-info{padding:12px!important}.header{padding:18px!important;border-radius:22px!important}.app-icon{width:76px!important;height:76px!important;border-radius:18px!important}.app-name{font-size:26px!important}.description{padding:18px!important}.screenshot-grid{grid-template-columns:repeat(2,1fr)!important}.bottom-nav{bottom:10px!important;width:calc(100% - 24px)!important}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.app-icon{height:140px!important}}
@media (max-width:420px){.stats-card{grid-template-columns:1fr 1fr}.stats-card .stat-item:last-child{grid-column:span 2}.script-grid{grid-template-columns:1fr 1fr!important}.app-grid{grid-template-columns:1fr 1fr!important}.button-group{grid-template-columns:1fr}.sl-hero-meta span{font-size:11px}}
.page-shell{max-width:980px;margin:0 auto;padding:32px 18px 120px}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card,.content-card{background:var(--card-bg,#fff);border:1px solid var(--border,#e5e7eb);border-radius:22px;padding:22px;margin:16px 0;box-shadow:0 8px 28px #00000008}.auth-card{max-width:520px;margin:20px auto}.auth-card input,.auth-card textarea{display:block;width:100%;box-sizing:border-box;margin:10px 0;padding:12px;border:1px solid var(--border,#ddd);border-radius:12px}.auth-card button{padding:12px 20px;border:0;border-radius:12px;background:#111;color:#fff}.profile-head{text-align:center;padding:28px}.profile-head img{width:92px;height:92px;border-radius:28px;object-fit:cover}.profile-head p{color:#777}.content-card small{display:block;color:#888;margin-top:10px}
.hot-card{position:relative;display:block;height:210px!important;background:#fff!important;overflow:hidden!important}.hot-card img{height:160px!important;display:block!important}.hot-card-name{display:block!important;padding:10px 12px!important;color:#111!important;background:#fff!important;font-weight:700!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* 轮播广告与登录注册优化 */
.carousel{height:300px!important;}
.carousel-item{height:280px!important;}
@media(max-width:600px){.carousel{height:285px!important}.carousel-item{height:265px!important;width:96%!important}}
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px 16px;background:linear-gradient(135deg,#f7f7f8,#ececef)!important;}
.auth-card{width:min(420px,100%);box-sizing:border-box;padding:36px!important;border:1px solid #e5e5e7!important;border-radius:28px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 20px 60px rgba(0,0,0,.10)!important;}
.auth-card h1{margin:0 0 10px;text-align:center;font-size:30px;letter-spacing:-1px;color:#171717;}
.auth-card h1:after{content:'简洁、好用的脚本分享平台';display:block;margin-top:9px;font-size:13px;font-weight:400;letter-spacing:0;color:#999;}
.auth-card input,.auth-card textarea{width:100%;box-sizing:border-box;margin:10px 0;padding:14px 16px;border:1px solid #dedee3;border-radius:14px;background:#fafafa;outline:none;transition:.2s;font-size:15px;}
.auth-card input:focus,.auth-card textarea:focus{border-color:#222;background:#fff;box-shadow:0 0 0 4px rgba(0,0,0,.06);}
.auth-card button{width:100%;margin-top:12px;padding:14px;border:0;border-radius:14px;background:#171717;color:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:.2s;}
.auth-card button:hover{background:#333;transform:translateY(-1px);}
.auth-card p{text-align:center;color:#888;font-size:14px;margin:20px 0 0;}
.auth-card a{color:#111;font-weight:700;text-decoration:none;}
.auth-card .message{padding:12px 14px;border-radius:12px;font-size:14px;text-align:center;}
.auth-card .message.error{background:#fff0f0;color:#c33;}

/* 手机端个人中心 / 论坛：按手机阅读比例布局，避免桌面宽卡片 */
.forum-mobile-shell{max-width:680px!important;margin:0 auto!important;padding-left:14px!important;padding-right:14px!important}
.profile-head{max-width:680px;margin:0 auto;text-align:center}
.profile-head img{width:88px!important;height:88px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:50%!important;display:block;margin:0 auto 12px}
.profile-head h1{font-size:24px!important;margin:8px 0 4px}
.forum-author-row{display:flex;align-items:center;gap:10px;min-width:0}
.forum-author-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forum-author-row small{display:block;color:#888;margin-top:2px}
.forum-avatar{width:42px!important;height:42px!important;min-width:42px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:50%!important}
.forum-avatar.small{width:36px!important;height:36px!important;min-width:36px!important}
.forum-post-card h1{font-size:25px;line-height:1.35;margin:18px 0 12px;word-break:break-word}
.forum-content{font-size:15px;line-height:1.8;word-break:break-word;overflow-wrap:anywhere}
.forum-actions{display:flex;gap:18px;margin-top:18px;padding-top:14px;border-top:1px solid var(--border,#eee);font-size:14px;color:#777}
.forum-actions a{text-decoration:none}
.forum-comments h2{font-size:19px;margin:22px 4px 10px}
.forum-comment-card{padding:16px!important;margin:10px 0!important}
.forum-comment-card p{font-size:14px;line-height:1.7;margin:12px 0 0;word-break:break-word;overflow-wrap:anywhere}
.forum-comment-form{max-width:none!important;margin:12px 0 30px!important}
.forum-comment-form textarea{min-height:105px!important;resize:vertical}
.login-comment-tip{text-align:center;padding:18px!important}
@media(max-width:760px){
  .page-shell{width:100%!important;box-sizing:border-box!important;padding:18px 12px 105px!important}
  .forum-mobile-shell{padding-left:10px!important;padding-right:10px!important}
  .content-card,.auth-card{border-radius:18px!important;padding:17px!important}
  .profile-head{padding:12px 4px 20px!important}
  .profile-head img{width:78px!important;height:78px!important}
  .profile-head h1{font-size:22px!important}
  .profile-head p{font-size:13px;line-height:1.6;word-break:break-word}
  .forum-post-card h1{font-size:21px!important}
  .forum-content{font-size:14px;line-height:1.75}
  .forum-comment-card{padding:14px!important}
}
@media(min-width:761px){
  .forum-mobile-shell{max-width:720px!important}
}


/* Forum detail polish */
.forum-mobile-shell{max-width:760px!important;margin:0 auto;padding:18px 14px 110px!important}
.forum-post-card{padding:0!important;overflow:hidden;border-radius:24px!important;border:1px solid #e9e9ed!important;background:#fff;box-shadow:0 10px 35px rgba(0,0,0,.06)!important}
.forum-post-card .forum-author-row{padding:18px 18px 10px}
.forum-post-card h1{font-size:26px;line-height:1.35;margin:4px 18px 14px;letter-spacing:-.4px}
.forum-content{font-size:16px;line-height:1.9;color:#333;padding:0 18px 20px;word-break:break-word}
.forum-author-row{display:flex;align-items:center;gap:11px}
.forum-author-row>div{min-width:0}
.forum-author-row b{display:block;font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forum-author-row small{display:block;color:#999;font-size:12px;margin-top:2px}
.forum-avatar{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;object-fit:cover!important;aspect-ratio:1/1!important;border-radius:50%!important;display:block!important;border:1px solid #eee}
.forum-avatar.small{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important}
.forum-actions{display:flex;align-items:center;gap:10px;padding:13px 18px 15px;border-top:1px solid #f0f0f2;color:#888;font-size:13px}
.forum-actions a{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:#555;background:#f6f6f7;padding:8px 12px;border-radius:12px}
.forum-actions a:hover{background:#111;color:#fff}
.forum-comments{margin-top:16px}
.forum-comments>h2{font-size:18px;margin:18px 4px 10px}
.forum-comment-card{padding:15px 16px!important;margin-bottom:10px;border-radius:18px!important}
.forum-comment-card p{margin:11px 2px 0;font-size:14px;line-height:1.75;color:#444;word-break:break-word}
.forum-comment-form{padding:15px!important;border-radius:20px!important;position:sticky;bottom:82px;z-index:20;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(14px)}
.forum-comment-form textarea{min-height:82px!important;resize:vertical}
.login-comment-tip{padding:16px!important;border-radius:18px!important;text-align:center;color:#777}
@media(max-width:600px){
 .forum-mobile-shell{width:100%;box-sizing:border-box;padding:10px 10px 105px!important}
 .forum-post-card{border-radius:20px!important}
 .forum-post-card h1{font-size:22px;margin-left:15px;margin-right:15px}
 .forum-content{padding-left:15px;padding-right:15px;font-size:15px;line-height:1.85}
 .forum-post-card .forum-author-row{padding:15px 15px 8px}
 .forum-actions{padding-left:15px;padding-right:15px}
 .forum-comment-card{padding:13px!important}
 .forum-comment-form{bottom:72px}
}
.sl-dark .forum-post-card,.sl-dark .forum-comment-card,.sl-dark .forum-comment-form{background:#15161a!important;border-color:#292b31!important}
.sl-dark .forum-content,.sl-dark .forum-comment-card p{color:#ddd}
.sl-dark .forum-actions{border-color:#292b31;color:#999}
.sl-dark .forum-actions a{background:#22242a;color:#ddd}
.sl-dark .forum-avatar{border-color:#333}
/* 个人中心 / 论坛头像与脚本评论优化 */
.script-author-card{display:flex;align-items:center;gap:10px;margin:14px 0 18px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:16px}
.script-author-avatar{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;aspect-ratio:1/1;object-fit:cover;border-radius:50%;display:block}
.script-author-meta{display:flex;flex-direction:column;min-width:0}.script-author-meta strong{font-size:14px}.script-author-meta small,.script-author-label{font-size:11px;color:#8a8d94}.script-author-label{margin-bottom:2px}
.script-comments-section{margin-top:28px}.script-comments-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.script-comments-title h2{font-size:20px;margin:0}.script-comments-title span{font-size:12px;color:#8a8d94}.script-comment-item{display:flex;gap:9px;padding:13px 0;border-bottom:1px solid var(--line)}
.script-comment-avatar{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;aspect-ratio:1/1;object-fit:cover;border-radius:50%;display:block}.script-comment-body{min-width:0;flex:1}.script-comment-head{display:flex;gap:8px;align-items:center}.script-comment-head strong{font-size:13px}.script-comment-head time{font-size:10px;color:#999}.script-comment-body p{margin:5px 0 0;font-size:13px;line-height:1.65;word-break:break-word;overflow-wrap:anywhere}.script-comment-form{display:flex;gap:8px;margin-top:14px}.script-comment-form textarea,.script-comment-login-box textarea{flex:1;min-height:58px;resize:none;border:1px solid var(--line);border-radius:14px;padding:11px 13px;background:#fff;box-sizing:border-box}.script-comment-form button{align-self:flex-end;border:0;border-radius:13px;padding:11px 15px;background:#111;color:#fff;white-space:nowrap}.script-comment-login-box{display:flex;gap:8px;margin-top:14px}.script-comment-login-box textarea{color:#999}.script-comment-login-box a{display:flex;align-items:center;justify-content:center;padding:0 14px;background:#111;color:#fff;border-radius:13px;font-size:13px;white-space:nowrap}.script-comments-empty,.profile-empty{padding:20px 0;text-align:center;color:#92959b;font-size:13px}
.profile-mobile-shell{max-width:680px!important;margin:0 auto!important}.profile-section-title{display:flex;justify-content:space-between;align-items:center}.profile-section-title h2{font-size:18px;margin:0}.profile-section-title span{font-size:12px;color:#888}.profile-script-list{display:grid;gap:8px;margin-top:12px}.profile-script-item{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-decoration:none}.profile-script-item img{width:42px;height:42px;min-width:42px;object-fit:cover;aspect-ratio:1/1;border-radius:11px}.profile-script-item span{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-avatar{width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:50%!important}.forum-avatar.small{width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important}.forum-author-row{gap:8px!important}.forum-author-row b{font-size:13px}.forum-author-row small{font-size:10px}.forum-comment-card{padding:12px!important}.forum-comment-card p{margin-top:9px!important;font-size:13px!important}
@media(max-width:760px){.profile-mobile-shell{padding-left:12px!important;padding-right:12px!important}.script-author-card{padding:10px 12px}.script-author-avatar{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important}.script-comment-avatar{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important}.script-comment-form,.script-comment-login-box{flex-direction:column}.script-comment-form button,.script-comment-login-box a{width:100%;min-height:42px}.forum-avatar{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important}.forum-avatar.small{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important}}

/* ================= 论坛 v2 ================= */
/* 论坛首页 */
.forum-shell{max-width:680px!important}
.forum-hero{position:relative;overflow:hidden;border-radius:30px;background:linear-gradient(160deg,#1c1d21,#0e0f11 72%);color:#fff;padding:26px 24px 24px;box-shadow:0 18px 44px rgba(0,0,0,.16);margin:2px 0 18px}
.forum-hero:before{content:"";position:absolute;width:280px;height:280px;right:-100px;top:-150px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.13),transparent 65%);pointer-events:none}
.forum-kicker{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);border-radius:999px;font-size:12px;color:#d9dadd;position:relative;z-index:1}
.forum-hero h1{font-size:30px;letter-spacing:-.04em;margin:14px 0 8px;position:relative;z-index:1}
.forum-hero p{color:#a7aab1;font-size:13px;line-height:1.7;margin:0;position:relative;z-index:1}
.forum-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px;position:relative;z-index:1}
.forum-hero-stat{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:11px 6px;text-align:center}
.forum-hero-stat b{display:block;font-size:21px;font-weight:800;letter-spacing:-.03em}
.forum-hero-stat span{font-size:11px;color:#a7aab1;margin-top:2px;display:block}
/* 发布帖子 */
.forum-post-form-card{overflow:hidden}
.forum-post-toggle{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:12px;border:1px dashed #c9cbd0;background:#f7f8f9;color:#33353a;border-radius:15px;font-size:14px;font-weight:600;cursor:pointer;transition:.2s}
.forum-post-toggle:hover{border-color:#111;background:#fff}
.forum-post-toggle.active{background:#111;color:#fff;border-style:solid;border-color:#111}
.forum-post-form[hidden]{display:none!important}
.forum-post-form h2{font-size:17px;margin:18px 0 2px}
.forum-post-form input,.forum-post-form textarea{display:block;width:100%;box-sizing:border-box;margin:10px 0;padding:12px 14px;border:1px solid #e2e3e7;border-radius:13px;background:#fafbfc;font-size:14px;outline:none;transition:.2s;font-family:inherit}
.forum-post-form input:focus,.forum-post-form textarea:focus{border-color:#9a9ca2;background:#fff}
.forum-post-form textarea{min-height:110px;resize:vertical}
.forum-post-form-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.forum-post-form-foot span{font-size:12px;color:#8a8d94}
.forum-post-form-foot button{border:0;border-radius:13px;padding:11px 20px;background:#111;color:#fff;font-size:14px;font-weight:700;cursor:pointer;transition:.2s}
.forum-post-form-foot button:hover{background:#2a2b2e}
.forum-login-tip{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;color:#55585e;font-size:14px}
.forum-login-tip a{color:#111;font-weight:700;text-decoration:none}
/* 帖子列表 */
.forum-list-section{margin-top:20px}
.forum-list-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.forum-list-title h2{font-size:18px;margin:0;letter-spacing:-.02em}
.forum-list-title span{display:inline-flex;min-width:22px;height:22px;padding:0 7px;align-items:center;justify-content:center;background:#eef0f2;border-radius:999px;font-size:11px;color:#55585e}
.forum-post-item{display:flex;gap:12px;background:#fff;border:1px solid #e7e8eb;border-radius:18px;padding:14px;margin-bottom:10px;transition:.2s}
.forum-post-item:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(0,0,0,.05);border-color:#c9cbd0}
.forum-post-body{min-width:0;flex:1}
.forum-post-body h3{margin:0 0 6px;font-size:15px;line-height:1.4}
.forum-post-body h3 a{color:inherit;text-decoration:none}
.forum-post-body h3 a:hover{color:#333}
.forum-post-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#747983;font-size:13px;line-height:1.6;margin:0 0 10px;word-break:break-word}
.forum-post-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#8a8d94}
.forum-post-author{font-weight:700;color:#3d4046}
.forum-post-time{color:#a2a5ab}
.forum-post-comments,.forum-post-likes{display:inline-flex;align-items:center;gap:3px}
.forum-empty{padding:56px 20px!important;text-align:center;color:#92959b;font-size:13px;border-style:dashed!important}
/* 论坛详情 v2 */
.forum-back-bar{margin:2px 2px 12px}
.forum-back-bar a{display:inline-flex;align-items:center;gap:4px;font-size:13px;color:#666a71;text-decoration:none;padding:7px 12px;background:#fff;border:1px solid #e7e8eb;border-radius:999px;transition:.2s}
.forum-back-bar a:hover{color:#111;border-color:#c9cbd0}
.forum-author-meta{min-width:0;display:flex;flex-direction:column}
.forum-author-meta b{display:block;font-size:14px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forum-author-meta small{display:block;color:#999;font-size:11px;margin-top:2px}
.forum-actions{gap:10px}
.forum-like{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:#555;background:#f6f6f7;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;transition:.2s}
.forum-like:hover{background:#111;color:#fff}
.forum-action-comments{display:inline-flex;align-items:center;gap:5px;color:#888;background:#f6f6f7;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600}
.forum-comments-title{display:flex;align-items:center;justify-content:space-between;margin:16px 4px 10px}
.forum-comments-title h2{font-size:18px;margin:0}
.forum-comments-title span{font-size:12px;color:#8a8d94}
.forum-comments-empty{padding:40px 20px!important;text-align:center;color:#92959b;font-size:13px;border-style:dashed!important}
/* 深色主题兼容 */
.sl-dark .forum-hero{background:linear-gradient(160deg,#23252b,#16171b 72%)}
.sl-dark .forum-post-toggle{background:#202126;color:#f4f4f5;border-color:#303238}
.sl-dark .forum-post-toggle:hover{background:#292b30;border-color:#fff}
.sl-dark .forum-post-toggle.active{background:#fff;color:#111;border-color:#fff}
.sl-dark .forum-post-form input,.sl-dark .forum-post-form textarea{background:#202126;border-color:#303238;color:#f4f4f5}
.sl-dark .forum-post-form input:focus,.sl-dark .forum-post-form textarea:focus{background:#292b30;border-color:#5a5d66}
.sl-dark .forum-post-form-foot button{background:#fff;color:#111}
.sl-dark .forum-post-form-foot button:hover{background:#d9dade}
.sl-dark .forum-post-item{background:#191a1e;border-color:#303238}
.sl-dark .forum-post-item:hover{border-color:#4a4c55}
.sl-dark .forum-post-body h3 a{color:#f4f4f5}
.sl-dark .forum-post-preview{color:#a2a5ad}
.sl-dark .forum-post-author{color:#d6d8dd}
.sl-dark .forum-post-time{color:#7c7f88}
.sl-dark .forum-list-title span{background:#303238;color:#c6c9d0}
.sl-dark .forum-back-bar a{background:#191a1e;border-color:#303238;color:#c6c9d0}
.sl-dark .forum-back-bar a:hover{color:#fff}
.sl-dark .forum-author-meta b{color:#f4f4f5}
.sl-dark .forum-author-meta small{color:#8f929b}
.sl-dark .forum-like{background:#22242a;color:#ddd}
.sl-dark .forum-like:hover{background:#fff;color:#111}
.sl-dark .forum-action-comments{background:#22242a;color:#999}
@media(max-width:760px){
  .forum-hero{border-radius:25px;padding:22px 20px 20px}
  .forum-hero h1{font-size:26px}
  .forum-hero-stat b{font-size:19px}
  .forum-post-item{padding:12px}
}
