/* ============================================================
 * style.css  ·  至德大夫会员系统 · 前台主题样式（喜庆中国风）
 * 所有会员端页面共用，包含：登录 / 卡片 / 表单 / 按钮 / 徽章
 * / 数据卡 / 进度条 / 表格 / 分页 / 弹窗 / 提示 / 导航
 * ============================================================ */

/* ---------- 变量 ---------- */
:root {
    --red:        #C8102E;
    --red-dark:   #9E0B24;
    --red-light:  #E63552;
    --gold:       #F5C542;
    --gold-light: #FFE082;
    --gold-dark:  #D4A017;
    --cream:      #FFF9F0;
    --ink:        #3A2020;
    --gray:       #8A7A72;
    --line:       #F0D9C8;
    --white:      #FFFFFF;
    --green:      #1E9E5A;
    --shadow:     0 8px 30px rgba(200,16,46,.15);
    --shadow-lg:  0 20px 60px rgba(200,16,46,.25);
    --radius:     16px;
    --radius-sm:  10px;
    --font:       -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--gold); color: var(--red-dark); }

/* ============================================================
 * 页面背景（喜庆）
 * ============================================================ */
.page-login {
    background:
        radial-gradient(circle at 15% 20%, rgba(245,197,66,.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(200,16,46,.20), transparent 45%),
        linear-gradient(160deg, #FFF4E6 0%, #FFE8DC 45%, #FFD9C9 100%);
    position: relative;
}

/* 烟花画布 */
.fx-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 福字水印 */
.fu-watermarks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.fu-watermarks span {
    position: absolute;
    font-size: 180px;
    font-weight: 900;
    color: rgba(200,16,46,.05);
    font-family: "STKaiti", "KaiTi", serif;
    user-select: none;
}
.fu-watermarks span:nth-child(1) { top: -40px; left: -30px; transform: rotate(-15deg); }
.fu-watermarks span:nth-child(2) { top: 30%; right: -40px; transform: rotate(12deg); }
.fu-watermarks span:nth-child(3) { bottom: -50px; left: 20%; transform: rotate(-8deg); }
.fu-watermarks span:nth-child(4) { bottom: 15%; right: 15%; transform: rotate(20deg); font-size: 140px; }

/* ============================================================
 * 灯笼装饰
 * ============================================================ */
.lantern-wrap { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.lantern {
    position: absolute;
    top: 0;
    width: 70px;
    transform-origin: top center;
    animation: lanternSwing 3.5s ease-in-out infinite;
}
.lantern-left  { left: 6%;  animation-delay: 0s; }
.lantern-right { right: 6%; animation-delay: 1.2s; }

.lantern-top {
    width: 22px; height: 10px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.lantern-body {
    width: 70px; height: 90px;
    margin: 0 auto;
    background: radial-gradient(circle at 35% 30%, var(--red-light), var(--red) 60%, var(--red-dark));
    border-radius: 50% / 42%;
    box-shadow: inset -6px -6px 18px rgba(0,0,0,.2), inset 6px 6px 18px rgba(255,255,255,.25), 0 10px 24px rgba(200,16,46,.35);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.lantern-body::before,
.lantern-body::after {
    content: "";
    position: absolute;
    top: 4px; bottom: 4px;
    width: 2px;
    background: rgba(255,255,255,.25);
    border-radius: 2px;
}
.lantern-body::before { left: 24px; }
.lantern-body::after  { right: 24px; }
.lantern-body span {
    color: var(--gold);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,.4);
    z-index: 1;
}
.lantern-tassel {
    width: 3px; height: 26px;
    margin: 2px auto 0;
    background: linear-gradient(180deg, var(--gold), transparent);
    border-radius: 0 0 2px 2px;
}
.lantern-tassel::after {
    content: "";
    display: block;
    width: 14px; height: 8px;
    margin: 0 auto;
    background: var(--gold);
    border-radius: 2px;
    transform: translateY(26px);
}

@keyframes lanternSwing {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

/* ============================================================
 * 登录页主布局
 * ============================================================ */
.login-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(245,197,66,.5);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(135deg, var(--gold), transparent 30%, transparent 70%, var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* 品牌区 */
.brand { text-align: center; margin-bottom: 22px; }
.brand-logo {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--red-light), var(--red) 55%, var(--red-dark));
    color: var(--gold);
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 24px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(200,16,46,.4), inset 0 0 0 3px var(--gold);
    letter-spacing: 1px;
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(200,16,46,.4), inset 0 0 0 3px var(--gold); }
    50%      { box-shadow: 0 8px 26px rgba(245,197,66,.7), inset 0 0 0 3px var(--gold-light); }
}
.brand-title {
    font-size: 22px;
    color: var(--red-dark);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.brand-sub {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}
.brand-price {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFF6D6, #FFE9A8);
    color: var(--red-dark);
    font-size: 22px;
    font-weight: 800;
    border: 1px solid var(--gold);
}
.brand-price .coin { color: var(--gold-dark); font-size: 16px; margin-right: 2px; }
.brand-price .unit { font-size: 12px; font-weight: 500; color: var(--gray); margin-left: 4px; }

/* ============================================================
 * 表单
 * ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #FFFCF7;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.form-control::placeholder { color: #C9B8AC; }
.form-control:focus {
    border-color: var(--gold-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245,197,66,.25);
}
.form-control:disabled { background: #F5F0EA; cursor: not-allowed; }

/* 带图标输入框 */
.input-icon { position: relative; }
.input-icon .icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .65;
    pointer-events: none;
}
.input-icon .form-control { padding-left: 38px; padding-right: 42px; }
.pw-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    opacity: .6;
    transition: opacity .2s, background .2s;
}
.pw-toggle:hover { opacity: 1; background: rgba(245,197,66,.2); }

/* 行内复选框 */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 18px;
    flex-wrap: wrap;
}
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    cursor: pointer;
    user-select: none;
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }

.link-gold {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    transition: color .2s;
}
.link-gold:hover { color: var(--gold-dark); text-decoration: none; }

/* ============================================================
 * 按钮
 * ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--red-light), var(--red) 50%, var(--red-dark));
    color: #FFF6E0;
    box-shadow: 0 6px 18px rgba(200,16,46,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(200,16,46,.45); text-decoration: none; color: #fff; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
    color: var(--red-dark);
    box-shadow: 0 6px 18px rgba(245,197,66,.4);
}
.btn-gold:hover { filter: brightness(1.05); text-decoration: none; color: var(--red-dark); }

.btn-ghost {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: rgba(200,16,46,.05); border-color: var(--red); text-decoration: none; }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 17px; letter-spacing: 4px; }
.btn-block { width: 100%; display: flex; }

/* 登录按钮光效 */
#loginBtn { position: relative; overflow: hidden; }
#loginBtn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
}
@keyframes btnShine {
    0%, 70%, 100% { left: -100%; }
    35%           { left: 130%; }
}
#loginBtn.loading .btn-text { opacity: .6; }
#loginBtn.loading::before {
    content: "";
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: 4px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
 * 提示条 Flash
 * ============================================================ */
.flash {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    border-left: 4px solid;
    animation: flashIn .35s ease;
}
.flash-success {
    background: #E8F8EF;
    color: #147A43;
    border-color: var(--green);
}
.flash-error {
    background: #FDECEE;
    color: var(--red-dark);
    border-color: var(--red);
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * 登录底部
 * ============================================================ */
.login-tips {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--gray);
}
.login-footer {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #C9B8AC;
}

/* ============================================================
 * 通用卡片 / 数据卡（会员中心 / 后台复用）
 * ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(200,16,46,.08);
    border: 1px solid var(--line);
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--red-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title::before {
    content: "";
    width: 4px; height: 18px;
    background: linear-gradient(180deg, var(--gold), var(--red));
    border-radius: 2px;
}

/* 数据卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.stat-card {
    background: linear-gradient(160deg, #FFFCF7, #FFF3E6);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: -20px; right: -20px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,197,66,.35), transparent 70%);
}
.stat-card .label { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.stat-card .value {
    font-size: 26px;
    font-weight: 800;
    color: var(--red);
    font-family: "DIN", var(--font);
    line-height: 1.2;
}
.stat-card .value.gold { color: var(--gold-dark); }
.stat-card .sub { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* ============================================================
 * 等级徽章
 * ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.badge.lv0 { background: #F0EDEA; color: #6B6259; }
.badge.lv1 { background: #E8F1FF; color: #1E62C8; }
.badge.lv2 { background: #E8F8EF; color: #147A43; }
.badge.lv3 { background: #FFF3D6; color: #B07B00; }
.badge.lv4 {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--red-dark);
    box-shadow: 0 0 12px rgba(245,197,66,.6);
    animation: badgeGlow 2.5s ease-in-out infinite;
}
@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(245,197,66,.5); }
    50%      { box-shadow: 0 0 20px rgba(245,197,66,.9); }
}

/* ============================================================
 * 进度条
 * ============================================================ */
.progress {
    height: 10px;
    background: #F0E6DC;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--red));
    border-radius: 999px;
    transition: width 1s ease;
    position: relative;
}
.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    animation: progressShine 2s linear infinite;
}
@keyframes progressShine {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* ============================================================
 * 表格
 * ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--white);
}
.table th {
    background: linear-gradient(180deg, #FFF3E6, #FFE9D6);
    color: var(--red-dark);
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--line);
}
.table td {
    padding: 11px 14px;
    border-bottom: 1px solid #F7EEE6;
    vertical-align: middle;
}
.table tbody tr:hover { background: #FFFBF5; }
.table tbody tr:last-child td { border-bottom: none; }
.table .text-right { text-align: right; }
.table .text-center { text-align: center; }
.table .money { color: var(--red); font-weight: 700; font-family: "DIN", var(--font); }

/* ============================================================
 * 分页
 * ============================================================ */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.pagination a, .pagination .cur, .pagination .dots {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}
.pagination a:hover { background: #FFF3E6; border-color: var(--gold); text-decoration: none; }
.pagination .cur {
    background: linear-gradient(135deg, var(--red-light), var(--red));
    color: #fff;
    border-color: var(--red);
    font-weight: 700;
}
.pagination .dots { border: none; background: transparent; color: var(--gray); }

/* ============================================================
 * 弹窗 Modal
 * ============================================================ */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(40,10,10,.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-mask.show { display: flex; animation: fadeIn .2s ease; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--gold);
    animation: popIn .25s ease;
}
.modal h3 { color: var(--red-dark); margin-bottom: 12px; font-size: 18px; }
.modal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
 * 动画 / 入场
 * ============================================================ */
[data-anim="pop"] {
    animation: loginPop .6s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes loginPop {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
[data-anim="fade-up"] { animation: fadeUp .5s ease both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * 工具类
 * ============================================================ */
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold-dark); }
.text-gray   { color: var(--gray); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.fw-700 { font-weight: 700; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-1 { gap: 8px; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 640px) {
    .login-card { padding: 28px 20px 22px; max-width: 100%; }
    .brand-title { font-size: 19px; }
    .brand-price { font-size: 20px; }
    .lantern { width: 54px; }
    .lantern-body { width: 54px; height: 70px; }
    .lantern-body span { font-size: 24px; }
    .lantern-left  { left: 2%; }
    .lantern-right { right: 2%; }
    .fu-watermarks span { font-size: 120px; }
    .btn-lg { padding: 13px 20px; font-size: 16px; }
    .table th, .table td { padding: 9px 10px; font-size: 13px; }
    .stat-card .value { font-size: 22px; }
}

@media (max-width: 380px) {
    .login-main { padding: 24px 14px; }
    .lantern { display: none; }
}

/* 减弱动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ============================================================
 * 会员端导航栏与页面布局（唯一版本，勿重复定义）
 * ============================================================ */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(135deg, #C8102E, #9E0B24);
    box-shadow: 0 4px 16px rgba(200,16,46,.25);
}
.nav-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
}
.nav-brand {
    display: flex; align-items: center; gap: 8px;
    color: #FFF6E0; font-weight: 800; white-space: nowrap;
    text-decoration: none; flex-shrink: 0; font-size: 15px;
}
.nav-brand:hover { text-decoration: none; color: #FFE082; }
.nav-logo {
    width: 32px; height: 32px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #E63552, #9E0B24);
    color: #F5C542;
    font-family: "STKaiti", "KaiTi", serif;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 2px #F5C542;
    font-size: 15px; flex-shrink: 0; font-weight: 700;
}
.nav-links {
    display: flex; gap: 4px; flex: 1; min-width: 0;
}
.nav-links a {
    color: #FFE7D6; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; white-space: nowrap; text-decoration: none;
    transition: background .2s, color .2s;
    display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover {
    background: rgba(255,255,255,.12); color: #fff; text-decoration: none;
}
.nav-links a.active {
    background: linear-gradient(135deg, #F5C542, #D4A017);
    color: #9E0B24; font-weight: 700;
    box-shadow: 0 3px 10px rgba(245,197,66,.35);
}
.nav-links .nav-icon { display: none; }
.nav-links .nav-quick { display: none; }

.nav-user {
    display: flex; align-items: center; gap: 10px;
    color: #FFF6E0; font-size: 13px; white-space: nowrap; flex-shrink: 0;
}
.nav-user a {
    color: #FFE082; text-decoration: underline; font-weight: 600;
}
.nav-user a:hover { color: #fff; }

/* 会员端页面主体 */
.page-main {
    min-height: calc(100vh - 60px);
    padding: 24px 16px 48px;
    background: linear-gradient(160deg, #FFF9F0 0%, #FFF3E8 100%);
}
.container { max-width: 1180px; margin: 0 auto; }

/* ============================================================
 * 手机端（≤ 640px）：菜单变 3 列方块网格
 * ============================================================ */
@media (max-width: 640px) {

    .site-nav { position: static; }

    .nav-inner {
        flex-wrap: wrap;
        padding: 10px 12px 12px;
        gap: 8px;
    }

    .nav-brand {
        flex: 1; font-size: 14px; min-width: 0;
    }
    .nav-brand .nav-text {
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .nav-logo { width: 28px; height: 28px; font-size: 13px; }

    .nav-user { flex-shrink: 0; font-size: 12px; gap: 6px; }
    .nav-user .user-name { display: none; }
    .nav-user .nav-logout {
        padding: 6px 12px; border-radius: 8px;
        background: rgba(255,255,255,.15);
        color: #FFF6E0; text-decoration: none; font-weight: 600;
    }
    .nav-user .nav-logout:hover { background: rgba(255,255,255,.25); color: #fff; }

    .nav-links {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 10px;
        margin-top: 2px;
        border-top: 1px solid rgba(255,255,255,.15);
    }

    .nav-links a {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 12px 6px;
        min-height: 70px;
        background: rgba(255,255,255,.1);
        border-radius: 10px;
        font-size: 12px;
        color: #FFE7D6;
        text-align: center;
        text-decoration: none;
        transition: background .15s, transform .15s;
    }
    .nav-links a:hover,
    .nav-links a:active {
        background: rgba(255,255,255,.2);
        transform: translateY(-1px);
    }
    .nav-links a.active {
        background: linear-gradient(135deg, #F5C542, #D4A017) !important;
        color: #9E0B24 !important;
        font-weight: 700;
        box-shadow: 0 3px 10px rgba(245,197,66,.4);
    }

    .nav-links .nav-icon {
        display: block;
        font-size: 22px;
        line-height: 1;
    }

    .nav-links .nav-quick {
        display: flex !important;
        grid-column: span 2;
        background: linear-gradient(135deg, #F5C542, #D4A017) !important;
        color: #9E0B24 !important;
        font-weight: 700;
        font-size: 13px;
        box-shadow: 0 3px 10px rgba(245,197,66,.4);
    }
    .nav-links .nav-quick:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }
    .nav-links .nav-quick .nav-icon { font-size: 24px; }

    .page-main { padding: 16px 10px 40px; }
}