/* assets/css/style.css —— 全站样式（qidian 接口同款深蓝渐变卡片风）
 *
 * 配色体系：
 *   主色  深蓝 #33429c / #3d51b0
 *   深底  #1d2b58 → #2f3f82 → #4b3c8f 渐变
 *   点缀  金 #c9a25e / #ffd9a0
 *   文本  #2b3554 / 次要 #8b93a8
 *   背景  #eef0f6 + 双 radial 光晕
 */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: #eef0f6;
    background-image:
        radial-gradient(900px 420px at 90% -12%, rgba(77, 94, 190, .16), transparent 70%),
        radial-gradient(760px 380px at -10% 14%, rgba(185, 138, 62, .10), transparent 70%);
    background-attachment: fixed;
    color: #2b3554;
    line-height: 1.7;
    font-size: 14.5px;
}

a { color: #3d51b0; text-decoration: none; }
a:hover { color: #33429c; text-decoration: none; }

code, pre {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13px;
    background: #f1f3fb;
    padding: 1px 6px;
    border-radius: 5px;
    color: #33429c;
}

pre {
    display: block;
    padding: 14px 16px;
    background: #1c2444;
    color: #cdd6f4;
    border-radius: 12px;
    overflow-x: auto;
    line-height: 1.6;
}

::selection { background: rgba(61, 81, 176, .22); }

/* ============================== 布局 ============================== */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

.topbar {
    background: linear-gradient(135deg, #1d2b58 0%, #2f3f82 55%, #4b3c8f 100%);
    color: #fff;
    padding: 0;
    box-shadow: 0 10px 30px -12px rgba(31, 42, 88, .55);
    position: relative;
    overflow: hidden;
}
.topbar::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(420px 120px at 88% -40%, rgba(201, 162, 94, .28), transparent 70%);
    pointer-events: none;
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    position: relative;
    z-index: 1;
}
.topbar .brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.topbar .brand strong { font-size: 19px; letter-spacing: .16em; font-weight: 800; }
.topbar .brand strong b { color: #c9a25e; }
.topbar .brand .sub { font-size: 11.5px; opacity: .72; margin-top: 3px; letter-spacing: .06em; }

.topbar .nav { display: flex; align-items: center; gap: 18px; }
.topbar .nav a {
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.topbar .nav a:hover { color: #fff; border-bottom-color: rgba(201, 162, 94, .75); }
.topbar .nav .nav_logout { color: #ffd9a0; }
.topbar .nav .nav_reg {
    background: linear-gradient(135deg, #c9a25e, #b98a3e);
    color: #1d2b58 !important;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    border-bottom: 0 !important;
    box-shadow: 0 6px 16px -6px rgba(201, 162, 94, .7);
}
.topbar .nav .user { font-size: 13px; opacity: .85; }

.main { padding: 30px 0 64px; min-height: 60vh; }

/* 底部页脚：与 .home-foot 一起作为整页底部的两个区块，
   都脱离 .wrap 撑满整屏宽度，无圆角，与上方 .home-foot 紧密拼接。 */
.footer {
    background: linear-gradient(180deg, #1a2244 0%, #14193a 100%);
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    padding: 18px 0;
    color: rgba(255, 255, 255, .55);
    font-size: 12.5px;
    text-align: center;
    letter-spacing: .04em;
}
.footer .beian { margin-left: 12px; }

/* ============================== Flash ============================== */

.flash {
    background: #fff8ec;
    border: 1px solid #ffd591;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0 0 16px;
    color: #874d00;
    font-size: 13.5px;
    box-shadow: 0 4px 14px rgba(212, 107, 8, .07);
}
.flash.err { background: #fff0ef; border-color: #ffbfbd; color: #c0392b; }
.flash.ok  { background: #edf7ee; border-color: #b7e0b7; color: #1a7f37; }

/* ============================== 通用卡片 ============================== */

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(31, 42, 88, .07);
    padding: 24px 28px;
    margin-bottom: 18px;
}
.card h2 {
    margin: 0 0 16px;
    font-size: 16.5px;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card h2::before {
    content: '';
    width: 4px; height: 16px;
    border-radius: 2px;
    background: linear-gradient(#3d51b0, #c9a25e);
    flex: none;
}
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card .hint { color: #8b93a8; font-size: 12px; margin: 4px 0 0; }
.card.empty { color: #9aa2b5; text-align: center; padding: 34px 22px; }
.card.full { grid-column: 1 / -1; }

.section-title {
    font-size: 16.5px;
    margin: 32px 0 14px;
    color: #2b3554;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::before {
    content: '';
    width: 4px; height: 16px;
    border-radius: 2px;
    background: linear-gradient(#3d51b0, #c9a25e);
}

/* ============================== Hero ============================== */

.hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    padding: 38px 32px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #1d2b58 0%, #2f3f82 52%, #4b3c8f 100%);
    box-shadow: 0 22px 48px -18px rgba(31, 42, 88, .55);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(560px 240px at 88% -30%, rgba(201, 162, 94, .30), transparent 70%),
        radial-gradient(520px 280px at -12% 118%, rgba(96, 128, 255, .28), transparent 70%);
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 30px 30px;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
    position: relative; z-index: 1;
}
.hero p { margin: 0; opacity: .9; font-size: 14px; position: relative; z-index: 1; }

/* ============================== 项目卡片 ============================== */

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 18px;
}
.project-card {
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(31, 42, 88, .13);
}
.project-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}
.project-head h2 { margin: 0; font-size: 17px; }
.project-head h2::before { display: none; }
.project-head .price { font-size: 13px; color: #8b93a8; }
.project-head .price strong {
    font-size: 24px;
    font-weight: 800;
    color: #33429c;
    font-variant-numeric: tabular-nums;
}
.project-desc { color: #4e5561; margin-bottom: 8px; font-size: 13.5px; }
.project-long { color: #8b93a8; font-size: 13px; margin-bottom: 12px; line-height: 1.7; }
.project-card ul.meta {
    list-style: none;
    padding: 14px 0;
    margin: 0 0 12px;
    border-top: 1px dashed #e8eaf2;
    border-bottom: 1px dashed #e8eaf2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 8px;
    font-size: 13px;
}
.project-card ul.meta li { display: flex; flex-direction: column; }
.project-card ul.meta span { color: #8b93a8; font-size: 12px; }
.project-card ul.meta b { font-size: 14px; }
.project-card .note { color: #b98a3e; font-size: 12.5px; margin-bottom: 12px; }
.project-card .acts { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* ============================== 授权卡片（会员中心） ============================== */

.au-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(31, 42, 88, .07);
    padding: 24px 28px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.au-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(#3d51b0, #c9a25e);
}
.au-card.expired { background: #fffaf8; }
.au-card.warn    { background: #fffdf3; }

.au-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.au-head h3 { margin: 0; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.au-price { font-size: 13px; color: #4e5561; }
.au-price strong { font-size: 18px; color: #33429c; font-variant-numeric: tabular-nums; }

.au-card ul.meta, .au-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px 14px;
    font-size: 13px;
}
.au-card ul.meta li, .au-meta li { display: flex; flex-direction: column; }
.au-card ul.meta span, .au-meta span { color: #8b93a8; font-size: 12px; }
.au-card ul.meta b, .au-meta b { font-size: 13px; word-break: break-all; }

.au-card .acts, .au-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.au-card .note, .au-note { font-size: 12.5px; color: #8b93a8; }
.au-card .note.warn, .au-note.warn { color: #c0392b; }

/* 兼容旧类名（老页面授权卡） */
.auth-card.au { max-width: none; margin: 0; }

/* ============================== Badge ============================== */

.badge {
    display: inline-block;
    padding: 2.5px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.5;
    background: #f1f3fb;
    color: #4e5561;
    vertical-align: middle;
    white-space: nowrap;
}
.badge.ok   { background: #e6f4e6; color: #1a7f37; }
.badge.warn { background: #fff4e5; color: #d46b08; }
.badge.err  { background: #ffecec; color: #c0392b; }
.badge.info { background: #e8f4ff; color: #0958d9; }
.badge.gold { background: rgba(201, 162, 94, .14); color: #a4741f; }

/* ============================== 按钮 ============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #d3d8ea;
    color: #3d51b0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s;
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover {
    border-color: #3d51b0;
    color: #33429c;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(61, 81, 176, .35);
}
.btn.primary {
    background: linear-gradient(135deg, #33429c, #4b3c8f);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(59, 72, 150, .55);
}
.btn.primary:hover {
    filter: brightness(1.08);
    color: #fff;
    box-shadow: 0 14px 26px -8px rgba(59, 72, 150, .6);
}
.btn.gold {
    background: linear-gradient(135deg, #c9a25e, #b98a3e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(185, 138, 62, .55);
}
.btn.gold:hover { filter: brightness(1.07); color: #fff; }
.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: rgba(255, 255, 255, .9);
}
.btn.ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 217, 160, .55);
    color: #ffd9a0;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35);
}
.btn.danger {
    background: #fff;
    border-color: #ffbfbd;
    color: #c0392b;
}
.btn.danger:hover { background: #c0392b; border-color: #c0392b; color: #fff; }
.btn.small { padding: 4px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.disabled, .btn:disabled {
    background: #f1f2f6;
    border-color: #e6e8f0;
    color: #b6bcc9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================== 表单 ============================== */

label {
    display: block;
    margin-bottom: 15px;
    font-size: 13px;
    color: #4e5561;
    font-weight: 600;
}
label small { display: block; color: #8b93a8; font-size: 12px; margin-top: 4px; font-weight: 400; }
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d9ddec;
    border-radius: 11px;
    background: #fbfcff;
    font-size: 14.5px;
    margin-top: 7px;
    transition: border-color .15s, box-shadow .15s, background .15s;
    color: #2b3554;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3d51b0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 81, 176, .13);
}
input[disabled] { background: #f4f5f9; color: #9aa2b5; }
input::placeholder, textarea::placeholder { color: #b6bcc9; }

button[type=submit] {
    background: linear-gradient(135deg, #33429c, #4b3c8f);
    color: #fff;
    border: 0;
    padding: 11px 28px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: filter .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 10px 22px -8px rgba(59, 72, 150, .5);
}
button[type=submit]:hover { filter: brightness(1.1); transform: translateY(-1px); }
button[type=submit].danger { background: #c0392b; color: #fff; box-shadow: 0 10px 22px -8px rgba(192, 57, 43, .5); }
button[type=submit].danger:hover { background: #a02b21; color: #fff; }
button[type=submit]:disabled {
    background: #f1f2f6;
    border: 1px solid #e6e8f0;
    color: #b6bcc9;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}

/* ============================== 验证码 ============================== */

.captcha-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.captcha-row input { width: 130px; margin-top: 0; }
.captcha-row img {
    height: 42px;
    width: auto;
    border-radius: 9px;
    border: 1px solid #d9ddec;
    cursor: pointer;
}
.captcha-refresh { font-size: 12px; color: #3d51b0; }

/* ============================== 登录 / 注册卡片 ============================== */

.auth-card {
    max-width: 430px;
    margin: 44px auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(31, 42, 88, .12);
    padding: 34px 34px 28px;
}
.auth-card h1 {
    margin: 0 0 8px;
    font-size: 23px;
    text-align: center;
    color: #2b3554;
    font-weight: 800;
    letter-spacing: .04em;
}
.auth-card h1::before { display: none; }
.auth-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #8b93a8;
}

/* ============================== 表格 ============================== */

.tbl-wrap { overflow-x: auto; border-radius: 12px; }
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
table.data-table th,
table.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eef0f6;
    text-align: left;
    vertical-align: top;
}
table.data-table th {
    background: #f8f9fd;
    color: #6a7288;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .04em;
    white-space: nowrap;
}
table.data-table tr:last-child td { border-bottom: 0; }
table.data-table tr:hover td { background: #fafbff; }
table.data-table td .hint { color: #9aa2b5; font-size: 12px; margin-top: 2px; }

/* ============================== 表单网格 ============================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
}
.form-grid label { margin-bottom: 0; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid .acts { margin-top: 10px; display: flex; gap: 10px; }

/* ============================== IP 管理 ============================== */

form.inline { display: inline; }
form.ip-add {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}
form.ip-add label { margin-bottom: 0; }

.endpoint { font-size: 13px; }
.api-list { margin: 8px 0 0; padding-left: 20px; line-height: 2; }
.api-list code { color: #33429c; }

/* ============================== 搜索行 ============================== */

.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-row input { width: 280px; }
.search-row .hint { color: #8b93a8; font-size: 12px; }

/* ============================== 危险区域 ============================== */

.danger-zone { border-left: 4px solid #c0392b; background: #fffaf8; }

/* ================================================================
 *  会员控制中心（member/* 专用布局：侧栏 + 顶栏 + 内容区）
 * ================================================================ */

body.member-body { font-size: 14.5px; }

.mlayout {
    display: grid;
    grid-template-columns: 236px 1fr;
    min-height: 100vh;
}

/* ---- 侧栏 ---- */
.msidebar {
    background: linear-gradient(175deg, #1d2b58 0%, #232f6b 60%, #2c3878 100%);
    color: #cdd6f4;
    padding: 26px 0 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.msidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px 160px at 90% -6%, rgba(201, 162, 94, .16), transparent 70%);
    pointer-events: none;
}
.mlogo {
    padding: 0 24px 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .2em;
    color: #fff;
}
.mlogo b { color: #c9a25e; }
.mlogo-sub {
    padding: 0 24px 22px;
    font-size: 11px;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, .42);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 14px;
}
.mnav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.mnav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 14px;
    border-radius: 11px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: background .15s, color .15s;
    position: relative;
}
.mnav-item .ico {
    width: 20px; text-align: center;
    font-size: 13px;
    opacity: .85;
    font-weight: 400;
}
.mnav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.mnav-item.cur {
    background: linear-gradient(135deg, rgba(61, 81, 176, .9), rgba(75, 60, 143, .9));
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
}
.mnav-item.cur .ico { color: #ffd9a0; opacity: 1; }
.mnav-item .cnt {
    margin-left: auto;
    font-size: 11px;
    background: rgba(201, 162, 94, .2);
    color: #ffd9a0;
    padding: 1px 8px;
    border-radius: 999px;
}
.msb-foot {
    margin-top: auto;
    padding: 18px 24px 6px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
    line-height: 1.9;
}
.msb-foot b { color: #ffd9a0; font-weight: 600; display: block; }

/* ---- 主区 ---- */
.mmain { min-width: 0; display: flex; flex-direction: column; }

.mtop {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e3e6f0;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.mtop-title { min-width: 0; }
.mtop-title h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
    color: #2b3554;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mtop-title .crumb {
    font-size: 10.5px;
    letter-spacing: .28em;
    color: #9aa2b5;
    text-transform: uppercase;
}
.mtop-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }

.mbal {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(51, 66, 156, .08), rgba(201, 162, 94, .1));
    border: 1px solid rgba(61, 81, 176, .18);
    color: #33429c;
    font-size: 12.5px;
    font-weight: 600;
    transition: box-shadow .15s, transform .15s;
}
.mbal b {
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #33429c;
}
.mbal:hover { box-shadow: 0 8px 18px -8px rgba(61, 81, 176, .4); transform: translateY(-1px); }
.mbal .u { color: #b98a3e; font-size: 12px; }

.muser { font-size: 13px; color: #6a7288; }
.muser b { color: #2b3554; font-weight: 700; }
.mout { font-size: 12.5px; color: #9aa2b5; padding: 6px 10px; border-radius: 8px; }
.mout:hover { color: #c0392b; background: #fff0ef; }

.mbody { padding: 26px 30px 60px; max-width: 1120px; width: 100%; margin: 0 auto; }

/* ---- 会员 hero（概览） ---- */
.mhero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    padding: 30px 32px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #1d2b58 0%, #2f3f82 52%, #4b3c8f 100%);
    box-shadow: 0 22px 48px -18px rgba(31, 42, 88, .55);
}
.mhero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(560px 240px at 88% -30%, rgba(201, 162, 94, .30), transparent 70%),
        radial-gradient(520px 280px at -12% 118%, rgba(96, 128, 255, .28), transparent 70%);
}
.mhero::after {
    content: '';
    position: absolute; inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 30px 30px;
}
.mhero-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.mhero-in h2 {
    margin: 0;
    font: 700 25px/1.3 Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
    letter-spacing: .02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.mhero-in .sub { font-size: 12.5px; color: #aab4dd; margin-top: 6px; }
.mhero-bal {
    margin-left: auto;
    text-align: right;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    padding: 14px 22px;
    backdrop-filter: blur(4px);
}
.mhero-bal .n {
    font-size: 28px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #ffd9a0;
    text-shadow: 0 2px 10px rgba(201, 162, 94, .4);
}
.mhero-bal .l { font-size: 11px; letter-spacing: .2em; color: #aab4dd; }

/* ---- 统计格 ---- */
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.mstat {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 6px 20px rgba(31, 42, 88, .06);
    border: 1px solid #eef0f6;
}
.mstat b {
    display: block;
    font-size: 21px;
    font-weight: 800;
    color: #33429c;
    font-variant-numeric: tabular-nums;
}
.mstat b.gold { color: #b98a3e; }
.mstat span { display: block; font-size: 12px; color: #8b93a8; margin-top: 2px; letter-spacing: .06em; }

/* ---- 数量选择器 ---- */
.stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #d9ddec;
    border-radius: 12px;
    overflow: hidden;
    background: #fbfcff;
}
.stepper button {
    width: 44px; height: 46px;
    border: 0;
    background: transparent;
    font-size: 20px;
    color: #3d51b0;
    cursor: pointer;
    transition: background .12s;
    font-weight: 600;
    line-height: 1;
}
.stepper button:hover { background: #f1f3fb; }
.stepper button:active { background: #e6e9f8; }
.stepper input {
    width: 74px;
    height: 46px;
    border: 0;
    border-left: 1.5px solid #d9ddec;
    border-right: 1.5px solid #d9ddec;
    border-radius: 0;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #33429c;
    background: #fff;
}
.stepper input:focus { box-shadow: none; border-color: #d9ddec; }

/* ---- 交易记录类型 ---- */
.txn-type {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.txn-type.recharge  { background: #e6f4e6; color: #1a7f37; }
.txn-type.buy_auth { background: #e8f4ff; color: #0958d9; }
.txn-type.buy_ip   { background: rgba(201, 162, 94, .14); color: #a4741f; }
.txn-amt { font-variant-numeric: tabular-nums; font-weight: 700; }
.txn-amt.plus  { color: #1a7f37; }
.txn-amt.minus { color: #c0392b; }

/* ---- 空状态 ---- */
.empty-box {
    text-align: center;
    color: #9aa2b5;
    padding: 42px 20px;
    font-size: 13.5px;
}
.empty-box .big { font-size: 15px; color: #6a7288; margin-bottom: 6px; }

/* ---- 充值表单大输入 ---- */
.recharge-input {
    font-size: 17px !important;
    letter-spacing: .12em;
    text-align: center;
    font-weight: 600;
    padding: 13px 14px !important;
}

/* ---- 响应式 ---- */
@media (max-width: 920px) {
    .mlayout { grid-template-columns: 1fr; }
    .msidebar {
        position: static;
        height: auto;
        padding: 16px 0 12px;
    }
    .mlogo, .mlogo-sub { padding-left: 20px; }
    .mlogo-sub { padding-bottom: 12px; margin-bottom: 8px; }
    .mnav { flex-direction: row; flex-wrap: wrap; padding: 0 16px; }
    .mnav-item { padding: 8px 13px; font-size: 13px; }
    .mnav-item .cnt { display: none; }
    .msb-foot { display: none; }
    .mtop { padding: 12px 18px; }
    .mbody { padding: 20px 18px 50px; }
    .mhero-in { gap: 16px; }
    .mhero-bal { margin-left: 0; text-align: left; }
}

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .project-list { grid-template-columns: 1fr; }
    form.ip-add { grid-template-columns: 1fr; }
    .wrap { padding: 0 14px; }
    .topbar .nav { gap: 12px; }
    .topbar .nav .user { display: none; }
    .mstats { grid-template-columns: repeat(2, 1fr); }
    .card { padding: 20px 18px; }
    .au-card { padding: 20px 18px; }
    .mhero { padding: 24px 20px; }
    .mhero-in h2 { font-size: 21px; }
}
