/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    cursor: default;
    background: #f8f9fa;
    color: #2c3e50;
}

/* 头部样式 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2196F3;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2196F3;
}

/* 主要内容区域 */
.main-content {
    margin-top: 64px;
    padding-top: 2rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 上传区域样式 */
.upload-area {
    margin-bottom: 20px;
}

.drag-drop-area {
    border: 2px dashed #2196F3;
    padding: 40px;
    text-align: center;
    background: rgba(33, 150, 243, 0.05);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.drag-drop-area:hover {
    background: rgba(33, 150, 243, 0.1);
}

.drag-drop-area.dragover {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.15);
    cursor: grabbing;
}

/* 文件输入框样式 */
#fileInput {
    display: none;
}

/* 预览区域样式 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-item {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-2px);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    margin: 0 10px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn {
    background: #2196F3;
}

.primary-btn:hover {
    background: #1976D2;
}

.secondary-btn {
    background: #4CAF50;
}

.secondary-btn:hover {
    background: #388E3C;
}

.btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 加载指示器样式 */
.loading {
    text-align: center;
    margin-top: 20px;
    cursor: wait;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 大小信息表格样式 */
.size-info {
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    font-weight: bold;
    display: flex;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.cell {
    padding: 12px;
    flex: 1;
    text-align: center;
}

.table-row:hover {
    background: #f9f9f9;
}

.compression-good {
    color: #4caf50;
}

.compression-medium {
    color: #ff9800;
}

.compression-low {
    color: #f44336;
}

/* 帮助图标样式 */
.help-icon {
    cursor: help;
    margin-left: 5px;
}

/* 页脚样式 */
.site-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: #2c3e50;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img-small {
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
} 