/* 前台样式 */
:root {
    --brand: #2f6bed;
    --brand-d: #2456d8;
    --ink: #16202e;
    --muted: #6b7684;
    --line: #e8ebf0;
    --line-2: #f1f3f7;
    --bg: #f6f7f9;
    --card: #ffffff;
    --ok: #18a058;
    --warn: #e8930c;
    --danger: #e5484d;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主体撑开剩余高度：内容短时页脚也钉在浏览器底部 */
.pg { flex: 1 0 auto; }
.hd { flex: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 头部 ---------------- */
.hd {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.hd-in { display: flex; align-items: center; height: 64px; gap: 24px; }

.hd-logo { font-size: 19px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }

.hd-logo i {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: var(--brand);
    display: inline-block;
}

.hd-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }

.hd-nav a {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 15px;
    color: var(--muted);
    white-space: nowrap;
}

.hd-nav a:hover { color: var(--brand); background: #f2f6ff; }
.hd-nav a.on { color: var(--brand); font-weight: 600; }
.hd-nav a svg { display: none; }
.hd-search { display: none; }

.hd-user { display: flex; align-items: center; gap: 10px; }

.hd-user .nm { font-size: 14px; color: var(--muted); }

.hd-menu { display: none; }

/* ---------------- 通用块 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    transition: all .15s;
}

.btn:hover { border-color: #cfd6e4; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); border-color: var(--brand-d); }

.btn-lg { height: 46px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 5px; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 5px;
}

/* 注意：.sec 总与 .wrap 一起用（class="wrap sec"），这里的 margin 会覆盖 .wrap 的，
   水平方向必须保留 auto，否则 1200 的容器会被贴到左边 */
.sec { margin: 32px auto; }

/* 内容不足一屏时：让带 .sec-fill 的区块撑到底部，内容背景跟着延伸到页脚 */
.pg:has(> .sec-fill) { display: flex; flex-direction: column; }
.sec-fill { flex: 1 0 auto; display: flex; flex-direction: column; }
.sec-fill > .article { flex: 1; }

.sec-hd { display: flex; align-items: baseline; margin-bottom: 16px; }

.sec-hd h2 { margin: 0; font-size: 20px; font-weight: 700; }
.sec-hd .more { margin-left: auto; font-size: 14px; color: var(--muted); }
.sec-hd .more:hover { color: var(--brand); }

/* ---------------- 首屏 ---------------- */
.hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    padding: 38px 0 36px;
    text-align: center;
}

.hero h1 { margin: 0 0 10px; font-size: 30px; font-weight: 700; letter-spacing: -.4px; }
.hero p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

.hero-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }

.hero-search input {
    flex: 1;
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 5px;
    outline: none;
    font-size: 15px;
    background: #fafbfd;
}

.hero-search input:focus { border-color: var(--brand); background: #fff; }

.hero-stats { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats .n { font-size: 24px; font-weight: 700; }
.hero-stats .t { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* ---------------- 论坛式列表 ---------------- */
.rlist {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
}

.rrow {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line-2);
}

.rrow:last-child { border-bottom: 0; }
.rrow:hover { background: #fffaf2; }
.rrow:hover .rt { text-decoration: underline; }

.rk {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
    background: #ffc84d;
    color: #d35400;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.rk i { font-style: normal; font-size: 11px; color: #fff; font-weight: 700; }
.rk.rk-top { background: var(--brand); color: #fff; }
.rk.rk-top i { color: #fff; }

.rt {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #cc0000;
    font-size: 15px;
    font-weight: 600;
}

.rp { flex: none; color: var(--danger); font-weight: 700; font-size: 14px; }
.rp.free { color: var(--ok); font-weight: 600; font-size: 13px; }

.ro {
    flex: none;
    padding: 1px 7px;
    border-radius: 5px;
    background: #eaf7ef;
    color: var(--ok);
    font-size: 12px;
}

.rd { flex: none; color: var(--muted); font-size: 13px; }

.rc { flex: none; color: #333; font-size: 14px; font-weight: 600; }

/* ---------------- 资源卡 ---------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    display: flex;
    flex-direction: column;
}

.item:hover {
    transform: translateY(-3px);
    border-color: #dbe4f5;
    box-shadow: 0 10px 24px rgba(22, 32, 46, .08);
}

.item .thumb {
    height: 150px;
    background: linear-gradient(135deg, #eef2f8, #e3e9f4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa6b8;
    font-size: 13px;
    overflow: hidden;
}

.item .thumb img { width: 100%; height: 100%; object-fit: cover; }

.item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }

.item .tt {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.item .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: auto; }

.price { color: var(--danger); font-weight: 700; font-size: 16px; }
.price.free { color: var(--ok); font-size: 14px; font-weight: 600; }

.tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 12px;
    background: #f2f4f8;
    color: var(--muted);
}

.tag.paid { background: #fff1f0; color: var(--danger); }
.tag.owned { background: #eaf7ef; color: var(--ok); }

/* ---------------- 详情 ---------------- */
.article { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 32px 36px 40px; }

.article h1 { margin: 0 0 10px; font-size: 27px; line-height: 1.4; font-weight: 700; }

.article .info { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.body-text { font-size: 16px; line-height: 1.9; color: #2a3444; }
.body-text img { max-width: 100%; height: auto; border-radius: 5px; }
.body-text p { margin: 0 0 16px; }
.body-text h2, .body-text h3 { margin: 24px 0 12px; }
.body-text ul, .body-text ol { padding-left: 24px; margin: 0 0 16px; }
.body-text pre { background: #f6f8fb; padding: 14px 16px; border-radius: 5px; overflow-x: auto; }
.body-text blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 3px solid var(--brand); background: #f7f9fd; color: #5a6474; }

.locked {
    margin-top: 24px;
    border: 1px dashed #dbe0ea;
    border-radius: 5px;
    background: #fafbfd;
    padding: 34px 28px;
    text-align: center;
}

.locked h3 { margin: 0 0 8px; font-size: 18px; }
.locked p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ---------------- 侧栏 ---------------- */
.cols { display: flex; gap: 24px; align-items: flex-start; }
.cols .main { flex: 1; min-width: 0; }
.cols .side { width: 300px; flex: 0 0 300px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 18px 20px; margin-bottom: 18px; }
.side-card h3 { margin: 0 0 12px; font-size: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; }

.side-list li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.side-list li:last-child { border-bottom: 0; }
.side-list li a:hover { color: var(--brand); }

/* ---------------- 表单 ---------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 30px 32px; max-width: 460px; margin: 40px auto; }

.form-card h2 { margin: 0 0 6px; font-size: 22px; }
.form-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }

.fld { margin-bottom: 14px; }

.fld label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }

.fld input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    outline: none;
}

.fld input:focus { border-color: var(--brand); }

.fld .code { display: flex; gap: 10px; }
.fld .code input { flex: 1; }
.fld .code img { height: 42px; width: 116px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; background: #fafbfd; }

.msg { min-height: 20px; font-size: 13px; color: var(--danger); margin: 4px 0 10px; }

.form-foot { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.form-foot a { color: var(--brand); }

/* ---------------- 会员中心 ---------------- */
.uc { display: flex; gap: 24px; align-items: flex-start; }

.uc-menu { width: 200px; flex: 0 0 200px; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }

.uc-menu a { display: block; padding: 12px 18px; font-size: 15px; border-left: 3px solid transparent; }
.uc-menu a:hover { background: #f7f9fd; }
.uc-menu a.on { color: var(--brand); font-weight: 600; background: #f2f6ff; border-left-color: var(--brand); }

.uc-main { flex: 1; min-width: 0; }
.uc-card { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 22px 24px; margin-bottom: 18px; }
.uc-card h3 { margin: 0 0 14px; font-size: 16px; }

.uc-head { display: flex; align-items: center; gap: 16px; }
.uc-head .av {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.uc-stat { display: flex; gap: 14px; flex-wrap: wrap; }

.uc-stat .box {
    flex: 1;
    min-width: 120px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 14px 16px;
}

.uc-stat .n { font-size: 22px; font-weight: 700; }
.uc-stat .t { font-size: 13px; color: var(--muted); }

table.tb { width: 100%; border-collapse: collapse; }

table.tb th, table.tb td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 14px; }
table.tb th { background: #fafbfd; color: var(--muted); font-weight: 500; }
table.tb tr:hover td { background: #fafbfd; }
table.tb .muted { color: var(--muted); }

.pill { display: inline-block; padding: 1px 9px; border-radius: 5px; font-size: 12px; background: #f0f2f7; color: var(--muted); }
.pill.ok { background: #e8f6ee; color: var(--ok); }
.pill.warn { background: #fdf3e2; color: #b7761a; }
.pill.danger { background: #fdecec; color: var(--danger); }

.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 18px; }

.pager a, .pager span {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
}

.pager span.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------------- 下单页 ---------------- */
.buy { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 28px 30px; max-width: 620px; margin: 40px auto; }

.buy h2 { margin: 0 0 18px; font-size: 20px; }

.buy-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.buy-row .v { color: var(--muted); }
.buy-row.total .v { color: var(--danger); font-weight: 700; font-size: 19px; }

.pay-way { margin: 20px 0; }

.pay-way label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 12px 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.pay-way label.on { border-color: var(--brand); background: #f5f8ff; }
.pay-way label .d { font-size: 13px; color: var(--muted); }

.offline-info { background: #fafbfd; border: 1px dashed #dbe0ea; border-radius: 5px; padding: 14px 16px; font-size: 14px; color: #55606f; white-space: pre-wrap; }

/* ---------------- 页脚 ---------------- */
.ft { background: #16202e; color: #9aa6b8; margin-top: 48px; padding: 40px 0 28px; font-size: 14px; }

.ft-in { display: flex; gap: 40px; flex-wrap: wrap; }
.ft-in .col { min-width: 160px; }
.ft-in h4 { color: #fff; font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.ft-in a:hover { color: #fff; }

.ft-bot { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 18px; font-size: 13px; text-align: center; }

/* 提示条 */
.toast {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    background: #16202e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 15px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, top .2s;
}

.toast.on { opacity: 1; top: 34px; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }

@media (max-width: 1000px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .cols .side { display: none; }
}

/* 会员中心表格 → 卡片（7 列表格在 768~980 这档会撑破侧栏右边的主栏，
   所以断点取 980 而不是 760；PC 端一律不变） */
@media (max-width: 980px) {
    table.tb, table.tb tbody { display: block; width: 100%; }
    table.tb thead { display: none; }
    table.tb tr {
        display: block;
        border: 1px solid var(--line);
        border-radius: 5px;
        padding: 10px 14px;
        margin-bottom: 12px;
        background: #fff;
    }
    table.tb tr:hover td { background: transparent; }
    table.tb td {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 0 !important;
        border-bottom: 0;
        font-size: 14px;
        word-break: break-all;
    }
    table.tb td[data-lb]::before {
        content: attr(data-lb);
        flex: none;
        width: 50px;
        color: var(--muted);
        font-size: 13px;
    }
    .tb-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
    .pager { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 760px) {
    .wrap { padding: 0 14px; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 28px 0 26px; }
    .hero h1 { font-size: 25px; }
    .hero-search { max-width: none; }
    .rrow { padding: 8px 12px; }
    .rd { display: none; }
    .rc { font-size: 13px; }
    .rt { font-size: 14px; }
    .btn-lg { height: 42px; padding: 0 20px; }
    .article { padding: 22px 18px 28px; }
    .article h1 { font-size: 22px; }
    .uc { flex-direction: column; }
    .uc-menu { width: 100%; flex: none; display: flex; overflow-x: auto; }
    .uc-menu a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
    .uc-menu a.on { border-left: 0; border-bottom-color: var(--brand); }
    .form-card, .buy { padding: 22px 18px 24px; }

    /* 头部自适应：单行 logo + 登录|注册 文字链 + 汉堡按钮，导航收进弹窗 */
    .hd-in { height: 56px; gap: 12px; }
    .hd-logo { flex: none; white-space: nowrap; font-size: 17px; }
    .hd-logo i { width: 22px; height: 22px; }
    .hd-user { margin-left: auto; gap: 10px; flex: none; white-space: nowrap; }
    .hd-user .nm { font-size: 13px; }
    .hd-user .btn {
        height: auto;
        padding: 0;
        border: 0;
        background: none;
        font-size: 15px;
        color: var(--ink);
    }
    .hd-user .btn + .btn { position: relative; padding-left: 12px; }
    .hd-user .btn + .btn::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 13px;
        background: #d3d9e2;
    }
    .hd-nav {
        display: none;
        position: absolute;
        left: auto;
        right: 10px;
        width: min(280px, calc(100vw - 20px));
        top: calc(100% + 8px);
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 18px 44px rgba(15, 23, 42, .22), 0 0 0 1px rgba(15, 23, 42, .04);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 50;
    }
    .hd.open .hd-nav { display: flex; }
    .hd.open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 40;
    }
    .hd-nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 12px;
        font-size: 15px;
        color: var(--ink);
        border-radius: 8px;
    }
    .hd-nav a svg {
        display: block;
        flex: none;
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .hd-nav a:hover { background: #f5f7fb; }
    .hd-nav a.on { background: #eef4ff; color: var(--brand); }
    .hd-search {
        display: flex;
        gap: 8px;
        margin-top: 6px;
        padding: 12px 4px 2px;
        border-top: 1px solid var(--line-2);
    }
    .hd-search input {
        flex: 1;
        min-width: 0;
        height: 38px;
        padding: 0 12px;
        border: 1px solid #d8dee8;
        border-radius: 8px;
        font-size: 14px;
        color: var(--ink);
        background: #fff;
    }
    .hd-search input:focus { outline: none; border-color: var(--brand); }
    .hd-search button {
        flex: none;
        height: 38px;
        padding: 0 18px;
        border: 0;
        border-radius: 8px;
        background: var(--brand);
        color: #fff;
        font-size: 14px;
        cursor: pointer;
    }
    .hd-menu {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        cursor: pointer;
    }
    .hd-menu i {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: var(--ink);
        transition: transform .2s, opacity .2s;
    }
    .hd.open .hd-menu i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .hd.open .hd-menu i:nth-child(2) { opacity: 0; }
    .hd.open .hd-menu i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* 会员中心：统计卡两列 */
    .uc-stat { gap: 10px; }
    .uc-stat .box { flex: 1 1 40%; min-width: 0; padding: 12px 14px; }
}

/* 窄屏：右侧【栏目名】让位，保证标题有足够宽度 */
@media (max-width: 520px) {
    .rc { display: none; }
    .rrow { padding: 8px 10px; }
    .rk { height: 19px; padding: 0 5px; font-size: 11px; }
}

@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; }
}

/* ---------------- 登录 / 注册弹窗 ---------------- */
.auth-mask {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 36, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: authFade .16s ease;
}
.auth-mask[hidden] { display: none; }

.auth-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 26px 26px 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 36, .28);
    animation: authPop .18s ease;
}

.auth-x {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    border-radius: 6px;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.auth-x:hover { background: #f2f4f8; color: var(--ink); }

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    background: #f2f4f8;
    border-radius: 8px;
}
.auth-tab {
    flex: 1;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
}
.auth-tab.on {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 23, 36, .08);
}

.auth-pane { display: none; }
.auth-pane.on { display: block; }

@keyframes authFade { from { opacity: 0; } }
@keyframes authPop { from { transform: translateY(14px) scale(.98); opacity: 0; } }

/* ---------------- 记住我 ---------------- */
.auth-rm,
.rm-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}
.auth-rm input,
.rm-row input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2f6bed;
    cursor: pointer;
}

/* ---------------- 美化确认弹窗 ---------------- */
.cfrm-mask {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(15, 23, 36, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: authFade .16s ease;
}
.cfrm-mask.out { animation: cfrmFadeOut .16s ease forwards; }

.cfrm {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 36, .25);
    animation: authPop .18s ease;
}
.cfrm-mask.out .cfrm { animation: cfrmPopOut .16s ease forwards; }

.cfrm-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    background: #eef3ff;
    color: #2f6bed;
}
.cfrm-icon.danger { background: #feecec; color: #e5484d; }

.cfrm-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink, #1c2333);
    margin-bottom: 8px;
}
.cfrm-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted, #6b7684);
    margin-bottom: 22px;
}

.cfrm-btns { display: flex; gap: 10px; }
.cfrm-btn {
    flex: 1;
    height: 42px;
    border-radius: 9px;
    border: 1px solid #e2e6ee;
    background: #fff;
    font-size: 15px;
    color: var(--ink, #1c2333);
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.cfrm-btn:hover { background: #f5f7fb; }
.cfrm-btn:active { transform: scale(.97); }
.cfrm-yes { background: #2f6bed; border-color: #2f6bed; color: #fff; }
.cfrm-yes:hover { background: #2858c8; }
.cfrm-yes.danger { background: #e5484d; border-color: #e5484d; }
.cfrm-yes.danger:hover { background: #cf3a3f; }

@keyframes cfrmFadeOut { to { opacity: 0; } }
@keyframes cfrmPopOut { to { transform: translateY(10px) scale(.97); opacity: 0; } }
