/* =========================================================
   Jxs-发卡平台 · 前台主题增强样式（2026 版）
   仅做视觉优化，不改动原有业务逻辑
   ========================================================= */

:root {
    --jxs-brand: #165DFF;
    --jxs-brand-2: #00B8FF;
    --jxs-ink: #14213D;
    --jxs-text: #475569;
    --jxs-muted: #7C8AA5;
    --jxs-line: #E6ECF6;
    --jxs-soft: #F5F8FF;
    --jxs-radius: 16px;
    --jxs-shadow: 0 12px 32px rgba(20, 33, 61, .08);
}

html, body {
    background: #fff !important;
    color: var(--jxs-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.background {
    display: none !important;
}

a {
    color: var(--jxs-brand);
}

/* 顶部 ---------- */
.header {
    height: auto !important;
    margin: 0 !important;
    padding: 16px 0 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.header .layui-row {
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 0 12px;
}

.header .layui-row > .layui-col-md8 {
    width: 100% !important;
    margin-left: 0 !important;
    left: 0 !important;
}

/* 主内容改为 1180 宽容器，避免大屏两侧留白过多 */
.main > .layui-row {
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 0 12px;
}

.main > .layui-row > .layui-col-md8 {
    width: 100% !important;
    margin-left: 0 !important;
    left: 0 !important;
}

.header .header-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--jxs-line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(20, 33, 61, .06);
}

.header .header-box > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header .header-box img {
    max-width: 132px;
    max-height: 42px;
    border-radius: 10px;
    object-fit: contain;
}

.header .header-box .info {
    margin-left: 0;
    color: var(--jxs-ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
    white-space: nowrap;
}

.header .header-box .query a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto !important;
    height: 38px;
    padding: 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--jxs-brand) 10%, var(--jxs-brand-2) 100%);
    box-shadow: 0 8px 18px rgba(22, 93, 255, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}

.header .header-box .query a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(22, 93, 255, .32);
}

/* 公告（放在头部下方，不再挤进导航条） */
.header .main {
    margin: 12px 0 0;
}

.header .main-box,
.main .main-box {
    background: #fff;
    border: 1px solid var(--jxs-line);
    border-radius: 20px;
    box-shadow: var(--jxs-shadow);
}

.header .main-box {
    margin-top: 0;
    padding: 14px 18px;
    border-style: dashed;
    border-color: #CFE0FF;
    background: #F6F9FF;
    box-shadow: none;
}

.header .main-box .title {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--jxs-brand);
    font-weight: 700;
}

.header .main-box .tips {
    color: var(--jxs-text);
    line-height: 1.75;
    font-size: 13px;
}

/* ---------- 主体卡片 ---------- */
.main .main-box {
    margin-top: 18px;
    padding: 22px 22px 26px;
}

.main .title {
    color: var(--jxs-ink);
    font-size: 18px;
    font-weight: 700;
}

.main .title svg {
    vertical-align: -4px;
}

.main .title .tit,
.main .title-2 {
    color: var(--jxs-ink);
    font-weight: 700;
}

/* ---------- 首页 hero ---------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
    margin: 0 0 6px;
    padding: 28px 32px;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(120deg, #0B2A7A 0%, #165DFF 56%, #00B8FF 100%);
    box-shadow: 0 16px 36px rgba(15, 45, 130, .22);
}

.hero:after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.hero-main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    color: #E8F2FF;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

.hero h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: .5px;
}

.hero p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.7;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-points span {
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 26px;
    flex-shrink: 0;
    padding: 16px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.hero-stats div {
    text-align: center;
    min-width: 64px;
}

.hero-stats strong {
    display: block;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

/* ---------- 分类 ---------- */
.main .cate {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 16px 0 4px;
    font-size: 0;
}

.main .cate .cate-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-width: 138px;
    height: auto;
    margin: 0;
    padding: 11px 18px;
    background: var(--jxs-soft);
    border: 1px solid #E8EEFC;
    border-radius: 14px;
    box-shadow: none;
    cursor: pointer;
    transition: all .18s ease;
}

.main .cate .cate-box:hover {
    transform: translateY(-2px);
    border-color: #B9D2FF;
    box-shadow: 0 8px 18px rgba(22, 93, 255, .12);
}

.main .cate .cate-box p {
    margin: 0;
    color: var(--jxs-ink);
    font-size: 14px;
    font-weight: 600;
}

.main .cate .cate-box div {
    margin-top: 4px;
    color: var(--jxs-muted);
    font-size: 12px;
    opacity: 1;
}

.main .cate .cate-box-select,
.main .cate .cate-box-select:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--jxs-brand) 10%, var(--jxs-brand-2) 100%);
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(22, 93, 255, .26);
}

.main .cate .cate-box-select p,
.main .cate .cate-box-select div {
    color: #fff;
}

.main .cate .cate-box-select div {
    opacity: .78;
}

/* ---------- 商品列表 ---------- */
.main .goods {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--jxs-line);
}

.main .goods .goods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    gap: 14px;
}

.main .goods .goods-box {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--jxs-line);
    border-radius: 16px;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.main .goods .goods-box:hover {
    transform: translateY(-3px);
    border-color: #B9D2FF;
    box-shadow: 0 14px 28px rgba(20, 33, 61, .12);
}

.main .goods .picture {
    flex: 0 0 74px;
    width: 74px;
    min-width: 74px;
    height: 74px;
    margin-right: 12px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--jxs-soft);
}

.main .goods .picture img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.main .goods .msg {
    flex: 1;
    min-width: 0;
}

.main .goods .msg .goods-name {
    display: -webkit-box;
    margin: 2px 0 8px;
    color: var(--jxs-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.main .goods .msg .goods-price {
    color: var(--jxs-brand);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.main .goods .msg .goods-price span {
    font-size: 12px;
    vertical-align: baseline;
}

.main .goods .msg .goods-price div {
    display: inline-block;
    margin: 0 6px 4px 0;
    padding: 2px 6px;
    color: #E5484D;
    font-size: 11px;
    border-radius: 6px;
    background: #FFF1F0;
}

.main .goods .msg .goods-num {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.main .goods .msg .goods-num div {
    width: 70px;
    height: 6px;
    background: #EEF2F9;
}

.main .goods .msg .goods-num div p {
    background: linear-gradient(90deg, #12B76A, #32D583);
}

.main .goods .msg .goods-num span {
    margin-left: 8px;
    margin-right: 0;
    color: #12B76A;
    font-size: 12px;
}

.empty-goods,
.no-pay-tip {
    padding: 34px 16px;
    color: var(--jxs-muted);
    font-size: 14px;
    text-align: center;
    background: var(--jxs-soft);
    border: 1px dashed #D7E2F5;
    border-radius: 14px;
}

.no-pay-tip {
    margin-top: 14px;
    padding: 14px 16px;
    color: #B54708;
    background: #FFFAEB;
    border-color: #FEDF89;
}

/* ---------- 购买页 ---------- */
.main-box .goods-img {
    margin: 16px 20px 16px 16px;
    width: calc(100% - 36px);
    padding-bottom: calc(100% - 36px);
    border-radius: 18px;
    overflow: hidden;
    background: var(--jxs-soft);
}

.main-box .goods-img img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 18px;
    border: 1px solid var(--jxs-line);
    box-shadow: none;
    object-fit: cover;
}

.main-box .goods-msg {
    margin: 18px 20px 8px 10px;
}

.main-box .goods-msg .goods-name {
    padding-bottom: 10px;
    color: var(--jxs-ink);
    font-size: 21px;
    font-weight: 800;
    border-bottom: 1px solid var(--jxs-line);
    line-height: 1.5;
}

.price {
    margin-top: 10px;
}

.price .price-sign {
    color: #E5484D;
    font-size: 20px;
    font-weight: 700;
}

.price .price-num {
    color: #E5484D;
    font-size: 34px;
    font-weight: 800;
}

.price .price-c {
    margin-left: 8px;
    color: var(--jxs-muted);
    font-size: 13px;
}

.entry {
    display: flex;
    align-items: center;
    margin-top: 14px;
}

.l-msg {
    width: 86px;
    color: var(--jxs-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.input {
    flex: 1;
    min-width: 0;
}

.input input {
    width: 100%;
    max-width: 460px;
    height: 44px;
    padding: 0 12px;
    color: var(--jxs-ink);
    font-size: 14px;
    background: #fff;
    border: 1px solid #DDE5F2;
    border-radius: 12px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.input input:focus {
    border-color: var(--jxs-brand);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .12);
    outline: none;
}

.pay-num {
    width: 64px !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700;
}

.sub svg, .add svg {
    margin-top: 0;
    width: 22px;
    height: 22px;
    opacity: .75;
}

.pay {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--jxs-line);
}

.pay-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin: 0 10px 10px 0;
    color: var(--jxs-text);
    font-size: 14px;
    font-weight: 600;
    background: var(--jxs-soft);
    border: 1px solid #E6EDFB;
    border-radius: 12px;
    transition: all .16s ease;
}

.pay-type:hover {
    border-color: #B9D2FF;
}

.pay-type svg {
    width: 26px;
    height: 26px;
}

.pay-select,
.pay-select:hover {
    color: var(--jxs-brand);
    background: #EEF4FF;
    border-color: var(--jxs-brand);
    box-shadow: 0 6px 16px rgba(22, 93, 255, .14);
}

.buy {
    margin-top: 18px;
}

/* 购买表单在整行时居中，避免大片留白 */
.main-box form .goods-msg,
.main-box form .entry,
.main-box form .pay,
.main-box form .buy {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.main-box form .goods-msg {
    margin-top: 18px;
    margin-bottom: 8px;
}

.buy-tip {
    margin-top: 12px;
    color: var(--jxs-muted);
    font-size: 12px;
    line-height: 1.8;
}

.buy-warning {
    max-width: 840px;
    margin: 18px auto 4px;
    padding: 16px 20px;
    background: #FFF9EC;
    border: 1px solid #FFE2A8;
    border-radius: 12px;
    color: #6B4B00;
    font-size: 13px;
    line-height: 1.9;
}

.buy-warning-title {
    font-size: 14px;
    font-weight: 700;
    color: #B45309;
    margin-bottom: 6px;
}

.buy-warning-body ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.buy-warning-body li {
    margin: 4px 0;
}

.buy-warning-body strong {
    color: #8A3B00;
}

.buy button {
    width: 230px;
    height: 52px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--jxs-brand) 10%, var(--jxs-brand-2) 100%);
    box-shadow: 0 12px 24px rgba(22, 93, 255, .26);
    transition: transform .18s ease, box-shadow .18s ease;
}

.buy button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(22, 93, 255, .32);
}

.buy button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.intro {
    padding: 16px 22px 22px;
    color: var(--jxs-text);
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400;
    letter-spacing: 0;
}

.intro img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ---------- 结算 / 查单 / 扫码 ---------- */
.pay-title {
    margin: 4px 4px 10px;
    padding-bottom: 12px;
    color: var(--jxs-ink);
    font-size: 22px;
    font-weight: 800;
    border-bottom: 1px solid var(--jxs-line);
}

.layui-card-body {
    padding: 8px 4px 4px;
}

.layui-table {
    margin: 8px 0;
}

.layui-table td,
.layui-table th {
    padding: 12px 8px;
    color: var(--jxs-text);
    font-size: 14px;
    border-color: #EEF2F9;
}

.layui-table td:first-child {
    color: var(--jxs-muted);
}

.pay-title + .layui-card-body .product-info p {
    color: var(--jxs-brand) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.btn a,
.btn button {
    width: 220px;
    height: 48px;
    margin-top: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--jxs-brand) 10%, var(--jxs-brand-2) 100%);
    box-shadow: 0 10px 22px rgba(22, 93, 255, .24);
}

/* 订单详情 */
.info-box {
    margin-top: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--jxs-line);
    border-radius: 16px;
}

.info-ui {
    margin: 0;
}

.info-ui li {
    margin: 8px 0;
    color: var(--jxs-text);
    font-size: 14px;
    line-height: 1.7;
}

.info-ui strong {
    width: 34%;
    color: var(--jxs-muted);
    font-weight: 500;
    text-align: left;
}

.order-info {
    width: 100%;
    height: 300px;
    min-height: 300px;
    padding: 12px;
    color: var(--jxs-ink);
    font-family: "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
    font-size: 13px;
    line-height: 1.7;
    background: #F8FAFC;
    border: 1px solid var(--jxs-line);
    border-radius: 12px;
}

.clipboard-but {
    height: 44px;
    color: var(--jxs-brand);
    font-size: 14px;
    font-weight: 600;
    background: #EEF4FF;
    border: 1px solid #CFE0FF;
    border-radius: 12px;
}

.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.order-actions .clipboard-but,
.order-actions .download-txt {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.order-actions .download-txt {
    color: #067647;
    background: #ECFDF3;
    border: 1px solid #ABEFC6;
}

/* 卡密邮箱验证 */
.card-lock {
    padding: 18px;
    background: #F8FAFF;
    border: 1px dashed #BFD3FF;
    border-radius: 14px;
    text-align: center;
}

.card-lock-icon {
    font-size: 24px;
    line-height: 1;
}

.card-lock-title {
    margin-top: 6px;
    color: var(--jxs-ink);
    font-size: 15px;
    font-weight: 700;
}

.card-lock-tip {
    margin-top: 6px;
    color: var(--jxs-muted);
    font-size: 13px;
    line-height: 1.8;
}

.card-lock-tip b {
    color: var(--jxs-brand);
    font-weight: 600;
}

.card-lock-form {
    margin-top: 10px;
}

.card-lock-send {
    width: 100%;
    height: 38px;
    color: var(--jxs-brand);
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #BFD3FF;
    border-radius: 10px;
    cursor: pointer;
}

.card-lock-verify {
    display: flex;
    gap: 8px;
}

.card-lock-verify input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    color: var(--jxs-ink);
    font-size: 15px;
    letter-spacing: 2px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--jxs-line);
    border-radius: 10px;
}

.card-lock-open {
    height: 38px;
    padding: 0 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--jxs-brand), var(--jxs-brand-2));
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.card-lock-note {
    margin-top: 10px;
    color: #98A2B3;
    font-size: 11px;
    line-height: 1.7;
}

.code-flash {
    max-width: 720px;
    margin: 0 auto 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.code-flash.is-success {
    color: #067647;
    background: #ECFDF3;
    border: 1px solid #ABEFC6;
}

.code-flash.is-error {
    color: #B42318;
    background: #FEF3F2;
    border: 1px solid #FECDCA;
}

/* 查询页 tab */
.layui-tab-title {
    border-bottom: 1px solid var(--jxs-line);
}

.layui-tab-title li {
    color: var(--jxs-muted);
    font-size: 14px;
    font-weight: 600;
}

.layui-tab-title .layui-this {
    color: var(--jxs-brand);
}

.layui-tab-title .layui-this:after {
    border: 0;
    border-bottom: 3px solid var(--jxs-brand);
    border-radius: 0;
}

/* 扫码 */
.product-pay-price {
    color: var(--jxs-muted) !important;
    font-size: 15px !important;
}

/* 页脚 */
.footer {
    margin: 40px auto 22px;
    color: var(--jxs-muted);
    font-size: 13px;
    line-height: 1.8;
}

.footer p {
    margin-top: 4px;
    color: #A3AFC4;
    font-size: 12px;
}

/* 手机端 */
@media (max-width: 992px) {
    /* layui 的 md 栅格是固定百分比，小屏必须强制单列，否则横向溢出 */
    .layui-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .layui-col-md1, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5,
    .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9,
    .layui-col-md10, .layui-col-md11, .layui-col-md12 {
        width: 100% !important;
        float: none !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .layui-col-md-offset1, .layui-col-md-offset2, .layui-col-md-offset3,
    .layui-col-md-offset4, .layui-col-md-offset5, .layui-col-md-offset6 {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header {
        height: auto !important;
        margin-bottom: 0 !important;
        padding: 12px 0 0 !important;
        background: #fff !important;
        border-radius: 0 !important;
    }

    .header .header-box {
        padding: 11px 12px;
        border-radius: 14px;
    }

    .header .header-box .info {
        color: var(--jxs-ink) !important;
        font-size: 16px;
    }

    .main .main-box {
        margin-top: 12px;
        padding: 14px 14px 20px;
        border-radius: 16px;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero-stats {
        width: 100%;
        justify-content: center;
        gap: 18px;
        padding: 12px 14px;
    }

    .hero-stats strong {
        font-size: 22px;
    }

    .main .cate .cate-box {
        min-width: calc(50% - 6px);
        flex: 1;
    }

    .main .goods .goods-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .main .goods .goods-box {
        display: block;
        padding: 10px;
    }

    .main .goods .picture {
        width: 100%;
        height: 104px;
        margin: 0 0 8px;
    }

    .main .goods .msg .goods-name {
        font-size: 13px;
    }

    .main .goods .msg .goods-price {
        font-size: 17px;
    }

    .main-box .goods-img {
        margin: 14px 14px 0;
        width: calc(100% - 28px);
        padding-bottom: calc(100% - 28px);
    }

    .main-box .goods-msg {
        margin: 14px 14px 0;
    }

    .main-box .goods-msg .goods-name {
        font-size: 18px;
    }

    .entry {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .l-msg {
        width: auto;
    }

    .input,
    .input input {
        width: 100%;
        max-width: 100%;
    }

    .buy button {
        width: 100%;
        max-width: 320px;
    }

    .info-ui strong {
        width: 42%;
    }

    .layui-table td,
    .layui-table th {
        padding: 9px 4px;
        font-size: 13px;
    }
}

/* 售后工单导航按钮 */
.header .header-box .query.after-sale-nav a {
    width: auto;
    padding: 0 16px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* 售后工单导航按钮（与订单查询并排右侧） */
.header .header-box .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.header .header-box .query.after-sale-nav a {
    width: auto;
    padding: 0 16px;
    color: var(--jxs-brand) !important;
    background: #EEF4FF;
    border: 1px solid #CFE0FF;
    box-shadow: none;
}

/* 手工订单：联系方式下拉 + 输入 */
.contact-combo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-combo .contact-type {
    flex: 0 0 104px;
    height: 40px;
    border: 1px solid #DCE3F0;
    border-radius: 10px;
    background: #F7F9FF;
    color: #165DFF;
    font-size: 14px;
    padding: 0 8px;
    outline: none;
}
.contact-combo input {
    flex: 1;
    min-width: 0;
}
@media (max-width: 768px) {
    .contact-combo .contact-type { flex: 0 0 92px; }
}

/* 修正购买按钮容器被异常拉高后遮挡表单点击 */
.main-box form .buy {
    height: auto !important;
    min-height: 0 !important;
}

/* 下单按钮容器（独立类名，避免被 .buy 异常高度影响） */
.main-box form .buy-actions {
    width: 100%;
    max-width: 840px;
    margin: 18px auto 0;
    float: none;
    text-align: center;
    height: auto;
}
.buy-actions button {
    width: 230px;
    height: 52px;
    border: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 52px;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--jxs-brand) 10%, var(--jxs-brand-2) 100%);
    box-shadow: 0 12px 24px rgba(22, 93, 255, .26);
    transition: transform .18s ease, box-shadow .18s ease;
}
.buy-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(22, 93, 255, .32);
}
.buy-actions button[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* 代理IP购买页说明 */
.ip-product-note {
    max-width: 840px;
    margin: 14px auto 0;
    padding: 14px 18px;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    background: #f7faff;
}
.ip-product-note-title {
    margin-bottom: 5px;
    color: #165dff;
    font-size: 14px;
    font-weight: 700;
}
.ip-product-note-body {
    color: #496184;
    font-size: 13px;
    line-height: 1.8;
}
.ip-product-note-body b { color: #f04438; }
@media (max-width: 760px) {
    .ip-product-note { margin: 12px 0 0; padding: 12px; }
}

/* 首页代理IP入口与标识 */
.hero-points .hero-ip-link {
    padding: 5px 12px;
    border-radius: 6px;
    background: #165dff;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}
.goods-type-ip {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eef4ff;
    color: #165dff;
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
}
