/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #F5F5F7;
    color: #1D1D1F;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    color: #6e6e73;
    font-size: 1.2rem;
}

/* 上传按钮样式 */
.upload-section {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007AFF;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #0051D5;
}

/* 预览区域样式 */
.preview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.preview-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-container h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #1D1D1F;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    margin-bottom: 1rem;
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

/* 下载按钮样式 */
.download-button {
    width: 100%;
    padding: 0.8rem;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-button:disabled {
    background-color: #A1A1A6;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-button {
    position: absolute;
    right: 2rem;
    top: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
} 