:root {
    --bg-app: #F2F4F8; --bg-card: #FFFFFF; --primary: #1E90FF; --primary-light: #E6F4FF;
    --primary-dark: #0D6EFD; --accent: #FF6B2C; --accent-light: #FFF0E6; --success: #22C55E;
    --qq-green: #95EC69; --warning: #FFA500; --text-1: #1A1A1A; --text-2: #666666;
    --text-3: #999999; --border: #EBEBEB; --radius: 16px; --shadow: 0 4px 16px rgba(0,0,0,0.04);
}
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { font-family: 'Noto Sans SC', sans-serif; background: var(--bg-app); color: var(--text-1); height: 100vh; width: 100%; overflow: hidden; position: relative; }

.pages-wrap { position:absolute; top:0; left:0; right:0; bottom:70px; overflow:hidden; }
.page {
    position: absolute;
    inset: 0;
    overflow-y: auto;           /* 恢复滚动 */
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    background: var(--bg-app);
    padding-bottom: 0;          /* 去掉了之前加的各种底部留白 */
}
.page-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 0;
}
        .page.active { opacity:1; visibility:visible; transform:translateX(0); }
        .page::-webkit-scrollbar { display:none; }

        .app-header { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.95); backdrop-filter:blur(15px); border-bottom:1px solid var(--border); padding:10px 16px; display:flex; align-items:center; gap:12px; }
        .app-header .back-btn { font-size:18px; color:var(--text-1); cursor:pointer; width:24px; }
        .app-header h1 { font-size:17px; font-weight:700; flex:1; text-align:center; }
        .app-header .action-btn { font-size:16px; color:var(--primary); cursor:pointer; width:24px; text-align:right; }

        .tabbar { position:absolute; bottom:0; left:0; right:0; height:70px; background:rgba(255,255,255,.95); backdrop-filter:blur(20px); border-top:1px solid var(--border); display:flex; justify-content:space-around; align-items:center; padding-top:8px; z-index:100; }
        .tab-item { display:flex; flex-direction:column; align-items:center; gap:2px; cursor:pointer; flex:1; color:var(--text-3); transition:all .2s; }
        .tab-item i { font-size:20px; } .tab-item span { font-size:10px; font-weight:500; }
        .tab-item.active { color:var(--primary); }
        .tab-item.center { flex:0.6; }
        .tab-item.center .publish-btn { width:44px; height:44px; border-radius:14px; background:linear-gradient(135deg, var(--primary), var(--primary-dark)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; box-shadow:0 4px 12px rgba(30,144,255,.4); margin-top:-15px; }
        .tab-item.center span { margin-top:4px; }

        .card { background:var(--bg-card); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:12px; overflow:hidden; }
        .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:none; cursor:pointer; font-family:inherit; font-weight:700; transition:all .2s; white-space:nowrap; }
        .btn:active { transform:scale(.95); }
        .btn-primary { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; padding:10px 24px; border-radius:24px; font-size:14px; box-shadow:0 4px 12px rgba(30,144,255,.3); }
        .btn-accent { background:linear-gradient(135deg,var(--accent),#FF8A5C); color:#fff; padding:10px 24px; border-radius:24px; font-size:14px; box-shadow:0 4px 12px rgba(255,107,44,.3); }
        .btn-outline { background:var(--bg-card); color:var(--primary); border:1px solid var(--primary); padding:8px 20px; border-radius:24px; font-size:13px; }
        .btn-block { display:flex; width:100%; padding:14px; font-size:15px; border-radius:12px; }

        .tag { display:inline-flex; align-items:center; font-size:10px; padding:2px 6px; border-radius:4px; font-weight:600; }
        .tag-blue { background:var(--primary-light); color:var(--primary); }
        .tag-orange { background:var(--accent-light); color:var(--accent); }
        .tag-green { background:#E6FFE6; color:var(--success); }
        .tag-gray { background:#F5F5F5; color:var(--text-2); }

        /* 首页 */
        .home-header { background:linear-gradient(135deg,var(--primary) 0%,#4A90E2 100%); padding:15px 16px 60px; color:#fff; position:relative; border-radius:0 0 24px 24px; }
        .home-top-row { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:10px; }
        .home-brand .main-title { font-size:20px; font-weight:900; display:flex; align-items:center; gap:6px; }
        .home-brand .sub-title { font-size:11px; opacity:0.9; margin-top:2px; }
        .home-loc { display:flex; align-items:center; gap:4px; font-size:13px; font-weight:700; background:rgba(255,255,255,.2); padding:4px 10px; border-radius:14px; cursor:pointer; }
        .search-bar { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.2); backdrop-filter:blur(10px); border-radius:20px; padding:8px 16px; }
        .search-bar i { color:rgba(255,255,255,.8); font-size:14px; }
        .search-bar input { flex:1; background:transparent; border:none; outline:none; color:#fff; font-size:13px; }
        .search-bar input::placeholder { color:rgba(255,255,255,.6); }

        .kingkong { margin:-40px 12px 0; background:#fff; border-radius:16px; padding:16px 8px; box-shadow:0 4px 20px rgba(0,0,0,.05); display:grid; grid-template-columns:repeat(4,1fr); gap:12px 0; position:relative; z-index:2; }
        .kk-item { display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; transition:transform .2s; }
        .kk-item:active { transform:scale(.9); }
        .kk-icon { width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:18px; color:#fff; }
        .kk-item span { font-size:10.5px; color:var(--text-1); font-weight:500; }

        .section { margin:16px 12px 0; }
        .section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
        .section-title { font-size:16px; font-weight:700; display:flex; align-items:center; gap:6px; }
        .section-title::before { content:''; width:4px; height:14px; background:var(--primary); border-radius:2px; }
        .section-more { font-size:12px; color:var(--text-3); cursor:pointer; }

        .news-card { display:flex; gap:10px; padding:12px; cursor:pointer; }
        .news-thumb { width:80px; height:80px; border-radius:8px; overflow:hidden; flex-shrink:0; background:#eee; }
        .news-thumb img { width:100%; height:100%; object-fit:cover; }
        .news-body { flex:1; display:flex; flex-direction:column; justify-content:space-between; }
        .news-title { font-size:14px; font-weight:600; line-height:1.3; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
        .news-meta { font-size:10px; color:var(--text-3); }

        .task-card { padding:14px; cursor:pointer; }
        .task-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
        .task-bounty { font-size:18px; font-weight:800; color:var(--accent); font-family:'Orbitron',sans-serif; }
        .task-title { font-size:14px; font-weight:700; margin-bottom:6px; }
        .task-info { display:flex; gap:10px; font-size:11px; color:var(--text-2); margin-bottom:10px; }
        .task-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:10px; border-top:1px dashed var(--border); }
        .task-loc { font-size:11px; color:var(--text-2); }

        .waterfall { columns:2; column-gap:10px; }
        .wf-card { break-inside:avoid; margin-bottom:10px; background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); cursor:pointer; }
        .wf-img { width:100%; aspect-ratio:1/1; position:relative; background:#eee; }
        .wf-img img { width:100%; height:100%; object-fit:cover; }
        .wf-body { padding:10px; }
        .wf-title { font-size:12px; font-weight:600; line-height:1.3; margin-bottom:6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
        .wf-price { color:var(--accent); font-size:16px; font-weight:800; font-family:'Orbitron',sans-serif; }
        .wf-price::before { content:'\00A5'; font-size:11px; }
        .wf-meta { font-size:10px; color:var(--text-3); margin-top:4px; display:flex; justify-content:space-between; }

        /* 列表 */
        .cate-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;          /* 防止换行 */
    -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
}
.cate-tabs::-webkit-scrollbar {
    display: none;
}

.cate-tab {
    flex-shrink: 0;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 16px;
    background: #F5F5F5;
    color: var(--text-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;          /* 标签内文字不换行 */
}
.cate-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

        .gd-card { display:flex; gap:12px; padding:12px; cursor:pointer; }
        .gd-img { width:110px; height:110px; border-radius:10px; flex-shrink:0; overflow:hidden; background:#eee; }
        .gd-img img { width:100%; height:100%; object-fit:cover; }
        .gd-body { flex:1; display:flex; flex-direction:column; justify-content:space-between; min-width:0; }
        .gd-title { font-size:14px; font-weight:600; line-height:1.3; margin-bottom:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
        .gd-attrs { display:flex; flex-wrap:wrap; gap:4px; }
        .gd-bottom { display:flex; justify-content:space-between; align-items:flex-end; }
        .gd-price { color:var(--accent); font-size:18px; font-weight:800; font-family:'Orbitron',sans-serif; }
        .gd-price::before { content:'\00A5'; font-size:12px; }

        /* 详情 */
        .detail-swiper { width:100%; height:300px; background:#eee; position:relative; }
        .detail-swiper img { width:100%; height:100%; object-fit:cover; }
        .detail-price-box { background:#fff; padding:16px 12px; border-radius:0 0 16px 16px; margin-top:-16px; position:relative; z-index:2; }
        .detail-price { color:var(--accent); font-size:28px; font-weight:800; font-family:'Orbitron',sans-serif; }
        .detail-price::before { content:'\00A5'; font-size:16px; }
        .detail-price-orig { font-size:13px; color:var(--text-3); text-decoration:line-through; margin-left:8px; }
        .detail-title { font-size:16px; font-weight:700; margin-top:8px; }
        .detail-info-row { display:flex; gap:8px; margin-top:8px; }
        .detail-seller { display:flex; align-items:center; gap:10px; padding:12px; }
        .seller-avatar { width:40px; height:40px; border-radius:50%; background:#eee; display:flex; align-items:center; justify-content:center; font-size:16px; color:#fff; font-weight:700; }
        .seller-info { flex:1; }
        .seller-name { font-size:14px; font-weight:700; }
        .seller-meta { font-size:11px; color:var(--text-3); }

.bottom-action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

        /* 表单 */
        .form-group { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; }
        .form-label { width:80px; font-size:14px; color:var(--text-2); flex-shrink:0; }
        .form-input { flex:1; border:none; outline:none; font-size:14px; color:var(--text-1); background:transparent; font-family:inherit; }
        .form-textarea { width:100%; border:1px solid var(--border); border-radius:8px; padding:10px; font-size:14px; font-family:inherit; outline:none; resize:none; }
        .form-upload { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:12px 16px; }
        .upload-box { aspect-ratio:1/1; border:1px dashed var(--border); border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--text-3); font-size:24px; cursor:pointer; background:#FAFAFA; }

        /* 弹窗 */
        .modal-mask { position:absolute; inset:0; background:rgba(0,0,0,.5); z-index:999; opacity:0; visibility:hidden; transition:all .3s; display:flex; align-items:flex-end; }
        .modal-mask.active { opacity:1; visibility:visible; }
        .modal-content { width:100%; background:#fff; border-radius:16px 16px 0 0; padding:20px; transform:translateY(100%); transition:transform .3s; max-height:80vh; overflow-y:auto; }
        .modal-mask.active .modal-content { transform:translateY(0); }
        .publish-sheet { width:100%; background:#fff; border-radius:16px 16px 0 0; padding:20px; transform:translateY(100%); transition:transform .3s; }
        .modal-mask.active .publish-sheet { transform:translateY(0); }
        .pub-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
        .pub-item { display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; }
        .pub-icon { width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; }
        .pub-item span { font-size:11px; color:var(--text-2); }

        .modal-center { position:absolute; inset:0; background:rgba(0,0,0,.5); z-index:999; opacity:0; visibility:hidden; transition:all .3s; display:flex; align-items:center; justify-content:center; padding:40px; }
        .modal-center.active { opacity:1; visibility:visible; }
        .modal-center-content { width:100%; background:#fff; border-radius:16px; padding:24px 20px; transform:scale(.9); transition:transform .3s; }
        .modal-center.active .modal-center-content { transform:scale(1); }
        .modal-center-title { font-size:16px; font-weight:700; text-align:center; margin-bottom:16px; }
        .modal-center-desc { font-size:14px; color:var(--text-2); text-align:center; line-height:1.6; margin-bottom:20px; }
        .modal-center-btn { background:var(--primary); color:#fff; text-align:center; padding:10px; border-radius:8px; font-weight:600; cursor:pointer; }

        .area-picker { display:flex; height:300px; }
        .area-province { width:100px; background:#F5F5F5; overflow-y:auto; }
        .area-city { flex:1; overflow-y:auto; }
        .area-item { padding:12px 16px; font-size:14px; color:var(--text-2); cursor:pointer; }
        .area-item.active { background:#fff; color:var(--primary); font-weight:700; position:relative; }
        .area-item.active::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--primary); }

        .toast { position:absolute; top:30px; left:50%; transform:translateX(-50%) translateY(-20px); background:rgba(0,0,0,.8); color:#fff; padding:10px 20px; border-radius:20px; font-size:13px; z-index:1000; opacity:0; visibility:hidden; transition:all .3s; white-space:nowrap; }
        .toast.show { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }

        /* 个人中心 */
        .profile-header { background:linear-gradient(135deg,var(--primary),#4A90E2); padding:20px 16px 40px; color:#fff; border-radius:0 0 24px 24px; }
        .user-card { display:flex; align-items:center; gap:14px; }
        .user-avatar { width:60px; height:60px; border-radius:50%; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; border:2px solid rgba(255,255,255,.4); }
        .user-info { flex:1; }
        .user-name { font-size:18px; font-weight:700; margin-bottom:4px; }
        .user-sub { font-size:12px; opacity:.8; }
        .user-stats { display:flex; justify-content:space-around; background:#fff; border-radius:12px; padding:14px 0; color:var(--text-1); box-shadow:var(--shadow); }
        .stat-num { font-size:18px; font-weight:700; text-align:center; }
        .stat-label { font-size:11px; color:var(--text-3); text-align:center; }
        .menu-list { margin:12px; background:#fff; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }
        .menu-item { display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); cursor:pointer; }
        .menu-item:last-child { border-bottom:none; }
        .menu-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; color:#fff; }
        .menu-label { flex:1; font-size:14px; font-weight:500; }
        .menu-arrow { color:var(--text-3); }

        /* 社区 */
        .post-card { padding:12px; cursor:pointer; }
        .post-head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
        .post-avatar { width:32px; height:32px; border-radius:50%; background:#eee; display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff; font-weight:700; }
        .post-user { flex:1; }
        .post-name { font-size:12px; font-weight:600; }
        .post-time { font-size:10px; color:var(--text-3); }
        .post-title { font-size:15px; font-weight:700; margin-bottom:4px; }
        .post-content { font-size:13px; color:var(--text-2); line-height:1.4; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
        .post-images { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin-bottom:8px; }
        .post-images img { width:100%; aspect-ratio:1/1; border-radius:6px; object-fit:cover; background:#eee; }
        .post-foot { display:flex; gap:16px; color:var(--text-3); font-size:12px; border-top:1px solid var(--border); padding-top:8px; }
        .post-foot span { display:flex; align-items:center; gap:4px; cursor:pointer; }
        .post-foot span.active { color:var(--accent); }

        .msg-list-item { display:flex; align-items:center; gap:12px; padding:12px; background:#fff; border-bottom:1px solid var(--border); cursor:pointer; }
        .msg-avatar { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; flex-shrink:0; }
        .msg-content { flex:1; min-width:0; }
        .msg-top-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
        .msg-name { font-size:15px; font-weight:600; color:var(--text-1); }
        .msg-time { font-size:11px; color:var(--text-3); }
        .msg-desc { font-size:13px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .msg-badge { background:var(--accent); color:#fff; font-size:10px; padding:2px 6px; border-radius:10px; margin-left:4px; }

       .resume-list-item {
    display: flex;
    gap: 12px;
    padding: 14px 12px;
    margin: 8px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.2s;
}
.resume-list-item:active {
    transform: scale(0.98);
}
.resume-l-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;          /* 圆角矩形，更现代 */
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.resume-l-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1);
}

.resume-l-tags .tag {
    border-radius: 6px;
    font-size: 10px;
    padding: 3px 8px;
}

/* 可选：给认证用户加个小徽章 */
.resume-l-name .tag-blue {
    vertical-align: middle;
    margin-left: 4px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 9px;
    padding: 2px 5px;
}
.filter-bar {
    background: #fff;
    padding: 8px 12px;
    gap: 8px;
    border-bottom: none;          /* 去掉分割线 */
}
.filter-item {
    border-radius: 18px;
    background: #F2F4F8;
    color: var(--text-2);
    font-weight: 500;
    transition: all 0.2s;
}
.filter-item.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
        .resume-l-avatar { width:50px; height:50px; border-radius:50%; background:#eee; display:flex; align-items:center; justify-content:center; font-size:18px; color:#fff; font-weight:700; flex-shrink:0; }
        .resume-l-body { flex:1; }
        .resume-l-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
        .resume-l-name { font-size:15px; font-weight:700; }
        .resume-l-loc { font-size:11px; color:var(--text-3); }
        .resume-l-info { font-size:12px; color:var(--text-2); margin-bottom:6px; }
        .resume-l-tags { display:flex; gap:4px; flex-wrap:wrap; }
        .filter-bar { background:#fff; padding:8px 12px; display:flex; gap:8px; overflow-x:auto; border-bottom:1px solid var(--border); }
        .filter-bar::-webkit-scrollbar { display:none; }
        .filter-item { flex-shrink:0; font-size:12px; padding:5px 12px; border-radius:14px; background:#F5F5F5; color:var(--text-2); display:flex; align-items:center; gap:4px; cursor:pointer; }
        .filter-item.active { background:var(--primary-light); color:var(--primary); font-weight:600; }

        .map-container { position:relative; height:calc(100% - 50px); background:#e8eef5; overflow:hidden; }
        .map-placeholder { width:100%; height:100%; object-fit:cover; opacity:.8; }
        .map-pin { position:absolute; display:flex; flex-direction:column; align-items:center; cursor:pointer; }
        .map-pin i { font-size:28px; color:var(--primary); text-shadow:0 2px 4px rgba(0,0,0,.2); }
        .map-pin span { background:#fff; padding:2px 6px; border-radius:4px; font-size:10px; font-weight:600; margin-top:-4px; box-shadow:0 2px 4px rgba(0,0,0,.1); }
        .map-info-card { position:absolute; bottom:16px; left:16px; right:16px; background:#fff; border-radius:12px; padding:14px; box-shadow:0 4px 20px rgba(0,0,0,.1); }

        .chat-page { display:flex; flex-direction:column; height:100%; background:#EDEDED; }
        .chat-header { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff; padding:10px 16px; display:flex; align-items:center; gap:12px; box-shadow:0 2px 8px rgba(0,0,0,.1); }
        .chat-header .back-btn { color:#fff; cursor:pointer; }
        .chat-header h1 { font-size:16px; font-weight:500; text-align:left; }
        .chat-status { font-size:11px; opacity:.8; margin-top:2px; }
        .chat-header-avatar { width:36px; height:36px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:16px; }
        .chat-header-more { font-size:20px; cursor:pointer; }

        .chat-body { flex:1; overflow-y:auto; padding:16px 12px; display:flex; flex-direction:column; gap:15px; }
        .chat-body::-webkit-scrollbar { width:4px; } .chat-body::-webkit-scrollbar-thumb { background:#ccc; border-radius:2px; }

        .msg-row { display:flex; gap:8px; max-width:85%; animation:msgFadeIn .3s ease; }
        .msg-row.ai { align-self:flex-start; } .msg-row.user { align-self:flex-end; flex-direction:row-reverse; }
        .msg-row .msg-avatar { width:36px; height:36px; border-radius:6px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:16px; }
        .msg-row.ai .msg-avatar { background:#fff; color:var(--primary); }
        .msg-row.user .msg-avatar { background:var(--primary); color:#fff; }
        .msg-bubble { padding:10px 12px; border-radius:8px; font-size:14px; line-height:1.5; position:relative; word-break:break-word; white-space:pre-wrap; }
        .msg-row.ai .msg-bubble { background:#fff; color:#333; border-top-left-radius:2px; }
        .msg-row.user .msg-bubble { background:var(--qq-green); color:#000; border-top-right-radius:2px; }

        .typing-dots { display:flex; gap:4px; padding:4px 0; }
        .typing-dots span { width:6px; height:6px; background:#999; border-radius:50%; animation:typing 1.4s infinite ease-in-out; }
        .typing-dots span:nth-child(2) { animation-delay:.2s; } .typing-dots span:nth-child(3) { animation-delay:.4s; }

        .chat-footer { background:#F7F7F7; padding:8px 12px; display:flex; align-items:center; gap:8px; border-top:1px solid #E0E0E0; position:relative; }
        .chat-footer i { font-size:24px; color:#666; cursor:pointer; width:32px; text-align:center; }
        .chat-input-wrap { flex:1; background:#fff; border-radius:6px; padding:8px 12px; display:flex; align-items:center; }
        .chat-input-wrap input { flex:1; border:none; outline:none; font-size:15px; background:transparent; }
        .send-btn { background:var(--primary); color:#fff; border:none; padding:8px 14px; border-radius:6px; font-size:14px; font-weight:500; cursor:pointer; transition:all .2s; flex-shrink:0; }
        .send-btn:disabled { background:#ddd; color:#999; cursor:not-allowed; }

        @keyframes msgFadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
        @keyframes typing { 0%,100%{transform:scale(.8);opacity:.5} 50%{transform:scale(1.2);opacity:1} }
        .empty-state { text-align:center; padding:40px 20px; color:var(--text-3); }
        /* 强制修复分类栏高度 */
.cate-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 12px 10px !important;   /* 上下12px确保足够高度 */
    background: #fff !important;
    border-bottom: 1px solid var(--border) !important;
    overflow-x: auto !important;
    min-height: 44px;                /* 保证最小高度 */
    align-items: center;             /* 垂直居中 */
}

.cate-tab {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;    /* 上下8px增加标签高度 */
    border-radius: 20px !important;  /* 圆角胶囊 */
    background: #F5F5F5 !important;
    color: var(--text-2) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px;                    /* 固定标签高度，防止扁 */
}

.cate-tab.active {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
#page-post-detail .post-card {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    background: #fff;
}
#page-post-detail .post-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
    border-radius: 10px;
}
#page-post-detail .btn-outline {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
#page-post-detail .post-title {
    font-size: 17px;
    line-height: 1.4;
    margin: 10px 0 6px;
}
#page-post-detail .post-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2);
}
#page-post-detail .post-images img {
    border-radius: 10px;
}
#page-post-detail .post-foot {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    display: flex;
    gap: 20px;
}
#page-post-detail .post-foot span i {
    margin-right: 3px;
}
#page-post-detail h3 {
    font-size: 14px;
    font-weight: 700;
    padding: 12px 4px 6px;
    color: var(--text-1);
}
#page-post-detail .post-card .post-head {
    margin-bottom: 4px;
}
#page-post-detail .bottom-action-bar input {
    border: 1px solid var(--border);
    border-radius: 20px;
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    background: #f8f8f8;
}
#page-post-detail .bottom-action-bar button {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
}
#page-post-detail .post-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    gap: 20px;
}
