/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0891b2;
    --info-light: #cffafe;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --sidebar-width: 240px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ========== 登录页 ========== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/bz.jpg') center center / cover no-repeat fixed;
    position: relative;
    padding: 20px;
}

/* 背景遮罩：左侧深色渐变 + 整体暗化，确保文字清晰 */
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.5) 50%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 0;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: loginFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 左侧品牌区：深色毛玻璃 */
.login-left {
    flex: 1.1;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 58, 138, 0.55) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 52px 44px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 76px;
    height: 76px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.login-brand h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.login-brand h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-desc {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.7;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    opacity: 0.9;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.feature-item svg {
    flex-shrink: 0;
    color: #60a5fa;
}

/* 右侧登录区：浅色毛玻璃 */
.login-right {
    flex: 1;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 52px 44px;
    display: flex;
    align-items: center;
}

.login-form-wrapper {
    width: 100%;
}

.login-form-wrapper h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 32px;
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-footer-note {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 布局 ========== */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.logo-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    margin-left: 42px;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: #94a3b8;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
}

.badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-detail {
    min-width: 0;
}

.user-name {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: #64748b;
    font-size: 11px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    flex-shrink: 0;
}

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

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.current-time {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--bg-tertiary);
}

/* 移动端侧边栏遮罩 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.content-wrapper {
    flex: 1;
    padding: 24px 32px;
}

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

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

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
    transition: all 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

select.form-control {
    cursor: pointer;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon svg {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
}

.input-icon input {
    padding-left: 42px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

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

.btn-secondary:hover {
    background: var(--border);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #15803d;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
}

/* ========== 卡片 ========== */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* ========== 统计卡片 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-icon.cyan { background: var(--info-light); color: var(--info); }

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ========== 表格 ========== */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-primary);
}

.table tr:hover td {
    background: var(--bg-tertiary);
}

.table .actions {
    display: flex;
    gap: 8px;
}

/* ========== 标签 ========== */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: var(--success-light); color: var(--success); }
.tag-orange { background: var(--warning-light); color: var(--warning); }
.tag-red { background: var(--danger-light); color: var(--danger); }
.tag-gray { background: var(--bg-tertiary); color: var(--text-secondary); }
.tag-cyan { background: var(--info-light); color: var(--info); }

/* ========== 提示框 ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--info-light);
    color: #155e75;
    border: 1px solid #a5f3fc;
}

/* ========== 筛选栏 ========== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    width: auto;
    min-width: 150px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.search-box input {
    padding-left: 40px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

/* ========== 素材网格 ========== */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.material-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.material-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.material-preview {
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.material-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-preview .file-icon {
    font-size: 48px;
    color: var(--text-muted);
}

.material-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(4px);
}

.material-type-badge.image { background: rgba(37, 99, 235, 0.9); }
.material-type-badge.video { background: rgba(220, 38, 38, 0.9); }
.material-type-badge.audio { background: rgba(217, 119, 6, 0.9); }
.material-type-badge.document { background: rgba(100, 116, 139, 0.9); }

.material-info {
    padding: 14px;
}

.material-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.material-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

/* ========== 上传区域 ========== */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

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

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

.upload-zone .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

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

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

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

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

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

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

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.modal-body {
    padding: 24px;
}

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

/* ========== 稿件详情 ========== */
.article-detail {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.article-detail h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.article-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.article-content img {
    max-width: 100%;
    border-radius: var(--radius);
}

.review-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.review-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

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

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

.review-time {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* ========== 通知列表 ========== */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.notification-item {
    background: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-tertiary);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

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

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

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

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ========== 个人中心 ========== */
.profile-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.profile-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.profile-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========== 仪表盘 ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.recent-item-title {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 12px;
}

.recent-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

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

.empty-state h3 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* ========== 404页面 ========== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    text-align: center;
    padding: 20px;
}

.error-page h1 {
    font-size: 96px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ========== 响应式（移动端 H5 适配） ========== */
@media (max-width: 768px) {
    /* 侧边栏：抽屉式 */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 260px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }

    /* 汉堡按钮显示 */
    .menu-toggle {
        display: flex;
    }

    /* 顶部栏 */
    .top-bar {
        padding: 10px 14px;
        gap: 10px;
    }
    .page-title {
        font-size: 17px;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .current-time {
        display: none;
    }

    /* 内容区 */
    .content-wrapper {
        padding: 14px;
    }

    /* 统计卡片：2列 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 14px;
    }
    .stat-number {
        font-size: 22px;
    }

    /* 素材网格：2列 */
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .material-card .material-preview {
        height: 100px;
    }
    .material-title {
        font-size: 13px;
    }
    .material-meta {
        font-size: 11px;
    }

    /* 文件夹网格：2列 */
    .folder-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 表格：横向滚动 */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table {
        min-width: 600px;
        font-size: 13px;
    }
    .table th, .table td {
        padding: 10px 12px;
    }

    /* 模态框：接近全屏 */
    .modal {
        max-width: 95vw !important;
        max-height: 90vh;
        margin: 5vh auto;
        border-radius: 16px;
    }
    .modal-body {
        padding: 16px;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* 按钮：增大触摸区域 */
    .btn {
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
    }
    .btn-sm {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    /* 表单 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-control {
        min-height: 44px;
        font-size: 15px;
    }
    textarea.form-control {
        min-height: 80px;
    }

    /* 筛选栏：全宽换行 */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filter-bar form {
        flex-wrap: wrap;
    }
    .search-box {
        flex: 1;
        min-width: 100%;
    }

    /* 批量操作栏：纵向 */
    .batch-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
    }
    .batch-bar > div {
        justify-content: center;
    }

    /* 面包屑 */
    .breadcrumb {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* 工具栏 */
    .material-toolbar,
    .work-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .material-toolbar > div:first-child,
    .work-toolbar > div:first-child {
        display: flex;
        gap: 8px;
    }
    .material-toolbar .btn,
    .work-toolbar .btn {
        flex: 1;
        justify-content: center;
    }

    /* 分页 */
    .pagination {
        gap: 6px;
    }
    .pagination a, .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* 卡片 */
    .card {
        border-radius: var(--radius);
    }
    .card-body {
        padding: 16px;
    }

    /* 登录页 */
    .login-container {
        flex-direction: column;
        min-height: auto;
        max-width: 420px;
    }
    .login-left {
        display: none;
    }
    .login-right {
        padding: 32px 24px;
    }

    /* 工作记录详情 */
    .work-record-item {
        flex-direction: column;
        gap: 10px;
    }
    .wr-right {
        align-self: flex-end;
    }

    /* 参与人员选择 */
    .participant-list {
        grid-template-columns: 1fr;
        max-height: 200px;
    }

    /* 空状态 */
    .empty-state h3 {
        font-size: 16px;
    }
    .empty-state p {
        font-size: 13px;
    }

    /* 提示框 */
    .alert {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* 稿件详情 */
    .article-content {
        font-size: 15px;
    }
    .article-content h1 { font-size: 22px; }
    .article-content h2 { font-size: 19px; }
    .article-content h3 { font-size: 17px; }
}

/* 小屏手机进一步优化 */
@media (max-width: 480px) {
    .material-grid {
        grid-template-columns: 1fr;
    }
    .folder-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .login-form-wrapper h3 {
        font-size: 22px;
    }
    .cal-day {
        min-height: 60px;
        padding: 3px;
    }
    .cal-record-tag {
        font-size: 9px;
        padding: 1px 3px;
    }
    .cal-day-num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* ========== 富文本文章内容样式 ========== */
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-primary);
    word-break: break-word;
}

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

.article-content h1 { font-size: 28px; border-bottom: 2px solid var(--primary-light); padding-bottom: 8px; }
.article-content h2 { font-size: 24px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 17px; }
.article-content h5 { font-size: 15px; }
.article-content h6 { font-size: 14px; color: var(--text-secondary); }

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 12px 0;
    padding-left: 28px;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 6px;
    line-height: 1.8;
}

.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }

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

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 12px 0;
    box-shadow: var(--shadow-sm);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--primary-dark);
}

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

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.article-content table th,
.article-content table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.article-content table th {
    background: var(--bg-tertiary);
    font-weight: 600;
}

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

.article-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ========== 纯图标按钮 ========== */
.btn-icon-only {
    padding: 6px 8px;
    min-width: 30px;
    min-height: 30px;
}

.btn-icon-only:hover {
    color: var(--danger);
    border-color: var(--danger-light);
    background: var(--danger-light);
}

/* ========== 美化增强 ========== */
/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 侧边栏滚动条 */
.sidebar ::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

/* 选中文字颜色 */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* 卡片悬浮增强 */
.card {
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

/* 导航项激活态左侧指示条 */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #fff;
    border-radius: 0 3px 3px 0;
}

/* 顶部栏毛玻璃效果 */
.top-bar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* 统计卡片渐变装饰 */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.3;
}

/* 按钮点击波纹效果 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

/* 上传区域增强 */
.upload-zone {
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* 通知项悬浮 */
.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: var(--bg-tertiary);
}

/* 表格行悬浮 */
.table tr {
    transition: background 0.15s ease;
}

/* 标签增强 */
.tag {
    transition: all 0.2s ease;
}

.tag:hover {
    transform: scale(1.05);
}

/* 富文本编辑器容器 */
.editor-container {
    transition: all 0.2s ease;
}

/* wangEditor 深色模式适配 */
#editor-text-area .w-e-text-container {
    background: #fff;
}

#editor-toolbar .w-e-bar {
    border-bottom: none;
}

/* 分页按钮增强 */
.pagination a {
    transition: all 0.2s ease;
}

.pagination a:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 空状态动画 */
.empty-state svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 提示框动画 */
.alert {
    animation: slideIn 0.3s ease;
}

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

/* ========== 素材管理新样式 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.breadcrumb a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.breadcrumb a:last-child {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.material-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.batch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--primary-light);
    border: 1px solid #93c5fd;
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-size: 14px;
    animation: slideIn 0.2s ease;
}

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

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.folder-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.folder-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.folder-icon {
    color: #f59e0b;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.folder-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.folder-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.folder-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.folder-card:hover .folder-actions {
    opacity: 1;
}

.btn-icon-sm {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-sm:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-danger-sm:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

.material-card {
    position: relative;
}

.material-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid var(--border);
}

.material-card:hover .material-checkbox {
    opacity: 1;
}

.material-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
    pointer-events: none; /* 关键修复：阻止input自身点击事件，避免双重切换 */
}

.material-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.material-card.selected .material-checkbox {
    opacity: 1;
    border-color: var(--primary);
    background: var(--primary-light);
}

/* 上传 tab */
.upload-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius);
}

.upload-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.upload-tab:hover {
    color: var(--text-primary);
}

.upload-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ========== 登录页美化 ========== */
.login-form .form-group {
    margin-bottom: 20px;
}

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

.login-form .input-icon {
    position: relative;
}

.login-form .input-icon svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
    transition: color 0.2s;
}

.login-form .input-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.25s ease;
    outline: none;
}

.login-form .input-icon input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.login-form .input-icon input:focus + svg,
.login-form .input-icon:focus-within svg {
    color: var(--primary);
}

.login-form .input-icon input::placeholder {
    color: var(--text-muted);
}

.login-form .btn-primary {
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
    margin-top: 8px;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.login-form .btn-primary:active {
    transform: translateY(0);
}

/* ========== 工作打卡 ========== */
.work-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.view-switch {
    display: flex;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius);
    gap: 2px;
}

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

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.selected-date-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 日历 */
.calendar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
}

.cal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 160px;
    text-align: center;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

.cal-weekday {
    padding: 12px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.cal-weekday.weekend {
    color: var(--danger);
}

.calendar-grid {
    display: flex;
    flex-direction: column;
}

.cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--border-light);
}

.cal-week:last-child {
    border-bottom: none;
}

.cal-day {
    min-height: 110px;
    padding: 8px;
    border-right: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.cal-day:last-child {
    border-right: none;
}

.cal-day:hover {
    background: var(--bg-tertiary);
}

.cal-day.empty {
    background: var(--bg-tertiary);
    cursor: default;
}

.cal-day.today {
    background: var(--primary-light);
}

.cal-day.today .cal-day-num {
    background: var(--primary);
    color: #fff;
}

.cal-day.weekend .cal-day-num {
    color: var(--danger);
}

.cal-day.today.weekend .cal-day-num {
    color: #fff;
}

.cal-day-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cal-day-records {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cal-record-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-weight: 500;
}

.cal-record-more {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 6px;
}

/* 工作类型标签颜色 */
.wr-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.type-拍摄 { background: #3b82f6; }
.type-写稿 { background: #10b981; }
.type-采访 { background: #8b5cf6; }
.type-剪辑 { background: #f59e0b; }
.type-直播 { background: #ef4444; }
.type-活动执行 { background: #06b6d4; }
.type-其他 { background: #6b7280; }

.cal-record-tag.type-拍摄 { background: #3b82f6; }
.cal-record-tag.type-写稿 { background: #10b981; }
.cal-record-tag.type-采访 { background: #8b5cf6; }
.cal-record-tag.type-剪辑 { background: #f59e0b; }
.cal-record-tag.type-直播 { background: #ef4444; }
.cal-record-tag.type-活动执行 { background: #06b6d4; }
.cal-record-tag.type-其他 { background: #6b7280; }

/* 工作记录详情项 */
.work-record-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.work-record-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.wr-left {
    flex: 1;
}

.wr-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 4px;
}

.wr-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.wr-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 参与人员选择 */
.participant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.participant-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.participant-item input {
    accent-color: var(--primary);
}

.participant-role {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* 日历响应式 */
@media (max-width: 768px) {
    .cal-day {
        min-height: 70px;
        padding: 4px;
    }
    .cal-record-tag {
        font-size: 10px;
        padding: 1px 4px;
    }
    .cal-day-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .calendar-header {
        padding: 12px;
    }
    .cal-title {
        font-size: 15px;
        min-width: 120px;
    }
}
