/* 全局样式 */
:root {
    --primary-color: #007AFF;
    --background-color: #F5F5F7;
    --text-color: #1D1D1F;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

header p {
    color: #86868B;
}

/* 上传区域样式 */
.upload-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px dashed #E5E5E5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

/* 描述输入区域样式 */
.description-area {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.description-area h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #E5E5E5;
    border-radius: var(--border-radius);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea::placeholder {
    color: #86868B;
}

/* 预览区域样式 */
.preview-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-box {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-box h3 {
    margin-bottom: 1rem;
}

.preview-box img,
.preview-box video {
    width: 100%;
    border-radius: var(--border-radius);
}

/* 按钮样式 */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
}

.secondary-btn {
    background: #E5E5E5;
    color: var(--text-color);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 添加加载提示样式 */
.loading-tip {
    margin-top: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 优化预览元素的初始状态 */
#imagePreview,
#videoPreview {
    display: none;
    max-width: 100%;
    height: auto;
} 