/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
}

/* 整体布局 */
.layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧菜单 */
.sidebar {
    width: 220px;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    background-color: #3b82f6;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f3f4f6;
}

.nav-item.active {
    background-color: #3b82f6;
    color: #fff;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 右侧内容区 */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.card-desc {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.card-body {
    padding: 0;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 12px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    padding: 16px 24px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.table tr:hover {
    background-color: #f9fafb;
}

.table td:last-child {
    text-align: right;
}

.table th:last-child {
    text-align: right;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3b82f6;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-link {
    background: none;
    padding: 4px 8px;
    color: #3b82f6;
}

.btn-link:hover {
    color: #2563eb;
}

.btn-danger {
    background: none;
    padding: 4px 8px;
    color: #ef4444;
}

.btn-danger:hover {
    color: #dc2626;
}

/* 空状态 */
.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
}

.empty-state .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #d1d5db;
}

/* 表格样式 */

/* 表单样式 */
.form-container {
    max-width: 640px;
}

.form-body {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.btn-secondary {
    background: none;
    color: #6b7280;
    padding: 10px 16px;
}

.btn-secondary:hover {
    color: #374151;
}

.btn-secondary-outline {
    background: none;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 10px 16px;
}

.btn-secondary-outline:hover {
    color: #374151;
    border-color: #9ca3af;
    background: #f9fafb;
}

/* ============================================
   场景管理页面样式
   ============================================ */

.scene-page {
    max-width: 1400px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.page-desc {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* 左右布局 */
.scene-layout {
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 150px);
}

/* 左侧场景列表 */
.scene-list {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scene-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.scene-item:hover {
    background: #f9fafb;
}

.scene-item.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.scene-thumb {
    width: 64px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.scene-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
}

.thumb-placeholder svg {
    width: 20px;
    height: 20px;
}

.scene-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 右侧场景详情 */
.scene-detail {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.scene-panel {
    display: none;
    padding: 24px;
}

.scene-panel.active {
    display: block;
}

/* 详情头部 */
.detail-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-kv {
    width: 320px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    cursor: pointer;
}

.detail-kv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-kv .kv-placeholder {
    cursor: pointer;
}

.detail-kv .kv-placeholder svg {
    width: 32px;
    height: 32px;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-info .form-group {
    margin-bottom: 0;
}

/* 删除按钮 */
.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #ef4444;
    background: none;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-outline:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.btn-danger-outline .icon {
    width: 14px;
    height: 14px;
}

/* 详情底部 */
.detail-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* 空状态卡片 */
.empty-state-card {
    background: #fff;
    border-radius: 12px;
    padding: 80px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.empty-state-card svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #d1d5db;
}

.empty-state-card h3 {
    font-size: 18px;
    color: #374151;
    margin: 0 0 8px;
}

.empty-state-card p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* 16:9 KV图片区域 */
.kv-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.kv-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.kv-placeholder span {
    font-size: 14px;
}

/* 串场背景图上传 */
.transition-bg-upload {
    margin-bottom: 16px;
}

/* 串场实时预览区域 */
.transition-preview-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.transition-preview-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #374151;
}

.transition-preview-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 33.867 / 19.05;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.transition-preview-container .preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transition-preview-container .preview-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

.transition-preview-container .preview-photo,
.transition-preview-container .preview-resume-mode .preview-photo {
    position: absolute;
    background: rgba(59, 130, 246, 0.2);
    border: 1px dashed #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.transition-preview-container .preview-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transition-preview-container .preview-photo-text {
    position: absolute;
}

.transition-preview-container .preview-role,
.transition-preview-container .preview-name,
.transition-preview-container .preview-hosp,
.transition-preview-container .preview-resume-mode .preview-role,
.transition-preview-container .preview-resume-mode .preview-name,
.transition-preview-container .preview-resume-mode .preview-hosp {
    position: absolute;
    white-space: nowrap;
    box-sizing: border-box;
}

.transition-preview-container .preview-resume,
.transition-preview-container .preview-resume-mode .preview-resume {
    position: absolute;
    background: rgba(16, 185, 129, 0.15);
    border: 1px dashed #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 10px;
    box-sizing: border-box;
}

.preview-hint {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.preview-sample-inputs {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.preview-sample-inputs h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #0369a1;
}

.preview-sample-inputs .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-sample-inputs .form-group {
    flex: 1;
    min-width: 120px;
}

.preview-sample-inputs .form-label {
    font-size: 12px;
    color: #0369a1;
}

.transition-bg-preview {
    position: relative;
    width: 320px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
}

.transition-bg-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transition-bg-preview .preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.transition-bg-preview:hover .preview-overlay {
    opacity: 1;
}

.transition-bg-placeholder {
    width: 320px;
    height: 180px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.transition-bg-placeholder:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.transition-bg-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

.transition-bg-placeholder span {
    font-size: 14px;
}

/* 弹窗样式 */
.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.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-sm {
    width: 480px;
}

.modal-lg {
    width: 720px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 专家编辑弹窗布局 */
.expert-edit-layout {
    display: flex;
    gap: 24px;
}

.expert-edit-left {
    width: 160px;
    flex-shrink: 0;
    text-align: center;
}

.expert-edit-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f4f6;
    margin: 0 auto 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-edit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-edit-avatar svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.expert-edit-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.expert-edit-global-hospital {
    font-size: 13px;
    color: #6b7280;
}

.expert-edit-right {
    flex: 1;
}

.expert-edit-right .form-group {
    margin-bottom: 16px;
}

.expert-edit-right .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.expert-edit-right .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.expert-edit-right textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

.expert-edit-right select.form-control {
    background: #fff;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
}

.upload-placeholder svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 编辑弹窗小图片上传 */
.upload-area-sm {
    width: 160px;
    height: 90px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.upload-preview-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}

.upload-area-sm:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay span {
    color: #fff;
    font-size: 12px;
}

/* 编辑区块 */
.edit-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.flex-1 {
    flex: 1;
}

/* 配置标签页 */
.config-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #374151;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 配置表单网格 */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.config-group {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
}

.config-group h4 {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
}

.config-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.config-textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    resize: vertical;
}

.config-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* 颜色选择器 */
.form-color {
    width: 100%;
    height: 38px;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
}

/* 复选框样式 */
.form-group label input[type="checkbox"] {
    margin-right: 6px;
}

/* 子标题 */
.subsection-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* ============================================
   串场生成页面样式
   ============================================ */

.transition-page {
    max-width: 1200px;
}

.transition-layout {
    display: flex;
    gap: 24px;
}

/* 左侧配置面板 */
.config-panel {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.panel-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px;
    padding: 0;
    border: none;
}

/* 场景选择列表 */
.scene-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scene-option {
    display: block;
    cursor: pointer;
}

.scene-option input {
    display: none;
}

.scene-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.scene-option input:checked + .scene-option-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.scene-option-thumb {
    width: 64px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.scene-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-empty {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

.scene-option span {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* 右侧医生面板 */
.doctor-panel {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 200px);
}

.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header .section-title {
    margin: 0;
    padding: 0;
    border: none;
}

.select-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
}

.btn-sm:hover {
    background: #e5e7eb;
}

/* 医生列表 */
.doctor-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.doctor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.doctor-item:hover {
    background: #f9fafb;
}

.doctor-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.doctor-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.doctor-name {
    font-weight: 600;
    color: #111827;
    min-width: 80px;
}

.doctor-hospital {
    color: #6b7280;
    font-size: 13px;
    flex: 1;
}

.doctor-role {
    color: #3b82f6;
    font-size: 12px;
    padding: 2px 8px;
    background: #eff6ff;
    border-radius: 4px;
}

/* 按钮样式 */
.btn-block {
    width: 100%;
    justify-content: center;
}

.empty-hint {
    color: #6b7280;
    font-size: 14px;
}

.empty-hint a {
    color: #3b82f6;
}

/* 进度弹窗 */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.progress-content {
    background: #fff;
    padding: 32px 48px;
    border-radius: 12px;
    text-align: center;
    min-width: 300px;
}

.progress-content h3 {
    margin: 0 0 20px;
    color: #111827;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: #3b82f6;
    width: 0;
    transition: width 0.3s;
}

#progressText {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* 结果弹窗 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.result-content {
    background: #fff;
    padding: 32px 48px;
    border-radius: 12px;
    text-align: center;
    min-width: 320px;
}

.result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.result-icon.success {
    background: #d1fae5;
    color: #059669;
}

.result-icon svg {
    width: 32px;
    height: 32px;
}

.result-content h3 {
    margin: 0 0 8px;
    color: #111827;
}

.result-content p {
    color: #6b7280;
    margin: 0 0 24px;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================
   医生照片上传样式
   ============================================ */

/* 列表页头像 */
.doctor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.avatar-placeholder svg {
    width: 24px;
    height: 24px;
}

/* 表单页照片上传 */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-preview {
    width: 160px;
    height: 200px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.photo-preview:hover {
    border-color: #3b82f6;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 8px;
}

.photo-placeholder svg {
    width: 48px;
    height: 48px;
}

.photo-placeholder span {
    font-size: 14px;
}

.photo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-hint {
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   项目列表样式
   ============================================ */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.project-date {
    font-size: 13px;
    color: #6b7280;
}

.project-scene {
    font-size: 13px;
    color: #3b82f6;
    margin: 0 0 8px;
    padding: 4px 8px;
    background: #eff6ff;
    border-radius: 4px;
    display: inline-block;
}

.project-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

.project-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #3b82f6;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   数据表格样式
   ============================================ */

.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f9fafb;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #f9fafb;
}

.doctor-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.doctor-avatar-placeholder svg {
    width: 24px;
    height: 24px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.text-muted {
    color: #9ca3af;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 12px;
    border-radius: 6px;
}

.filter-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-summary {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 160px;
}

.filter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.filter-input-with-icon {
    position: relative;
}

.filter-input-with-icon svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.filter-input-with-icon input {
    padding-left: 2.25rem;
}

.meeting-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meeting-item {
    font-size: 13px;
    color: #6b7280;
}

.meeting-more {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #d1d5db;
}

/* ============================================
   项目详情页面样式
   ============================================ */

.project-detail-page {
    max-width: 1400px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.content-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* 会议列表 */
.meeting-list {
    display: flex;
    flex-direction: column;
}

.meeting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.meeting-card:last-child {
    border-bottom: none;
}

.meeting-card:hover {
    background: #f9fafb;
}

.meeting-info {
    flex: 1;
}

.meeting-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.meeting-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.meta-item svg {
    width: 16px;
    height: 16px;
}

.scene-tag {
    padding: 4px 10px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 6px;
    font-size: 12px;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: #d1d5db;
    flex-shrink: 0;
}

/* 专家网格 */
.doctor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #e5e7eb;
}

.doctor-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
}

.doctor-avatar-mini {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.doctor-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-avatar-mini svg {
    width: 24px;
    height: 24px;
}

.doctor-info-mini {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.doctor-name-mini {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-hospital-mini {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doctor-actions-mini {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    padding: 0;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon-danger {
    color: #ef4444;
}

.btn-icon-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.btn-link-danger {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
}

.btn-link-danger:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* 空状态提示 */
.empty-hint-box {
    padding: 48px 24px;
    text-align: center;
}

.empty-hint-box p {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

/* ============================================
   会议详情页面样式
   ============================================ */

.meeting-detail-page {
    max-width: 1400px;
}

.meeting-content {
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 16px;
    margin-bottom: 24px;
}

.experts-panel, .add-expert-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.expert-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e5e7eb;
}

.expert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
}

.expert-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-avatar svg {
    width: 32px;
    height: 32px;
}

.expert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.expert-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expert-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.expert-hospital {
    font-size: 13px;
    color: #6b7280;
}

.expert-config {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-sm {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.input-sm:focus {
    border-color: #3b82f6;
}

.input-wide {
    flex: 1;
    min-width: 200px;
}

.input-sort {
    width: 60px;
}

.input-time {
    width: 70px;
}

.input-hospital {
    width: 100%;
    max-width: 400px;
    resize: vertical;
    min-height: 40px;
    font-size: 13px;
    line-height: 1.4;
}

textarea.input-hospital {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.expert-hospital-edit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.hospital-label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.doctor-select-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e5e7eb;
}

.doctor-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
}

.doctor-select-item.added {
    opacity: 0.6;
}

.doctor-select-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.doctor-select-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-select-avatar svg {
    width: 24px;
    height: 24px;
}

.doctor-select-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doctor-select-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.doctor-select-hospital {
    font-size: 13px;
    color: #6b7280;
}

.added-tag {
    font-size: 12px;
    color: #6b7280;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
}

.added-count {
    font-size: 11px;
    color: #fff;
    background: #3b82f6;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meeting-meta-header {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.meta-tag {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
}

.meta-tag.scene {
    background: #eff6ff;
    color: #3b82f6;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* 生成素材面板 */
.generate-materials-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.generate-form {
    padding: 24px;
}

.generate-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 姓名后缀设置样式 */
.suffix-setting {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.suffix-input {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.suffix-setting-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.suffix-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.suffix-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suffix-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.status-icon {
    width: 16px;
    height: 16px;
}

.status-icon.status-on {
    stroke: #10b981;
}

.status-icon.status-off {
    stroke: #9ca3af;
}

.status-text.status-on {
    color: #10b981;
    font-weight: 500;
}

.status-text.status-off {
    color: #9ca3af;
}

.suffix-input-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

.suffix-input-field {
    margin-bottom: 8px;
}

.suffix-preview {
    font-size: 13px;
    color: #6b7280;
    padding: 8px 12px;
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
}

.preview-name {
    color: #1f2937;
    font-weight: 500;
}

.preview-suffix {
    color: #3b82f6;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.suffix-input-wrapper {
    transition: opacity 0.3s;
}

.suffix-input-wrapper input {
    width: 100%;
}

/* 后缀字号设置样式 */
.suffix-font-size-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.suffix-font-sync {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.toggle-switch-sm {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle-switch-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-sm {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 20px;
}

.toggle-slider-sm:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch-sm input:checked + .toggle-slider-sm {
    background-color: #3b82f6;
}

.toggle-switch-sm input:checked + .toggle-slider-sm:before {
    transform: translateX(16px);
}

.sync-label {
    font-size: 13px;
    color: #374151;
}

.font-size-input {
    width: 70px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
}

.font-size-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.font-size-unit {
    font-size: 12px;
    color: #6b7280;
}

.suffix-font-individual {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.font-size-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.font-size-row:last-child {
    margin-bottom: 0;
}

.font-size-label {
    width: 70px;
    font-size: 13px;
    color: #374151;
}

.font-size-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca3af;
}

.label-hint {
    font-size: 12px;
    color: #9ca3af;
    font-weight: normal;
}

.form-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.hint-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #9ca3af;
}

.generate-config {
    margin-bottom: 20px;
}

.generate-config label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert p {
    margin: 0;
    font-size: 14px;
}

/* 会议议程管理样式 */
.schedule-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 24px;
}

.schedule-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.schedule-form {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.schedule-form-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 16px;
}

.schedule-config {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* 会议环节管理样式 */
.sessions-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.sessions-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sessions-panel .panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border-radius: 6px;
    padding: 8px 10px;
    flex-wrap: wrap;
}

.session-order {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.session-name {
    width: 70px;
    flex-shrink: 0;
    font-size: 12px;
    padding: 4px 6px;
}

/* 时间下拉选择框样式 */
.time-select {
    width: 70px;
    font-size: 12px;
    padding: 4px 2px;
    flex-shrink: 0;
}

.time-sep {
    color: #9ca3af;
    font-size: 12px;
}

.session-experts {
    flex: 1;
    font-size: 11px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 60px;
}

.sessions-empty {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 14px;
}

/* 医生ID样式 */
.doctor-id {
    display: inline-block;
    background-color: #e0e7ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.doctor-id-mini {
    display: block;
    font-size: 11px;
    color: #6366f1;
    font-weight: 600;
    font-family: monospace;
    margin-bottom: 2px;
}

.expert-id {
    display: inline-block;
    background-color: #e0e7ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin-right: 6px;
}

.doctor-select-id {
    display: block;
    font-size: 10px;
    color: #6366f1;
    font-weight: 600;
    font-family: monospace;
}

/* 搜索筛选栏 */
.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-stats {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

.search-stats span {
    font-weight: 600;
    color: #3b82f6;
}

/* ============================================
   会议详情页面 V2 样式
   ============================================ */

.meeting-detail-page-v2 {
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 会议头部卡片 */
.meeting-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #fff;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.meeting-header-left .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 12px;
}

.meeting-header-left .breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.meeting-header-left .breadcrumb a:hover {
    text-decoration: underline;
}

.meeting-header-left .breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.meeting-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.meeting-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.btn-icon-danger-sm {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-danger-sm:hover {
    background: #ef4444;
    color: white;
}

.btn-icon-danger-sm svg {
    width: 16px;
    height: 16px;
}

.meeting-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.badge svg {
    width: 14px;
    height: 14px;
}

.btn-icon-danger {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.9);
}

.btn-icon-danger svg {
    width: 18px;
    height: 18px;
}

/* 环节卡片 */
.sessions-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title svg {
    width: 22px;
    height: 22px;
    color: #6366f1;
}

.card-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.count-badge {
    background: #6366f1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.btn-add svg {
    width: 16px;
    height: 16px;
}

.btn-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-all:hover {
    background: #fecaca;
    border-color: #f87171;
}

.btn-clear-all svg {
    width: 16px;
    height: 16px;
}

.sessions-list-v2 {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.session-row:hover {
    background: #f1f5f9;
}

.session-num {
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}

.drag-handle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: grab;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.2s;
}

.drag-handle:hover {
    color: #6366f1;
    background: #e0e7ff;
}

.drag-handle:active {
    cursor: grabbing;
}

.drag-handle svg {
    width: 16px;
    height: 16px;
}

.session-row.dragging {
    opacity: 0.4;
    background: #e0e7ff;
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.session-row.drag-over-top {
    border-top: 3px solid #6366f1;
    margin-top: -1px;
}

.session-row.drag-over-bottom {
    border-bottom: 3px solid #6366f1;
    margin-bottom: -1px;
}

.session-row-placeholder {
    background: linear-gradient(90deg, #e0e7ff 25%, #c7d2fe 50%, #e0e7ff 75%);
    background-size: 200% 100%;
    animation: placeholder-shimmer 1s infinite;
    border: 2px dashed #6366f1;
    border-radius: 12px;
    margin: 4px 0;
}

@keyframes placeholder-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.session-name-input {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.session-name-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.session-time-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-select-v2 {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.time-select-v2:focus {
    outline: none;
    border-color: #6366f1;
}

.duration-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    color: #6366f1;
    font-weight: 500;
}

.duration-select:focus {
    outline: none;
    border-color: #6366f1;
}

.end-time-display {
    font-size: 13px;
    color: #64748b;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    white-space: nowrap;
}

.time-divider {
    color: #94a3b8;
    font-size: 14px;
}

.session-experts-preview {
    flex: 1;
    min-width: 100px;
}

.experts-names {
    font-size: 13px;
    color: #475569;
}

.experts-names .expert-link {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}

.experts-names .expert-link:hover {
    text-decoration: underline;
}

.no-experts {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
}

.btn-delete-sm {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-delete-sm:hover {
    background: #fee2e2;
    color: #ef4444;
}

.btn-delete-sm svg {
    width: 16px;
    height: 16px;
}

.session-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-move-sm {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-move-sm:hover {
    background: #e0e7ff;
    color: #6366f1;
}

.btn-move-sm svg {
    width: 16px;
    height: 16px;
}

.empty-sessions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #94a3b8;
}

.empty-sessions svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-sessions p {
    font-size: 14px;
    margin: 0;
}

/* 主内容区布局 */
.meeting-main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

/* 专家卡片 */
.experts-card, .add-expert-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.expert-list-v2 {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.expert-card-v2 {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

.expert-card-v2:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.expert-card-v2.highlight {
    background: #dbeafe;
    box-shadow: 0 0 0 3px #3b82f6;
}

.expert-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.expert-avatar-v2 {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.expert-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-avatar-v2 svg {
    width: 28px;
    height: 28px;
}

.expert-basic-info {
    flex: 1;
    min-width: 0;
}

.expert-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.expert-id-tag {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.expert-name-v2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.expert-hospital-v2 {
    font-size: 13px;
    color: #64748b;
}

.expert-delete-form {
    flex-shrink: 0;
}

.expert-config-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.config-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.select-v2 {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.select-v2:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-sort-v2 {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.input-sort-v2:focus {
    outline: none;
    border-color: #6366f1;
}

.textarea-v2 {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    transition: all 0.2s;
}

.textarea-v2:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.expert-hospital-config {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.config-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.textarea-hospital {
    width: 100%;
    min-height: 50px;
}

.empty-experts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-experts svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-experts p {
    font-size: 14px;
    margin: 0;
}

/* 添加专家面板 */
.doctor-add-list {
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
}

.doctor-add-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.doctor-add-item:hover {
    background: #f8fafc;
}

.doctor-add-item:last-child {
    border-bottom: none;
}

.doctor-add-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.doctor-add-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-add-avatar svg {
    width: 22px;
    height: 22px;
}

.doctor-add-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doctor-add-id {
    font-size: 10px;
    color: #6366f1;
    font-weight: 600;
    font-family: monospace;
}

.doctor-add-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.doctor-add-hospital {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.added-badge {
    width: 20px;
    height: 20px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-add-expert {
    width: 36px;
    height: 36px;
    border: none;
    background: #6366f1;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-add-expert:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.btn-add-expert svg {
    width: 18px;
    height: 18px;
}

.empty-doctors {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-doctors svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-doctors p {
    font-size: 14px;
    margin: 0 0 12px 0;
}

.btn-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* 生成素材卡片 */
.generate-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.generate-content {
    padding: 24px;
}

.generate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.generate-options-card, .generate-config-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.generate-options-card h3, .generate-config-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.option-item:hover {
    background: #e2e8f0;
}

.option-item input[type="checkbox"] {
    display: none;
}

.option-check {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.option-item input[type="checkbox"]:checked + .option-check {
    background: #6366f1;
    border-color: #6366f1;
}

.option-item input[type="checkbox"]:checked + .option-check::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.option-text {
    font-size: 14px;
    color: #374151;
}

.config-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-item label {
    font-size: 13px;
    color: #64748b;
}

.generate-action {
    display: flex;
    justify-content: center;
}

.btn-generate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-generate svg {
    width: 20px;
    height: 20px;
}

.btn-generate .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
}

.alert-box.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-box p {
    margin: 0;
    font-size: 14px;
}

.result-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #ecfdf5;
    border-radius: 12px;
    margin-top: 20px;
}

.result-success svg {
    width: 48px;
    height: 48px;
    color: #10b981;
    margin-bottom: 12px;
}

.result-success p {
    font-size: 15px;
    color: #065f46;
    margin: 0 0 16px 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #10b981;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #059669;
}

.result-error {
    padding: 16px 20px;
    background: #fee2e2;
    border-radius: 12px;
    margin-top: 20px;
}

.result-error p {
    margin: 0;
    font-size: 14px;
    color: #991b1b;
}

/* 全局医生库快速添加 */
.global-doctor-add {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.quick-add-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quick-add-form select {
    flex: 1;
}

.add-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.section-divider {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.section-divider span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.empty-doctors-hint {
    padding: 20px 16px;
    text-align: center;
}

.empty-doctors-hint p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

/* 环节管理 + 添加专家 两列布局 */
.sessions-add-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.sessions-add-row .sessions-card {
    margin-bottom: 0;
}

.sessions-add-row .add-expert-card {
    height: auto;
}

/* 头部生成素材样式 */
.header-generate {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.generate-hint {
    font-size: 13px;
    color: #9ca3af;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
}

.generate-options-inline {
    display: flex;
    gap: 12px;
}

.generate-options-inline label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

.generate-options-inline input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #6366f1;
}

.generate-selects-inline {
    display: flex;
    gap: 8px;
}

.select-sm {
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
}

.select-sm:focus {
    outline: none;
    border-color: #6366f1;
}

.btn-generate-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-generate-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-generate-header:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-generate-header svg {
    width: 16px;
    height: 16px;
}

#generate-result-header {
    font-size: 13px;
}

#generate-result-header .result-success {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
}

#generate-result-header .result-error {
    color: #dc2626;
}

#generate-result-header .btn-download {
    padding: 4px 10px;
    background: #059669;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}

/* 项目环节模板样式 */
.sessions-template-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-template-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.session-template-row:hover {
    background: #f1f5f9;
}

.session-duration-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.duration-select:focus {
    outline: none;
    border-color: #6366f1;
}

.session-role-group {
    display: flex;
    align-items: center;
}

.role-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    color: #059669;
    font-weight: 500;
}

.role-select:focus {
    outline: none;
    border-color: #059669;
}

/* 默认内容输入框样式 */
.session-content-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #64748b;
}

.session-content-input:focus {
    outline: none;
    border-color: #6366f1;
}

.session-content-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

/* 医生搜索框样式 */
.doctor-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.doctor-search-box svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.doctor-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #334155;
    outline: none;
}

.doctor-search-box input::placeholder {
    color: #94a3b8;
}

/* 医生添加列表 */
.doctor-add-list {
    flex: 1;
    min-height: 200px;
    max-height: none;
    overflow-y: auto;
    padding: 8px;
}

.doctor-add-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.doctor-add-item:hover {
    background: #f1f5f9;
}

.doctor-add-item.hidden {
    display: none;
}

.doctor-add-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-add-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-add-avatar svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.doctor-add-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.doctor-add-id {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.doctor-add-name {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    flex-shrink: 0;
}

.doctor-add-hospital {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-add-expert {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.btn-add-expert:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.btn-add-expert svg {
    width: 14px;
    height: 14px;
}

.empty-doctors-hint {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* 专家库标签页 */
.expert-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.expert-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.expert-tab:hover {
    color: #334155;
    background: #f8fafc;
}

.expert-tab.active {
    color: #3b82f6;
}

.expert-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3b82f6;
}

.tab-count {
    font-size: 12px;
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

.expert-tab.active .tab-count {
    background: #dbeafe;
    color: #3b82f6;
}

/* 会议专家项的角色标签 */
.expert-role-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #16a34a;
    flex-shrink: 0;
}

/* 已添加标签 */
.added-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #94a3b8;
    flex-shrink: 0;
}

.added-count-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #dbeafe;
    color: #3b82f6;
    flex-shrink: 0;
}

.doctor-add-item.already-added {
    opacity: 0.6;
}

.meeting-expert-item {
    cursor: default;
}

/* ========== 会议议程新布局 ========== */
.agenda-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.agenda-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agenda-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenda-title svg {
    width: 24px;
    height: 24px;
    color: #6366f1;
}

.agenda-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.agenda-content {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
}

.sessions-panel-v3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 右侧专家库固定 */
.agenda-content .add-expert-card {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* 环节块 */
.session-block {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s;
}

.session-block:hover {
    border-color: #cbd5e1;
}

.session-block.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.session-block.expanded .session-body {
    display: block;
}

.session-block.expanded .expand-icon svg {
    transform: rotate(180deg);
}

/* 环节头部 */
.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.session-header:hover {
    background: #f1f5f9;
}

.session-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.session-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.session-time-badge {
    font-size: 12px;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.session-expert-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

/* 环节头部专家预览 */
.session-experts-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: 600px;
}

.session-block.expanded .session-experts-preview {
    display: none;
}

.expert-preview-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #1d4ed8;
    background: #e0f2fe;
    border: 1px solid #60a5fa;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-weight: 600;
}

.expert-preview-item.is-new {
    animation: expertPreviewIn 0.35s ease;
}

.expert-preview-item small {
    color: #3b82f6;
    font-size: 11px;
}

.expert-preview-empty {
    font-size: 12px;
    color: #1d4ed8;
    background: #e0f2fe;
    border: 1px solid #60a5fa;
    padding: 3px 8px;
    border-radius: 4px;
}

.no-experts {
    color: #1d4ed8;
    background: #e0f2fe;
    border: 1px solid #60a5fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.expert-row.is-new {
    animation: expertRowIn 0.35s ease;
}

.session-block.flash {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.doctor-item.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes expertRowIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expertPreviewIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.session-name-text {
    font-weight: 500;
    color: #374151;
}

.expand-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-left: 8px;
}

.expand-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

/* 环节内容区 */
.session-body {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

/* 环节设置栏 */
.session-settings {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-icon {
    color: #64748b;
    display: flex;
    align-items: center;
}

.setting-select {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.setting-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.setting-end {
    font-size: 13px;
    color: #64748b;
}

.setting-input, .setting-textarea {
    padding: 4px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.setting-textarea {
    min-width: 180px;
    min-height: 32px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}

.setting-input:focus, .setting-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.setting-input::placeholder {
    color: #94a3b8;
}

.session-content-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 环节专家列表 */
.session-experts-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.empty-session-experts {
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    padding: 20px;
}

/* 专家行（紧凑表格式） */
.expert-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 8px;
    border: 1px solid #93c5fd;
    border-left: 4px solid #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
    transition: all 0.15s;
}

.expert-row-avatar, .expert-row-name, .expert-row-actions {
    margin-top: 2px;
}

.expert-row:hover {
    background: #e6f0ff;
    border-color: #60a5fa;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.expert-row.highlight {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.expert-row-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-row-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-row-avatar svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.expert-row-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
    padding: 2px 6px;
    background: #e0e7ff;
    border-radius: 6px;
    min-width: 60px;
    flex-shrink: 0;
}

.expert-row-hospital {
    flex: 1;
    min-width: 120px;
}

.expert-row-suffix {
    flex: 0 0 70px;
    min-width: 70px;
}

.expert-row-content {
    flex: 1.5;
    min-width: 150px;
}

.row-input, .row-textarea {
    width: 100%;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    color: #374151;
}

.row-textarea {
    resize: vertical;
    min-height: 32px;
    font-family: inherit;
    line-height: 1.4;
    display: block;
}

.row-input:focus, .row-textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #fafafa;
}

.row-input::placeholder {
    color: #94a3b8;
}

/* 继承后缀样式 - placeholder显示项目统一后缀，灰色 */
.row-input.suffix-inherited {
    color: #9ca3af;
}
.row-input.suffix-inherited::placeholder {
    color: #9ca3af;
}
/* 手动输入后缀后变为黑色 */
.row-input.suffix-custom {
    color: #1f2937;
}

.expert-row-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.btn-row {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-row:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-row-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-row svg {
    width: 14px;
    height: 14px;
}

/* 保留旧样式兼容 */
.btn-icon-xs {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-xs:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-icon-xs.btn-icon-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon-xs svg {
    width: 14px;
    height: 14px;
}

/* 小图标按钮 */
.btn-icon-sm {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-icon-sm.btn-icon-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon-sm svg {
    width: 16px;
    height: 16px;
}

/* 目标环节选择器 */
.target-session-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-bottom: 12px;
}

.target-session-selector label {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

.select-target-session {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #d1fae5;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.select-target-session:focus {
    outline: none;
    border-color: #10b981;
}

/* 清空专家按钮 */
.btn-clear-experts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-experts:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-clear-experts svg {
    width: 16px;
    height: 16px;
}

/* 课题配置面板 */
.topic-config-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.topic-config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.topic-config-header:hover {
    background: #f9fafb;
}

.topic-config-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.topic-config-title svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.topic-config-title small {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

.topic-config-toggle {
    transition: transform 0.2s;
}

.topic-config-toggle svg {
    width: 20px;
    height: 20px;
    color: #9ca3af;
}

.topic-config-toggle.expanded {
    transform: rotate(180deg);
}

.topic-config-body {
    padding: 0 20px 16px;
    border-top: 1px solid #f3f4f6;
}

.topic-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding-top: 16px;
}

.topic-config-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.topic-config-item label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.topic-config-item span {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.topic-config-item .color-preview {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.topic-config-hint {
    margin-top: 12px;
    text-align: right;
}

.topic-config-hint a {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.topic-config-hint a:hover {
    text-decoration: underline;
}
