/* 天文摄影作品投稿页面样式 */

/* Banner区域 */
.atf-works-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: var(--astroWorks-banner) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 41, 108, 0.8) 0%, rgba(8, 120, 204, 0.6) 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.banner-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #b6dcff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
}

/* 星星装饰动画 */
.banner-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: 40%;
    right: 20%;
    animation-delay: 1s;
}

.star-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

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

/* 内容区域通用样式 */
.atf-works-content,
.atf-works-rewards,
.atf-works-form {
    padding: 80px 0;
}

.atf-works-content {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.atf-works-rewards {
    background: linear-gradient(135deg, #031d82 0%, #0878cc 100%);
    position: relative;
}

.atf-works-form {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--v2-h1-font-size);
    line-height: var(--v2-h1-line-height);
    font-weight: 500;
    color: var(--thm-black);
    margin-bottom: 20px;
}

.atf-works-rewards .section-title {
    color: var(--color-white);
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--thm-base) 0%, var(--thm-color) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* 内容卡片 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--thm-base) 0%, var(--thm-color) 100%);
    padding: 30px;
    text-align: center;
    position: relative;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.card-icon i {
    font-size: 24px;
    color: var(--color-white);
}

.card-header h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin: 0;
}

.card-body {
    padding: 30px;
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-weight: 600;
    color: var(--thm-black);
    display: inline-block;
    margin-bottom: 8px;
}

.requirement-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.requirement-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--thm-gray);
    line-height: 1.6;
}

.requirement-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--thm-base);
    font-weight: bold;
}

.card-note {
    margin-top: 25px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
    color: var(--thm-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-note i {
    font-size: 18px;
}

/* 奖励区域 */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.reward-item {
    text-align: center;
    color: var(--color-white);
}

.reward-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.reward-item:hover .reward-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.reward-icon i {
    font-size: 32px;
    color: var(--color-white);
}

.reward-item h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.reward-item p {
    opacity: 0.9;
    line-height: 1.6;
}

.notice-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.notice-box h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.notice-box ol {
    color: rgba(255, 255, 255, 0.9);
    padding-left: 20px;
    line-height: 1.8;
}

/* 表单样式 */
.submission-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--thm-black);
    font-size: 0.95rem;
}

.required {
    color: #ff4757;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--thm-base);
    background: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-helper {
    display: block;
    margin-top: 8px;
    color: var(--v2-text-muted, #5f6672);
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

/* 文件上传样式 */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-box {
    border: 2px dashed #d8d8d8;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover .file-upload-box,
.file-upload-wrapper.dragover .file-upload-box {
    border-color: var(--thm-base);
    background: #f0f8ff;
}

.file-upload-box i {
    font-size: 48px;
    color: var(--thm-base);
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1rem;
    color: var(--thm-black);
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--thm-gray);
}

.file-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
    margin-top: 15px;
    gap: 10px;
}

.file-info i {
    font-size: 24px;
    color: var(--thm-base);
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: var(--thm-black);
}

.file-size {
    color: var(--thm-gray);
    font-size: 0.9rem;
}

.remove-file {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: transform 0.2s;
}

.remove-file:hover {
    transform: scale(1.2);
}

/* 上传进度条 */
.upload-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--thm-base) 0%, var(--thm-color) 100%);
    transition: width 0.3s ease;
    width: 0;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--thm-gray);
    font-size: 0.9rem;
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--thm-gray);
    line-height: 1.5;
}

/* 错误提示 */
.error-message {
    display: block;
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.form-group.error .error-message {
    opacity: 1;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff4757;
}

/* 提交按钮 */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--thm-base) 0%, var(--thm-color) 100%);
    color: var(--color-white);
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(58, 151, 255, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon.success {
    background: #e8f8f5;
}

.modal-icon.success i {
    color: #52c41a;
    font-size: 40px;
}

.modal-icon.error {
    background: #fff2f0;
}

.modal-icon.error i {
    color: #ff4757;
    font-size: 40px;
}

.modal-content h3 {
    color: var(--thm-black);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--thm-gray);
    margin-bottom: 10px;
    line-height: 1.6;
}

.btn-close-modal {
    background: linear-gradient(135deg, var(--thm-base) 0%, var(--thm-color) 100%);
    color: var(--color-white);
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(58, 151, 255, 0.3);
}

.content-card,
.card-note,
.reward-item,
.notice-box,
.submission-form,
.form-group input,
.form-group select,
.form-group textarea,
.file-upload-box,
.file-info,
.atf-subscribe-panel,
.atf-subscribe-input,
.atf-subscribe-btn,
.modal-content {
    border-radius: var(--v2-radius-sm);
}

.card-header h3,
.reward-item h4,
.notice-box h4,
.modal-content h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 0;
}

.info-item,
.info-label,
.requirement-list li,
.card-note,
.reward-item p,
.notice-box ol,
.notice-box li,
.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.checkbox-label span,
.upload-text,
.upload-hint,
.modal-content p {
    font-size: 16px;
    line-height: 24px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .atf-works-banner {
        height: 50vh;
        min-height: 350px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .submission-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 24px;
        line-height: 32px;
        font-weight: 500;
        letter-spacing: 0;
    }

    .card-header h3,
    .reward-item h4,
    .notice-box h4,
    .modal-content h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .atf-works-content,
    .atf-works-rewards,
    .atf-works-form {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 24px;
        line-height: 32px;
    }

    .card-header {
        padding: 20px;
    }

    .card-body {
        padding: 20px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
