/* ========================================
   圈子页面 - 小红书风格瀑布流布局
   不规则网格、自适应流式排版、错落有致
   ======================================== */

:root {
    --zx-c-ink: #1a1a1a;
    --zx-c-muted: #555;
    --zx-c-subtle: #999;
    --zx-c-bg: #f5f5f7;
    --zx-c-card: #fff;
    --zx-c-border: rgba(0, 0, 0, 0.06);
    --zx-c-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --zx-c-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --zx-c-radius: 12px;
    --zx-c-radius-sm: 8px;
    --zx-c-primary: #2563eb;
    --zx-c-default-thumb: '';
    --zx-c-column-count: 4;
    --zx-c-column-gap: 14px;
}

/* ========================================
   全局布局重置 - 打破父主题限制
   ======================================== */

body.archive .site-content,
body.archive #content,
body.archive .content-wrapper,
.archive .site-content,
.archive #content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.post-type-archive-circle,
body.archive.taxonomy-circle_cat {
    background: var(--zx-c-bg) !important;
}

/* ========================================
   外层容器
   ======================================== */

.zx-circle-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 60px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 顶部导航栏 */
.zx-circle-topbar {
    display: flex;
    align-items: center;
    height: 52px;
    border-bottom: 1px solid var(--zx-c-border);
    margin: 0 -24px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 9;
}

.site-header,
#masthead,
.b2-header-wrap,
header[role="banner"] {
    position: relative;
    z-index: 2000;
}

.header-menu-wrap,
.nav-links-wrap,
.b2-header-right,
.site-header .sub-menu,
.site-header .children,
.header-user-mr-box,
.header-user,
.login-button,
.top-user-info {
    position: relative;
    z-index: 2050;
}

#login-box,
.login-box,
.login-form-box,
.login-form-modal {
    z-index: 10050 !important;
}

.zx-circle-topbar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--zx-c-ink);
}

/* ========================================
   左右布局
   ======================================== */

.zx-circle-layout {
    display: flex;
    gap: 20px;
    padding-top: 16px;
}

/* 左侧边栏 - 一体化展示，取消滚动限制 */
.zx-circle-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 68px;
    align-self: flex-start;
    max-height: none;
    overflow-y: visible;
    scrollbar-width: none;
}

.zx-circle-sidebar::-webkit-scrollbar { display: none; }

/* 右侧主内容 */
.zx-circle-main {
    flex: 1;
    min-width: 0;
}

/* ========================================
   用户面板
   ======================================== */

.zx-circle-user-panel {
    background: var(--zx-c-card);
    border-radius: var(--zx-c-radius);
    box-shadow: var(--zx-c-shadow);
    overflow: hidden;
}

.zx-panel-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px 14px;
}

.zx-panel-avatar-link {
    display: block;
    flex-shrink: 0;
}

.zx-panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.zx-panel-user-name a {
    font-size: 15px;
    font-weight: 600;
    color: var(--zx-c-ink);
    text-decoration: none;
}

.zx-panel-user-name a:hover {
    color: var(--zx-c-primary);
}

.zx-panel-user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--zx-c-border);
    border-bottom: 1px solid var(--zx-c-border);
}

.zx-panel-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px;
    text-decoration: none;
    transition: background 0.15s;
}

.zx-panel-stat:hover {
    background: rgba(0, 0, 0, 0.02);
}

.zx-panel-stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--zx-c-ink);
    line-height: 1.2;
}

.zx-panel-stat-label {
    font-size: 11px;
    color: var(--zx-c-subtle);
    margin-top: 2px;
}

.zx-panel-links {
    padding: 8px;
}

/* 发布按钮 */
.zx-panel-publish {
    padding: 12px 16px;
    border-bottom: 1px solid var(--zx-c-border);
}

.zx-panel-publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--zx-c-primary);
    color: #fff;
    border: none;
    border-radius: var(--zx-c-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.zx-panel-publish-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.zx-panel-publish-btn svg {
    flex-shrink: 0;
}

.zx-panel-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--zx-c-radius-sm);
    font-size: 13px;
    color: var(--zx-c-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.zx-panel-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--zx-c-ink);
}

.zx-panel-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* 未登录状态 */
.zx-panel-guest {
    padding: 28px 20px;
    text-align: center;
}

.zx-panel-guest-icon {
    color: var(--zx-c-subtle);
    opacity: 0.4;
    margin-bottom: 12px;
}

.zx-panel-guest-hint {
    font-size: 13px;
    color: var(--zx-c-subtle);
    margin-bottom: 16px;
    line-height: 1.5;
}

.zx-panel-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    background: var(--zx-c-primary);
    color: #fff;
    border: none;
    border-radius: var(--zx-c-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.zx-panel-login-btn:hover {
    opacity: 0.9;
}

/* 圈子分类导航 */
.zx-panel-circles {
    border-top: 1px solid var(--zx-c-border);
    padding: 14px 0 8px;
}

.zx-panel-section-title {
    padding: 0 16px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--zx-c-subtle);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zx-panel-circle-list {
    padding: 0 8px;
}

.zx-panel-circle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--zx-c-radius-sm);
    font-size: 13px;
    color: var(--zx-c-muted);
    text-decoration: none;
    transition: all 0.15s;
}

.zx-panel-circle-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--zx-c-ink);
}

.zx-panel-circle-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--zx-c-primary);
    font-weight: 500;
}

.zx-panel-circle-count {
    font-size: 11px;
    color: var(--zx-c-subtle);
    background: rgba(0, 0, 0, 0.04);
    padding: 1px 7px;
    border-radius: 999px;
}

.zx-circle-widgets {
    margin-top: 16px;
}

.zx-circle-widgets .widget {
    background: var(--zx-c-card);
    border-radius: var(--zx-c-radius);
    box-shadow: var(--zx-c-shadow);
    padding: 16px;
    margin-bottom: 12px;
}

/* ========================================
   主内容区 - 打破父主题布局约束
   ======================================== */

.zx-circle-main .b2-single-content,
.zx-circle-main .b2-single-content.wrapper,
.zx-circle-main .wrapper {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.zx-circle-main #primary-home,
.zx-circle-main .content-area {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: 1 1 100% !important;
}

/* 隐藏父主题侧边栏 */
.zx-circle-main .widget-area,
.zx-circle-main .sidebar,
.zx-circle-main #secondary,
.zx-circle-main .circle-left-sidebar,
.zx-circle-main .b2-single-content > aside,
.zx-circle-main .b2-single-content > .widget-area {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 0 !important;
    position: absolute !important;
}

.zx-circle-main .circle-top {
    display: none;
}

.zx-circle-main .circle-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.zx-circle-main .my-circle-list {
    display: none;
}

.zx-circle-main .topic-type-menu {
    display: none;
}

.zx-circle-main .circle-list {
    display: none;
}

.zx-circle-main .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

/* ========================================
   瀑布流布局 - 小红书风格核心
   使用 CSS columns 实现不规则网格
   ======================================== */

.zx-circle-main .circle-topic-list {
    columns: var(--zx-c-column-count);
    column-gap: var(--zx-c-column-gap);
    padding: 0;
}

/* 话题项 → 卡片样式 */
.zx-circle-main .circle-topic-item {
    break-inside: avoid;
    margin-bottom: var(--zx-c-column-gap);
    background: var(--zx-c-card);
    border-radius: var(--zx-c-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--zx-c-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 0 !important;
    border: none !important;
    display: inline-block;
    width: 100%;
}

/* 卡片微妙变化 - 增加视觉丰富度 */
.zx-circle-main .circle-topic-item:nth-child(5n+1) {
    border-radius: 14px;
}

.zx-circle-main .circle-topic-item:nth-child(5n+2) {
    border-radius: 10px;
}

.zx-circle-main .circle-topic-item:nth-child(5n+3) {
    border-radius: 12px;
}

.zx-circle-main .circle-topic-item:nth-child(7n+4) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.zx-circle-main .circle-topic-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--zx-c-shadow-hover);
}

/* 隐藏置顶样式 */
.zx-circle-main .topic-sticky {
    background: transparent;
    padding: 0;
    margin: 0;
}

.zx-circle-main .topic-sticky .topic-sticky-info {
    padding: 0;
}

/* ========================================
   卡片内容布局 - 图片优先
   ======================================== */

.zx-circle-main .circle-topic-item .topic-header {
    display: none;
}

.zx-circle-main .circle-topic-item .topic-content {
    margin: 0;
    padding: 0;
}

/* 标题 - 在图片下方显示，居中展示 */
.zx-circle-main .circle-topic-item .topic-content h2 {
    margin: 0;
    padding: 10px 12px 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--zx-c-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.zx-circle-main .circle-topic-item .topic-content h2 a {
    color: inherit;
    text-decoration: none;
}

/* 正文预览 - 限制3行，超出省略号截断 */
.zx-circle-main .circle-topic-item .topic-content-text {
    display: -webkit-box;
    padding: 2px 12px 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--zx-c-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    word-break: break-word;
}

.zx-circle-main .circle-topic-item .topic-ask-box {
    display: none;
}

/* 文件帖子 - 专属布局（对齐父主题 .file-list-item 结构） */
.zx-circle-main .circle-topic-item .topic-file-box {
    padding: 8px 12px;
    margin: 4px 10px 8px;
}

.zx-circle-main .circle-topic-item .topic-file-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zx-circle-main .circle-topic-item .topic-file-box li {
    margin: 0;
}

.zx-circle-main .circle-topic-item .topic-file-box .file-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    position: relative;
    transition: background 0.15s;
}

.zx-circle-main .circle-topic-item .topic-file-box .file-list-item:hover {
    background: #f0f1f3;
}

.zx-circle-main .circle-topic-item .topic-file-box .file-list-item .link-block {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.zx-circle-main .circle-topic-item .topic-file-box .file-list-item .file-mime {
    display: inline-block;
    padding: 2px 6px;
    background: var(--zx-c-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.zx-circle-main .circle-topic-item .topic-file-box .file-list-item .file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--zx-c-ink);
}

.zx-circle-main .circle-topic-item .topic-file-box .file-list-item .file-size {
    font-size: 11px;
    color: var(--zx-c-subtle);
    flex-shrink: 0;
}

/* ========================================
   隐藏内容 - 通用卡片底部展示
   ======================================== */

.zx-circle-main .circle-topic-item .topic-read-role {
    margin-top: 4px;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-guess-box {
    margin: 4px 10px 8px;
    font-size: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-vote-desc {
    font-size: 11px;
    color: var(--zx-c-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-vote-desc i {
    font-size: 13px;
    opacity: 0.6;
}

.zx-circle-main .circle-topic-item .topic-read-role .not-allow-role {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-read-number {
    font-size: 11px;
    color: var(--zx-c-subtle);
    line-height: 1.5;
}

/* ========================================
   等级限制隐藏内容 - 精美卡片样式
   ======================================== */

/* 等级限制：渐变背景容器 */
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-guess-box.allow-read-type {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf2e9 50%, #fef5f0 100%);
    border: 1px solid rgba(243, 156, 18, 0.15);
    padding: 14px 14px 12px;
}

/* 等级限制：标题行 */
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-vote-desc {
    color: #b8860b;
    font-weight: 500;
    margin-bottom: 10px;
}

.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-vote-desc i {
    color: #d4a017;
    opacity: 1;
    font-size: 14px;
}

/* 等级限制：等级标签列表 */
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-nub {
    font-size: 13px;
    font-weight: 600;
    color: var(--zx-c-ink);
    display: flex;
    align-items: center;
    gap: 4px;
}

.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-nub ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-nub ul li {
    margin: 0;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #8b6914;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(212, 160, 23, 0.1);
    transition: all 0.2s ease;
}

.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-nub ul li:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.2);
}

/* 等级限制：按钮组 */
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 积分升级按钮 - 主色调 */
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button a:first-child,
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button button:first-child {
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button a:first-child:hover,
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

/* 变更会员按钮 - 描边风格 */
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button a:last-child,
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button button:last-child {
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid rgba(212, 160, 23, 0.4);
    background: rgba(255, 255, 255, 0.8);
    color: #8b6914;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button a:last-child:hover,
.zx-circle-main .circle-topic-item .topic-read-role.lv .topic-read-pay-button button:last-child:hover {
    background: rgba(212, 160, 23, 0.1);
    border-color: rgba(212, 160, 23, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.15);
}

/* ========================================
   付费/积分隐藏内容 - 卡片样式
   ======================================== */

/* 付费阅读：红色渐变背景 */
.zx-circle-main .circle-topic-item .topic-read-role.money .topic-guess-box,
.zx-circle-main .circle-topic-item .topic-read-role.credit .topic-guess-box {
    background: linear-gradient(135deg, #fef5f5 0%, #fde8e8 100%);
    border: 1px solid rgba(231, 76, 60, 0.12);
    padding: 14px 14px 12px;
}

.zx-circle-main .circle-topic-item .topic-read-role.money .topic-vote-desc,
.zx-circle-main .circle-topic-item .topic-read-role.credit .topic-vote-desc {
    color: #c0392b;
    font-weight: 500;
}

.zx-circle-main .circle-topic-item .topic-read-role.money .topic-vote-desc i,
.zx-circle-main .circle-topic-item .topic-read-role.credit .topic-vote-desc i {
    color: #e74c3c;
    opacity: 1;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-read-nub {
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-read-nub i {
    font-size: 13px;
    opacity: 0.8;
}

/* 付费按钮 */
.zx-circle-main .circle-topic-item .topic-read-role .topic-read-pay-button {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-read-pay-button button,
.zx-circle-main .circle-topic-item .topic-read-role .topic-read-pay-button a {
    padding: 7px 18px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
}

.zx-circle-main .circle-topic-item .topic-read-role .topic-read-pay-button button:hover,
.zx-circle-main .circle-topic-item .topic-read-role .topic-read-pay-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

/* ========================================
   登录/评论/加圈隐藏内容 - 卡片样式
   ======================================== */

/* 登录阅读 */
.zx-circle-main .circle-topic-item .topic-read-role.login .topic-guess-box.allow-read-type {
    background: linear-gradient(135deg, #eef2ff 0%, #e8edff 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    padding: 14px 14px 12px;
}

.zx-circle-main .circle-topic-item .topic-read-role.login .topic-vote-desc {
    color: #1e40af;
    font-weight: 500;
}

.zx-circle-main .circle-topic-item .topic-read-role.login .topic-vote-desc i {
    color: #2563eb;
    opacity: 1;
}

/* 评论阅读 */
.zx-circle-main .circle-topic-item .topic-read-role.comment .topic-guess-box.allow-read-type {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(39, 174, 96, 0.12);
    padding: 14px 14px 12px;
}

.zx-circle-main .circle-topic-item .topic-read-role.comment .topic-vote-desc {
    color: #166534;
    font-weight: 500;
}

.zx-circle-main .circle-topic-item .topic-read-role.comment .topic-vote-desc i {
    color: #27ae60;
    opacity: 1;
}

/* 加圈阅读 */
.zx-circle-main .circle-topic-item .topic-read-role.current_circle_read .topic-guess-box.allow-read-type {
    background: linear-gradient(135deg, #fef9f0 0%, #fdf2e9 100%);
    border: 1px solid rgba(243, 156, 18, 0.12);
    padding: 14px 14px 12px;
}

.zx-circle-main .circle-topic-item .topic-read-role.current_circle_read .topic-vote-desc {
    color: #92400e;
    font-weight: 500;
}

.zx-circle-main .circle-topic-item .topic-read-role.current_circle_read .topic-vote-desc i {
    color: #f39c12;
    opacity: 1;
}

/* 登录/评论/加圈 - 按钮样式 */
.zx-circle-main .circle-topic-item .topic-read-role.login .topic-read-pay-button button,
.zx-circle-main .circle-topic-item .topic-read-role.comment .topic-read-pay-button button,
.zx-circle-main .circle-topic-item .topic-read-role.current_circle_read .topic-read-pay-button button {
    padding: 7px 18px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

/* 登录按钮 - 蓝色 */
.zx-circle-main .circle-topic-item .topic-read-role.login .topic-read-pay-button button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.zx-circle-main .circle-topic-item .topic-read-role.login .topic-read-pay-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* 评论按钮 - 绿色 */
.zx-circle-main .circle-topic-item .topic-read-role.comment .topic-read-pay-button button {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.25);
}

.zx-circle-main .circle-topic-item .topic-read-role.comment .topic-read-pay-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}

/* 加圈按钮 - 橙色 */
.zx-circle-main .circle-topic-item .topic-read-role.current_circle_read .topic-read-pay-button button {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.25);
}

.zx-circle-main .circle-topic-item .topic-read-role.current_circle_read .topic-read-pay-button button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.35);
}

/* 猜猜问答 - 极简素雅卡片样式 */

/* 容器 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px 10px 8px;
    font-size: 12px;
}

/* 标题行 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .topic-vote-desc {
    font-size: 11px;
    color: var(--zx-c-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--zx-c-border);
    display: flex;
    align-items: center;
    gap: 4px;
}

.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .topic-vote-desc i {
    opacity: 0.5;
}

/* 选项列表 - 去除父主题彩色渐变，统一素雅风格 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 选项基础样式 - 覆盖父主题所有 nth-child 渐变 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li,
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li.color-button,
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:nth-child(7n+2),
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:nth-child(7n+3),
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:nth-child(7n+4),
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:nth-child(7n+5),
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:nth-child(7n+6),
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:nth-child(7n+7) {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    font-size: 12px;
    color: var(--zx-c-ink);
    background: #fff;
    background-image: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

/* 选项悬停 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li:hover,
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li.color-button:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: #fafafa;
}

/* 选中状态 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li.picked,
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type ul li.color-button.picked {
    border-color: var(--zx-c-primary);
    background: rgba(37, 99, 235, 0.04);
    color: var(--zx-c-primary);
    font-weight: 500;
    box-shadow: none;
}

/* 底部操作区 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .vote-resout {
    margin-top: 8px;
    text-align: right;
}

.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .vote-resout button {
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--zx-c-primary);
    color: var(--zx-c-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .vote-resout button:hover:not(:disabled) {
    background: var(--zx-c-primary);
    color: #fff;
}

.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .vote-resout button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--zx-c-border);
    color: var(--zx-c-subtle);
}

/* 猜错提示 */
.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .vote-resout p {
    font-size: 11px;
    color: var(--zx-c-muted);
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

.zx-circle-main .circle-topic-item .topic-guess-box.guess-type .vote-resout p b {
    font-weight: 600;
    color: #c0392b;
}

/* 猜对答案提示 */
.zx-circle-main .circle-topic-item .guess-right-tips {
    padding: 8px 12px;
    margin: 4px 10px 8px;
    background: rgba(39, 174, 96, 0.06);
    border: 1px solid rgba(39, 174, 96, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #27ae60;
}

.zx-circle-main .circle-topic-item .guess-right-tips p {
    margin: 0;
    line-height: 1.5;
}

.zx-circle-main .circle-topic-item .topic-card-box {
    display: none;
}

/* 视频帖子 - 确保标题和内容正常显示 */
.zx-circle-main .circle-topic-item.has-video .topic-content {
    display: block;
}

.zx-circle-main .circle-topic-item.has-video .topic-content h2 {
    padding: 10px 12px 4px;
    text-align: left;
}

.zx-circle-main .circle-topic-item.has-video .topic-content-text {
    display: -webkit-box;
    padding: 2px 12px 8px;
    text-align: left;
}

/* ========================================
   无图片帖子 - 纯白背景 + Emoji 顶部装饰
   ======================================== */

.zx-circle-main .circle-topic-item.zx-emoji-bg {
    position: relative;
    min-height: 160px;
    background: #fff;
    overflow: hidden;
}

.zx-circle-main .circle-topic-item.zx-emoji-bg .zx-emoji-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.zx-circle-main .circle-topic-item.zx-emoji-bg .zx-emoji-canvas span {
    font-size: 28px;
    line-height: 1;
    user-select: none;
    transform: rotate(var(--emoji-rotate, 0deg));
}

.zx-circle-main .circle-topic-item.zx-emoji-bg .topic-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
}

.zx-circle-main .circle-topic-item.zx-emoji-bg .topic-content h2 {
    padding: 10px 14px 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--zx-c-ink);
    -webkit-line-clamp: 2;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.zx-circle-main .circle-topic-item.zx-emoji-bg .topic-content-text {
    display: block;
    padding: 0 14px 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--zx-c-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   瀑布流卡片 - 视频帖子自适应样式
   ======================================== */

.zx-circle-main .circle-topic-item .topic-video-box {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.zx-circle-main .circle-topic-item .topic-video-box ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zx-circle-main .circle-topic-item .topic-video-box li {
    margin-top: 0;
    width: 100%;
}

/* 视频容器 - 使用 padding-top 百分比实现响应式比例 */
.zx-circle-main .circle-topic-item .topic-video-box li > div {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    max-width: 100%;
    height: 0;
}

/* 视频元素 - 绝对定位填充容器 */
.zx-circle-main .circle-topic-item .topic-video-box li > div video {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    background-color: #f5f6f7;
    object-fit: cover;
}

/* 视频封面图 - 模糊背景效果 */
.zx-circle-main .circle-topic-item .topic-video-box li > div img.video-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    filter: blur(20px);
    z-index: 1;
    object-fit: cover;
}

/* 视频播放按钮遮罩 */
.zx-circle-main .circle-topic-item .topic-video-play {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
}

.zx-circle-main .circle-topic-item .topic-video-play.hidden {
    z-index: -1;
}

/* 播放按钮图标 - 使用 icon font */
.zx-circle-main .circle-topic-item .topic-video-play i,
.zx-circle-main .circle-topic-item .topic-video-play .play-button {
    font-size: 50px;
    color: #fff;
    text-shadow: 0 0 27px rgba(0, 0, 0, 0.43);
    opacity: 0.7;
    transition: opacity 0.2s ease-out;
}

.zx-circle-main .circle-topic-item .topic-video-play:hover .play-button {
    opacity: 1;
}

.zx-circle-main .circle-topic-item .play-button.hidden {
    display: none;
}

/* 视频比例适配 - 9:16 竖屏视频 */
.zx-circle-main .circle-topic-item .topic-video-box li > div[data-ratio="9-16"],
.zx-circle-main .circle-topic-item .topic-video-box li > div[style*="56.25"] {
    padding-top: 177.78%; /* 16:9 反过来 9:16 = 16/9 * 100 */
}

/* 视频比例适配 - 16:9 横屏视频 */
.zx-circle-main .circle-topic-item .topic-video-box li > div[data-ratio="16-9"],
.zx-circle-main .circle-topic-item .topic-video-box li > div[style*="56.25"] {
    padding-top: 56.25%; /* 9/16 * 100 = 56.25% */
}

/* 其他常见视频比例 */
.zx-circle-main .circle-topic-item .topic-video-box li > div[data-ratio="4-3"] {
    padding-top: 75%; /* 3/4 * 100 */
}

.zx-circle-main .circle-topic-item .topic-video-box li > div[data-ratio="1-1"] {
    padding-top: 100%; /* 1:1 正方形 */
}

/* ========================================
   瀑布流卡片 - 精简投票样式
   ======================================== */

.zx-circle-main .circle-topic-item .topic-vote {
    margin: 8px 0 0;
    font-size: 12px;
}

.zx-circle-main .circle-topic-item .topic-vote-box {
    background: var(--zx-c-card-bg, #f8f8f8);
    border-radius: 8px;
    padding: 8px 10px;
    align-self: stretch;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.zx-circle-main .circle-topic-item .topic-vote-desc {
    font-size: 11px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zx-circle-main .circle-topic-item .topic-vote-desc b {
    font-size: 11px;
}

.zx-circle-main .circle-topic-item .topic-vote-desc b i {
    font-style: normal;
    font-size: 10px;
}

.zx-circle-main .circle-topic-item .topic-vote-desc span {
    font-size: 11px;
    color: var(--zx-c-subtle, #999);
}

.zx-circle-main .circle-topic-item .topic-vote-desc span b {
    font-size: 11px;
}

/* 投票选项列表 - 样式隔离，防止被父级居中影响 */
.zx-circle-main .circle-topic-item .topic-vote-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
    align-items: stretch;
}

.zx-circle-main .circle-topic-item .topic-vote-box ul li {
    margin: 0;
}

.zx-circle-main .circle-topic-item .topic-vote-box ul li label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

.zx-circle-main .circle-topic-item .topic-vote-box ul li label:hover {
    background: var(--zx-c-hover, rgba(0,0,0,0.04));
}

.zx-circle-main .circle-topic-item .topic-vote-box ul li label input[type="radio"],
.zx-circle-main .circle-topic-item .topic-vote-box ul li label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--zx-c-primary, #ff6b81);
}

.zx-circle-main .circle-topic-item .vote-bar {
    flex: 1;
    font-size: 12px;
    line-height: 1.4;
}

/* 已投票状态 */
.zx-circle-main .circle-topic-item .topic-vote-radio-picked {
    padding: 4px 0;
}

.zx-circle-main .circle-topic-item .topic-vote-radio-picked > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 3px 0;
}

.zx-circle-main .circle-topic-item .topic-vote-radio-picked > div span {
    font-size: 12px;
}

.zx-circle-main .circle-topic-item .topic-vote-radio-picked > div span b {
    font-size: 11px;
    font-weight: normal;
    color: var(--zx-c-subtle, #999);
}

.zx-circle-main .circle-topic-item .topic-vote-radio-picked > div + div {
    height: 4px;
    background: var(--zx-c-border, #eee);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}

.zx-circle-main .circle-topic-item .topic-vote-radio-picked > div + div span {
    display: block;
    height: 100%;
    background: var(--zx-c-primary, #ff6b81);
    border-radius: 2px;
    transition: width 0.3s;
}

/* 投票按钮 */
.zx-circle-main .circle-topic-item .vote-resout {
    margin-top: 6px;
    text-align: right;
}

.zx-circle-main .circle-topic-item .vote-resout button {
    font-size: 11px;
    padding: 3px 12px;
    border-radius: 4px;
    border: 1px solid var(--zx-c-primary, #ff6b81);
    color: var(--zx-c-primary, #ff6b81);
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.zx-circle-main .circle-topic-item .vote-resout button:hover:not(:disabled) {
    background: var(--zx-c-primary, #ff6b81);
    color: #fff;
}

.zx-circle-main .circle-topic-item .vote-resout button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* PK 投票样式 */
.zx-circle-main .circle-topic-item .topic-vote-pk {
    background: var(--zx-c-card-bg, #f8f8f8);
    border-radius: 8px;
    padding: 8px 10px;
}

.zx-circle-main .circle-topic-item .vote-pk-box {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 6px;
}

.zx-circle-main .circle-topic-item .vote-pk-box .vote-pk {
    flex: 1;
}

.zx-circle-main .circle-topic-item .vote-pk-box .vote-pk p {
    margin: 0;
    padding: 6px 8px;
    text-align: center;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid var(--zx-c-border, #ddd);
    background: var(--zx-c-card-bg, #fff);
}

.zx-circle-main .circle-topic-item .vote-pk-box .vote-pk p:hover {
    border-color: var(--zx-c-primary, #ff6b81);
    color: var(--zx-c-primary, #ff6b81);
}

.zx-circle-main .circle-topic-item .vote-pk-left p {
    color: #67c23a;
    border-color: #67c23a;
}

.zx-circle-main .circle-topic-item .vote-pk-left p:hover {
    background: #67c23a;
    color: #fff;
}

.zx-circle-main .circle-topic-item .vote-pk-right p {
    color: #409eff;
    border-color: #409eff;
}

.zx-circle-main .circle-topic-item .vote-pk-right p:hover {
    background: #409eff;
    color: #fff;
}

/* PK 已投票结果 */
.zx-circle-main .circle-topic-item .vote-pk-res-box {
    margin-top: 6px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-head > div {
    display: flex;
    flex-direction: column;
    font-size: 11px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-head > div p {
    margin: 0;
    font-size: 11px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-head > div p b {
    font-size: 12px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-footer {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    gap: 2px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-footer .vote-pk {
    height: 100%;
    border-radius: 3px;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-footer .vote-pk-left {
    background: #67c23a;
}

.zx-circle-main .circle-topic-item .topic-pk-resout-footer .vote-pk-right {
    background: #409eff;
}

.zx-circle-main .circle-topic-item .vote-pk-desc {
    font-size: 10px;
    color: var(--zx-c-subtle, #999);
    margin-top: 4px;
    text-align: center;
}

/* ========================================
   图片展示 - 瀑布流核心
   小红书风格：卡片高度由内容决定，图片保持原始比例
   ======================================== */

.zx-circle-main .topic-image-box {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.zx-circle-main .topic-image-box ul {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.zx-circle-main .topic-image-box li {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    overflow: hidden;
    position: relative !important;
}

/* 强制覆盖父主题 Vue 给单图 li 设置的内联 width（:style="'width:'+img.thumb_w+'px'"） */
.zx-circle-main .topic-image-box ul.img-list-1 li {
    width: 100% !important;
    max-width: none !important;
}

/* 单图使用父主题内联 padding-top 比例，JS 会限制到 16:9 ~ 3:4 */
.zx-circle-main .topic-image-box ul.img-list-1 li > div.b2-radius {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    overflow: hidden !important;
}

.zx-circle-main .topic-image-box ul.img-list-1 li > div.b2-radius > div {
    position: static !important;
    display: block !important;
}

.zx-circle-main .topic-image-box ul.img-list-1 img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}

.zx-circle-main .topic-image-box ul.img-list-more {
    display: grid !important;
    gap: 2px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.zx-circle-main .topic-image-box ul.img-list-more.zx-grid-2,
.zx-circle-main .topic-image-box ul.img-list-more:has(li:nth-child(2)):not(:has(li:nth-child(3))) {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
    aspect-ratio: 2 / 1;
}

.zx-circle-main .topic-image-box ul.img-list-more.zx-grid-3,
.zx-circle-main .topic-image-box ul.img-list-more:has(li:nth-child(3)) {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: row;
    aspect-ratio: 5 / 3;
}

.zx-circle-main .topic-image-box ul.img-list-more.zx-grid-3 li:first-child,
.zx-circle-main .topic-image-box ul.img-list-more:has(li:nth-child(3)) li:first-child {
    grid-row: span 2;
}

.zx-circle-main .topic-image-box ul.img-list-more li {
    width: auto !important;
}

.zx-circle-main .topic-image-box ul.img-list-more li > div.b2-radius,
.zx-circle-main .topic-image-box ul.img-list-more li > div.b2-radius > div {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
    overflow: hidden !important;
}

.zx-circle-main .topic-image-box ul.img-list-more img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    position: static !important;
    transition: transform 0.3s ease;
}

.zx-circle-main .topic-image-box img.lazy,
.zx-circle-main .topic-image-box img[data-src],
.zx-circle-main .topic-image-box img[data-original] {
    min-height: 80px;
    background: #f0f0f0;
}

.zx-circle-main .topic-image-box a {
    text-decoration: none !important;
    color: inherit !important;
}

.zx-circle-main .circle-topic-item:hover .topic-image-box img {
    transform: scale(1.03);
}

/* 图片数量标记 */
.zx-circle-main .topic-image-box .image-number {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* ========================================
   无图片帖子 - 白色背景 + Emoji 顶部装饰
   ======================================== */

.zx-circle-main .circle-topic-item:not(:has(.topic-image-box)),
.zx-circle-main .circle-topic-item.zx-no-image {
    position: relative;
    min-height: 160px;
    background: #fff;
    overflow: hidden;
}

.zx-circle-main .circle-topic-item:not(:has(.topic-image-box)) .zx-emoji-canvas,
.zx-circle-main .circle-topic-item.zx-no-image .zx-emoji-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.zx-circle-main .circle-topic-item:not(:has(.topic-image-box)) .zx-emoji-canvas span,
.zx-circle-main .circle-topic-item.zx-no-image .zx-emoji-canvas span {
    font-size: 24px;
    line-height: 1;
    user-select: none;
    transform: rotate(var(--emoji-rotate, 0deg));
}

.zx-circle-main .circle-topic-item:not(:has(.topic-image-box)) .topic-content,
.zx-circle-main .circle-topic-item.zx-no-image .topic-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.zx-circle-main .circle-topic-item:not(:has(.topic-image-box)) .topic-content h2,
.zx-circle-main .circle-topic-item.zx-no-image .topic-content h2 {
    padding: 10px 14px 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--zx-c-ink);
    -webkit-line-clamp: 2;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.zx-circle-main .circle-topic-item:not(:has(.topic-image-box)) .topic-content-text,
.zx-circle-main .circle-topic-item.zx-no-image .topic-content-text,
.zx-circle-main .circle-topic-item.zx-emoji-bg .topic-content-text {
    display: -webkit-box;
    padding: 0 14px 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--zx-c-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   卡片底部 - 作者和互动信息
   ======================================== */

.zx-circle-main .circle-topic-item .topic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 10px;
    border-top: none;
}

.zx-circle-main .circle-topic-item .topic-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* 三点更多菜单 - 卡片内隐藏，功能迁移至弹窗操作栏 */
.zx-circle-main .circle-topic-item .topic-meta-more-box {
    display: none !important;
}


.zx-circle-main .circle-topic-item .topic-footer-right {
    display: none;
}

.zx-circle-main .circle-topic-item .topic-footer button {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--zx-c-subtle);
    font-size: 12px;
    cursor: pointer;
}

.zx-circle-main .circle-topic-item .topic-footer button.b2-color,
.zx-circle-main .circle-topic-item .topic-footer button.picked {
    color: #e74c3c;
}

.zx-circle-main .circle-topic-item .topic-footer .topic-date {
    font-size: 11px;
    color: var(--zx-c-subtle);
}

/* 骨架屏 */
.zx-circle-main .gujia .bg {
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: zx-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes zx-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 加载更多 */
.zx-circle-main .topic-loading-more-button {
    column-span: all;
    padding: 24px;
    text-align: center;
    color: var(--zx-c-subtle);
    font-size: 13px;
}

/* 空状态 */
.zx-circle-main .topic-list-empty {
    column-span: all;
    padding: 80px 20px;
    text-align: center;
    color: var(--zx-c-subtle);
}

.zx-circle-main .circle-topic-item .topic-comments {
    display: none;
}

/* 加入圈子弹窗 */
.zx-circle-main .join-circle-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.zx-circle-main .join-circle-pay-money {
    width: 90%;
    max-width: 400px;
    padding: 32px;
    background: var(--zx-c-card);
    border-radius: var(--zx-c-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* ========================================
   评论列表样式
   ======================================== */

.zx-detail-comment-form {
    margin-bottom: 16px;
}

.zx-detail-comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--zx-c-border);
    border-radius: var(--zx-c-radius-sm);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.zx-detail-comment-form textarea:focus {
    outline: none;
    border-color: var(--zx-c-primary);
}

.zx-detail-comment-tools {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.zx-comment-submit {
    padding: 6px 18px;
    background: var(--zx-c-primary);
    color: #fff;
    border: none;
    border-radius: var(--zx-c-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.zx-comment-submit:hover { opacity: 0.9; }

.zx-comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--zx-c-border);
}

.zx-comment-item:last-child { border-bottom: none; }

.zx-comment-avatar {
    flex-shrink: 0;
}

.zx-comment-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.zx-comment-body {
    flex: 1;
    min-width: 0;
}

.zx-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.zx-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--zx-c-ink);
    text-decoration: none;
}

.zx-comment-name:hover { color: var(--zx-c-primary); }

.zx-comment-date {
    font-size: 11px;
    color: var(--zx-c-subtle);
    font-variant-numeric: tabular-nums;
    unicode-bidi: plaintext;
}

.zx-comment-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--zx-c-muted);
    margin: 0;
    word-break: break-word;
}

/* ========================================
   Toast 提示
   ======================================== */

@keyframes zxToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.zx-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 99999;
    pointer-events: none;
    animation: zxToastIn 0.3s ease;
}

/* ========================================
   话题详情 - 居中弹窗模式
   ======================================== */

.zx-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.zx-detail-panel.show {
    opacity: 1;
    visibility: visible;
}

.zx-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.zx-detail-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: calc(100vh - 48px);
    background: var(--zx-c-card);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.zx-detail-panel.show .zx-detail-content {
    transform: scale(1);
    opacity: 1;
}

.zx-detail-close {
    position: absolute;
    top: 50%;
    right: calc(50% - 580px);
    z-index: 10000;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    transform: translateY(-50%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.zx-detail-close:hover {
    background: rgba(255, 255, 255, 1);
    color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.zx-detail-close svg {
    width: 24px;
    height: 24px;
}

/* 移动端关闭按钮回到内部 */
@media (max-width: 768px) {
    .zx-detail-close {
        top: 12px;
        right: 12px;
        transform: none;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        width: 44px;
        height: 44px;
        box-shadow: none;
    }
    .zx-detail-close:hover {
        background: rgba(0, 0, 0, 0.6);
        transform: none;
    }
    .zx-detail-close svg {
        width: 24px;
        height: 24px;
    }
}

.zx-detail-inner {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* 左侧内容区 - 自适应布局 */
.zx-detail-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #f5f5f7;
    padding: 20px;
    overflow-y: auto;
    text-align: center;
}

/* 视频帖子详情 - 左侧视频自适应居中 */
.zx-detail-left .zx-detail-video-wrap {
    width: 100%;
    max-width: 560px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.zx-detail-left .zx-detail-video-wrap video {
    width: 100%;
    border-radius: var(--zx-c-radius-sm);
    background: #000;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* 视频帖子详情 - 标题和正文在视频下方 */
.zx-detail-left .zx-detail-video-title {
    margin-top: 16px;
    padding: 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--zx-c-ink);
    word-break: break-word;
    text-align: center;
}

.zx-detail-left .zx-detail-video-body {
    padding: 8px 4px 16px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--zx-c-muted);
    word-break: break-word;
    text-align: center;
}

/* 无图帖子左侧 - 白底占满，自适应内容高度 */
.zx-detail-left.zx-detail-left-empty {
    background: #fff;
    justify-content: flex-start;
    align-items: stretch;
}

.zx-detail-main-img {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.zx-detail-main-img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 65vh;
    display: block;
    object-fit: contain;
    border-radius: var(--zx-c-radius-sm);
}

.zx-detail-img-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.zx-detail-img-nav button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.zx-detail-img-nav button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.zx-detail-img-nav button:disabled {
    opacity: 0.3;
}

.zx-detail-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.zx-detail-thumbs::-webkit-scrollbar { display: none; }

.zx-detail-thumbs img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.4;
    border: 2px solid transparent;
    transition: opacity 0.15s;
}

.zx-detail-thumbs img.active {
    opacity: 1;
    border-color: #fff;
}

.zx-detail-thumbs img:hover { opacity: 0.7; }

/* 有图帖子：标题在媒体下方 */
.zx-detail-left > .zx-detail-text-title {
    margin-top: 16px;
    padding: 0 4px;
}

.zx-detail-left > .zx-detail-text-body {
    padding: 0 4px;
    margin-bottom: 8px;
}

/* 无图帖子详情 - 白底满版，自适应高度 */
.zx-detail-text-panel {
    position: relative;
    margin: -20px;
    padding: 24px;
    width: calc(100% + 40px);
    min-height: calc(100% + 40px);
    height: auto;
    background: #fff;
    overflow-x: hidden;
    box-sizing: border-box;
}

.zx-detail-text-panel-empty {
    position: relative;
    margin: -20px;
    padding: 30px 28px;
    width: calc(100% + 40px);
    min-height: calc(100% + 40px);
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    touch-action: pan-y;
}

.zx-detail-emoji-cloud {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 8px;
    pointer-events: none;
    touch-action: pan-y;
}

.zx-detail-emoji-cloud::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), #fff 96%);
    pointer-events: none;
}

.zx-detail-emoji-cloud span {
    position: absolute;
    line-height: 1;
    opacity: 0.72;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.08));
}

/* 纯文字帖子左侧居中标题 */
.zx-detail-left-title {
    position: relative;
    z-index: 1;
    margin: -4px 0 0;
    padding: 0 16px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
    color: var(--zx-c-ink);
    word-break: break-word;
    text-align: center;
    max-width: 100%;
}

.zx-detail-text-panel-empty > .zx-detail-text-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: var(--zx-c-ink) !important;
    word-break: break-word;
    text-align: center;
}

.zx-detail-text-panel-empty > .zx-detail-text-body {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--zx-c-muted) !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.zx-detail-emoji-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.12;
}

.zx-detail-emoji-bg span {
    position: absolute;
    line-height: 1;
    user-select: none;
}

.zx-detail-text-title {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--zx-c-ink);
    word-break: break-word;
    white-space: normal;
    text-align: center;
}

.zx-detail-text-body {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--zx-c-muted);
    word-break: break-word;
    text-align: center;
}

.zx-detail-text-body img {
    max-width: 100%;
    border-radius: var(--zx-c-radius-sm);
    margin: 8px 0;
}

.zx-detail-left > .zx-detail-text-title {
    margin-top: 16px;
    padding: 0 4px;
    text-align: center;
}

.zx-detail-left > .zx-detail-text-body {
    padding: 0 4px;
    margin-bottom: 8px;
    text-align: center;
}

/* 右侧详情 */
.zx-detail-right {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--zx-c-border);
    overflow-y: auto;
}

.zx-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--zx-c-border);
}

.zx-detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.zx-detail-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.15s;
}

.zx-detail-avatar:hover { opacity: 0.85; }

.zx-detail-author-info {
    flex: 1;
    min-width: 0;
}

.zx-detail-author strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--zx-c-ink);
}

.zx-detail-author strong a {
    color: inherit;
    text-decoration: none;
}

.zx-detail-author strong a:hover {
    color: var(--zx-c-primary);
}

.zx-detail-date {
    font-size: 12px;
    color: var(--zx-c-subtle);
    font-variant-numeric: tabular-nums;
    unicode-bidi: plaintext;
}

.zx-detail-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.zx-detail-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border: 1px solid var(--zx-c-primary);
    background: transparent;
    color: var(--zx-c-primary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
}

.zx-detail-follow-btn:hover {
    background: var(--zx-c-primary);
    color: #fff;
}

.zx-detail-follow-btn.followed {
    border-color: var(--zx-c-border);
    color: var(--zx-c-subtle);
    background: transparent;
}

.zx-detail-follow-btn.followed:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.zx-detail-circle-tag {
    display: inline-flex;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--zx-c-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
}

.zx-detail-circle-tag:hover { background: rgba(0, 0, 0, 0.08); }

/* 未登录提示 */
.zx-detail-login-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    text-align: center;
}

.zx-detail-login-hint p {
    font-size: 13px;
    color: var(--zx-c-subtle);
    margin: 0;
}

.zx-detail-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 28px;
    background: var(--zx-c-primary);
    color: #fff;
    border: none;
    border-radius: var(--zx-c-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.zx-detail-login-btn:hover {
    opacity: 0.9;
}

.zx-detail-title {
    margin: 0;
    padding: 14px 18px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--zx-c-ink);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-height: none;
}

.zx-detail-body {
    padding: 10px 18px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--zx-c-muted);
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 确保详情弹窗中文字内容完整展示，不受父主题截断影响 */
.zx-detail-body * {
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
}

.zx-detail-body p,
.zx-detail-body div,
.zx-detail-body span {
    display: block;
    white-space: normal;
}

.zx-detail-body img {
    max-width: 100%;
    border-radius: var(--zx-c-radius-sm);
}

/* 阅读更多 - 长文截断 */
.zx-detail-body.zx-detail-body-clamped {
    max-height: 180px;
    overflow: hidden;
    position: relative;
}

.zx-detail-readmore {
    position: relative;
    margin-top: -32px;
    padding-top: 40px;
    text-align: center;
}

.zx-detail-readmore-fade {
    display: block;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}

.zx-detail-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--zx-c-primary);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.zx-detail-readmore-btn:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.zx-detail-actions {
    display: flex;
    gap: 18px;
    padding: 10px 18px;
    border-top: 1px solid var(--zx-c-border);
    border-bottom: 1px solid var(--zx-c-border);
    overflow: visible;
}

.zx-detail-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border: none;
    background: transparent;
    color: var(--zx-c-subtle);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--zx-c-radius-sm);
    transition: all 0.15s;
}

.zx-detail-actions button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--zx-c-ink);
}

.zx-detail-actions button.active { color: #e74c3c; }

/* 弹窗三点更多菜单 */
.zx-detail-more-wrap {
    position: relative;
    margin-left: auto;
}

.zx-action-more {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: none;
    background: transparent;
    color: var(--zx-c-subtle);
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--zx-c-radius-sm);
    transition: all 0.15s;
}

.zx-action-more:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--zx-c-ink);
}

.zx-popup-more-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10000;
    background: #fff;
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.2);
    border-radius: 10px;
    min-width: 130px;
    overflow: visible;
}

.zx-popup-more-menu.show {
    display: block;
}

.zx-popup-more-menu ul {
    padding: 6px 0;
    margin: 0;
    list-style: none;
}

.zx-popup-more-menu li {
    margin: 0;
}

.zx-popup-more-menu button,
.zx-popup-more-menu a {
    padding: 9px 16px;
    border: 0;
    background: none;
    font-size: 13px;
    color: #333;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.zx-popup-more-menu button:hover,
.zx-popup-more-menu a:hover {
    color: #111;
    background: #f5f5f5;
}

.zx-popup-more-menu li:first-child button:hover,
.zx-popup-more-menu li:first-child a:hover {
    border-radius: 10px 10px 0 0;
}

.zx-popup-more-menu li:last-child button:hover,
.zx-popup-more-menu li:last-child a:hover {
    border-radius: 0 0 10px 10px;
}

.zx-detail-comments {
    flex: 1;
    padding: 14px 18px;
    overflow-y: auto;
}

.zx-detail-comments-empty {
    text-align: center;
    color: var(--zx-c-subtle);
    font-size: 13px;
    padding: 40px 0;
}

/* ========================================
   投票/猜谜/提问/卡片 - 详情弹窗交互样式
   ======================================== */

/* 投票盒子 */
.zx-vote-box {
    padding: 16px 18px;
}

.zx-vote-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--zx-c-muted);
    margin-bottom: 12px;
}

.zx-vote-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--zx-c-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-style: normal;
}

.zx-vote-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.zx-vote-list li {
    margin-bottom: 8px;
}

.zx-vote-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--zx-c-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}

.zx-vote-list label:hover {
    border-color: var(--zx-c-primary);
    background: rgba(37, 99, 235, 0.03);
}

.zx-vote-list input[type="radio"],
.zx-vote-list input[type="checkbox"] {
    flex-shrink: 0;
    accent-color: var(--zx-c-primary);
}

.zx-vote-bar {
    flex: 1;
    min-width: 0;
}

/* 投票结果 */
.zx-vote-result-item {
    padding: 8px 0;
}

.zx-vote-result-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--zx-c-muted);
    margin-bottom: 4px;
}

.zx-vote-result-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.zx-vote-result-bar-fill {
    height: 100%;
    background: var(--zx-c-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.zx-vote-result-bar-fill.picked {
    background: #e74c3c;
}

.zx-vote-picked .zx-vote-result-label span:first-child {
    color: #e74c3c;
    font-weight: 600;
}

.zx-vote-actions {
    margin-top: 12px;
}

.zx-vote-submit-btn,
.zx-guess-submit-btn {
    padding: 8px 24px;
    background: var(--zx-c-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.zx-vote-submit-btn:hover,
.zx-guess-submit-btn:hover {
    opacity: 0.9;
}

.zx-vote-submit-btn:disabled,
.zx-guess-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* PK 投票 */
.zx-vote-pk {
    padding: 16px 18px;
}

.zx-vote-pk-options {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.zx-vote-pk-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--zx-c-border);
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.zx-vote-pk-btn:hover {
    border-color: var(--zx-c-primary);
    color: var(--zx-c-primary);
}

.zx-vote-pk-left:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.zx-vote-pk-right:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.zx-vote-pk-hint {
    text-align: center;
    font-size: 12px;
    color: var(--zx-c-subtle);
    margin-top: 8px;
}

.zx-vote-pk-result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.zx-vote-pk-result-header > div {
    text-align: center;
    flex: 1;
}

.zx-vote-pk-result-header b {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--zx-c-ink);
}

.zx-vote-pk-result-header span {
    font-size: 12px;
    color: var(--zx-c-subtle);
}

.zx-vote-pk-bars {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
}

.zx-vote-pk-bar-left {
    background: #e74c3c;
    transition: width 0.5s ease;
}

.zx-vote-pk-bar-right {
    background: #27ae60;
    transition: width 0.5s ease;
}

/* 猜谜 */
.zx-guess-box {
    padding: 16px 18px;
}

.zx-guess-options {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.zx-guess-options li {
    padding: 12px 16px;
    border: 1px solid var(--zx-c-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
}

.zx-guess-options li:hover {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.03);
}

.zx-guess-options li.zx-guess-selected {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.08);
    font-weight: 600;
}

.zx-guess-options li.zx-guess-picked {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    color: #e74c3c;
}

.zx-guess-right {
    padding: 16px;
    background: rgba(39, 174, 96, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}

.zx-guess-right-text {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

.zx-guess-wrong {
    padding: 16px 0;
}

.zx-guess-result {
    padding: 12px;
    background: rgba(231, 76, 60, 0.06);
    border-radius: 8px;
    font-size: 13px;
    color: var(--zx-c-muted);
    margin-top: 12px;
}

/* 弹窗文件附件 */
.zx-detail-files {
    padding: 0 18px 12px;
}

.zx-detail-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--zx-c-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 6px;
}

.zx-detail-file-item:hover {
    border-color: var(--zx-c-primary);
    background: rgba(37, 99, 235, 0.03);
}

.zx-detail-file-ext {
    display: inline-block;
    padding: 2px 6px;
    background: var(--zx-c-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.zx-detail-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--zx-c-ink);
}

.zx-detail-file-size {
    font-size: 11px;
    color: var(--zx-c-subtle);
    flex-shrink: 0;
}

/* 提问 */
.zx-ask-box {
    padding: 16px 18px;
}

.zx-ask-info {
    font-size: 14px;
    color: var(--zx-c-muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.zx-ask-info a {
    color: var(--zx-c-primary);
    text-decoration: none;
}

.zx-ask-info a:hover {
    text-decoration: underline;
}

.zx-ask-reward {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e74c3c;
    font-weight: 600;
}

.zx-ask-stats {
    font-size: 13px;
    color: var(--zx-c-subtle);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.zx-ask-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.zx-ask-view-btn,
.zx-ask-answer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.zx-ask-view-btn {
    background: rgba(0, 0, 0, 0.04);
    color: var(--zx-c-muted);
    border: 1px solid var(--zx-c-border);
}

.zx-ask-view-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.zx-ask-answer-btn {
    background: var(--zx-c-primary);
    color: #fff;
    border: none;
}

.zx-ask-answer-btn:hover {
    opacity: 0.9;
}

/* 卡片附件 */
.zx-card-attachments {
    padding: 0 18px 12px;
}

.zx-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--zx-c-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    margin-bottom: 8px;
}

.zx-card-item:hover {
    border-color: var(--zx-c-primary);
    background: rgba(37, 99, 235, 0.02);
}

.zx-card-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.zx-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zx-card-info {
    flex: 1;
    min-width: 0;
}

.zx-card-type {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--zx-c-primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 4px;
}

.zx-card-title {
    display: block;
    font-size: 13px;
    color: var(--zx-c-ink);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 交互类型提示 - 响应式 */
@media (max-width: 768px) {
    .zx-vote-pk-options {
        flex-direction: column;
    }
    .zx-vote-pk-btn {
        padding: 12px;
        font-size: 14px;
    }
    .zx-ask-actions {
        flex-direction: column;
    }
    .zx-ask-view-btn,
    .zx-ask-answer-btn {
        text-align: center;
    }
}

/* ========================================
   响应式设计 - 小红书风格瀑布流
   方案要求：
   - ≥1200px: 4列
   - 900-1199px: 3列
   - 600-899px: 2列
   - <600px: 2列 (更窄间距)
   ======================================== */

/* 平板横屏 (900-1199px) */
@media (max-width: 1199px) {
    :root {
        --zx-c-column-count: 3;
    }
}

/* 平板竖屏 (600-899px) */
@media (max-width: 899px) {
    :root {
        --zx-c-column-count: 2;
        --zx-c-column-gap: 10px;
    }
}

/* 手机横屏/竖屏 (<600px) */
@media (max-width: 599px) {
    :root {
        --zx-c-column-count: 2;
        --zx-c-column-gap: 8px;
    }
    .zx-circle-wrap {
        padding: 0 12px 40px;
    }
    .zx-circle-topbar {
        margin: 0 -12px;
        padding: 0 12px;
    }
    .zx-circle-main .circle-topic-item {
        margin-bottom: 10px;
        border-radius: 10px;
    }
}

/* 平板竖屏布局切换 */
@media (max-width: 1100px) {
    .zx-circle-layout {
        flex-direction: column;
    }
    .zx-circle-sidebar {
        width: 100%;
        position: static;
        max-height: none;
    }
}

/* 详情弹窗响应式 */
@media (max-width: 768px) {
    .zx-detail-panel {
        padding: 0;
    }
    .zx-detail-content {
        max-width: none;
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
    .zx-detail-close {
        position: fixed;
        top: 12px;
        right: 12px;
        transform: none;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.45);
        color: #fff;
        box-shadow: none;
    }
    .zx-detail-close:hover {
        background: rgba(0, 0, 0, 0.6);
        transform: none;
    }
    .zx-detail-close svg {
        width: 24px;
        height: 24px;
    }
    .zx-detail-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .zx-detail-inner {
        flex-direction: column;
        min-height: 100%;
        overflow: visible;
    }
    .zx-detail-left {
        max-height: none;
        min-height: 0;
        padding: 12px;
        overflow: visible;
        touch-action: pan-y;
    }
    .zx-detail-text-panel {
        margin: -12px;
        width: calc(100% + 24px);
        min-height: 260px;
        height: auto;
        padding: 16px;
        overflow: hidden;
    }
    .zx-detail-text-panel-empty {
        min-height: 260px;
        justify-content: flex-start;
    }
    .zx-detail-emoji-cloud {
        height: 116px;
    }
    .zx-detail-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--zx-c-border);
        flex: none;
        overflow: visible;
    }
    .zx-detail-header {
        padding: 12px 14px;
    }
    .zx-detail-title {
        padding: 10px 14px 0;
        font-size: 15px;
    }
    .zx-detail-body {
        padding: 8px 14px 14px;
    }
    .zx-detail-actions {
        padding: 8px 14px;
    }
    .zx-detail-comments {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .zx-detail-main-img img {
        max-height: none;
    }
    .zx-detail-main-img {
        min-height: 0;
    }
    .zx-detail-right {
        font-size: 13px;
    }
}

/* ========================================
   隐藏内容提示样式
   ======================================== */

.zx-hidden-content-box {
    padding: 32px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--zx-c-radius-sm);
    margin: 16px 0;
}

.zx-hidden-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.zx-hidden-icon svg {
    display: inline-block;
}

.zx-hidden-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--zx-c-ink);
    margin-bottom: 8px;
}

.zx-hidden-desc {
    font-size: 14px;
    color: var(--zx-c-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.zx-hidden-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.zx-hidden-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

.zx-hidden-price svg {
    flex-shrink: 0;
}

.zx-hidden-count {
    font-size: 12px;
    color: var(--zx-c-subtle);
}

.zx-hidden-lv-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.zx-hidden-lv-item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--zx-c-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.zx-hidden-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zx-hidden-pay-btn,
.zx-hidden-login-btn,
.zx-hidden-comment-btn,
.zx-hidden-join-btn,
.zx-hidden-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.zx-hidden-pay-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.zx-hidden-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.zx-hidden-login-btn {
    background: var(--zx-c-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.zx-hidden-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.zx-hidden-register-btn {
    background: #fff;
    color: var(--zx-c-primary);
    border: 2px solid var(--zx-c-primary);
    box-shadow: none;
}

.zx-hidden-register-btn:hover {
    background: var(--zx-c-primary);
    color: #fff;
}

.zx-hidden-comment-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.zx-hidden-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

.zx-hidden-join-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.zx-hidden-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

.zx-hidden-link-btn {
    background: #fff;
    color: var(--zx-c-ink);
    border: 1px solid var(--zx-c-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.zx-hidden-link-btn:hover {
    background: var(--zx-c-bg);
    border-color: var(--zx-c-subtle);
}

.zx-hidden-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--zx-c-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: var(--zx-c-primary);
    margin-top: 12px;
}

.zx-hidden-refresh-btn:hover {
    background: var(--zx-c-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 隐藏内容响应式 */
@media (max-width: 768px) {
    .zx-hidden-content-box {
        padding: 24px 16px;
        margin: 12px 0;
    }

    .zx-hidden-title {
        font-size: 15px;
    }

    .zx-hidden-desc {
        font-size: 13px;
    }

    .zx-hidden-price {
        font-size: 16px;
    }

    .zx-hidden-pay-btn,
    .zx-hidden-login-btn,
    .zx-hidden-comment-btn,
    .zx-hidden-join-btn,
    .zx-hidden-link-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .zx-hidden-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .zx-hidden-link-btn {
        text-align: center;
    }
}

