/* 钱庄 · 材料交易 样式表 */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --ink: #1e3442;
    --ink-2: #3d5568;
    --muted: #7c8b99;
    --line: #e3e8ee;
    --teal: #1e8fa4;
    --teal-d: #16697a;
    --gold: #c9a45c;
    --gold-d: #8d6b2f;
    --bg: #f4f6f8;
    --card: #ffffff;
    --radius: 12px;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* ============ 登录 / 注册页 ============ */
.auth-body {
    min-height: 100vh;
    background: #0b1522 url(bg.jpg) no-repeat center center / cover;
    overflow-x: hidden;
}

.bg-layer {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background: #0b1522 url(bg.jpg) no-repeat center center / cover;
}
.bg-layer video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}

.auth-veil {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6,14,24,.36) 0%, rgba(6,14,24,.54) 100%),
        linear-gradient(90deg, rgba(6,14,24,.86) 0%, rgba(6,14,24,.60) 26%, rgba(6,14,24,.30) 55%, rgba(6,14,24,.16) 78%, rgba(6,14,24,.22) 100%);
}

.auth-stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.brand-panel {
    flex: 1 1 50%;
    min-height: 100vh;
    padding: 7vh 3vw 6vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-inner { max-width: 560px; }

.seal-row { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }

.seal {
    width: 62px; height: 62px; flex: 0 0 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, #ffe8a8 0%, #d8a94d 28%, #a8722c 58%, #6f3f16 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.06) inset;
    display: flex; align-items: center; justify-content: center;
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 30px; color: #40200c;
}

.seal-name {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 24px; letter-spacing: 2px; color: #f3f7fb; line-height: 1.15; white-space: nowrap;
}

.seal-en { font-size: 11px; letter-spacing: 5px; color: #7d93a9; margin-top: 5px; }

.hero-title {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 38px; letter-spacing: 5px; margin-bottom: 14px; white-space: nowrap;
    background: linear-gradient(180deg, #fde9b1 0%, #e6c072 45%, #c89a45 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc { font-size: 14px; line-height: 1.9; color: #a8bccd; letter-spacing: .5px; margin-bottom: 28px; }

.feat {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; margin-bottom: 12px;
    border-radius: 13px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    transition: transform .22s, background .22s;
}

.feat:hover { transform: translateX(4px); background: rgba(255,255,255,.1); }

.feat .fi {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
    background: rgba(255,255,255,.93);
    display: flex; align-items: center; justify-content: center;
}

.feat .fi svg { width: 19px; height: 19px; fill: #2a6f8c; }
.feat .ft { flex: 1 1 auto; font-size: 14.5px; color: #f1f5f9; letter-spacing: 1px; white-space: nowrap; }
.feat .fm { font-size: 12.5px; color: #8ea6bd; white-space: nowrap; }
.panel-foot { margin-top: 24px; font-size: 12px; color: #6c8298; letter-spacing: 1px; }

.form-side {
    flex: 0 0 500px; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 20px;
}

.login-card {
    width: 100%; max-width: 384px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 16px;
    padding: 22px 26px 16px;
    box-shadow: 0 24px 60px rgba(3,10,18,.45), 0 0 0 1px rgba(0,0,0,.05) inset;
}

.card-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.card-brand .seal { width: 42px; height: 42px; flex: 0 0 42px; font-size: 21px; }
.card-brand .cn { font-family: "STKaiti", "KaiTi", serif; font-size: 19px; letter-spacing: 3px; color: #1e2836; }
.card-brand .en { font-size: 10px; letter-spacing: 2px; color: #9aa6b3; margin-top: 2px; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; background: #f1f4f7; padding: 4px; border-radius: 10px; }
.tabs a, .tabs button {
    flex: 1 1 0; text-align: center; padding: 8px 0; border: 0; background: transparent;
    border-radius: 8px; font-size: 13.5px; color: #6b7887; cursor: pointer; letter-spacing: 1px;
    transition: all .18s;
}
.tabs .on { background: #fff; color: var(--teal-d); font-weight: 700; box-shadow: 0 2px 8px rgba(30,143,164,.16); }

.login-title { font-family: "STKaiti", "KaiTi", serif; font-size: 20px; letter-spacing: 3px; color: #1e2836; margin: 0 0 5px; }
.login-desc { font-size: 12.5px; color: #7c8695; line-height: 1.6; margin-bottom: 14px; }

.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 12.5px; color: #4d5765; margin-bottom: 6px; letter-spacing: .5px; }

.control {
    display: flex; align-items: center; background: #fff;
    border: 1px solid var(--line); border-radius: 9px; height: 42px;
    transition: border-color .2s, box-shadow .2s;
}
.control:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30,143,164,.12); }
.control .ico { width: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: center; }
.control .ico svg { width: 16px; height: 16px; fill: #93a0b0; }
.control:focus-within .ico svg { fill: var(--teal); }
.control input {
    flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none;
    background: transparent; font-size: 14px; color: #22303f; padding-right: 12px;
}
.control input::placeholder { color: #b3bcc8; }

.btn-primary {
    width: 100%; height: 44px; margin-top: 6px;
    border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #2f9cbf, #16697a);
    color: #fff; font-size: 15px; letter-spacing: 3px;
    box-shadow: 0 8px 18px rgba(22,105,122,.28);
    transition: filter .2s, transform .1s;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }

.auth-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12.5px; color: #7c8695; }
.auth-foot button { border: 0; background: transparent; color: var(--teal-d); cursor: pointer; font-size: 12.5px; }
.auth-foot a { color: var(--teal-d); text-decoration: none; font-size: 12.5px; }
.auth-foot a:hover { text-decoration: underline; }
.auth-foot button:hover { text-decoration: underline; }

.form-error { color: #c0392b; font-size: 12.5px; min-height: 16px; line-height: 1.6; }
.form-ok { color: #1e8f5e; font-size: 12.5px; min-height: 16px; }

/* 提示条 */
.toast {
    position: fixed; left: 50%; top: 26px; transform: translateX(-50%) translateY(-16px);
    background: rgba(28,42,54,.95); color: #fff; padding: 11px 22px; border-radius: 10px;
    font-size: 13.5px; letter-spacing: .5px; opacity: 0; pointer-events: none;
    transition: all .26s; z-index: 90; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 背景音乐按钮 */
.music-btn {
    position: fixed; right: 22px; bottom: 22px; z-index: 20;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(12,24,34,.55); color: #e9dcc0;
    font-size: 17px; line-height: 1; cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all .2s;
}
.music-btn:hover { transform: translateY(-1px); border-color: rgba(233,220,192,.6); }
.music-btn.on {
    background: linear-gradient(135deg, #c9a45c, #8d6b2f);
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 18px rgba(201,164,92,.35);
}

/* ============ 工作台 ============ */
.shell { display: flex; min-height: 100vh; }

.side {
    width: 208px; flex: 0 0 208px;
    background: linear-gradient(180deg, #16283a 0%, #1b3345 60%, #14232f 100%);
    color: #cfdbe5; padding: 18px 0 24px;
    display: flex; flex-direction: column;
}

.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 18px 18px; }
.side-brand .seal { width: 34px; height: 34px; flex: 0 0 34px; font-size: 17px; }
.side-brand .t1 { font-family: "STKaiti", "KaiTi", serif; font-size: 16px; letter-spacing: 3px; color: #f0e0b8; }
.side-brand .t2 { font-size: 10px; color: #8aa0b3; letter-spacing: 2px; margin-top: 2px; }

.side-nav { flex: 1 1 auto; padding-top: 4px; }
.side-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px; font-size: 13.5px; color: #b9c9d6;
    border-left: 3px solid transparent; transition: all .18s;
}
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(30,143,164,.18); border-left-color: #45bcd2; color: #fff; }
.side-nav a .dot { width: 6px; height: 6px; border-radius: 50%; background: #45bcd2; opacity: .8; }

.side-foot { padding: 12px 20px 0; font-size: 11.5px; color: #6f8498; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 62px; flex: 0 0 62px;
    background: #fff; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px;
}

.topbar .page-title { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--ink); }
.topbar .right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #5d6b7a; }

.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 20px;
    background: linear-gradient(135deg, #fbf7ec, #f4f7f9);
    border: 1px solid #eae4d4; font-size: 12.5px; color: #6b5c40;
}
.chip b { color: #a8762a; font-weight: 700; }

.link-btn { border: 0; background: transparent; color: #6b7887; cursor: pointer; font-size: 13px; }
.link-btn:hover { color: var(--teal-d); }

.content { padding: 20px 22px 40px; }

.panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(30,52,66,.04);
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 18px; border-bottom: 1px solid #eff2f6;
}
.panel-head h3 { margin: 0; font-size: 14.5px; letter-spacing: 1.5px; color: var(--ink); font-weight: 700; }
.panel-head .sub { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 400; letter-spacing: 0; }
.panel-body { padding: 16px 14px; overflow-x: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px;
}
.stat::after {
    content: ''; position: absolute; right: -20px; top: -20px; width: 74px; height: 74px;
    border-radius: 50%; background: radial-gradient(circle, rgba(30,143,164,.1), transparent 70%);
}
.stat .k { font-size: 12px; color: #8391a0; letter-spacing: 1px; }
.stat .v { font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 6px; letter-spacing: .5px; }
.stat .v small { font-size: 12px; font-weight: 400; color: #93a0ae; margin-left: 4px; }
.stat.gold .v { color: #a8762a; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

.input, .select {
    height: 36px; border: 1px solid var(--line); border-radius: 8px;
    padding: 0 11px; font-size: 13px; color: #33465a; background: #fff; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(30,143,164,.1); }
.input::placeholder { color: #adb7c1; }

.btn {
    height: 34px; padding: 0 15px; border-radius: 8px; border: 1px solid transparent;
    font-size: 13px; cursor: pointer; letter-spacing: .5px;
    transition: all .18s; white-space: nowrap;
}
.btn-teal { background: linear-gradient(135deg, #2f9cbf, #16697a); color: #fff; }
.btn-teal:hover { filter: brightness(1.07); }
.btn-ghost { background: #fff; border-color: var(--line); color: #4d5f70; }
.btn-ghost:hover { border-color: #c8d3dd; color: var(--ink); }
.btn-gold { background: linear-gradient(135deg, #c9a45c, #8d6b2f); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); }
.btn-danger { background: #c0463c; color: #fff; }
.btn-danger:hover { filter: brightness(1.07); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { white-space: nowrap; }
table.tbl th {
    text-align: center; font-weight: 600; color: #5f6f7e; background: #f7f9fb;
    padding: 11px 6px; border-bottom: 1px solid #eef2f6; letter-spacing: .5px; white-space: nowrap;
}
table.tbl td { text-align: center; padding: 11px 6px; border-bottom: 1px solid #f2f5f8; color: #33465a; }
table.tbl td.left { text-align: left; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl .tk { color: #9aa7b4; font-size: 12px; }
table.tbl .name { color: var(--ink); font-weight: 600; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; line-height: 1.7; }
.badge.on { background: #e8f5ef; color: #1e8f5e; }
.badge.wait { background: #fdf3e2; color: #b07a20; }
.badge.off { background: #f6eaea; color: #b04a3f; }
.badge.info { background: #e8f2f7; color: #2a7d97; }
.badge.dark { background: #eef1f4; color: #66727d; }

.empty { padding: 44px 0; text-align: center; color: #a4b1bd; font-size: 13px; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; font-size: 12.5px; color: #8391a0; }
.pager a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; color: #5d6b7a; }
.pager a:hover { border-color: #c8d3dd; color: var(--ink); }

/* 弹窗 */
.mask {
    position: fixed; inset: 0; background: rgba(16,26,36,.5); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.mask.show { display: flex; }
.dlg {
    width: 100%; max-width: 460px; background: #fff; border-radius: 14px;
    box-shadow: 0 26px 70px rgba(8,18,28,.35); overflow: hidden;
    animation: dlgIn .18s ease-out;
}
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid #eff2f6; }
.dlg-head b { font-size: 14.5px; letter-spacing: 1px; }
.dlg-head button { border: 0; background: transparent; font-size: 20px; line-height: 1; color: #9aa7b4; cursor: pointer; }
.dlg-body { padding: 16px 18px 8px; max-height: 66vh; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 16px; }

.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12.5px; color: #4d5765; margin-bottom: 6px; }
.form-row .input, .form-row .select { width: 100%; }
.form-row textarea {
    width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 8px;
    padding: 9px 11px; font-size: 13px; color: #33465a; outline: none; resize: vertical;
}
.form-row textarea:focus { border-color: var(--teal); }

/* 商城 */
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.goods-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column;
}
.goods-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,52,66,.1); }
.goods-thumb {
    height: 118px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef4f7, #f7f4ec);
    font-size: 30px; color: #97b0be;
}
.goods-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.goods-info .n { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-info .s { font-size: 12px; color: #8b98a5; }
.goods-info .row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.goods-info .p { color: #b3762a; font-size: 19px; font-weight: 700; }
.goods-info .p small { font-size: 11px; color: #a08b70; margin-left: 2px; }
.cat-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #eef4f7; color: #3b7d93; font-size: 11.5px; }

@media (max-width: 1180px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .auth-stage { flex-direction: column; }
    .brand-panel { min-height: auto; padding: 34px 24px 10px; }
    .hero-title { font-size: 32px; }
    .form-side { flex: 1 1 auto; min-height: auto; padding: 10px 16px 40px; }
    .shell { flex-direction: column; }
    .side { width: 100%; flex: 0 0 auto; flex-direction: row; overflow-x: auto; padding: 8px; }
    .side-brand, .side-foot { display: none; }
    .side-nav { display: flex; gap: 4px; padding: 0; }
    .side-nav a { border-left: 0; border-radius: 8px; padding: 9px 12px; white-space: nowrap; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

.seal.seal-logo { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible;
    filter: drop-shadow(0 0 3px rgba(255,255,255,.45)) drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.seal.seal-logo img { width: 100%; height: 100%; object-fit: contain; display: block; filter: brightness(1.2) contrast(1.06); }

/* 顶部联合LOGO（首页） */
.top-logo { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; pointer-events: none; width: clamp(280px, 32vw, 460px); }
.top-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
@media (max-width: 820px) { .top-logo { width: min(72vw, 300px); top: 12px; } }

/* 登录/注册卡片：暗色玻璃 + 金色四角标（参考管理端登录卡） */
.login-card {
    position: relative;
    background: rgba(10, 20, 30, .74);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(198, 166, 98, .45);
    border-radius: 14px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .55), 0 1px 0 rgba(255,255,255,.06) inset;
    padding: 24px 24px 18px;
}
.login-card .cbr { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.login-card .cbr.tl { top: 8px; left: 8px; border-top: 1.5px solid rgba(216, 184, 112, .8); border-left: 1.5px solid rgba(216, 184, 112, .8); border-top-left-radius: 5px; }
.login-card .cbr.tr { top: 8px; right: 8px; border-top: 1.5px solid rgba(216, 184, 112, .8); border-right: 1.5px solid rgba(216, 184, 112, .8); border-top-right-radius: 5px; }
.login-card .cbr.bl { bottom: 8px; left: 8px; border-bottom: 1.5px solid rgba(216, 184, 112, .8); border-left: 1.5px solid rgba(216, 184, 112, .8); border-bottom-left-radius: 5px; }
.login-card .cbr.br { bottom: 8px; right: 8px; border-bottom: 1.5px solid rgba(216, 184, 112, .8); border-right: 1.5px solid rgba(216, 184, 112, .8); border-bottom-right-radius: 5px; }

.login-card .card-brand { padding-bottom: 0; margin-bottom: 12px; border-bottom: 0; }
.login-card .card-brand .cn { color: #f5f8fb; font-size: 18px; letter-spacing: 2px; }
.login-card .card-brand .en { color: #8b99a7; }

.login-card .tabs { background: rgba(255,255,255,.06); }
.login-card .tabs button { color: #9dadbb; }
.login-card .tabs button.on { background: rgba(255,255,255,.13); color: #fff; font-weight: 700; box-shadow: none; }

.login-card .login-title {
    color: #f7fafd; font-family: "STKaiti", "KaiTi", serif;
    font-size: 21px; font-weight: 400; letter-spacing: 3px;
    border-top: 1px solid rgba(255,255,255,.10); padding-top: 14px; margin-top: 2px;
}
.login-card .login-desc { color: #93a3b1; font-size: 13px; }

.login-card .field label { color: #b9c6d3; }
.login-card .control { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 9px; }
.login-card .control .ico svg { fill: #cbb27a; }
.login-card .control input { color: #f2f6fa; background: transparent; }
.login-card .control input::placeholder { color: #7f8d9a; }

.login-card .btn-primary {
    background: linear-gradient(135deg, #2f93aa, #1a6c83);
    border-radius: 10px; letter-spacing: 6px;
    box-shadow: 0 10px 22px rgba(0,0,0,.4);
}
.login-card .auth-foot { border-top: 1px solid rgba(255,255,255,.10); padding-top: 12px; color: #8f9daa; }
.login-card .auth-foot button, .login-card .auth-foot a { color: #d9b56d; }
.login-card .form-error { color: #ff9080; }
.login-card .form-ok { color: #67d3a3; }

/* 注册模式下让卡片下移，避免与顶部LOGO重叠 */
.mode-reg .form-side { padding-top: 44px; }

/* 卡片品牌行居中 */
.login-card .card-brand { justify-content: center; }
.login-card .card-brand > div:last-child { text-align: center; }

/* 右下「注册商人」鎏金流动效果 */
@keyframes qzGoldFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes qzGoldGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(226,178,86,.35)); }
    50%      { filter: drop-shadow(0 0 10px rgba(255,214,130,.85)); }
}
.login-card .auth-foot .gold-link,
.login-card .auth-foot a.gold-link {
    background: linear-gradient(100deg, #8a6a2a 0%, #e8c16b 22%, #fff6cf 42%, #f0cf87 58%, #c99a3f 78%, #8a6a2a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    letter-spacing: .5px;
    animation: qzGoldFlow 2.6s linear infinite, qzGoldGlow 2.6s ease-in-out infinite;
}
.login-card .auth-foot .gold-link:hover { text-decoration: none; }

/* 修复登录输入框被浏览器自动填充成白条 */
.login-card input:-webkit-autofill,
.login-card input:-webkit-autofill:hover,
.login-card input:-webkit-autofill:focus,
.login-card input:-webkit-autofill:active {
    -webkit-text-fill-color: #f2f6fa !important;
    -webkit-box-shadow: 0 0 0 1000px #17222c inset !important;
    box-shadow: 0 0 0 1000px #17222c inset !important;
    caret-color: #f2f6fa;
    border-radius: 10px;
    transition: background-color 99999s ease-in-out 0s;
}
.login-card .control input {
    background: transparent !important;
    border-radius: 10px;
}
.login-card .control { background: rgba(255,255,255,.09); border-radius: 10px; }
.login-card .control:has(input:-webkit-autofill) { background: #17222c; }


/* 管理后台：右下角待审核提醒 */
.adm-alert {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    display: flex; align-items: center; gap: 12px;
    width: 342px; padding: 14px 14px 14px 16px;
    background: rgba(10, 20, 30, .82);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(198, 166, 98, .55); border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}
.adm-alert.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.adm-alert .aa-ico {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #2a1c08; font-size: 16px;
    background: linear-gradient(135deg, #f3d58a, #cfa049);
}
.adm-alert .aa-body { flex: 1 1 auto; min-width: 0; }
.adm-alert .aa-t { font-size: 13.5px; color: #f2f6fa; font-weight: 700; letter-spacing: .5px; }
.adm-alert .aa-t b { color: #ffd26f; font-size: 16px; margin: 0 2px; }
.adm-alert .aa-s { font-size: 11.5px; color: #93a3b1; margin-top: 4px; line-height: 1.5; }
.adm-alert .aa-ops { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.adm-alert .aa-go {
    border: 0; cursor: pointer; padding: 6px 12px; border-radius: 8px; white-space: nowrap;
    background: linear-gradient(135deg, #f3d58a, #cfa049); color: #2a1c08;
    font-size: 12.5px; font-weight: 700;
}
.adm-alert .aa-go:hover { filter: brightness(1.06); }
.adm-alert .aa-x { border: 0; background: transparent; color: #8f9daa; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.adm-alert .aa-x:hover { color: #fff; }

/* 商人审核表格收窄，去掉横向滚动 */
#tbMerchants th, #tbMerchants td { padding-left: 5px; padding-right: 5px; }
#tbMerchants .btn-sm { padding: 3px 6px; font-size: 11.5px; letter-spacing: 0; }


/* 商人管理表格紧凑 */
#tbMerchants th, #tbMerchants td{padding-left:3px;padding-right:3px;font-size:12px}
#tbMerchants .btn-sm{padding:3px 5px;font-size:11px;margin-right:2px}
#tbMerchants .tk{font-size:11px}
