/* ============================================================
   方块茶室 · 三栏布局
   固定视口布局 · 三栏撑满 · 直角 · 轻薄毛玻璃
   所有页面（首页 / 话题 / 帖子 / 搜索 / 用户 / 编辑）共用
   ============================================================ */

/* ============================================================
   外层壳
   ============================================================ */
.tea-home {
    height: calc(100vh - var(--navbar-height));
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #11161c;
}

.tea-home-inner {
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 16px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 三栏布局：等高 */
.tea-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 260px;
    gap: 18px;
    height: 100%;
    min-height: 0;
}

/* 三栏通用 */
.tea-col-left,
.tea-col-mid,
.tea-col-right {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

/* ============================================================
   轻薄毛玻璃底 —— 通用类
   ============================================================ */
.tea-brand,
.ann-carousel,
.counter-block,
.yajian-carousel,
.chatai-block,
.pinned-block,
.feed-section,
.side-block {
    background: rgba(15, 20, 26, 0.42);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.18);
    border-radius: 0;
}

/* ============================================================
   左栏
   ============================================================ */
.tea-col-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 招牌 */
.tea-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.tea-brand:hover {
    border-color: rgba(232, 164, 55, 0.35);
    border-left-color: var(--accent-bright);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 10px rgba(232, 164, 55, 0.15);
}
.tea-brand img {
    height: 34px;
    display: block;
    flex-shrink: 0;
}
.tea-brand span {
    background: linear-gradient(135deg, #f5b855, #e8a437);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 今日茶话 */
.daily-card {
    flex-shrink: 0;
    display: block;
    padding: 14px 16px;
    background: linear-gradient(135deg,
        rgba(232, 164, 55, 0.16),
        rgba(139, 111, 71, 0.06));
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(232, 164, 55, 0.32);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.daily-card:hover {
    border-color: rgba(232, 164, 55, 0.55);
    border-left-color: var(--accent-bright);
    transform: translateX(3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 14px rgba(232, 164, 55, 0.22);
}
.daily-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.daily-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.daily-card:hover .daily-title {
    color: var(--accent-bright);
}
.daily-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* 公告轮播 */
.ann-carousel {
    flex-shrink: 0;
    overflow: hidden;
}
.ann-head {
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-bright);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ann-head i { font-size: 11px; }

.ann-viewport {
    position: relative;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ann-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ann-item {
    flex-shrink: 0;
    padding: 11px 14px;
    box-sizing: border-box;
    border-left: 3px solid var(--accent);
}
.ann-item.ann-info    { border-left-color: var(--info); }
.ann-item.ann-success { border-left-color: var(--success); }
.ann-item.ann-warning { border-left-color: var(--warning); }
.ann-item.ann-danger  { border-left-color: var(--danger); }

.ann-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ann-content {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ann-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.16);
}
.ann-btn {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ann-btn:hover {
    background: rgba(232, 164, 55, 0.22);
    border-color: rgba(232, 164, 55, 0.45);
    color: var(--accent-bright);
}
.ann-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}
.ann-dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.22);
    transition: var(--transition);
}
.ann-dot.active {
    background: var(--accent);
    width: 14px;
}

/* 柜台：撑满左栏剩余高度 */
.counter-block {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    overflow: hidden;
}
.counter-label {
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #c9a876;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.counter-label i { font-size: 11px; }

.counter-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 111, 71, 0.4) transparent;
}
.counter-list::-webkit-scrollbar { width: 5px; }
.counter-list::-webkit-scrollbar-track { background: transparent; }
.counter-list::-webkit-scrollbar-thumb {
    background: rgba(139, 111, 71, 0.4);
    border-radius: 0;
}
.counter-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 111, 71, 0.65);
}

.counter-item {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 0;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    border-left: 2px solid transparent;
}
.counter-item:hover {
    background: rgba(139, 111, 71, 0.22);
    border-left-color: var(--accent);
    color: #e8c49a;
    padding-left: 10px;
}
.counter-item .hash {
    color: #8b6f47;
    margin-right: 2px;
    font-weight: 600;
}

/* ============================================================
   中栏：独立滚动
   ============================================================ */
.tea-col-mid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 164, 55, 0.35) transparent;
}
.tea-col-mid::-webkit-scrollbar { width: 6px; }
.tea-col-mid::-webkit-scrollbar-track { background: transparent; }
.tea-col-mid::-webkit-scrollbar-thumb {
    background: rgba(232, 164, 55, 0.35);
    border-radius: 0;
}
.tea-col-mid::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 164, 55, 0.6);
}

/* ============================================================
   中栏内页：外层容器撑满宽度，改为竖向 flex
   ============================================================ */
.tea-col-mid > .post-page,
.tea-col-mid > .topic-page,
.tea-col-mid > .search-page,
.tea-col-mid > .profile-page,
.tea-col-mid > .editor-page,
.tea-col-mid > .topic-new-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 14px 0;
    box-sizing: border-box;
}

/* ============================================================
   中栏内页：各一级区块统一毛玻璃
   ------------------------------------------------------------
   首页各 section（.yajian-carousel / .chatai-block / .pinned-block
   / .feed-section）已自带毛玻璃，这里只覆盖内页的区块。
   ============================================================ */
.tea-col-mid .post-header,
.tea-col-mid .post-content,
.tea-col-mid .post-cards,
.tea-col-mid .post-footer,
.tea-col-mid .post-replies-section,

.tea-col-mid .topic-hero,
.tea-col-mid .topic-toolbar,

.tea-col-mid .search-header,
.tea-col-mid .search-tabs,
.tea-col-mid .search-section,

.tea-col-mid .profile-header,
.tea-col-mid .profile-stats,
.tea-col-mid .profile-tabs,

.tea-col-mid .editor-header,
.tea-col-mid .editor-section,
.tea-col-mid .editor-side-card,

.tea-col-mid .topic-new-header,
.tea-col-mid .topic-new-form,

.tea-col-mid .reply-editor {
    background: rgba(15, 20, 26, 0.42);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.18);
    border-radius: 0;
}

/* 内部独立卡片（仅话题页 / 用户主页里的帖子卡片、回复卡片） */
.tea-col-mid .topic-page .post-card,
.tea-col-mid .profile-page .post-card,
.tea-col-mid .profile-page .profile-reply-item {
    background: rgba(15, 20, 26, 0.42);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.18);
    border-radius: 0;
}
.tea-col-mid .topic-page .post-card:hover,
.tea-col-mid .profile-page .post-card:hover,
.tea-col-mid .profile-page .profile-reply-item:hover {
    background: rgba(20, 26, 34, 0.55);
    border-color: rgba(232, 164, 55, 0.35);
}

/* ============================================================
   内页区块的间距 / 边框 / 内边距重排
   ------------------------------------------------------------
   原来各 section 用 margin-bottom / border-top / border-bottom
   做分隔，现在改为 flex gap 处理，各卡片自带 padding。
   ============================================================ */

/* —— 帖子详情 —— */
.tea-col-mid .post-header {
    padding: 20px 24px;
    margin-bottom: 0;
}
.tea-col-mid .post-content {
    padding: 20px 24px;
    margin-bottom: 0;
}
.tea-col-mid .post-cards {
    padding: 16px;
    margin: 0;
}
.tea-col-mid .post-footer {
    padding: 12px 20px;
    margin-bottom: 0;
    border-top: none;
    border-bottom: none;
}
.tea-col-mid .post-replies-section {
    padding: 20px 24px;
    margin-top: 0;
}

/* —— 话题页 —— */
.tea-col-mid .topic-hero {
    margin-bottom: 0;
}
.tea-col-mid .topic-toolbar {
    padding: 10px 16px;
    margin-bottom: 0;
}
.tea-col-mid .topic-post-list {
    gap: 10px;
    margin-bottom: 0;
}

/* —— 搜索页 —— */
.tea-col-mid .search-header {
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: none;
}
.tea-col-mid .search-tabs {
    padding: 8px;
    margin-bottom: 0;
}
.tea-col-mid .search-section {
    padding: 16px 20px;
    margin-bottom: 0;
}

/* —— 用户主页 —— */
.tea-col-mid .profile-header {
    margin-bottom: 0;
}
.tea-col-mid .profile-stats {
    margin-bottom: 0;
}
.tea-col-mid .profile-tabs {
    margin-bottom: 0;
}

/* —— 编辑器 —— */
.tea-col-mid .editor-header {
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: none;
}

/* —— 新建话题 —— */
.tea-col-mid .topic-new-header {
    padding: 20px 24px;
    margin-bottom: 0;
    border-bottom: none;
}

/* ============================================================
   首页：中栏上方区块自然高度，帖子流撑满剩余空间
   ============================================================ */
.yajian-carousel,
.chatai-block,
.pinned-block {
    flex-shrink: 0;
}

/* 雅座轮播 */
.yajian-carousel {
    padding: 12px;
    overflow: hidden;
}
.yc-viewport {
    overflow: hidden;
    position: relative;
}
.yc-track {
    display: flex;
    gap: 10px;
    will-change: transform;
}
.yc-card {
    flex: 0 0 190px;
    padding: 10px 12px;
    background: rgba(232, 164, 55, 0.06);
    border: 1px solid rgba(232, 164, 55, 0.18);
    border-left: 3px solid rgba(232, 164, 55, 0.4);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.yc-card:hover {
    background: rgba(232, 164, 55, 0.14);
    border-color: rgba(232, 164, 55, 0.45);
    border-left-color: var(--accent-bright);
}
.yc-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yc-card:hover .yc-name {
    color: var(--accent-bright);
}
.yc-latest {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yc-latest-label {
    color: var(--accent);
}
.yc-latest-empty {
    font-style: italic;
    opacity: 0.55;
}

/* 茶桌 */
.chatai-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}
.chatai-list {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.chatai-item {
    padding: 4px 12px;
    background: rgba(245, 184, 85, 0.10);
    border: 1px solid rgba(245, 184, 85, 0.20);
    border-radius: 0;
    font-size: 12.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.chatai-item:hover {
    background: rgba(245, 184, 85, 0.22);
    color: var(--accent-bright);
    border-color: rgba(245, 184, 85, 0.45);
}
.chatai-shuffle {
    flex-shrink: 0;
    padding: 5px 12px;
    background: rgba(232, 164, 55, 0.12);
    border: 1px solid rgba(232, 164, 55, 0.28);
    border-radius: 0;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.chatai-shuffle:hover:not(:disabled) {
    background: rgba(232, 164, 55, 0.22);
    color: var(--accent-bright);
    border-color: rgba(232, 164, 55, 0.5);
}
.chatai-shuffle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 全局置顶 */
.pinned-block {
    padding: 12px 14px;
}
.pinned-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-bright);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.pinned-header i { font-size: 12px; }
.pinned-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    margin-bottom: 5px;
    transition: var(--transition);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
}
.pinned-item:last-child { margin-bottom: 0; }
.pinned-item:hover {
    background: rgba(232, 164, 55, 0.09);
    border-color: rgba(232, 164, 55, 0.22);
    border-left-color: var(--accent);
}
.pinned-title {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.pinned-item:hover .pinned-title {
    color: var(--accent-bright);
}
.pinned-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

/* 帖子流：撑满中栏剩余高度 */
.feed-section {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
}
.feed-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1a1a;
    border: none;
    border-radius: 0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    letter-spacing: 0.3px;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.feed-switch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(232, 164, 55, 0.35);
}
.feed-switch-btn i {
    font-size: 11px;
    opacity: 0.8;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.feed-switch-btn:active i {
    transform: rotate(360deg);
}

.feed-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    height: 64px;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}
.feed-item:hover {
    background: rgba(232, 164, 55, 0.06);
    border-color: rgba(232, 164, 55, 0.18);
    border-left-color: var(--accent);
}

.feed-cover {
    width: 48px;
    height: 48px;
    border-radius: 0;
    overflow: hidden;
    background: #0b0f14;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.feed-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 164, 55, 0.35);
    font-size: 16px;
}

.feed-topic {
    flex-shrink: 0;
    padding: 2px 8px;
    background: rgba(232, 164, 55, 0.10);
    border-radius: 0;
    font-size: 11.5px;
    color: var(--accent-bright);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(232, 164, 55, 0.22);
}

.feed-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-item:hover .feed-title {
    color: var(--accent-bright);
}

.feed-author {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.fa-avatar {
    width: 20px;
    height: 20px;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.fa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fa-nick {
    color: var(--text-secondary);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fa-time {
    opacity: 0.7;
    white-space: nowrap;
}

.feed-loader,
.feed-end {
    flex-shrink: 0;
    text-align: center;
    padding: 14px;
    color: var(--text-muted);
    font-size: 13px;
}
.feed-loader i { margin-right: 4px; }

/* ============================================================
   右栏
   ============================================================ */
.tea-col-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 164, 55, 0.3) transparent;
}
.tea-col-right::-webkit-scrollbar { width: 5px; }
.tea-col-right::-webkit-scrollbar-track { background: transparent; }
.tea-col-right::-webkit-scrollbar-thumb {
    background: rgba(232, 164, 55, 0.3);
    border-radius: 0;
}

.side-block {
    flex-shrink: 0;
    padding: 12px 14px;
}

/* 最近活跃块撑大，方块保持正方形 */
.side-block-grow {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.side-block-grow .active-wall {
    flex: 1;
    min-height: 0;
    align-content: start;
}

/* 快捷链接贴底 */
.quick-links-block {
    margin-top: auto;
}

.side-title {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.side-title i {
    color: var(--accent);
    font-size: 12px;
}

/* 统计 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.stats-cell {
    text-align: center;
    padding: 12px 4px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 0;
    border-left: 2px solid rgba(232, 164, 55, 0.28);
}
.stats-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 3px;
}
.stats-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

/* 最近活跃：4 列，头像保持正方形，容器自然增高 */
.active-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: min-content;
    gap: 8px;
}
.aw-item {
    position: relative;
    aspect-ratio: 1 / 1;
    align-self: start;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(232, 164, 55, 0.25);
}
.aw-item:hover {
    transform: translateY(-2px);
    z-index: 2;
    border-color: var(--accent-bright);
    box-shadow: 0 4px 14px rgba(232, 164, 55, 0.45);
}
.aw-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aw-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}

/* 快捷链接：一行一个 */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ql-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
}
.ql-item:hover {
    background: rgba(232, 164, 55, 0.10);
    border-color: rgba(232, 164, 55, 0.25);
    border-left-color: var(--accent);
    color: var(--accent-bright);
    padding-left: 16px;
}
.ql-item i {
    color: var(--accent);
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
    .tea-layout {
        grid-template-columns: 220px minmax(0, 1fr) 240px;
        gap: 14px;
    }
}

@media (max-width: 1024px) {
    /* 小屏切成单栏，恢复整页滚动 */
    .tea-home {
        height: auto;
        min-height: calc(100vh - var(--navbar-height));
        overflow: visible;
        background-attachment: scroll;
    }
    .tea-home-inner {
        height: auto;
        padding: 14px;
        overflow: visible;
    }
    .tea-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .tea-col-left,
    .tea-col-mid,
    .tea-col-right {
        height: auto;
        overflow: visible;
        position: static;
    }
    .counter-block {
        max-height: 300px;
    }
    .active-wall {
        grid-template-columns: repeat(8, 1fr);
    }
    .quick-links-block {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .tea-home-inner { padding: 10px; }
    .feed-item {
        height: auto;
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }
    .feed-cover { width: 44px; height: 44px; }
    .feed-author { width: 100%; justify-content: flex-end; }
    .active-wall { grid-template-columns: repeat(6, 1fr); }
}
/* ============================================================
   左栏空态 —— 内容为空时占位展示，保持结构稳定
   ============================================================ */

/* 今日茶话空态 */
.daily-card-empty {
    cursor: default;
}
.daily-card-empty:hover {
    transform: none;
    border-color: rgba(232, 164, 55, 0.32);
    border-left-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 10px rgba(0, 0, 0, 0.18);
}
.daily-title-empty {
    color: var(--text-muted);
    font-weight: 500;
    font-style: italic;
}
.daily-card-empty:hover .daily-title-empty {
    color: var(--text-muted);
}

/* 公告空态 */
.ann-item-empty {
    opacity: 0.7;
}
.ann-item-empty .ann-title {
    color: var(--text-secondary);
    font-weight: 500;
}
.ann-item-empty .ann-content {
    font-style: italic;
}

/* 柜台空态 */
.counter-item-empty {
    color: var(--text-muted);
    font-style: italic;
    cursor: default;
    padding-left: 10px;
}
.counter-item-empty:hover {
    background: transparent;
    border-left-color: transparent;
    color: var(--text-muted);
    padding-left: 10px;
}
/* ============================================================
   编辑器：包含话题选择器的 section 提升层级
   ------------------------------------------------------------
   三栏布局给 .editor-section 加了 backdrop-filter，
   会创建 stacking context。话题下拉框的 z-index: 60 只能
   在本 section 内生效，会被后面的 section 盖住。
   这里让整个 section 抬高，问题解决。
   ============================================================ */
.tea-col-mid .editor-section:has(.topic-selector) {
    position: relative;
    z-index: 10;
}