.purchase {
    width: 100%;
    background-color: #f7f7f7;
    padding: 40px 0 50px
}

.purchase-body {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 40px
}

.purchase-body-title {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    padding-bottom: 16px
}

.purchase-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px 24px;
    margin-bottom: 56px;
}

.purchase-li {
    width: 100%;
}

.purchase-li input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #000;
    outline: none;
    transition: background-color 0.2s ease;
    background-color: #F5F5F7;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

.purchase-li input:focus {
    border-color: #1797ff;
    box-shadow: 0 0 0 2px rgba(23,151,255,0.1)
}

.purchase-li input::placeholder {
    color: #9ca3af
}

.purchase-li-hy{
    position: relative;
}

.purchase-li-hy .li-hy{
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #AAAAAA;
    outline: none;
    transition: background-color 0.2s ease;
    background-color: #F5F5F7;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    line-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.purchase-li-hy .li-hy .iconfont{
    opacity: 1;
    display: flex;
    color: #AAAAAA;
}

.purchase-li-money{
    position: relative;
}

.purchase-li-money .li-hy{
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #AAAAAA;
    outline: none;
    transition: background-color 0.2s ease;
    background-color: #F5F5F7;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    line-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.purchase-li-money .li-hy .iconfont{
    opacity: 1;
    display: flex;
    color: #AAAAAA;
}


.purchase-li-type{
    position: relative;
}

.purchase-li-type .li-hy{
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #AAAAAA;
    outline: none;
    transition: background-color 0.2s ease;
    background-color: #F5F5F7;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    line-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.purchase-li-type .li-hy .iconfont{
    opacity: 1;
    display: flex;
    color: #AAAAAA;
}


.purchase-li-qy{
    position: relative;
}

.purchase-li-qy .li-qy{
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    color: #AAAAAA;
    outline: none;
    transition: background-color 0.2s ease;
    background-color: #F5F5F7;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    line-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.purchase-li-qy .li-qy .iconfont{
    opacity: 1;
    display: flex;
    color: #AAAAAA;
}

.images-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    border-radius: 8px;
    transition: border-color 0.2s ease
}

.images-list:hover {
    border-color: #1797ff
}

.images-list .image-gather {
    display: flex;
    gap: 12px;
}
.images-list .image-gather img{
    height: 60px;
    object-fit: cover;
}

.images-list button {
    width: 100px;
    padding: 10px 0;
    background-color: #0F73FF;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease
}

.images-list button:hover {
    background-color: #1797ff;
    color: #fff;
    border-color: #1797ff
}

.images-list .desc {
    font-size: 12px;
    color: #666
}

textarea[name="content"] {
    font-size: 16px;
    color: #000;
    outline: none;
    resize: none;
    margin-bottom: 24px;
    transition: border-color 0.2s ease;
    width: 100%;
    min-height: 240px;
    opacity: 1;
    border-radius: 8px;
    background: #F5F5F7;
    border: 1px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 12px 16px;
    font-family: MiSans;
}

textarea[name="content"]:focus {
    border-color: #1797ff;
    box-shadow: 0 0 0 2px rgba(23,151,255,0.1)
}

textarea[name="content"]::placeholder {
    color: #9ca3af
}

.btn {
    width: 240px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background-color: #0F73FF;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 auto
}

.btn:hover {
    background-color: #0083ff
}

.btn.disabled {
    background-color: #9ca3af;
    cursor: not-allowed
}


/* ====== 弹出框通用样式 ====== */
.popup-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.popup-box.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}
.prompt{
    margin-bottom: 24px;
    text-align: center;
    color: #34c005;
}
.err{
    margin-bottom: 24px;
    text-align: center;
    color: #ea0505;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== 行业选择框样式 ====== */
.purchase-li-hy .popup-box {
    width: 100%;
    min-width: 120px;
}

.purchase-li-hy .popup-box .hanyeli{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
}
.purchase-li-hy .popup-box .hanyeli:hover{
    background: #1890ff;
    color: #fff;
}

/* ====== 货币选择框样式 ====== */
.purchase-li-money .popup-box {
    width: 100%;
    min-width: 120px;
}

.purchase-li-money .popup-box .hanyeli{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
}
.purchase-li-money .popup-box .hanyeli:hover{
    background: #1890ff;
    color: #fff;
}

/* ====== 采购类型选择框样式 ====== */
.purchase-li-type .popup-box {
    width: 100%;
    min-width: 120px;
}

.purchase-li-type .popup-box .hanyeli{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
}
.purchase-li-type .popup-box .hanyeli:hover{
    background: #1890ff;
    color: #fff;
}

/* ====== 区域选择框样式 ====== */
.purchase-li-qy .popup-box {
    width: 100%;
    min-width: 150px;
    cursor: pointer;
}

.province-list, .city-list {
    padding: 8px 0;
    cursor: pointer;
}

/* 省份列表样式 */
.province-list .popup-li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.province-list .popup-li .province-name {
    flex: 1;
}

.province-list .popup-li .province-count {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}

.province-list .popup-li:hover{
    background: #1890ff;
    color: #fff;
}

/* 城市列表样式 */
.city-list .popup-li {
    padding: 10px 16px;
}

.city-list .popup-li:hover{
    background: #1890ff;
    color: #fff;
}

/* 二级选择框的箭头图标 */
.li-hy i {
    margin-left: 8px;
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.li-hy.active i {
    transform: rotate(180deg);
    color: #1890ff;
}


/* 二级选择框的箭头图标 */
.li-qy i {
    margin-left: 8px;
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.li-qy.active i {
    transform: rotate(180deg);
    color: #1890ff;
}

/* 滚动条样式 */
.popup-box::-webkit-scrollbar {
    width: 6px;
}

.popup-box::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.popup-box::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.popup-box::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.purchase-li-qy.active .popup-box {
    display: block;
}

.purchase-li-hy.active .popup-box {
    display: block;
}

.purchase-li-money.active .popup-box {
    display: block;
}

.purchase-li-type.active .popup-box {
    display: block;
}



@media (max-width: 480px) {
    .purchase-grid {
        grid-template-columns:repeat(2,1fr)
    }

    .purchase-body {
        padding: 16px
    }

    .purchase-body-title {
        font-size: 16px
    }
}
