@charset "utf-8";
/* ============================================================
   江湖尘纪 · 网页商城  样式表
   兼容 IE8+ / Chrome / Edge / Firefox
   （不使用 flex、grid、CSS 变量，老浏览器也能正常显示）
   ============================================================ */

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 13px;
    color: #e8e6f0;
    background: #0c0a12;
    background-image: -webkit-radial-gradient(50% 0%, ellipse cover, #1c1730 0%, #0c0a12 60%);
    background-image: radial-gradient(ellipse at 50% 0%, #1c1730 0%, #0c0a12 60%);
    line-height: 1.6;
    /* 不再强制 1200px，窄窗口（360/搜狗等）也不会横向滚动 */
    min-width: 1000px;
}
ul, ol { list-style: none; }
img { border: 0; vertical-align: middle; }
a { color: #f0c350; text-decoration: none; }
a:hover { color: #ffe082; }
input, select, button, textarea { font-family: inherit; font-size: 13px; outline: none; }
h1, h2, h3, h4 { font-weight: normal; }
.clearfix { clear: both; height: 0; overflow: hidden; font-size: 0; }

/* ---------- 顶部栏 ---------- */
.topbar {
    height: 76px;
    background: #100c1b;
    border-bottom: 1px solid #3a2f14;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
.topbar-in {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 96%;
    max-width: 1200px;
    margin: 0 auto;
    height: 76px;
    position: relative;
}
.brand { float: left; height: 76px; }
.brand-logo { float: left; display: block; width: 150px; height: 38px; margin: 20px 14px 0 0; overflow: hidden; }
.brand-logo img { width: 150px; height: 38px; border-radius: 4px; }
.brand-txt { float: left; padding-top: 14px; }
.brand-txt h1 {
    font-size: 21px;
    color: #f0c350;
    letter-spacing: 2px;
    text-shadow: 0 0 14px rgba(240, 195, 80, .45);
    font-weight: bold;
}
.brand-txt p { font-size: 12px; color: #8b83a3; letter-spacing: 1px; margin-top: 1px; }

.user-zone { float: right; height: 76px; padding-top: 0; }
.u-login { padding-top: 22px; text-align: right; }
.u-name {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    color: #ffe082;
    font-size: 14px;
    padding: 4px 12px;
    border: 1px solid rgba(240, 195, 80, .4);
    border-radius: 14px;
    background: rgba(240, 195, 80, .08);
    margin-right: 10px;
}
.u-money { display: inline-block; color: #b8b0cc; margin-right: 14px; }
.u-money b { color: #f0c350; font-size: 16px; padding: 0 3px; }
.u-link { color: #a09bb5; margin-left: 14px; font-size: 13px; }
.u-link:hover { color: #f0c350; }
.u-logout { padding-top: 24px; text-align: right; }
.u-tip { color: #8b83a3; margin-right: 14px; font-size: 13px; }

/* ---------- 按钮 ---------- */
.btn-main {
    display: inline-block;
    padding: 8px 22px;
    color: #2a1d05;
    font-size: 14px;
    font-weight: bold;
    background: #d9a93c;
    background-image: -webkit-linear-gradient(top, #f7d778, #cf9c2c);
    background-image: linear-gradient(to bottom, #f7d778, #cf9c2c);
    border: 1px solid #f0c350;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
}
.btn-main:hover { background: #f0c350; background-image: -webkit-linear-gradient(top, #ffe9a6, #e0b040); background-image: linear-gradient(to bottom, #ffe9a6, #e0b040); color: #2a1d05; }
.btn-block { display: block; text-align: center; padding: 10px 0; }

/* ---------- 布局 ---------- */
.wrap { width: 96%; max-width: 1200px; margin: 18px auto 0; }
.side { float: left; width: 212px; }
/* 右栏 = 容器宽 - 左栏 - 16px 间距，1200px 时正好 972，与原设计一致；
   窄窗口下自动收窄，绝不会因为两栏相加超宽而掉行 */
.content {
    float: right;
    width: 972px;                          /* IE8 回退 */
    width: -webkit-calc(100% - 228px);     /* 老 webkit */
    width: calc(100% - 228px);             /* 标准 */
}

.panel {
    background: #141020;
    border: 1px solid #2a2338;
    border-radius: 6px;
    margin-bottom: 14px;
    overflow: hidden;
}
.panel-title {
    font-size: 14px;
    color: #f0c350;
    padding: 10px 14px;
    border-bottom: 1px solid #2a2338;
    background: #171226;
    letter-spacing: 1px;
}
.side-note { padding: 10px 14px 14px; color: #948ca8; font-size: 12px; line-height: 1.9; }
.side-note p { margin-bottom: 2px; }
.side-note b { color: #cfc7e0; font-weight: normal; }

/* 分类 */
.cat-list { padding: 6px 0; }
.cat-list li { border-bottom: 1px dashed #221c31; }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a {
    display: block;
    padding: 8px 14px;
    color: #b8b0cc;
    font-size: 13px;
    position: relative;
}
.cat-list a i {
    float: right;
    font-style: normal;
    color: #6b6480;
    font-size: 11px;
    padding-top: 1px;
}
.cat-list a:hover { background: #1b1429; color: #ffe082; }
.cat-list li.on a {
    background: #241a12;
    color: #f0c350;
    border-left: 3px solid #f0c350;
    padding-left: 11px;
    font-weight: bold;
}
.cat-list li.on a i { color: #f0c350; }

/* 区组 */
.zone-list { padding: 8px 12px 12px; }
.zone-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #221c31;
    font-size: 12px;
    color: #b8b0cc;
}
.zone-list li:last-child { border-bottom: 0; }
.zone-list b { display: block; color: #cfc7e0; font-weight: normal; margin-bottom: 2px; }
.z-role { color: #4ade80; }
.z-none { color: #7a7290; }
.z-acc { padding: 9px 14px 0; color: #7a7290; }
.z-acc b { color: #f0c350; }
.z-tip { padding: 4px 14px 12px; color: #d08a3a; font-size: 12px; line-height: 1.7; }

/* ---------- 工具栏 ---------- */
.toolbar {
    background: #141020;
    border: 1px solid #2a2338;
    border-radius: 6px;
    padding: 10px 12px;
    height: 40px;
}
.search-box { float: left; }
.search-inp {
    width: 300px;
    height: 32px;
    padding: 0 10px;
    color: #e8e6f0;
    background: #0d0a16;
    border: 1px solid #342b46;
    border-radius: 4px;
    line-height: 32px;
}
.search-inp:focus { border-color: #f0c350; }
.btn-search {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 18px;
    margin-left: 6px;
    color: #2a1d05;
    font-weight: bold;
    background: #d9a93c;
    background-image: -webkit-linear-gradient(top, #f7d778, #cf9c2c);
    background-image: linear-gradient(to bottom, #f7d778, #cf9c2c);
    border: 1px solid #f0c350;
    border-radius: 4px;
    vertical-align: top;
}
.btn-search:hover { color: #2a1d05; background: #f0c350; }
.btn-clear { margin-left: 8px; color: #8b83a3; font-size: 12px; line-height: 32px; }

.sort-box { float: left; margin-left: 16px; line-height: 32px; color: #8b83a3; }
.sort-sel {
    height: 30px;
    padding: 0 4px;
    color: #cfc7e0;
    background: #0d0a16;
    border: 1px solid #342b46;
    border-radius: 4px;
}
.cart-entry { float: right; }
.btn-cart-entry {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    color: #f0c350;
    border: 1px solid rgba(240, 195, 80, .5);
    border-radius: 4px;
    background: rgba(240, 195, 80, .08);
    font-size: 13px;
}
.btn-cart-entry:hover { background: rgba(240, 195, 80, .18); color: #ffe082; }
.btn-cart-entry b { color: #fff; padding-left: 3px; }

.crumb { padding: 12px 2px 8px; color: #7a7290; font-size: 12px; }
.crumb b { color: #cfc7e0; font-weight: normal; }

/* ---------- 商品网格 ---------- */
.grid-wrap { min-height: 200px; }
.grid { overflow: hidden; }
.grid li.card {
    float: left;
    width: 152px;                               /* IE8 回退（不支持 calc 时用这个） */
    width: -webkit-calc((100% - 42px) / 6);     /* 老 webkit */
    width: calc((100% - 42px) / 6);             /* 标准：始终 6 列，随窗口缩放 */
    min-width: 128px;                           /* 再窄就降为 5 列，避免内部控件挤爆 */
    height: 258px;
    margin: 0 7px 14px 0;
    padding: 8px 8px 0;
    background: #141020;
    border: 1px solid #2a2338;
    border-top: 3px solid #4a4358;
    border-radius: 5px;
    position: relative;
    cursor: default;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.grid li.card.hover {
    border-color: #4d3f1c;
    border-top-color: #f0c350;
    background: #1a1428;
    box-shadow: 0 0 16px rgba(240, 195, 80, .18);
}
.grid li.card.q1 { border-top-color: #8a8a94; }
.grid li.card.q2 { border-top-color: #4ade80; }
.grid li.card.q3 { border-top-color: #60a5fa; }
.grid li.card.q4 { border-top-color: #c084fc; }
.grid li.card.q5 { border-top-color: #fb923c; }
.grid li.card.q6 { border-top-color: #f43f5e; }
.grid li.card.q7 { border-top-color: #fbbf24; }

.card-top { height: 96px; position: relative; text-align: center; }
.ico-box {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    background: #0b0913;
    border: 1px solid #241e34;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}
.ico-box img { width: 86px; height: 86px; }
.badge {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 10px;
    color: #0c0a12;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 15px;
}
.card-id {
    position: absolute;
    left: 0;
    bottom: 2px;
    font-size: 10px;
    color: #5d5674;
}
.card-name {
    height: 38px;
    line-height: 19px;
    overflow: hidden;
    color: #e8e6f0;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    padding: 2px 0;
}
.card-name:hover { color: #ffe082; }
.card-cat {
    height: 18px;
    font-size: 11px;
    color: #6b6480;
    text-align: center;
    overflow: hidden;
}
.card-price { text-align: center; height: 30px; padding-top: 3px; }
.card-price .cur { font-size: 11px; color: #8b83a3; margin-right: 2px; }
.card-price b { color: #f0c350; font-size: 17px; }
/* 一份 N 个 小标签 */
.card-price .per-tag {
    font-style: normal;
    font-size: 10px;
    line-height: 14px;
    color: #7dffcf;
    background: rgba(45, 212, 191, .12);
    border: 1px solid rgba(45, 212, 191, .32);
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 4px;
    white-space: nowrap;
    vertical-align: 2px;
}

.card-ops { padding-top: 4px; height: 30px; }
.num-box {
    float: left;
    width: 86px;
    height: 26px;
    border: 1px solid #342b46;
    border-radius: 4px;
    overflow: hidden;
    background: #0d0a16;
}
.num-minus, .num-plus {
    float: left;
    width: 22px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #a09bb5;
    font-size: 14px;
    background: #191227;
}
.num-minus:hover, .num-plus:hover { background: #2a2038; color: #f0c350; }
.num-inp {
    float: left;
    width: 40px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border: 0;
    color: #e8e6f0;
    background: #0d0a16;
    font-size: 12px;
}
.btn-cart {
    float: right;
    width: 44px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    color: #2a1d05;
    font-size: 12px;
    background: #d9a93c;
    background-image: -webkit-linear-gradient(top, #f7d778, #cf9c2c);
    background-image: linear-gradient(to bottom, #f7d778, #cf9c2c);
    border: 1px solid #f0c350;
    border-radius: 4px;
    font-weight: bold;
}
.btn-cart:hover { color: #2a1d05; background: #f7d778; }

/* 空状态 */
.empty { padding: 70px 0; text-align: center; color: #6b6480; }
.empty-ico { font-size: 38px; color: #332b47; margin-bottom: 8px; }
.empty p { font-size: 14px; }
.empty-sub { font-size: 12px !important; color: #554e68; margin-top: 4px; }

/* ---------- 分页 ---------- */
.pager { padding: 16px 0 30px; text-align: center; }
.pg-info { color: #7a7290; margin-right: 10px; font-size: 12px; }
.pg-info b { color: #cfc7e0; font-weight: normal; }
.pg-btn {
    display: inline-block;
    min-width: 16px;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    margin: 0 3px;
    color: #b8b0cc;
    font-size: 12px;
    background: #141020;
    border: 1px solid #2a2338;
    border-radius: 4px;
}
.pg-btn:hover { border-color: #f0c350; color: #ffe082; }
.pg-btn.disabled { color: #4d4761; border-color: #221c31; cursor: default; }
.pg-btn.cur { background: #f0c350; color: #2a1d05; border-color: #f0c350; font-weight: bold; }
.pg-jump { margin-left: 12px; color: #7a7290; font-size: 12px; }
.pg-inp {
    width: 42px;
    height: 26px;
    text-align: center;
    color: #e8e6f0;
    background: #0d0a16;
    border: 1px solid #342b46;
    border-radius: 4px;
    margin: 0 3px;
}
.pg-go {
    display: inline-block;
    padding: 0 8px;
    height: 26px;
    line-height: 26px;
    border: 1px solid #342b46;
    border-radius: 4px;
    color: #a09bb5;
}
.pg-go:hover { border-color: #f0c350; color: #f0c350; }

/* ---------- 页脚 ---------- */
.footer {
    clear: both;
    padding: 26px 0 34px;
    text-align: center;
    color: #554e68;
    font-size: 12px;
    border-top: 1px solid #1a1526;
    margin-top: 10px;
}
.footer-dim { color: #443e57; margin-top: 4px; }

/* ---------- 购物车面板 ---------- */
.cart-mask {
    display: none;
    position: fixed;
    _position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background: rgba(4, 3, 8, .55);
    z-index: 800;
}
.cart-panel {
    display: none;
    position: fixed;
    _position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: #100c1b;
    border-left: 1px solid #3a2f14;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .6);
    z-index: 900;
}
.cart-head {
    height: 52px;
    line-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #2a2338;
}
.cart-head h3 { float: left; font-size: 16px; color: #f0c350; letter-spacing: 1px; }
.cart-close { float: right; color: #8b83a3; font-size: 24px; line-height: 52px; }
.cart-close:hover { color: #f0c350; }
.cart-zone { padding: 12px 16px; border-bottom: 1px solid #1e182c; color: #8b83a3; }
.zone-sel {
    width: 230px;
    height: 30px;
    color: #e8e6f0;
    background: #0d0a16;
    border: 1px solid #342b46;
    border-radius: 4px;
}
.cart-body { height: 100%; overflow-y: auto; padding: 8px 16px 120px; }
.cart-empty { padding: 60px 0; text-align: center; color: #554e68; }
.cart-item {
    padding: 10px 0;
    border-bottom: 1px dashed #221c31;
    overflow: hidden;
}
.ci-ico { float: left; width: 44px; height: 44px; background: #0b0913; border: 1px solid #241e34; border-radius: 4px; overflow: hidden; }
.ci-ico img { width: 42px; height: 42px; }
.ci-info { float: left; width: 190px; margin-left: 10px; }
.ci-name { color: #e8e6f0; font-size: 13px; height: 20px; overflow: hidden; }
.ci-price { color: #7a7290; font-size: 11px; }
.ci-price b { color: #f0c350; font-size: 13px; }
.ci-price .ci-per { font-style: normal; color: #7dffcf; margin-left: 6px; }
.ci-ops { float: right; width: 96px; text-align: right; }
.ci-num {
    width: 40px;
    height: 22px;
    text-align: center;
    color: #e8e6f0;
    background: #0d0a16;
    border: 1px solid #342b46;
    border-radius: 3px;
}
.ci-del { color: #6b6480; margin-left: 6px; font-size: 12px; }
.ci-del:hover { color: #f43f5e; }
.cart-foot {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 16px;
    background: #141020;
    border-top: 1px solid #2a2338;
}
.cart-money { color: #8b83a3; font-size: 12px; margin-bottom: 4px; }
.cart-money b { color: #ffe082; font-size: 14px; padding: 0 2px; }
.cart-total { color: #a09bb5; margin-bottom: 10px; }
.cart-total b { color: #f0c350; font-size: 20px; padding: 0 3px; }

/* ---------- 弹层 ---------- */
.mask {
    display: none;
    position: fixed;
    _position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background: rgba(4, 3, 8, .78);
    z-index: 1000;
    overflow-y: auto;
}
.dialog {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position: relative;
    width: 400px;
    max-width: 96%;                 /* 窗口再窄也不会把弹窗顶出屏幕 */
    margin: 90px auto 40px;
    padding: 24px 26px;
    background: #141020;
    border: 1px solid #3a2f14;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .75);
}
.dlg-close {
    position: absolute;
    right: 12px;
    top: 6px;
    font-size: 26px;
    color: #6b6480;
    line-height: 1;
}
.dlg-close:hover { color: #f0c350; }
.dlg-title { font-size: 18px; color: #f0c350; letter-spacing: 1px; }
.dlg-sub { color: #7a7290; font-size: 12px; margin: 4px 0 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; color: #a09bb5; font-size: 12px; margin-bottom: 5px; }
.inp {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    color: #e8e6f0;
    background: #0d0a16;
    border: 1px solid #342b46;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 36px;
}
.inp:focus { border-color: #f0c350; }
.form-err { color: #f43f5e; font-size: 12px; height: 18px; margin-bottom: 6px; }
/* 兑换弹窗的错误区有时要承载「角色在线」提示块，不能被固定高度压住 */
#exErr { height: auto; min-height: 18px; line-height: 1.7; }
#exErr:empty { height: 18px; }
.dlg-note { color: #554e68; font-size: 11px; margin-top: 12px; text-align: center; }

/* 详情 */
.dialog-detail { width: 440px; }
.dt-head { overflow: hidden; padding-bottom: 14px; border-bottom: 1px solid #241e34; }
.dt-ico {
    float: left;
    width: 76px;
    height: 76px;
    background: #0b0913;
    border: 1px solid #241e34;
    border-radius: 6px;
    overflow: hidden;
}
.dt-ico img { width: 74px; height: 74px; }
.dt-title { float: left; width: 288px; margin-left: 14px; }
.dt-title h3 { font-size: 18px; margin-bottom: 6px; }
.dt-tags span {
    display: inline-block;
    font-size: 11px;
    color: #8b83a3;
    border: 1px solid #2a2338;
    border-radius: 3px;
    padding: 1px 6px;
    margin: 0 5px 4px 0;
}
.dt-desc {
    max-height: 260px;
    overflow-y: auto;
    padding: 12px 0;
    font-size: 13px;
    color: #bdb6cc;
    line-height: 1.9;
}
.dt-foot { padding-top: 12px; border-top: 1px solid #241e34; overflow: hidden; }
.dt-price { float: left; color: #8b83a3; line-height: 32px; }
.dt-price b { color: #f0c350; font-size: 18px; }
.dt-foot .btn-main { float: right; }

/* 订单 */
.dialog-order { width: 640px; }
.order-body { max-height: 420px; overflow-y: auto; margin-top: 14px; }
.order-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.order-table th {
    text-align: left;
    color: #8b83a3;
    font-weight: normal;
    padding: 6px 4px;
    border-bottom: 1px solid #2a2338;
}
.order-table td { padding: 8px 4px; border-bottom: 1px dashed #1e182c; color: #b8b0cc; }
.order-table td.o-items { color: #e8e6f0; }
.order-table td.o-total { color: #f0c350; }

/* 提示条 */
.toast {
    display: none;
    position: fixed;
    _position: absolute;
    top: 90px;
    left: 50%;
    margin-left: -190px;
    width: 380px;
    padding: 12px 18px;
    background: #1a1428;
    border: 1px solid #f0c350;
    border-radius: 6px;
    color: #ffe082;
    text-align: center;
    font-size: 13px;
    z-index: 2000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .6);
}
.toast.err { border-color: #f43f5e; color: #ffb3c1; }
.toast.ok { border-color: #4ade80; color: #b6f5cd; }

/* ============================================================
   兑换元宝（激活开服累充）
   ============================================================ */
.u-link-ex { color: #f0c350; font-weight: bold; }
.u-link-ex:hover { color: #ffe9a6; }

/* ---------- 兑换元宝横幅（首页顶部，一眼能看到） ---------- */
.ex-banner {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    width: 96%;
    max-width: 1200px;
    margin: 14px auto 0;
    background: #3a2408;
    background-image: -webkit-linear-gradient(left, #3a2408 0%, #6b4410 35%, #8a5c14 50%, #6b4410 65%, #3a2408 100%);
    background-image: linear-gradient(90deg, #3a2408 0%, #6b4410 35%, #8a5c14 50%, #6b4410 65%, #3a2408 100%);
    border: 2px solid #f0c350;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #7a5a18 inset, 0 8px 26px rgba(240, 195, 80, .3), 0 4px 16px rgba(0, 0, 0, .55);
    -webkit-animation: exGlow 2.4s ease-in-out infinite;
    animation: exGlow 2.4s ease-in-out infinite;
}
@-webkit-keyframes exGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px #7a5a18 inset, 0 8px 22px rgba(240, 195, 80, .22), 0 4px 16px rgba(0, 0, 0, .55);
    }
    50% {
        box-shadow: 0 0 0 1px #ffd76b inset, 0 8px 36px rgba(240, 195, 80, .62), 0 4px 16px rgba(0, 0, 0, .55);
    }
}
@keyframes exGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px #7a5a18 inset, 0 8px 22px rgba(240, 195, 80, .22), 0 4px 16px rgba(0, 0, 0, .55);
    }
    50% {
        box-shadow: 0 0 0 1px #ffd76b inset, 0 8px 36px rgba(240, 195, 80, .62), 0 4px 16px rgba(0, 0, 0, .55);
    }
}

/* padding-right 给右侧按钮留位置；按钮绝对定位，文字再也挤不走它 */
.ex-banner-in {
    position: relative;
    overflow: hidden;
    padding: 14px 210px 14px 22px;
    min-height: 54px;
}
.ex-banner-l { float: left; }

.ex-badge {
    float: left;
    width: 54px;
    height: 54px;
    margin-right: 16px;
    line-height: 54px;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #3a2408;
    background: #f0c350;
    background-image: -webkit-linear-gradient(top, #ffe9a6, #d9a93c);
    background-image: linear-gradient(to bottom, #ffe9a6, #d9a93c);
    border: 2px solid #fff3c4;
    border-radius: 8px;
    text-shadow: 0 1px 0 #ffedb0;
    box-shadow: 0 0 16px rgba(255, 220, 120, .7);
}

.ex-banner-txt { float: left; }
.ex-banner-txt h2 {
    font-size: 23px;
    line-height: 30px;
    color: #ffe082;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 14px rgba(255, 200, 70, .85), 0 2px 3px rgba(0, 0, 0, .75);
}
.ex-banner-txt h2 i { color: #f0c350; font-style: normal; }
.ex-banner-txt p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 20px;
    color: #e8c98a;
}
.ex-banner-txt p b { color: #fff; font-size: 15px; }
.ex-banner-txt p em { color: #7cf0a4; font-style: normal; font-weight: bold; }
.ex-sep { color: #8a6a2a; margin: 0 8px; }

.ex-banner-r {
    position: absolute;
    right: 22px;
    top: 50%;
    margin-top: -28px;
}
.btn-ex-big {
    display: block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #3a2408;
    background: #f0c350;
    background-image: -webkit-linear-gradient(top, #ffe9a6, #d9a93c);
    background-image: linear-gradient(to bottom, #ffe9a6, #d9a93c);
    border: 2px solid #fff3c4;
    border-radius: 6px;
    box-shadow: 0 4px 0 #8a6418, 0 6px 18px rgba(240, 195, 80, .5);
    cursor: pointer;
}
.btn-ex-big:hover { background-image: -webkit-linear-gradient(top, #fff6d0, #f0c350); background-image: linear-gradient(to bottom, #fff6d0, #f0c350); }
.btn-ex-big:active { box-shadow: 0 2px 0 #8a6418, 0 3px 10px rgba(240, 195, 80, .4); }

.dialog-ex { width: 660px; }

.ex-head { overflow: hidden; margin-bottom: 16px; }
.ex-head-l { float: left; line-height: 30px; }
.ex-head-l label { color: #a09bb5; font-size: 12px; margin-right: 6px; }
.ex-head-r { float: right; color: #7a7290; font-size: 12px; line-height: 30px; }
.ex-head-r b { color: #f0c350; font-size: 15px; }
.ex-on { color: #f43f5e; font-style: normal; font-size: 11px; }
.ex-on-ok { color: #4ade80; font-style: normal; font-size: 11px; }

/* 角色在线软提示 + 「我已退出，继续兑换」按钮 */
.ex-warn-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #2a1206;
    border: 1px solid #7a4a12;
    border-radius: 6px;
    color: #f6c86a;
    font-size: 12px;
    line-height: 1.75;
    text-align: left;
}
.ex-warn-txt { margin-bottom: 9px; }
.ex-warn-box .ex-force {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    padding: 7px 22px;
    background: #f0c350;
    background-image: -webkit-linear-gradient(top, #ffe9a8, #f0c350);
    background-image: linear-gradient(to bottom, #ffe9a8, #f0c350);
    color: #3a2708;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 0 #8a6418;
}
.ex-warn-box .ex-force:hover {
    background-image: -webkit-linear-gradient(top, #fff6d0, #f5d06a);
    background-image: linear-gradient(to bottom, #fff6d0, #f5d06a);
    color: #2a1c04;
}

.ex-tiers { overflow: hidden; margin: 0 -6px; }

.ex-card {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    float: left;
    width: 190px;
    margin: 0 6px 12px;
    padding: 15px 10px 14px;
    text-align: center;
    background: #0d0a16;
    border: 1px solid #3a2f14;
    border-radius: 6px;
}
.ex-card:hover { border-color: #f0c350; }
.ex-card-tag { color: #a09bb5; font-size: 12px; }
.ex-card-main {
    font-size: 25px;
    font-weight: bold;
    color: #f7d778;
    margin: 7px 0 4px;
    letter-spacing: 1px;
}
.ex-card-desc { color: #7a7290; font-size: 12px; margin-bottom: 9px; }
.ex-card-cost { color: #a09bb5; font-size: 12px; margin-bottom: 11px; }
.ex-card-cost b { color: #4ade80; font-size: 16px; }

.btn-ex {
    display: block;
    padding: 8px 0;
    color: #2a1d05;
    font-size: 14px;
    font-weight: bold;
    background: #d9a93c;
    background-image: -webkit-linear-gradient(top, #f7d778, #cf9c2c);
    background-image: linear-gradient(to bottom, #f7d778, #cf9c2c);
    border: 1px solid #f0c350;
    border-radius: 4px;
    letter-spacing: 1px;
    cursor: pointer;
}
.btn-ex:hover { background-image: -webkit-linear-gradient(top, #ffe9a6, #e0b040); background-image: linear-gradient(to bottom, #ffe9a6, #e0b040); }
.btn-ex-off,
.btn-ex-off:hover {
    background: #2a2338;
    background-image: none;
    color: #6b6480;
    border-color: #342b46;
    cursor: default;
}

.ex-loading,
.ex-empty {
    padding: 36px 0;
    text-align: center;
    color: #554e68;
    font-size: 13px;
    line-height: 1.9;
}

.ex-note {
    color: #6b6480;
    font-size: 12px;
    line-height: 1.9;
    margin-top: 2px;
    min-height: 20px;
}
.ex-note .warn { color: #f0c350; }
.ex-note .ok { color: #4ade80; }

/* ============================================================
   窄屏适配
   —— 360 / 搜狗 / QQ 浏览器常以 1000~1200 之间的窗口打开，
      这里把卡片、搜索框、横幅按钮按比例收紧，保证不横向滚动、
      不出现文字溢出或错位。
   （IE8 不支持 @media，会退回上面的默认尺寸，仍可正常浏览）
   ============================================================ */
@media screen and (max-width: 1180px) {
    .search-inp { width: 250px; }
}

@media screen and (max-width: 1080px) {
    .ex-banner-in { padding-right: 186px; }
    .ex-banner-txt h2 { font-size: 20px; letter-spacing: 1px; }
    .ex-banner-txt p { font-size: 12px; line-height: 19px; }
    .btn-ex-big { padding: 10px 20px; font-size: 16px; letter-spacing: 1px; }
    .ex-banner-r { margin-top: -25px; }
}

@media screen and (max-width: 1010px) {
    .search-inp { width: 196px; }
    .sort-box { margin-left: 10px; }
    .btn-search { padding: 0 14px; }
}
