/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 标签页样式 */
.tabs {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #2575fc;
}

.tab-button.active {
    color: #2575fc;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2575fc;
}

/* 内容区域样式 */
main {
    padding: 40px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 拖放区域样式 */
.drop-area {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.drop-area.highlight {
    background-color: #f0f7ff;
    border: 2px dashed #2575fc;
}

.drop-message {
    text-align: center;
    color: #777;
}

.drop-message i {
    font-size: 3rem;
    color: #2575fc;
    margin-bottom: 15px;
}

.drop-message p {
    margin-bottom: 10px;
}

.drop-message .small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.file-input-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2575fc;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.file-input-label:hover {
    background-color: #1a68e5;
}

/* 预览容器样式 */
.preview-container {
    width: 100%;
}

.preview-wrapper {
    margin: 20px 0;
    text-align: center;
}

#process-preview {
    max-width: 100%;
    max-height: 500px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 滤镜选项样式 */
.filter-options {
    margin: 20px 0;
    text-align: center;
}

.filter-options h3 {
    margin-bottom: 15px;
    color: #444;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-button:hover {
    background-color: #e0e0e0;
}

.filter-button.active {
    background-color: #2575fc;
    color: white;
}

/* 拼接选项样式 */
.collage-options {
    margin: 20px 0;
    text-align: center;
}

.collage-options h3 {
    margin-bottom: 15px;
    color: #444;
}

.collage-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.collage-button {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collage-button:hover {
    background-color: #e0e0e0;
}

.collage-button.active {
    background-color: #2575fc;
    color: white;
}

/* 拼接预览样式 */
.collage-preview-wrapper {
    margin: 20px 0;
    text-align: center;
}

#collage-preview {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.collage-vertical {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.collage-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 缩略图样式 */
.collage-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.collage-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.collage-thumbnail:hover {
    transform: scale(1.05);
}

.collage-thumbnail.active {
    border-color: #2575fc;
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.action-button {
    padding: 10px 20px;
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    background-color: #1a68e5;
}

.action-button i {
    font-size: 1rem;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 为固定底部添加主体内容底部间距 */
main {
    padding: 40px 0 80px;
    /* 添加底部间距，避免内容被footer遮挡 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 40px 0 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .drop-area {
        padding: 20px;
    }
    
    .filter-buttons, .collage-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-button {
        width: 100%;
        justify-content: center;
    }
}