/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #ff2f2f 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.flag-decoration {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.flag-red, .flag-white {
    width: 40px;
    height: 6px;
    margin: 0 2px;
}

.flag-red {
    background: #ff4757;
}

.flag-white {
    background: #ffffff;
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 16px;
    color: #ffffff;
    opacity: 0.9;
}

/* 奖品展示 */
.prize-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.prize-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4757, #ffffff, #ff4757);
}

.prize-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.prize-text {
    font-size: 20px;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 10px;
}

.prize-amount {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.guarantee-text {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 表单样式 */
.form-section {
    flex: 1;
    margin-bottom: 30px;
}

.form-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #ff4757;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.verify-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.verify-btn:active {
    transform: translateY(0);
}

.verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 错误信息 */
.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

/* 说明信息 */
.info-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-top: auto;
}

.info-text p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.confirm-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* 成功提示模态框 */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.success-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

.success-modal h3 {
    color: #ff4757;
    font-size: 22px;
    margin-bottom: 15px;
}

.success-modal p {
    color: #333;
    font-size: 16px;
    margin-bottom: 25px;
}

.close-btn {
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .prize-section {
        padding: 25px 15px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .modal {
        padding: 25px 15px;
    }
}

/* 加载状态 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 审核状态弹窗样式 */
.review-status {
    text-align: center;
    padding: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4757;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.review-actions {
    margin-top: 20px;
}

.review-actions button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* 审核状态文字样式 */
#review-message,
#code-review-message {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 审核标题样式 */
#review-title,
#code-review-title {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0;
}

/* 审核失败状态样式 */
.review-status.rejected #review-title,
.review-status.rejected #code-review-title {
    color: #ff4757;
}

.review-status.rejected #review-message,
.review-status.rejected #code-review-message {
    color: #ff4757;
}

/* 成功状态更新 */
.success-modal p {
    color: #333;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
        margin-bottom: 15px;
    }
    
    #review-message,
    #code-review-message {
        font-size: 13px;
    }
    
    #review-title,
    #code-review-title {
        font-size: 16px;
    }
}

