/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: rgb(26, 26, 46);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 顶部导航 */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 店铺信息按钮 */
.shop-info-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.shop-info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: scale(1.05);
}

.shop-info-icon {
    font-size: 16px;
}

.shop-info-text {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.logo-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(90deg, #00d4ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo-text:hover {
    opacity: 0.8;
}

.logo-text::after {
    content: '⚙️';
    font-size: 12px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.logo-text:hover::after {
    opacity: 1;
}

.share-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: scale(1.05);
}

.wechat-user-avatar-inline {
    display: none;
}

/* 主内容区 */
.main-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    height: calc(100vh - 50px);
    min-height: calc(100vh - 50px);
}

/* 左侧视频区 */
.main-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100%;
    position: relative;
}

/* 右侧评论区 */
.main-right {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-left: none;
    padding: 0;
    height: calc(100vh - 50px);
    position: relative;
}

/* 主内容区使用 flexbox 布局 */
.main-content {
    display: flex;
    flex-direction: row;
}

/* 手机端隐藏右侧栏 */
@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }
    .main-right {
        width: 100%;
        position: relative;
        height: auto;
        top: 0;
    }
    
    .main-left {
        flex: 0;
        height: auto !important;
    }
    
    .footer {
        display: none;
    }
    
    .player-container {
        height: 40vh !important;
        min-height: 40vh !important;
    }
    
    .comment-section {
        height: calc(100vh - 40vh - 80px - 70px);
        max-height: calc(100vh - 40vh - 80px - 70px);
    }
    
    .comment-list {
        height: auto;
        max-height: 40vh;
    }
}

/* 播放器容器 */
.player-container {
    background: #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    width: 100%;
    height: calc(100vh - 50px);
    min-height: calc(100vh - 50px);
}

.tx-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.placeholder-content p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.placeholder-hint {
    font-size: 14px;
    color: #888;
}

/* 在线人数 */
.viewer-count {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    width: fit-content;
}

.viewer-icon {
    font-size: 20px;
}

.viewer-text {
    flex: 1;
    font-size: 16px;
}

#viewer-number {
    font-weight: 700;
    color: #00d4ff;
    font-size: 18px;
}

.hot-badge {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

/* 评论区 */
.comment-section {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    backdrop-filter: none;
    border: none;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px - 80px - 20px);
    max-height: calc(100vh - 50px - 80px - 20px);
    overflow: hidden;
    box-sizing: border-box;
}

/* 评论输入区固定在底部 */
.comment-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 0 0 0;
    border-top: none;
    flex-shrink: 0;
    margin-top: auto;
}

/* 评论输入区固定在底部 */
.comment-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 0 0 0;
    border-top: none;
    flex-shrink: 0;
    margin-top: auto;
}

/* 右侧栏中的评论区 */
.main-right .comment-section {
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* 评论输入区固定在底部 */
.comment-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 0 0 0;
    border-top: none;
    flex-shrink: 0;
    margin-top: auto;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 15px;
}

.comment-header span {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* 点赞按钮样式 */
.like-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.comment-header span {
    font-size: 16px;
    font-weight: 600;
}

.like-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background 0.2s;
}

.like-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.comment-list {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    padding-right: 0;
    height: auto;
    min-height: 0;
}

/* 隐藏滚动条但保持可滚动 */
.comment-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.comment-list::-webkit-scrollbar-track {
    background: transparent;
}

.comment-list::-webkit-scrollbar-thumb {
    background: transparent;
}

.comment-list {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.comment-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    border-bottom: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    max-width: calc(100% - 46px);
    display: block;
}

.comment-user {
    font-size: 13px;
    color: #00d4ff;
    margin: 0;
    margin-right: 4px;
    display: inline;
    white-space: nowrap;
}

.robot-badge {
    background: rgba(0, 212, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #00d4ff;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    background: none;
    padding: 0;
    border-radius: 0;
    display: inline;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-time {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.robot-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 5px;
}

/* 底部栏输入框 */
.bottom-bar .comment-input {
    flex: 1;
    width: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.bottom-bar .comment-input:focus {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.bottom-bar .comment-input::placeholder {
    color: #888;
}

/* 评论输入区（已废弃，保留样式避免报错）*/
.comment-input-area {
    display: none;
}

.comment-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.comment-input:focus {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.comment-input::placeholder {
    color: #888;
}

.send-btn {
    display: none;
}

/* 客服信息（已废弃） */
.service-info {
    display: none;
}

.service-item {
    display: none;
}

.service-icon {
    display: none;
}

.contact-btn {
    display: none;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin-bottom: 5px;
}

.footer-hint {
    font-size: 12px;
    color: #444;
}

/* 管理面板 */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.admin-panel.hidden {
    display: none;
}

.admin-panel-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;  /* 最大高度 85% 视口 */
    overflow-y: auto;  /* 垂直滚动 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 自定义滚动条样式 */
.admin-panel-content::-webkit-scrollbar {
    width: 6px;
}

.admin-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.admin-panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.admin-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h3 {
    font-size: 18px;
    color: #00d4ff;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #aaa;
}

.form-group input[type="number"],
.form-group input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: #00d4ff;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
}

.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: #00d4ff;
}

.form-select option {
    background: #1a1a2e;
    color: #fff;
}

.form-hint {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.file-upload-section {
    margin-top: 10px;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px dashed rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #00d4ff;
}

.file-upload-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.file-info {
    margin-top: 8px;
    font-size: 13px;
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.file-icon {
    font-size: 16px;
}

.file-name {
    flex: 1;
    color: #00d4ff;
    word-break: break-all;
}

.file-size {
    color: #666;
    font-size: 12px;
}

.ai-config-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.ai-config-section input,
.ai-config-section select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    color: #fff;
    font-size: 13px;
}

.ai-config-section input:focus,
.ai-config-section select:focus {
    border-color: #00d4ff;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.save-btn,
.reset-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.save-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    color: #fff;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.save-btn:hover,
.reset-btn:hover {
    transform: scale(1.02);
}

/* Toast 提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

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

/* 分享面板 */
.share-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-panel-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.share-header h3 {
    font-size: 18px;
    color: #00d4ff;
}

.share-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 微信内引导样式 */
.share-body.wechat-guide {
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.guide-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 20px;
}

.guide-steps {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #e0e0e0;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.guide-tips {
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.guide-tips p {
    font-size: 13px;
    color: #00d4ff;
    margin: 5px 0;
}

.got-it-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    color: #fff;
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s;
}

.got-it-btn:hover {
    transform: scale(1.05);
}

.qr-section {
    text-align: center;
}

#share-qr img {
    border-radius: 8px;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.qr-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.link-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    color: #00d4ff;
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
}

.copy-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.copy-btn:hover {
    transform: scale(1.02);
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wechat-btn,
.moments-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.wechat-btn:hover,
.moments-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-tip {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* 知识库管理 */
.kb-manage-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: transform 0.2s;
}

.kb-manage-btn:hover {
    transform: scale(1.02);
}

.kb-manager,
.kb-form-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.kb-manager.hidden,
.kb-form-panel.hidden {
    display: none;
}

.kb-manager-content,
.kb-form-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-manager-header,
.kb-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;  /* 头部不压缩 */
}

.kb-manager-header h3,
.kb-form-header h3 {
    font-size: 18px;
    color: #00d4ff;
}

.kb-manager-body {
    flex: 1;
    overflow-y: auto;  /* 知识库列表滚动 */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kb-form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;  /* 表单内容滚动 */
    max-height: 60vh;
    padding-right: 5px;  /* 防止滚动条贴边 */
}

/* 知识库管理滚动条 */
.kb-manager-body::-webkit-scrollbar,
.kb-form-body::-webkit-scrollbar,
.admin-panel-content::-webkit-scrollbar {
    width: 6px;
}

.kb-manager-body::-webkit-scrollbar-track,
.kb-form-body::-webkit-scrollbar-track,
.admin-panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.kb-manager-body::-webkit-scrollbar-thumb,
.kb-form-body::-webkit-scrollbar-thumb,
.admin-panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.kb-manager-body::-webkit-scrollbar-thumb:hover,
.kb-form-body::-webkit-scrollbar-thumb:hover,
.admin-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.kb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kb-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.kb-item-content {
    margin-bottom: 10px;
}

.kb-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kb-keywords {
    font-size: 13px;
    color: #00d4ff;
    font-weight: 600;
}

.kb-status {
    font-size: 12px;
}

.kb-status.enabled {
    color: #4ade80;
}

.kb-status.disabled {
    color: #666;
}

.kb-item-answer {
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.5;
}

.kb-item-actions {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    flex: 1;
    padding: 6px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.2s;
}

.edit-btn {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.delete-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.edit-btn:hover,
.delete-btn:hover {
    transform: scale(1.05);
}

.add-kb-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.add-kb-btn:hover {
    transform: scale(1.02);
}

.kb-form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kb-form-body textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.kb-form-body textarea:focus {
    border-color: #00d4ff;
}

/* 商品编辑弹窗 */
.product-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2600;
}

.product-edit-modal.hidden {
    display: none;
}

.product-edit-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-edit-modal-header h3 {
    font-size: 18px;
    color: #00d4ff;
}

.product-edit-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-edit-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-edit-modal-body input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.product-edit-modal-body input[type="text"]:focus {
    border-color: #00d4ff;
}

.product-edit-modal-body input[type="checkbox"] {
    margin-right: 8px;
}

.product-edit-modal-body .form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* 直播间信息弹窗 */
.live-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.live-info-modal.hidden {
    display: none;
}

.live-info-modal-content {
    background: #fff;
    color: #333;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 24px;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.live-info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.live-info-modal-header h3 {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.live-info-modal-header .close-btn {
    background: #f5f5f5;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.live-info-modal-header .close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.live-info-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.live-info-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.live-info-item {
    margin-bottom: 16px;
}

.live-info-item:last-child {
    margin-bottom: 0;
}

.live-info-item label {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 6px;
}

.live-info-item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    display: block;
}

.live-info-item .live-info-row {
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.live-info-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.live-info-detail {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 20px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .live-info-modal-content {
        border-radius: 16px 16px 0 0;
    }
}

/* 登录弹窗 (不允许关闭) */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: none;
}

.login-modal.hidden {
    display: none;
}

.login-modal:not(.hidden) {
    pointer-events: auto;
}

.login-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 360px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-modal-header h3 {
    font-size: 18px;
    color: #00d4ff;
}

.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-modal-body input[type="text"],
.login-modal-body input[type="password"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.login-modal-body input[type="text"]:focus,
.login-modal-body input[type="password"]:focus {
    border-color: #00d4ff;
}

.login-modal-body input::placeholder {
    color: #666;
}

/* 微信登录介绍区域 */
.wechat-login-intro {
    text-align: center;
    margin-bottom: 25px;
}

.intro-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.wechat-login-intro h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 8px;
}

.wechat-login-intro p {
    font-size: 14px;
    color: #888;
}

/* 微信登录按钮 */
.wechat-login-btn {
    width: 100%;
    background: #07c160;
    border: none;
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
    margin-bottom: 15px;
}

.wechat-login-btn:hover {
    background: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.wechat-icon {
    font-size: 22px;
}

.wechat-hint {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}


/* ============================================
   用户信息弹窗样式（参考微信登录弹窗美化版）
   ============================================ */

#user-info-modal .login-modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 40, 0.98));
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 380px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#user-info-modal .login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 100, 200, 0.05));
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

#user-info-modal .login-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #00d4ff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#user-info-modal .login-modal-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

#user-info-modal .login-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#user-info-modal .login-modal-body {
    padding: 30px 28px;
}

.user-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* 用户头像 */
.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.25);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 100, 200, 0.05));
    padding: 4px;
}

.user-avatar-large:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.35);
    transform: scale(1.05);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 用户信息卡片 */
.user-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    width: 100%;
}

.user-info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.user-info-item label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.user-info-item span {
    font-size: 14px;
    color: #fff;
    word-break: break-all;
    font-weight: 500;
    line-height: 1.4;
}

/* 退出登录按钮 */
.logout-btn {
    margin-top: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 71, 87, 0.15));
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 71, 87, 0.25));
    border-color: rgba(255, 107, 107, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}

.logout-btn:active {
    transform: translateY(0);
}

.logout-btn span {
    font-size: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #user-info-modal .login-modal-content {
        max-width: 90%;
    }
    
    #user-info-modal .login-modal-header {
        padding: 20px 24px;
    }
    
    #user-info-modal .login-modal-body {
        padding: 24px 20px;
    }
    
    .user-avatar-large {
        width: 90px;
        height: 90px;
    }
    
    .user-info-item {
        padding: 12px 16px;
    }
}

/* 二维码显示区域 */
.qrcode-container {
    text-align: center;
    padding: 20px;
}

.qrcode-image {
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qrcode-hint {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.qrcode-status {
    font-size: 14px;
    color: #07c160;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.cancel-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 登录权益 */
.login-benefits {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #ccc;
}

.benefit-item:first-child {
    padding-top: 0;
}

.benefit-item:last-child {
    padding-bottom: 0;
}

.benefit-icon {
    font-size: 16px;
}

/* 微信授权弹窗 */
.wechat-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.wechat-auth-modal.hidden {
    display: none;
}

.wechat-auth-modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wechat-auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wechat-auth-header h3 {
    font-size: 18px;
    color: #07c160;
}

.wechat-auth-header .close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-auth-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wechat-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(7, 193, 96, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(7, 193, 96, 0.2);
}

.wechat-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.wechat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wechat-user-detail {
    flex: 1;
}

.wechat-nickname {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.wechat-id {
    font-size: 12px;
    color: #888;
}

.wechat-permissions {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.permissions-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.permissions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.permissions-list li {
    font-size: 13px;
    color: #ccc;
    padding: 4px 0;
}

.wechat-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-allow-btn {
    width: 100%;
    background: #07c160;
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-allow-btn:hover {
    background: #06ad56;
    transform: translateY(-2px);
}

.auth-cancel-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.login-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.login-submit-btn,
.login-cancel-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s;
}

.login-submit-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    color: #fff;
}

.login-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login-submit-btn:hover,
.login-cancel-btn:hover {
    transform: scale(1.02);
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn,
.logout-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;  /* 不换行 */
}

.login-btn:hover,
.logout-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

.logout-btn {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* 直播中标签 */
.live-badge {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 商品卡片 */
.product-card {
    position: fixed;
    right: 370px;
    bottom: 80px;
    width: 260px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.product-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-product-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #00d4ff;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.edit-product-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}

.product-header span {
    font-size: 14px;
    color: #00d4ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.close-product-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-product-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.product-body {
    padding: 15px;
    display: flex;
    gap: 12px;
}

.product-cover {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.product-info h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
}

.product-info .price {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-info .price span {
    font-size: 12px;
    color: #666;
}

.product-info .desc {
    font-size: 10px;
    color: #888;
}

.buy-btn {
    width: 100%;
    background: linear-gradient(135deg, #00d4ff, #7b2ff7);
    border: none;
    color: #fff;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* 底部互动栏 */
.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: transparent;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 350px;  /* ✅ 不超过右侧评论区宽度 */
    margin: 0 auto;  /* ✅ 居中显示 */
}

/* 右侧按钮组 */
.bottom-bar .action-btns {
    display: flex;
    gap: 15px;
}

/* 手机端固定底部栏 */
@media (max-width: 1024px) {
    .main-right {
        position: relative;
    }
    
    .bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
        justify-content: space-around;
    }
    
    .bottom-bar .action-btn {
        flex: 1;
        justify-content: center;
        max-width: 36px;
    }
    
    .bottom-bar .btn-text {
        display: none;
    }
}

.bottom-bar::-webkit-scrollbar {
    height: 4px;
}

.bottom-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.bottom-bar::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 2px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    padding: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.action-btn span:first-child {
    font-size: 21px;
    line-height: 1;
}

.btn-text {
    display: none;
}

.action-btn.warm {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border: none;
}

.action-btn.warm:hover {
    background: linear-gradient(135deg, #ff8787, #ff6b6b);
}

.action-btn.shop {
    background: linear-gradient(135deg, #ffa502, #ff7f50);
    border: none;
}

.action-btn.shop:hover {
    background: linear-gradient(135deg, #ffc048, #ffa502);
}

/* 电话按钮样式 - 绿色圆形 */
.action-btn.contact {
    background: linear-gradient(135deg, #00d084, #00b76e);
}

.action-btn.contact:hover {
    background: linear-gradient(135deg, #00e090, #00c778);
}

/* 点赞按钮样式 - 半透明深色圆形 */
.action-btn[onclick="toggleLike()"] {
    background: rgba(255, 255, 255, 0.08);
}

.action-btn[onclick="toggleLike()"]:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 移动端适配 */
@media (max-width: 600px) {
    .header {
        padding: 12px 15px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .logo {
        width: 100%;
    }
    
    .logo-text {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .login-btn,
    .logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 移动端商品卡片 - 缩小 80% */
    .product-card {
        right: 15px;
        width: 180px;
        transform: scale(0.8);
        transform-origin: right bottom;
    }
    
    .product-cover {
        width: 60px;
        height: 60px;
    }
    
    .product-info h4 {
        font-size: 12px;
    }
    
    .product-info .price {
        font-size: 16px;
    }
    
    /* 移动端底部栏 */
    .bottom-bar {
        padding: 10px;
        gap: 6px;
    }
    
    
    .btn-text {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .viewer-count {
        padding: 12px 15px;
    }
    
    .comment-section {
        padding: 15px;
    }
    
    .service-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ========== 新的顶部导航栏样式（两行布局，px 单位）========== */

/* 第一行：标题行 */
.header-title-row {
    padding: 4px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

/* 第二行：按钮行 */
.header-button-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 4px 6px;
    width: 100%;
    box-sizing: border-box;
}

/* 左侧区域：直播中 + 店铺信息（靠左） */
.header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    flex: 0 0 auto;
    margin: 0 !important;
}

/* 右侧区域：登录 + 分享（靠右） */
.header-right {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px;
    flex: 0 0 auto;
    justify-content: flex-end !important;
    margin: 0 !important;
}

/* 直播中徽章 */
.live-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 0, 0, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    white-space: nowrap;
    cursor: default;
    margin: 0 !important;
    height: 20px;
    box-sizing: border-box;
}

/* 店铺信息按钮 */
.shop-info-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0;
    background: none !important;
    padding: 0 4px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    border: none !important;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
    margin: 0 !important;
    height: 20px;
    box-sizing: border-box;
}

.shop-info-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.shop-info-icon {
    display: none;
}

.shop-info-text {
    margin: 0 !important;
    line-height: 1;
    display: flex;
    align-items: center;
}

.shop-info-icon {
    font-size: 13px;
    display: inline-block;
}

.shop-info-text {
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
}

/* 登录/分享按钮 */
.login-btn,
.logout-btn,
.share-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 4px 10px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    gap: 4px;
}

.login-btn:hover,
.logout-btn:hover,
.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

.share-btn span {
    margin-right: 0;
}

/* 顶部栏观看人数 - 纯文字样式，无按钮背景 */
.viewer-count-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

#viewer-number {
    color: #fff;
    font-weight: 600;
    font-size: 10px;
}


/* 隐藏播放器不需要的控件，只保留放大功能 */
.video-player-controls,
.video-progress-bar,
.video-time-display,
.volume-control,
.playback-speed-control,
.video-progress {
    display: none !important;
}

/* 只保留放大按钮 */
.fullscreen-btn,
.video-fullscreen-btn {
    display: block !important;
}


/* 自定义放大按钮（录播模式） */
.custom-fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100;
    opacity: 0;
}

.player-container:hover .custom-fullscreen-btn {
    opacity: 1;
}

.custom-fullscreen-btn:hover {
    background: rgba(0, 212, 255, 0.8);
    border-color: rgba(0, 212, 255, 1);
    transform: scale(1.1);
}




    
    #user-info-modal .login-modal-header {
        padding: 20px 24px;
    }
    
    #user-info-modal .login-modal-body {
        padding: 24px 20px;
    }
    
    .user-avatar-large {
        width: 90px;
        height: 90px;
    }
    
    .user-info-item {
        padding: 14px 18px;
    }
}
