/*
Theme Name: ShipZheng Bay
Description: 船政湾论坛主题
Version: 2.0
*/
html,body{background:#fff!important;color:#333!important;color-scheme:only light;-webkit-tap-highlight-color:transparent;margin:0;padding:0;font-family:'Segoe UI','PingFang SC',Roboto,system-ui,sans-serif}
*{margin:0;padding:0;box-sizing:border-box}
body{overflow:hidden;height:100vh;height:100dvh}

/* 加载动画 */
#loading-screen{position:fixed;inset:0;background:#fafbfc;z-index:9999;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:opacity .6s}
#loading-screen.hidden{opacity:0;pointer-events:none}
.loading-brand{position:absolute;top:45%;transform:translateY(-50%);font-size:42px;font-weight:900;letter-spacing:8px;color:#333;opacity:0;animation:brandIn 1.2s ease-out .2s forwards}
@keyframes brandIn{from{opacity:0;letter-spacing:20px}to{opacity:1;letter-spacing:8px}}
.loading-track-wrapper{position:relative;width:70%;max-width:400px;margin-top:80px}
.loading-track{position:relative;width:100%;height:4px;background:#e8e8e8;border-radius:2px}
.loading-fill{position:absolute;left:0;top:0;height:100%;width:0;background:linear-gradient(90deg,#ffb347,#ff8c00);border-radius:2px;transition:width .15s}
.loading-boat{position:absolute;bottom:100%;left:0;transform:translateX(-50%);margin-bottom:2px;line-height:0}
.boat-icon{display:block;animation:boatBob 1.4s ease-in-out infinite;transform-origin:50% 100%;filter:drop-shadow(0 2px 3px rgba(255,140,0,.3))}
@keyframes boatBob{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
.loading-percent{margin-top:24px;font-size:15px;color:#888;font-weight:600;font-family:'Courier New',monospace;letter-spacing:2px;text-align:center}
#wave-overlay{position:fixed;left:0;bottom:0;width:100%;height:110vh;transform:translateY(100%);z-index:9998;pointer-events:none;transition:transform 1.1s cubic-bezier(.65,0,.35,1)}
#wave-overlay.active{transform:translateY(0)}
#wave-overlay.done{opacity:0;transition:opacity .7s ease .1s}
.wave-svg{position:absolute;top:-58px;left:-2%;width:104%;height:70px;animation:waveSway 3.2s ease-in-out infinite}
@keyframes waveSway{0%,100%{transform:translateX(-1.5%)}50%{transform:translateX(1.5%)}}
.wave-body{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(180deg,#29B6F6,#0277BD)}

/* 主容器 */
#app-container{height:100vh;height:100dvh;overflow-y:auto;scroll-behavior:smooth;position:relative;background:#fff}
#app-container::-webkit-scrollbar{width:4px}
#app-container::-webkit-scrollbar-thumb{background:rgba(0,0,0,.15);border-radius:10px}

/* 顶部导航 */
#global-header{position:fixed;top:0;left:0;width:100%;height:70px;z-index:1000;display:flex;justify-content:space-between;align-items:center;padding:0 15px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(0,0,0,.06)}
.header-left{width:130px;height:100%;display:flex;align-items:center;flex-shrink:0}
.header-logo{font-size:28px;font-weight:900;letter-spacing:2px;color:#333;white-space:nowrap}
html[lang="en"] .header-logo{display:block;font-size:17px;line-height:1.15;letter-spacing:1px;white-space:pre-line}
.header-actions{display:flex;align-items:center;gap:10px;flex:1;justify-content:flex-end}
.header-btn{background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.1);border-radius:22px;width:min(200px,calc(100vw - 230px));height:40px;display:flex;justify-content:flex-start;align-items:center;color:#333;cursor:pointer;padding-left:15px}
.icon-svg{width:20px;height:20px;stroke:#333;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.search-glyph{display:flex;align-items:center;gap:10px;color:#999;font-size:13px}
.menu-trigger{background:transparent;border:none;width:40px;height:40px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;position:relative}
.menu-trigger span{display:block;width:24px;height:2px;background:#333;transition:transform .3s,opacity .3s}
.menu-trigger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-trigger.active span:nth-child(2){opacity:0}
.menu-trigger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* 侧边栏 */
#side-menu{position:fixed;top:0;left:100%;width:100%;height:100%;background:rgba(255,255,255,.98);backdrop-filter:blur(12px);z-index:1050;transition:left .6s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;color:#333}
#side-menu.open{left:0}
.menu-header{min-height:80px;display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px 16px;border-bottom:1px solid rgba(0,0,0,.06)}
.menu-avatar-container{display:flex;align-items:flex-start;gap:12px}
.menu-avatar{width:42px;height:42px;border-radius:50%;border:3px solid #ff8c00;display:flex;justify-content:center;align-items:center;font-size:20px;background:#fff;cursor:pointer;overflow:hidden;background-size:cover;background-position:center}
.menu-user-info{display:flex;flex-direction:column;gap:6px;padding-top:2px;max-width:200px}
.menu-username{font-size:18px;font-weight:700;color:#333;line-height:1.2}
.menu-user-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.menu-tag{display:inline-flex;align-items:center;font-size:11px;padding:3px 9px;border-radius:10px;background:#f5f5f5;color:#666;border:1px solid #eee;font-weight:500;cursor:pointer;white-space:nowrap}
.menu-tag-add{background:transparent;color:#bbb;border:1px dashed #ddd}
.menu-close{font-size:28px;cursor:pointer;color:#333;line-height:1}
.menu-content{padding:10px 24px;flex-grow:1;overflow-y:auto}
.menu-item{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid rgba(0,0,0,.04);cursor:pointer;opacity:0;transform:translateX(50px);transition:transform .5s,opacity .5s}
#side-menu.open .menu-item{opacity:1;transform:translateX(0)}
.menu-left{display:flex;align-items:center;gap:14px}
.menu-left .icon{font-size:20px;width:24px;text-align:center;filter:grayscale(.3)}
.menu-left .cn{font-size:16px;font-weight:600;color:#333}
.menu-right.en{font-size:13px;font-weight:700;color:#bbb;font-family:monospace;letter-spacing:1px}
.menu-bottom{padding:20px 30px;font-size:12px;color:#999;display:flex;justify-content:space-between;border-top:1px solid rgba(0,0,0,.06)}

/* 首页 */
#page3{background:#fff;padding-top:70px;padding-bottom:80px;min-height:100vh}
.anim-header{height:80px;margin:20px 20px 30px;display:flex;align-items:center;justify-content:flex-end;overflow:hidden}
.line-slash-wrap{flex-grow:1;display:flex;align-items:center;opacity:0;transform:translateX(-30px);transition:opacity .3s .3s,transform .6s .3s}
.main-line{flex-grow:1;height:1px;background:rgba(0,0,0,.15);transform:scaleX(0);transform-origin:left;transition:transform .8s}
.slanted-line{width:5px;height:5px;background:rgba(0,0,0,.15);transform:rotate(45deg);opacity:0;transition:opacity .3s .8s}
.title-container{text-align:right;opacity:0;transform:translateX(80px);transition:opacity .6s .6s,transform .6s .6s}
.main-title{font-size:28px;font-weight:900;color:#333}
.sub-title{font-family:monospace;color:#d32f2f;font-size:10px;border-bottom:2px solid #d32f2f;padding-bottom:2px;margin-top:4px}
.page-loaded .line-slash-wrap{opacity:1;transform:translateX(0)}
.page-loaded .main-line{transform:scaleX(1)}
.page-loaded .slanted-line{opacity:1}
.page-loaded .title-container{opacity:1;transform:translateX(0)}
.banner-box{width:calc(100% - 40px);height:180px;margin:0 auto;border-radius:20px;background:#fafafa;border:1px solid #eee;padding:20px;overflow:hidden;position:relative;touch-action:pan-y;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.banner-carousel{display:flex;transition:transform .4s;height:100%;width:100%}
.banner-item{flex:0 0 100%;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;padding-right:15px;cursor:pointer;overflow:hidden}
.banner-item .b-title{font-size:22px;font-weight:900;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.banner-item .b-sub{font-size:14px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dots{display:flex;justify-content:center;gap:5px;position:absolute;bottom:10px;width:100%}
.dot{width:8px;height:8px;background:rgba(0,0,0,.12);border-radius:50%}
.dot.active{background:#333}
.grid-menu{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;width:calc(100% - 40px);margin:20px auto 30px}
.grid-item{background:#fff;border:1px solid #eee;border-radius:16px;padding:14px 5px 12px;text-align:center;cursor:pointer;transition:transform .2s,background .2s;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.grid-item:active{transform:scale(.94);background:#f5f5f5}
.grid-item .icon{font-size:28px;margin-bottom:4px}
.grid-item .name{font-size:13px;font-weight:700}
.grid-item .sub{font-size:10px;color:#999;margin-top:4px}
.hot-section{margin:10px 0 20px;padding:0 20px}
.hot-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:18px;font-weight:900;color:#333}
.hot-section-header .more{font-size:12px;color:#999;cursor:pointer}
.hot-cards-wrapper{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px;scrollbar-width:none}
.hot-cards-wrapper::-webkit-scrollbar{display:none}
.hot-card{flex:0 0 160px;scroll-snap-align:start;border-radius:16px;overflow:hidden;background:#fff;border:1px solid #eee;box-shadow:0 2px 8px rgba(0,0,0,.04);cursor:pointer}
.hot-card-cover{width:100%;height:120px;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;font-size:14px;font-weight:700;color:#333;overflow:hidden;line-height:1.4}
.hot-card-body{padding:10px 12px}
.hot-card-title{font-size:13px;font-weight:700;color:#333;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
.hot-card-sub{font-size:11px;color:#999;display:flex;align-items:center;gap:4px}
.hot-empty{padding:30px 20px;text-align:center;color:#bbb;font-size:13px}

/* 论坛覆盖层 */
#forum-overlay{position:fixed;inset:0;z-index:2000;background:#fff;display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity .4s,transform .4s;transform:scale(.96);overflow:hidden}
#forum-overlay.active{opacity:1;pointer-events:all;transform:scale(1)}
.forum-header{height:64px;display:flex;align-items:center;padding:0 16px;gap:12px;border-bottom:1px solid rgba(0,0,0,.06);background:#fff;flex-shrink:0}
.forum-back{font-size:28px;cursor:pointer;width:40px;text-align:center;line-height:1}
.forum-header-title{font-size:20px;font-weight:700;flex:1;display:flex;align-items:center;gap:8px}
.forum-header-title .fi{font-size:24px}
.forum-header-stats{font-size:12px;display:flex;align-items:center;gap:12px}
.forum-add-btn{background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.1);border-radius:20px;padding:4px 14px;font-size:18px;cursor:pointer;line-height:1.4}
.forum-body{flex:1;overflow-y:auto;padding:12px;column-count:2;column-gap:12px;background:#fff}
.forum-empty{column-span:all;text-align:center;padding:60px 20px;color:#bbb}
.forum-empty .icon{font-size:48px;opacity:.4;margin-bottom:12px;display:block}
.forum-empty .text{font-size:14px;margin-bottom:16px}
.forum-empty .action-btn{background:linear-gradient(135deg,#1976D2,#0D47A1);color:#fff;border:none;padding:10px 24px;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer}
.go-post-btn{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#fff;color:#333;border:1px solid #eee;border-radius:30px;padding:12px 28px;font-size:16px;font-weight:600;box-shadow:0 4px 20px rgba(0,0,0,.1);cursor:pointer;z-index:100;display:flex;align-items:center;gap:8px}
.forum-post{break-inside:avoid;margin-bottom:12px;background:#fff;border:1px solid #eee;border-radius:16px;overflow:hidden;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.post-cover{width:100%;height:120px;display:flex;align-items:center;justify-content:center;padding:16px;text-align:center;font-size:14px;font-weight:700;color:#333;overflow:hidden;line-height:1.4;background-size:cover;background-position:center}
.post-card-body{padding:10px 12px}
.post-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.post-avatar{width:28px;height:28px;border-radius:50%;background:#f5f5f5;display:flex;align-items:center;justify-content:center;font-size:14px;border:1px solid #eee;flex-shrink:0;overflow:hidden;background-size:cover;background-position:center}
.post-user{font-weight:600;font-size:13px}
.post-time{font-size:10px;color:#aaa;margin-left:auto;white-space:nowrap}
.post-content{font-size:14px;line-height:1.5;color:#444;margin:4px 0 8px;word-break:break-word}
.post-footer{display:flex;gap:12px;font-size:12px;color:#888;padding-top:6px;border-top:1px solid #f0f0f0;flex-wrap:wrap}
.post-footer span{display:flex;align-items:center;gap:3px;cursor:pointer}
.post-images{display:flex;gap:4px;margin:6px 0;overflow-x:auto}
.post-images img{height:80px;border-radius:6px;flex-shrink:0}
.forum-theme-ocean .forum-header{background:linear-gradient(135deg,#0D47A1,#1976D2)}
.forum-theme-ocean .forum-header *{color:#fff!important}
.forum-theme-market .forum-header{background:linear-gradient(135deg,#E65100,#F57C00)}
.forum-theme-market .forum-header *{color:#fff!important}
.forum-theme-pal .forum-header{background:linear-gradient(135deg,#1B5E20,#388E3C)}
.forum-theme-pal .forum-header *{color:#fff!important}
.forum-theme-wall .forum-header{background:linear-gradient(135deg,#4A148C,#7B1FA2)}
.forum-theme-wall .forum-header *{color:#fff!important}
.forum-theme-life .forum-header{background:linear-gradient(135deg,#00695C,#00897B)}
.forum-theme-life .forum-header *{color:#fff!important}
.forum-theme-study .forum-header{background:linear-gradient(135deg,#0D1B2A,#1B3A5C)}
.forum-theme-study .forum-header *{color:#fff!important}
.forum-theme-event .forum-header{background:linear-gradient(135deg,#B71C1C,#D32F2F)}
.forum-theme-event .forum-header *{color:#fff!important}
.forum-theme-photo .forum-header{background:linear-gradient(135deg,#880E4F,#AD1457)}
.forum-theme-photo .forum-header *{color:#fff!important}

/* 帖子详情 */
#post-detail-overlay{position:fixed;inset:0;z-index:4000;background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .3s;overflow:hidden}
#post-detail-overlay.active{transform:translateX(0)}
.detail-header{height:60px;display:flex;align-items:center;padding:0 16px;gap:12px;border-bottom:1px solid #f0f0f0;flex-shrink:0}
.detail-back{font-size:28px;cursor:pointer;width:36px;text-align:center}
.detail-author-info{display:flex;align-items:center;gap:8px;flex:1}
.detail-avatar{width:32px;height:32px;border-radius:50%;background:#f5f5f5;display:flex;align-items:center;justify-content:center;font-size:16px;border:1px solid #eee;overflow:hidden;background-size:cover;background-position:center}
.detail-author-name{font-size:15px;font-weight:600}
.detail-follow-btn{background:#333;color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;cursor:pointer}
.detail-body{flex:1;overflow-y:auto;padding:16px;padding-bottom:80px}
.detail-images{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.detail-images img{max-width:100%;border-radius:8px;max-height:300px;cursor:pointer}
.detail-text{font-size:16px;line-height:1.7;color:#333;margin-bottom:12px;word-break:break-word}
.detail-tags{margin-bottom:20px;display:flex;flex-wrap:wrap;gap:8px}
.detail-tag{background:#e3f2fd;color:#1976D2;padding:2px 8px;border-radius:4px;font-size:13px}
.detail-info-card{background:#fafafa;border:1px solid #eee;border-radius:12px;padding:16px;margin-bottom:24px;display:flex;align-items:center;gap:12px}
.info-card-icon{width:48px;height:48px;background:#e3f2fd;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:24px}
.info-card-content{flex:1}
.info-card-title{font-size:16px;font-weight:700;margin-bottom:4px}
.info-card-desc{font-size:13px;color:#888}
.detail-comments-header{font-size:16px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}
.comment-item{display:flex;gap:12px;margin-bottom:20px}
.comment-avatar{width:32px;height:32px;border-radius:50%;background:#f5f5f5;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;border:1px solid #eee;overflow:hidden;background-size:cover;background-position:center}
.comment-content-wrap{flex:1}
.comment-user{font-size:14px;font-weight:600;margin-bottom:2px}
.comment-text{font-size:14px;color:#555;line-height:1.5;margin-bottom:4px}
.comment-meta{font-size:11px;color:#999;display:flex;gap:16px}
.detail-bottom-bar{position:absolute;bottom:0;left:0;width:100%;height:60px;background:#fff;border-top:1px solid #f0f0f0;display:flex;align-items:center;padding:0 16px;gap:12px}
.comment-input-box{flex:1;background:#f5f5f5;border-radius:20px;padding:8px 16px;font-size:14px;color:#333;border:none;outline:none;font-family:inherit}
.comment-submit-btn{background:#333;color:#fff;border:none;border-radius:20px;padding:8px 16px;font-size:14px;font-weight:600;cursor:pointer}
.detail-action-icons{display:flex;gap:16px}
.detail-action-icons span{font-size:20px;cursor:pointer;color:#666}

/* 发帖 */
#new-post-modal{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3000;width:90%;max-width:420px;padding:24px 20px 30px;border-radius:20px;background:#fff;border:1px solid #eee;box-shadow:0 8px 32px rgba(0,0,0,.12)}
#new-post-modal h3{font-size:22px;font-weight:700;margin-bottom:16px}
#new-post-modal textarea{width:100%;height:100px;background:#fafafa;border:1px solid #eee;border-radius:16px;padding:12px 16px;color:#333;font-size:15px;resize:vertical;outline:none;font-family:inherit}
.post-cover-upload{margin:12px 0 16px}
.post-cover-upload label{display:inline-block;background:#f5f5f5;border:1px solid #eee;border-radius:30px;padding:8px 18px;font-size:14px;cursor:pointer}
.images-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.images-preview img{width:60px;height:60px;border-radius:8px;object-fit:cover;border:2px solid transparent;cursor:pointer}
.images-preview img.selected{border-color:#333}
.upload-progress{font-size:12px;color:#888;margin-top:6px}
.post-submit-row{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}
.post-submit-row button{background:#f5f5f5;border:1px solid #eee;border-radius:30px;padding:10px 28px;color:#333;font-size:15px;cursor:pointer}
.post-submit-row .submit-btn{background:#333;color:#fff;font-weight:600;border:none}
.post-submit-row .submit-btn:disabled{opacity:.5;cursor:not-allowed}

/* 搜索 */
#search-view{position:fixed;inset:0;z-index:2000;background:rgba(255,255,255,.98);backdrop-filter:blur(20px);display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity .3s}
#search-view.active{opacity:1;pointer-events:all}
.search-header{height:70px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid rgba(0,0,0,.06)}
.search-close{font-size:30px;cursor:pointer;margin-right:15px}
.search-input-box{flex:1;background:#f5f5f5;border-radius:20px;display:flex;align-items:center;padding:0 15px}
.search-input-box input{width:100%;background:transparent;border:none;outline:none;color:#333;font-size:16px;height:40px}
.search-results{flex:1;overflow-y:auto;padding:20px}
.search-result-item{background:#fafafa;border:1px solid #eee;border-radius:12px;padding:15px;margin-bottom:15px;cursor:pointer}
.no-result{text-align:center;color:#999;font-size:16px;margin-top:50px}

/* 个人中心 */
#profile-view{position:fixed;inset:0;z-index:3000;background:#fff;display:flex;flex-direction:column;transform:translateX(-100%);transition:transform .6s cubic-bezier(.4,0,.2,1);overflow-y:auto}
#profile-view.active{transform:translateX(0)}
.profile-bg{height:300px;width:100%;background:linear-gradient(135deg,#fbc2eb,#a6c1ee);background-size:cover;position:relative;flex-shrink:0}
.profile-top-bar{position:absolute;top:20px;right:20px;left:20px;display:flex;justify-content:flex-end;gap:15px}
.profile-exit-btn{background:rgba(255,255,255,.85);padding:8px 15px;border-radius:20px;font-size:14px;cursor:pointer;color:#333}
.profile-close-btn{width:40px;height:40px;background:rgba(255,255,255,.85);border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:24px;cursor:pointer;color:#333}
.profile-card{margin:-50px 20px 20px;background:#fff;border:1px solid #eee;border-radius:20px;padding:20px;box-shadow:0 4px 16px rgba(0,0,0,.06)}
.profile-header{display:flex;align-items:center;gap:15px}
.profile-avatar{width:60px;height:60px;border-radius:50%;background:#f5f5f5;border:2px solid #fff;cursor:pointer;display:flex;justify-content:center;align-items:center;font-size:36px;overflow:hidden;background-size:cover;background-position:center;position:relative}
.profile-name{font-size:24px;font-weight:900}
.profile-tag{font-size:13px;background:#f5f5f5;border-radius:15px;padding:3px 10px;margin-top:5px;cursor:pointer;color:#666;display:inline-block}
.profile-stats{display:flex;gap:15px;margin-top:15px;background:#fafafa;border-radius:15px;padding:10px}
.profile-menu{margin:0 20px;background:#fff;border:1px solid #eee;border-radius:20px;padding:10px 0}
.profile-menu-item{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;font-size:18px;cursor:pointer;border-bottom:1px solid #f5f5f5}
.profile-menu-item:last-child{border-bottom:none}
.profile-settings{margin:20px;text-align:center}
.profile-settings button{background:#f5f5f5;border:1px solid #eee;color:#333;padding:12px;border-radius:20px;width:45%;cursor:pointer;margin:4px}
#custom-bg-input,#avatar-input{display:none}

/* 弹窗 */
.modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:2500}
#login-modal{display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2600;width:85%;max-width:400px;padding:30px;border-radius:20px;background:#fff;border:1px solid #eee;box-shadow:0 12px 48px rgba(0,0,0,.25)}
#login-modal h3{font-size:24px;font-weight:700;margin-bottom:5px}
#login-modal .sub-title{display:block;font-size:16px;margin-bottom:20px;border-bottom:2px solid #333;padding-bottom:5px;display:inline-block}
.login-submit{padding:10px 30px;background:#333;border:none;border-radius:30px;color:#fff;font-size:16px;font-weight:bold;cursor:pointer;margin-bottom:20px;display:block}
.login-tip{font-size:12px;color:#999;text-align:center;margin-top:10px}
.login-tip a{color:#1976D2}
#map-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:5000;justify-content:center;align-items:center}
#map-modal .map-content{background:#fff;padding:20px;border-radius:16px;max-width:90%;max-height:80%;overflow:auto;position:relative;text-align:center}
#map-modal .map-close{position:absolute;top:8px;right:12px;font-size:26px;cursor:pointer;color:#666}
#map-modal h3{margin-bottom:12px}
#map-modal img{max-width:100%;border-radius:8px;display:block;margin:0 auto}
#map-modal .map-hint{color:#999;font-size:14px;margin-top:10px}
#image-viewer{display:none;position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:6000;justify-content:center;align-items:center;cursor:zoom-out}
#image-viewer img{max-width:95%;max-height:95%;object-fit:contain}

@media (max-width:480px){
.grid-menu{gap:8px}
.grid-item{padding:10px 4px 8px}
.grid-item .icon{font-size:22px}
.grid-item .name{font-size:11px}
.grid-item .sub{font-size:9px}
.banner-box{height:150px;padding:14px}
.banner-item .b-title{font-size:18px}
.main-title{font-size:22px}
.post-cover{height:100px;font-size:13px}
.hot-card{flex:0 0 140px}
.hot-card-cover{height:100px;font-size:13px}
}
@media (min-width:768px){
.grid-menu,.banner-box,.hot-section{max-width:700px;margin-left:auto;margin-right:auto}
.forum-body{max-width:700px;margin:0 auto}
}