/* ================== 全局基础重置：蓝白极简风 ================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; min-height: 100vh; background-color: #F8F9FA; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 14px; color: #1A1A1A; }
body { padding-bottom: 80px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* 隐藏滚动条让移动端更清爽 */
::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ================== 顶部导航区 ================== */
.top-bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; position: sticky; top: 0; z-index: 90; gap: 12px; background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #F0F0F0; }
.top-bar .icon-btn { width: 36px; height: 36px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: #111; flex-shrink: 0; border-radius: 50%; transition: background 0.2s; }
.top-bar .icon-btn:active { background: #F1F5F9; }
.top-bar .icon-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }

.search-bar { flex: 1; height: 38px; background: #F5F5F5; border-radius: 19px; display: flex; align-items: center; padding: 0 14px; gap: 8px; transition: all 0.3s ease; border: 1px solid transparent; }
.search-bar:focus-within { background: #FFF; border-color: #1677FF; box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }
.search-bar svg { width: 16px; height: 16px; fill: #888; }
.search-bar input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; color: #111; }
.search-bar input::placeholder { color: #B0B0B0; }

.top-avatar { width: 34px; height: 34px; border-radius: 50%; background: #1677FF; color: #fff; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: 700; cursor: pointer; flex-shrink: 0; background-size: cover; background-position: center; box-shadow: 0 2px 8px rgba(22,119,255,0.3); transition: transform 0.2s; }
.top-avatar:active { transform: scale(0.92); }

/* ================== 下拉菜单 ================== */
.menu-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.3); backdrop-filter: blur(2px); z-index: 999; display: none; animation: fadeIn 0.2s ease-out; }
.dropdown-menu { position: absolute; top: 60px; left: 16px; background: #FFFFFF; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; z-index: 1000; width: 160px; display: none; animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid #F0F0F0; }
.menu-item { padding: 15px 18px; font-size: 14px; color: #333; display: flex; align-items: center; cursor: pointer; border-bottom: 1px solid #F5F5F5; font-weight: 500; transition: background 0.2s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #F0F7FF; color: #1677FF; }

/* ================== 信息条 & 公告 ================== */
.info-strip { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 12px; color: #888; background: #FFF; }
.online { color: #1677FF; font-weight: 600; display: flex; align-items: center; }
.online::before { content: ""; display: inline-block; width: 6px; height: 6px; background: #1677FF; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 0 3px rgba(22,119,255,0.15); }

.notice-bar { display: flex; align-items: center; background: #F0F7FF; padding: 10px 16px; border-bottom: 1px solid #D6E8FF; cursor: pointer; overflow: hidden; gap: 8px; text-decoration: none; }
.notice-bar-tag { background: #1677FF; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 700; flex-shrink: 0; }
.notice-bar-icon { width: 14px; height: 14px; fill: #1677FF; flex-shrink: 0; }
.marquee-wrap { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; height: 18px; }
.marquee-text { color: #0958D9; font-size: 13px; font-weight: 500; white-space: nowrap; position: absolute; animation: marquee 15s linear infinite; padding-left: 100%; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ================== 页面视图 ================== */
.page-view { display: none; position: relative; width: 100%; transform: translateZ(0); -webkit-transform: translateZ(0); }
.page-view.active { display: block; }
.page-view:not(.active) { display: none !important; }

/* ================== 轮播图 ================== */
.banner-section { padding: 12px 16px; }
.banner { width: 100%; height: 150px; background: #F1F5F9; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 4px 16px rgba(0,0,0,0.03); }
.banner-track { width: 100%; height: 100%; display: flex; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); touch-action: pan-y; }
.banner-item { min-width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; cursor: pointer; }

/* ================== Tab 栏 ================== */
.list-tab { display: flex; padding: 0 16px; background: #FFFFFF; border-bottom: 1px solid #F0F0F0; justify-content: space-between; align-items: center; }
.tab-item { padding: 14px 0; margin-right: 24px; font-size: 15px; font-weight: 600; color: #888; cursor: pointer; position: relative; transition: color 0.2s; }
.tab-item.active { color: #1677FF; font-weight: 800; }
.tab-item.active::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: #1677FF; border-radius: 2px; }

/* ================== 帖子列表卡片 ================== */
.post-item { padding: 16px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid #F5F5F5; background: #FFF; }
.post-item:active { background: #F8F9FA; }
.post-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.post-title { font-size: 16px; font-weight: 700; color: #111; line-height: 1.5; word-break: break-all; }
.post-plate { font-size: 12px; color: #1677FF; font-weight: 600; white-space: nowrap; background: #F0F7FF; padding: 2px 8px; border-radius: 6px; border: 1px solid #D6E8FF; }
.post-author { font-size: 13px; color: #666; margin-bottom: 10px; }
.post-content { font-size: 14px; color: #444; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.post-footer { display: flex; justify-content: flex-end; align-items: center; }
.comment-btn { font-size: 13px; color: #1677FF; font-weight: 600; padding: 4px 12px; background: #F0F7FF; border-radius: 12px; }

/* ================== 消息、板块、好友列表 ================== */
.msg-item, .plate-item { display: flex; align-items: center; padding: 16px; cursor: pointer; background: #FFF; border-bottom: 1px solid #F5F5F5; }
.msg-item:active, .plate-item:active { background: #F8F9FA; }
.msg-avatar { width: 48px; height: 48px; border-radius: 14px; background: #F1F5F9; color: #666; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin-right: 14px; flex-shrink: 0; overflow: hidden; }
.msg-info { flex: 1; overflow: hidden; }
.msg-name { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px; }
.msg-desc { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-icon { width: 48px; height: 48px; border-radius: 14px; background: #F1F5F9; margin-right: 14px; flex-shrink: 0; background-size: cover; background-position: center; }
.plate-title { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 4px; }
.plate-desc { font-size: 13px; color: #888; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ================== 底部导航 (5格 + 中间凸起) ================== */
.bottom-nav { 
    display: flex; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 65px; 
    border-top: 1px solid #F0F0F0; 
    z-index: 100; 
    padding-bottom: env(safe-area-inset-bottom); 
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
}

.nav-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    flex: 1; 
    font-size: 11px; 
    color: #999; 
    font-weight: 500; 
    cursor: pointer; 
    position: relative; 
    height: 100%;
}

.nav-item svg { 
    width: 22px; 
    height: 22px; 
    fill: currentColor; 
    margin-bottom: 2px;
}

.nav-item.active { 
    color: #1677FF; 
    font-weight: 700; 
}

.nav-badge { 
    position: absolute; 
    top: 6px; 
    right: 25%; 
    background: #EF4444; 
    color: #fff; 
    font-size: 10px; 
    padding: 1px 5px; 
    border-radius: 10px; 
    font-weight: bold; 
    border: 2px solid #FFF; 
}

/* 中间凸起的发布按钮区域 */
.nav-item-center {
    position: relative;
    overflow: visible; 
    flex: 1.2; 
}

/* 凸起的蓝色圆圈 */
.nav-fab {
    width: 50px;
    height: 50px;
    background: #1677FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -18px; 
    box-shadow: 0 4px 12px rgba(22,119,255,0.4);
    border: 4px solid #FFFFFF; 
    transition: transform 0.2s;
    z-index: 101;
}

.nav-fab svg { 
    width: 26px; 
    height: 26px; 
    fill: #FFF; 
    margin-bottom: 0;
}

.nav-item-center:active .nav-fab { 
    transform: scale(0.9); 
}

.nav-item-center span {
    margin-top: 34px; 
    font-size: 11px;
    color: #999;
}

/* 强制隐藏旧版的悬浮加号，防止冲突 */
.fab { 
    display: none !important; 
}

/* ================== 微聊九宫格 ================== */
.msg-grid { display: flex; justify-content: space-around; background: #FFF; padding: 20px 10px; border-bottom: 1px solid #F0F0F0; }
.msg-grid-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: #333; cursor: pointer; position: relative; font-weight: 500; }
.msg-grid-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: transform 0.2s; background: #F0F7FF; color: #1677FF; }
.msg-grid-item:active .msg-grid-icon { transform: scale(0.92); }
.msg-grid-badge { position: absolute; top: -4px; right: 0; background: #EF4444; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 10px; font-weight: bold; border: 2px solid #FFF; display: none; }

/* ================== Bottom Sheet 抽屉 ================== */
.sheet-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 9000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.bottom-sheet { position: fixed; bottom: -100%; left: 0; width: 100%; max-height: 85vh; background: #F8F9FA; border-radius: 24px 24px 0 0; z-index: 9001; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); overflow: hidden; }
.bottom-sheet.show { transform: translateY(0); bottom: 0; }
.sheet-handle { width: 40px; height: 4px; background: #D1D5DB; border-radius: 2px; margin: 12px auto; flex-shrink: 0; }
.sheet-slider { display: flex; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); width: 100%; overflow: hidden; will-change: transform; }
.sheet-panel { padding: 0 20px 40px; overflow-y: auto; max-height: calc(85vh - 30px); flex-shrink: 0; background: #F8F9FA; }

/* ================== 表单与设置项 ================== */
.edit-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 20px; margin-top: 10px; color: #111; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #E5E7EB; border-radius: 12px; font-size: 15px; background: #FFF; outline: none; transition: border-color 0.2s, box-shadow 0.2s; color: #111; }
.form-group input:focus, .form-group textarea:focus { border-color: #1677FF; box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }
.edit-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-cancel { flex: 1; padding: 14px; border-radius: 12px; border: none; background: #F1F5F9; color: #333; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-cancel:active { background: #E2E8F0; }
.btn-save { flex: 2; padding: 14px; border-radius: 12px; border: none; background: #1677FF; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-save:active { background: #0958D9; }

/* ================== 个人中心 ================== */
.pf-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; margin-top: 10px; }
.pf-avatar { width: 72px; height: 72px; border-radius: 50%; background: #1677FF; color: #fff; display: flex; justify-content: center; align-items: center; font-size: 28px; font-weight: bold; background-size: cover; background-position: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(22,119,255,0.2); }
.pf-info { flex: 1; }
.pf-name { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 4px; }
.pf-sign { font-size: 13px; color: #666; }
.pf-assets { display: flex; background: #FFF; border-radius: 16px; padding: 16px 10px; margin-bottom: 24px; justify-content: space-around; box-shadow: 0 2px 8px rgba(0,0,0,0.02); border: 1px solid #F0F0F0; }
.pf-asset-item { text-align: center; cursor: pointer; }
.pf-asset-num { font-size: 18px; font-weight: 800; color: #111; margin-bottom: 4px; }
.pf-asset-label { font-size: 12px; color: #888; }

.my-tabs { display: flex; margin-bottom: 12px; border-bottom: 1px solid #E5E7EB; }
.my-tab { padding: 10px 0; margin-right: 24px; font-size: 15px; font-weight: 600; color: #888; cursor: pointer; position: relative; }
.my-tab.active { color: #1677FF; }
.my-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: #1677FF; border-radius: 2px; }
.my-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }

.grid-post-item { background: #FFF; border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; border: 1px solid #F0F0F0; }
.grid-cover { width: 100%; height: 140px; background-size: cover; background-position: center; background-color: #F1F5F9; display: flex; justify-content: center; align-items: center; color: #888; font-size: 24px; font-weight: bold; }
.grid-info { padding: 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.grid-title { font-size: 14px; font-weight: 600; color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; margin-bottom: 6px; }
.grid-meta { font-size: 11px; color: #888; display: flex; align-items: center; gap: 4px; }

/* ================== 设置列表 & 头像编辑 ================== */
.sheet-menu-item { padding: 16px; font-size: 15px; color: #333; font-weight: 500; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid #F5F5F5; background: #FFF; }
.sheet-menu-item:active { background: #F8F9FA; }
.sheet-menu-item:last-child { border-bottom: none; }

.edit-avatar-box { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; cursor: pointer; position: relative; }
.edit-avatar { width: 80px; height: 80px; border-radius: 50%; background: #E5E7EB; margin-bottom: 12px; background-size: cover; background-position: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.edit-avatar-text { font-size: 13px; color: #1677FF; font-weight: 600; }
.btn-from-cloud { font-size: 13px; color: #666; margin-top: 8px; cursor: pointer; background: #F1F5F9; padding: 6px 12px; border-radius: 12px; }

/* ================== 充值、好友搜索 ================== */
.recharge-card { background: #FFF; border-radius: 16px; padding: 20px; margin-bottom: 20px; text-align: center; border: 1px solid #F0F0F0; }
.recharge-title { font-size: 16px; font-weight: bold; color: #111; margin-bottom: 8px; }
.recharge-desc { font-size: 13px; color: #666; margin-bottom: 20px; }

.friend-search-box { display: flex; gap: 10px; margin-bottom: 20px; margin-top: 10px; }
.friend-search-input { flex: 1; height: 40px; background: #FFF; border: 1px solid #E5E7EB; border-radius: 20px; padding: 0 16px; font-size: 14px; outline: none; }
.friend-search-input:focus { border-color: #1677FF; }
.friend-search-btn { width: 64px; height: 40px; background: #1677FF; color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.friend-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #F5F5F5; }
.friend-avatar { width: 44px; height: 44px; border-radius: 12px; background: #F1F5F9; color: #666; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; margin-right: 12px; background-size: cover; background-position: center; flex-shrink: 0; }
.friend-info { flex: 1; }
.friend-name { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px; }
.friend-account { font-size: 12px; color: #888; }
.friend-msg-btn { padding: 6px 14px; background: #F0F7FF; color: #1677FF; border: 1px solid #D6E8FF; border-radius: 14px; font-size: 12px; font-weight: 600; cursor: pointer; }

.switch-tip { text-align: center; font-size: 14px; color: #666; margin-top: 20px; }
.switch-tip span { color: #1677FF; font-weight: 700; cursor: pointer; margin-left: 4px; }

/* ================== 论坛、发帖、云盘、通知 ================== */
.forum-item { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid #F5F5F5; cursor: pointer; }
.forum-icon { width: 50px; height: 50px; border-radius: 12px; background: #F1F5F9; margin-right: 14px; flex-shrink: 0; background-size: cover; background-position: center; }
.forum-info { flex: 1; }
.forum-title { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 4px; }
.forum-desc { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.publish-box { background: #FFF; border-radius: 16px; padding: 20px; }
.upload-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.upload-btn { width: 76px; height: 76px; border: 1px dashed #D1D5DB; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 28px; color: #888; background: #F8F9FA; cursor: pointer; }
.preview-wrap { position: relative; width: 76px; height: 76px; }
.preview-img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.del-img-btn { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; background: #111; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 12px; cursor: pointer; }

.switch-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #F5F5F5; font-size: 15px; font-weight: 600; color: #111; }
.switch-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #E5E7EB; transition: .3s; border-radius: 26px; }
.slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: #1677FF; }
input:checked + .slider:before { transform: translateX(20px); }

.notice-list-item { background: #FFF; border-radius: 12px; padding: 16px; margin-bottom: 12px; border: 1px solid #F0F0F0; }
.notice-item-title { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.notice-item-tag { background: #EF4444; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: bold; }
.notice-item-time { font-size: 12px; color: #888; margin-bottom: 12px; }
.notice-item-content { font-size: 14px; color: #444; line-height: 1.6; white-space: pre-wrap; }

.cloud-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #F5F5F5; cursor: pointer; }
.cloud-icon { width: 44px; height: 44px; border-radius: 8px; background: #F1F5F9; margin-right: 12px; object-fit: cover; }
.cloud-info { flex: 1; overflow: hidden; }
.cloud-name { font-size: 14px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cloud-size { font-size: 12px; color: #888; margin-top: 4px; }

/* ================== 更新与通知 ================== */
.update-version { font-size: 24px; font-weight: 700; color: #1677FF; text-align: center; margin-bottom: 10px; }
.update-log-box { background: #F8F9FA; border-radius: 12px; padding: 16px; font-size: 14px; color: #444; line-height: 1.6; white-space: pre-wrap; margin-bottom: 24px; border: 1px solid #E5E7EB; max-height: 30vh; overflow-y: auto; }
.notify-item { padding: 16px; border-bottom: 1px solid #F5F5F5; display: flex; gap: 12px; background: #FFF; }
.notify-icon { width: 40px; height: 40px; border-radius: 50%; background: #F0F7FF; color: #1677FF; display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-weight: bold; }
.notify-content { flex: 1; }
.notify-text { font-size: 14px; color: #333; line-height: 1.5; margin-bottom: 4px; }
.notify-time { font-size: 12px; color: #999; }
.notify-unread { background: #F0F7FF; }
.empty-tip { text-align: center; color: #888; padding: 20px; font-size: 13px; }

/* ================== 弹窗与通用操作 ================== */
.popup-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); z-index: 10000; display: none; justify-content: center; align-items: center; }
.popup-card { background: #FFFFFF; width: 85%; max-width: 320px; border-radius: 20px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); position: relative; }
.popup-title { font-size: 18px; font-weight: 700; color: #111; text-align: center; margin-bottom: 16px; }
.popup-content { font-size: 14px; color: #444; line-height: 1.6; max-height: 40vh; overflow-y: auto; margin-bottom: 24px; white-space: pre-wrap; }
.popup-btn { width: 100%; height: 44px; background: #1677FF; color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }

.req-card { display: flex; align-items: center; justify-content: space-between; background: #FFF; padding: 12px; border-radius: 12px; margin-bottom: 10px; border: 1px solid #F0F0F0; }
.req-info { display: flex; align-items: center; gap: 10px; }
.req-avatar { width: 40px; height: 40px; border-radius: 50%; background: #F1F5F9; color: #666; display: flex; justify-content: center; align-items: center; font-weight: bold; }
.req-btns { display: flex; gap: 8px; }
.btn-accept { background: #1677FF; color: #fff; border: none; padding: 6px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; }
.btn-reject { background: #F1F5F9; color: #666; border: none; padding: 6px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; }
.app-card { background: #FFFFFF; border-radius: 16px; padding: 16px; border: 1px solid #F0F0F0; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.app-icon { width: 60px; height: 60px; border-radius: 14px; background: #F1F5F9; margin-bottom: 12px; background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: bold; color: #1677FF; }
.app-name { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.app-desc { font-size: 12px; color: #666; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 32px; }
.app-meta { display: flex; justify-content: space-between; width: 100%; font-size: 11px; color: #888; margin-top: auto; }
.app-price { color: #EF4444; font-weight: bold; }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; }
.shop-card { background: #FFFFFF; border-radius: 16px; padding: 12px; border: 1px solid #F0F0F0; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.shop-img { width: 80px; height: 80px; border-radius: 12px; background: #F1F5F9; background-size: cover; background-position: center; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; color: #999; }
.shop-name { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 6px; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-price { font-size: 14px; font-weight: 700; color: #F59E0B; margin-bottom: 8px; }
.shop-btn { width: 100%; padding: 8px 0; background: #F0F7FF; color: #1677FF; border: 1px solid #D6E8FF; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; }
.shop-btn.owned { background: #F1F5F9; color: #888; border-color: #E5E7EB; pointer-events: none; }

/* ================== 帖子详情内嵌页 ================== */
.detail-back-btn { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; color: #333; cursor: pointer; margin-bottom: 16px; }
.detail-author-box { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.detail-avatar { border-radius: 50%; background: #1677FF; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; background-size: cover; background-position: center; cursor: pointer; flex-shrink: 0; width: 50px; height: 50px; font-size: 20px; }
.detail-title { font-size: 20px; font-weight: 800; color: #111; line-height: 1.4; margin-bottom: 16px; }
.detail-body { font-size: 16px; color: #333; line-height: 1.7; white-space: pre-wrap; word-break: break-all; margin-bottom: 20px; }
.detail-images { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.detail-images img { width: calc(33.33% - 6px); height: 110px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.detail-single-img { margin-bottom: 16px; text-align: left; }
.detail-single-img img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; cursor: zoom-in; display: block; background: #F1F5F9; }
.detail-action-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.detail-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: #F8F9FA; border: 1px solid #E5E7EB; padding: 8px 0; border-radius: 20px; font-size: 14px; font-weight: 600; color: #555; cursor: pointer; transition: all 0.2s; }
.detail-action-btn.active { background: #F0F7FF !important; border-color: #D6E8FF !important; color: #1677FF !important; font-weight: 700; }
.detail-action-btn:active { transform: scale(0.92); }

.detail-comment-item { display: flex; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #F5F5F5; }
.detail-c-avatar { width: 36px; height: 36px; border-radius: 50%; background: #F1F5F9; color: #666; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; flex-shrink: 0; cursor: pointer; }
.detail-c-content { flex: 1; }
.detail-c-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.detail-c-name { font-size: 13px; font-weight: 600; color: #333; cursor: pointer; }
.detail-c-time { font-size: 12px; color: #999; }
.detail-c-text { font-size: 14px; color: #444; line-height: 1.5; }
.detail-c-ip { font-size: 11px; color: #999; margin-top: 6px; display: flex; justify-content: space-between; }
.detail-c-reply-btn { color: #1677FF; cursor: pointer; }
.detail-reply-list { background: #F8F9FA; border-radius: 8px; padding: 10px; margin-top: 10px; }
.detail-reply-item { font-size: 13px; margin-bottom: 6px; line-height: 1.4; }
.detail-reply-name { color: #1677FF; font-weight: 600; }
.detail-input-bar { display: flex; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #F0F0F0; }
.detail-input-bar input { flex: 1; height: 40px; background: #F1F5F9; border: 1px solid #E5E7EB; border-radius: 20px; padding: 0 16px; font-size: 14px; outline: none; }
.detail-input-bar input:focus { background: #FFF; border-color: #1677FF; }
.detail-input-bar button { width: 70px; height: 40px; background: #1677FF; color: #fff; border: none; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ================== 打赏与缓存弹窗 ================== */
.tip-input-group label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 600; }
.tip-input-group input { width: 100%; padding: 14px 16px; border: 1px solid #E5E7EB; border-radius: 12px; font-size: 16px; font-weight: bold; background: #F8F9FA; outline: none; transition: border-color 0.2s, background 0.2s; color: #111; }
.tip-input-group input:focus { border-color: #1677FF; background: #FFF; box-shadow: 0 0 0 3px rgba(22,119,255,0.1); }

/* 启动页动画 */
@keyframes breathing { 0% { opacity: 0.4; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

#appLoadingScreen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #FFFFFF; z-index: 9999999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.3s ease; }
#appLoadingScreen.hide { opacity: 0; pointer-events: none; }

.device-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #F5F5F5; }
.device-item:last-child { border-bottom: none; }
.device-info { flex: 1; overflow: hidden; padding-right: 12px; }
.device-name { font-size: 15px; font-weight: bold; color: #111; margin-bottom: 4px; display: flex; align-items: center; }
.device-tag { background: #EFF6FF; color: #2563EB; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 8px; font-weight: bold; }
.device-ip { font-size: 12px; color: #666; margin-bottom: 2px; }
.device-time { font-size: 12px; color: #999; }

/* 针对 editNoticeInput 的特殊聚焦效果 */
#editNoticeInput:focus {
    border-color: #1677FF;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
}