/* ============================================
   app.css - 茶酒色平台主样式（前台/会员/后台统一）
   橙色主色 #FF6B35，深棕/浅灰辅助，卡片式现代风格
   作者：星球软件CEWWW
   命名隔离：app- 前台会员端 / ad- 管理后台 / pager- 分页
   ============================================ */

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C5A;
    --primary-bg: #FFF3ED;
    --brown-dark: #3E2723;
    --brown-medium: #5D4037;
    --brown-light: #8D6E63;
    --gray-bg: #F5F5F5;
    --gray-line: #E8E8E8;
    --gray-text: #999999;
    --text: #2B2B2B;
    --text-sub: #666666;
    --white: #FFFFFF;
    --success: #16A34A;
    --danger: #DC2626;
    --warning: #D97706;
    --info: #2563EB;
    --radius: 3px;
    --radius-sm: 2px;
    --shadow: 0 1px 4px rgba(62,39,35,.08);
    --shadow-lg: 0 4px 14px rgba(62,39,35,.12);
    --header-h: 60px;
    --brand-h: 55px;
    --tab-h: 56px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 18px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px; line-height: 1.55; color: var(--text);
    background: var(--gray-bg);
    padding-top: calc(var(--header-h) + var(--brand-h));
    padding-bottom: calc(var(--tab-h) + var(--safe-b));
    min-height: 100vh;
}
body.ad-body { padding-top: var(--brand-h); padding-bottom: 0; background: #F0F2F5; }

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; font-size: 16px; outline: none; }

/* ========== 顶部欢迎条（每页固定，高35px） ========== */
.brand-bar {
    position: fixed; top: 0; left: 0; right: 0; height: var(--brand-h); z-index: 1002;
    background: var(--brown-dark); color: #D7CCC8;
    font-size: 13px;
}
.brand-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 10px; height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 3px;
}
.brand-slogan {
    color: #D7CCC8; font-weight: 500; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.brand-slogan i { margin-right: 4px; }
.brand-links { flex-shrink: 0; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.brand-links a {
    color: #D7CCC8; display: inline-flex; align-items: center; gap: 3px;
    padding: 0 6px; height: 24px; border-radius: var(--radius-sm);
}
.brand-links a:active { background: rgba(255,255,255,.1); color: #fff; }
.brand-links i:not(.brand-sep) { font-size: 12px; }
.brand-sep { color: #6D4C41; font-style: normal; }

/* ========== 前台头部 ========== */
.app-header {
    position: fixed; top: var(--brand-h); left: 0; right: 0; height: var(--header-h); z-index: 1001;
    background: var(--white); border-bottom: 1px solid var(--gray-line);
    display: flex; align-items: center; justify-content: space-between;
    /* 内容与顶部欢迎条 .brand-inner 的 1200px 容器对齐；窄屏回退 10px */
    padding-left: max(10px, calc((100% - 1200px) / 2 + 10px));
    padding-right: max(10px, calc((100% - 1200px) / 2 + 10px));
}
.header-back, .header-user {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    color: var(--brown-dark); font-size: 20px; border-radius: var(--radius-sm);
}
.header-back:active, .header-user:active { background: var(--gray-bg); }
.header-title { font-size: 19px; font-weight: 700; color: var(--brown-dark); flex: 1; text-align: center; }

/* 首页导航栏左侧 Logo 链接（横向标志，高度固定50px，宽度按实际比例） */
.header-logo {
    height: 50px; display: flex; align-items: center; justify-content: flex-start;
    flex-shrink: 0; margin-right: 6px; border-radius: var(--radius-sm);
}
.header-logo img { height: 50px; width: auto; display: block; }
.header-logo:active { background: var(--gray-bg); }

/* 添加到手机桌面按钮（仅移动端由 JS 显示） */
.header-a2hs {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 21px; border-radius: var(--radius-sm);
    background: none; border: none; padding: 0; margin-right: 2px;
    -webkit-tap-highlight-color: transparent;
}
.header-a2hs:active { background: var(--gray-bg); }

/* ========== 添加到桌面引导弹层 ========== */
#cjs-a2hs-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.a2hs-modal {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); overflow: hidden;
    font-family: -apple-system, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    animation: a2hsPop .18s ease-out;
}
@keyframes a2hsPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.a2hs-modal-hd {
    padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
    background: var(--primary); color: #fff;
}
.a2hs-modal-hd span { font-size: 15px; font-weight: 600; }
.a2hs-close {
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.2); color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.a2hs-close:active { background: rgba(255,255,255,.35); }
.a2hs-modal-bd { padding: 16px 16px 8px; }
.a2hs-modal-title {
    font-size: 17px; font-weight: 700; color: var(--brown-dark); text-align: center; margin-bottom: 6px;
}
.a2hs-modal-title i { color: var(--primary); margin-right: 4px; }
.a2hs-modal-desc { font-size: 13px; color: var(--gray-text); text-align: center; margin-bottom: 12px; }
.a2hs-steps { list-style: none; padding: 0; margin: 0; }
.a2hs-steps li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.a2hs-step-num {
    flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px;
    border-radius: 50%; background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 700; font-style: normal;
    display: flex; align-items: center; justify-content: center;
}
.a2hs-step-txt { flex: 1; font-size: 14px; color: var(--text); line-height: 1.6; }
.a2hs-step-txt i { color: var(--primary); font-style: normal; }
.a2hs-copy-btn {
    width: 100%; height: 38px; margin: 2px 0 8px;
    border: 1px dashed var(--primary); border-radius: var(--radius);
    background: var(--primary-bg); color: var(--primary);
    font-size: 14px; font-weight: 600;
}
.a2hs-copy-btn:active { background: #FFE7DA; }
.a2hs-modal-ft { padding: 6px 16px 16px; }
.a2hs-ok-btn {
    width: 100%; height: 42px; border: none; border-radius: var(--radius);
    background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
    -webkit-appearance: none; appearance: none;
}
.a2hs-ok-btn:active { background: var(--primary-dark); }

/* ========== 面包屑（100%横条，文字与页面宽度对齐） ========== */
.crumb-bar {
    background: var(--primary-bg); border-bottom: 1px solid #FBE3D6;
    font-size: 15px;
}
.crumb-inner {
    max-width: 1200px; margin: 0 auto; padding: 6px 10px;
    display: flex; align-items: center; flex-wrap: nowrap; overflow-x: auto; gap: 3px;
    white-space: nowrap;
}
.crumb-inner a { color: var(--text-sub); }
.crumb-inner a:active { color: var(--primary); }
.crumb-sep { color: var(--gray-text); font-size: 13px; }
.crumb-current { color: var(--primary-dark); font-weight: 600; }

/* ========== 栏目广告条（面包屑上方，与首页广告条同款同宽） ========== */
.section-banner-wrap { max-width: 1200px; margin: 0 auto; padding: 8px 10px 0; }
.section-banner-wrap .banner-swiper { margin-bottom: 8px; }
/* 防御：同一广告位多条广告时默认只显示第一张（轮播JS接管后切换），避免JS未执行时堆叠成多个条 */
.banner-swiper .banner-item { display: none; }
.banner-swiper .banner-item:first-child { display: block; }

.app-main { max-width: 1200px; margin: 0 auto; padding: 8px 10px; }

/* ========== 底部固定菜单 ========== */
.tab-bar {
    position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab-h) + var(--safe-b));
    padding-bottom: var(--safe-b); z-index: 1001;
    background: var(--white); border-top: 1px solid var(--gray-line);
    display: flex; box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
.tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--gray-text); font-size: 14px;
}
.tab-item i { font-size: 21px; }
.tab-item.active { color: var(--primary); font-weight: 600; }

/* ========== 通用卡片 ========== */
.card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 9px; margin-bottom: 8px;
}
.card-title {
    font-size: 17px; font-weight: 700; color: var(--brown-dark);
    display: flex; align-items: center; gap: 3px; margin-bottom: 8px;
}
.card-title::before { content: ''; width: 4px; height: 15px; background: var(--primary); border-radius: 2px; }
.card-title .more { margin-left: auto; font-size: 15px; font-weight: 400; color: var(--gray-text); }

/* 区块网格 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.flex-col { display: flex; flex-direction: column; gap: 3px; }
.gap-3 { gap: 3px; }
.mt-8 { margin-top: 8px; } .mb-8 { margin-bottom: 8px; }
.text-sub { color: var(--text-sub); font-size: 15px; }
.text-gray { color: var(--gray-text); font-size: 14px; }
.text-price { color: var(--danger); font-weight: 700; }
.text-price::before { content: '¥'; font-size: 14px; }

/* ========== 按钮 ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 14px; font-size: 16px; border-radius: var(--radius);
    background: var(--gray-bg); color: var(--text); border: 1px solid var(--gray-line);
    transition: opacity .15s; min-height: 38px;
}
.btn:active { opacity: .8; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 5px 10px; min-height: 30px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ========== 标签/徽章 ========== */
.tag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; font-size: 14px; border-radius: var(--radius-sm);
    background: var(--primary-bg); color: var(--primary-dark);
}
.tag-gray { background: var(--gray-bg); color: var(--text-sub); }
.tag-green { background: #E8F7EE; color: var(--success); }
.tag-red { background: #FDECEC; color: var(--danger); }
.tag-gold { background: #FFF7E6; color: var(--warning); }
.level-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: var(--radius-sm);
    color: #fff; font-size: 14px; font-weight: 600;
}
.status-tag { padding: 2px 7px; border-radius: var(--radius-sm); font-size: 14px; background: var(--gray-bg); color: var(--text-sub); }

/* ========== 表单 ========== */
.form-group { margin-bottom: 9px; }
.form-label { display: block; font-size: 16px; color: var(--brown-dark); font-weight: 600; margin-bottom: 4px; }
.form-control {
    width: 100%; padding: 9px 10px; border: 1px solid var(--gray-line);
    border-radius: var(--radius); background: #fff; font-size: 16px; color: var(--text);
    min-height: 40px;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,107,53,.12); }
textarea.form-control { min-height: 90px; resize: vertical; }

/* 数字验证码行（输入框+可点击刷新的验证码图片） */
.captcha-row { display: flex; align-items: center; gap: 3px; }
.captcha-input { flex: 1; min-width: 0; }
.captcha-img {
    width: 110px; height: 40px; flex-shrink: 0; cursor: pointer;
    border: 1px solid var(--gray-line); border-radius: var(--radius-sm);
    background: #fff; object-fit: fill;
}
.captcha-img:active { opacity: .8; }
.form-row { display: flex; gap: 3px; align-items: center; }
.form-tip { font-size: 14px; color: var(--gray-text); margin-top: 3px; }
.form-inline-action { display: flex; gap: 3px; }

/* ========== 轮播 ========== */
.banner-swiper { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; box-shadow: var(--shadow); }
.banner-swiper .banner-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.banner-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 9px 7px;
    background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff;
}
.banner-caption .t { font-size: 17px; font-weight: 700; }
.banner-caption .s { font-size: 14px; opacity: .9; }
.banner-dots { position: absolute; right: 9px; bottom: 8px; display: flex; gap: 3px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.banner-dots i.on { background: #fff; width: 14px; border-radius: 3px; }

/* ========== 快捷入口 ========== */
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; text-align: center; }
.quick-item { padding: 7px 2px; color: var(--brown-medium); font-size: 14px; }
.quick-item i { font-size: 24px; color: var(--primary); display: block; margin-bottom: 3px; }

/* ========== 商品/活动卡片 ========== */
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-thumb { position: relative; width: 100%; padding-top: 100%; background: var(--gray-bg); }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 7px; display: flex; flex-direction: column; gap: 3px; }
.product-name { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.product-price { color: var(--danger); font-size: 18px; font-weight: 700; }
.product-price small { font-size: 14px; font-weight: 400; }
.product-sales { font-size: 14px; color: var(--gray-text); }

.list-card { display: flex; gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; margin-bottom: 8px; align-items: center; }
.list-thumb { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--gray-bg); }
.list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-title { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.35; }
.list-desc { font-size: 15px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-meta { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; font-size: 14px; color: var(--gray-text); margin-top: auto; }

/* 会员卡片 */
.member-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 8px; }
.member-avatar { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 2px solid var(--primary-bg); flex-shrink: 0; background: var(--bg); }
.member-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.member-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 3px; }

/* ========== 筛选条/排序 ========== */
.filter-bar {
    position: sticky; top: calc(var(--header-h) + var(--brand-h) + 30px); z-index: 20;
    display: flex; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 8px; overflow-x: auto;
}
.filter-item {
    flex: 1; min-width: 64px; text-align: center; padding: 9px 4px; font-size: 15px;
    color: var(--text-sub); white-space: nowrap; border-right: 1px solid var(--gray-line);
}
.filter-item:last-child { border-right: none; }
.filter-item.active { color: var(--primary); font-weight: 700; }

/* ========== 详情页 ========== */
.detail-cover { width: 100%; border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); }
.detail-title { font-size: 20px; font-weight: 700; color: var(--brown-dark); line-height: 1.4; margin-bottom: 6px; }
.detail-price-box { background: linear-gradient(90deg, #FFF3ED, #fff); border-radius: var(--radius); padding: 9px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 3px; }
.detail-price { color: var(--danger); font-size: 26px; font-weight: 800; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 3px; font-size: 15px; color: var(--text-sub); }
.detail-meta .meta-row { width: 100%; display: flex; gap: 3px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--gray-line); }
.detail-meta i { width: 20px; color: var(--primary); text-align: center; }
.rich-content { font-size: 17px; line-height: 1.7; color: var(--text); word-break: break-word; }
.rich-content img { border-radius: var(--radius); margin: 6px 0; }
.rich-content p { margin-bottom: 8px; }

/* 底部操作栏（详情/购物车） */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 99;
    background: #fff; border-top: 1px solid var(--gray-line); padding: 7px 10px;
    display: flex; align-items: center; gap: 3px; box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
.action-bar .act-icon { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: var(--text-sub); width: 46px; }
.action-bar .act-icon i { font-size: 20px; color: var(--brown-medium); }
.action-bar .btn { flex: 1; }

/* ========== 购物车 ========== */
.cart-item { display: flex; gap: 3px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin-bottom: 8px; }
.cart-check { width: 20px; height: 20px; accent-color: var(--primary); flex-shrink: 0; }
.cart-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--gray-line); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 28px; height: 28px; background: var(--gray-bg); color: var(--brown-dark); font-size: 17px; }
.stepper input { width: 42px; height: 28px; text-align: center; border: none; border-left: 1px solid var(--gray-line); border-right: 1px solid var(--gray-line); font-size: 16px; }
.cart-total-bar {
    position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 99;
    background: #fff; border-top: 1px solid var(--gray-line); padding: 8px 10px;
    display: flex; align-items: center; justify-content: flex-end; gap: 3px; box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}

/* ========== 会员中心首页 ========== */
.mb-profile {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius); padding: 14px 12px; color: #fff; margin-bottom: 8px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg);
}
.mb-profile .member-avatar { border-color: rgba(255,255,255,.6); width: 120px; height: 120px; }
.mb-profile .mb-name { font-size: 19px; font-weight: 700; }
.mb-profile .mb-sub { font-size: 15px; opacity: .92; }
.mb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 4px; margin-bottom: 8px; text-align: center; }
.mb-stat .num { font-size: 19px; font-weight: 700; color: var(--brown-dark); }
.mb-stat .lbl { font-size: 14px; color: var(--gray-text); }
.mb-menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.mb-menu-item { padding: 10px 2px; text-align: center; font-size: 14px; color: var(--text-sub); }
.mb-menu-item i { display: block; font-size: 23px; color: var(--primary); margin-bottom: 3px; }
.mb-list-row {
    display: flex; align-items: center; gap: 3px; padding: 11px 9px; background: #fff;
    border-bottom: 1px solid var(--gray-line); font-size: 16px;
}
.mb-list-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.mb-list-row:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.mb-list-row i { width: 22px; color: var(--primary); text-align: center; }
.mb-list-row .arrow { margin-left: auto; color: var(--gray-text); }
.mb-list-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 8px; }

/* 进度条 */
.progress { height: 8px; background: var(--gray-bg); border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 4px; }

/* ========== 空状态/提示 ========== */
.empty-box { text-align: center; padding: 40px 10px; color: var(--gray-text); }
.empty-box i { font-size: 44px; margin-bottom: 8px; display: block; opacity: .4; }
.empty-box p { font-size: 16px; }
.toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px; border-radius: var(--radius);
    font-size: 16px; z-index: 3000; max-width: 80%; text-align: center;
}

/* ========== 分页 ========== */
.pager-bar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0; }
.pager-inner { max-width: 1200px; margin: 0 auto; padding: 8px 10px; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.pager-btn, .pager-num {
    min-width: 34px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--gray-line); border-radius: var(--radius-sm); font-size: 15px; color: var(--text-sub); background: #fff;
}
.pager-num.active, .pager-btn:active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-total { margin-left: auto; font-size: 14px; color: var(--gray-text); }

/* ========== 评价 ========== */
.review-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 9px; margin-bottom: 8px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.review-head img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 2px solid var(--primary-bg); background: var(--bg); flex-shrink: 0; }
.stars { color: #FFB400; font-size: 15px; letter-spacing: 1px; }

/* ============================================
   前台通用组件补齐（移动端优先·图标为主文字为辅）
   作者：星球软件CEWWW
   ============================================ */

/* ========== 卡片内部结构 ========== */
.card-body { padding: 3px 0; }
.card-header { padding: 0 0 8px; border-bottom: 1px solid var(--gray-line); margin-bottom: 8px; }
.card-header h3 { font-size: 16px; font-weight: 700; color: var(--brown-dark); display: flex; align-items: center; gap: 3px; }
.card-header h3 i { color: var(--primary); }

/* ========== Banner 轮播项 ========== */
.banner-item { display: block; position: relative; width: 100%; height: 160px; overflow: hidden; border-radius: var(--radius); }
.banner-item img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
.banner-text h2 { font-size: 17px; font-weight: 700; }
.banner-text p { font-size: 13px; opacity: .92; margin-top: 2px; }

/* ========== 快捷入口（图标为主） ========== */
.quick-entry { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 4px; margin-bottom: 8px; text-align: center; }
.quick-entry .quick-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; color: var(--brown-medium); font-size: 13px; }
.quick-entry .quick-item i { font-size: 24px; display: block; }
.quick-entry .quick-item:active { opacity: .7; }

/* ========== 区块卡片（商品/活动/资讯标题区） ========== */
.section-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; margin-bottom: 8px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-title h3 { font-size: 16px; font-weight: 700; color: var(--brown-dark); display: flex; align-items: center; gap: 3px; }
.section-title h3 i { font-size: 18px; }
.section-title a { font-size: 13px; color: var(--gray-text); display: flex; align-items: center; gap: 3px; }
.section-title a i { font-size: 11px; }

/* ========== 商品网格 ========== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.product-grid .product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-img { position: relative; width: 100%; padding-top: 100%; background: var(--gray-bg); overflow: hidden; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-img > i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; color: #ccc; }
.product-tag { position: absolute; top: 4px; left: 4px; background: var(--primary); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: var(--radius-sm); }
.old-price { font-size: 12px; color: var(--gray-text); text-decoration: line-through; margin-left: 4px; font-weight: 400; }

/* ========== 活动网格 ========== */
.activity-grid { display: grid; grid-template-columns: 1fr; gap: 3px; }
.activity-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.activity-cover { position: relative; width: 100%; height: 130px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.activity-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activity-cover > i { font-size: 36px; color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.activity-fee { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm); }
.activity-info { padding: 8px; display: flex; flex-direction: column; gap: 3px; }
.activity-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.activity-meta { font-size: 13px; color: var(--gray-text); display: flex; align-items: center; gap: 3px; }
.activity-meta i { color: var(--primary); width: 16px; text-align: center; }

/* ========== 资讯列表 ========== */
.news-list { display: flex; flex-direction: column; gap: 3px; }
.news-item { display: flex; gap: 3px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-line); }
.news-item:last-child { border-bottom: none; }
.news-item img { width: 80px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.news-thumb { width: 80px; height: 60px; border-radius: var(--radius-sm); background: var(--primary-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.news-thumb i { font-size: 24px; color: var(--primary); }
.news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.news-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; gap: 3px; }
.news-meta i { width: 14px; text-align: center; }

/* ========== 分类滚动条 ========== */
.cat-scroll { display: flex; gap: 3px; overflow-x: auto; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 10px; min-width: 56px; border-radius: var(--radius); color: var(--text-sub); font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.cat-item i { font-size: 20px; color: var(--primary); }
.cat-item.active {
    background: var(--primary-bg); color: var(--primary-dark); font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--primary);
}
.cat-item.active i { color: var(--primary); }
.cat-item.active span { position: relative; }
.cat-item.active span::after {
    content: ''; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
    width: 14px; height: 2px; border-radius: 2px; background: var(--primary);
}

/* 二级分类：选中大类后换行排列的标签列表 */
.subcat-wrap { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 10px; }
.subcat-item {
    padding: 5px 12px; font-size: 13px; line-height: 1.4; color: var(--text-sub);
    background: var(--gray-bg); border-radius: var(--radius-sm); white-space: nowrap;
}
.subcat-item.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ========== 首页排行榜（一行两列：收藏 | 销售） ========== */
.rank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.rank-col { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.rank-col-head {
    padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--gray-line); white-space: nowrap;
}
.rank-col-head i { margin-right: 4px; }
.rank-list { display: flex; flex-direction: column; }
.rank-item {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px;
    border-bottom: 1px solid var(--gray-line); min-width: 0;
}
.rank-item:last-child { border-bottom: none; }
.rank-no {
    flex-shrink: 0; width: 18px; height: 18px; line-height: 18px; text-align: center;
    border-radius: 3px; font-size: 12px; font-weight: 700; font-style: normal;
    background: var(--gray-bg); color: var(--text-sub);
}
.rank-no-1 { background: #FF4D2E; color: #fff; }
.rank-no-2 { background: #FF8A3D; color: #fff; }
.rank-no-3 { background: #FFB83D; color: #fff; }
.rank-img {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--gray-bg); overflow: hidden; display: flex;
    align-items: center; justify-content: center; color: #CCC; font-size: 14px;
}
.rank-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rank-name {
    font-size: 12px; color: var(--text); line-height: 1.3;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-sub { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.rank-sub b { color: var(--primary); font-size: 13px; }
.rank-empty { padding: 16px 8px; font-size: 12px; color: var(--text-sub); text-align: center; }

/* ========== 搜索栏 ========== */
.search-bar { display: flex; gap: 3px; margin-bottom: 8px; }
.search-bar .form-control { flex: 1; min-height: 38px; }
.search-bar .btn { min-width: 40px; padding: 8px 12px; }

/* ========== 会员类型标签 ========== */
.member-type-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; font-size: 12px; border-radius: var(--radius-sm); background: var(--primary-bg); color: var(--primary-dark); margin-right: 4px; }

/* ========== 商品详情页 ========== */
.product-detail-img { width: 100%; height: 280px; background: var(--gray-bg); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-img > i { font-size: 80px; color: #ccc; }
.product-detail-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.price-now { font-size: 26px; font-weight: 800; color: var(--danger); }
.price-old { font-size: 14px; color: var(--gray-text); text-decoration: line-through; }
.product-detail-name { font-size: 18px; font-weight: 700; color: var(--brown-dark); line-height: 1.4; margin-bottom: 4px; }
.product-detail-sub { font-size: 14px; color: var(--text-sub); margin-bottom: 6px; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 3px; font-size: 13px; color: var(--gray-text); }
.product-detail-meta span { margin-right: 8px; }
.product-detail-content { font-size: 15px; line-height: 1.7; color: var(--text); word-break: break-word; }
.product-detail-content img { max-width: 100%; border-radius: var(--radius); margin: 6px 0; }
.product-detail-content p { margin-bottom: 8px; }

/* ========== 详情底部操作栏 ========== */
.detail-actions { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 99; background: #fff; border-top: 1px solid var(--gray-line); padding: 7px 10px; display: flex; align-items: center; gap: 3px; box-shadow: 0 -2px 8px rgba(0,0,0,.05); }
.action-icon { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-sub); width: 46px; flex-shrink: 0; background: none; border: none; }
.action-icon i { font-size: 20px; color: var(--brown-medium); margin-bottom: 2px; }
.action-icon .fa-heart.active { color: var(--danger); }

/* ========== 批链详情页（package_detail 专用，pkg- 前缀隔离） ========== */
.pkg-detail-page { padding-bottom: 60px; }
@keyframes pkgFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pkg-detail-page > * { animation: pkgFadeUp .3s ease both; }
.pkg-detail-page > *:nth-child(2) { animation-delay: .05s; }
.pkg-detail-page > *:nth-child(3) { animation-delay: .1s; }
.pkg-detail-page > *:nth-child(4) { animation-delay: .15s; }

/* 主图信息卡 */
.pkg-hero { padding: 0; overflow: hidden; }
.pkg-hero-img {
    position: relative; width: 100%; height: 240px;
    background: linear-gradient(135deg, #9C27B0, #673AB7);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pkg-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pkg-hero:active .pkg-hero-img img { transform: scale(1.03); }
.pkg-hero-img > i { font-size: 72px; color: rgba(255,255,255,.55); }
.pkg-hero-type {
    position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 10px; border-radius: 20px; background: rgba(0,0,0,.45); color: #fff;
    font-size: 12px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pkg-hero-body { padding: 12px; }
.pkg-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pkg-price { font-size: 26px; font-weight: 800; color: var(--danger); line-height: 1.1; letter-spacing: -.5px; }
.pkg-price-old { font-size: 13px; color: var(--gray-text); text-decoration: line-through; }
.pkg-price-off {
    margin-left: auto; font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #FF6B35, #FF8C5A); padding: 2px 8px; border-radius: var(--radius-sm);
}
.pkg-name { font-size: 18px; font-weight: 700; color: var(--brown-dark); line-height: 1.4; margin-bottom: 10px; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-chip {
    display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--brown-medium);
    background: #F6F0FA; border: 1px solid #EADDF5; padding: 3px 10px; border-radius: 20px;
}
.pkg-chip i { color: #9C27B0; font-size: 11px; }

/* 等级定格权益卡（暖色渐变 VIP 卡） */
.pkg-benefit {
    border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #FF8C5A 0%, #FF6B35 55%, #F4511E 100%); color: #fff;
}
.pkg-benefit-hd {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 14px 9px; font-size: 15px; font-weight: 700;
}
.pkg-benefit-hd i { font-size: 16px; }
.pkg-benefit-tag {
    margin-left: auto; font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 20px;
}
.pkg-benefit-bd { display: flex; gap: 12px; align-items: flex-start; padding: 0 14px 14px; }
.pkg-benefit-level {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.65);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 4px rgba(255,255,255,.12); font-size: 20px;
}
.pkg-benefit-list { flex: 1; list-style: none; margin: 0; padding: 0; }
.pkg-benefit-list li {
    position: relative; padding-left: 19px; font-size: 13px; line-height: 1.65;
    margin-bottom: 6px; color: rgba(255,255,255,.95);
}
.pkg-benefit-list li:last-child { margin-bottom: 0; }
.pkg-benefit-list li > i { position: absolute; left: 0; top: 4px; color: #FFE082; font-size: 12px; }
.pkg-benefit-list b { color: #fff; }
.pkg-benefit-list .level-badge { vertical-align: middle; font-size: 12px; padding: 1px 7px; }

/* 专属权益提示条 */
.pkg-notice {
    display: flex; gap: 8px; align-items: flex-start;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 11px 12px; margin-bottom: 8px; font-size: 13px; color: var(--text-sub); line-height: 1.6;
}
.pkg-notice i { color: #9C27B0; font-size: 15px; margin-top: 2px; }
.pkg-notice > div { flex: 1; }

/* 内容版块（紫色竖条标题） */
.pkg-section-hd {
    display: flex; align-items: center; padding: 0 0 8px;
    border-bottom: 1px solid var(--gray-line); margin-bottom: 8px;
}
.pkg-section-hd h3 {
    font-size: 16px; font-weight: 700; color: var(--brown-dark);
    display: flex; align-items: center; gap: 7px; margin: 0;
}
.pkg-section-hd h3::before {
    content: ''; width: 3px; height: 15px; border-radius: 2px;
    background: linear-gradient(#9C27B0, #673AB7);
}

/* 底部购买按钮（渐变 CTA） */
.pkg-actions { padding: 8px 12px; }
.btn-buy {
    height: 44px; justify-content: center; align-items: center; gap: 6px;
    border: none; border-radius: var(--radius); font-size: 16px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #FF8C5A, #FF6B35 60%, #F4511E);
    box-shadow: 0 4px 12px rgba(255,107,53,.35);
    transition: transform .1s ease, box-shadow .1s ease;
}
.btn-buy:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(255,107,53,.3); }

/* 桌面端限宽居中，主图加高 */
@media (min-width: 768px) {
    .pkg-detail-page { max-width: 720px; margin: 0 auto; }
    .pkg-hero-img { height: 340px; }
}

/* ========== 合规公示页 ========== */
.site-footer { background: #fafafa; border-top: 1px solid #eee; padding: 12px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-bottom: 6px; }
.footer-links a { font-size: 12px; color: var(--text-sub); text-decoration: none; padding: 0 6px; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 12px; color: #bbb; }
.compliance-content h4 { font-size: 15px; color: var(--brown-dark); margin: 16px 0 8px; padding-left: 10px; border-left: 3px solid var(--primary); }
.compliance-content p { font-size: 13px; color: var(--text); line-height: 1.7; margin: 6px 0; }
.compliance-content ul { margin: 8px 0; padding-left: 20px; }
.compliance-content li { font-size: 13px; color: var(--text); line-height: 1.7; }
.compliance-table th { font-size: 13px; color: var(--brown-dark); }
.compliance-table td { font-size: 12px; }
.license-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
@media (min-width: 768px) { .license-grid { grid-template-columns: repeat(3, 1fr); } }

/* 兴趣标签选择（纯CSS选中态，避免JS双切换） */
.tag-chip-list { display: flex; flex-wrap: wrap; gap: 3px; }
.tag-chip input { display: none; }
.tag-chip span { display: inline-block; padding: 6px 14px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; color: var(--text); background: #fff; cursor: pointer; }
.tag-chip input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 评价组件 ========== */
.review-user { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.review-user img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 2px solid var(--primary-bg); background: var(--bg); flex-shrink: 0; }
.review-user span { font-size: 14px; color: var(--text-sub); }
.review-stars { color: #FFB400; font-size: 13px; letter-spacing: 1px; margin-left: auto; }
.review-content { font-size: 14px; color: var(--text); line-height: 1.55; margin-bottom: 3px; }
.review-time { font-size: 12px; color: var(--gray-text); }

/* ========== 详情页信息行 ========== */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--gray-line); font-size: 14px; }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--gray-text); display: flex; align-items: center; gap: 3px; }
.info-row span:first-child::before { content: '\f111'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 6px; color: var(--primary); margin-right: 4px; }
.info-row span:last-child { color: var(--text); font-weight: 600; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 活动详情页 ========== */
.activity-detail-cover { position: relative; width: 100%; height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: var(--radius) var(--radius) 0 0; }
.activity-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activity-detail-cover > i { font-size: 60px; color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.activity-detail-title { font-size: 20px; font-weight: 700; color: var(--brown-dark); line-height: 1.4; margin-bottom: 6px; }
.activity-detail-meta { display: flex; flex-wrap: wrap; gap: 3px; font-size: 14px; color: var(--gray-text); }
.activity-detail-meta span { display: flex; align-items: center; gap: 3px; margin-right: 12px; }
.activity-detail-meta i { color: var(--primary); width: 16px; text-align: center; }

/* ========== 资讯摘要 ========== */
.news-summary { font-size: 13px; color: var(--gray-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0; }

/* ========== 大按钮 ========== */
.btn-lg { padding: 12px 20px; font-size: 16px; }

/* ========== 响应式补充（PC端网格扩展） ========== */
@media (min-width: 768px) {
    .quick-entry { grid-template-columns: repeat(10, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-item { height: 320px; }
    .activity-detail-cover { height: 360px; }
    .activity-detail-title { font-size: 24px; }
}

/* ============================================
   管理后台 ad- 前缀
   ============================================ */
.ad-layout { display: flex; min-height: calc(100vh - var(--brand-h)); }
.ad-sidebar {
    width: 220px; background: var(--brown-dark); color: #D7CCC8;
    flex-shrink: 0; position: fixed; top: var(--brand-h); bottom: 0; left: 0; overflow-y: auto; z-index: 900;
    transition: transform .2s;
}
.ad-logo { height: 52px; display: flex; align-items: center; gap: 3px; padding: 0 14px; font-size: 19px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.ad-logo i { color: var(--primary-light); }
.ad-nav-group { border-bottom: 1px solid rgba(255,255,255,.07); }
.ad-nav-title { display: flex; align-items: center; gap: 3px; padding: 12px 14px; font-size: 16px; cursor: pointer; color: #EFEBE9; }
.ad-nav-title i:first-child { width: 20px; text-align: center; color: var(--primary-light); }
.ad-nav-title span { flex: 1; }
.ad-nav-arrow { font-size: 13px; transition: transform .2s; }
.ad-nav-group.open .ad-nav-arrow { transform: rotate(180deg); }
.ad-nav-sub { display: none; background: rgba(0,0,0,.25); }
.ad-nav-group.open .ad-nav-sub { display: block; }
.ad-nav-sub a { display: flex; align-items: center; gap: 3px; padding: 9px 14px 9px 40px; font-size: 15px; color: #BCAAA4; }
.ad-nav-sub a i { width: 16px; text-align: center; font-size: 14px; }
.ad-nav-sub a:hover, .ad-nav-sub a.active { background: var(--primary); color: #fff; }

.ad-main { flex: 1; margin-left: 220px; min-width: 0; display: flex; flex-direction: column; }
.ad-topbar {
    height: 52px; background: #fff; border-bottom: 1px solid var(--gray-line);
    display: flex; align-items: center; gap: 3px; padding: 0 14px; position: sticky; top: var(--brand-h); z-index: 800;
}
.ad-menu-toggle { display: none; background: none; font-size: 21px; color: var(--brown-dark); }
.ad-page-title { font-size: 19px; font-weight: 700; color: var(--brown-dark); flex: 1; }
.ad-top-right { display: flex; align-items: center; gap: 3px; font-size: 15px; }
.ad-top-link { color: var(--text-sub); padding: 6px 9px; border-radius: var(--radius-sm); }
.ad-admin-name { color: var(--brown-dark); font-weight: 600; padding: 6px 9px; }
.ad-crumb { position: static; }
.ad-content { padding: 10px; flex: 1; }
.ad-footer { text-align: center; padding: 14px; color: var(--gray-text); font-size: 14px; }

/* 后台统计卡片 */
.ad-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-bottom: 10px; }
.ad-stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; align-items: center; gap: 3px; }
.ad-stat i { font-size: 30px; width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); }
.ad-stat .num { font-size: 22px; font-weight: 800; color: var(--brown-dark); line-height: 1.2; }
.ad-stat .lbl { font-size: 15px; color: var(--gray-text); }

/* 后台面板/表格 */
.ad-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
.ad-panel-head { padding: 10px 12px; border-bottom: 1px solid var(--gray-line); display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.ad-panel-head .t { font-size: 17px; font-weight: 700; color: var(--brown-dark); flex: 1; }
.ad-panel-body { padding: 10px 12px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ad-table th { background: #FAFAFA; color: var(--brown-medium); font-weight: 600; padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--gray-line); white-space: nowrap; }
.ad-table td { padding: 9px 8px; border-bottom: 1px solid #F2F2F2; color: var(--text); vertical-align: middle; }
.ad-table tr:hover td { background: #FFFAF7; }
.ad-table .img-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.ad-table .actions { display: flex; gap: 3px; flex-wrap: wrap; }
.ad-table-wrap { overflow-x: auto; }

/* 后台表单 */
.ad-form { max-width: 760px; }
.ad-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ad-form .form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.ad-search-bar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 9px; margin-bottom: 10px; display: flex; gap: 3px; flex-wrap: wrap; align-items: flex-end; }
.ad-search-bar .form-group { margin-bottom: 0; min-width: 150px; }
.ad-search-bar .form-control { min-height: 34px; }

/* 后台按钮 */
.ad-btn { display: inline-flex; align-items: center; gap: 3px; padding: 6px 12px; font-size: 15px; border-radius: var(--radius-sm); border: 1px solid var(--gray-line); background: #fff; color: var(--text-sub); min-height: 30px; }
.ad-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.ad-btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.ad-btn-green { background: var(--success); color: #fff; border-color: var(--success); }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brown-dark), var(--brown-medium)); padding: 14px; }
.login-box { width: 100%; max-width: 380px; background: #fff; border-radius: 5px; box-shadow: var(--shadow-lg); padding: 22px 18px; }
.login-logo { text-align: center; margin-bottom: 16px; }
.login-logo i { font-size: 42px; color: var(--primary); }
.login-logo h1 { font-size: 22px; color: var(--brown-dark); margin-top: 6px; }
.login-logo p { font-size: 15px; color: var(--gray-text); }

/* CKEditor 编辑区域 */
.ck-editor__editable { min-height: 260px; font-size: 16px; }

/* 消息提示行 */
.alert-line { padding: 9px 12px; border-radius: var(--radius); font-size: 15px; margin-bottom: 8px; }
.alert-info { background: #EBF3FF; color: var(--info); }
.alert-warn { background: #FFF7E6; color: var(--warning); }
.alert-error { background: #FDECEC; color: var(--danger); }
.alert-ok { background: #E8F7EE; color: var(--success); }

/* 选项卡 */
.tab-line { display: flex; gap: 3px; border-bottom: 2px solid var(--gray-line); margin-bottom: 9px; overflow-x: auto; }
.tab-line a { padding: 8px 14px; font-size: 16px; color: var(--text-sub); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-line a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #ccc; border-radius: 12px; transition: .2s; }
.switch i::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::before { transform: translateX(20px); }

/* ============================================
   后台补充样式（ad- 前缀统一）
   ============================================ */

/* 后台统计卡片（新） */
.ad-stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; align-items: center; gap: 3px; }
.ad-stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ad-stat-info { flex: 1; min-width: 0; }
.ad-stat-label { font-size: 15px; color: var(--gray-text); margin-bottom: 2px; }
.ad-stat-value { font-size: 22px; font-weight: 800; color: var(--brown-dark); line-height: 1.2; }

/* 后台面板标题 */
.ad-panel-title { font-size: 17px; font-weight: 700; color: var(--brown-dark); flex: 1; display: flex; align-items: center; gap: 3px; }
.ad-panel-title i { color: var(--primary); }

/* 后台表单组+行布局 */
.ad-form-group { margin-bottom: 10px; }
.ad-form-group > label { display: block; margin-bottom: 4px; font-weight: 500; color: var(--brown-medium); font-size: 16px; }
.ad-form-group .req { color: var(--danger); }
.ad-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.ad-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }

/* 复选框行内 */
.checkbox-inline { display: inline-flex; align-items: center; gap: 3px; margin-right: 12px; font-size: 16px; color: var(--text); cursor: pointer; }
.checkbox-inline input { width: 16px; height: 16px; accent-color: var(--primary); }

/* 后台输入框图标包装 */
.ad-input-wrap { position: relative; }
.ad-input-wrap > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-text); font-size: 16px; z-index: 1; }
.ad-input-wrap .form-control { padding-left: 34px; }

/* 后台提示行 */
.ad-alert-line { padding: 9px 12px; border-radius: var(--radius); font-size: 15px; margin-bottom: 8px; background: #FDECEC; color: var(--danger); display: flex; align-items: center; gap: 3px; }

/* 后台登录页 */
.ad-login-wrap { min-height: calc(100vh - var(--brand-h)); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brown-dark), var(--brown-medium)); padding: 14px; }
.ad-login-box { width: 100%; max-width: 380px; background: #fff; border-radius: 5px; box-shadow: var(--shadow-lg); padding: 22px 18px; }
.ad-login-logo { text-align: center; margin-bottom: 16px; }
.ad-login-logo i { font-size: 42px; color: var(--primary); }
.ad-login-logo h1 { font-size: 22px; color: var(--brown-dark); margin-top: 6px; }
.ad-login-logo p { font-size: 15px; color: var(--gray-text); }

/* 后台按钮补充 */
.btn-block { width: 100%; text-align: center; }
.btn-outline { background: #fff; border: 1px solid var(--gray-line); color: var(--text-sub); }

/* 表单必填星号 */
.req { color: var(--danger); margin-left: 2px; }

/* ============================================
   缺失组件补齐 - 101个类
   遵循：图标为主文字为辅 / 圆角移动3px PC5px / gap3px / 间距3px
   ============================================ */

/* ========== 通用提示框 ========== */
.alert { padding: 10px; border-radius: var(--radius); font-size: 14px; margin: 8px 0; display: flex; align-items: center; gap: 3px; }
.alert-success { background: #E8F5E9; color: var(--success); border: 1px solid #C8E6C9; }
.alert-danger { background: #FFEBEE; color: var(--danger); border: 1px solid #FFCDD2; }
.alert i { font-size: 18px; }

.tip-box { background: var(--primary-bg); border-left: 3px solid var(--primary); padding: 8px 10px; margin: 8px 0; font-size: 14px; color: var(--text-sub); border-radius: var(--radius); display: flex; align-items: flex-start; gap: 3px; }
.tip-box i { color: var(--primary); font-size: 18px; margin-top: 2px; }

/* ========== 登录/注册页 auth- 前缀 ========== */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, #FFF3ED 0%, #FFFFFF 60%); padding: 30px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo i { font-size: 48px; color: var(--primary); }
.auth-logo h1 { font-size: 22px; color: var(--brown-dark); margin-top: 6px; font-weight: 700; }
.auth-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; width: 100%; max-width: 360px; }
.auth-title { font-size: 17px; color: var(--brown-dark); text-align: center; margin-bottom: 12px; font-weight: 600; }
.auth-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; gap: 3px; }
.auth-links a { color: var(--primary); }

/* ========== 类型选择（会员类型） type- 前缀 ========== */
.type-list { display: grid; grid-template-columns: 1fr; gap: 3px; }
.type-item { background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 3px; transition: border-color .2s; }
.type-item:active { border-color: var(--primary); }
.type-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: var(--radius); font-size: 22px; flex-shrink: 0; }
.type-info { flex: 1; }
.type-name { font-size: 16px; font-weight: 600; color: var(--brown-dark); }
.type-desc { font-size: 14px; color: var(--text-sub); margin-top: 2px; }

/* ========== 购物车 cart- 前缀 ========== */
.cart-bar { position: fixed; bottom: var(--tab-h); left: 0; right: 0; background: #fff; border-top: 1px solid var(--gray-line); padding: 8px 10px; display: flex; align-items: center; gap: 3px; z-index: 100; }
.cart-img { width: 70px; height: 70px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.cart-name { font-size: 15px; color: var(--text); margin-bottom: 3px; }
.cart-price { color: var(--primary); font-weight: 700; font-size: 16px; }
.cart-qty { display: flex; align-items: center; gap: 3px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--gray-line); background: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-sub); }
.qty-num { width: 40px; text-align: center; border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 4px 0; font-size: 14px; }
.cart-remove { color: var(--danger); font-size: 18px; padding: 4px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #fff; border-top: 1px solid var(--gray-line); font-size: 16px; }
.cart-total .price { color: var(--primary); font-weight: 700; font-size: 18px; }

/* ========== 费用清单 fee- 前缀 ========== */
.fee-box { background: var(--gray-bg); border-radius: var(--radius); padding: 10px; margin: 8px 0; }
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; color: var(--text-sub); }
.fee-row .val { color: var(--text); }
.total, .total-amount { font-size: 16px; font-weight: 600; color: var(--brown-dark); display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px dashed var(--gray-line); margin-top: 6px; }
.total-amount .price, .total .price { color: var(--primary); font-size: 18px; font-weight: 700; }
.discount { color: var(--danger); font-size: 14px; }

/* ========== 批链商品 package- 前缀 ========== */
.package-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.package-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.package-img { position: relative; width: 100%; padding-top: 100%; background: var(--gray-bg); overflow: hidden; }
.package-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.package-img > i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; }
.package-img .package-badge { position: absolute; top: 4px; left: 4px; z-index: 1; }
.package-info { padding: 8px; }
.package-name { font-size: 14px; color: var(--text); margin-bottom: 3px; line-height: 1.4; }
.package-price { color: var(--primary); font-weight: 700; font-size: 16px; }
.package-stock { font-size: 14px; color: var(--text-sub); }
.package-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 14px; padding: 1px 6px; border-radius: var(--radius-sm); }
.package-level { font-size: 14px; color: var(--warning); margin-top: 2px; }
.package-type { font-size: 14px; color: var(--text-sub); margin-bottom: 3px; }

/* ========== 经验/等级 exp- level- 前缀 ========== */
.exp-user-box { display: flex; align-items: center; gap: 3px; background: #fff; padding: 12px; border-radius: var(--radius); }
.exp-level { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 50%; font-size: 20px; flex-shrink: 0; }
.exp-info { flex: 1; }
.exp-info .name { font-size: 16px; font-weight: 600; color: var(--brown-dark); }
.exp-progress { margin-top: 6px; }
.exp-bar { height: 8px; background: var(--gray-line); border-radius: var(--radius-sm); overflow: hidden; }
.exp-bar-inner { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: var(--radius-sm); }
.level-list { display: grid; gap: 3px; }
.level-item { display: flex; align-items: center; gap: 3px; padding: 10px; background: #fff; border-radius: var(--radius); }
.level-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); border-radius: 50%; font-size: 18px; }
.level-name { font-size: 15px; font-weight: 600; color: var(--brown-dark); }
.level-exp { font-size: 14px; color: var(--text-sub); }
.level-detail { font-size: 14px; color: var(--text-sub); flex: 1; }
.level-privilege { font-size: 14px; color: var(--success); }
.level-fix-box { background: var(--primary-bg); border-radius: var(--radius); padding: 12px; margin: 8px 0; display: flex; align-items: center; gap: 3px; }
.level-fix-level { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 50%; font-size: 20px; }
.level-fix-info { flex: 1; }
.level-fix-info .ttl { font-size: 15px; font-weight: 600; color: var(--brown-dark); }
.level-fix-info .dsc { font-size: 14px; color: var(--text-sub); }

/* ========== 积分 points- 前缀 ========== */
.points-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 20px; border-radius: var(--radius); text-align: center; }
.points-balance { font-size: 28px; font-weight: 700; margin-top: 6px; }
.points-header i { font-size: 28px; }

/* ========== 提现 balance- 前缀 ========== */
.balance-box { background: #fff; padding: 14px; border-radius: var(--radius); margin: 8px 0; }
.balance-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; color: var(--text-sub); border-bottom: 1px solid var(--gray-line); }
.balance-item:last-child { border-bottom: none; }
.balance-item .val { color: var(--text); font-weight: 600; }

/* ========== 规则说明 ========== */
.rules-content { background: #fff; padding: 12px; border-radius: var(--radius); font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.rule-list { margin-top: 8px; }
.rule-list .rule-item { padding: 6px 0; border-bottom: 1px dashed var(--gray-line); font-size: 14px; color: var(--text-sub); }
.faq-item { padding: 10px 0; border-bottom: 1px solid var(--gray-line); }
.faq-item .q { font-size: 15px; font-weight: 600; color: var(--brown-dark); margin-bottom: 3px; }
.faq-item .a { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* ========== 隐司面具 mask- 前缀 ========== */
.mask-avatar { position: relative; display: inline-block; }
.mask-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.mask-wearing { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; background: var(--primary); color: #fff; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mask-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 14px; padding: 1px 6px; border-radius: var(--radius-sm); margin-left: 4px; }
.mask-demo { margin-top: 12px; }
.mask-demo-card { background: linear-gradient(135deg, #3E2723, #5D4037); color: #fff; border-radius: var(--radius); padding: 16px; text-align: center; }
.mask-demo-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.mask-preview { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); font-size: 36px; }
.mask-name { font-size: 15px; color: #FFCCBC; }
.mask-level { font-size: 14px; color: var(--primary-light); margin-top: 3px; }

/* ========== 会员列表/主页 member- 前缀 ========== */
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; min-width: 0; }
.member-avatar-wrap { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.member-avatar-wrap img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; border: 2px solid var(--primary-bg); background: var(--bg); }
.member-intro { padding: 8px; text-align: center; }
.member-stats { display: flex; justify-content: space-around; padding: 6px 0; font-size: 14px; color: var(--text-sub); }
.member-type { display: inline-block; background: var(--primary-bg); color: var(--primary); font-size: 14px; padding: 1px 6px; border-radius: var(--radius-sm); }

/* ========== 会员主页 profile ========== */
.mp-card { padding: 16px; }
.mp-top { display: flex; gap: 16px; align-items: flex-start; }
.mp-avatar { position: relative; width: 120px; height: 120px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 3px solid var(--primary); background: var(--bg); box-shadow: 0 4px 12px rgba(255,107,53,.18); }
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-avatar .mask-wearing { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; text-align: center; padding: 2px 0; }
.mp-info { flex: 1; min-width: 0; }
.mp-name { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 6px; }
.mp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mp-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.mp-row { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-sub); }
.mp-row i { width: 18px; text-align: center; color: var(--primary); font-size: 13px; }
.mp-row span { color: var(--gray-text); min-width: 64px; }
.mp-row strong { color: var(--text); font-weight: 600; }
.mp-stats { display: flex; gap: 18px; padding-top: 10px; border-top: 1px solid var(--gray-line); }
.mp-stats span { font-size: 14px; color: var(--text-sub); }
.mp-stats strong { font-size: 17px; font-weight: 700; color: var(--text); margin-right: 3px; }
.mp-intro { margin-top: 16px; padding: 12px; background: #FAFAF7; border-radius: 10px; border-left: 3px solid var(--primary); }
.mp-intro-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.mp-intro-title i { color: var(--primary); }
.mp-intro-text { font-size: 14px; line-height: 1.7; color: var(--text-sub); }
.mp-photos { margin-top: 16px; }
.mp-photos-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.mp-photos-title i { color: var(--primary); }
.mp-photos-grid { display: flex; flex-direction: column; gap: 10px; }
.mp-photo-item { width: 100%; border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow); }
.mp-photo-item img { width: 100%; height: auto; display: block; }
.mp-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mp-action-form { display: block; }

/* 可约时段按钮（会员主页） */
.mp-slots { margin-top: 14px; padding: 12px; background: #FAFAF7; border-radius: 10px; border-left: 3px solid var(--primary); }
.mp-slots-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.mp-slots-title i { color: var(--primary); }
.mp-slots-empty { font-size: 14px; color: var(--text-sub); padding: 6px 0; }
.mp-slots-empty .raw { color: var(--gray-text); margin-top: 4px; }
.mp-slot-day { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 14px; }
.mp-slot-day:last-child { margin-bottom: 0; }
.mp-slot-day-name { font-weight: 600; color: var(--text); min-width: 44px; }
.mp-slot { display: inline-flex; align-items: center; padding: 5px 12px; background: var(--primary); color: #fff; border-radius: 4px; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid var(--primary); transition: opacity .15s, transform .1s; }
.mp-slot:active { transform: scale(.97); }
.mp-slot:hover { opacity: .9; }
.mp-slot.disabled, .mp-slot[aria-disabled="true"] { background: #E0E0E0; color: #9E9E9E; border-color: #E0E0E0; cursor: not-allowed; pointer-events: none; }

/* 可约时间编辑器（slot-editor） */
.slot-editor { border: 1px solid var(--gray-line); border-radius: 8px; padding: 12px; background: #fff; }
.slot-day-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--gray-line); }
.slot-day-row:last-child { border-bottom: none; }
.slot-day-label { font-weight: 600; color: var(--text); min-width: 44px; font-size: 14px; padding-top: 4px; }
.slot-day-items { flex: 1; min-width: 200px; }
.slot-editor .slot-add { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; padding: 4px 8px; }
.slot-editor .slot-del { padding: 2px 6px; }
.slot-editor input[type="time"] { padding: 4px 6px; border: 1px solid var(--gray-line); border-radius: 4px; font-size: 13px; }
.btn-sm { font-size: 12px; padding: 3px 8px; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; }

/* ========== 资讯详情 news-detail- 前缀 ========== */
.news-detail-cover { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.news-detail-title { font-size: 20px; font-weight: 700; color: var(--brown-dark); line-height: 1.4; }
.news-detail-subtitle { font-size: 14px; color: var(--text-sub); margin: 4px 0 10px; }
.news-detail-meta { display: flex; align-items: center; gap: 3px; font-size: 14px; color: var(--gray-text); padding-bottom: 10px; border-bottom: 1px solid var(--gray-line); margin-bottom: 10px; }
.news-detail-content { font-size: 16px; line-height: 1.7; color: var(--text); }
.news-detail-content img { max-width: 100%; border-radius: var(--radius); margin: 8px 0; }

/* ========== 订单确认 order-confirm- 前缀 ========== */
.order-confirm-item { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: var(--radius); margin-bottom: 6px; align-items: center; }
.order-confirm-item img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 2px solid var(--primary-bg); background: var(--bg); flex-shrink: 0; }
.order-confirm-info { flex: 1; }
.order-confirm-name { font-size: 15px; color: var(--text); margin-bottom: 3px; }
.order-confirm-spec { font-size: 14px; color: var(--text-sub); }
.order-confirm-price { color: var(--primary); font-weight: 700; font-size: 16px; }
.order-confirm-total { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #fff; border-top: 1px solid var(--gray-line); font-size: 16px; font-weight: 600; }

/* ========== 邀请 invitee- 前缀 ========== */
.invitee-list { margin: 8px 0; }
.invitee-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border-radius: var(--radius); margin-bottom: 3px; }
.invitee-item img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 2px solid var(--primary-bg); background: var(--bg); flex-shrink: 0; }
.invitee-item .name { flex: 1; font-size: 14px; color: var(--text); }
.invitee-item .status { font-size: 14px; }

/* ========== 结算 settle- 前缀 ========== */
.settle-item { background: #fff; border-radius: var(--radius); padding: 10px; margin-bottom: 6px; }
.settle-title { font-size: 15px; font-weight: 600; color: var(--brown-dark); margin-bottom: 4px; }
.settle-info { font-size: 14px; color: var(--text-sub); margin: 2px 0; }
.settle-fee { color: var(--primary); font-weight: 700; font-size: 16px; }
.settle-meta { font-size: 14px; color: var(--gray-text); margin-top: 4px; }

/* ========== 支付项 ========== */
.pay-item { display: flex; align-items: center; gap: 3px; padding: 12px; background: #fff; border-radius: var(--radius); margin-bottom: 3px; }
.pay-item i { font-size: 22px; color: var(--primary); }
.pay-item .name { flex: 1; font-size: 15px; color: var(--text); }

/* ========== 售罄标识 ========== */
.sold-out { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; padding: 1px 6px; border-radius: var(--radius-sm); }

/* ============================================
   首页专属组件
   ============================================ */

/* ========== 首页分区淡彩卡片（白色商品卡在淡彩底上凸显） ========== */
.home-section { background: var(--card-bg, #fff); border: 1px solid var(--card-border, var(--gray-line)); }
.home-section .product-card,
.home-section .package-card,
.home-section .activity-card,
.home-section .member-card { background: #fff; }
.home-section .section-title h3 { border-left: 3px solid var(--card-accent, var(--primary)); padding-left: 6px; }
.section-card--news { --card-bg: #EAF2FE; --card-border: #D6E6FD; --card-accent: #2196F3; }
.section-card--mask { --card-bg: #EFEBE9; --card-border: #DCC9C2; --card-accent: #607D8B; }
.section-card--pkg  { --card-bg: #F4EEFA; --card-border: #E3D6F4; --card-accent: #9C27B0; }
.section-card--act  { --card-bg: #EAF7EE; --card-border: #D2EBDC; --card-accent: #4CAF50; }
.section-card--rec  { --card-bg: #FFF1EA; --card-border: #FBDCCB; --card-accent: #FF6B35; }
.section-card--mem  { --card-bg: #E9F4F7; --card-border: #D0E8EF; --card-accent: #2196F3; }
.section-card--pts  { --card-bg: #FFF8E1; --card-border: #F6E8B0; --card-accent: #F5A623; }

/* ========== 资讯单条滚动（左侧图片高度=右侧文字总高度） ========== */
.news-ticker-viewport { overflow: hidden; height: 54px; }
.news-ticker-track { transition: transform .45s ease; }
.news-tick { display: flex; align-items: stretch; gap: 3px; height: 54px; color: var(--text); }
.news-tick-img {
    align-self: stretch; aspect-ratio: 1/1; max-width: 54px; flex-shrink: 0;
    border-radius: var(--radius-sm); overflow: hidden;
    background: var(--primary-bg); display: flex; align-items: center; justify-content: center;
}
.news-tick-img img { width: 100%; height: 100%; object-fit: cover; }
.news-tick-img i { font-size: 20px; color: var(--primary); }
.news-tick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.news-tick-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-tick-meta { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; gap: 3px; }
.news-tick-meta i { width: 14px; text-align: center; }

/* ========== 首页活动网格（移动端两列两行） ========== */
.home-activity-grid { grid-template-columns: repeat(2, 1fr); }
.home-activity-grid .activity-cover { height: 96px; }
.home-activity-grid .activity-title { font-size: 13px; -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.home-activity-grid .activity-meta { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ========== 网格内会员卡片（纵向布局覆盖横向列表样式） ========== */
.member-grid .member-card {
    flex-direction: column; align-items: center; text-align: center;
    padding: 10px 4px; margin-bottom: 0; gap: 3px;
    min-width: 0; overflow: hidden;
}
.member-grid .member-avatar-wrap { margin: 0 auto; width: 120px; height: 120px; flex-shrink: 0; }
.member-grid .member-name { justify-content: center; font-size: 15px; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-grid .member-intro { padding: 0; font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.member-grid .member-type { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-grid .member-stats { width: 100%; min-width: 0; justify-content: space-around; font-size: 12px; }
.member-grid .member-stats span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-grid .mask-badge { position: absolute; right: -2px; bottom: -2px; margin-left: 0; width: 20px; height: 20px; padding: 0; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.member-grid .mask-badge i { font-size: 11px; }

/* 首页批链一行两个（保持两列） */
.home-package-grid { grid-template-columns: repeat(2, 1fr); }

/* PC端：活动4列、会员3列、批链保持2列 */
@media (min-width: 768px) {
    .home-activity-grid { grid-template-columns: repeat(4, 1fr); }
    .home-activity-grid .activity-cover { height: 140px; }
    .home-member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-package-grid { grid-template-columns: repeat(2, 1fr); }
    .news-ticker-viewport { height: 64px; }
    .news-tick { height: 64px; }
    .news-tick-img { max-width: 64px; }
}

/* ========== 通用图片上传组件 ========== */
.upload-wrap { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.upload-wrap input[data-upload] { flex: 1; min-width: 160px; }
.upload-btn { flex-shrink: 0; padding: 7px 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 3px; }
.upload-btn i { font-size: 14px; }
.upload-preview {
    width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden;
    background: var(--gray-bg); border: 1px solid var(--gray-line); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-field { margin-bottom: 6px; }

/* ========== 多图上传组件 ========== */
.multi-src { display: none !important; }
.multi-upload { margin-top: 3px; }
.mu-list { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 3px; }
.mu-item { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.mu-item img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius-sm); border: 1px solid var(--gray-line); background: var(--gray-bg);
}
.mu-del {
    position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
    border: none; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff;
    font-size: 13px; line-height: 18px; text-align: center; padding: 0; cursor: pointer;
}
.mu-del:active { background: var(--danger); }
.mu-add {
    width: 64px; height: 64px; border: 1px dashed var(--gray-line); border-radius: var(--radius-sm);
    background: var(--gray-bg); color: var(--gray-text); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 12px;
}
.mu-add i { font-size: 18px; }
.mu-add:active { border-color: var(--primary); color: var(--primary); background: #FFF3EE; }
.mu-add:disabled { opacity: .6; cursor: default; }

/* ==========================================================================
   后台旧页面组件现代化兼容层（仅 .ad-body 后台作用域，不影响前台）
   设计语言：白卡 + 柔阴影 + 主色#FF6B35，PC 圆角≤5px，字号≥12px
   ========================================================================== */

/* ---- 基础排版 ---- */
body.ad-body { font-size: 14px; color: var(--text); }

/* ---- 页头 ---- */
body.ad-body .admin-page-header {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
body.ad-body .page-title-row {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
body.ad-body .page-title {
    font-size: 20px; font-weight: 700; color: var(--brown-dark);
    display: flex; align-items: center; gap: 8px; margin: 0;
}
body.ad-body .page-title i { color: var(--primary); font-size: 18px; }
body.ad-body .admin-module-menu { display: flex; flex-wrap: wrap; gap: 8px; }
body.ad-body .admin-module-menu a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 5px; background: #fff; color: #666;
    font-size: 13px; border: 1px solid var(--gray-line);
    box-shadow: 0 1px 2px rgba(62,39,35,.05);
    transition: all .2s;
}
body.ad-body .admin-module-menu a:hover { color: var(--primary); border-color: var(--primary); }
body.ad-body .admin-module-menu a.active {
    background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}

/* ---- 卡片容器 ---- */
body.ad-body .card,
body.ad-body .admin-card {
    background: #fff; border-radius: 5px; padding: 0; margin-bottom: 12px;
    border: 1px solid #EDEEF0; box-shadow: 0 1px 4px rgba(62,39,35,.07);
}
body.ad-body .card-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 12px 14px; border-bottom: 1px solid #F0F0F0;
}
body.ad-body .card-header {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    padding: 12px 14px; border-bottom: 1px solid #F0F0F0; margin: 0; background: transparent;
}
body.ad-body .card-header h3 {
    margin: 0; font-size: 15px; font-weight: 700; color: var(--brown-dark);
    display: flex; align-items: center; gap: 7px;
}
body.ad-body .card-header h3 i { color: var(--primary); }
body.ad-body .card-head .card-title,
body.ad-body .card .card-title { margin: 0; font-size: 15px; }
body.ad-body .card-body { padding: 14px; }
body.ad-body .card .more { font-size: 13px; font-weight: 400; }

/* ---- 统计卡片 ---- */
body.ad-body .admin-stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px; margin-bottom: 14px;
}
body.ad-body .admin-stat-card,
body.ad-body .stat-card {
    background: #fff; border-radius: 5px; border: 1px solid #EDEEF0;
    box-shadow: 0 1px 4px rgba(62,39,35,.07);
    padding: 14px; display: flex; align-items: center; gap: 12px;
    transition: box-shadow .2s, transform .2s;
}
body.ad-body .admin-stat-card:hover,
body.ad-body .stat-card:hover {
    box-shadow: 0 4px 14px rgba(62,39,35,.10); transform: translateY(-1px);
}
body.ad-body .stat-icon-wrap,
body.ad-body .stat-icon {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
}
body.ad-body .stat-detail { min-width: 0; }
body.ad-body .stat-num,
body.ad-body .stat-value {
    font-size: 22px; font-weight: 800; color: var(--brown-dark); line-height: 1.2;
}
body.ad-body .stat-sub,
body.ad-body .stat-title,
body.ad-body .ad-stat-title {
    font-size: 13px; color: var(--gray-text); margin-top: 2px;
}

/* ---- 表格 ---- */
body.ad-body .table-responsive,
body.ad-body .ad-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.ad-body table.admin-table {
    width: 100%; border-collapse: collapse; font-size: 13px; background: #fff;
}
body.ad-body .admin-table th {
    background: #FAFAF8; color: #5D4037; font-weight: 600; font-size: 13px;
    padding: 10px 12px; text-align: left; white-space: nowrap;
    border-bottom: 1px solid #ECECEC;
}
body.ad-body .admin-table td {
    padding: 10px 12px; border-bottom: 1px solid #F3F3F3; color: var(--text);
    vertical-align: middle;
}
body.ad-body .admin-table tbody tr { transition: background .15s; }
body.ad-body .admin-table tbody tr:hover { background: #FFFAF7; }
body.ad-body .admin-table tbody tr:last-child td { border-bottom: none; }
body.ad-body .admin-table img,
body.ad-body .img-thumb {
    width: 44px; height: 44px; object-fit: cover; border-radius: 4px;
    border: 1px solid var(--gray-line);
}

/* ---- 表单 ---- */
body.ad-body .form-group { margin-bottom: 13px; }
body.ad-body .form-label,
body.ad-body .ad-form-label {
    display: block; font-size: 13px; font-weight: 600; color: #5D4037;
    margin-bottom: 6px;
}
body.ad-body .form-control,
body.ad-body .ad-input {
    width: 100%; min-height: 36px; padding: 7px 12px;
    border: 1px solid #DCDFE6; border-radius: 4px; background: #fff;
    font-size: 13px; color: var(--text); line-height: 1.4;
    transition: border-color .2s, box-shadow .2s;
}
body.ad-body .form-control:hover,
body.ad-body .ad-input:hover { border-color: #C0C4CC; }
body.ad-body .form-control:focus,
body.ad-body .ad-input:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,.12); outline: none;
}
body.ad-body textarea.form-control,
body.ad-body textarea.ad-input { min-height: 110px; resize: vertical; }
body.ad-body select.form-control,
body.ad-body select.ad-input,
body.ad-body .form-select {
    width: 100%; min-height: 36px; padding: 7px 30px 7px 12px;
    border: 1px solid #DCDFE6; border-radius: 4px; background: #fff;
    font-size: 13px; color: var(--text); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    transition: border-color .2s, box-shadow .2s;
}
body.ad-body select.form-control:focus,
body.ad-body select.ad-input:focus,
body.ad-body .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,53,.12); outline: none;
}
body.ad-body .form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.ad-body .form-row-2 {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
body.ad-body .checkbox-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #555; }
body.ad-body .ad-form-filter {
    background: #fff; border-radius: 5px; border: 1px solid #EDEEF0;
    box-shadow: 0 1px 4px rgba(62,39,35,.07);
    padding: 12px 14px; margin-bottom: 12px;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
}
body.ad-body .ad-form-filter .form-group,
body.ad-body .ad-form-filter .ad-form-group { margin-bottom: 0; }
body.ad-body .filter-bar {
    position: static; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
    background: #fff; border-radius: 5px; border: 1px solid #EDEEF0;
    box-shadow: 0 1px 4px rgba(62,39,35,.07);
    padding: 12px 14px; margin-bottom: 12px; overflow: visible;
}
body.ad-body .filter-bar .form-group,
body.ad-body .filter-bar .ad-form-group { margin-bottom: 0; }

/* ---- 按钮（PC 风格） ---- */
body.ad-body .btn {
    min-height: 34px; padding: 7px 16px; font-size: 13px; border-radius: 4px;
    border: 1px solid #DCDFE6; font-weight: 500; cursor: pointer;
    transition: all .2s; text-decoration: none;
}
body.ad-body .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
body.ad-body .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 3px 10px rgba(255,107,53,.30); }
body.ad-body .btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
body.ad-body .btn-outline:hover { background: var(--primary-bg); color: var(--primary-dark); }
body.ad-body .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
body.ad-body .btn-danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; box-shadow: 0 3px 10px rgba(220,38,38,.25); }
body.ad-body .btn-default,
body.ad-body .btn-outline-secondary {
    background: #fff; border-color: #DCDFE6; color: #555;
}
body.ad-body .btn-default:hover,
body.ad-body .btn-outline-secondary:hover { border-color: var(--primary); color: var(--primary); }
body.ad-body .btn-lg { min-height: 40px; padding: 9px 22px; font-size: 14px; }
body.ad-body .btn-sm { min-height: 28px; padding: 4px 11px; font-size: 12px; }
body.ad-body .ad-btn-sm { min-height: 28px; padding: 4px 11px; font-size: 12px; }
body.ad-body .ad-btn-default {
    background: #fff; border: 1px solid #DCDFE6; color: #555;
}
body.ad-body .ad-btn-default:hover { border-color: var(--primary); color: var(--primary); background: #fff; }

/* ---- 操作按钮组（详情页） ---- */
body.ad-body .action-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
body.ad-body .action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 34px; padding: 7px 16px; border-radius: 4px; font-size: 13px;
    background: #fff; border: 1px solid #DCDFE6; color: #555; cursor: pointer;
    text-decoration: none; transition: all .2s;
}
body.ad-body .action-btn:hover { border-color: var(--primary); color: var(--primary); }
body.ad-body .action-btn.edit { background: var(--primary); border-color: var(--primary); color: #fff; }
body.ad-body .action-btn.edit:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 3px 10px rgba(255,107,53,.30); }
body.ad-body .action-btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
body.ad-body .action-btn.danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }

/* ---- 徽章/状态标签 ---- */
body.ad-body .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; font-size: 12px; font-weight: 500; line-height: 1.6;
    border-radius: 10px; background: #F0F1F3; color: #777; white-space: nowrap;
}
body.ad-body .badge-success, body.ad-body .bg-success { background: #E8F7EE; color: var(--success); }
body.ad-body .badge-danger, body.ad-body .bg-danger { background: #FDECEC; color: var(--danger); }
body.ad-body .badge-warning, body.ad-body .bg-warning { background: #FFF7E6; color: var(--warning); }
body.ad-body .badge-info, body.ad-body .bg-info { background: #EBF3FF; color: var(--info); }
body.ad-body .badge-primary, body.ad-body .bg-primary { background: var(--primary-bg); color: var(--primary-dark); }
body.ad-body .badge-secondary, body.ad-body .bg-secondary { background: #F0F1F3; color: #777; }
body.ad-body .badge-icon { display: inline-flex; align-items: center; }

/* ---- 提示条 ---- */
body.ad-body .alert {
    border-radius: 5px; padding: 10px 14px; font-size: 13px;
    border: 1px solid transparent; margin-bottom: 12px;
}
body.ad-body .alert-warning { background: #FFF7E6; color: var(--warning); border-color: #FBE3B8; }
body.ad-body .alert-info { background: #EBF3FF; color: var(--info); border-color: #D2E2FF; }

/* ---- 工具类 ---- */
body.ad-body .text-danger { color: var(--danger) !important; }
body.ad-body .text-success { color: var(--success) !important; }
body.ad-body .text-muted { color: var(--gray-text) !important; font-size: 12px; }

/* ---- 详情描述列表 ---- */
body.ad-body .detail-item {
    display: flex; gap: 10px; padding: 9px 0;
    border-bottom: 1px dashed #EFEFEF; font-size: 13px; line-height: 1.6;
}
body.ad-body .detail-item:last-child { border-bottom: none; }
body.ad-body .detail-item .label {
    width: 100px; flex-shrink: 0; color: var(--gray-text); font-weight: 400;
}
body.ad-body .detail-item .value { flex: 1; min-width: 0; color: var(--text); word-break: break-all; }

/* ---- 会员详情信息面板（分组网格） ---- */
body.ad-body .detail-panel {
    display: grid; grid-template-columns: 110px 1fr; gap: 0 16px;
    font-size: 13px; line-height: 1.7;
}
body.ad-body .detail-panel .label {
    color: #8D6E63; padding: 7px 0; border-bottom: 1px dashed #F0E0D8; font-weight: 400;
}
body.ad-body .detail-panel .value {
    color: #3E2723; padding: 7px 0; border-bottom: 1px dashed #F0E0D8; word-break: break-all;
}
body.ad-body .detail-panel .detail-group-title {
    grid-column: 1 / -1;
    margin: 14px 0 4px; padding: 8px 12px;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C5A 100%);
    color: #fff; font-size: 13px; font-weight: 600; border-radius: 6px;
    display: flex; align-items: center; gap: 8px;
}
body.ad-body .detail-panel .detail-group-title:first-child { margin-top: 0; }
body.ad-body .detail-panel .detail-group-title i { font-size: 14px; }
body.ad-body .detail-panel .value:has(.badge) { display: flex; align-items: center; gap: 6px; }

/* ---- 时间线 ---- */
body.ad-body .timeline-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed #EFEFEF; font-size: 13px;
}
body.ad-body .timeline-item:last-child { border-bottom: none; }
body.ad-body .timeline-item .time { width: 130px; flex-shrink: 0; color: var(--gray-text); font-size: 12px; padding-top: 2px; }
body.ad-body .timeline-item .content { flex: 1; min-width: 0; color: var(--text); line-height: 1.6; }

/* ---- 设置菜单 ---- */
body.ad-body .menu-item {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px; border-bottom: 1px solid #F5F5F5;
    color: #555; font-size: 13px; text-decoration: none; transition: all .15s;
}
body.ad-body .menu-item:last-child { border-bottom: none; }
body.ad-body .menu-item i { color: var(--gray-text); width: 16px; text-align: center; }
body.ad-body .menu-item:hover,
body.ad-body .menu-item.active { background: var(--primary-bg); color: var(--primary-dark); }
body.ad-body .menu-item:hover i,
body.ad-body .menu-item.active i { color: var(--primary); }

/* ---- ad 面板补充 ---- */
body.ad-body .ad-panel-tools {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto;
}
body.ad-body .ad-panel-section { padding: 12px 0; border-top: 1px dashed #EFEFEF; }
body.ad-body .ad-panel-section:first-child { border-top: none; padding-top: 0; }
body.ad-body .ad-panel-section-title {
    font-size: 14px; font-weight: 700; color: var(--brown-dark);
    margin: 0 0 10px; display: flex; align-items: center; gap: 7px;
}
body.ad-body .ad-panel-section-title::before {
    content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px;
}

/* ---- 旧网格间距（PC 化） ---- */
body.ad-body .grid-2,
body.ad-body .grid-3,
body.ad-body .grid-4 { gap: 10px; margin-bottom: 12px; }