/* ==================== 基础样式（浅色主题） ==================== */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.15);
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --sidebar-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow: hidden;
}

/* ==================== 应用容器 ==================== */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 无顶部导航栏时，主体内容直接占满 */
.app-container > .main-content {
    height: 100vh;
}

/* ==================== 顶部导航栏 ==================== */
.header {
    height: 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

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

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* ==================== 主体内容区域 ==================== */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ==================== 左侧：上传论文 (14%) ==================== */
.sidebar-left {
    width: 14%;
    min-width: 200px;
    max-width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-bottom: 1px solid var(--border-color);
    margin: 0 -16px 16px -16px;
    padding: 0 16px;
}

.btn-upload-large {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    flex-direction: row;
    gap: 8px;
    border-radius: var(--radius-md);
}

.btn-upload-large svg {
    width: 32px;
    height: 32px;
}

.upload-hint {
    display: none;
}

/* 论文列表区域 */
.paper-list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    overflow: hidden;
}

.paper-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.paper-list-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.paper-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 10px;
}

.paper-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* 论文列表项 */
.paper-list-item {
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.paper-list-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.paper-list-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
}

.paper-list-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.paper-list-filename {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.paper-list-date {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.paper-list-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.paper-list-delete:hover {
    background: var(--error-color);
    color: white;
}

.paper-list-delete svg {
    width: 16px;
    height: 16px;
}

/* 空列表状态 */
.empty-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-list span {
    font-size: 13px;
}

/* 用户信息区域 */
.user-info-section {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.user-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.user-info-content:hover {
    background: rgba(0, 0, 0, 0.05);
}

.user-info-content .login-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
}

.user-info-content .user-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
}

.user-info-content .user-phone .vip-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* VIP徽章动画效果 */
.user-info-content:hover .vip-badge {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* 登出按钮 */
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
}

.logout-btn:hover {
    background: var(--error-color);
    color: white;
}

/* ==================== 中间：PDF 预览 (42%) ==================== */
.pdf-preview {
    width: 50%;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.pdf-header {
    height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdf-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-header h2 {
    font-size: 14px;
    font-weight: 600;
}

.pdf-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 12px;
}

/* 目录 Switch 开关 */
.toc-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    user-select: none;
}

.toc-switch input {
    display: none;
}

.toc-switch-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.toc-switch-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toc-switch input:checked + .toc-switch-slider {
    background: var(--primary-color);
}

.toc-switch input:checked + .toc-switch-slider::before {
    transform: translateX(16px);
}

.toc-switch-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.toc-switch input:checked ~ .toc-switch-text {
    color: var(--primary-color);
    font-weight: 500;
}

.toc-no-catalog {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    max-width: calc(50% - 100px);
}

.pdf-info::-webkit-scrollbar {
    height: 0;
}

.pdf-title {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* PDF 主区域（包含目录和预览） */
.pdf-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 左侧：目录面板 */
.pdf-toc-panel {
    width: 200px;
    min-width: 180px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.toc-header {
    height: 40px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.toc-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.toc-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.toc-content::-webkit-scrollbar {
    width: 6px;
}

.toc-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.toc-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.toc-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.toc-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    border: none;
    background: none;
    width: calc(100% - 16px);
    text-align: left;
}

.toc-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.toc-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.toc-item .toc-page-num {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-left: 8px;
}

.toc-item:hover .toc-page-num,
.toc-item.active .toc-page-num {
    color: var(--primary-color);
}

/* 目录级别缩进 */
.toc-item.level-1 {
    font-weight: 500;
    color: var(--text-primary);
}

.toc-item.level-2 {
    padding-left: 20px;
}

.toc-item.level-3 {
    padding-left: 32px;
    font-size: 11px;
}

/* 目录为空状态 */
.toc-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.pdf-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
}

/* 连续滚动容器 */
.pdf-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    scroll-behavior: smooth;
}

.pdf-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.pdf-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.pdf-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.pdf-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.pdf-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* PDF 页面样式 */
.pdf-page {
    background: white;
    box-shadow: var(--shadow-lg);
    margin: 0 auto 20px;
    display: block;
    max-width: 100%;
    height: auto;
}

/* PDF 页面在浅色主题下的容器背景 */
.pdf-scroll-container {
    background: #e2e8f0;
}

.pdf-page:last-child {
    margin-bottom: 0;
}

.pdf-controls {
    height: 52px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 20px;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.page-info input {
    width: 48px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

#zoomLevelInput {
    width: 56px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    background: white;
    padding: 0 4px;
}

#zoomLevelInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* ==================== 右侧：评阅意见 (50%) ==================== */
.review-panel {
    width: 50%;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.review-header {
    height: 56px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-header h2 {
    font-size: 14px;
    font-weight: 600;
}

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

.review-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.review-chat-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-time-divider {
    display: flex;
    justify-content: center;
    margin: 2px 0 6px;
}

.chat-time-badge {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 3px 10px;
    line-height: 1.2;
}

.review-msg {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: fit-content;
    max-width: 92%;
}

.review-msg.mine {
    align-self: flex-end;
    margin-left: auto;
}

.review-msg.ai,
.review-msg.other {
    align-self: flex-start;
    margin-right: auto;
}

.review-msg.mine .review-msg-meta {
    justify-content: flex-end;
}

.review-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.review-msg.ai .review-msg-meta {
    font-weight: 600;
    color: var(--text-secondary);
}

.review-msg.ai .review-msg-sender {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.review-msg.ai .review-msg-sender::before {
    content: "AI";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.review-msg-bubble {
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    line-height: 1.7;
}

.review-msg.mine .review-msg-bubble {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.review-msg.ai .review-msg-bubble {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.review-msg.other .review-msg-bubble {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.review-timeline-processing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-timeline-processing .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
}

.review-msg.ai .markdown-content h1,
.review-msg.ai .markdown-content h2,
.review-msg.ai .markdown-content h3,
.review-msg.ai .markdown-content h4 {
    color: var(--text-primary);
}

.review-msg.ai .markdown-content blockquote {
    background: var(--bg-tertiary);
    border-left: 3px solid var(--primary-color);
}

.review-msg.ai .markdown-content pre {
    background: #1e293b;
    border: 1px solid var(--border-color);
}

.review-msg.ai .markdown-content code {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.review-msg.ai .markdown-content pre code {
    background: transparent;
    color: var(--text-primary);
    border: none;
}

/* 评阅结果样式 */
.review-result {
    animation: fadeIn 0.3s ease;
}

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

.review-section {
    margin-bottom: 24px;
}

.review-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

/* 评分表格 */
.score-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.score-table th,
.score-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.score-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
}

.score-table td {
    color: var(--text-primary);
}

.score-table .score {
    font-weight: 600;
    color: var(--primary-color);
}

.score-table .total-score {
    background: var(--primary-light);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 评阅文本 */
.review-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
    white-space: pre-wrap;
}

/* 论文信息卡片 */
.paper-info-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}

.paper-info-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.paper-info-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    height: 28px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==================== 空状态 ==================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.empty-state span {
    font-size: 13px;
}

.pdf-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==================== 弹窗样式 ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

.modal-lg {
    max-width: 700px;
}

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

.modal-header {
    height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

/* ==================== 上传区域 ==================== */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
}

/* 文件已选定状态 */
.upload-area.has-file {
    border-color: var(--success-color, #10b981);
    background: rgba(16, 185, 129, 0.1);
    border-style: solid;
}

/* 上传提示区域 */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area.has-file .upload-placeholder {
    display: none;
}

.upload-area.has-file .file-info {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-area.has-file svg {
    color: var(--success-color, #28a745);
}

.upload-placeholder svg {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-area p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-area span {
    font-size: 13px;
    color: var(--text-secondary);
}

.file-info {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-info svg {
    color: var(--success-color, #28a745);
    margin-bottom: 4px;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-all;
    max-width: 100%;
}

.file-size {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    background: #ffffff;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==================== 评阅设置 ==================== */
.review-settings {
    max-height: 60vh;
    overflow-y: auto;
}

.setting-section {
    margin-bottom: 24px;
}

.setting-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.measures-list {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 12px;
}

.measure-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.measure-number {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.measure-content {
    flex: 1;
}

.measure-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.measure-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.measure-score {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* ==================== 加载动画 ==================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== Toast 提示 ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

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

.toast-success {
    background: var(--success-color);
    color: white;
}

.toast-error {
    background: var(--error-color);
    color: white;
}

.toast-warning {
    background: var(--warning-color);
    color: white;
}

.toast-info {
    background: var(--primary-color);
    color: white;
}

/* ==================== 处理中状态 ==================== */
.processing-status {
    text-align: center;
    padding: 40px;
}

.processing-status .spinner {
    margin-bottom: 20px;
}

.processing-status p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.processing-status span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== 登录弹窗 ==================== */
.modal-sm {
    max-width: 380px;
}

.login-form {
    padding: 8px 0;
}

.verify-code-group {
    display: flex;
    gap: 12px;
}

.verify-code-group input {
    flex: 1;
}

.verify-code-group button {
    width: 120px;
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 12px;
}

.verify-code-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 1200px) {
    .sidebar-left {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar-left {
        width: 100%;
        max-width: none;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .pdf-preview,
    .review-panel,
    .main-content.aigc-mode .pdf-preview,
    .main-content.aigc-mode .review-panel {
        width: 100%;
        height: 50%;
    }
    
    .pdf-toc-panel {
        width: 160px;
        min-width: 140px;
    }
}

/* ==================== 评阅中动画 ==================== */
.review-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.processing-spinner {
    margin-bottom: 24px;
}

.processing-spinner .spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.review-processing p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.review-processing span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 脉冲动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.review-processing::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================== 评阅指标表格样式 ==================== */
.score-table .reason-row {
    background: var(--bg-tertiary);
}

.score-table .reason-cell {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px 16px;
    line-height: 1.6;
}

.score-table .reason-cell strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== 总评阅分卡片 ==================== */
.total-score-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-top: 16px;
}

.total-score-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.total-score-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}


/* ==================== Markdown 内容样式 ==================== */
.markdown-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.markdown-content h1 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.markdown-content h2 {
    font-size: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.markdown-content h3 {
    font-size: 16px;
    color: var(--primary-color);
}

.markdown-content h4 {
    font-size: 15px;
}

.markdown-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin-bottom: 6px;
}

.markdown-content li > ul,
.markdown-content li > ol {
    margin-top: 6px;
    margin-bottom: 6px;
}

.markdown-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.markdown-content blockquote p:last-child {
    margin-bottom: 0;
}

.markdown-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-color);
}

.markdown-content pre {
    background: #1e293b;
    color: #f1f5f9;
    padding: 16px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}

.markdown-content th,
.markdown-content td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-content th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.markdown-content tr:nth-child(even) {
    background: var(--bg-primary);
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.markdown-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}


/* ==================== 问答功能样式 ==================== */

/* Tab 切换栏 */
.review-tabs {
    display: flex;
    gap: 8px;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    align-items: center;
}

.review-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.review-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.review-tab.active {
    background: var(--primary-color);
    color: white;
}

.review-tab svg {
    flex-shrink: 0;
}

/* Tab 内容区域 */
.tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex !important;
}

/* 评阅意见 Tab */
#reviewTabContent .review-header {
    flex-shrink: 0;
}

#reviewTabContent .review-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 问答内容区域 */
.qa-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 提问输入区域 */
.qa-input-section {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.qa-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.qa-input {
    width: 100%;
    padding: 12px 16px 50px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.qa-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.qa-input::placeholder {
    color: var(--text-tertiary);
}

.qa-submit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-md);
}

.qa-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qa-submit-btn svg {
    flex-shrink: 0;
}

/* 问答历史列表 */
.qa-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qa-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    padding: 40px 20px;
}

.qa-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.qa-empty p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.qa-empty span {
    font-size: 14px;
}

/* 问答条目 */
.qa-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.qa-item.question-only {
    opacity: 0.8;
}

.qa-question {
    display: flex;
    gap: 10px;
}

.qa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.qa-avatar.ai {
    background: var(--success-color);
}

.qa-avatar.loading {
    background: var(--bg-tertiary);
    animation: pulse 1.5s ease-in-out infinite;
}

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

.qa-bubble {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.qa-answer {
    display: flex;
    gap: 10px;
}

.qa-answer .qa-bubble {
    background: var(--bg-tertiary);
}

.qa-answer-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
}

.qa-answer-content .markdown-content {
    background: transparent;
    padding: 0;
}

.qa-answer-content .markdown-content p {
    margin-bottom: 12px;
}

.qa-answer-content .markdown-content p:last-child {
    margin-bottom: 0;
}

.qa-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-align: right;
}

/* 回答生成中状态 */
.qa-answering {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0;
}

.qa-answering .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
}

/* 悬浮提问按钮 */
.fab-ask {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
    z-index: 100;
}

.fab-ask:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    background: var(--primary-hover);
}

.fab-ask:active {
    transform: translateY(0);
}

.fab-ask.hidden {
    display: none;
}

/* 问答错误提示 */
.qa-error {
    padding: 12px 16px;
    background: var(--error-bg, rgba(239, 68, 68, 0.1));
    border: 1px solid var(--error-color);
    border-radius: var(--radius-md);
    color: var(--error-color);
    font-size: 14px;
    margin-top: 8px;
}

/* 重新生成按钮 */
.qa-retry-btn {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 12px;
}


/* ==================== 会员功能样式 - 深色主题 ==================== */

/* VIP 等级徽章样式 */
.vip-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vip-badge svg {
    width: 14px;
    height: 14px;
}

/* 免费版 - 灰色 */
.vip-badge-free {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* V1 月卡 - 铜牌色 */
.vip-badge-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: white;
    border: 1px solid #a0522d;
    box-shadow: 0 1px 2px rgba(205, 127, 50, 0.3);
}

/* V2 学期卡 - 银牌色 */
.vip-badge-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    border: 1px solid #475569;
    box-shadow: 0 1px 2px rgba(100, 116, 139, 0.3);
}

/* V3 年卡 - 金牌色 */
.vip-badge-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border: 1px solid #d97706;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

/* V4/终身 - 钻石皇冠 */
.vip-badge-diamond {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: white;
    border: 1px solid #6d28d9;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.4);
}

.vip-badge-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 徽章悬停动画 */
.user-info-content:hover .vip-badge {
    transform: scale(1.05);
}

/* 会员弹窗 - 浅色主题 */
.modal-vip {
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vip-modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.vip-modal-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.vip-close {
    color: var(--text-muted);
    font-size: 24px;
}

.vip-close:hover {
    color: var(--text-primary);
}

.vip-modal-body {
    background: #ffffff;
    padding: 24px;
}

/* 商品列表 */
.vip-goods-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 商品卡片 - 浅色风格 */
.vip-goods-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    transition: all 0.3s ease;
    min-width: 0;
}

/* 底部操作区域 - 统一对齐 */
.vip-card-footer {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
}

.vip-goods-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.vip-goods-card.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.vip-goods-card.current {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

/* 推荐标签 */
.vip-recommend-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
}

/* 套餐名称 */
.vip-goods-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

/* 价格行 */
.vip-goods-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.vip-goods-original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.vip-goods-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* 权益列表 */
.vip-goods-benefits {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.vip-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vip-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vip-benefit-item.enabled .vip-benefit-icon {
    background: var(--success-color);
    color: white;
}

.vip-benefit-item.disabled .vip-benefit-icon {
    background: var(--error-color);
    color: white;
}

.vip-benefit-icon svg {
    width: 12px;
    height: 12px;
}

.vip-benefit-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.vip-benefit-item.enabled .vip-benefit-text {
    color: var(--text-primary);
}

.vip-benefit-item.disabled .vip-benefit-text {
    color: var(--text-muted);
}

/* 开通按钮 */
.vip-buy-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 24px;
    background: var(--primary-color);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.vip-buy-btn:hover {
    background: #2563eb;
    transform: scale(1.02);
}

.vip-buy-btn.disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: default;
}

.vip-buy-btn.disabled:hover {
    transform: none;
}

/* 当前使用标签 */
.vip-current-badge {
    width: 100%;
    padding: 14px 20px;
    border-radius: 24px;
    background: var(--success-color);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

/* 底部提示 */
.vip-notice {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.vip-notice-highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.vip-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .vip-goods-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-vip {
        max-width: 700px;
    }
}

@media (max-width: 640px) {
    .vip-goods-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .vip-goods-card {
        padding: 20px 16px 16px;
    }
    
    .vip-goods-price {
        font-size: 28px;
    }
    
    .modal-vip {
        width: 95%;
        max-height: 90vh;
    }
    
    .vip-modal-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .vip-goods-list {
        grid-template-columns: 1fr;
    }
    
    .vip-entry {
        padding: 8px 10px;
    }
    
    .vip-entry-text {
        font-size: 12px;
    }
}

/* ==================== AIGC 检测样式 ==================== */

/* 中间栏 AIGC 区域 */
.aigc-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* AIGC 分布条容器 */
.aigc-distribution-wrapper {
    width: 32px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: relative;
}

/* AIGC 分布条 */
.aigc-distribution-bar {
    width: 12px;
    height: calc(100% - 32px);
    background: #e5e7eb;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* 分布条段落 */
.aigc-distribution-segment {
    position: absolute;
    left: 0;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.aigc-distribution-segment:hover {
    opacity: 0.8;
}

.aigc-distribution-segment.normal {
    background: #10b981;
}

.aigc-distribution-segment.suspected {
    background: #f59e0b;
}

.aigc-distribution-segment.high-risk {
    background: #ef4444;
}

/* 位置指示器 */
.aigc-position-indicator {
    position: absolute;
    right: 2px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--primary-color);
    transition: top 0.1s ease-out;
    pointer-events: none;
}

/* AIGC 内容容器 */
.aigc-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

/* AIGC 状态栏 */
.aigc-status-bar {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aigc-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.aigc-legend-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.aigc-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.aigc-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid transparent;
}

.aigc-legend-color.normal {
    background: white;
    border-color: #e5e7eb;
}

.aigc-legend-color.suspected {
    background: #fef3c7;
    border-color: #f59e0b;
}

.aigc-legend-color.high {
    background: #fee2e2;
    border-color: #ef4444;
}

.aigc-detect-status {
    font-size: 12px;
    color: var(--text-secondary);
}

.aigc-detect-status.loading {
    color: var(--primary-color);
}

.aigc-detect-status.done {
    color: #10b981;
}

/* AIGC 内容区域 */
.aigc-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    background: var(--bg-primary);
}

/* Markdown 内容样式 */
.aigc-content .markdown-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
}

.aigc-content .markdown-body h1,
.aigc-content .markdown-body h2,
.aigc-content .markdown-body h3,
.aigc-content .markdown-body h4,
.aigc-content .markdown-body h5,
.aigc-content .markdown-body h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.aigc-content .markdown-body p {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: background-color 0.2s;
}

.aigc-content .markdown-body p:hover {
    background-color: var(--bg-secondary);
}

/* AI 检测高亮样式 */
.aigc-content .markdown-body p.ai-suspected {
    background-color: #fef3c7;
    border-left-color: #f59e0b;
}

.aigc-content .markdown-body p.ai-high-risk {
    background-color: #fee2e2;
    border-left-color: #ef4444;
}

.aigc-content .markdown-body pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.aigc-content .markdown-body code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.aigc-content .markdown-body blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 16px 0;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
}

.aigc-content .markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.aigc-content .markdown-body th,
.aigc-content .markdown-body td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}

.aigc-content .markdown-body th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.aigc-content .markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.aigc-content .markdown-body ul,
.aigc-content .markdown-body ol {
    margin: 16px 0;
    padding-left: 28px;
}

.aigc-content .markdown-body li {
    margin-bottom: 6px;
}

/* AI 标签 */
.ai-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
    vertical-align: middle;
}

.ai-tag.suspected {
    background: #f59e0b;
    color: white;
}

.ai-tag.high-risk {
    background: #ef4444;
    color: white;
}

/* 右侧 AIGC 详情面板 */
.aigc-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.aigc-score-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aigc-score-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.aigc-score-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.aigc-score-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.aigc-score-value.low {
    color: #10b981;
}

.aigc-score-value.medium-low {
    color: #f59e0b;
}

.aigc-score-value.medium-high {
    color: #f97316;
}

.aigc-score-value.high {
    color: #ef4444;
}

.aigc-risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.aigc-risk-badge.low {
    background: #d1fae5;
    color: #065f46;
}

.aigc-risk-badge.medium-low {
    background: #fef3c7;
    color: #92400e;
}

.aigc-risk-badge.medium-high {
    background: #ffedd5;
    color: #c2410c;
}

.aigc-risk-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.aigc-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.aigc-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.aigc-progress-fill.low {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.aigc-progress-fill.medium-low {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.aigc-progress-fill.medium-high {
    background: linear-gradient(90deg, #f97316, #fb923c);
}

.aigc-progress-fill.high {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.aigc-stats {
    margin-top: 16px;
}

.aigc-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

.aigc-stat-item:last-child {
    border-bottom: none;
}

.aigc-stat-label {
    color: var(--text-secondary);
}

.aigc-stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* AIGC 检测说明卡片 */
.aigc-info-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.aigc-info-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.aigc-info-text {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* AIGC 加载状态 */
.aigc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.aigc-loading svg {
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    color: var(--primary-color);
    margin-bottom: 16px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.aigc-loading p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== 空状态引导页 ==================== */
.empty-state-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    overflow-y: auto;
}

.empty-state-page.hidden {
    display: none;
}

.empty-state-content {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.empty-state-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.empty-state-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* 文件类型图标 */
.file-types {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.file-type-item {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-type-item svg {
    width: 100%;
    height: 100%;
}

/* 大上传区域 */
.upload-area-large {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area-large:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.upload-area-large.dragover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary-color);
}

.upload-area-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-area-content svg {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.upload-text {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-subtext {
    font-size: 14px;
    color: var(--text-muted);
}

/* 主上传按钮 */
.btn-upload-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-main:hover {
    background: var(--primary-hover);
}

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

.btn-upload-main svg {
    width: 20px;
    height: 20px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .empty-state-title {
        font-size: 28px;
    }
    
    .empty-state-desc {
        font-size: 14px;
    }
    
    .upload-area-large {
        padding: 32px 24px;
    }
    
    .upload-text {
        font-size: 16px;
    }
}


/* ==================== 内容区域（中间+右侧） ==================== */
.content-area {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* 上传引导区域（论文为空时显示） */
.upload-guide {
    flex: 1;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.upload-guide.hidden {
    display: none;
}

.upload-guide-content {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    width: 100%;
}

.upload-guide-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.upload-guide-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* 文件类型图标 */
.file-types {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.file-type-item {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.file-type-item svg {
    width: 100%;
    height: 100%;
}

/* 上传引导区域 */
.upload-area-guide {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area-guide:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.upload-area-guide.dragover {
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--primary-color);
}

.upload-area-guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-area-guide-content svg {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.upload-guide-text {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-guide-subtext {
    font-size: 14px;
    color: var(--text-muted);
}

/* 上传引导按钮 */
.btn-upload-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload-guide:hover {
    background: var(--primary-hover);
}

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

.btn-upload-guide svg {
    width: 20px;
    height: 20px;
}

/* 正常内容区域（有论文时显示） */
.normal-content {
    flex: 1;
    display: none;
    overflow: hidden;
}

.normal-content.active {
    display: flex;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .upload-guide-title {
        font-size: 28px;
    }
    
    .upload-guide-desc {
        font-size: 14px;
    }
    
    .upload-area-guide {
        padding: 32px 24px;
    }
    
    .upload-guide-text {
        font-size: 16px;
    }
}
