/* ========================================
   发布需求页面样式
   ======================================== */
.main-content {
    display: block;
    padding: 0;
}

/* ========================================
   Banner 区域
   ======================================== */
.publish-banner {
    width: 100%;
    height: 172px;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    max-width: 896px;
    width: 100%;
    padding: 0 24px;
}

.banner-title {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #EFF6FF;
}

/* ========================================
   表单区域
   ======================================== */
.publish-section {
    width: 100%;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.50) 0%, white 100%);
    padding: 48px 0;
}

.publish-container {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 温馨提示卡片 */
.tips-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #EFF6FF;
    border-radius: 12px;
    border: 1px solid #BEDBFF;
    margin-bottom: 32px;
}

.tips-icon {
    flex-shrink: 0;
}

.tips-icon img {
    width: 24px;
    height: 24px;
}

.tips-content {
    flex: 1;
}

.tips-title {
    font-size: 14px;
    font-weight: 500;
    color: #1C398E;
    margin-bottom: 8px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    font-size: 14px;
    color: #193CB8;
    line-height: 1.8;
    padding-left: 16px;
    position: relative;
}

.tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* 表单卡片 */
.publish-form {
    margin-bottom: 32px;
}

.form-card {
    background: white;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.10), 0px 1px 3px rgba(0, 0, 0, 0.10);
    border-radius: 12px;
    border: 1px solid #F3F4F6;
    padding: 32px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #101828;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #E5E7EB;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #364153;
    margin-bottom: 8px;
}

.required {
    color: #FB2C36;
}

/* 输入框包装 */
.input-wrapper {
    position: relative;
}

/* 普通输入框 */
.form-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 48px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    color: #1A1A2E;
    outline: none;
    transition: border-color 0.25s ease;
}

.form-input01{
    padding: 0 16px 0 16px;
}

.form-input::placeholder {
    color: rgba(26, 26, 46, 0.50);
}

.form-input:focus {
    border-color: #155DFC;
}

.form-input + .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* textarea */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    color: #1A1A2E;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.25s ease;
}

.form-textarea::placeholder {
    color: rgba(26, 26, 46, 0.50);
}

.form-textarea:focus {
    border-color: #155DFC;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #6A7282;
    margin-top: 8px;
}

/* 下拉框 */
.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    height: 50px;
    padding: 0 40px 0 48px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    color: #1A1A2E;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.25s ease;
}

.form-select:focus {
    border-color: #155DFC;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6A7282;
    pointer-events: none;
}

/* 行布局 */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-row.three-col .form-group {
    flex: 1;
}

/* 按钮区域 */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 734px;
    height: 48px;
    padding: 0 48px;
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    box-shadow: 0px 4px 6px -4px rgba(43, 127, 255, 0.30), 0px 10px 15px -3px rgba(43, 127, 255, 0.30);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-submit img {
    width: 20px;
    height: 20px;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    height: 50px;
    padding: 0 24px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #364153;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cancel:hover {
    border-color: #155DFC;
    color: #155DFC;
}

/* 服务承诺 */
.service-promise {
    background: linear-gradient(90deg, #155DFC 0%, #1447E6 100%);
    border-radius: 12px;
    padding: 24px;
}

.promise-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.promise-items {
    display: flex;
    gap: 140px;
}

.promise-item {
    display: flex;
    gap: 12px;
}

.promise-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.promise-content {
    flex: 1;
}

.promise-label {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.promise-desc {
    font-size: 12px;
    color: #DBEAFE;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .publish-banner {
        height: auto;
        padding: 32px 0;
    }

    .banner-container {
        padding: 0 16px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .publish-container {
        padding: 0 16px;
    }

    .tips-card {
        flex-direction: column;
        gap: 12px;
    }

    .form-card {
        padding: 20px;
    }

    .form-section-title {
        font-size: 18px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 20px;
    }

    .form-row.three-col {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
    }

    .promise-items {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 16px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 14px;
    }
}