/**
 * 广告位入驻下单页样式
 */

/* 下单页信息区 */
.wzw-ad-order-box .card-body {
    padding: 24px;
}

.wzw-ad-order-info {
    background: #f6f7f9;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 24px;
}

.wzw-ad-order-info-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 6px;
}

.wzw-ad-order-info-item:last-child {
    margin-bottom: 0;
}

.wzw-ad-order-info-item .label {
    flex: 0 0 auto;
    color: #999;
    margin-right: 8px;
}

.wzw-ad-order-info-item .value {
    flex: 1;
    color: #333;
}

/* 区块标题 */
.wzw-ad-order-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* 广告类型选择 */
.wzw-ad-type-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.wzw-ad-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
    text-align: center;
}

.wzw-ad-type-item:hover {
    border-color: #4b9af5;
    box-shadow: 0 4px 14px rgba(75, 154, 245, .12);
}

.wzw-ad-type-item.selected {
    border-color: #4b9af5;
    background: #f0f7ff;
    box-shadow: 0 4px 14px rgba(75, 154, 245, .18);
}

.wzw-ad-type-item.disabled {
    opacity: .5;
    cursor: not-allowed;
}

.wzw-ad-type-item .name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.wzw-ad-type-item .desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.wzw-ad-type-item .unavailable {
    font-size: 12px;
    color: #fe4066;
    font-weight: 600;
}

/* 广告位位置选择 */
.wzw-ad-group-select-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.wzw-ad-group-select {
    flex: 0 0 auto;
    min-width: 240px;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s ease;
}

.wzw-ad-group-select:hover,
.wzw-ad-group-select:focus {
    border-color: #4b9af5;
    outline: none;
}

.wzw-ad-group-hint {
    font-size: 12px;
    color: #999;
}

@media (max-width: 767px) {
    .wzw-ad-group-select-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .wzw-ad-group-select {
        width: 100%;
        min-width: 0;
    }
}

/* 时长选择 */
.wzw-ad-duration-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.wzw-ad-duration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
    text-align: center;
}

.wzw-ad-duration-item:hover {
    border-color: #4b9af5;
    box-shadow: 0 4px 14px rgba(75, 154, 245, .12);
}

.wzw-ad-duration-item.selected {
    border-color: #4b9af5;
    background: #f0f7ff;
    box-shadow: 0 4px 14px rgba(75, 154, 245, .18);
}

.wzw-ad-duration-item.unavailable {
    opacity: .45;
    cursor: not-allowed;
}

.wzw-ad-duration-item.unavailable:hover {
    border-color: #e8e8e8;
    box-shadow: none;
}

.wzw-ad-duration-item .name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.wzw-ad-duration-item .days {
    font-size: 12px;
    margin-bottom: 8px;
}

.wzw-ad-duration-item .price {
    font-size: 18px;
    font-weight: 700;
    color: #fe4066;
}

.wzw-ad-duration-item .price::first-letter {
    font-size: 13px;
}

/* 支付方式 */
.wzw-ad-pay-method-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.wzw-ad-pay-method-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
    position: relative;
}

.wzw-ad-pay-method-item:hover {
    border-color: #4b9af5;
}

.wzw-ad-pay-method-item.selected {
    border-color: #4b9af5;
    background: #f0f7ff;
}

.wzw-ad-pay-method-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wzw-ad-pay-method-item img {
    height: 24px;
    width: auto;
    display: inline-block;
}

.wzw-ad-pay-method-item svg {
    height: 24px;
    width: 24px;
    display: inline-block;
}

.wzw-ad-pay-method-item .name {
    font-size: 14px;
    color: #333;
}

/* 合计 */
.wzw-ad-order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #fff8f0;
    border: 1px solid #ffe8cf;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wzw-ad-order-total .label {
    font-size: 14px;
    color: #666;
}

.wzw-ad-order-total .price {
    font-size: 20px;
    font-weight: 700;
    color: #fe4066;
}

.wzw-ad-order-total .price b {
    font-size: 26px;
    margin-left: 2px;
}

/* 下单按钮 */
.wzw-ad-order-submit {
    width: 100%;
    font-size: 16px;
    letter-spacing: 2px;
}

.wzw-ad-order-submit[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* 登录提示 */
.wzw-ad-login-required {
    min-height: 260px;
}

/* 广告素材提交 */
.wzw-ad-material-tip {
    font-size: 13px;
    padding: 10px 14px;
    background: #f4f9ff;
    border: 1px solid #dceeff;
    border-radius: 8px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.wzw-ad-material-item {
    margin-bottom: 18px;
}

.wzw-ad-field {
    margin-bottom: 16px;
}

.wzw-ad-field:last-child {
    margin-bottom: 0;
}

.wzw-ad-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.wzw-ad-upload-box {
    border: 2px dashed #d9d9d9;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    background: #fafafa;
    transition: border-color .2s ease;
}

.wzw-ad-upload-box:hover {
    border-color: #4b9af5;
}

.wzw-ad-image-file {
    display: none;
}

.wzw-ad-upload-preview {
    margin-bottom: 12px;
    display: none;
}

.wzw-ad-upload-preview:not(:empty) {
    display: block;
}

.wzw-ad-upload-preview img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.wzw-ad-upload-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wzw-ad-upload-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.wzw-ad-link-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    transition: border-color .2s ease;
}

.wzw-ad-link-input:focus {
    border-color: #4b9af5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 154, 245, .1);
}

/* 支付成功横幅 */
.wzw-ad-pay-success-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    background: linear-gradient(135deg, #f0faf2, #e6f7e9);
    border: 1px solid #bfe9c6;
    border-radius: 10px;
    margin-bottom: 20px;
}

.wzw-ad-pay-success-icon {
    font-size: 30px;
    color: #19a05b;
    line-height: 1;
    padding-top: 2px;
}

.wzw-ad-pay-success-text h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1c7a43;
}

.wzw-ad-pay-success-text p {
    margin: 0;
    font-size: 13px;
    color: #3d8f5a;
    line-height: 1.7;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .wzw-ad-type-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wzw-ad-duration-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .wzw-ad-order-box .card-body {
        padding: 16px;
    }

    .wzw-ad-pay-success-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
