/* ============== 基础重置 ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #f5f5f7;
    --card-bg: #fff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

a { color: var(--primary); text-decoration: none; }

/* ============== 导航栏 ============== */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 18px; font-weight: 700; color: var(--text); }
.nav-links {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0;
}
.nav-links a { margin-left: 16px; color: var(--text-secondary); font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.nav-pill {
    margin-left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
}
.nav-links a.nav-pill:hover { background: #e0e7ff; color: #312e81; }
.nav-links a.nav-balance {
    margin-left: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff1f0;
    border: 1px solid #f04438;
    color: #e23d2e;
    font-weight: 800;
    font-size: 15px;
}
.nav-links a.nav-balance:hover { background: #ffe4e1; color: #c81e1e; }
.nav-links a.nav-recharge {
    margin-left: 10px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6b5a 0%, #e23d2e 100%);
    border: 1px solid #e23d2e;
    color: #fff !important;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(226, 61, 46, 0.35);
}
.nav-links a.nav-recharge:hover {
    filter: brightness(1.05);
    color: #fff !important;
}
.nav-logout-form {
    display: inline-flex;
    margin-left: 10px;
}
.nav-logout-btn {
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}
.nav-logout-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}
.order-pause-tip {
    margin: 12px 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #f97316;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    line-height: 1.5;
}
.member-balance-tip {
    background: #fff8eb; border: 1px solid #f5a524; border-radius: 10px;
    padding: 10px 12px; margin-bottom: 14px; font-size: 14px; color: #92400e;
}
.pay-method-row { display: flex; flex-direction: column; gap: 8px; }
.pay-method-opt {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: #fff;
}
.pay-method-opt:has(input:checked) { border-color: #e23d2e; background: #fff5f4; }
.recharge-form { display: flex; flex-direction: column; gap: 10px; }
.recharge-tier {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    border: 2px solid #f5a524; border-radius: 12px; background: #fff8eb;
    cursor: pointer; font-size: 18px; font-weight: 700; color: #b45309;
}
.recharge-tier:has(input:checked) {
    border-color: #e23d2e; background: linear-gradient(180deg,#ff6b5a,#e23d2e); color: #fff;
}
.recharge-tier input { width: 18px; height: 18px; }
.card-cell { max-width: 360px; vertical-align: top; }
.card-secret {
    margin: 0; white-space: pre-wrap; word-break: break-all;
    font-size: 12px; line-height: 1.45; color: #111827;
    background: #f3f4f6; border-radius: 8px; padding: 8px 10px;
    max-height: 220px; overflow: auto;
}
.card-keys-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.card-keys-count {
    font-size: 13px; font-weight: 700; color: #374151;
}
.card-keys-bar .btn.btn-sm { padding: 4px 12px; font-size: 12px; }

.keys-modal { z-index: 200; }
.keys-modal-box {
    width: min(560px, calc(100vw - 28px));
    max-height: min(80vh, 720px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn .25s ease;
}
.keys-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--border);
}
.keys-modal-head h3 { font-size: 17px; margin: 0 0 4px; color: var(--text); }
.keys-modal-sub { margin: 0; font-size: 13px; color: var(--text-secondary); }
.keys-modal-close {
    border: none; background: #f3f4f6; width: 32px; height: 32px;
    border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; color: #6b7280;
}
.keys-modal-close:hover { background: #e5e7eb; color: #111827; }
.keys-modal-toolbar {
    padding: 12px 18px; display: flex; justify-content: flex-end;
    border-bottom: 1px solid var(--border); background: #fafafa;
}
.keys-modal-list {
    padding: 12px 18px 18px; overflow: auto; display: flex; flex-direction: column; gap: 10px;
}
.keys-modal-item {
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.keys-modal-item-top {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
    font-size: 13px; font-weight: 700; color: #374151;
}
.keys-modal-key {
    margin: 0; white-space: pre-wrap; word-break: break-all;
    font-size: 13px; line-height: 1.5; color: #111827;
    background: #f3f4f6; border-radius: 8px; padding: 8px 10px;
}

/* ============== Hero ============== */
.hero {
    text-align: center;
    padding: 36px 0 28px;
}
.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.hero p { color: var(--text-secondary); font-size: 16px; }
/* 提醒框（写在 .hero p 后面，避免被 16px 覆盖） */
.hero p.hero-tip {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 8px 14px;
    color: #9a3412;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #f97316;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.16);
    text-align: center;
}
.hero p.hero-tip .hero-tip-sep {
    margin: 0 6px;
    color: #fb923c;
    font-weight: 500;
}
.hero p.hero-tip a {
    color: #e23d2e;
    font-size: inherit;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(226, 61, 46, 0.4);
    padding-bottom: 1px;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.hero p.hero-tip a:hover {
    color: #c81e1e;
    border-bottom-color: #c81e1e;
}
@media (max-width: 900px) {
    .hero p.hero-tip { font-size: 14px; padding: 7px 12px; }
}
@media (max-width: 640px) {
    .hero p.hero-tip {
        font-size: 13px;
        padding: 7px 10px;
        white-space: normal;
    }
}

/* ============== 分类胶囊切换 ============== */
.cat-warn {
    max-width: 960px;
    margin: 0 auto 18px;
    padding: 16px 22px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
    background: #111;
    border: 3px solid #111;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 4px 0 28px;
}
.cat-pill {
    appearance: none;
    border: 2px solid #f5a524;
    background: #fff8eb;
    color: #b45309;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.2;
    min-height: 46px;
    box-shadow: 0 2px 8px rgba(245, 165, 36, 0.18);
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.cat-pill:hover {
    border-color: #f59e0b;
    background: #ffefd1;
    color: #92400e;
    box-shadow: 0 3px 12px rgba(245, 165, 36, 0.28);
    transform: translateY(-1px);
}
.cat-pill.active {
    background: linear-gradient(180deg, #ff6b5a 0%, #e23d2e 100%);
    border-color: #e23d2e;
    color: #fff;
    box-shadow: 0 3px 14px rgba(226, 61, 46, 0.4);
}
.cat-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px 0 48px;
}

/* ============== 商品卡片 ============== */
.category-section { margin-bottom: 40px; }
.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.product-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.product-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; min-height: 36px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-stock { font-size: 13px; color: var(--text-secondary); }
.product-stock.stock-num { font-size: 20px; font-weight: 700; color: var(--success); letter-spacing: 0.02em; }
.stock-num-display.stock-num { font-size: 22px; font-weight: 700; color: var(--success); margin-left: 4px; }
.product-stock.stock-in,
strong.stock-in { color: var(--success); font-weight: 600; }
.product-stock.stock-out,
strong.stock-out { color: var(--danger); font-weight: 600; }

/* ============== 按钮 ============== */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: var(--text);
    transition: all .15s;
    text-align: center;
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 16px; font-weight: 600; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* ============== 卡片容器 ============== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* ============== 表单 ============== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-sm { width: 100px; }

.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }

.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .form-control { width: auto; }

textarea.form-control { resize: vertical; font-family: inherit; }
select.form-control { appearance: auto; }

/* ============== 购买页 ============== */
.buy-card { max-width: 520px; margin: 32px auto; }
.buy-card h2 { margin-bottom: 8px; }
.product-desc-detail { color: var(--text-secondary); margin-bottom: 20px; }
.product-info-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.buy-tip { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }

/* ============== 订单页 ============== */
.order-card { max-width: 560px; margin: 32px auto; }
.order-info { margin: 20px 0; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-row .label { color: var(--text-secondary); }
.info-row .value { font-weight: 500; }
.info-row .price { color: var(--primary); font-weight: 700; }

.card-content-box { margin-top: 20px; padding: 16px; background: #f0fdf4; border-radius: 8px; border: 1px solid #bbf7d0; }
.card-content-box h3 { font-size: 15px; margin-bottom: 10px; color: var(--success); }
.card-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.card-textarea {
    width: 100%;
    min-height: 320px;
    height: 320px;
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    background: #fff;
}

.pay-action { margin-top: 20px; text-align: center; }
.tip { text-align: center; margin-top: 8px; font-size: 13px; color: var(--text-secondary); }

/* ============== 查询页 ============== */
.query-card { max-width: 440px; margin: 60px auto; }
.query-card h2 { text-align: center; margin-bottom: 24px; }

/* ============== 查询结果卡片 ============== */
.result-order-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.result-product { font-weight: 600; font-size: 15px; }
.result-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.result-meta code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ============== 分隔符 ============== */
.form-divider {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin: 12px 0;
    position: relative;
}
.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ============== 状态标签 ============== */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-paid { background: #d1fae5; color: #065f46; }
.badge-expired { background: #fee2e2; color: #991b1b; }

/* ============== Flash 消息 ============== */
.flash-messages { margin: 16px 0; }
.flash {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* ============== 表格 ============== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--border); font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.table td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
.table code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.user-remark-tag {
    display: inline-block;
    max-width: 140px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.user-remark-form {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 130px;
}
.user-remark-input {
    flex: 1;
    width: 70px;
    min-width: 0;
    max-width: 70px;
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}
.user-remark-form .btn { flex: 0 0 auto; white-space: nowrap; }

.filter-bar { display: inline-flex; gap: 6px; margin-left: 12px; vertical-align: middle; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.page-info { font-size: 13px; color: var(--text-secondary); }

/* ============== 空状态 ============== */
.empty-state { text-align: center; padding: 60px; color: var(--text-secondary); }

/* ============== 页脚 ============== */
.footer { text-align: center; padding: 32px 0; color: var(--text-secondary); font-size: 13px; margin-top: 40px; }

/* ============== 登录页 ============== */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 380px; }
.login-card h2 { text-align: center; margin-bottom: 24px; }

/* ============== 后台布局 ============== */
.admin-body { background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px;
    background: #1a1a2e;
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand { padding: 20px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-nav { padding: 12px 0; }
.sidebar-nav a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    transition: all .15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link-btn {
    display: block; width: 100%; padding: 10px 20px; border: none; background: none; cursor: pointer;
    color: rgba(255,255,255,.7); font-size: 14px; text-align: left; transition: all .15s; font-family: inherit;
}
.sidebar-link-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,.1); margin: 8px 0; }

.admin-main { margin-left: 220px; flex: 1; padding: 24px 32px; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 24px; font-weight: 700; }

/* ============== 统计卡片 ============== */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ============== 支付页 ============== */
.pay-page { max-width: 480px; margin: 32px auto; text-align: center; }
.pay-header { margin-bottom: 20px; }
.pay-header h2 { margin-bottom: 4px; }
.pay-hint { color: var(--text-secondary); font-size: 14px; }

.pay-amount-box {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #fff;
}
.pay-amount-label { font-size: 13px; opacity: .8; margin-bottom: 4px; }
.pay-amount { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.pay-amount small { font-size: 16px; font-weight: 400; opacity: .7; }
.pay-network { font-size: 12px; opacity: .7; margin-top: 4px; }

.pay-qr-section { margin-bottom: 20px; }
.pay-qr-img {
    width: 200px; height: 200px;
    border: 6px solid #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.qr-tip { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

.pay-address { margin-bottom: 16px; text-align: left; }
.pay-address label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.address-row { display: flex; gap: 8px; }
.address-input {
    flex: 1;
    background: var(--bg);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--border);
    outline: none;
    color: var(--text);
}
.btn-copy { flex-shrink: 0; padding: 10px 16px; font-size: 13px; }
.copy-toast {
    margin-top: 6px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.pay-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    text-align: left;
    margin-bottom: 20px;
}

.pay-detail { text-align: left; margin-bottom: 24px; }

.pay-confirm-btn {
    font-size: 18px !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    border-radius: 12px !important;
}
.pay-confirm-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.pay-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 16px;
}
.pay-spinner {
    width: 18px; height: 18px;
    border: 3px solid #bfdbfe;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-status-success { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.pay-status-fail { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.pay-status-ok { font-weight: 600; font-size: 16px; }
.pay-status-expired { font-weight: 600; font-size: 15px; }

.pay-countdown {
    padding: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg);
    border-radius: 8px;
}
.pay-countdown span { font-weight: 700; color: var(--warning); }
.countdown-icon { margin-right: 4px; }

/* ============== 弹窗提醒 ============== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon { font-size: 40px; margin-bottom: 12px; }
.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 12px;
}
.modal-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
    line-height: 2.2;
    margin-bottom: 24px;
    letter-spacing: 1px;
}
.modal-btn {
    border-radius: 10px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
}
.member-notice-box {
    position: relative;
    max-width: 460px;
    text-align: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.55);
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf9 0%, #ffffff 38%, #ffffff 100%);
    box-shadow:
        0 28px 70px rgba(154, 52, 18, 0.16),
        0 8px 20px rgba(0, 0, 0, 0.05);
    animation: memberNoticeIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes memberNoticeIn {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.member-notice-accent {
    height: 4px;
    background: linear-gradient(90deg, #fb923c 0%, #f97316 45%, #ea580c 100%);
}
.member-notice-head {
    position: relative;
    padding: 20px 24px 6px;
    text-align: center;
}
.member-notice-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.32);
}
.member-notice-box .modal-title {
    margin: 0;
    text-align: center;
    font-size: 23px;
    font-weight: 800;
    color: #c2410c;
    letter-spacing: 0.01em;
}
.member-notice-sub {
    margin: 6px 0 0;
    color: #b45309;
    font-size: 13px;
    font-weight: 600;
}
.member-notice-body {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
    padding: 14px 22px 6px;
    text-align: center;
}
.member-notice-steps {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
    margin: 0 0 14px;
    padding: 12px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
}
.member-notice-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}
.member-notice-step em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.28);
}
.member-notice-step span {
    font-size: 13px;
    font-weight: 800;
    color: #9a3412;
    line-height: 1.3;
}
.member-notice-step-arrow {
    align-self: center;
    color: #ea580c;
    font-weight: 800;
    font-size: 14px;
    padding: 0 1px;
    flex: 0 0 auto;
}
.member-notice-pros,
.member-notice-list {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #fb923c;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}
.member-notice-pros strong {
    color: #9a3412;
    font-weight: 800;
}
.member-notice-tag {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0 !important;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid #86efac;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16);
}
.member-notice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 22px 22px;
}
.member-notice-actions .btn { flex: 1; min-width: 120px; text-align: center; }
.member-notice-btn {
    width: 100%;
    border: none;
    border-radius: 999px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%) !important;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.34);
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.member-notice-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.member-notice-btn:active {
    transform: translateY(0);
}
.member-notice-warn {
    margin-top: 4px !important;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.5;
}
.member-notice-warn b { color: #dc2626; font-size: 1.08em; }
.member-notice-plain {
    margin: 4px 0 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: #111827 !important;
    line-height: 1.55;
}
.register-rule-tip {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #f97316;
    border-radius: 10px;
    color: #9a3412;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.14);
}
.register-rule-title {
    font-size: 15px;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 6px;
}
.register-rule-tip p {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.register-rule-tip p:last-child { margin-bottom: 0; }
.register-rule-tip b { color: #ea580c; font-size: 1.08em; }
.register-tg-tip {
    margin: 8px 0 0;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    line-height: 1.45;
}
.account-top-row {
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.tg-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.tg-inline-form > label {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-secondary, #6b7280);
}
.tg-inline-input {
    width: 140px;
    padding: 6px 10px;
    height: 34px;
}
.tg-inline-form .btn { white-space: nowrap; }
.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.captcha-input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.captcha-img {
    flex: 0 0 auto;
    width: 140px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    background: #f3f4f6;
}

/* ============== 保留期限提示 ============== */
.retention-notice {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #f97316;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0 18px;
    color: #9a3412;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.18);
}
.retention-notice-title {
    font-size: 16px;
    font-weight: 800;
    color: #c2410c;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.retention-notice p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}
.retention-notice ul {
    margin: 0;
    padding-left: 1.2em;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}
.retention-notice b {
    color: #ea580c;
    font-size: 1.08em;
}
.retention-inline {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #ffedd5;
    border: 1px solid #fb923c;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

/* ============== 响应式 ============== */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .admin-main { margin-left: 0; padding: 16px; }
    .product-grid { grid-template-columns: 1fr; }
    .cat-warn { font-size: 20px; padding: 14px 12px; }
    .cat-pills { justify-content: center; gap: 10px; }
    .cat-pill { padding: 11px 22px; font-size: 15px; min-height: 44px; }
    .form-row { flex-direction: column; }
    .inline-form { flex-direction: column; }
    .table { font-size: 12px; }
}
