/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 3px solid #f0f0f0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-image {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo i {
    font-size: 48px;
    color: #4CAF50;
}

.header h1 {
    font-size: 42px;
    color: #2c3e50;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 10px;
}

/* 选项卡样式 */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    flex: 0 1 200px;
    padding: 15px 30px;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 20px;
}

.tab-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.tab-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* 内容面板 */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* 上传区域 */
.upload-area {
    border: 3px dashed #d0d0d0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 30px;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #4CAF50;
    background: #f1f8f4;
    transform: scale(1.01);
}

.upload-icon i {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.upload-area h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-area p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 8px 0;
}

.file-size-hint {
    font-size: 14px !important;
    color: #95a5a6 !important;
}

.upload-btn {
    margin-top: 25px;
    padding: 15px 40px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.upload-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

/* 文件信息 */
.file-info {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-header h3 {
    font-size: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-header i {
    color: #4CAF50;
    font-size: 24px;
}

.clear-btn {
    padding: 8px 16px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.info-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
}

.info-item span:last-child {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.action-btn {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.action-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.action-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 进度条 */
.progress-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 15px;
    transition: width 0.3s ease;
    width: 0%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.progress-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* 文件列表 */
.file-list-container,
.compress-list-container {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.list-header h3 {
    font-size: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-header i {
    color: #4CAF50;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    padding: 10px 18px;
    background: #ffffff;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.file-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.file-list::-webkit-scrollbar {
    width: 8px;
}

.file-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #f1f8f4;
    border-color: #4CAF50;
    transform: translateX(5px);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.file-item-info input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.file-icon {
    font-size: 28px;
    color: #4CAF50;
    min-width: 30px;
    text-align: center;
}

.file-details {
    flex: 1;
}

.file-name {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-meta {
    font-size: 13px;
    color: #7f8c8d;
}

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

.download-btn,
.remove-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-btn {
    background: #4CAF50;
    color: white;
}

.download-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.remove-btn {
    background: #e74c3c;
    color: white;
}

.remove-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* 压缩选项 */
.compress-options {
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    display: grid;
    gap: 20px;
}

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

.option-group label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-group label i {
    color: #4CAF50;
    font-size: 16px;
}

.option-group label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.option-group label span {
    font-weight: 500;
    cursor: pointer;
}

.option-group select,
.option-group input[type="text"],
.option-group input[type="password"] {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.option-group select:focus,
.option-group input[type="text"]:focus,
.option-group input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.option-group select {
    cursor: pointer;
}

.option-group select optgroup {
    font-weight: 700;
    color: #4CAF50;
    padding: 5px 0;
}

.option-group select option {
    padding: 8px;
    color: #2c3e50;
}

.format-hint {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 400;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

.format-hint i {
    margin-right: 4px;
}

/* 特性展示 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 60px 0 40px;
}

.feature-card {
    text-align: center;
    padding: 35px 25px;
    background: #fafafa;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    background: #f1f8f4;
    border-color: #4CAF50;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

.feature-card i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: #7f8c8d;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 2px solid #f0f0f0;
    color: #7f8c8d;
    font-size: 14px;
}

/* 提示框 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 18px 28px;
    background: #2c3e50;
    color: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 15px;
    font-weight: 600;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #e74c3c;
}

.toast.warning {
    background: #f39c12;
}

.toast.info {
    background: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 25px 0;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo i {
        font-size: 36px;
    }

    .header h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .upload-icon i {
        font-size: 60px;
    }

    .upload-area h2 {
        font-size: 20px;
    }

    .upload-area p {
        font-size: 14px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .info-details {
        grid-template-columns: 1fr;
    }

    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .list-actions {
        width: 100%;
        flex-direction: column;
    }

    .icon-btn {
        width: 100%;
        justify-content: center;
    }

    .file-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .file-item-info {
        width: 100%;
    }

    .file-item-actions {
        width: 100%;
    }

    .download-btn,
    .remove-btn {
        flex: 1;
        justify-content: center;
    }

    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item {
    animation: slideIn 0.3s ease;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

