/* 字体定义 */
@font-face {
    font-family: 'Fusion Pixel';
    src: url('/font/fusion-pixel-12px-monospaced-zh_hans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 左侧侧边栏布局 */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex: 0 0 240px;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 16px 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 8px 16px;
}

.brand-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
}

.sidebar .nav-title {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 8px 16px;
}

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item, .nav-sub-item { display: block; padding: 10px 12px; border: none; border-radius: 0; background: transparent; color:#333; text-decoration:none; transition: color .2s; }
.nav-item { font-size: 16px; font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.nav-item:hover, .nav-sub-item:hover { color:#000; background: #f6f7f8; border-radius: 10px; }
.nav-item.active, .nav-sub-item.active { color:#000; font-weight: 700; text-decoration: underline; }

.nav-group { width: 100%; text-align:left; padding:10px 12px; border:none; border-radius:0; background: transparent; cursor:pointer; transition: color .2s; display:flex; align-items:center; justify-content:space-between; font-size: 16px; font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.nav-group:hover { color:#000; background: #f6f7f8; border-radius: 10px; }
.nav-group.open { color:#000; font-weight: 700; }
.nav-group .caret { width: 18px; height: 10px; }

.nav-sub { display:none; padding-left: 8px; }
.nav-sub.open { display:block; }

.main-content {
    flex: 1;
    min-width: 0;
}

/* 悬浮头像按钮（中小屏显示） */
.fab-avatar {
    position: fixed;
    left: 16px;
    top: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    display: none; /* 默认桌面隐藏 */
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

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

/* 中小屏：隐藏侧栏，用按钮打开 */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1100; /* 覆盖头像按钮 */
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 18px rgba(0,0,0,0.15); }
    .fab-avatar { display: inline-flex; }
}

/* 侧边栏遮罩（小屏） */
.sidebar-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(1px);
    display: none;
    z-index: 1050; /* 低于侧栏，高于头像按钮 */
}
.sidebar-mask.show { display: block; }

/* 侧边栏内“收起”按钮（小屏显示） */
.sidebar-close {
    display: none;
}
@media (max-width: 1024px) {
    .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #e5e5e5;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        cursor: pointer;
        margin-left: auto;
    }
    .sidebar-close img { width: 14px; height: 24px; }
}

/* 页面容器样式 */
.page-container {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* 管理页面布局样式 */
.management-layout {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
}

/* 管理页面标题 */
.management-header {
    text-align: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.management-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin: 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 备忘录区域 */
.memo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.memo-content {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.memo-display p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding-right: 100px; /* 为按钮留出空间 */
}

.memo-edit {
    margin-bottom: 12px;
}

.memo-edit textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    resize: vertical;
    min-height: 80px;
}

.memo-edit textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.memo-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.memo-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
}

.memo-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.memo-btn.edit-btn {
    color: #007bff;
    border-color: #007bff;
}

.memo-btn.edit-btn:hover {
    background: #e3f2fd;
    border-color: #0056b3;
}

.memo-btn.save-btn {
    color: #28a745;
    border-color: #28a745;
}

.memo-btn.save-btn:hover {
    background: #d4edda;
    border-color: #1e7e34;
}

/* 管理页面分隔线 */
.management-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 auto 20px;
    max-width: 1200px;
}

/* 筛选功能区域 */
.filter-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

/* 搜索区域 */
.search-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-container {
    flex: 0 0 200px;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #000;
    background: #fff;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.search-status {
    flex: 1;
    font-size: 14px;
    color: #666;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 筛选按钮区域 */
.filter-area {
    margin-bottom: 16px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 999px; /* 椭圆形状 */
    background: #fff;
    color: #000;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.filter-btn.active {
    background: #666; /* 深灰色背景，与新建页面保持一致 */
    color: #fff;
    border-color: #666;
}

.filter-btn.active:hover {
    background: #555;
    border-color: #555;
}

/* 标签筛选区域 */
.tag-filter-area {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-filter-btn {
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 999px; /* 椭圆形状 */
    background: #fff;
    color: #000;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-filter-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.tag-filter-btn.active {
    background: #666; /* 深灰色背景，与筛选按钮保持一致 */
    color: #fff;
    border-color: #666;
}

.tag-filter-btn.active:hover {
    background: #555;
    border-color: #555;
}

/* 新建分割线 */
.new-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 auto 20px;
    max-width: 1200px;
}

/* 文章卡片样式 */
.article-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.article-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-card.locked {
    border-color: #ffc107;
    background: #fffbf0;
}

.article-card.hidden {
    opacity: 0.6;
    border-color: #6c757d;
    background: #f8f9fa;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.4;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex: 1;
    margin-right: 12px;
}

.article-status {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

.status-badge.published {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.locked {
    background: #ffeaa7;
    color: #d63031;
}

.status-badge.hidden {
    background: #e2e3e5;
    color: #495057;
}

.article-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-date {
    font-size: 12px;
    color: #999;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.article-tag {
    padding: 2px 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 10px;
    color: #666;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.action-btn.edit {
    color: #007bff;
    border-color: #007bff;
}

.action-btn.edit:hover {
    background: #e3f2fd;
    border-color: #0056b3;
}

.action-btn.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.action-btn.delete:hover {
    background: #f8d7da;
    border-color: #c82333;
}

.action-btn.view {
    color: #28a745;
    border-color: #28a745;
}

.action-btn.view:hover {
    background: #d4edda;
    border-color: #1e7e34;
}

.action-btn.lock {
    color: #ffc107;
    border-color: #ffc107;
}

.action-btn.lock:hover {
    background: #fff3cd;
    border-color: #e0a800;
}

.action-btn.lock.locked {
    background: #ffc107;
    color: #000;
}

.action-btn.hide {
    color: #6c757d;
    border-color: #6c757d;
}

.action-btn.hide:hover {
    background: #e2e3e5;
    border-color: #5a6268;
}

.action-btn.hide.hidden {
    background: #6c757d;
    color: #fff;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 20px;
    color: #666;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.loading-state p {
    margin: 0;
    font-size: 14px;
}

/* 确认删除对话框 */
.delete-confirm {
    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;
}

.delete-confirm-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.delete-confirm h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #000;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.delete-confirm p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.delete-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
}

.confirm-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.confirm-btn.danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* 编辑页面样式 */
.edit-header {
    text-align: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #e5e5e5;
}

.edit-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin: 0 0 12px 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #666;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.edit-file-name {
    font-weight: 500;
    color: #000;
}

.edit-section {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.edit-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 状态面板样式 - 位于按钮下方 */
.edit-status-panel {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.status-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.status-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    transition: all 0.3s ease;
}

.status-indicator.ready {
    background: #28a745;
}

.status-indicator.processing {
    background: #ffc107;
    animation: pulse 1.5s infinite;
}

.status-indicator.error {
    background: #dc3545;
}

.status-indicator.success {
    background: #28a745;
}

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

.status-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.status-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.status-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.status-log {
    margin-top: 16px;
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}

.log-header {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.log-content {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-item {
    font-size: 12px;
    color: #666;
    padding: 4px 8px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.log-item.success {
    border-left-color: #28a745;
    color: #155724;
}

.log-item.error {
    border-left-color: #dc3545;
    color: #721c24;
}

.log-item.warning {
    border-left-color: #ffc107;
    color: #856404;
}

/* 编辑表单内容区域 */
.edit-form-content {
    width: 100%;
}

/* 编辑页面状态提醒样式 */
.edit-top-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.edit-top-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.edit-top-notification.error {
    background: #f44336;
}

.edit-status-message {
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
}

.edit-status-message.show {
    opacity: 1;
}

.edit-status-message.success {
    color: #4CAF50;
}

.edit-status-message.error {
    color: #f44336;
}

/* 编辑器操作按钮样式 */
.editor-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        flex: none;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .tag-filter-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tag-filter-buttons {
        justify-content: flex-start;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-title {
        margin-right: 0;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-actions {
        justify-content: flex-start;
    }
    
    .action-btn {
        font-size: 10px;
        padding: 3px 6px;
    }
}

.management-sidebar {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.management-main {
    flex: 3;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

/* 侧边栏头部 */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.draft-count {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
}

/* 主内容区头部 */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.main-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.published-count {
    font-size: 12px;
    color: #666;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 草稿列表样式 */
.draft-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.draft-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.draft-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.draft-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    margin-bottom: 4px;
}

.draft-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* 已发布内容列表样式 */
.published-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.published-item {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.published-item:hover {
    border-color: #28a745;
    box-shadow: 0 2px 4px rgba(40,167,69,0.1);
}

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

.published-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
    flex: 1;
}

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

.action-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.action-btn.edit {
    color: #007bff;
    border-color: #007bff;
}

.action-btn.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.published-item-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 16px;
}

.published-item-summary {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .management-layout {
        flex-direction: column;
        padding: 16px;
    }
    
    .management-sidebar,
    .management-main {
        flex: none;
    }
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fusion Pixel', monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Fusion Pixel', monospace;
    background: white;
    color: #000;
    line-height: 1.6;
    font-size: 14px;
}

/* 容器 */
.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}

/* 编辑器页面的容器特殊处理，确保内容左对齐 */
body[data-page="editor"] .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 顶部编辑器工具栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.top-btn {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}
.top-btn:hover { 
    background: #f6f7f8; 
}

.top-btn-save {
    background: #fff;
    color: #000;
    border-color: #d0d0d0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-btn-save:hover {
    background: #f0f0f0;
    border-color: #999;
}

.top-btn-publish {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.top-btn-publish:hover {
    background: #45a049;
    border-color: #45a049;
}
.top-sep { 
    width: 1px; 
    height: 22px; 
    background: #eee; 
    flex-shrink: 0;
    align-self: center;
}
.top-avatar { 
    padding: 0; 
    border-radius: 50%; 
    width: 36px; 
    height: 36px; 
    display: inline-flex; 
    align-items:center; 
    justify-content:center;
    flex-shrink: 0;
    margin-right: auto; /* 固定在左侧 */
    overflow: hidden; /* 确保图片不会溢出圆形边框 */
}
.top-avatar img { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; /* 保持图片比例，填充容器 */
    display: block; /* 移除图片底部的默认间距 */
}

/* 顶部通知区域 */
.top-notification {
    flex: 1;
    min-width: 300px;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 0 16px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* 按钮现在直接作为 .topbar 的子元素，每个都可以独立换行 */
/* 让通知区域后的第一个元素自动右对齐 */
.top-notification + .media-buttons-group,
.top-notification + .top-btn,
.top-notification + .top-sep {
    margin-left: auto;
}

/* 媒体按钮组样式 */
.media-buttons-group {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* 折叠按钮样式 */
.media-toggle-btn {
    padding: 4px 6px !important;
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-toggle-btn:hover {
    background: #f6f7f8;
    border-color: #999;
}

.toggle-icon {
    font-size: 10px;
    color: #666;
    line-height: 1;
    transition: transform 0.2s ease;
}

/* 媒体按钮容器 */
.media-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* 下拉菜单包装器 */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* 下拉按钮样式 */
.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #666;
    display: inline-block;
    margin-left: 4px;
    vertical-align: middle;
    margin-top: 2px;
}

/* 按钮内的下拉箭头颜色 */
.btn-primary .dropdown-arrow {
    border-top-color: #fff;
}

/* 下拉菜单样式 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px; /* 减小间距，避免鼠标移动时出现间隙 */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 140px;
    overflow: hidden;
    pointer-events: auto; /* 确保菜单可以接收鼠标事件 */
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: #fff;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: #f6f7f8;
}

.dropdown-item:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* 响应式：小屏幕时保持与正常屏幕一致的样式 */
/* 已取消小屏幕时的间距和字体缩小 */

/* 项目容器 */
.project {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* 项目封面图片 */
.project-hero {
    margin: 24px 0 20px 0; /* 添加上边距，与顶部工具栏保持距离 */
}

.image-upload-area {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    min-height: 200px;
}

.hero-image {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.hero-image[src]:not([src=""]) {
    display: block;
}

/* 当没有图片时显示占位符 */
.image-upload-area:not(:has(.hero-image[src])) .upload-text,
.image-upload-area:has(.hero-image:not([src])) .upload-text,
.image-upload-area:has(.hero-image[src=""]) .upload-text {
    opacity: 1;
    color: #999;
    font-weight: normal;
}

.image-upload-area:not(:has(.hero-image[src])) .upload-overlay,
.image-upload-area:has(.hero-image:not([src])) .upload-overlay,
.image-upload-area:has(.hero-image[src=""]) .upload-overlay {
    opacity: 1;
    background: transparent;
}

/* 当有图片时隐藏占位文本 */
.image-upload-area:has(.hero-image[src]:not([src=""])) .upload-text {
    opacity: 0;
}

.image-upload-area:has(.hero-image[src]:not([src=""])) .upload-overlay {
    opacity: 0;
}

.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.3s ease;
    border-radius: 12px;
}

.image-upload-area:hover .upload-overlay {
    opacity: 1;
}

.image-upload-area.drag-over {
    border: 2px dashed #666;
}

.image-upload-area.drag-over .upload-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.upload-text {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.resolution-display {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
}

/* 项目标题输入框 */
.project-title-input {
    font-size: 40px;
    line-height: 1.2;
    font-weight: bold;
    margin: 0 0 20px 0;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #000;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;
}

.project-title-input::placeholder {
    color: #999;
}

/* 项目描述输入框 */
.project-description-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #000;
    line-height: 1.8;
    font-size: 14px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;
    resize: none; /* 禁止调整大小 */
}

.project-description-input::placeholder {
    color: #999;
}

/* 分隔线 */
.project-divider {
    height: 1px;
    background: #eaeaea;
    margin: 20px 0;
}

/* 编辑器区域分隔 */
.editor-section {
    margin: 0;
    padding: 0;
}

.editor-section-title {
    margin-bottom: 0;
}

.editor-section-basic {
    margin: 0;
    padding: 20px 0;
}

.editor-section-unique {
    margin: 0;
    padding: 20px 0;
}

.editor-section-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
    width: 100%;
}

/* 基础字段样式 */
.basic-field {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* 标签字段特殊处理：第一行对齐 */
.tags-field {
    align-items: center; /* 第一行居中对齐 */
}

.basic-field:last-child {
    margin-bottom: 0;
}

.basic-field-label {
    min-width: 72px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.basic-field-content {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

/* 标签字段特殊处理：第一行对齐 */
.tags-field {
    align-items: center; /* 居中对齐 */
}

/* 标签字段特殊布局：输入框和标签在同一行，可以换行 */
.tags-field-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.tags-field-content .tags-input-wrapper {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: 22px; /* 与标签文本高度对齐 */
}

/* 标签显示区域在同一行，可以换行 */
.tags-field-content .tags-display {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-left: 0;
    margin-top: 0;
}

.basic-field-content .tags-input-wrapper {
    margin-right: 0;
}

.basic-field-inline {
    align-items: center;
    gap: 32px;
}

.basic-inline-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.basic-inline-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.basic-inline-input {
    width: 160px;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
}

.basic-inline-input:focus {
    outline: none;
    border-color: #666;
}

/* 日期输入框 */
.date-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    position: relative;
}

.date-input-field {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: transparent;
    border: none;
    outline: none;
    padding: 4px 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 80px;
}

.date-input-field::-webkit-calendar-picker-indicator {
    display: none;
}

.date-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    color: #666;
    transition: color 0.2s;
}

.date-icon:hover {
    color: #000;
}

/* 分类按钮组 */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.category-button {
    padding: 4px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fafafa;
    color: #4d4d4d;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.category-button:hover {
    border-color: #bbb;
    background: #fff;
}

.category-button.selected {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 标签输入区域 */
.tags-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
    width: auto; /* 自适应宽度，包含输入框和按钮 */
    min-width: 120px; /* 最小宽度 */
    flex-shrink: 0;
    height: 22px; /* 与标签文本高度对齐 */
}

.tags-input-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* 下划线延伸到按钮位置 */
    height: 1px;
    background: #ddd;
    transition: background-color 0.3s ease;
}

.tags-input-wrapper:focus-within::after {
    background: #666;
}

.tags-input-field {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 22px; /* 与标签文本高度对齐 */
    display: flex;
    align-items: center;
}

.tags-confirm-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
    transition: all 0.2s;
}

.tags-confirm-btn:hover {
    color: #000;
    transform: scale(1.1);
}

.tags-confirm-btn:active {
    transform: scale(0.95);
}

/* 标签显示区域 */
.tags-display {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    align-items: center;
    margin-left: 0;
    padding: 0;
    width: auto;
    flex-shrink: 0;
}

.tag-item {
    cursor: pointer;
    color: #999; /* 中灰色 - 未选中状态 */
    transition: all 0.2s;
    user-select: none;
}

.tag-item:hover {
    color: #666;
}

.tag-item.selected {
    color: #000; /* 黑色 - 选中状态 */
    text-decoration: underline; /* 下划线 */
}

.tag-display-item {
    cursor: pointer;
    color: #999;
    transition: all 0.2s;
}

.tag-display-item:hover {
    color: #666;
}

.tag-display-item.selected {
    color: #000;
    text-decoration: underline;
}

/* 元信息区域 */
.project-meta {
    margin: 0 0 20px 0;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.meta-line {
    display: flex;
    align-items: center;
    margin: 6px 0;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.meta-label {
    flex: none;
    min-width: 6px;
    color: #000000;
    font-size: 14px;
}

.meta-label-spaced {
    margin-left: 24px;
}

.meta-value {
    flex: 1;
    font-size: 14px;
    color: #000;
}

/* 分类标签 */
.category-tags {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    background: #fff;
    color: #000;
}

/* 标签输入区域 */
.tags-input {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-text-input {
    width: 120px; /* 增加宽度 */
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 8px; /* 0.8倍高度 */
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
}

.tag-text-input:focus {
    outline: none;
    border-color: #666;
}

.tag-text-input::placeholder {
    color: #999;
}

.add-tag-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.add-tag-btn:hover {
    background: #f5f5f5;
    border-color: #666;
    color: #000;
}

.tag-buttons {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-button-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tag-button-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tag-button-label {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    background: #fff;
    color: #000;
    transition: all 0.3s ease;
}

.tag-button-item input[type="checkbox"]:checked + .tag-button-label {
    background: #666;
    color: #fff;
    border-color: #666;
}

/* Section 选择器 - 放在封面上方 */
.section-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 0;
}

.section-selector-label {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.section-button-group {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.section-button-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.section-button-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.section-button-label {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    color: #000;
    transition: all 0.3s ease;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.section-button-item input[type="radio"]:checked + .section-button-label {
    background: #666;
    color: #fff;
    border-color: #666;
    font-weight: 500;
}

.section-button-item input[type="radio"]:hover + .section-button-label {
    border-color: #999;
    background: #f5f5f5;
}

.section-button-item input[type="radio"]:checked:hover + .section-button-label {
    background: #555;
    border-color: #555;
}

/* 按钮组 */
.button-group {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.button-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.button-item input[type="radio"],
.button-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.button-label {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.4;
    background: #fff;
    color: #000;
    transition: all 0.3s ease;
}

.button-item input[type="radio"]:checked + .button-label,
.button-item input[type="checkbox"]:checked + .button-label {
    background: #666;
    color: #fff;
    border-color: #666;
}

.button-item input[type="radio"]:disabled + .button-label,
.button-item input[type="checkbox"]:disabled + .button-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 项目详情 */
.project-details {
    margin: 0;
}

.detail-line {
    display: flex;
    align-items: baseline;
    margin: 6px 0;
    gap: 12px;
}

.detail-label {
    flex: none;
    min-width: 66px;
    color: #666;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    font-size: 14px;
    color: #000;
}

.detail-input {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 8px; /* 0.8倍高度 */
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
}

.detail-input:focus {
    outline: none;
    border-color: #666;
}

.detail-input::placeholder {
    color: #999;
}

/* 时间周期输入 */
.period-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.period-start-input,
.period-end-input {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px 8px; /* 0.8倍高度 */
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
}

.period-start-input:focus,
.period-end-input:focus {
    outline: none;
    border-color: #666;
}

.period-start-input::placeholder,
.period-end-input::placeholder {
    color: #999;
}

.period-separator {
    color: #666;
    font-size: 14px;
    font-weight: normal;
    flex: none;
}

/* 链接 */
.links {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}

.link {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
    line-height: 1;
}

.link:hover {
    opacity: 0.8;
}

/* 链接输入区域 */
.links-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-row {
    display: inline-block;
    margin-bottom: 6px;
    margin-right: 8px;
    vertical-align: middle;
}

.link-row .link-text-input,
.link-row .link-url-input,
.link-row .remove-link-btn {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.link-text-input {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 4px 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
    width: auto;
    min-width: 60px;
    flex: 1;
    display: inline-block;
}

.link-url-input {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 4px 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
    width: auto;
    min-width: 150px;
    flex: 2;
    display: inline-block;
}

.link-text-input:focus,
.link-url-input:focus {
    outline: none;
    border-bottom-color: #666;
}

.link-text-input::placeholder,
.link-url-input::placeholder {
    color: #999;
}

.add-link-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.add-link-btn:hover {
    background: #f5f5f5;
    border-color: #666;
    color: #000;
}

.remove-link-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.remove-link-btn:hover {
    background: #f5f5f5;
    border-color: #666;
    color: #000;
}

/* 独特字段样式 */
.unique-field {
    margin: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.unique-field-label {
    display: inline-block;
    color: #666;
    font-size: 14px;
    font-weight: normal;
    flex-shrink: 0;
    vertical-align: baseline;
}

/* 链接字段标签对齐到右上角 */
.unique-field:has(#projectLinksContainer) {
    align-items: flex-start;
}

.unique-field:has(#projectLinksContainer) .unique-field-label {
    vertical-align: top;
    padding-top: 0;
}

.unique-field-content {
    display: flex;
    flex: 1;
    align-items: baseline;
    gap: 8px;
}

.unique-field-content .add-link-btn {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: 0;
}

.unique-field-input {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 4px 0;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.3s ease;
    width: 100%;
    min-width: 0;
    display: block;
    vertical-align: baseline;
}

.unique-field-input:focus {
    outline: none;
    border-bottom-color: #666;
}

.unique-field-input::placeholder {
    color: #999;
}

/* 链接输入容器 */
.links-input-container {
    display: block;
    flex: 1;
    vertical-align: top;
}

.links-input-container .link-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
    margin-right: 0;
}

.link-row .link-text-input,
.link-row .link-url-input,
.link-row .remove-link-btn {
    display: inline-block;
    vertical-align: middle;
}

/* 创建按钮区域 */
.create-section {
    margin: 20px 0 30px 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-btn {
    background: #000;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.3s ease;
}

.create-btn:hover {
    background: #333;
}

.create-btn:active {
    background: #666;
}

.create-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 创建反馈文本 */
.create-feedback {
    font-size: 14px;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    white-space: nowrap;
    pointer-events: none;
}

.create-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.create-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.create-feedback.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Markdown编辑器区域 */
.editor-section {
    margin: 20px 0;
}

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

.editor-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #000;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 素材库标签切换 */
.assets-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.assets-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.2s ease;
}

.assets-tab:hover {
    color: #333;
}

.assets-tab.active {
    color: #4CAF50;
    font-weight: 500;
}

.assets-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4CAF50;
    z-index: 1;
}

/* 素材库内容面板 */
.assets-content {
    margin-top: 20px;
}

.assets-panel {
    display: none;
}

.assets-panel.active {
    display: block;
}

/* 素材库面板头部 */
.assets-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

/* 分组标签容器 */
.assets-groups-container {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.assets-groups-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.assets-groups-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
}

.assets-group-tab {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.assets-group-tab:hover {
    color: #4CAF50;
}

.assets-group-tab.active {
    color: #4CAF50;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.assets-groups-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.assets-group-action-btn {
    padding: 6px 16px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.assets-group-action-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    background: #f0f9f0;
}

.assets-subgroups-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.assets-subgroup-tab {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.assets-subgroup-tab:hover {
    color: #4CAF50;
}

.assets-subgroup-tab.active {
    color: #4CAF50;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* 选中操作栏 */
.assets-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.assets-selection-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.assets-select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.assets-select-all-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.assets-selection-count {
    font-size: 14px;
    color: #666;
}

.assets-deselect-btn {
    padding: 4px 12px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.assets-deselect-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.assets-selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assets-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.assets-action-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    background: #f0f9f0;
}

.assets-panel-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.assets-panel-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.assets-watermark-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #999;
}

.watermark-text {
    transition: color 0.2s ease;
}

.watermark-text:hover {
    color: #4CAF50;
}

.watermark-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #666;
    font-size: 12px;
    cursor: help;
    line-height: 1;
}

.watermark-help:hover {
    background: #d5d5d5;
}

/* 水印设置模态框 */
.watermark-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;
}

/* 图片选择模态框内的水印模态框需要更高的层级 */
#imageSelectWatermarkModal {
    z-index: 10002 !important;
}

.watermark-modal.show {
    display: flex;
}

.watermark-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
}

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

/* ====== 合集管理页面样式 ====== */

.collections-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collection-card {
    background: #fff;
}

.collection-action-btn {
    transition: all 0.2s ease;
}

.collection-action-btn-primary {
    margin-bottom: 8px;
}

/* 合集模态框样式 */
.collection-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.collection-modal-overlay.show {
    display: flex !important;
}

.collection-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

.collection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.collection-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.collection-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.collection-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.collection-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.collection-form-group {
    margin-bottom: 20px;
}

.collection-form-group:last-child {
    margin-bottom: 0;
}

.collection-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.collection-form-input,
.collection-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.collection-form-input:focus,
.collection-form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.collection-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.collection-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.collection-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collection-modal-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.collection-modal-btn-confirm:hover {
    background: #45a049;
}

.collection-modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.collection-modal-btn-cancel:hover {
    background: #e5e5e5;
}

/* 合集文章管理模态框 */
.collection-articles-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.collection-articles-modal-overlay.show {
    display: flex !important;
}

.collection-articles-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

.collection-articles-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.collection-articles-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.collection-articles-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.collection-articles-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.collection-articles-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.collection-articles-search {
    margin-bottom: 20px;
}

.collection-articles-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 8px;
}

.collection-article-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.collection-article-item:hover {
    background: #f5f5f5;
}

.collection-article-item.in-collection {
    background: #e8f5e9;
}

.collection-article-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.collection-articles-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.watermark-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.watermark-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.watermark-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.watermark-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.watermark-modal-body {
    padding: 24px;
}

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

.watermark-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.watermark-form-group input,
.watermark-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    font-family: inherit;
    resize: vertical;
}

.watermark-form-group input:focus,
.watermark-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.watermark-form-group textarea {
    min-height: 200px;
    line-height: 1.5;
}

.watermark-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.watermark-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.watermark-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.watermark-checkbox-label span {
    font-size: 14px;
    color: #333;
}

.watermark-btn-cancel,
.watermark-btn-save {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watermark-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.watermark-btn-cancel:hover {
    background: #e5e5e5;
}

.watermark-btn-save {
    background: #4CAF50;
    color: #fff;
}

/* 视频模态框样式 */
.video-modal-overlay {
    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;
}

.video-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.video-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.video-modal-body {
    padding: 24px;
}

.video-form-group {
    margin-bottom: 20px;
}

.video-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.video-form-group .required {
    color: #f44336;
}

.video-form-input,
.video-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.video-form-input:focus,
.video-form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.video-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.video-form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.video-thumbnail-preview {
    margin-top: 8px;
}

.video-thumbnail-preview img {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.video-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.video-btn-cancel,
.video-btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.video-btn-cancel:hover {
    background: #e5e5e5;
}

.video-btn-submit {
    background: #4CAF50;
    color: #fff;
}

.video-btn-submit:hover {
    background: #45a049;
}

.video-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.watermark-btn-save:hover {
    background: #45a049;
}

.watermark-btn-save:active {
    background: #3d8b40;
}

.assets-upload-btn {
    padding: 8px 20px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.assets-upload-btn:hover {
    background: #45a049;
}

/* 确认删除模态框样式 */
.confirm-delete-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

/* 当通过 style.display 设置为 flex 时显示 */
.confirm-delete-modal-overlay[style*="flex"],
.confirm-delete-modal-overlay[style*="display: flex"],
.confirm-delete-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.confirm-delete-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    overflow: hidden;
}

.confirm-delete-modal-body {
    padding: 24px;
}

.confirm-delete-modal-body p {
    margin: 0;
    font-size: 16px;
    color: #333;
    text-align: center;
    line-height: 1.5;
}

.confirm-delete-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.confirm-delete-btn-cancel,
.confirm-delete-btn-confirm {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.confirm-delete-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.confirm-delete-btn-cancel:hover {
    background: #e5e5e5;
    color: #333;
}

.confirm-delete-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.confirm-delete-btn-confirm:hover {
    background: #45a049;
}

/* 视频快捷访问按钮样式 */
.video-quick-access-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.video-quick-btn,
.video-quick-settings-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.video-quick-btn:hover,
.video-quick-settings-btn:hover {
    background: #f5f5f5;
    color: #4CAF50;
}

.video-quick-btn:active,
.video-quick-settings-btn:active {
    background: #e5e5e5;
}

.video-quick-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.video-quick-settings-btn {
    font-size: 16px;
    padding: 4px 6px;
}

/* 快捷访问设置模态框样式 */
.video-quick-settings-modal-overlay {
    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;
}

.video-quick-settings-modal-overlay[style*="flex"],
.video-quick-settings-modal-overlay[style*="display: flex"],
.video-quick-settings-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.video-quick-settings-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    overflow: hidden;
}

.video-quick-settings-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.video-quick-settings-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.video-quick-settings-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-quick-settings-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.video-quick-settings-modal-body {
    padding: 24px;
}

.video-quick-settings-form-group {
    margin-bottom: 20px;
}

.video-quick-settings-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.video-quick-settings-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.video-quick-settings-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.video-quick-settings-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.video-quick-settings-btn-cancel,
.video-quick-settings-btn-save {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.video-quick-settings-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.video-quick-settings-btn-cancel:hover {
    background: #e5e5e5;
    color: #333;
}

.video-quick-settings-btn-save {
    background: #4CAF50;
    color: #fff;
}

.video-quick-settings-btn-save:hover {
    background: #45a049;
}

.assets-upload-btn:active {
    background: #3d8b40;
}

.assets-upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 搜索框样式 */
.assets-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.assets-search-input {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    width: 200px;
    transition: border-color 0.2s ease;
    background: #fff;
}

.assets-search-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.assets-search-input::placeholder {
    color: #999;
}

/* 图片网格 */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    gap: 16px;
    margin-bottom: 24px;
    justify-content: start;
}

/* 分页控件 */
.assets-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
}

.assets-page-btn {
    padding: 8px 16px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assets-page-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.assets-page-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.assets-page-info {
    font-size: 14px;
    color: #666;
}

.assets-page-info strong {
    color: #333;
    font-weight: 500;
}

.assets-image-item {
    position: relative;
    width: 150px;
    height: 150px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.assets-image-item.selected {
    border: 2px solid #4CAF50;
}

.assets-image-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    z-index: 10;
    cursor: pointer;
    accent-color: #4CAF50;
}

.assets-image-item:hover {
    border: 1px solid #4caf50;
}

.assets-item-thumb {
    width: 100%;
    height: calc(100% - 30px);
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.assets-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.assets-item-title {
    width: 100%;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
    font-weight: 400;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 22px;
    box-sizing: border-box;
}

.assets-item-icon {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    font-size: 48px;
    background: #f5f5f5;
}

.assets-item-info {
    padding: 12px;
}

.assets-item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assets-item-meta {
    font-size: 12px;
    color: #999;
}

.assets-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.assets-image-item:hover .assets-item-delete {
    display: flex;
}

.assets-item-delete:hover {
    background: rgba(211, 47, 47, 0.9);
}

.assets-image-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.assets-image-item:hover .assets-image-actions {
    display: flex;
}

.assets-image-enlarge-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.assets-image-enlarge-btn:hover {
    background: rgba(0,0,0,0.8);
}

.assets-image-enlarge-icon {
    width: 14px;
    height: 14px;
    display: block;
    object-fit: contain;
}

.assets-image-menu {
    position: relative;
}

.assets-image-menu-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
    font-weight: bold;
}

.assets-image-menu-btn:hover {
    background: rgba(0,0,0,0.8);
}

.assets-image-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.assets-image-menu-dropdown.show {
    display: block;
}

.assets-image-menu-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.assets-image-menu-item:hover {
    background: #f5f5f5;
}

.assets-image-menu-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

/* 音频列表 */
.assets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.assets-list .assets-item {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
}

.assets-list .assets-item-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.assets-list .assets-item-info {
    flex: 1;
    padding: 0;
}

.assets-list .assets-item-delete {
    position: static;
    display: flex;
}

/* 音频卡片网格 */
.assets-audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.assets-audio-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
}

.assets-audio-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.assets-audio-content {
    position: relative;
}

.assets-audio-title-row {
    margin-bottom: 8px;
}

.assets-audio-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.assets-audio-name-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 音频菜单样式 */
.assets-audio-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.assets-audio-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.assets-audio-menu-btn:hover {
    color: #333;
}

.assets-audio-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.assets-audio-menu-dropdown.show {
    display: block;
}

.assets-audio-menu-item {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.assets-audio-menu-item:hover {
    background: #f5f5f5;
}

.assets-audio-menu-item:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.assets-audio-rename-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #4CAF50;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    outline: none;
}

.assets-audio-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.assets-audio-player {
    margin-top: 8px;
}

.assets-audio-player audio {
    width: 100%;
    height: 32px;
}


/* 视频卡片网格 */
.assets-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.assets-video-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

.assets-video-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.assets-video-content {
    display: flex;
    flex-direction: column;
}

.assets-video-thumb {
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    position: relative;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.assets-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.assets-video-info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assets-video-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.assets-video-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
}

.assets-video-card .assets-audio-menu {
    flex-shrink: 0;
    margin-left: 8px;
}

.assets-video-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.assets-video-urls {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assets-video-url-item {
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #4CAF50;
}

.assets-video-url-label {
    color: #666;
    margin-right: 4px;
    flex-shrink: 0;
}

.assets-video-url-item a {
    color: #4CAF50;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.assets-video-url-item a:hover {
    text-decoration: underline;
}

/* 兼容旧的单个链接样式 */
.assets-video-url {
    font-size: 12px;
    color: #4CAF50;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assets-video-url a {
    color: #4CAF50;
    text-decoration: none;
}

.assets-video-url a:hover {
    text-decoration: underline;
}

.assets-video-meta {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.assets-video-card .assets-item-delete {
    position: absolute;
    top: 12px;
    right: 12px;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.save-btn, .draft-btn, .publish-btn, .new-page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

.save-btn:hover, .draft-btn:hover, .publish-btn:hover, .new-page-btn:hover {
    background: #f5f5f5;
    border-color: #666;
}

.save-btn:active, .draft-btn:active, .publish-btn:active, .new-page-btn:active {
    background: #e0e0e0;
}

.save-btn:disabled, .draft-btn:disabled, .publish-btn:disabled, .new-page-btn:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* 新建页面按钮样式 */
.new-page-btn {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.new-page-btn:hover {
    background: #bbdefb;
    border-color: #90caf9;
}

.new-page-btn:active {
    background: #90caf9;
}

/* 草稿按钮样式 */
.draft-btn {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.draft-btn:hover {
    background: #ffeaa7;
    border-color: #fdcb6e;
}

.draft-btn:active {
    background: #fdcb6e;
}

.draft-btn:disabled {
    background: #f0f0f0;
    border-color: #ddd;
    color: #999;
}

/* 发布按钮样式 */
.publish-btn {
    background: #000;
    color: white;
    border-color: #000;
}

.publish-btn:hover {
    background: #333;
    border-color: #333;
}

.publish-btn:active {
    background: #666;
}

.publish-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #999;
}

/* 编辑器反馈文本 */
.editor-feedback {
    font-size: 14px;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: absolute;
    top: -40px;
    right: 0;
    white-space: nowrap;
    pointer-events: none;
}

.editor-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    transform: translateY(0);
}

.editor-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
    transform: translateY(0);
}

.editor-feedback.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    opacity: 1;
    transform: translateY(0);
}

#editor {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: visible; /* 允许内容扩展，不产生滚动条 */
    min-height: 400px; /* 最小高度，但可以随内容增长 */
    height: auto; /* 自动高度，跟随内容 */
}

/* 响应式设计 */
@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }
    
    .project-title {
        font-size: 32px;
    }
    
    .meta-line,
    .detail-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .meta-label,
    .detail-label {
        min-width: auto;
    }
}

/* 编辑页面响应式设计 */
@media (max-width: 768px) {
    .edit-status-panel {
        margin-top: 16px;
        padding: 12px;
    }
    
    .status-panel-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .status-content {
        gap: 8px;
    }
    
    .status-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}

/* 图片比例样式 */
/* observation: 竖向 3:4 */
.image-upload-area.aspect-3-4 {
    aspect-ratio: 3 / 4;
}

/* 其他section: 横向 4:3 */
.image-upload-area.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

.image-upload-area.aspect-3-4 .hero-image,
.image-upload-area.aspect-4-3 .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 媒体管理页面样式 */
.media-header {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.media-header h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #000;
}

.media-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.media-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.media-filter .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-filter .filter-group label {
    font-weight: 500;
    color: #333;
}

.media-filter .filter-btn {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.media-filter .filter-btn:hover {
    background: #f5f5f5;
}

.media-filter .filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.media-stats {
    color: #666;
    font-size: 14px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px;
}

.media-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.media-item:hover {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.media-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: 12px;
}

.media-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.loading-state,
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 媒体模态框 */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    gap: 20px;
    padding: 20px;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

#modalImage {
    max-width: 60vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.modal-info {
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-info h3 {
    margin: 0;
    font-size: 18px;
    color: #000;
    word-break: break-all;
}

.modal-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.modal-details strong {
    color: #000;
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn.delete-btn {
    border-color: #dc3545;
    color: #dc3545;
}

.action-btn.delete-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .modal-content {
        flex-direction: column;
        max-width: 95vw;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    #modalImage {
        max-width: 100%;
        max-height: 50vh;
    }
    
    .modal-info {
        min-width: auto;
    }
}

/* 图片放大查看 */
.image-viewer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow: hidden;
    cursor: pointer;
}

.image-viewer-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px;
    box-sizing: border-box;
}

.image-viewer-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.image-viewer-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.image-viewer-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .image-viewer-image-wrapper {
        padding: 20px;
    }
    
    .image-viewer-close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* 图片选择模态框 */
.image-select-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* 确保图片选择模态框内的水印模态框显示在图片选择模态框之上 */
#imageSelectWatermarkModal {
    z-index: 10002;
}

.image-select-modal-overlay.show {
    display: flex;
}

.image-select-modal-content {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

.image-select-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.image-select-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.image-select-modal-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.watermark-info {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.watermark-help {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e5e5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
    cursor: help;
}

.image-select-upload-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.image-select-upload-btn:hover {
    background: #45a049;
}

.image-select-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.image-select-modal-close:hover {
    background: #f5f5f5;
}

.image-select-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.image-select-sidebar {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid #e5e5e5;
    padding: 16px 0;
    overflow-y: auto;
    background: #fafafa;
}

.image-select-category {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
    font-size: 14px;
}

.image-select-category:hover {
    background: #f0f0f0;
}

.image-select-category.active {
    background: #e3f2fd;
    color: #2196F3;
    font-weight: 500;
}

.category-name {
    flex: 1;
}

.category-count {
    color: #999;
    font-size: 12px;
}

.image-select-category.active .category-count {
    color: #2196F3;
}

.image-select-new-group-btn {
    margin: 16px 20px 0;
    padding: 10px 16px;
    width: calc(100% - 40px);
    background: transparent;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.image-select-new-group-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.image-select-main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

.image-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.image-select-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #f5f5f5;
}

.image-select-item:hover {
    border-color: #4CAF50;
    transform: scale(1.02);
}

.image-select-item.selected {
    border-color: #4CAF50;
}

.image-select-item.selected::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    border-radius: 4px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-select-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-select-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-select-item-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0;
}

.image-select-item:hover .image-select-item-menu-btn {
    opacity: 1;
}

.image-select-item-menu-btn:hover {
    background: #fff;
    border-color: #4CAF50;
    color: #4CAF50;
}

.image-select-item-menu {
    position: absolute;
    top: 36px;
    right: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
    display: none;
    min-width: 100px;
    overflow: hidden;
}

.image-select-item-menu.show {
    display: block;
}

.image-select-menu-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.image-select-menu-item:hover {
    background: #f5f5f5;
}

.image-select-menu-item-delete {
    color: #f44336;
}

.image-select-menu-item-delete:hover {
    background: #ffebee;
    color: #d32f2f;
}

.image-select-category {
    position: relative;
}

.image-select-group-menu-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: #999;
}

.image-select-category:hover .image-select-group-menu-btn {
    opacity: 1;
}

.image-select-group-menu-btn:hover {
    color: #4CAF50;
}

.image-select-group-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
    display: none;
    margin-top: 2px;
    overflow: hidden;
}

.image-select-group-menu.show {
    display: block;
}

/* 批量操作按钮样式 */
.image-select-btn-action {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    margin-right: 8px;
}

.image-select-btn-action:hover {
    background: #f5f5f5;
    border-color: #4CAF50;
    color: #4CAF50;
}

.image-select-btn-danger {
    color: #f44336;
    border-color: #f44336;
}

.image-select-btn-danger:hover {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

/* 分组选择模态框 */
.image-select-group-select-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10003;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.image-select-group-select-modal.show {
    display: flex;
}

.image-select-group-select-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.image-select-group-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.image-select-group-select-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.image-select-group-select-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.image-select-group-select-close:hover {
    background: #f5f5f5;
    color: #333;
}

.image-select-group-select-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.image-select-group-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-select-group-select-item {
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.image-select-group-select-item:hover {
    background: #f5f5f5;
    border-color: #4CAF50;
}

.image-select-group-select-item.active {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #4CAF50;
}

.group-select-name {
    font-size: 14px;
    color: #333;
}

.image-select-group-select-item.active .group-select-name {
    color: #4CAF50;
    font-weight: 500;
}

.image-select-group-select-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
}

.image-select-item-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-select-item:hover .image-select-item-name {
    opacity: 1;
}

.image-select-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: #fafafa;
}

.image-select-footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.image-select-footer-right {
    display: flex;
    gap: 12px;
}

.image-select-count {
    font-size: 14px;
    color: #666;
}

.image-select-count span {
    color: #4CAF50;
    font-weight: 600;
}

.image-select-text-action {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    pointer-events: auto;
    display: inline-block;
}

.image-select-text-action:hover {
    color: #4CAF50;
}

.image-select-text-danger {
    color: #f44336;
}

.image-select-text-danger:hover {
    color: #d32f2f;
}

/* 管理分组模态框 */
.group-manage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.group-manage-modal.show {
    display: flex;
}

.group-manage-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.group-manage-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.group-manage-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.group-manage-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.group-manage-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.group-manage-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.group-manage-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.group-manage-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.group-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: default;
}

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

.group-manage-item-user {
    cursor: move;
}

.group-manage-item-user:hover {
    background: #fafafa;
}

.group-manage-item-user.dragging {
    opacity: 0.5;
}

.group-manage-item.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.group-manage-item.selected .group-manage-item-name {
    color: #4CAF50;
    font-weight: 600;
}

.group-manage-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.group-manage-item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.group-manage-item-count {
    font-size: 14px;
    color: #999;
}

.group-manage-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-manage-item-type {
    font-size: 14px;
    color: #999;
}

.group-manage-item-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.group-manage-item-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.group-manage-item-delete {
    color: #f44336;
}

.group-manage-item-delete:hover {
    background: #ffebee;
    color: #d32f2f;
}

.group-manage-item-drag {
    color: #999;
    font-size: 18px;
    cursor: grab;
    user-select: none;
    margin-left: 8px;
}

.group-manage-item-drag:active {
    cursor: grabbing;
}

.group-manage-item-name-input {
    border: 1px solid #4CAF50;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    outline: none;
}

.group-manage-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.group-manage-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.group-manage-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.group-manage-btn-confirm:hover {
    background: #45a049;
}

.group-manage-btn-cancel {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.group-manage-btn-cancel:hover {
    background: #e8e8e8;
}

/* 删除分组确认模态框 */
.group-delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10004;
}

.group-delete-confirm-modal.show {
    display: flex;
}

.group-delete-confirm-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.group-delete-confirm-body {
    padding: 24px;
}

.group-delete-option {
    margin-bottom: 16px;
}

.group-delete-option:last-child {
    margin-bottom: 0;
}

.group-delete-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.group-delete-radio-label:hover {
    background: #f5f5f5;
}

.group-delete-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #4CAF50;
}

.group-delete-radio-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.group-delete-confirm-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.group-delete-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.group-delete-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.group-delete-btn-confirm:hover {
    background: #45a049;
}

.group-delete-btn-cancel {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.group-delete-btn-cancel:hover {
    background: #e8e8e8;
}

.image-select-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.image-select-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.image-select-btn-confirm:hover {
    background: #45a049;
}

.image-select-btn-cover {
    background: #2196F3;
    color: #fff;
}

.image-select-btn-cover:hover {
    background: #1976D2;
}

.image-select-btn-cancel {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.image-select-btn-cancel:hover {
    background: #f5f5f5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-select-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .image-select-sidebar {
        width: 160px;
    }
    
    .image-select-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .image-select-modal-header {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .image-select-modal-header-right {
        margin-top: 8px;
        width: 100%;
        justify-content: flex-end;
    }
}

/* 分组模态框样式 */
.group-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;
}

.group-modal.show {
    display: flex;
}

.group-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
}

.group-modal-content-large {
    max-width: 500px;
}

.group-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.group-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.group-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.group-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.group-modal-body {
    padding: 24px;
}

.group-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-name-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.group-name-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.group-char-count {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.group-manage-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.group-list {
    max-height: 400px;
    overflow-y: auto;
}

.group-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: move;
    transition: background 0.2s ease;
}

.group-list-item:hover {
    background: #f9f9f9;
}

.group-list-item.dragging {
    opacity: 0.5;
}

.group-list-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-list-item-name .drag-handle {
    color: #999;
    cursor: grab;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.group-list-item-name .drag-handle:active {
    cursor: grabbing;
}

.group-list-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-list-item-label {
    font-size: 12px;
    color: #999;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.group-list-item-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.group-list-item-action-btn:hover {
    background: #f5f5f5;
    color: #4CAF50;
}

.group-list-item-action-btn svg {
    width: 16px;
    height: 16px;
}

.group-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
}

.group-btn-cancel,
.group-btn-confirm {
    padding: 8px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.group-btn-cancel:hover {
    background: #e5e5e5;
}

.group-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.group-btn-confirm:hover {
    background: #45a049;
}

/* 移动到分组模态框样式 */
.group-move-hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.group-move-list {
    max-height: 300px;
    overflow-y: auto;
}

.group-move-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.group-move-item:hover {
    border-color: #4CAF50;
    background: #f0f9f0;
    color: #4CAF50;
}

.group-move-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.group-move-item:hover .group-move-item-name {
    color: #4CAF50;
}

/* ====== 媒体模态框样式（视频、音频、模板） ====== */

.media-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.media-modal-overlay.show {
    display: flex !important;
}

.media-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

.media-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.media-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.media-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.media-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.media-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.media-modal-section {
    margin-bottom: 24px;
}

.media-modal-section:last-child {
    margin-bottom: 0;
}

.media-modal-label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.media-modal-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 8px;
}

.media-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.media-modal-item:hover {
    background: #f5f5f5;
}

.media-modal-item.selected {
    background: #e8f5e9;
    border: 1px solid #4CAF50;
}

.media-modal-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.media-modal-item-info {
    font-size: 12px;
    color: #999;
    margin-left: 12px;
}

.media-modal-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.media-modal-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 24px 0;
}

.media-modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.media-modal-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.media-modal-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.media-modal-upload-btn {
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.media-modal-upload-btn:hover {
    background: #45a049;
}

.media-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.media-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-modal-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.media-modal-btn-confirm:hover {
    background: #45a049;
}

.media-modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.media-modal-btn-cancel:hover {
    background: #e5e5e5;
}

.media-template-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.media-template-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-template-item:hover {
    border-color: #4CAF50;
    background: #f9f9f9;
}

.media-template-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.media-template-item-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

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

/* ====== 合集管理页面样式 ====== */

.collections-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collection-card {
    background: #fff;
}

.collection-action-btn {
    transition: all 0.2s ease;
}

.collection-action-btn-primary {
    margin-bottom: 8px;
}

/* 合集模态框样式 */
.collection-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.collection-modal-overlay.show {
    display: flex !important;
}

.collection-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

.collection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.collection-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.collection-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.collection-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.collection-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.collection-form-group {
    margin-bottom: 20px;
}

.collection-form-group:last-child {
    margin-bottom: 0;
}

.collection-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.collection-form-input,
.collection-form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.collection-form-input:focus,
.collection-form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.collection-form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.collection-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.collection-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collection-modal-btn-confirm {
    background: #4CAF50;
    color: #fff;
}

.collection-modal-btn-confirm:hover {
    background: #45a049;
}

.collection-modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.collection-modal-btn-cancel:hover {
    background: #e5e5e5;
}

/* 合集文章管理模态框 */
.collection-articles-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.collection-articles-modal-overlay.show {
    display: flex !important;
}

.collection-articles-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

.collection-articles-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.collection-articles-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.collection-articles-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.collection-articles-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.collection-articles-modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.collection-articles-search {
    margin-bottom: 20px;
}

.collection-articles-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 8px;
}

.collection-article-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.collection-article-item:hover {
    background: #f5f5f5;
}

.collection-article-item.in-collection {
    background: #e8f5e9;
}

.collection-article-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.collection-articles-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

/* ====== 页面内容管理样式 ====== */

.pages-primary-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.pages-primary-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
    font-family: 'Fusion Pixel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.2s ease;
    font-weight: 500;
    pointer-events: auto;
}

.pages-primary-tab:hover {
    color: #333;
}

.pages-primary-tab.active {
    color: #4CAF50;
    font-weight: 600;
}

.pages-primary-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #4CAF50;
    z-index: 1;
}

.pages-secondary-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    flex-wrap: wrap;
}

.pages-secondary-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    border-radius: 4px;
}

.pages-secondary-tab:hover {
    color: #4CAF50;
    background: #f5f5f5;
}

.pages-secondary-tab.active {
    color: #4CAF50;
    background: #e8f5e9;
    font-weight: 500;
}

.pages-content {
    margin-top: 24px;
}

.pages-content-header {
    margin-bottom: 20px;
}

.pages-content-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pages-content-body {
    min-height: 200px;
}

/* 年度视频卡片样式 */
.annual-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.annual-video-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.annual-video-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.annual-video-placeholder {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

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

/* ====== Reading 编辑器书籍列表样式 ====== */

.reading-books-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.reading-books-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reading-books-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.reading-books-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.reading-books-hint[style*="color: #4CAF50"] {
    color: #4CAF50 !important;
    font-weight: 500;
    font-style: normal;
}

.reading-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.reading-book-item {
    padding: 16px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.reading-book-item:hover {
    border-color: #4CAF50;
    background: #f5f5f5;
}

.reading-book-item.selected {
    border-color: #4CAF50;
    background: #e8f5e9;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.reading-book-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
    word-break: break-word;
    line-height: 1.4;
}

.reading-book-item.selected .reading-book-name {
    color: #333;
    font-weight: 600;
}

.reading-book-author {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.reading-book-item.selected .reading-book-author {
    color: #666;
}

.reading-books-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.reading-books-loading {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .reading-books-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .reading-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====== Reading 编辑器书籍列表样式（纯文本） ====== */

.reading-books-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.reading-books-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reading-books-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.reading-books-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
    flex: 1;
    margin-left: 12px;
}

.reading-books-hint[style*="color: #4CAF50"] {
    color: #4CAF50 !important;
    font-weight: 500;
    font-style: normal;
}

.reading-add-book-btn {
    padding: 6px 16px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reading-add-book-btn:hover {
    background: #45a049;
}

.reading-books-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.reading-book-text-item {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 0;
    user-select: none;
}

.reading-book-text-item:hover {
    color: #666;
}

.reading-book-text-item.selected {
    color: #4CAF50;
    font-weight: 600;
    text-decoration: underline;
}

.reading-books-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.reading-books-loading {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ====== 添加书籍模态框样式 ====== */

.reading-book-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.reading-book-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.reading-book-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.reading-book-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.reading-book-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reading-book-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.reading-book-modal-body {
    padding: 24px;
}

.reading-book-form-group {
    margin-bottom: 20px;
}

.reading-book-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.reading-book-form-group .required {
    color: #f44336;
}

.reading-book-input,
.reading-book-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.reading-book-input:focus,
.reading-book-textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.reading-book-textarea {
    resize: vertical;
    min-height: 100px;
}

.reading-book-cover-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reading-book-cover-preview {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.reading-book-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-book-cover-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
}

.reading-book-cover-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.reading-book-cover-btn:hover {
    background: #e5e5e5;
}

.reading-book-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
}

.reading-book-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reading-book-btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.reading-book-btn-cancel:hover {
    background: #e5e5e5;
}

.reading-book-btn-save {
    background: #4CAF50;
    color: #fff;
}

.reading-book-btn-save:hover {
    background: #45a049;
}

/* ====== 修复 Reading 编辑器日期输入框 ====== */
.editor-reading .date-input-wrapper,
body[data-page="editor-reading"] .date-input-wrapper {
    position: relative;
    z-index: 1;
}

.editor-reading .date-input-field,
body[data-page="editor-reading"] .date-input-field {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.editor-reading .date-icon,
body[data-page="editor-reading"] .date-icon {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* ====== 修复 Reading 编辑器日期输入框可点击 ====== */
body[data-page="editor-reading"] .date-input-wrapper {
    position: relative;
    z-index: 10;
}

body[data-page="editor-reading"] .date-input-field {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 11;
    background: #fff !important;
}

body[data-page="editor-reading"] .date-icon {
    pointer-events: none;
    position: relative;
    z-index: 9;
}

/* ====== 修复 Reading 编辑器分类和标签按钮 ====== */
body[data-page="editor-reading"] .category-button {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

body[data-page="editor-reading"] .tags-input-field,
body[data-page="editor-reading"] .tags-confirm-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1;
}

body[data-page="editor-reading"] .tags-display .tag-item {
    pointer-events: auto !important;
    cursor: pointer !important;
}
