:root {
    --bg: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card: #ffffff;
    --card-hover: #fafafa;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --gray: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --green: #10b981;
    --green-light: #d1fae5;
    --yellow: #f59e0b;
    --yellow-light: #fef3c7;
    --red: #ef4444;
    --red-light: #fee2e2;
    --purple: #8b5cf6;
    --purple-light: #e9d5ff;
    --cyan: #06b6d4;
    --cyan-light: #cffafe;
    --pink: #ec4899;
    --pink-light: #fce7f3;
    
    --hover: #f1f5f9;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glow-blue: 0 0 20px rgba(99, 102, 241, 0.3);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
}
[data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --card: #1e293b;
    --card-hover: #334155;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --gray: #94a3b8;
    --border: #334155;
    --border-light: #475569;
    
    --primary: #818cf8;
    --primary-light: #a5b4fc;
    --primary-dark: #6366f1;
    --blue: #60a5fa;
    --blue-light: #1e40af;
    --green: #34d399;
    --green-light: #059669;
    --yellow: #fbbf24;
    --yellow-light: #d97706;
    --red: #f87171;
    --red-light: #dc2626;
    --purple: #c084fc;
    --purple-light: #9333ea;
    --hover: #334155;
}
[data-theme="dark"] .project-card {
    background: var(--card) !important;
    border-color: var(--border) !important;
}
[data-theme="dark"] .project-card[style*="border:2px solid #f59e0b"] {
    border-color: var(--yellow) !important;
}
[data-theme="dark"] .project-card[style*="border:2px solid #3b82f6"] {
    border-color: var(--blue) !important;
}
[data-theme="dark"] .project-card [style*="background:#fef3c7"],
[data-theme="dark"] .project-card [style*="background:#dbeafe"] {
    background: var(--hover) !important;
    color: var(--text) !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--blue);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--blue);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: var(--shadow);
    z-index: 999;
}
[data-theme="dark"] .header {
    background: rgba(30,41,59,0.95);
    border-bottom-color: #475569;
}
.logo {
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
}
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
}
.header-btn {
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
}
.header-btn:hover {
    background: rgba(255,255,255,0.3);
}

.main-wrapper {
    display: flex;
    height: calc(100% - 112px);
    margin: 16px;
    margin-top: 86px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.sidebar {
    width: 240px;
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    color: var(--text);
    letter-spacing: 0.5px;
}
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.sidebar-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    overflow: hidden;
}
.sidebar-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--purple));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.sidebar-btn:hover::before {
    transform: scaleY(1);
}
.sidebar-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: var(--card-hover);
}
.sidebar-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.sidebar-btn-primary:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}
.sidebar-btn-secondary {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}
.sidebar-btn-secondary:hover {
    background: var(--hover);
    border-color: var(--blue);
    color: var(--blue);
}
.sidebar-btn-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.sidebar-btn-danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}
.content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    border-radius: var(--radius);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
.btn:hover::before {
    left: 100%;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.btn:active {
    transform: translateY(-1px);
}
.btn-blue {
    background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-blue:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}
.btn-green {
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-green:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}
.btn-yellow {
    background: linear-gradient(135deg, var(--yellow) 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-yellow:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}
.btn-red {
    background: linear-gradient(135deg, var(--red) 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.btn-red:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}
.btn-purple {
    background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-purple:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.search-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--bg);
    font-size: 14px;
    transition: var(--transition);
    font-weight: 500;
}
.search-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 20px rgba(99, 102, 241, 0.1);
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow);
}

.project-card.animate-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.project-card.animate-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.005);
}

.project-card > * {
    position: relative;
    z-index: 2;
}
.project-card button {
    position: relative;
    z-index: 10;
}
.comment-badge {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    width: 18px !important;
    height: 18px !important;
    background: #ef4444 !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    z-index: 100 !important;
    min-width: 18px !important;
    padding: 0 !important;
}
.project-card.active {
    border-color: var(--blue);
    background: var(--blue-light);
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.project-title {
    font-size: 16px;
    font-weight: 600;
}
.project-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.status-btn {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--hover);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.status-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}
.status-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}
.project-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.project-status-badge.status-pending {
    background: #fef08a;
    color: #a16207;
}
.project-status-badge.status-progress {
    background: #93c5fd;
    color: #1d4ed8;
}
.project-status-badge.status-completed {
    background: #86efac;
    color: #15803d;
}
.project-status-badge.status-cancelled {
    background: #fecaca;
    color: #dc2626;
}
.project-status-badge.status-paused {
    background: #fef3c7;
    color: #92400e;
}
.status-progress {
    background: var(--blue);
    color: #fff;
}
.status-completed {
    background: var(--green);
    color: #fff;
}
.status-cancelled {
    background: var(--red);
    color: #fff;
}
.project-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray);
}

/* 统一弹出框样式规范 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal.show .modal-box {
    animation: modalFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal.hide .modal-box {
    animation: modalFadeOut 0.3s ease forwards;
}
/* 点击位置附近的确认对话框 */
.confirm-modal {
    position: fixed;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.confirm-modal .modal-box {
    position: absolute;
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    width: 300px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0, 1);
}
.modal-box {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 16px 16px 0 0;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(40px);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    40% {
        opacity: 0.7;
        transform: scale(0.98) translateY(10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.85) translateY(40px);
    }
}
.modal-title {
    font-size: 20px;
    margin-bottom: 24px;
    font-weight: 700;
    position: relative;
    color: var(--text);
    letter-spacing: 0.5px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.modal-header .modal-title {
    margin-bottom: 0;
    flex: 1;
    font-size: 20px;
}
.modal-header .modal-actions {
    margin-top: 0;
    gap: 12px;
}
.modal-header .modal-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-header .modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-header .modal-actions .btn-blue {
    padding: 10px 24px;
    background: var(--blue);
    color: white;
}
.modal-header .modal-actions .btn-blue:hover {
    background: var(--blue-light);
}

/* 统一Toast样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%) scale(0.8);
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99999; /* 提高 z-index，确保在登录模态框之上 */
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 20px -4px rgba(59, 130, 246, 0.4), 0 6px 12px -2px rgba(59, 130, 246, 0.2);
    max-width: 320px;
    backdrop-filter: blur(10px);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 加载指示器 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 页面过渡动画 */
.content {
    animation: pageFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

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

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

@keyframes float-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(99, 102, 241, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(99, 102, 241, 0.2);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.4s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-float-glow {
    animation: float-glow 3s ease-in-out infinite;
}

/* 列表项入场动画 */
.project-card {
    animation: slideInUp 0.4s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.3s; }

/* 统一表单元素样式 */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    font-weight: 500;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 25px rgba(99, 102, 241, 0.12);
}
.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* 统一状态按钮样式 */
.modal-status-btn {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}
.modal-status-btn[data-status="pending"] {
    border-color: #facc15 !important;
}
.modal-status-btn[data-status="pending"]:hover {
    background: #fef9c3 !important;
}
.modal-status-btn[data-status="pending"] {
    border-color: #9ca3af !important;
}
.modal-status-btn[data-status="pending"]:hover {
    background: #f3f4f6 !important;
}
.modal-status-btn[data-status="in_progress"] {
    border-color: #3b82f6 !important;
}
.modal-status-btn[data-status="in_progress"]:hover {
    background: #dbeafe !important;
}
.modal-status-btn[data-status="completed"] {
    border-color: #22c55e !important;
}
.modal-status-btn[data-status="completed"]:hover {
    background: #bbf7d0 !important;
}
.modal-status-btn.active[data-status="pending"] {
    background: #9ca3af !important;
    border-color: #6b7280 !important;
    color: white !important;
}
.modal-status-btn.active[data-status="in_progress"] {
    background: #3b82f6 !important;
    border-color: #2563eb !important;
    color: white !important;
}
.modal-status-btn.active[data-status="completed"] {
    background: #22c55e !important;
    border-color: #16a34a !important;
    color: white !important;
}
.modal-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-status-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 流程步骤样式 */
.flow-steps {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.flow-step {
    flex: 1;
    min-width: 100px;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    transition: var(--transition);
}
.flow-step.pending {
    background: var(--hover);
    color: var(--gray);
}
.flow-step.active {
    background: var(--blue);
    color: #fff;
}
.flow-step.completed {
    background: var(--green);
    color: #fff;
}

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

.flow-step.flow-step-disabled:hover {
    background: none;
    transform: none;
}
.flow-status-btn {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.flow-status-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}
.flow-status-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}
.flow-edit-btn {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--hover);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.flow-edit-btn:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue);
}
.flow-step-card {
    flex: 1;
    min-width: 60px;
    padding: 6px 4px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.flow-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.flow-step-card.pending,
.pending {
    background: linear-gradient(135deg, #fef9c3 0%, #fde047 100%) !important;
    border-color: #facc15 !important;
}
.flow-step-card.in_progress,
.in_progress {
    background: linear-gradient(135deg, #dbeafe 0%, #60a5fa 100%) !important;
    border-color: #3b82f6 !important;
}
.flow-step-card.completed,
.completed {
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%) !important;
    border-color: #22c55e !important;
}

.flow-step-card.paused,
.paused {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%) !important;
    border-color: #f59e0b !important;
}

.flow-step-card.flow-step-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flow-step-card.flow-step-disabled:hover {
    transform: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.flow-step-name {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}
.flow-step-manager {
    font-size: 9px;
    opacity: 0.7;
    margin-bottom: 2px;
    color: var(--text);
}
.flow-step-status {
    font-size: 9px;
    font-weight: 500;
    padding: 1px 4px;
    border-radius: 8px;
    display: inline-block;
    background: rgba(255,255,255,0.8);
}
.pending .flow-step-status {
    color: #854d0e;
}
.in_progress .flow-step-status {
    color: #1e40af;
}
.completed .flow-step-status {
    color: #166534;
}

/* 文件上传样式 */
.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    align-content: flex-start;
}
.image-grid::-webkit-scrollbar {
    width: 6px;
}
.image-grid::-webkit-scrollbar-track {
    background: var(--hover);
    border-radius: 3px;
}
.image-grid::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 3px;
}
.image-grid::-webkit-scrollbar-thumb:hover {
    background: var(--blue);
}
.image-item,
.file-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    display: block;
}
.image-item img,
.file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239,68,68,0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

/* 高级时间选择器样式 */
.advanced-datetime-picker {
    position: relative;
}
.datetime-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--bg);
    color: var(--text);
}
.datetime-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.datetime-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--gray);
    pointer-events: none;
}
.datetime-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 时间线样式 */
.timeline {
    margin: 20px 0;
}
.timeline-item {
    display: flex;
    margin-bottom: 16px;
}
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    margin-right: 12px;
    margin-top: 4px;
}
.timeline-content {
    flex: 1;
}
.timeline-title {
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-time {
    font-size: 12px;
    color: var(--gray);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 0 16px;
        height: 56px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .main-wrapper {
        flex-direction: column;
        height: calc(100% - 56px);
        margin-top: 56px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px;
        gap: 8px;
        overflow-y: auto;
    }
    
    /* 确保登出按钮在移动端可见 */
    .sidebar-btn-danger {
        display: block !important;
        margin-top: 8px;
    }
    
    .sidebar h3 {
        font-size: 16px;
        padding-bottom: 12px;
    }
    
    .sidebar-section h4 {
        font-size: 12px;
    }
    
    .sidebar-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .content {
        flex: 1;
        padding: 12px;
    }
    
    /* 搜索和批量操作区域 */
    #batchOperationsArea {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 项目卡片容器 */
    #projectsListContainer {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* 项目卡片 */
    .project-card {
        padding: 16px;
        margin-bottom: 0;
        min-height: auto;
    }
    
    .project-card > div:first-child {
        flex: 1;
    }
    
    .project-card input[type="checkbox"] {
        transform: scale(1.1);
    }
    
    .project-card > div:first-child > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .project-card > div:first-child > div:first-child > div {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.3;
        width: 100%;
    }
    
    .project-card > div:first-child > div:nth-child(2) {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .project-card > div:first-child > div:nth-child(2) span {
        font-size: 12px;
    }
    
    .project-card > div:first-child > div:nth-child(3) {
        gap: 4px;
    }
    
    .project-card > div:first-child > div:nth-child(3) > div {
        gap: 4px;
    }
    
    .project-card > div:first-child > div:nth-child(3) > div > span {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .project-card > div:first-child > div:nth-child(3) > div > div {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    /* 状态和按钮区域 */
    .project-card > div:nth-child(2) {
        gap: 8px;
    }
    
    .project-status-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .project-status-badge > div {
        font-size: 11px;
        margin-top: 3px;
    }
    
    .project-card > div:nth-child(2) > div {
        flex-direction: column;
        gap: 6px;
    }
    
    .project-card > div:nth-child(2) > div button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* 模态框 - 移动端居中 */
    .modal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
    }
    
    .modal-box {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        padding: 20px !important;
        border-radius: 12px !important;
        margin: 0 !important;
        overflow-y: auto !important;
    }
    
    /* 地图容器 */
    #mapContainer {
        height: 300px;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-step {
        min-width: auto;
    }
    
    /* 流程管理模态框 */
    #flowModal {
        padding: 10px;
    }
    
    #flowModal > div {
        padding: 20px;
        max-height: 85vh;
    }
    
    #flowModal .flow-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #flowModal .flow-card {
        padding: 12px;
        min-height: 90px;
    }
    
    #flowModal .flow-card .flow-title {
        font-size: 14px;
    }
    
    #flowModal .flow-card .flow-manager {
        font-size: 12px;
    }
    
    #flowModal .flow-card .flow-status {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    #flowModal .flow-card .time-info {
        font-size: 11px;
    }
    
    #flowModal .start-button {
        padding: 3px 10px;
        font-size: 10px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 12px;
        height: 50px;
    }
    
    .main-wrapper {
        height: calc(100% - 50px);
        margin-top: 50px;
    }
    
    .sidebar {
        padding: 8px;
        max-height: 180px;
    }
    
    .content {
        padding: 8px;
    }
    
    .project-card {
        padding: 10px;
    }
    
    .project-title {
        font-size: 14px;
    }
    
    .project-meta {
        font-size: 11px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* 模态框 */
    .modal-box {
        padding: 16px;
    }
    
    /* 地图容器 */
    #mapContainer {
        height: 250px;
    }
}

/* 手机端新增功能优化 */
@media (max-width: 768px) {
    /* 组织架构模态框 */
    #organizationModal .modal-box {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }
    
    #organizationModal .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    #organizationModal .modal-actions > div {
        width: 100%;
        justify-content: center;
    }
    
    #organizationModal .modal-actions button {
        flex: 1;
        min-width: 80px;
    }
    
    /* 组织架构树 */
    #organizationTree {
        font-size: 13px;
    }
    
    #organizationTree .org-node {
        padding: 8px 10px;
        flex-wrap: wrap;
    }
    
    #organizationTree .org-node-content {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    #organizationTree .org-node-actions {
        display: flex;
        gap: 4px;
        margin-top: 4px;
        width: 100%;
    }
    
    #organizationTree .org-node-actions button {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* 添加部门/职位/员工模态框 */
    #addDepartmentModal .modal-box,
    #addPositionModal .modal-box,
    #addEmployeeModal .modal-box,
    #editNodeModal .modal-box,
    #deleteNodeModal .modal-box {
        width: 92%;
        max-width: 92%;
        padding: 16px;
    }
    
    /* 表单优化 */
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    /* 登录模态框 */
    #loginModal .modal-box {
        width: 90%;
        max-width: 90%;
        padding: 20px;
    }
    
    #loginModal .modal-title {
        font-size: 18px;
    }
    
    /* 修改密码模态框 */
    #changePasswordModal .modal-box {
        width: 92%;
        max-width: 92%;
    }
    
    /* 权限管理模态框 */
    #permissionsModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    #permissionsModal .modal-body {
        padding: 12px;
    }
    
    /* 确认对话框 */
    #confirmModal .modal-box {
        width: 90%;
        max-width: 90%;
    }
    
    #confirmModal #confirmMessage {
        font-size: 14px;
    }
    
    /* 删除确认对话框 */
    #deleteConfirmModal {
        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: 10000;
    }
    
    #deleteConfirmModal .modal-box {
        width: 85%;
        max-width: 320px;
        margin: 20px;
    }
    
    /* 测试负责人多选 */
    #testManagerModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    #testManagerContainer {
        min-height: 44px;
        padding: 6px;
    }
    
    #testManagerSearch {
        font-size: 16px;
        min-width: 80px;
    }
    
    /* 模态框头部 */
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }
    
    .modal-header .modal-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    /* 流程模态框 */
    #flowModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    #flowTimeInfo {
        font-size: 12px;
    }
    
    /* 创建/编辑项目模态框 */
    #createProjectModal .modal-box,
    #editProjectModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    /* 三列布局改为单列 */
    #createProjectModal .form-group[style*="grid-template-columns:1fr 1fr 1fr"],
    #editProjectModal .form-group[style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 设置模态框 */
    #settingsModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    /* 项目详情模态框 */
    #projectDetailModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    /* 预览模态框 */
    #previewModal img,
    #previewModal video {
        max-width: 95vw;
        max-height: 70vh;
    }
    
    /* 相机模态框 */
    #cameraModal .modal-box {
        width: 95%;
        max-width: 95%;
    }
    
    #cameraVideo {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    /* 更小的屏幕进一步优化 */
    
    /* 组织架构 */
    #organizationTree .org-node {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    #organizationTree .org-node-actions button {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    /* 按钮组 */
    .modal-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modal-actions button {
        flex: 1;
        min-width: 60px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* 表单 */
    .form-input {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    .form-label {
        font-size: 12px;
    }
    
    /* 模态框 - 小屏幕居中 */
    .modal.show {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px !important;
    }
    
    .modal-box {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        padding: 12px !important;
        border-radius: 8px !important;
        margin: 0 !important;
        overflow-y: auto !important;
    }
    
    .modal-header {
        margin-bottom: 12px;
    }
    
    .modal-title {
        font-size: 15px;
    }
    
    /* 登录框 */
    #loginModal .form-input {
        font-size: 16px;
        padding: 12px;
    }
    
    /* 流程时间信息 */
    #flowTimeInfo {
        padding: 10px;
    }
    
    #flowTimeInfo > div {
        flex-direction: column;
        gap: 4px;
    }
    
    /* 批量操作区域 */
    #batchOperationsArea {
        padding: 10px;
    }
    
    #batchOperationsArea .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* 数据看板样式 */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.dashboard-date {
    font-size: 14px;
    color: var(--gray);
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}
.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(99, 102, 241, 0.08) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmer 4s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover::after {
    opacity: 1;
}
.stat-icon {
    font-size: 24px;
    margin-bottom: 12px;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* 流程状态统计 */
.flow-stats {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.flow-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.flow-stats-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.flow-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}
.flow-stat-item {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--hover);
}
.flow-stat-icon {
    font-size: 20px;
    margin-bottom: 8px;
}
.flow-stat-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.flow-stat-label {
    font-size: 12px;
    color: var(--gray);
}

/* 最近项目 */
.recent-projects {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.recent-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.recent-projects-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.recent-projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.recent-project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--hover);
    transition: var(--transition);
    cursor: pointer;
}
.recent-project-item:hover {
    background: var(--blue-light);
}
.recent-project-info {
    flex: 1;
}
.recent-project-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.recent-project-meta {
    font-size: 12px;
    color: var(--gray);
}
.recent-project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-active {
    background: var(--green);
    color: white;
}
.status-archived {
    background: var(--yellow);
    color: white;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 20px;
    }
    
    .dashboard-header {
        padding: 16px 20px !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px !important;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .flow-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .flow-stat-item {
        padding: 12px !important;
    }
    
    .flow-stat-value {
        font-size: 18px !important;
    }
    
    /* 项目卡片响应式 */
    .project-card {
        padding: 16px !important;
    }
    
    .project-card-header h3 {
        font-size: 16px !important;
    }
    
    .project-card-body {
        gap: 12px !important;
    }
    
    .project-card-footer {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .project-card-footer button {
        width: 100% !important;
    }
    
    /* 侧边栏响应式 */
    .sidebar {
        width: 60px;
    }
    
    .sidebar:hover {
        width: 200px;
    }
    
    .sidebar-btn-text {
        display: none;
    }
    
    .sidebar:hover .sidebar-btn-text {
        display: inline;
    }
    
    /* 内容区域响应式 */
    .content {
        padding: 16px !important;
    }
    
    /* 模态框响应式 - 强制居中 */
    .modal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px !important;
    }
    
    .modal-box {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        margin: 0 !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 480px) {
    .dashboard-title {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .flow-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 12px !important;
    }
    
    .stat-value {
        font-size: 20px !important;
    }
    
    .flow-stat-item {
        padding: 10px !important;
    }
    
    .flow-stat-value {
        font-size: 16px !important;
    }
    
    /* 项目卡片响应式 */
    .project-card {
        padding: 12px !important;
    }
    
    .project-card-header h3 {
        font-size: 14px !important;
    }
    
    /* 按钮响应式 */
    .btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* 输入框响应式 */
    .form-input {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    /* 内容区域响应式 */
    .content {
        padding: 12px !important;
    }
    
    /* 批量操作区域响应式 */
    .batch-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .batch-actions button {
        width: 100% !important;
    }
}

/* 更新日志弹窗样式 */
.changelog-modal {
    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;
    padding: 20px;
}

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

.changelog-modal-box {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

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

.changelog-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.changelog-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.changelog-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.changelog-content {
    color: var(--text);
}

.changelog-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--blue);
}

.changelog-content h3:first-child {
    margin-top: 0;
}

.changelog-content ul {
    list-style: none;
    padding-left: 0;
}

.changelog-content li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.changelog-content li:last-child {
    border-bottom: none;
}

.changelog-content li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--blue);
}

.changelog-content .version {
    background: var(--blue-light);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.changelog-content .version span {
    font-weight: 600;
    color: var(--blue);
}

.changelog-content .version small {
    color: var(--gray);
    margin-left: 8px;
}

/* 更新日志按钮 */
.changelog-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.changelog-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* 更新提醒徽章 */
.update-badge {
    background: var(--yellow);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    animation: pulse 2s infinite;
}

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