/* 通用样式 */
.form-container {
    width: 500px;
    margin: 50px auto;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
    background-color: #fff;
}

.section-title {
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px dotted #e4e8eb;
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
}

.form-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
}

.form-item label {
    width: 120px;
    text-align: left;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.form-input-wrapper {
    width: 100%;
    display: flex;
}

.form-input-wrapper input,
.form-input-wrapper select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
.form-input-wrapper span{
    padding: 10px 15px;
    border: 1px solid #f3f5f7;
    border-radius: 8px;
    font-size: 14px;
    width: 270px;
}

.form-item select,
.form-item input {
    padding: 10px 15px;
    border: 1px solid #e4e8eb;
    border-radius: 8px;
    font-size: 14px;
}

.form-item input {
    flex: 1;
    margin-right: 10px;
}

.form-item select {
    width: 320px;
    background-color: #fff;
}

/* 聚焦样式：提升友好性 */
.form-item select:focus,
.form-item input:focus {
    outline: none;
    border-color: #0188fb;
    box-shadow: 0 0 0 2px rgba(46, 110, 223, 0.1);
}

.total-score {
    margin: 25px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #0188fb;
    padding: 10px;
    border-radius: 6px;
    background-color: #f5f9ff;
}

.submit-btn {
    text-align: center;
    margin-top: 15px;
}

.submit-btn button {
    padding: 10px 30px;
    background-color: #0188fb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.submit-btn button:hover {
    background-color: #1e5bc6;
}

/* 选项卡核心样式 */
.tab-container {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px dotted #e4e8eb;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #718096;
    position: relative;
    transition: all 0.3s;
}

/* 激活状态的选项卡按钮 */
.tab-btn.active {
    color: #0188fb;
    font-weight: 600;
}

/* 激活状态下划线 */
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0188fb;
}

/* 选项卡悬停样式：提升友好性 */
.tab-btn:hover {
    color: #0188fb;
}

/* 选项卡内容区域（默认隐藏，仅激活项显示） */
.tab-content {
    display: none;
    padding-top: 25px;
}

.tab-content.active {
    display: block;
}

/* 占位符样式优化 */
::placeholder {
    color: #a0aec0;
    font-size: 13px;
}

/* 提示信息样式 */
.hint-message {
    margin: 20px 0;
    padding: 15px;
    background-color: #e8f4fd;
    border-radius: 8px;
    border: 1px solid #b6dbff;
    color: #4a5568;
    font-size: 14px;
    text-align: center;
}

/* 计算按钮样式 */
.calculate-btn {
    text-align: center;
    margin-top: 30px;
}

.calculate-btn button {
    padding: 12px 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.calculate-btn button:hover {
    background-color: #0056b3;
}

.hint-message.error {
    color: #a11a13;
    border-color: #f5c2c0;
    background-color: #fdecea;
}

.hint-message.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 移动端响应式布局 */
@media (max-width: 768px) {
    .form-item {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .form-item span,
    .form-item select,
    .form-item input {
        width: 100%;
    }
}