main.report-main {
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    .main-container-flex {
        --report-ad-gutter: clamp(28px, 15vw, 300px);
        display: grid;
        grid-template-columns: minmax(0, 11fr) minmax(380px, 9fr);
        align-items: start;
        justify-content: center;
        width: calc((100% - (2 * var(--report-ad-gutter))) * 0.83);
        max-width: none;
        margin: 0 auto;
        gap: clamp(16px, 1.25vw, 24px);
        padding: 18px 0;
        box-sizing: border-box;
    }

    .content-wrapper {
        min-width: 0;
        margin: 0 !important;
        max-width: 100%;
    }

    .side-panel {
        position: sticky;
        top: var(--report-chat-top, 80px);
        z-index: 100;
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-width: 380px;
        height: var(--report-chat-height, calc(100dvh - 88px)); /* 扣除实际导航与留白 */
    }

    #vip-chat-section {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        min-height: 0;
        flex: 1; /* 撑满父容器 */
        display: flex;
        flex-direction: column;
        padding: 0 !important; /* 去除内边距，让聊天框贴边 */
        overflow: hidden; /* 内部滚动 */
    }

    #vip-chat-section.chat-panel-locked {
        flex: 1;
    }

    .chat-container {
        flex: 1;
        overflow-y: auto;
        min-height: 0; /* 允许压缩 */
        padding: 15px; /* 内容内边距 */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .chat-panel-locked .chat-container {
        min-height: 120px;
        justify-content: center;
    }

    .chat-panel-locked .chat-message.system {
        align-self: center;
        max-width: 100%;
        padding: 16px 18px;
    }

    .chat-header {
        padding: 15px;
        border-bottom: 1px solid #eee;
        background: #fafafa;
        /* 圆角与卡片保持一致，实际上卡片有 overflow:hidden，这里圆角可设可不设，为了保险保留 */
        border-radius: 8px 8px 0 0;
        flex-shrink: 0;
    }

    .chat-input-area {
        padding: 15px;
        background: #fff;
        border-radius: 0 0 8px 8px;
        border-top: 1px solid #eee;
        flex-shrink: 0;
    }

    .chat-message {
        max-width: 92%;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 1.55;
    }

    .chat-message.user {
        align-self: flex-end;
        background: var(--primary-color);
        color: #fffaf0;
    }

    .chat-message.ai {
        align-self: flex-start;
        background: rgba(255, 250, 240, 0.86);
        border: 1px solid rgba(184, 135, 47, 0.26);
        color: var(--text-color);
    }

    .chat-message.system {
        align-self: stretch;
        background: rgba(184, 135, 47, 0.1);
        color: var(--muted-color);
        text-align: center;
    }

    .chat-input-area textarea {
        width: 100%;
        min-height: 76px;
        resize: vertical;
        border: 1px solid rgba(184, 135, 47, 0.32);
        border-radius: 6px;
        padding: 10px;
        font-family: inherit;
        box-sizing: border-box;
    }

    .chat-send-btn {
        width: 100%;
        min-height: 38px;
        margin-top: 8px;
        border: 1px solid rgba(95, 27, 22, 0.42);
        border-radius: 4px;
        background: linear-gradient(180deg, #b43a2a, var(--primary-color));
        color: #fffaf0;
        cursor: pointer;
        font-weight: 700;
    }

    .chat-link-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        text-decoration: none;
    }

    .chat-send-btn:disabled,
    .chat-input-area textarea:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

/* 探索对话入口按钮 */
.chat-exploration-btn {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 16px;
    border: 1px solid var(--report-border-strong);
    border-radius: 9px;
    background: var(--report-soft);
    color: var(--report-accent-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-exploration-btn:hover {
    background: var(--report-active-bg);
    color: var(--report-active-text);
    border-color: var(--report-active-bg);
}

.chat-exploration-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
