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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #060818;
    color: white;
    overflow: hidden;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #060818 0%, #191E3A 100%);
}

.login-box {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(27, 85, 226, 0.3);
}

.login-title {
    color: #25D5E4;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #8A8F98;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #191E3A !important;
    color: white !important;
    border: 1px solid #1955E2 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

/* 登录页面输入框样式 */
.login-box .form-group input[type="text"],
.login-box .form-group input[type="password"] {
    background-color: #191E3A !important;
    color: white !important;
    border: 1px solid #1955E2 !important;
}

/* 确保所有输入框都使用正确的背景色 */
#username,
#password,
#email {
    background-color: #191E3A !important;
    color: white !important;
    border: 1px solid #1955E2 !important;
}

.form-group input:focus {
    outline: none;
    border-color: #25D5E4;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #5C1AC2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 30px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 26, 194, 0.3);
}

.error-message {
    margin-top: 15px;
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
}

/* 主应用样式 */
.main-app {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #191E3A;
    border-right: 1px solid #1B55E2;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #22184E;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header h1 {
    margin: 0;
    color: #25D5E4;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-header h1 {
    opacity: 0;
}

.collapse-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #22184E;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.collapse-btn:hover {
    background-color: #1B55E2;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: #5C1AC2;
    border-left-color: #25D5E4;
}

.nav-item.active {
    background-color: #22184E;
    border-left-color: #25D5E4;
}

.nav-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #22184E;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background-color: #E74C3C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #C0392B;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.page {
    animation: fadeIn 0.3s ease;
}

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

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h2 {
    color: #25D5E4;
    font-size: 28px;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #8A8F98;
    font-size: 16px;
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B55E2, #6A8AFF);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(27, 85, 226, 0.3);
    background-color: #1E2448;
}

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

.stat-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22184E, #1B55E2);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(27, 85, 226, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(27, 85, 226, 0.4);
}

.stat-icon img {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-label {
    font-size: 14px;
    color: #A0A3BD;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 为不同统计卡片添加独特的渐变背景 */
.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #22184E, #1B55E2);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #2A1E5C, #2B73E8);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #33226B, #3B82F6);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #3C267A, #4F46E5);
}

.stat-card:nth-child(5) .stat-icon {
    background: linear-gradient(135deg, #452E89, #6366F1);
}

/* 压缩页面样式 */
.compress-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.image-box {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.image-box h3 {
    color: #25D5E4;
    margin-bottom: 15px;
}

.image-preview {
    min-height: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #22184E;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    border: 2px dashed transparent;
    transition: all 0.3s ease;
}

.image-preview:hover {
    border-color: #25D5E4;
    background: rgba(37, 213, 228, 0.1);
}

.image-preview.drag-active {
    border-color: #25D5E4;
    background: rgba(37, 213, 228, 0.15);
    transform: scale(1.02);
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.upload-area {
    text-align: center;
}

.upload-btn {
    padding: 12px 24px;
    background-color: #1B55E2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #25D5E4;
}

.file-info {
    margin-top: 10px;
    color: #8A8F98;
    font-size: 14px;
}

.compress-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
}

/* 压缩比滑块 */
.quality-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
}

.quality-control label {
    white-space: nowrap;
    color: #fff;
}

.quality-control input[type="range"] {
    width: 200px;
    height: 6px;
    cursor: pointer;
    accent-color: #1B55E2;
}

.compress-btn,
.download-btn {
    padding: 10px 20px;
    background-color: #1B55E2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.compress-btn:hover,
.download-btn:hover {
    background-color: #25D5E4;
}

/* 设置页面样式 */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #191E3A;
    color: white;
    border: 1px solid #1B55E2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background-color: #22184E;
}

.tab-btn.active {
    background-color: #1B55E2;
}

.settings-content {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
    padding: 20px;
}

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

.tab-header h3 {
    color: #25D5E4;
}

.add-btn {
    padding: 8px 16px;
    background-color: #1B55E2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #25D5E4;
}

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

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #22184E;
}

.data-table th {
    background-color: #22184E;
    color: #25D5E4;
}

.edit-btn,
.delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.edit-btn {
    background-color: #1B55E2;
    color: white;
}

.edit-btn:hover {
    background-color: #25D5E4;
}

.delete-btn {
    background-color: #E74C3C;
    color: white;
}

.delete-btn:hover {
    background-color: #C0392B;
}

/* 对话框样式 */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-content {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #22184E;
}

.dialog-header h3 {
    margin: 0;
    color: #25D5E4;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #25D5E4;
}

.dialog-body {
    padding: 20px;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #22184E;
}

.cancel-btn,
.confirm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cancel-btn {
    background-color: #22184E;
    color: white;
}

.cancel-btn:hover {
    background-color: #191E3A;
}

.confirm-btn {
    background-color: #1B55E2;
    color: white;
}

.confirm-btn:hover {
    background-color: #25D5E4;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-header h1 {
        opacity: 0;
    }
    
    .nav-text {
        display: none;
    }
    
    .compress-controls {
        flex-direction: column;
    }
}

/* 图像处理工具栏 */
.image-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #22184E;
    background-color: #22184E;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background-color: #5C1AC2;
    border-color: #5C1AC2;
    transform: scale(1.1);
}

.tool-btn.active {
    background-color: #1B55E2;
    border-color: #25D5E4;
    box-shadow: 0 0 10px rgba(27, 85, 226, 0.5);
}

.adjustment-toggle {
    position: relative;
}

.adjustment-panel {
    position: absolute;
    top: 50px;
    left: 0;
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.adjustment-item {
    margin-bottom: 15px;
}

.adjustment-item label {
    display: block;
    margin-bottom: 8px;
    color: #8A8F98;
    font-size: 14px;
}

.adjustment-item input[type="range"] {
    width: 100%;
    height: 6px;
    background: #132E6E;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.adjustment-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #25D5E4;
    border-radius: 50%;
    cursor: pointer;
}

/* 图像容器 */
.image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 图像信息容器 */
.image-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* 比例尺样式 */
.scale-bar {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scale-bar::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

.scale-label {
    white-space: nowrap;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 批量图片压缩页面样式 */
.batch-compress-container {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 8px;
    padding: 20px;
}

.batch-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.half-width {
    flex: 1;
}

.path-input-group {
    display: flex;
    gap: 10px;
}

.path-input-group input {
    flex: 1;
}

.browse-btn {
    padding: 10px 16px;
    background-color: #1B55E2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.browse-btn:hover {
    background-color: #25D5E4;
}

.path-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 14px;
    color: #25D5E4;
}

.batch-controls {
    margin-top: 20px;
}

/* 拖拽上传区域 */
.drag-drop-area {
    margin: 20px 0;
    padding: 40px 20px;
    border: 2px dashed #1B55E2;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(27, 85, 226, 0.1);
    cursor: pointer;
}

.drag-drop-area:hover {
    border-color: #25D5E4;
    background: rgba(37, 213, 228, 0.15);
}

.drag-drop-area.drag-active {
    border-color: #25D5E4;
    background: rgba(37, 213, 228, 0.2);
    transform: scale(1.02);
}

.drag-drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.drag-drop-content svg {
    color: #25D5E4;
}

.drag-drop-content h4 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.drag-drop-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.batch-progress {
    margin-top: 20px;
    padding: 20px;
    background-color: #22184E;
    border-radius: 8px;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #191E3A;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #1B55E2;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: white;
}

.batch-result {
    margin-top: 30px;
    padding: 20px;
    background-color: #22184E;
    border-radius: 8px;
}

.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    color: white;
}

.result-info p {
    margin: 0;
}

.result-controls {
    margin-top: 20px;
    text-align: center;
}

.result-controls .download-btn {
    margin-top: 15px;
}

.result-info span {
    color: #25D5E4;
    font-weight: bold;
}

/* 视频包装器 */
.video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-wrapper video {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* 放大镜 */
.magnify-glass {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid #1B55E2;
    border-radius: 50%;
    pointer-events: none;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(27, 85, 226, 0.5);
    z-index: 10;
}

.magnify-content {
    width: 200%;
    height: 200%;
    background-repeat: no-repeat;
    background-size: 200% 200%;
}

/* 测量线条 */
.measure-line {
    position: absolute;
    height: 2px;
    background-color: #FF6B6B;
    transform-origin: left center;
    pointer-events: none;
}

.measure-line::after {
    content: attr(data-distance);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FF6B6B;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* 角度测量 */
.angle-line {
    position: absolute;
    height: 2px;
    background-color: #4ECDC4;
    transform-origin: left center;
    pointer-events: none;
}

.angle-vertex {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #4ECDC4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.angle-label {
    position: absolute;
    background-color: #4ECDC4;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

/* 标注 */
.annotation {
    position: absolute;
    background-color: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    white-space: nowrap;
}

.annotation::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(255, 107, 107, 0.9);
}

/* 圆形 */
.circle-shape {
    position: absolute;
    border: 2px solid #9B59B6;
    border-radius: 50%;
    pointer-events: none;
}

.circle-label {
    position: absolute;
    background-color: #9B59B6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* 矩形 */
.rectangle-shape {
    position: absolute;
    border: 2px solid #3498DB;
    pointer-events: none;
}

.rectangle-label {
    position: absolute;
    background-color: #3498DB;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* 不规则形 */
.freeform-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.freeform-path {
    fill: rgba(231, 76, 60, 0.3);
    stroke: #E74C3C;
    stroke-width: 2;
}

/* 信息对话框 */
.info-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.info-dialog-content {
    background-color: #191E3A;
    border: 1px solid #1B55E2;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.info-dialog-content h3 {
    color: #25D5E4;
    margin-bottom: 20px;
    text-align: center;
}

.info-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #22184E;
    border-radius: 8px;
}

.info-section h4 {
    color: #1B55E2;
    margin-bottom: 10px;
}

.info-section p {
    color: #8A8F98;
    margin: 5px 0;
    font-size: 14px;
/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
}

/* 最近压缩记录样式 - 版本1.2 */
.recent-compressions-section {
    margin-top: 40px;
    background: linear-gradient(145deg, #1A1A2E 0%, #16213E 100%);
    border: 1px solid rgba(106, 57, 238, 0.3);
    border-radius: 20px;
    padding: 0;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 80px rgba(106, 57, 238, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

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

.section-header {
    background: linear-gradient(135deg, #3949AB 0%, #6A39EE 50%, #3949AB 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(106, 57, 238, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.section-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.no-records {
    text-align: center;
    color: #8A8F98;
    padding: 60px 40px;
    font-size: 16px;
    background: linear-gradient(145deg, #191E3A 0%, #0E1726 100%);
}

.no-records::before {
    content: '📋';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.records-table-container {
    overflow-x: auto;
    padding: 20px;
}

.records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    min-width: 900px;
}

.records-table th {
    background: transparent;
    color: #23D5E4;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: none;
}

.records-table td {
    padding: 18px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.records-table tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.records-table tbody tr:hover {
    transform: translateX(8px);
    z-index: 10;
}

/* 第一条记录样式 */
.records-table .record-row-1 td {
    background: rgba(58, 55, 48, 0.5);
    color: white;
    border: 1px solid #FECE0B;
    box-shadow: 0 4px 20px rgba(254, 206, 11, 0.2);
}

.records-table .record-row-1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #FECE0B;
}

.records-table .record-row-1:hover td {
    background: rgba(58, 55, 48, 0.7);
    border-color: #FECE0B;
    box-shadow: 0 8px 30px rgba(254, 206, 11, 0.3);
}

/* 第二条记录样式 */
.records-table .record-row-2 td {
    background: rgba(17, 53, 86, 0.5);
    color: white;
    border: 1px solid #00C2FE;
    box-shadow: 0 4px 20px rgba(0, 194, 254, 0.2);
}

.records-table .record-row-2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00C2FE;
}

.records-table .record-row-2:hover td {
    background: rgba(17, 53, 86, 0.7);
    border-color: #00C2FE;
    box-shadow: 0 8px 30px rgba(0, 194, 254, 0.3);
}

/* 第三条记录样式 */
.records-table .record-row-3 td {
    background: rgba(53, 45, 54, 0.5);
    color: white;
    border: 1px solid #D18430;
    box-shadow: 0 4px 20px rgba(209, 132, 48, 0.2);
}

.records-table .record-row-3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #D18430;
}

.records-table .record-row-3:hover td {
    background: rgba(53, 45, 54, 0.7);
    border-color: #D18430;
    box-shadow: 0 8px 30px rgba(209, 132, 48, 0.3);
}

/* 第四条记录样式 */
.records-table .record-row-4 td {
    background: rgba(30, 55, 79, 0.5);
    color: white;
    border: 1px solid #51B0BA;
    box-shadow: 0 4px 20px rgba(81, 176, 186, 0.2);
}

.records-table .record-row-4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #51B0BA;
}

.records-table .record-row-4:hover td {
    background: rgba(30, 55, 79, 0.7);
    border-color: #51B0BA;
    box-shadow: 0 8px 30px rgba(81, 176, 186, 0.3);
}

/* 悬停效果 */
.records-table tbody tr:hover td::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.records-table td:first-child {
    border-radius: 12px 0 0 12px;
}

.records-table td:last-child {
    border-radius: 0 12px 12px 0;
}

.row-number {
    color: #4A5568;
    font-weight: 600;
    font-size: 12px;
    width: 40px;
    text-align: center;
}

.filename-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #25D5E4;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filename-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3949AB 0%, #6A39EE 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(106, 57, 238, 0.3);
    border: 1px solid rgba(106, 57, 238, 0.3);
}

.filename-icon img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(1);
}

.filename-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.size-cell {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.original-size {
    color: #FFA726;
}

.compressed-size {
    color: #66BB6A;
}

.saved-space {
    color: #4CAF50;
    font-weight: 700;
    font-size: 14px;
}

.saved-space::before {
    content: '↓';
    margin-right: 4px;
    font-size: 12px;
}

.compression-ratio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: #0D3B1E;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.compression-ratio.high {
    background: linear-gradient(135deg, #4CD964 0%, #34C759 100%);
    box-shadow: 0 4px 15px rgba(76, 217, 100, 0.4);
}

.compression-ratio.medium {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: #5D4037;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    border-color: rgba(255, 152, 0, 0.4);
}

.compression-ratio.low {
    background: linear-gradient(135deg, #607D8B 0%, #90A4AE 100%);
    color: #263238;
    box-shadow: 0 4px 15px rgba(96, 125, 139, 0.3);
    border-color: rgba(96, 125, 139, 0.4);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.type-badge.single {
    background: linear-gradient(135deg, #3949AB 0%, #5C6BC0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(57, 73, 171, 0.3);
    border-color: rgba(57, 73, 171, 0.4);
}

.type-badge.batch {
    background: linear-gradient(135deg, #6A39EE 0%, #8E24AA 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(106, 57, 238, 0.3);
    border-color: rgba(106, 57, 238, 0.4);
}

.type-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.7;
}

.time-cell {
    color: #8A8F98;
    font-size: 13px;
}



/* 响应式设计 */
@media (max-width: 1200px) {
    .records-table {
        min-width: 750px;
    }
    
    .filename-cell {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .recent-compressions-section {
        margin-top: 20px;
        border-radius: 16px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .records-table-container {
        padding: 15px;
    }
    
    .records-table td {
        padding: 12px;
    }
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
}

.message.show {
    transform: translateX(0);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #1955E2;
    border-radius: 8px;
    background-color: #191E3A;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1B55E2;
    box-shadow: 0 0 0 3px rgba(27, 85, 226, 0.1);
}

.form-group input::placeholder {
    color: #A0A3BD;
}

/* 对话框样式 */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background-color: #1a1a2e;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dialog-content h2 {
    color: #00d4ff;
    margin-bottom: 20px;
}

.dialog-content p {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 16px;
}

.dialog-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* 侧边栏标题样式 */
.sidebar-header h1 {
    color: #00d4ff;
    font-size: 18px;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-header h1:hover {
    color: #0099cc;
}
