/* 微信用户端统一主题 —— 延续服务页：黄色顶栏、浅灰背景、白色卡片、黄色主按钮 */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/static/fonts/poppins-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/static/fonts/poppins-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/static/fonts/poppins-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/static/fonts/poppins-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/static/fonts/poppins-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --yellow: #04a79d;
    --yellow-deep: #038f86;
    --yellow-pale: rgba(4, 167, 157, .14);
    --ink: #12171d;
    --ink-2: #333333;
    --muted: #666666;
    --muted-2: #8a929c;
    --line: #e2e6ec;
    --bg: #f2f4f7;
    --panel: #FFFFFF;
    --orange: #04a79d;
    --green: #2e7d32;
    --red: #e74c3c;
    --font: "Segoe UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", Tahoma, Geneva, Verdana, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg) !important;
    color: var(--ink-2) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

svg {
    display: block;
    flex-shrink: 0;
}

img {
    display: block;
    max-width: 100%;
}

[v-cloak] {
    display: none !important;
}

/* ---------- 共用顶栏 ---------- */
.wx-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    padding-top: 10px;
    background: var(--bg);
}

.wx-topbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: calc(100% - 40px);
    max-width: 1400px;
    height: 58px;
    margin: 0 auto;
    padding: 0 8px 0 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: #12171d;
    box-shadow: 0 10px 30px rgba(11, 18, 32, .16);
}

.wx-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #f4f7f8;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.wx-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--yellow);
    color: #fff;
    box-shadow: none;
}

.wx-brand-mark svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wx-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.wx-top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #e9eef0;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.wx-top-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wx-top-action:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
}

@media (max-width: 600px) {
    .wx-top-action {
        width: 36px;
        padding: 0;
    }

    .wx-top-action span {
        display: none;
    }
}

/* ---------- 通用页面 ---------- */
.wx-page {
    min-height: 100vh;
    background: var(--bg);
}

.wx-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 20px 96px;
}

.wx-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.wx-page-title {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    color: var(--ink-2);
    letter-spacing: -.02em;
}

.wx-page-sub {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 13px;
}

.wx-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #E2E2E2;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 13.5px;
    white-space: nowrap;
}

.wx-back:hover {
    border-color: var(--yellow);
    color: #038f86;
}

.wx-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 2px 15px rgba(0, 0, 0, .05);
}

.wx-card + .wx-card {
    margin-top: 14px;
}

.wx-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-2);
}

.wx-card-title::before {
    content: "";
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: var(--yellow);
}

.wx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--yellow);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}

.wx-btn:hover {
    background: var(--yellow-deep);
}

.wx-btn:active {
    transform: translateY(1px);
}

.wx-btn-dark {
    background: #12171d;
    color: #fff;
}

.wx-btn-dark:hover {
    background: #0b0f13;
}

.wx-btn-ghost {
    background: #f5f7fa;
    color: #333;
    border: 1px solid var(--line);
}

.wx-btn-ghost:hover {
    background: #eceff4;
}

.wx-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.wx-btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 13.5px;
}

.wx-btn-block {
    width: 100%;
}

.wx-input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    outline: none;
    font-size: 15px;
    color: #333;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

textarea.wx-input {
    height: auto;
    min-height: 96px;
    padding: 11px 13px;
    resize: vertical;
}

.wx-input:focus {
    background: #fff;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .16);
}

.wx-input::placeholder {
    color: #A6A6A6;
}

.wx-badge {
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.wx-badge-yellow {
    background: var(--yellow-pale);
    color: #038f86;
}

.wx-badge-green {
    background: #E8F7EE;
    color: #15803D;
}

.wx-badge-gray {
    background: #F0F0F0;
    color: #777;
}

.wx-badge-red {
    background: #FFE6E2;
    color: #C2410C;
}

.wx-empty {
    padding: 52px 20px;
    text-align: center;
    color: var(--muted-2);
    font-size: 14px;
}

/* ---------- 弹窗 ---------- */
.wx-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.wx-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.wx-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F5F5F5;
    color: #666;
}

.wx-modal-title {
    margin: 0 0 16px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-2);
}

.wx-modal-qr {
    padding: 12px;
    border-radius: 12px;
    background: #F7F7F7;
    text-align: center;
}

.wx-modal-qr img {
    width: 100%;
    border-radius: 8px;
}

.wx-modal-qr.is-missing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #999;
    font-size: 13px;
}

.wx-modal-qr.is-missing::before {
    content: "二维码暂不可用";
}

.wx-modal-tip {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- 加载遮罩 ---------- */
.wx-loading-mask {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(244, 244, 245, .74);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #555;
    font-size: 14px;
}

.wx-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, .08);
    border-top-color: #111;
    border-radius: 50%;
    animation: wx-spin .8s linear infinite;
}

@keyframes wx-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- 会员中心 ---------- */
.member-hero {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #04a79d 0%, #038f86 100%);
    color: #fff;
}

.member-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 220px;
}

.member-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.member-avatar svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-meta {
    min-width: 0;
}

.member-meta strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta-line {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

.member-secret {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .72);
    white-space: nowrap;
    overflow: hidden;
}

.member-secret code {
    font-family: "SFMono-Regular", Consolas, monospace;
    color: #fff;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-copy {
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.member-copy:hover {
    background: rgba(255, 255, 255, .24);
}

.member-package {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(4, 167, 157, .2);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(4, 167, 157, .1), rgba(4, 167, 157, .03));
}

.member-package-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    color: #038f86;
    box-shadow: 0 2px 8px rgba(4, 167, 157, .12);
}

.member-package-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-package-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.member-package-info span {
    color: #038f86;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

.member-package-info strong {
    color: #333;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-package-time {
    flex-shrink: 0;
    margin-left: auto;
    color: #4d5f5e;
    font-size: 12px;
    white-space: nowrap;
}

.member-balance {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.member-stat span {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .72);
    white-space: nowrap;
}

.member-stat strong {
    display: block;
    margin-top: 3px;
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.member-stat.primary strong {
    color: #fff;
}

.member-charge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 8px;
    background: #fff;
    color: #038f86;
    font-size: 13.5px;
    font-weight: 700;
}

.member-charge-btn:hover {
    background: #e9f7f5;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.member-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-align: left;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.member-action:hover {
    border-color: rgba(4, 167, 157, .35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
    transform: translateY(-1px);
}

.member-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(4, 167, 157, .1);
    color: #038f86;
}

.member-action-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-action-main {
    flex: 1;
    min-width: 0;
}

.member-action-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
}

.member-action-desc {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-action-arrow {
    width: 16px;
    height: 16px;
    color: #C6C6C6;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.member-logs {
    margin-top: 14px;
}

.member-log-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #F2F2F2;
}

.member-log-row:last-child {
    border-bottom: 0;
}

.member-log-ip {
    font-size: 13.5px;
    color: #333;
}

.member-log-time {
    font-size: 12px;
    color: var(--muted-2);
    white-space: nowrap;
}

.member-log-ua {
    margin-top: 3px;
    font-size: 12px;
    color: #ABABAB;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-form .wx-field + .wx-field {
    margin-top: 12px;
}

.wx-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ---------- 充值 ---------- */
.charge-section {
    margin-bottom: 22px;
}

.charge-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
}

.charge-title::before {
    content: "";
    width: 4px;
    height: 15px;
    border-radius: 2px;
    background: var(--yellow);
}

.charge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.charge-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.charge-card {
    position: relative;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.charge-card:hover {
    border-color: rgba(4, 167, 157, .35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.charge-card.is-active {
    border-color: var(--yellow);
    background: #f2fbfa;
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .14);
}

.charge-price {
    font-size: 24px;
    font-weight: 800;
    color: #04a79d;
    line-height: 1.2;
}

.charge-price em {
    font-style: normal;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.charge-credit {
    margin-top: 5px;
    font-size: 13px;
    color: var(--muted);
}

.charge-bonus {
    display: inline-flex;
    margin-top: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(4, 167, 157, .12);
    color: #038f86;
    font-size: 11.5px;
    font-weight: 600;
}

.charge-pay-bar {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.charge-pay-btn {
    width: 100%;
    max-width: 420px;
    height: 48px;
    border-radius: 8px;
    background: var(--yellow);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(4, 167, 157, .22);
    transition: background-color .2s ease;
}

.charge-pay-btn:hover {
    background: var(--yellow-deep);
}

.charge-pay-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.charge-tips {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--muted-2);
}

.charge-desc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.charge-desc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    color: #555;
}

.charge-desc-row span:last-child {
    color: #038f86;
    white-space: nowrap;
}

.charge-summary {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: #666;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- 记录页 ---------- */
.record-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #04a79d 0%, #038f86 100%);
    color: #fff;
}

.record-user .member-avatar {
    width: 42px;
    height: 42px;
}

.record-user .member-avatar svg {
    width: 21px;
    height: 21px;
}

.record-user-info {
    flex: 1;
    min-width: 0;
}

.record-user-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-user-info span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

.record-user-credit {
    text-align: right;
}

.record-user-credit span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .72);
}

.record-user-credit strong {
    display: block;
    margin-top: 2px;
    font-size: 17px;
    font-weight: 700;
    color: var(--yellow);
}

.record-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.record-card + .record-card {
    margin-top: 10px;
}

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

.record-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-time {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted-2);
}

.record-side {
    text-align: right;
}

.record-amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--orange);
}

.record-status {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}

.record-status.payed {
    background: #E8F7EE;
    color: #15803D;
}

.record-status.not {
    background: #F0F0F0;
    color: #888;
}

.record-loadmore {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.record-end {
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted-2);
}

/* ---------- 账单核对 ---------- */
.bill-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.bill-tabs button {
    flex: 1;
    height: 36px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #666;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.bill-tabs button.is-active {
    background: rgba(4, 167, 157, .12);
    color: #038f86;
}

.bill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
}

.bill-icon.is-in {
    background: #e8f7ee;
    color: #15803d;
}

.bill-icon.is-out {
    background: #fff1e8;
    color: #c2410c;
}

.bill-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 4px;
    font-size: 11.5px;
    color: #a0a7b0;
}

.record-amount em {
    margin-left: 2px;
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted-2);
}

.record-amount.is-plus {
    color: #15803d;
}

.record-amount.is-minus {
    color: #c2410c;
}

/* ---------- IP 白名单页 ---------- */
.whiteip-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.whiteip-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.whiteip-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f5f7fa;
}

.whiteip-switch button {
    height: 28px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #777;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.whiteip-switch button.is-active {
    background: var(--yellow);
    color: #fff;
    font-weight: 600;
}

.whiteip-hint {
    margin-left: auto;
    font-size: 12px;
    color: #8a929c;
}

.whiteip-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #777;
}

textarea.whiteip-textarea {
    min-height: 150px;
    resize: vertical;
}

.whiteip-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.whiteip-actions .wx-btn {
    width: 100%;
}

/* ---------- 历史订单页 ---------- */
.order-head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 600px) {
    .page-orders .wx-page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .page-orders .order-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ---------- 帮助页 ---------- */
.help-card h3 {
    margin: 14px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
}

.help-card h3:first-of-type {
    margin-top: 0;
}

.help-card p,
.help-card li {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.help-card ul {
    margin: 6px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* ---------- 老页面浅色覆盖（会员/订单/下单等） ---------- */
#app {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--ink-2) !important;
}

#app main.container {
    padding-top: 20px !important;
    padding-bottom: 96px !important;
}

@media (min-width: 1025px) {
    #app main.container {
        padding-bottom: 40px !important;
    }
}

#app main {
    color: var(--ink-2);
}

#app main .text-white {
    color: var(--ink-2) !important;
}

#app main .text-gray-200 {
    color: #2B2B2B !important;
}

#app main .text-gray-300 {
    color: #444 !important;
}

#app main .text-gray-400 {
    color: #777 !important;
}

#app main .text-gray-500 {
    color: #999 !important;
}

#app main .text-gray-600 {
    color: #8a929c !important;
}

#app main .text-green-300,
#app main .text-green-400,
#app main .text-green-500 {
    color: #038f86 !important;
}

#app main .text-yellow-400 {
    color: #d97706 !important;
}

#app main .text-blue-400 {
    color: #2563EB !important;
}

#app main .text-red-400 {
    color: #DC2626 !important;
}

#app main .bg-gray-900,
#app main .bg-gray-900\/50,
#app main .bg-gray-900\/80,
#app main .bg-gray-900\/95 {
    background-color: #fff !important;
    border-color: var(--line) !important;
}

#app main .bg-gray-800,
#app main .bg-gray-800\/50,
#app main .bg-gray-800\/70,
#app main .bg-gray-800\/80 {
    background-color: #f5f7fa !important;
    border-color: var(--line) !important;
}

#app main .bg-gray-700 {
    background-color: #eceff4 !important;
}

#app main .bg-gray-600 {
    background-color: #12171d !important;
    color: #fff !important;
}

#app main pre {
    font-size: 14px;
    line-height: 1.75;
}

/* 订单页细化 */
#app main .order-page-title {
    font-size: 23px;
    font-weight: 700;
    color: var(--ink-2) !important;
    letter-spacing: -.02em;
}

#app main .order-action {
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: #333 !important;
    border-radius: 8px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    font-size: 13.5px !important;
}

#app main .order-action svg {
    color: #038f86 !important;
}

#app main .order-action:hover {
    border-color: var(--yellow) !important;
    color: #038f86 !important;
    background: rgba(4, 167, 157, .04) !important;
}

#app main .order-service-name {
    color: var(--ink-2) !important;
    font-size: 15px;
}

#app main .border-gray-600,
#app main .border-gray-700,
#app main .border-gray-800,
#app main .border-gray-800\/50 {
    border-color: var(--line) !important;
}

#app main .border-green-500,
#app main .border-green-500\/20,
#app main .border-green-500\/50 {
    border-color: rgba(4, 167, 157, .2) !important;
}

#app main .bg-green-500 {
    background-color: var(--yellow) !important;
    color: #fff !important;
}

#app main .hover\:bg-green-600:hover {
    background-color: var(--yellow-deep) !important;
}

#app main .bg-green-500\/10 {
    background-color: rgba(4, 167, 157, .08) !important;
}

#app main .bg-green-500\/20 {
    background-color: rgba(4, 167, 157, .12) !important;
}

#app main .bg-green-500\/30 {
    background-color: rgba(4, 167, 157, .18) !important;
}

#app main .hover\:bg-green-500\/20:hover {
    background-color: rgba(4, 167, 157, .16) !important;
}

#app main .hover\:bg-green-500\/30:hover {
    background-color: rgba(4, 167, 157, .22) !important;
}

#app main .hover\:border-green-500\/20:hover,
#app main .hover\:border-green-500\/50:hover {
    border-color: rgba(4, 167, 157, .35) !important;
}

#app main input:not([type="checkbox"]):not([type="radio"]),
#app main textarea,
#app main select {
    background-color: #fff !important;
    border-color: var(--line) !important;
    color: #333 !important;
}

#app main input:focus,
#app main textarea:focus,
#app main select:focus {
    border-color: var(--yellow) !important;
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .16);
    outline: none;
}

#app main input::placeholder,
#app main textarea::placeholder {
    color: #a6a6a6 !important;
}

#app main input[type="checkbox"] {
    accent-color: var(--yellow);
}

#app main .hover\:text-white:hover {
    color: #038f86 !important;
}

#app main .bg-black\/60 {
    background-color: rgba(0, 0, 0, .5) !important;
}

/* 弹窗浅色化 */
#app .fixed .bg-gray-900 {
    background-color: #fff !important;
    border-color: var(--line) !important;
}

#app .fixed .bg-gray-900 .text-white {
    color: var(--ink-2) !important;
}

#app .fixed .bg-gray-900 .text-gray-400 {
    color: #777 !important;
}

#app .fixed .bg-gray-900 .text-gray-500 {
    color: #999 !important;
}

#app .fixed .bg-gray-900 .text-green-400 {
    color: #038f86 !important;
}

#app .fixed .bg-gray-900 .bg-gray-800,
#app .fixed .bg-gray-900 .bg-gray-800\/50 {
    background-color: #f5f7fa !important;
}

#app .fixed .bg-gray-900 input:not([type="checkbox"]):not([type="radio"]),
#app .fixed .bg-gray-900 textarea,
#app .fixed .bg-gray-900 select {
    background-color: #fff !important;
    border-color: var(--line) !important;
    color: #333 !important;
}

#app .fixed .bg-gray-900 .bg-green-500 {
    background-color: var(--yellow) !important;
    color: #fff !important;
}

#app .fixed .hover\:text-white:hover {
    color: #038f86 !important;
}

/* 订单页固定选择条 */
#app .bg-gray-900\/90 {
    background-color: #fff !important;
    border-color: var(--line) !important;
}

#app .bg-gray-900\/90 .text-gray-300 {
    color: #444 !important;
}

#app .bg-gray-900\/90 .text-gray-600 {
    color: #AAA !important;
}

#app .bg-gray-900\/90 .bg-gray-700 {
    background-color: #E6E6E6 !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .wx-topbar {
        background: #12171d;
        padding-top: env(safe-area-inset-top);
    }

    .wx-topbar-inner {
        width: 100%;
        max-width: 100%;
        height: 56px;
        padding: 0 16px;
        gap: 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .wx-brand {
        font-size: 18px;
    }

    .wx-brand-mark {
        width: 31px;
        height: 31px;
    }

    .wx-container {
        padding: 14px 14px 88px;
    }

    .wx-page-title {
        font-size: 19px;
    }

    .member-hero {
        padding: 16px;
        gap: 14px;
    }

    .member-balance {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .22);
    }

    .member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .member-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 13px 13px 12px;
    }

    .member-action:hover {
        border-color: var(--line);
        box-shadow: none;
        transform: none;
    }

    .member-action-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .member-action-icon svg {
        width: 17px;
        height: 17px;
    }

    .member-action-main {
        width: 100%;
    }

    .member-action-title {
        font-size: 14px;
        line-height: 1.35;
    }

    .member-action-desc {
        margin-top: 3px;
        font-size: 11.5px;
        line-height: 1.4;
    }

    .member-action-arrow {
        display: none;
    }

    .member-log-ua {
        max-width: 220px;
    }

    .charge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .wx-container {
        padding: 12px 12px 86px;
    }

    .member-secret code {
        max-width: 150px;
    }

    .wx-card {
        padding: 15px;
    }

    .member-action {
        padding: 12px;
    }

    .member-balance {
        gap: 10px;
    }

    .member-stat strong {
        font-size: 17px;
    }
}

/* ---------- 桌面左侧菜单栏（全站统一） ---------- */
.wx-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.wx-shell {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.wx-shell-main {
    flex: 1;
    min-width: 0;
}

.wx-shell .wx-container {
    margin: 0;
    padding: 0;
}

.wx-shell .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wx-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    flex: 0 0 248px;
    width: 248px;
    height: calc(100vh - 100px);
    min-height: 560px;
    padding: 20px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
    overflow-y: auto;
    scrollbar-width: none;
    transition: flex-basis .22s ease, width .22s ease, padding .22s ease;
}

.wx-sidebar::-webkit-scrollbar {
    display: none;
}

.wx-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    height: 26px;
    margin-bottom: 6px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #9aa2ac;
    font-size: 12px;
    cursor: pointer;
    transition: color .18s ease;
}

.wx-sidebar-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.wx-sidebar-toggle:hover {
    color: #038f86;
}

.is-sidebar-collapsed .wx-sidebar {
    flex: 0 0 78px;
    width: 78px;
    padding: 16px 10px;
}

.is-sidebar-collapsed .wx-sidebar-toggle {
    justify-content: center;
}

.is-sidebar-collapsed .wx-sidebar-toggle span {
    display: none;
}

.is-sidebar-collapsed .wx-sidebar-toggle svg {
    transform: rotate(180deg);
}

.is-sidebar-collapsed .wx-sidebar-profile {
    justify-content: center;
}

.is-sidebar-collapsed .wx-sidebar-package,
.is-sidebar-collapsed .wx-sidebar-balance,
.is-sidebar-collapsed .wx-sidebar-meta,
.is-sidebar-collapsed .wx-sidebar-label {
    display: none;
}

.is-sidebar-collapsed .wx-side-link {
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
}

.is-sidebar-collapsed .wx-side-link svg {
    width: 20px;
    height: 20px;
}

.is-sidebar-collapsed .wx-side-arrow {
    display: none;
}

.is-sidebar-collapsed .wx-side-logout {
    margin-top: auto;
}

.wx-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wx-sidebar-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f7fa;
    color: #8a929c;
    box-shadow: 0 0 0 3px rgba(4, 167, 157, .1);
}

.wx-sidebar-avatar svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wx-sidebar-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wx-sidebar-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.wx-sidebar-meta strong {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-sidebar-meta span {
    font-size: 12px;
    color: #8a929c;
    white-space: nowrap;
}

.wx-sidebar-package {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(4, 167, 157, .18);
    border-radius: 10px;
    background: rgba(4, 167, 157, .06);
}

.wx-sidebar-package-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.wx-sidebar-package-label {
    color: #038f86;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
}

.wx-sidebar-package strong {
    color: #333;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wx-sidebar-package-time {
    color: #8a929c;
    font-size: 10.5px;
    white-space: nowrap;
}

.wx-sidebar-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f5f7fa;
}

.wx-sidebar-balance-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.wx-sidebar-balance-info span {
    width: 100%;
    font-size: 12px;
    color: #8a929c;
    white-space: nowrap;
}

.wx-sidebar-balance-info strong {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.wx-sidebar-balance > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 32px;
    margin-left: auto;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--yellow);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.wx-sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.wx-sidebar-label {
    margin: 14px 12px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #9aa3ad;
    letter-spacing: .08em;
}

.wx-sidebar-label:first-of-type {
    margin-top: 0;
}

.wx-side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 42px;
    margin-bottom: 4px;
    padding: 0 12px;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    transition: background-color .2s ease, color .2s ease;
}

button.wx-side-link {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.wx-side-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #8a929c;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wx-side-link:hover {
    background: rgba(4, 167, 157, .07);
    color: #038f86;
}

.wx-side-link:hover svg {
    stroke: #038f86;
}

.wx-side-link.is-active {
    background: rgba(4, 167, 157, .13);
    color: #038f86;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--yellow);
}

.wx-side-link.is-active svg {
    stroke: #038f86;
    stroke-width: 2.1;
}

.wx-side-arrow {
    width: 15px !important;
    height: 15px !important;
    margin-left: auto;
}

.wx-side-logout {
    margin-top: auto;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
}

.wx-side-logout:hover {
    color: #e74c3c;
}

.wx-side-logout:hover svg {
    stroke: #e74c3c;
}

@media (min-width: 1025px) and (max-height: 800px) {
    .wx-sidebar {
        padding: 16px 14px;
    }

    .wx-sidebar-avatar {
        width: 42px;
        height: 42px;
    }

    .wx-sidebar-meta strong {
        font-size: 14px;
    }

    .wx-sidebar-balance {
        margin-top: 8px;
        padding: 9px 11px;
    }

    .wx-sidebar-balance-info strong {
        font-size: 17px;
    }

    .wx-sidebar-nav {
        margin-top: 12px;
        padding-top: 10px;
    }

    .wx-sidebar-label {
        margin: 10px 12px 5px;
    }

    .wx-side-link {
        height: 36px;
        margin-bottom: 2px;
        font-size: 14.5px;
    }

    .wx-side-link svg {
        width: 19px;
        height: 19px;
    }
}

@media (min-width: 1025px) {
    .page-records .record-user {
        display: none;
    }
}

@media (max-width: 1024px) {
    .wx-shell {
        display: block;
        padding: 14px 14px 88px;
    }

    .wx-sidebar {
        display: none;
    }

    .wx-shell .wx-container {
        padding: 0;
    }

    .wx-shell .container {
        padding: 0 !important;
    }
}

@media (max-width: 400px) {
    .wx-shell {
        padding: 12px 12px 86px;
    }
}
