/**
 * Report Commit 组件样式
 * 文件名：report-commit.css
 * 功能：纯定义样式 - 报告提交界面视觉样式
 */

/* 主容器样式 */
.report-commit {
    padding: 2rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.report-commit__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 标题区域 */
.report-commit__header {
    text-align: center;
    margin-bottom: 3rem;
}

.report-commit__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-commit__subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 表单容器 */
.report-commit__form-container {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.report-commit__form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* 表单区块 */
.report-commit__section {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 1rem;
    border: 1px solid #334155;
}

.report-commit__section-title {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #475569;
}

/* 表单字段组 */
.report-commit__field-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.report-commit__field-group:last-child {
    margin-bottom: 0;
}

.report-commit__label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 1rem;
}

.report-commit__label::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.report-commit__label:has(~ :not([required]))::after {
    content: '';
}

/* 输入框和选择框 */
.report-commit__input,
.report-commit__select,
.report-commit__textarea {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #334155;
    border-radius: 0.75rem;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.report-commit__input:focus,
.report-commit__select:focus,
.report-commit__textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.report-commit__input::placeholder,
.report-commit__textarea::placeholder {
    color: #64748b;
}

.report-commit__select {
    cursor: pointer;
}

.report-commit__select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 0.5rem;
}

.report-commit__textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 操作区域 */
.report-commit__actions {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #334155;
}

.report-commit__submit {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.report-commit__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.report-commit__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.report-commit__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.report-commit__notice {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* 提交结果 */
.report-commit__result {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    padding: 3rem;
    margin-top: 2rem;
    text-align: center;
}

.report-commit__success {
    max-width: 500px;
    margin: 0 auto;
}

.report-commit__success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.report-commit__success-title {
    color: #f1f5f9;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.report-commit__success-message {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.report-commit__success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.report-commit__action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.report-commit__action-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.report-commit__action-btn--secondary {
    background: transparent;
    border: 2px solid #475569;
    color: #cbd5e1;
}

.report-commit__action-btn--secondary:hover {
    background: #475569;
    color: white;
}

/* 错误提示 */
.report-commit__error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-commit__container {
        padding: 0 1rem;
    }
    
    .report-commit__title {
        font-size: 2rem;
    }
    
    .report-commit__subtitle {
        font-size: 1.125rem;
    }
    
    .report-commit__form-container {
        padding: 2rem;
    }
    
    .report-commit__section {
        padding: 1.5rem;
    }
    
    .report-commit__section-title {
        font-size: 1.3rem;
    }
    
    .report-commit__success-actions {
        flex-direction: column;
    }
    
    .report-commit__action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .report-commit__form-container {
        padding: 1.5rem;
    }
    
    .report-commit__section {
        padding: 1rem;
    }
    
    .report-commit__input,
    .report-commit__select,
    .report-commit__textarea {
        padding: 0.875rem 1.25rem;
    }
    
    .report-commit__result {
        padding: 2rem;
    }
    
    .report-commit__success-title {
        font-size: 1.75rem;
    }
}