/* ============================================================
   88.0wo.cn 原创样式，未经授权禁止盗用，客服QQ344607481
   样式指纹：OWO-8801-A7F3
   ============================================================ */
body{
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    min-height: 100vh;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.card {
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}
.card-body {
    padding: 2rem !important;
}
@media screen and (max-width: 768px) {
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    .mian_ui{
        margin-top: 1vh;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }
    .mian_ui .row {
        margin-left: 0;
        margin-right: 0;
    }
    .mian_ui .row > div {
        padding-left: 5px;
        padding-right: 5px;
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .card-body {
        padding: 1rem !important;
    }
    .card {
        margin: 0;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    .input-group-text {
        font-size: 14px;
        padding: 8px 10px;
        min-width: 70px;
    }
    .form-control, .form-select {
        font-size: 14px;
        padding: 8px 10px;
    }
    .btn-outline-red, #btn_km_verify, .btn-outline-primary {
        font-size: 13px;
        padding: 8px 10px;
    }
    .user_ui {
        font-size: 14px;
    }
    .user_pic {
        width: 70px;
        height: 70px;
    }
    .mian_name {
        font-size: 14px;
        padding: 8px 16px;
    }
}
@media screen and (min-width: 768px) {
    .mian_ui{
        margin-top: 2vh;
    }
}

/* ===== 在线购买次数 ===== */
.buy-entry{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #fff4ee, #ffe9e3);
    border: 1px solid #ffd6c7;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}
.buy-entry-text{
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    min-width: 0;
}
.buy-entry-text b{
    color: #e8412c;
    font-size: 15px;
}
.buy-entry-text span{
    color: #999999;
    font-size: 12px;
}
.buy-entry-btn{
    flex: none;
    border: none;
    border-radius: 20px;
    padding: 6px 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35, #f7444e);
    box-shadow: 0 2px 8px rgba(247, 68, 78, 0.3);
    cursor: pointer;
}
.buy-entry-btn:hover{
    opacity: 0.9;
}
.buy-modal .modal-header{
    border-bottom: none;
    padding: 18px 20px 0;
}
.buy-modal .modal-title{
    font-size: 18px;
    font-weight: 700;
    color: #303133;
}
.buy-modal .modal-body{
    padding: 14px 20px 20px;
}
#kmModal .modal-dialog{
    max-width: 420px;
}
.km-buy-wrap{
    text-align: left;
    margin-bottom: 14px;
}
.km-buy-btn{
    display: inline-block;
    padding: 7px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7444e);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(247, 68, 78, 0.3);
}
.km-buy-btn:hover{
    color: #ffffff;
    opacity: 0.9;
    text-decoration: none;
}
/* 获取IMEI教程弹窗 */
.imei-guide .modal-body{
    padding: 16px 20px;
    max-height: 74vh;
    overflow-y: auto;
}
.guide-step{
    display: flex;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fafbfc;
    border: 1px solid #eef0f4;
    border-radius: 12px;
}
.guide-step:last-child{
    margin-bottom: 0;
}
.guide-num{
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #409eff, #2b7fd6);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}
.guide-main{
    flex: 1;
    min-width: 0;
}
.guide-title{
    font-size: 15px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 4px;
}
.guide-desc{
    font-size: 13px;
    color: #606266;
    line-height: 1.6;
}
.guide-desc + .guide-desc{
    margin-top: 6px;
}
.guide-warn{
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #f7444e;
    font-weight: 500;
}
.guide-link-row{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.guide-link{
    padding: 6px 10px;
    background: #f2f4f7;
    border: 1px dashed #d9dde3;
    border-radius: 8px;
    color: #409eff;
    font-size: 13px;
    word-break: break-all;
}
.guide-link-row .guide-link{
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}
.guide-link-row + .guide-desc{
    margin-top: 10px;
}
.guide-copy{
    flex: none;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #409eff, #2b7fd6);
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}
.guide-copy:hover{
    opacity: 0.9;
}
.guide-tool{
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    overflow: hidden;
}
.guide-tool iframe{
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}
.guide-tags{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.guide-tag{
    min-width: 0;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    font-size: 13px;
    color: #606266;
    line-height: 1.6;
}
.guide-tag b{
    display: inline-block;
    margin-right: 6px;
    color: #f7444e;
}
.guide-img{
    width: 100%;
    margin-top: 10px;
    border: 1px solid #eef0f4;
    border-radius: 10px;
}
.guide-note{
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    font-size: 12px;
    color: #ad4e00;
}
@media (max-width: 576px){
    .imei-guide .modal-body{
        padding: 12px;
    }
    .guide-step{
        padding: 12px;
        gap: 10px;
    }
    .guide-tool iframe{
        height: 420px;
    }
}
/* 次数不足/已到期提示弹窗 */
.need-buy-modal{
    border: none;
    border-radius: 16px;
    text-align: center;
}
.need-buy-modal .modal-body{
    padding: 28px 22px 20px;
}
.need-buy-close{
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 2;
    font-size: 22px;
    line-height: 1;
    color: #b0b4ba;
    opacity: 1;
    text-shadow: none;
}
.need-buy-close:hover{
    color: #606266;
}
.need-buy-icon{
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff4e8;
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
}
.need-buy-title{
    font-size: 18px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 8px;
}
.need-buy-text{
    font-size: 14px;
    color: #606266;
    line-height: 1.7;
    margin: 0 auto 18px;
    max-width: 300px;
}
.need-buy-primary{
    display: block;
    width: 100%;
    padding: 11px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7444e);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(247, 68, 78, 0.28);
}
.need-buy-primary:hover{
    opacity: 0.92;
}
.need-buy-link{
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    color: #409eff;
    font-size: 13px;
    cursor: pointer;
}
.need-buy-link:hover{
    text-decoration: underline;
}
/* 修改成功弹窗 */
.success-modal .need-buy-icon{
    background: #eefbe6;
    color: #45c300;
}
.success-modal .need-buy-primary{
    background: linear-gradient(135deg, #45c300, #2fa300);
    box-shadow: 0 4px 12px rgba(69, 195, 0, 0.28);
}
/* IMEI 操作按钮 */
.imei-top{
    display: flex;
    justify-content: flex-start;
    margin-bottom: 6px;
}
.imei-btn.imei-get-btn{
    background: #000000;
    border-color: #000000;
    color: #ffd400;
    font-weight: 600;
}
.imei-btn.imei-get-btn:hover{
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffe14d;
}
.imei-actions{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.imei-btn{
    border: 1px solid #cfe3ff;
    background: #f2f8ff;
    color: #2b7fd6;
    font-size: 12px;
    line-height: 1;
    padding: 7px 4px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.imei-btn:hover{
    background: #e6f2ff;
}
@media (max-width: 420px){
    .imei-actions{
        gap: 4px;
    }
    .imei-btn{
        font-size: 11px;
        padding: 7px 2px;
    }
}
/* 机型分类 */
.field-label{
    font-size: 14px;
    color: #606266;
    font-weight: 600;
    margin-bottom: 6px;
}
.model-cats{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}
.model-cat{
    position: relative;
    border: 1px solid #dcdfe6;
    background: #ffffff;
    color: #606266;
    font-size: 13px;
    padding: 7px 4px;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 420px){
    .model-cats{
        gap: 4px;
    }
    .model-cat{
        font-size: 11px;
        padding: 7px 2px;
    }
}
.model-cat.active{
    background: linear-gradient(135deg, #409eff, #2b7fd6);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
}
.hot-badge{
    position: absolute;
    top: -9px;
    right: -6px;
    background: linear-gradient(135deg, #ff6b35, #f7444e);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
}
/* 在线状态预览 */
.preview-card{
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    background: #f7fafc;
    padding: 12px 14px;
    margin-bottom: 15px;
}
.preview-title{
    font-size: 12px;
    color: #909399;
    margin-bottom: 8px;
}
.preview-body{
    display: flex;
    align-items: center;
    gap: 10px;
}
.preview-avatar{
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex: none;
    object-fit: cover;
    border: 1px solid #e4e7ed;
}
.preview-avatar-empty{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4e7ed;
    color: #909399;
    font-weight: 700;
}
.preview-info{
    min-width: 0;
}
.preview-name{
    font-size: 13px;
    font-weight: 700;
    color: #303133;
}
.preview-text{
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #606266;
    word-break: break-all;
}
.preview-dot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #45c300;
    flex: none;
}
#imeiOcrModal iframe{
    display: block;
    width: 100%;
    height: 560px;
    border: none;
}
.ocr-tip{
    padding: 14px 16px 4px;
}
@media (max-width: 576px){
    #imeiOcrModal iframe{
        height: 440px;
    }
}
.buy-grid{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.buy-item{
    position: relative;
    overflow: hidden;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
}
.buy-corner{
    position: absolute;
    top: 0;
    left: 0;
    padding: 3px 7px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 1px;
    color: #ffffff;
    border-radius: 9px 0 9px 0;
}
.buy-corner-rec{
    background: linear-gradient(135deg, #ff7a45, #f7444e);
}
.buy-corner-hot{
    background: linear-gradient(135deg, #ffb800, #ff6b00);
}
.buy-item:hover{
    border-color: #ff9a76;
    transform: translateY(-1px);
}
.buy-item.active{
    border: 2px solid #f7444e;
    background: #fff5f2;
    box-shadow: 0 3px 12px rgba(247, 68, 78, 0.15);
}
.buy-item-name{
    font-size: 15px;
    font-weight: 700;
    color: #303133;
}
.buy-item-desc{
    font-size: 11px;
    color: #909399;
    margin: 5px 0 0;
    line-height: 1.5;
}
.buy-item-price{
    margin-top: 6px;
    font-size: 19px;
    font-weight: 700;
    color: #f7444e;
}
.buy-item-price i{
    font-style: normal;
    font-size: 12px;
    margin-right: 1px;
}
.buy-pay-title{
    font-size: 13px;
    color: #606266;
    margin: 18px 0 8px;
}
.buy-channels{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.buy-channel{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    color: #606266;
    cursor: pointer;
    transition: all 0.15s;
}
.buy-channel .pay-ico{
    width: 18px;
    height: 18px;
    display: block;
    flex: none;
}
.buy-channel.active{
    border-color: #f7444e;
    color: #f7444e;
    background: #fff5f2;
}
.buy-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.buy-total{
    font-size: 13px;
    color: #606266;
}
.buy-total b{
    font-size: 22px;
    color: #f7444e;
}
.btn-buy{
    border: none;
    border-radius: 8px;
    padding: 10px 34px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b35, #f7444e);
}
.btn-buy:hover{
    opacity: 0.9;
    color: #ffffff;
}
.buy-tip{
    font-size: 11px;
    color: #a8abb2;
    margin: 12px 0 0;
    line-height: 1.5;
}
.buy-empty{
    text-align: center;
    color: #909399;
    font-size: 13px;
    padding: 16px 0;
}
@media screen and (max-width: 768px) {
    .buy-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .buy-footer{
        flex-direction: column;
        align-items: stretch;
    }
    .btn-buy{
        width: 100%;
    }
    .buy-total{
        text-align: center;
    }
}
.mian_name{
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.25);
    font-size: 1rem;
    position: absolute;
    left: 20px;
    top: -22px;
    font-weight: 600;
    background-color: #409eff;
    color: white;
    border: none;
}
.footer{
    margin-top: 5vh;
    margin-bottom: 5vh;
    color: #909399;
    text-align: center;
    font-size: 0.9rem;
}
.footer a {
    color: #909399;
    text-decoration: none;
}
.footer a:hover {
    color: #409eff;
}
.user_ui{
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}
.user_head{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    text-align: left;
}
.user_head .user_pic_ui{
    width: auto;
    flex: none;
    line-height: 0;
    margin-bottom: 0;
}
.user_head .user_pic{
    width: 56px;
    height: 56px;
}
.user_info{
    flex: 1;
    min-width: 0;
}
.user_nick{
    font-size: 15px;
    font-weight: 600;
    color: #303133;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user_qq{
    font-size: 12px;
    color: #909399;
    margin-top: 2px;
}
.user_head .user_btn_ui{
    width: auto;
    flex: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
}
.user_head .user_btn_ui .btn{
    width: 88px;
    padding: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}
.user_pic_ui{
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}
.user_name_ui{
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
    color: #303133;
}
.buy-entry-status{
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.6;
    color: #909399;
}
.buy-entry-status b{
    font-size: 12px;
    color: #606266;
}
.buy-entry-status .status-tip{
    color: #909399;
}
.notice-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    overflow: hidden;
}
.notice-title {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    font-size: 15px;
    text-align: center;
}
.notice-content {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}
.notice-content p {
    margin-bottom: 8px;
}
.notice-content p:last-child {
    margin-bottom: 0;
}
.notice-content a {
    color: #e65100;
    text-decoration: none;
    font-weight: 500;
}
.notice-content a:hover {
    text-decoration: underline;
}
.demo-box {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 1px solid #8600FF;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}
.demo-title {
    background: linear-gradient(135deg, #8600FF 0%, #7B00E0 100%);
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    font-size: 15px;
    text-align: center;
}
.demo-content {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}
.demo-content p {
    margin-bottom: 8px;
}
.demo-content p:last-child {
    margin-bottom: 0;
}
.demo-content a {
    color: #8600FF;
    text-decoration: none;
    font-weight: 500;
}
.demo-content a:hover {
    text-decoration: underline;
    color: #7B00E0;
}
@media screen and (max-width: 768px) {
    .notice-box {
        border-radius: 8px;
    }
    .notice-title {
        font-size: 14px;
        padding: 8px 12px;
    }
    .notice-content {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.7;
    }
}
.user_btn_ui{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.user_pic{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ebeef5;
}
.close{
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #606266;
    opacity: .8;
    background-color: transparent;
    border: 0;
}
.close:hover{
    opacity: 1;
    color: #303133;
}
.input-group {
    transition: all 0.2s ease;
}
.input-group:focus-within {
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15);
    border-radius: 6px;
}
.input-group-text {
    background: #f5f7fa;
    border: 1px solid #dcdfe6;
    font-weight: 500;
    color: #606266;
    border-radius: 6px 0 0 6px !important;
}
.form-control, .form-select {
    border: 1px solid #dcdfe6;
    border-left: none;
    border-radius: 0 6px 6px 0 !important;
    transition: all 0.2s ease;
    color: #303133;
}
select.form-control,
input.field-standalone{
    border-left: 1px solid #dcdfe6 !important;
    border-radius: 6px !important;
}
.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: #409eff;
}
.btn-outline-primary {
    border-radius: 0 6px 6px 0 !important;
    border-color: #409eff;
    color: #409eff;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background-color: #409eff;
    color: white;
    border-color: #409eff;
}
.btn-outline-success {
    background-color: #67c23a;
    border: 1px solid #67c23a;
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 20px;
    transition: all 0.2s ease;
}
.btn-outline-success:hover {
    background-color: #85ce61;
    border-color: #85ce61;
    color: white;
}
.btn-outline-info {
    background-color: #909399;
    border: 1px solid #909399;
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 20px;
    transition: all 0.2s ease;
}
.btn-outline-info:hover {
    background-color: #a6a9ad;
    border-color: #a6a9ad;
    color: white;
}
.btn-outline-red {
    background-color: #e74c3c;
    border: 1px solid #e74c3c;
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 20px;
    transition: all 0.2s ease;
}
.btn-outline-red:hover {
    background-color: #ec7063;
    border-color: #ec7063;
    color: white;
}

#btn_km_verify {
    border-radius: 0 6px 6px 0;
    background-color: #e74c3c;
    color: white;
    border: 1px solid #e74c3c;
    transition: all 0.2s ease;
}

#btn_km_verify:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

input[type="text"].form-control {
    border-radius: 0;
}
.d-grid .btn-outline-primary {
    border-radius: 8px !important;
    background-color: #409eff;
    border: 1px solid #409eff;
    color: white;
    font-weight: 500;
    padding: 14px;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}
.d-grid .btn-outline-primary:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
}
.alert-info {
    background-color: #ecf5ff;
    border: 1px solid #d9ecff;
    border-radius: 8px;
    color: #409eff !important;
    padding: 15px;
}
.alert-info li {
    margin-bottom: 8px;
    color: #606266;
}
.alert-info li:last-child {
    margin-bottom: 0;
}
.text-primary {
    color: #409eff !important;
    font-weight: 500;
}
.modal-content {
    border-radius: 10px;
    border: 1px solid #ebeef5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.modal-header {
    background-color: #409eff;
    color: white;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}
.modal-header .close {
    color: white;
    opacity: 0.8;
}
.modal-header .close:hover {
    opacity: 1;
}
.modal-title {
    font-weight: 500;
}
/* 图片弹窗样式 */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-modal-content {
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.image-modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.image-modal-close:hover {
    color: #ff6b6b;
}
.modal-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}
/* 左侧广告图片 */
.sidebar-ad {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    max-width: 150px;
    transition: all 0.3s ease;
}
.sidebar-ad:hover {
    transform: translateY(-50%) scale(1.05);
}
.sidebar-ad-link {
    display: block;
    text-decoration: none;
    position: relative;
    margin-bottom: 10px;
}
.sidebar-ad-img {
    display: block;
    max-width: 100%;
    height: auto;
}
.sidebar-ad-badge {
    position: absolute;
    top: 0;
    right: auto;
    left: 0;
    background: linear-gradient(135deg, #FF5722 0%, #F4511E 100%);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    z-index: 10;
}
@media screen and (max-width: 768px) {
    .sidebar-ad {
        left: 0;
        max-width: 80px;
    }
    .sidebar-ad-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
}