/* 订单查询结果（复刻站同款列表）+ 订单详情页（复刻站同款卡密页） */
/* 类名统一用 oql-/oqd-/oq- 前缀，避免与主题既有 .order-item/.goods-section 规则互相污染 */

/* ==================== 一、查询结果列表 ==================== */

.oql-section {
    padding: 40px 0;
    background: #f8f9fc;
}

.oql-wrap {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.oql-back {
    margin-bottom: 20px;
}

.oql-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #36f, #5183ff);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s;
}

.oql-back-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: .5s;
}

.oql-back-btn:hover:before {
    left: 100%;
}

.oql-back-btn:hover {
    color: #fff;
    text-decoration: none;
}

.oql-back-icon {
    margin-right: 8px;
}

.oql-card {
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.oql-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.oql-head h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.oql-contact {
    color: #666;
    font-size: 14px;
    word-break: break-all;
}

.oql-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all .3s;
}

.oql-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

.oql-item-main {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

.oql-basic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.oql-no {
    flex-shrink: 0;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.oql-time {
    flex-shrink: 0;
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

.oql-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.oql-product {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #666;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oql-nums {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.oql-price {
    color: #ff4d4f;
    font-size: 14px;
    font-weight: 500;
}

.oql-qty {
    color: #999;
    font-size: 14px;
}

.oql-status {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
}

.oql-status--success {
    border: 1px solid #b7eb8f;
    background: #f6ffed;
    color: #52c41a;
}

.oql-status--pending {
    border: 1px solid #ffd591;
    background: #fff7e6;
    color: #fa8c16;
}

.oql-status--refunded {
    border: 1px solid #d9d9d9;
    background: #f5f5f5;
    color: #999;
}

.oql-empty {
    padding: 40px 0;
    color: #999;
    font-size: 14px;
    text-align: center;
}

.oql-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
}

.oql-pager button {
    min-width: 32px;
    height: 32px;
    margin: 0 4px;
    padding: 0 8px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}

.oql-pager button:hover:not(:disabled):not(.is-active) {
    border-color: #36f;
    color: #36f;
}

.oql-pager button.is-active {
    border-color: #36f;
    background: #36f;
    color: #fff;
}

.oql-pager button:disabled {
    color: #c0c4cc;
    cursor: not-allowed;
}

/* ==================== 二、订单已被他人绑定 ==================== */

.oqd-error {
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.oqd-error-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f56c6c;
    font-size: 15px;
    line-height: 1.5;
}

.oqd-error-icon {
    font-size: 18px;
}

.oqd-error-action {
    margin-top: 18px;
    text-align: center;
}

.oqd-error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: 22px;
    background: linear-gradient(90deg, #185cff, #4d8dff);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 92, 255, .28);
    transition: box-shadow .2s ease, opacity .2s ease;
}

.oqd-error-btn:hover {
    color: #fff;
    text-decoration: none;
    opacity: .9;
}

.oqd-error-btn:active {
    opacity: .88;
    box-shadow: 0 2px 6px rgba(24, 92, 255, .24);
}

/* ==================== 三、订单详情：订单信息 ==================== */

.oq-order,
.oq-cdkey,
.oq-guide {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.oq-guide {
    margin-bottom: 0;
}

.oq-order-head,
.oq-cdkey-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.oq-order-head h2,
.oq-cdkey-head h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.oq-info-row {
    display: flex;
    margin-bottom: 15px;
}

.oq-info-row:last-child {
    margin-bottom: 0;
}

.oq-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.oq-label {
    flex: none;
    width: 100px;
    color: #666;
}

.oq-value {
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

/* ==================== 四、卡密信息 ==================== */

.oq-cdkey-head .right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.oq-count {
    margin-right: 15px;
    color: #606266;
    font-size: 14px;
}

.oq-fn-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #36f, #5183ff);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .3s;
}

.oq-fn-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: .5s;
}

.oq-fn-btn:hover:before {
    left: 100%;
}

.oq-fn-btn:hover {
    color: #fff;
    text-decoration: none;
}

.oq-fn-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.oq-fn-btn:disabled:before {
    display: none;
}

.oq-btn-icon {
    margin-right: 8px;
}

.oq-empty {
    margin: 20px 0;
    padding: 40px 0;
    border-radius: 8px;
    background: #f8f9fc;
    text-align: center;
}

.oq-empty-icon {
    display: block;
    margin-bottom: 12px;
    color: #c8cdd6;
    font-size: 56px;
}

.oq-empty p {
    margin: 0;
    color: #909399;
    font-size: 16px;
}

.oq-cdkey-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oq-cdkey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #f8f9fc;
    transition: background-color .3s;
}

.oq-cdkey-item:last-child {
    margin-bottom: 0;
}

.oq-cdkey-item:hover {
    background-color: #f0f5ff;
}

.oq-cdkey-info {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.oq-cdkey-label {
    color: #666;
    font-weight: 500;
}

.oq-cdkey-value {
    display: inline-block;
    max-width: 100%;
    margin-right: 15px;
    padding: 8px 12px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background: rgba(255, 255, 255, .8);
    color: #333;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: normal;
    word-break: break-all;
}

.oq-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 80px;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #36f, #5183ff);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: all .3s;
}

.oq-copy-btn:hover {
    opacity: .9;
}

.oq-copy-btn i {
    margin-right: 8px;
}

/* ==================== 五、使用说明 ==================== */

.oq-guide h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 16px;
}

.oq-guide-content {
    color: #666;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==================== 六、取卡密码弹窗 ==================== */

.oq-pwd-mask {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .5);
    box-sizing: border-box;
}

.oq-pwd-dialog {
    width: 500px;
    max-width: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    animation: oqDialogIn .3s ease;
    box-sizing: border-box;
}

@keyframes oqDialogIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.oq-pwd-head {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.oq-pwd-head h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.oq-pwd-body {
    padding: 30px 25px;
}

.oq-pwd-tip {
    margin: 0 0 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.oq-pwd-input {
    width: 100%;
    height: 45px;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.oq-pwd-input:focus {
    border-color: #36f;
}

.oq-pwd-error {
    margin: 10px 0 0;
    color: #ff4d4f;
    font-size: 13px;
}

.oq-pwd-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 25px;
    border-top: 1px solid #eee;
}

.oq-btn-cancel,
.oq-btn-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.oq-btn-cancel {
    background: #f4f4f5;
    color: #333;
}

.oq-btn-cancel:hover {
    background: #e9e9eb;
    color: #333;
    text-decoration: none;
}

.oq-btn-confirm {
    background: linear-gradient(135deg, #36f, #5183ff);
    color: #fff;
}

.oq-btn-confirm:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* hidden 属性兜底：主题里的 display 规则可能盖掉浏览器默认值 */
.oq-order[hidden],
.oq-guide[hidden],
.oq-pwd-mask[hidden],
.oq-count[hidden],
.oq-pwd-error[hidden] {
    display: none !important;
}

/* ==================== 七、移动端 ==================== */

@media screen and (max-width: 768px) {
    .oql-section {
        padding: 16px 0;
    }

    .oql-wrap {
        padding: 0 12px;
    }

    .oql-card,
    .oq-order,
    .oq-cdkey,
    .oq-guide {
        padding: 16px;
    }

    .oql-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .oql-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px;
    }

    .oql-item-main {
        width: 100%;
        margin-right: 0;
    }

    .oql-basic,
    .oql-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .oql-product {
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
    }

    .oql-status {
        align-self: flex-start;
    }

    .oq-order-head,
    .oq-cdkey-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .oq-cdkey-head .right {
        gap: 10px;
    }

    .oq-info-row {
        flex-direction: column;
        gap: 10px;
    }

    .oq-info-item {
        width: 100%;
    }

    .oq-cdkey-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .oq-cdkey-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 10px;
    }

    .oq-cdkey-value {
        width: 100%;
        margin: 5px 0;
    }

    .oq-pwd-head,
    .oq-pwd-body,
    .oq-pwd-foot {
        padding: 20px;
    }

    .oq-pwd-foot {
        flex-direction: column-reverse;
    }

    .oq-btn-cancel,
    .oq-btn-confirm {
        width: 100%;
    }
}
