/* ==================== 全局重置 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei",
        "HarmonyOS Sans SC", "HarmonyOS Sans", "SamsungOne", "SamsungOne SC",
        "MiSans", "MI Lan Pro", "Noto Sans CJK SC", "Source Han Sans SC",
        "Droid Sans Fallback", sans-serif;
    font-size: 14px;
    color: #333;
    background: #fdf7f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-overflow-scrolling: touch;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

input, textarea, button, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
    /* M90: 美业主题色 - 香槟金系 (对齐 tokens.css, 旧玫瑰金 → 香槟金) */
    --primary: #C9A04A;
    --primary-light: #F4D78A;
    --primary-dark: #8A6A2E;
    --secondary: #E0B74D;
    --secondary-light: #F5E6C8;
    --secondary-dark: #B8862A;
    --accent-pink: #FCE4E8;
    --accent-rose: #F09BB8;
    --accent-gold: #E0B74D;
    --success: #52B788;
    --warning: #E88A2A;
    --danger: #DC3545;
    --info: #4A90E2;
    --gray: #8A6A2E;
    --gray-light: #F5E6C8;
    --gray-soft: #F0E5CF;
    --border: #F0E5CF;
    --bg: #FAF3EF;
    --bg-card: #ffffff;
    --text: #5A3F18;
    --text-secondary: #8A6A2E;
    --text-light: #A58346;
    --header-h: 52px;
    --tabbar-h: 60px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==================== 顶部导航 ==================== */
.app-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: calc(var(--header-h) + var(--safe-top));
    padding-top: var(--safe-top);
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
    display: flex; align-items: center;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(201, 160, 74, 0.25);
}
.header-back, .header-action {
    background: none; border: none; color: rgba(255,255,255,0.9);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: color 0.2s;
}
.header-back:active, .header-action:active { color: #fff; }
/* 使用 visibility:hidden 替代 display:none，保持占位以实现标题真正居中 */
.header-back { visibility: hidden; pointer-events: none; }
.app-header.has-back .header-back { visibility: visible; pointer-events: auto; }
.header-title {
    flex: 1; text-align: center;
    font-size: 18px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    letter-spacing: 0.5px;
    /* 确保两侧按钮等宽时标题绝对居中 */
    padding: 0 4px;
}
.header-action { font-size: 14px; font-weight: 500; min-width: 48px; }
/* 确保 header-action 为空时仍占据空间，维持左右对称 */
.header-action:empty { visibility: hidden; }

/* ==================== 主内容区 ==================== */
.app-main {
    padding-top: calc(var(--header-h) + var(--safe-top));
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px + 30px);
    min-height: 100vh;
    max-width: 600px;
    margin: 0 auto;
}

/* 隐藏 tabbar 的页面(登录页等) */
body.page-login .app-tabbar { display: none; }
body.page-login .app-main { padding-bottom: 0; }
body.page-login .app-header { display: none; }
body.page-login .global-version { display: none; }

/* ==================== 靓号UID全局样式 ==================== */
.premium-uid-display {
    color: #B91C1C;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.premium-uid-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #C9A04A 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 3px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(201,160,74,0.4);
}

/* ==================== 全局版本号 ==================== */
.global-version {
    text-align: center;
    padding: 4px 0 calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    color: #BBA88A;
    font-size: 11px;
    letter-spacing: 0.3px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ==================== 离线提示横幅 ==================== */
.offline-banner {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0; right: 0;
    max-width: 600px; margin: 0 auto;
    background: #EF4444;
    color: #fff;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==================== 底部 Tab 栏 ==================== */
.app-tabbar {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(201, 160, 74, 0.1);
    display: flex;
    z-index: 100;
    max-width: 600px; margin: 0 auto;
}
.tab-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-light);
    font-size: 11px;
    gap: 3px;
    position: relative;
    transition: color 0.2s;
    padding-top: 4px;
}
.tab-item.active { color: var(--primary); }
.tab-item.tab-center { color: #fff; }
.tab-center-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--gradient-gold-btn);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 300;
    margin-top: -22px;
    box-shadow: 0 6px 20px rgba(201, 160, 74, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tab-center-btn:active { transform: scale(0.95); box-shadow: 0 3px 10px rgba(201, 160, 74, 0.3); }
.tab-item .badge {
    position: absolute; top: 4px; right: calc(50% - 22px);
    background: var(--danger); color: #fff;
    font-size: 10px; min-width: 16px; height: 16px;
    border-radius: 8px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--bg-card);
    margin: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(201, 160, 74, 0.08);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C9A04A 0%, #E0B74D 50%, #F09BB8 100%);
    border-radius: 12px 12px 0 0;
}
.card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px; font-weight: 600;
    color: var(--text);
    display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 14px 16px; }

/* ==================== 统计卡片网格 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
}
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:active { transform: scale(0.98); }
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A04A, #E0B74D);
}
.stat-card.pink::before { background: linear-gradient(90deg, #E37B95, #F09BB8); }
.stat-card.gold::before { background: linear-gradient(90deg, #C9A04A, #E0B74D); }
.stat-card.purple::before { background: linear-gradient(90deg, #6B46C1, #8B5CF6); }
.stat-card.green::before { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.stat-card.blue::before { background: linear-gradient(90deg, #0E7490, #06B6D4); }
.stat-card.orange::before { background: linear-gradient(90deg, #EA580C, #FB923C); }
.stat-card.red::before { background: linear-gradient(90deg, #E11D48, #FB7185); }
.stat-card.cyan::before { background: linear-gradient(90deg, #0D9488, #14B8A6); }
.stat-card .stat-icon {
    font-size: 24px; margin-bottom: 6px;
    opacity: 0.8;
}
.stat-card .stat-label { 
    font-size: 12px; 
    color: var(--text-secondary); 
    font-weight: 500;
    letter-spacing: 0.5px;
}
.stat-card .stat-value { 
    font-size: 26px; 
    font-weight: 700; 
    color: var(--text); 
    margin-top: 6px;
    line-height: 1.2;
}
.stat-card .stat-sub { 
    font-size: 11px; 
    color: var(--text-light); 
    margin-top: 4px;
}

/* ==================== 列表 ==================== */
.list { background: var(--bg-card); margin: 8px 12px; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.list-item {
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: rgba(201, 160, 74, 0.05); }
.list-item .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #C9A04A, #E0B74D);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.2);
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title { 
    font-size: 15px; 
    font-weight: 600; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    color: var(--text);
}
.list-item-sub { 
    font-size: 12px; 
    color: var(--text-secondary); 
    margin-top: 3px;
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
}
.list-item-arrow { color: var(--text-light); font-size: 16px; }

/* ==================== 表单 ==================== */
.form-group { margin: 0 12px 14px; }
.form-label { 
    display: block; 
    font-size: 13px; 
    color: var(--text-secondary); 
    margin-bottom: 8px;
    font-weight: 500;
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid var(--border); 
    border-radius: 8px;
    background: #fff; 
    font-size: 15px;
    transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; 
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 20px;
    border: none; border-radius: 12px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    min-height: 48px;
    letter-spacing: 0.5px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { 
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%); 
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.3);
}
.btn-primary:active { box-shadow: 0 2px 6px rgba(201, 160, 74, 0.2); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { 
    background: #fff; 
    color: var(--primary); 
    border: 1.5px solid var(--primary);
}
.btn-ghost { background: transparent; color: var(--gray); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==================== 标签 ==================== */
.tag {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.3px;
}
.tag-primary { background: rgba(201, 160, 74, 0.15); color: var(--primary-dark); }
.tag-success { background: rgba(124, 179, 66, 0.15); color: #558B2F; }
.tag-warning { background: rgba(255, 183, 77, 0.15); color: #EF6C00; }
.tag-danger { background: rgba(229, 115, 115, 0.15); color: #C62828; }
.tag-info { background: rgba(79, 195, 247, 0.15); color: #0277BD; }
.tag-gray { background: var(--gray-light); color: var(--gray); }
.tag-gold { background: rgba(201, 160, 74, 0.15); color: var(--primary-dark); }

/* ==================== 空状态 ==================== */
.empty {
    text-align: center; padding: 60px 20px;
    color: var(--text-light);
}
.empty-icon { font-size: 64px; margin-bottom: 12px; opacity: 0.3; }
.empty-text { font-size: 14px; margin-top: 8px; }
.empty-btn { margin-top: 20px; }

/* ==================== Toast ==================== */
.toast {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.85); color: #fff;
    padding: 12px 20px; border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s;
    max-width: 80%; text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; visibility: visible; }

/* ==================== 登录页 ==================== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 30%, #F09BB8 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px;
}
/* M74: 登录页 logo 与 APP 桌面 launcher 完全同款 - 圆形金色蝴蝶, 消除白色方框 */
.login-logo {
    width: 148px; height: 148px; border-radius: 50%;
    background: linear-gradient(160deg, #FEF6E4, #F5E6C8);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(184,138,58,0.35), inset 0 0 0 2px rgba(255,255,255,0.7);
    position: relative;
}
.login-logo::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,193,75,0.45), transparent 70%);
    filter: blur(12px); z-index: -1;
}
.login-logo-wrap {
    width: 148px; height: 148px; border-radius: 50%;
    background: linear-gradient(160deg, #FEF6E4, #F5E6C8);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(184,138,58,0.35), inset 0 0 0 2px rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}
.login-logo-wrap::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,193,75,0.5), transparent 70%);
    filter: blur(14px); z-index: -1;
    animation: hj-login-pulse 3.5s ease-in-out infinite;
}
@keyframes hj-login-pulse {
    0%,100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
}
.login-logo-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.login-logo-text {
    display: none;
    position: absolute;
    font-size: 32px;
    color: #C9A04A;
    font-weight: bold;
}
.login-title { color: #fff; font-size: 26px; font-weight: 700; margin-bottom: 6px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.login-subtitle { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 40px; letter-spacing: 1px; }
.login-form {
    background: rgba(255,255,255,0.98); 
    border-radius: 20px;
    padding: 28px;
    width: 100%; max-width: 380px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.login-form .form-group { margin: 0 0 16px; }
.login-form .btn { margin-top: 8px; }

/* ==================== 个人中心 ==================== */
/* M78: 我的页头卡 - 美业香槟金浸润, 与 M70 rankings Hero 同视觉语言 */
.profile-header {
    background:
        radial-gradient(circle at 20% -10%, rgba(255,255,255,0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(227,123,149,0.28), transparent 55%),
        linear-gradient(160deg, #FEF6E4 0%, #F5E6C8 55%, #EFDBB0 100%);
    color: #5A3F18;
    padding: 32px 22px 26px;
    text-align: center;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 12px 28px rgba(184,138,58,0.18);
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: ""; position: absolute; top: -40px; right: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,193,75,0.35), transparent 65%);
    filter: blur(24px); z-index: 0;
}
.profile-header > * { position: relative; z-index: 1; }
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #fff, #fff9ec);
    color: #8A6A2E;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 600; margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 6px 20px rgba(184,138,58,0.35);
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-name {
    font-size: 22px; font-weight: 300; letter-spacing: 2px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #6B4A1E 0%, #A67628 50%, #C9A04A 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
}
.profile-meta {
    font-size: 12.5px;
    color: #8A6A2E;
    margin-top: 8px;
    letter-spacing: 0.5px;
    opacity: 0.95;
}
.profile-qq-level { font-size: 20px; line-height: 1; }
.profile-online-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 12px;
    font-size: 12px;
    color: #8A6A2E;
}
.profile-online-info span {
    padding: 4px 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    border: 1px solid rgba(224,183,77,0.3);
}

/* ==================== 进度条 ==================== */
.progress {
    height: 8px; background: rgba(201, 160, 74, 0.1); border-radius: 4px; overflow: hidden;
}
.progress-bar { 
    height: 100%; 
    background: linear-gradient(90deg, #C9A04A, #E0B74D); 
    transition: width 0.4s ease;
    border-radius: 4px;
}
.progress-bar.gold { background: linear-gradient(90deg, #E0B74D, #FFD700); }
.progress-bar.purple { background: linear-gradient(90deg, #6B46C1, #8B5CF6); }

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 22px; }
.text-2xl { font-size: 28px; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 600; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.py-8 { padding: 8px 0; }
.py-12 { padding: 12px 0; }

/* 段落标题 */
.section-title {
    padding: 16px 16px 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 下拉刷新提示 */
.pull-refresh {
    text-align: center; padding: 12px;
    font-size: 12px; color: var(--text-light);
}
.pull-refresh.animate { animation: pulse 1s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* 头像字母颜色 */
.avatar-letter {
    font-size: 16px;
    font-weight: 600;
}

/* 日期标签 */
.date-tag {
    font-size: 11px;
    color: var(--text-light);
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 6px;
}

/* 数字徽章 */
.num-badge {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* 学习计划卡片 */
.plan-card {
    background: var(--bg-card);
    margin: 8px 12px;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-left: 4px solid var(--primary);
}
.plan-card.gold { border-left-color: var(--secondary); }
.plan-card.purple { border-left-color: var(--accent); }

/* 客户状态标签 */
.customer-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
.customer-status.new { background: rgba(227, 123, 149, 0.1); color: var(--primary); }
.customer-status.following { background: rgba(6, 182, 212, 0.1); color: var(--info); }
.customer-status.deal { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.customer-status.lost { background: rgba(107, 114, 128, 0.1); color: var(--gray); }

/* ==================== 标签页 ==================== */
.tabs {
    display: flex;
    padding: 0 12px;
    gap: 8px;
    margin-bottom: 8px;
}
.tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.tab-btn:hover { border-color: var(--primary-light); }
.tab-btn.active {
    background: var(--gradient-gold-btn);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.35);
}
.tab-btn:active { transform: scale(0.98); }

/* ==================== 客户管理页面样式 ==================== */
.customer-header {
    padding: 20px 16px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
    border-radius: 0 0 24px 24px;
    margin-bottom: 16px;
    text-align: center;
}
.customer-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}
.customer-subtitle {
    font-size: 13px;
    opacity: 0.9;
    margin: 4px 0 0;
}

.search-group {
    position: relative;
    margin: 0 16px 12px;
}
.search-input {
    padding-right: 48px;
    border-radius: 20px;
    height: 44px;
    font-size: 14px;
    border: 1.5px solid #F0F0F0;
    background: #fff;
}
.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tabs-container {
    padding: 0 12px;
    margin-bottom: 12px;
}
.tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.tabs-row:last-child {
    margin-bottom: 0;
}
.tabs-row .tab-btn {
    flex: 1;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: 14px;
}
.tab-icon {
    font-size: 16px;
}
.tab-text {
    font-size: 12px;
    font-weight: 600;
}

.customer-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    margin: 0 16px 16px;
    padding: 20px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.customer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.customer-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #C9A04A;
    line-height: 1;
}
.customer-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.customer-stat-divider {
    width: 1px;
    height: 40px;
    background: #F0F0F0;
}

.customer-list {
    padding: 0 16px;
}
.customer-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 14px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}
.customer-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%) !important;
    color: #fff;
    font-weight: 600;
}
.customer-body {
    flex: 1;
}
.customer-body .list-item-title {
    font-weight: 600;
}
.customer-body .list-item-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding: 12px 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(201, 160, 74, 0.2);
}

/* 快捷入口网格 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 12px;
}
.quick-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.quick-item:active {
    transform: scale(0.96);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    color: #fff;
}
.quick-icon.pink { background: linear-gradient(135deg, #E37B95, #F09BB8); }
.quick-icon.gold { background: linear-gradient(135deg, #C9A04A, #E0B74D); }
.quick-icon.purple { background: linear-gradient(135deg, #6B46C1, #8B5CF6); }
.quick-icon.green { background: linear-gradient(135deg, #16A34A, #4ADE80); }
.quick-icon.cyan { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.quick-icon.orange { background: linear-gradient(135deg, #EA580C, #FB923C); }
.quick-icon.red { background: linear-gradient(135deg, #E11D48, #FB7185); }
.quick-label {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 待办事项 */
.todo-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.todo-item:last-child { border-bottom: none; }
.todo-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 160, 74, 0.1);
}
.todo-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}
.todo-arrow {
    color: var(--text-light);
    font-size: 16px;
}

/* ==================== 美业主题新样式 (复刻电脑端) ==================== */

/* 页面头部 */
.beauty-page-header {
    background: var(--gradient-hero-gold);
    padding: 20px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.beauty-page-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.beauty-page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--gradient-gold-btn);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.35);
}
.beauty-page-header-icon.beauty-icon-gold {
    background: linear-gradient(135deg, #E0B74D 0%, #B8862A 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
.beauty-page-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
.beauty-page-subtitle {
    font-size: 12px;
    color: #888;
    margin: 4px 0 0 0;
}
.beauty-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #C9A04A 0%, #8A6A2E 100%);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.4);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.beauty-add-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(201, 160, 74, 0.3);
}
.beauty-add-btn i {
    font-size: 14px;
}

/* 章节标题 */
.beauty-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #5A3F18;
}
.beauty-title-bar {
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #C9A04A 0%, #E0B74D 100%);
    border-radius: 2px;
}
.beauty-list-count {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* 卡片 */
.beauty-card {
    background: white;
    border-radius: 12px;
    margin: 0 16px 16px;
    box-shadow: 0 4px 16px rgba(201, 160, 74, 0.08);
    overflow: hidden;
    border: 1px solid #F0E5CF;
    position: relative;
}
.beauty-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C9A04A 0%, #E0B74D 50%, #F09BB8 100%);
    border-radius: 12px 12px 0 0;
}
.beauty-card-header {
    padding: 16px;
    border-bottom: 1px solid #F0E5CF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.beauty-card-header::before {
    content: '';
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 20px;
    background: linear-gradient(180deg, #C9A04A 0%, #E0B74D 100%);
    border-radius: 2px;
}
.beauty-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #5A3F18;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
}
.beauty-card-title i {
    color: #C9A04A;
}
.beauty-card-body {
    padding: 16px;
}

/* 搜索框 */
.beauty-search-box {
    margin: 0 16px 16px;
    position: relative;
}
.beauty-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C4B5A5;
    font-size: 14px;
}
.beauty-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 40px;
    border: 1px solid #F0E5CF;
    border-radius: 22px;
    background: #FEF6E4;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.beauty-search-input:focus {
    border-color: #C9A04A;
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.1);
}

/* 会员选择卡片 */
.beauty-member-select-card {
    margin: -10px 16px 12px;
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 100%);
    border: 1px solid #F0E5CF;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.beauty-member-select-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #C9A04A, #E0B74D, #F09BB8);
    opacity: 0.6;
}
.beauty-member-select-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(227, 123, 149, 0.15);
}
.beauty-ms-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F4D78A 0%, #F0E5CF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A04A;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s;
}
.beauty-ms-avatar.beauty-ms-avatar-member {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(201, 160, 74, 0.3);
}
.beauty-ms-info {
    flex: 1;
    min-width: 0;
}
.beauty-ms-label {
    font-size: 11px;
    color: #B8ADB0;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.beauty-ms-name {
    font-size: 15px;
    font-weight: 600;
    color: #2D2D2D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.beauty-ms-action {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #C9A04A;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    padding: 6px 10px;
    background: rgba(201, 160, 74, 0.08);
    border-radius: 20px;
    transition: all 0.3s;
}
.beauty-ms-action i {
    font-size: 10px;
    opacity: 0.7;
}
.beauty-member-select-card:hover .beauty-ms-action {
    background: rgba(201, 160, 74, 0.15);
}

/* 会员选择弹窗 */
.beauty-modal-member {
    padding: 8px;
}
.beauty-modal-search {
    position: relative;
    margin-bottom: 12px;
}
.beauty-modal-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C9B8BC;
    font-size: 13px;
}
.beauty-modal-search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid #F0E5CF;
    border-radius: 20px;
    background: #FEF6E4;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s;
}
.beauty-modal-search-input:focus {
    border-color: #C9A04A;
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.08);
}
.beauty-modal-member-list {
    max-height: 50vh;
    overflow-y: auto;
}
.beauty-modal-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.beauty-modal-member-item:active {
    transform: scale(0.97);
}
.beauty-modal-member-item:hover {
    background: #FFF9FB;
}
.beauty-modal-member-item.active {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 100%);
    border-color: #F4D78A;
}
.beauty-modal-member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4D78A 0%, #F0E5CF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #C9A04A;
    flex-shrink: 0;
}
.beauty-modal-member-avatar.all {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.25);
}
.beauty-modal-member-info {
    flex: 1;
    min-width: 0;
}
.beauty-modal-member-name {
    font-size: 14px;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 2px;
}
.beauty-modal-member-phone {
    font-size: 12px;
    color: #B8ADB0;
}
.beauty-modal-member-level {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(201, 167, 107, 0.12);
    color: #C9A76B;
    margin-top: 2px;
}
.beauty-modal-member-desc {
    font-size: 11px;
    color: #C9B8BC;
    margin-top: 2px;
}

/* ===== 聊天页面 ===== */
.beauty-chat-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #FEF6E4;
}
.beauty-chat-header-bar {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    padding: 14px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-shadow: 0 2px 10px rgba(201, 160, 74, 0.2);
}
.beauty-chat-back {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.beauty-chat-back:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.3);
}
.beauty-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.beauty-chat-user-info {
    flex: 1;
}
.beauty-chat-username {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.beauty-chat-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}
.beauty-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.beauty-status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
}
.beauty-status-dot.offline {
    background: rgba(255, 255, 255, 0.5);
}

/* 聊天消息列表 */
.beauty-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    background: linear-gradient(180deg, #FEF6E4 0%, #FAF3EF 100%);
}
.beauty-chat-msg {
    display: flex;
    margin-bottom: 14px;
}
.beauty-chat-msg.mine {
    justify-content: flex-end;
}
.beauty-chat-msg.other {
    justify-content: flex-start;
}
.beauty-chat-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
    line-height: 1.5;
}
.beauty-chat-bubble.bubble-mine {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.3);
}
.beauty-chat-bubble.bubble-other {
    background: #fff;
    color: #5A3F18;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #F0E5CF;
}
.beauty-chat-text {
    font-size: 14px;
    word-break: break-word;
}
.beauty-chat-time {
    font-size: 10px;
    margin-top: 4px;
}
.beauty-chat-time.time-mine {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}
.beauty-chat-time.time-other {
    color: #C9B8BC;
    text-align: left;
}
.beauty-chat-empty {
    text-align: center;
    padding: 60px 20px;
    color: #C9B8BC;
}
.beauty-chat-empty-icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* 聊天输入框 */
.beauty-chat-input-bar {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #F0E5CF;
    display: flex;
    align-items: center;
    gap: 10px;
}
.beauty-chat-input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #F0E5CF;
    border-radius: 20px;
    background: #FEF6E4;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}
.beauty-chat-input:focus {
    border-color: #C9A04A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.1);
}
.beauty-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    border: none;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.3);
}
.beauty-chat-send-btn:active {
    transform: scale(0.92);
}

/* 联系人列表 */
.beauty-contact-list {
    padding: 8px 0;
}
.beauty-contact-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
    border-bottom: 1px solid #F0E5CF;
}
.beauty-contact-item:active {
    background: #FEF6E4;
}
.beauty-contact-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.beauty-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F4D78A 0%, #F0E5CF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A04A;
    font-size: 14px;
    font-weight: 600;
}
.beauty-contact-avatar.admin {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.25);
}
.beauty-contact-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #FFF9FB;
}
.beauty-contact-status.online {
    background: #4CAF50;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.6);
}
.beauty-contact-status.offline {
    background: #BDBDBD;
}
.beauty-contact-info {
    flex: 1;
    min-width: 0;
}
.beauty-contact-name {
    font-size: 15px;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.beauty-contact-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
}
.beauty-qq-level {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-badge {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
}
.level-badge {
    background: linear-gradient(135deg, #C9A04A 0%, #B8956A 50%, #D4B896 100%);
    color: #3E2F1C;
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(201, 160, 74, 0.3);
    box-shadow: 0 1px 2px rgba(201, 160, 74, 0.15);
}
.beauty-contact-desc {
    font-size: 12px;
    color: #B8ADB0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.beauty-contact-arrow {
    color: #D8C9CE;
    font-size: 12px;
    flex-shrink: 0;
}

/* 好友头像 */
.beauty-contact-avatar.friend {
    background: linear-gradient(135deg, #F09BB8 0%, #F5C6CB 100%);
    color: #fff;
}

/* 好友标签 */
.friend-badge {
    background: rgba(212, 165, 165, 0.2);
    color: #E37B95;
}

/* 好友功能入口 */
.beauty-friend-actions {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.beauty-friend-action-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(201, 160, 74, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
    position: relative;
}
.beauty-friend-action-item:active {
    transform: scale(0.98);
    background: #FEF6E4;
}
.beauty-friend-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.beauty-friend-action-icon.add {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
}
.beauty-friend-action-icon.request {
    background: linear-gradient(135deg, #E0B74D 0%, #FFD700 100%);
    color: #fff;
}
.beauty-friend-action-text {
    flex: 1;
    min-width: 0;
}
.beauty-friend-action-title {
    font-size: 15px;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: 2px;
}
.beauty-friend-action-desc {
    font-size: 12px;
    color: #B8ADB0;
}
.beauty-friend-badge {
    position: absolute;
    top: 10px;
    right: 40px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #F44336;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮样式 */
.beauty-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.beauty-btn:active {
    transform: translateY(-1px);
}
.beauty-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}
.beauty-btn-primary {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.3);
}
.beauty-btn-outline {
    background: #fff;
    color: #C9A04A;
    border: 1px solid #F4D78A;
}
.beauty-btn-gold {
    background: linear-gradient(135deg, #E0B74D 0%, #FFD700 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.beauty-icon-pink {
    background: linear-gradient(135deg, #F4D78A 0%, #F0E5CF 100%);
    color: #C9A04A;
}
.beauty-chat-header {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 100%);
}

.beauty-modal-member-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.3);
}

/* ===== 首页样式 ===== */

/* 欢迎区域 */
.beauty-welcome-section {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 50%, #FEF6E4 100%);
    padding: 20px 16px;
}
.beauty-welcome-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.beauty-welcome-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(201, 160, 74, 0.3);
}
.beauty-welcome-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201, 160, 74, 0.3);
    box-shadow: 0 4px 16px rgba(201, 160, 74, 0.3);
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
}
.beauty-welcome-text {
    flex: 1;
}
.beauty-welcome-title {
    font-size: 18px;
    font-weight: 600;
    color: #5A3F18;
    margin: 0 0 4px 0;
}
.beauty-welcome-subtitle {
    font-size: 12px;
    color: #8A6A2E;
    margin: 0;
}
.beauty-welcome-stats {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(201, 160, 74, 0.1);
}
.beauty-welcome-stat-item {
    flex: 1;
    text-align: center;
}
.beauty-welcome-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #C9A04A;
    margin-bottom: 4px;
}
.beauty-welcome-stat-label {
    font-size: 12px;
    color: #8A6A2E;
}
.beauty-welcome-stat-divider {
    width: 1px;
    height: 32px;
    background: #F0E5CF;
}

/* 待办卡片 */
.beauty-todo-card {
    margin: -30px 16px 16px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(201, 160, 74, 0.15);
    position: relative;
    z-index: 10;
}
.beauty-todo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.beauty-todo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.beauty-todo-title {
    font-size: 15px;
    font-weight: 600;
    color: #5A3F18;
    margin: 0 0 2px 0;
}
.beauty-todo-sub {
    font-size: 12px;
    color: #8A6A2E;
}
.beauty-todo-sub span {
    color: #C9A04A;
    font-weight: 600;
}
.beauty-todo-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.beauty-todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #FEF6E4;
    border-radius: 12px;
    border-left: 3px solid var(--todo-color, #C9A04A);
    text-decoration: none;
    transition: all 0.3s;
}
.beauty-todo-item:active {
    transform: scale(0.98);
}
.beauty-todo-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--todo-color, #C9A04A);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.beauty-todo-item-content {
    flex: 1;
}
.beauty-todo-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #5A3F18;
    margin-bottom: 2px;
}
.beauty-todo-item-desc {
    font-size: 12px;
    color: #8A6A2E;
}
.beauty-todo-item-arrow {
    color: #C4B5A5;
    font-size: 12px;
}

/* 仪表盘网格 */
.beauty-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}
.beauty-dash-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(201, 160, 74, 0.08);
    transition: all 0.3s;
}
.beauty-dash-card:active {
    transform: scale(0.97);
}
.beauty-dash-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    opacity: 0.1;
}
.beauty-dash-deco-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #C9A04A;
}
.beauty-dash-deco-dot {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E0B74D;
}
.rose-gold-card .beauty-dash-icon { color: #C9A04A; }
.rose-pink-card .beauty-dash-icon { color: #E37B95; }
.beauty-dash-icon {
    font-size: 24px;
    margin-bottom: 12px;
    opacity: 0.9;
}
.beauty-dash-number {
    font-size: 22px;
    font-weight: 700;
    color: #5A3F18;
    margin-bottom: 4px;
}
.beauty-dash-label {
    font-size: 12px;
    color: #8A6A2E;
}

/* 快捷入口 */
.beauty-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 16px;
}
.beauty-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s;
}
.beauty-quick-item:active {
    transform: scale(0.95);
    background: #FEF6E4;
}
.beauty-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.25);
}
.beauty-icon-pink {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
}
.beauty-icon-gold {
    background: linear-gradient(135deg, #E0B74D 0%, #B8862A 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}
.beauty-quick-label {
    font-size: 12px;
    color: #8A6A2E;
}

/* 消息列表 */
.beauty-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0E5CF;
    text-decoration: none;
}
.beauty-notif-item:last-child {
    border-bottom: none;
}
.beauty-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C4B5A5;
    margin-top: 6px;
    flex-shrink: 0;
}
.beauty-notif-dot.beauty-notif-unread {
    background: #C9A04A;
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.2);
}
.beauty-notif-content {
    flex: 1;
}
.beauty-notif-title {
    font-size: 14px;
    color: #5A3F18;
    margin-bottom: 4px;
    font-weight: 500;
}
.beauty-notif-desc {
    font-size: 12px;
    color: #8A6A2E;
    margin-bottom: 4px;
    line-height: 1.5;
}
.beauty-notif-time {
    font-size: 11px;
    color: #C4B5A5;
}

/* ===== 客户页面样式 ===== */

/* 客户统计 */
.beauty-customer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 12px;
}
.beauty-customer-stats-row2 {
    margin-bottom: 16px;
}
.beauty-cust-stat {
    background: white;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.06);
}
.beauty-cust-stat:active {
    transform: scale(0.95);
}
.beauty-cust-stat.beauty-stat-active {
    border-color: var(--brand-gold);
    background: var(--brand-champagne);
    box-shadow: 0 2px 10px rgba(201, 160, 74, 0.18);
}
.beauty-cust-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #5A3F18;
    margin-bottom: 4px;
}
.beauty-cust-stat-label {
    font-size: 11px;
    color: #8A6A2E;
}
.beauty-stat-all.beauty-stat-active .beauty-cust-stat-num { color: #0D6EFD; }
.beauty-stat-following.beauty-stat-active .beauty-cust-stat-num { color: #F59E0B; }
.beauty-stat-deal.beauty-stat-active .beauty-cust-stat-num { color: #10B981; }
.beauty-stat-new.beauty-stat-active .beauty-cust-stat-num { color: #06B6D4; }
.beauty-stat-lost.beauty-stat-active .beauty-cust-stat-num { color: #EF4444; }
.beauty-stat-ticket.beauty-stat-active .beauty-cust-stat-num { color: #C9A04A; }
.beauty-stat-franchise.beauty-stat-active .beauty-cust-stat-num { color: #8B5CF6; }
.beauty-stat-today.beauty-stat-active .beauty-cust-stat-num { color: #E0B74D; }

/* 客户列表 */
.beauty-customer-list {
    padding: 0 16px 16px;
}
.beauty-customer-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(201, 160, 74, 0.06);
    text-decoration: none;
    transition: all 0.3s;
    align-items: center;
}
.beauty-customer-card:active {
    transform: scale(0.98);
}
.beauty-customer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}
.beauty-customer-info {
    flex: 1;
    min-width: 0;
}
.beauty-customer-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.beauty-customer-name {
    font-size: 15px;
    font-weight: 600;
    color: #5A3F18;
}
.beauty-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}
.beauty-tag-new { background: #E0F7FA; color: #06B6D4; }
.beauty-tag-following { background: #FEF3C7; color: #D97706; }
.beauty-tag-deal { background: #D1FAE5; color: #059669; }
.beauty-tag-lost { background: #F3F4F6; color: #6B7280; }
.beauty-customer-detail {
    font-size: 12px;
    color: #8A6A2E;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.beauty-customer-detail i {
    color: #C4B5A5;
    width: 12px;
}
.beauty-customer-amount {
    font-size: 12px;
    color: #8A6A2E;
    margin-top: 4px;
}
.beauty-customer-amount span {
    color: #C9A04A;
    font-weight: 600;
}
.beauty-customer-date {
    font-size: 11px;
    color: #C4B5A5;
    margin-top: 4px;
}
.beauty-customer-arrow {
    color: #C4B5A5;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== 排名页面样式 ===== */

.beauty-rank-header {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 50%, #FEF6E4 100%);
}

/* 周期筛选 */
.beauty-rank-period {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #FEF6E4 0%, #FAF3EF 100%);
}
.beauty-period-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #F0E5CF;
    background: white;
    border-radius: 10px;
    font-size: 13px;
    color: #8A6A2E;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.beauty-period-btn.active {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.3);
}

/* 排序筛选 */
.beauty-rank-sort {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: #FAF3EF;
}
.beauty-sort-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #F0E5CF;
    background: white;
    border-radius: 8px;
    font-size: 12px;
    color: #8A6A2E;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.beauty-sort-btn.active {
    background: linear-gradient(135deg, #7AB89C 0%, #9AD0B8 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(122, 184, 156, 0.3);
}

/* 领奖台 */
.beauty-podium-section {
    padding: 0 16px 20px;
}
.beauty-podium-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding-top: 30px;
    min-height: 200px;
}
.beauty-podium-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}
.beauty-podium-glow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 167, 107, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.beauty-podium-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.beauty-podium-second { order: 1; }
.beauty-podium-first { order: 2; flex: 1.2; }
.beauty-podium-third { order: 3; }
.beauty-podium-empty { visibility: hidden; }

.beauty-podium-crown {
    font-size: 24px;
    position: absolute;
    top: -30px;
    animation: float 2s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.beauty-podium-medal {
    font-size: 20px;
    margin-bottom: 6px;
}
.beauty-podium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 8px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.beauty-avatar-gold {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
}
.beauty-avatar-silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
}
.beauty-avatar-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
}
.beauty-podium-first .beauty-podium-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
}
.beauty-podium-name {
    font-size: 13px;
    font-weight: 600;
    color: #5A3F18;
    margin-bottom: 4px;
    text-align: center;
}
.beauty-podium-amount {
    font-size: 12px;
    color: #C9A04A;
    font-weight: 600;
    margin-bottom: 4px;
}
.beauty-podium-sub {
    font-size: 10px;
    color: #8A6A2E;
    margin-bottom: 8px;
    text-align: center;
}
.beauty-podium-platform {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}
.beauty-platform-gold {
    background: linear-gradient(180deg, #FFD700 0%, #DAA520 100%);
    height: 70px;
}
.beauty-platform-silver {
    background: linear-gradient(180deg, #C0C0C0 0%, #A0A0A0 100%);
    height: 55px;
}
.beauty-platform-bronze {
    background: linear-gradient(180deg, #CD7F32 0%, #A0522D 100%);
    height: 45px;
}

/* 排名列表 */
.beauty-rank-list {
    padding: 0 16px 16px;
}
.beauty-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.06);
    transition: all 0.3s;
}
.beauty-rank-item.beauty-rank-me {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 100%);
    border: 1px solid rgba(201, 160, 74, 0.2);
}
.beauty-rank-num {
    width: 28px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #8A6A2E;
}
.beauty-rank-gold .beauty-rank-num { color: #E0B74D; font-size: 18px; }
.beauty-rank-silver .beauty-rank-num { color: #A0A0A0; font-size: 18px; }
.beauty-rank-bronze .beauty-rank-num { color: #CD7F32; font-size: 18px; }
.beauty-rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}
.beauty-rank-info {
    flex: 1;
    min-width: 0;
}
.beauty-rank-name {
    font-size: 14px;
    font-weight: 500;
    color: #5A3F18;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.beauty-rank-me-tag {
    font-size: 10px;
    padding: 1px 6px;
    background: #C9A04A;
    color: white;
    border-radius: 6px;
}
.beauty-rank-sub {
    font-size: 12px;
    color: #8A6A2E;
}
.beauty-rank-amount {
    font-size: 14px;
    font-weight: 600;
    color: #C9A04A;
}

/* ===== 学习页面样式 ===== */

.beauty-learning-header {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 50%, #FEF6E4 100%);
}

/* 当前等级卡片 */
.beauty-current-level-card {
    margin: -20px 16px 16px;
    position: relative;
    z-index: 10;
}
.beauty-level-card-inner {
    background: white;
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(201, 160, 74, 0.15);
    border: 1px solid rgba(201, 160, 74, 0.2);
}
.beauty-level-crowns {
    font-size: 20px;
    margin-bottom: 8px;
    color: #C9A04A;
    letter-spacing: 4px;
}
.beauty-level-crowns .fa-crown {
    margin: 0 2px;
}
.beauty-level-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.beauty-level-name {
    font-size: 18px;
    font-weight: 600;
    color: #5A3F18;
    margin-bottom: 6px;
}
.beauty-level-desc {
    font-size: 12px;
    color: #8A6A2E;
}

/* 进度总览 */
.beauty-progress-overview {
    margin: 0 16px 16px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(201, 160, 74, 0.08);
}
.beauty-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.beauty-progress-title {
    font-size: 14px;
    font-weight: 600;
    color: #5A3F18;
}
.beauty-progress-value {
    font-size: 14px;
    font-weight: 600;
    color: #C9A04A;
}
.beauty-progress-bar {
    height: 8px;
    background: #F0E5CF;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.beauty-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9A04A 0%, #E0B74D 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.beauty-progress-tip {
    font-size: 12px;
    color: #8A6A2E;
    text-align: center;
}

/* 等级列表 */
.beauty-level-list {
    padding: 0 16px 16px;
}
.beauty-level-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(201, 160, 74, 0.06);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}
.beauty-level-item:active {
    transform: scale(0.98);
}
.beauty-level-item.beauty-level-current {
    background: linear-gradient(135deg, #FEF6E4 0%, #FAF3EF 100%);
    border-left-color: #C9A04A;
}
.beauty-level-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A04A 0%, #B8956A 50%, #D4B896 100%);
    color: #3E2F1C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid rgba(201, 160, 74, 0.3);
    box-shadow: 0 1px 3px rgba(201, 160, 74, 0.2);
}
.beauty-level-badge.beauty-status-approved {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}
.beauty-level-badge.beauty-status-pending {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}
.beauty-level-badge.beauty-status-rejected {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}
.beauty-level-badge.beauty-status-current {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
}
.beauty-level-info {
    flex: 1;
    min-width: 0;
}
.beauty-level-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.beauty-level-title {
    font-size: 14px;
    font-weight: 600;
    color: #5A3F18;
}
.beauty-level-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 500;
}
.beauty-level-tag.beauty-status-approved { background: #D1FAE5; color: #059669; }
.beauty-level-tag.beauty-status-pending { background: #FEF3C7; color: #D97706; }
.beauty-level-tag.beauty-status-rejected { background: #FEE2E2; color: #DC2626; }
.beauty-level-tag.beauty-status-current { background: #F4D78A; color: #C9A04A; }
.beauty-level-crowns {
    font-size: 12px;
    color: #C9A04A;
    margin-bottom: 6px;
    letter-spacing: 2px;
}
.beauty-level-crowns .fa-crown {
    margin: 0 1px;
}
.beauty-level-desc {
    font-size: 12px;
    color: #8A6A2E;
    margin-bottom: 8px;
    line-height: 1.4;
}
.beauty-level-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}
.beauty-level-progress-bar {
    flex: 1;
    height: 6px;
    background: #F0E5CF;
    border-radius: 3px;
    overflow: hidden;
}
.beauty-level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C9A04A 0%, #E0B74D 100%);
    border-radius: 3px;
}
.beauty-level-progress-text {
    font-size: 11px;
    color: #8A6A2E;
    white-space: nowrap;
}
.beauty-pending-text {
    color: #F59E0B;
    margin-left: 8px;
}
.beauty-level-arrow {
    color: #C4B5A5;
    font-size: 12px;
    flex-shrink: 0;
}

/* 复盘表单 */
.beauty-review-status {
    font-size: 12px;
    color: #8A6A2E;
    padding: 4px 10px;
    background: #F0E5CF;
    border-radius: 8px;
}
.beauty-review-status.beauty-status-approved {
    color: #059669;
    background: #D1FAE5;
}

.beauty-form-group {
    margin-bottom: 14px;
}
.beauty-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5A3F18;
    margin-bottom: 8px;
}
.beauty-form-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #F0E5CF;
    border-radius: 10px;
    background: #FEF6E4;
    font-size: 13px;
    color: #5A3F18;
    outline: none;
    resize: vertical;
    transition: all 0.3s;
    line-height: 1.6;
}
.beauty-form-textarea:focus {
    border-color: #C9A04A;
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 160, 74, 0.1);
}

.beauty-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}
.beauty-btn-primary {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(201, 160, 74, 0.3);
}
.beauty-btn-primary:active {
    transform: scale(0.97);
}
.beauty-btn-block {
    width: 100%;
}

/* 复盘记录列表 */
.beauty-review-list {
    padding: 0 16px 80px;
}
.beauty-review-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.06);
    cursor: pointer;
    transition: all 0.3s;
}
.beauty-review-item:active {
    transform: scale(0.98);
}
.beauty-review-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.beauty-review-info {
    flex: 1;
    min-width: 0;
}
.beauty-review-date {
    font-size: 14px;
    font-weight: 500;
    color: #5A3F18;
    margin-bottom: 6px;
}
.beauty-review-summary {
    font-size: 12px;
    color: #8A6A2E;
    line-height: 1.5;
}
.beauty-review-arrow {
    color: #C4B5A5;
    font-size: 12px;
    flex-shrink: 0;
}

/* 底部安全间距 */
.beauty-page-bottom {
    height: 80px;
}

/* ===== 每日复盘页面样式 ===== */

/* 表单容器 */
.beauty-form-container {
    padding: 16px;
    background: #FEF6E4;
    min-height: calc(100vh - var(--header-h) - var(--safe-top));
}

/* 表单操作按钮 */
.beauty-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 复盘详情 */
.beauty-review-detail {
    padding: 8px 0;
}
.beauty-review-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0E5CF;
}
.beauty-review-date {
    font-size: 14px;
    font-weight: 600;
    color: #5A3F18;
}
.beauty-review-edit-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.3);
}
.beauty-review-edit-btn:active {
    transform: scale(0.95);
}

/* 复盘条目 */
.beauty-review-item {
    margin-bottom: 16px;
}
.beauty-review-label {
    font-size: 13px;
    font-weight: 600;
    color: #C9A04A;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.beauty-review-content {
    font-size: 14px;
    color: #5A3F18;
    line-height: 1.6;
    padding: 12px;
    background: #FEF6E4;
    border-radius: 10px;
    border-left: 3px solid #C9A04A;
}

/* 复盘底部 */
.beauty-review-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #F0E5CF;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.beauty-review-time {
    font-size: 12px;
    color: #8A6A2E;
}
.beauty-review-updated {
    font-size: 11px;
    color: #C4B5A5;
}

/* ===== 学习计划样式 ===== */
.sp-tab {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    color: #8A6A2E;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}
.sp-tab.active {
    color: #C9A04A;
    border-bottom-color: #C9A04A;
    font-weight: 600;
}
.sp-tab:active {
    opacity: 0.7;
}

/* 学习计划卡片特有样式 */
.study-plan-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(201, 160, 74, 0.08);
    border-left: 3px solid #C9A04A;
}
.study-plan-card.enrolled {
    border-left-color: #6B9B7A;
}
.study-plan-card.available {
    border-left-color: #D4A574;
}

/* ==================== 积分商城 - 靓号UID样式 ==================== */
.premium-uid-page {
    padding: 0 16px 80px;
}

/* 积分余额条 */
.premium-uid-points-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(201, 160, 74, 0.12);
}
.premium-uid-points-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.premium-uid-points-label {
    font-size: 12px;
    color: #8A6A2E;
}
.premium-uid-points-value {
    font-size: 24px;
    font-weight: 700;
    color: #C9A04A;
}

/* 当前UID状态 */
.premium-uid-current {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #F0E5CF;
}
.premium-uid-current-active {
    border-color: #DC3545;
    box-shadow: 0 2px 16px rgba(220, 53, 69, 0.12);
}
.premium-uid-current-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.premium-uid-current-num {
    font-size: 32px;
    font-weight: 700;
    color: #5A3F18;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.premium-uid-current-info {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 靓号标识 */
.premium-uid-number {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: #5A3F18;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.premium-uid-number-premium {
    color: #B91C1C;
}
.premium-uid-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1a1a1a 0%, #C9A04A 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 4px;
    vertical-align: super;
    box-shadow: 0 1px 3px rgba(201,160,74,0.4);
}

/* 状态标签 */
.premium-uid-status-active {
    color: #28a745;
    font-weight: 600;
}
.premium-uid-status-normal {
    color: #999;
}
.premium-uid-status-expired {
    color: #999;
}
.premium-uid-permanent {
    color: #C9A04A;
    font-weight: 600;
}
.premium-uid-expires {
    color: #8A6A2E;
}
.premium-uid-original {
    color: #aaa;
}

/* 章节标题 */
.premium-uid-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #5A3F18;
    margin: 16px 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.premium-uid-section-title i {
    color: #C9A04A;
}

/* 靓号卡片网格 */
.premium-uid-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.premium-uid-card {
    background: white;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #F0E5CF;
    transition: all 0.2s;
}
.premium-uid-card-premium {
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.08);
}
.premium-uid-card-locked {
    opacity: 0.55;
}
.premium-uid-tags {
    margin: 8px 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.premium-uid-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #F5F0EA;
    color: #8A6A2E;
}
.premium-uid-tag-duration {
    background: #E8F4FD;
    color: #4A90D9;
}
.premium-uid-price {
    margin: 8px 0;
}
.premium-uid-price-num {
    font-size: 20px;
    font-weight: 700;
    color: #C9A04A;
}
.premium-uid-price-unit {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}
.premium-uid-desc {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 兑换按钮 */
.premium-uid-btn {
    width: 100%;
    padding: 8px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.premium-uid-btn:active {
    transform: scale(0.97);
}
.premium-uid-btn-premium {
    background: linear-gradient(135deg, #DC3545 0%, #E84958 100%);
    color: #fff;
}
.premium-uid-btn-normal {
    background: linear-gradient(135deg, #C9A04A 0%, #E0B74D 100%);
    color: #fff;
}
.premium-uid-btn-disabled {
    background: #E8E0DA;
    color: #999;
    cursor: not-allowed;
}

/* 兑换说明 */
.premium-uid-notice {
    background: #FEF6E4;
    border-radius: 12px;
    padding: 14px;
    margin-top: 16px;
    border-left: 3px solid #C9A04A;
}
.premium-uid-notice-title {
    font-size: 13px;
    font-weight: 600;
    color: #5A3F18;
    margin-bottom: 8px;
}
.premium-uid-notice-item {
    font-size: 12px;
    color: #8A6A2E;
    line-height: 1.8;
}

/* 购买记录 */
.premium-uid-purchase-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    border: 1px solid #F5F0EA;
}
.premium-uid-purchase-uid {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #DC3545;
    min-width: 80px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.premium-uid-purchase-info {
    flex: 1;
    font-size: 11px;
    color: #999;
    line-height: 1.6;
}
.premium-uid-purchase-status {
    text-align: right;
    font-size: 12px;
}

/* ================================================================
   折叠屏适配 - 支持华为Mate X、三星Galaxy Fold、小米MIX Fold
   ================================================================ */

/* --- 1. 折叠状态检测标记（由JS设置到body上） --- */
body.fold-state-unknown { /* 默认状态，无需特殊处理 */ }
body.fold-state-folded { /* 折叠态（窄屏） */ }
body.fold-state-unfolded { /* 展开态（宽屏） */ }

/* --- 2. CSS环境变量：折叠屏铰链区域安全间距 --- */
:root {
    --fold-left: env(fold-left, 0px);
    --fold-right: env(fold-right, 0px);
    --fold-top: env(fold-top, 0px);
    --fold-bottom: env(fold-bottom, 0px);
    --foldable-max-width: 600px;
}

/* --- 3. 展开态通用适配（宽屏 >= 600px） --- */
@media (min-width: 600px) and (max-width: 900px) {
    /* 折叠屏展开态：放宽最大宽度，居中布局 */
    .app-main {
        max-width: var(--foldable-max-width, 600px);
        margin: 0 auto;
        padding-left: max(16px, var(--fold-left));
        padding-right: max(16px, var(--fold-right));
    }

    .app-header {
        max-width: var(--foldable-max-width, 600px);
        margin: 0 auto;
        left: var(--fold-left, 0);
        right: var(--fold-right, 0);
    }

    .app-tabbar {
        max-width: var(--foldable-max-width, 600px);
        margin: 0 auto;
        left: var(--fold-left, 0);
        right: var(--fold-right, 0);
    }

    .offline-banner {
        max-width: var(--foldable-max-width, 600px);
        margin: 0 auto;
        left: var(--fold-left, 0);
        right: var(--fold-right, 0);
    }
}

/* --- 4. 超宽展开态（>= 900px，如三星Z Fold完全展开） --- */
@media (min-width: 900px) {
    :root {
        --foldable-max-width: 720px;
    }

    .app-main {
        max-width: 720px;
        margin: 0 auto;
        padding-left: max(16px, var(--fold-left));
        padding-right: max(16px, var(--fold-right));
    }

    .app-header {
        max-width: 720px;
        margin: 0 auto;
    }

    .app-tabbar {
        max-width: 720px;
        margin: 0 auto;
    }

    .offline-banner {
        max-width: 720px;
        margin: 0 auto;
    }

    /* 展开态适当放大字体 */
    html, body { font-size: 15px; }
    .header-title { font-size: 20px; }
    .tab-item { font-size: 12px; }
}

/* --- 5. CSS spanning API 支持（标准折叠屏媒体查询） --- */
/* 垂直折叠（左右屏，如三星Z Fold展开） */
@media (spanning: single-fold-vertical) {
    .app-main {
        max-width: 720px;
        margin: 0 auto;
        padding-left: max(16px, env(fold-left, 0px));
        padding-right: max(16px, env(fold-right, 0px));
    }
    .app-header,
    .app-tabbar,
    .offline-banner {
        max-width: 720px;
        margin: 0 auto;
    }
}

/* 水平折叠（上下屏，如华为Mate X横折） */
@media (spanning: single-fold-horizontal) {
    .app-main {
        padding-top: calc(var(--header-h) + var(--safe-top));
        padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px + env(fold-bottom, 0px));
    }
}

/* --- 6. 防止折叠屏铰链区域内容被遮挡 --- */
@media (min-width: 600px) {
    /* 卡片和列表在铰链区域增加额外间距 */
    .card,
    .list-item,
    .beauty-todo-card,
    .beauty-welcome-section {
        margin-left: max(12px, var(--fold-left, 0px));
        margin-right: max(12px, var(--fold-right, 0px));
    }

    /* 网格布局在展开态使用更宽的列数 */
    .beauty-dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 720px;
    }

    .beauty-quick-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .premium-uid-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- 7. 三星Galaxy Fold系列特定适配 --- */
/* 三星Z Fold折叠态宽度约360px，展开态约768px */
@media (min-width: 360px) and (max-width: 365px) {
    /* 三星折叠态：紧凑布局 */
    .app-main { padding-left: 12px; padding-right: 12px; }
    .card { margin-left: 8px; margin-right: 8px; }
}

@media (min-width: 760px) and (max-width: 780px) {
    /* 三星展开态 */
    :root { --foldable-max-width: 720px; }
}

/* --- 8. 华为Mate X系列适配 --- */
/* 华为Mate X折叠态约360px，展开态约768px */
@media (min-width: 765px) and (max-width: 775px) {
    :root { --foldable-max-width: 720px; }
    .app-main {
        max-width: 720px;
    }
}

/* --- 9. 小米MIX Fold系列适配 --- */
/* 小米MIX Fold折叠态约360px，展开态约838px */
@media (min-width: 830px) and (max-width: 850px) {
    :root { --foldable-max-width: 760px; }
    .app-main {
        max-width: 760px;
    }
    .app-header,
    .app-tabbar {
        max-width: 760px;
    }
}

/* --- 10. 折叠屏展开态双列布局优化 --- */
body.fold-state-unfolded .beauty-dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
}

body.fold-state-unfolded .premium-uid-grid {
    grid-template-columns: repeat(3, 1fr);
}

body.fold-state-unfolded .beauty-quick-grid {
    grid-template-columns: repeat(8, 1fr);
}

/* 展开态：列表项可以更宽 */
body.fold-state-unfolded .card,
body.fold-state-unfolded .list-item {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 11. 防止折叠屏文字乱码：确保中文字体回退 --- */
@media (min-width: 600px) {
    html, body {
        font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
            "HarmonyOS Sans SC", "HarmonyOS Sans",
            "SamsungOne", "SamsungOne SC",
            "MiSans", "MI Lan Pro",
            "Noto Sans CJK SC", "Source Han Sans SC",
            "Microsoft YaHei", "Helvetica Neue",
            "Droid Sans Fallback", sans-serif;
    }
}

/* --- 12. 折叠屏安全区域增强 --- */
/* 确保展开态不会因铰链遮挡导致内容不可见 */
@media (min-width: 600px) {
    .app-main {
        /* 使用padding确保铰链区域不遮挡内容 */
        padding-left: max(16px, env(fold-left, 0px));
        padding-right: max(16px, env(fold-right, 0px));
    }

    /* 固定定位的元素也需要避让铰链 */
    .app-header {
        left: env(fold-left, 0);
        right: env(fold-right, 0);
    }

    .app-tabbar {
        left: env(fold-left, 0);
        right: env(fold-right, 0);
    }
}

/* --- 13. 横屏折叠屏适配（部分设备支持横屏展开） --- */
@media (min-width: 600px) and (orientation: landscape) and (max-height: 500px) {
    .app-header { height: calc(44px + var(--safe-top)); }
    :root { --header-h: 44px; --tabbar-h: 52px; }
    .app-main { padding-top: calc(44px + var(--safe-top)); }
}

/* --- 14. 动态视口单位支持（dvh/dvw） --- */
@supports (height: 100dvh) {
    .app-main { min-height: 100dvh; }
}

/* --- 15. 折叠屏过渡动画优化 --- */
@media (prefers-reduced-motion: no-preference) {
    .app-main,
    .app-header,
    .app-tabbar {
        transition: max-width 0.3s ease, padding 0.3s ease;
    }
}

/* ==================================================================
   M101 · 瀚锦轻奢美业视觉系统
   香槟金 × 勃艮第玫瑰 × 象牙白；轻量阴影，兼顾低端机流畅度
   ================================================================== */
:root {
    --luxury-wine: #71384d;
    --luxury-wine-deep: #4b2836;
    --luxury-rose: #c46f86;
    --luxury-gold: #bd914f;
    --luxury-gold-soft: #ead7ad;
    --luxury-ivory: #fffdf9;
    --luxury-blush: #fbf3f4;
    --luxury-ink: #3f3035;
    --luxury-muted: #8f7a7f;
    --luxury-line: rgba(126, 78, 91, .11);
    --luxury-shadow: 0 8px 26px rgba(75, 40, 54, .075);
    --luxury-shadow-soft: 0 3px 14px rgba(75, 40, 54, .055);
    --primary: #b48948;
    --primary-dark: #76572d;
    --text: var(--luxury-ink);
    --text-secondary: #79656b;
    --text-light: #aa969b;
    --border: #eee3e2;
    --bg: #faf6f4;
    --header-h: 56px;
    --tabbar-h: 66px;
}

html, body {
    color: var(--luxury-ink);
    background:
        radial-gradient(circle at 100% 0, rgba(234, 215, 173, .19), transparent 35%),
        radial-gradient(circle at 0 35%, rgba(196, 111, 134, .07), transparent 30%),
        linear-gradient(180deg, #fffaf8 0, #faf6f4 38%, #f8f4f2 100%);
}
body { min-height: 100%; }
::selection { background: rgba(196,111,134,.22); color: var(--luxury-wine-deep); }

/* 顶栏：保留品牌香槟金，增加酒红层次与精致高光 */
.app-header {
    height: calc(var(--header-h) + var(--safe-top));
    background:
        linear-gradient(110deg, rgba(80,41,53,.14), transparent 32%),
        linear-gradient(135deg, #aa7d3d 0%, #c9a45f 48%, #b57a50 100%);
    box-shadow: 0 5px 20px rgba(91, 55, 43, .16);
    border-bottom: 1px solid rgba(255,255,255,.28);
}
.app-header::after {
    content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
}
.header-title { font-size: 18px; font-weight: 750; letter-spacing: 1.2px; text-shadow: 0 1px 3px rgba(67,36,28,.14); }
.header-back, .header-action { border-radius: 14px; transition: background .16s ease, transform .16s ease; }
.header-back:active, .header-action:active { background: rgba(255,255,255,.14); transform: scale(.94); }

/* 内容容器：留白统一，展开屏不过度拉伸 */
.app-main {
    max-width: 680px;
    padding-top: calc(var(--header-h) + var(--safe-top) + 5px);
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 42px);
    position: relative;
}
.app-main > div { width: 100%; }

/* 卡片：轻奢白瓷质感，减少厚重金色阴影 */
.card, .hj-card {
    background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(255,252,249,.98));
    border: 1px solid var(--luxury-line);
    border-radius: 19px;
    box-shadow: var(--luxury-shadow-soft);
}
.card { margin: 11px 13px; }
.card::before {
    height: 2px;
    background: linear-gradient(90deg, transparent 3%, var(--luxury-rose) 28%, var(--luxury-gold) 72%, transparent 97%);
    opacity: .72;
}
.card-header {
    min-height: 50px;
    padding: 15px 17px;
    color: var(--luxury-wine-deep);
    font-weight: 750;
    border-bottom: 1px solid rgba(126,78,91,.08);
    background: linear-gradient(90deg, rgba(251,243,244,.62), rgba(255,253,249,.28));
}
.card-body { padding: 16px 17px; }
.stat-card {
    border: 1px solid rgba(126,78,91,.09);
    box-shadow: var(--luxury-shadow-soft);
    background: linear-gradient(150deg, #fff, #fffbf7);
}
.stat-card:active { transform: scale(.985); }

/* 页面主视觉标题：统一层次、圆角与色彩 */
.beauty-page-header {
    background:
        radial-gradient(circle at 90% 0, rgba(255,255,255,.58), transparent 35%),
        linear-gradient(145deg, #fff9ec 0%, #f5e5cb 60%, #f3dce2 100%);
    border-bottom: 1px solid rgba(189,145,79,.17);
    box-shadow: 0 7px 22px rgba(75,40,54,.07);
}
.beauty-page-header-icon {
    border-radius: 16px;
    background: linear-gradient(145deg, var(--luxury-wine), var(--luxury-rose) 58%, var(--luxury-gold));
    box-shadow: 0 7px 16px rgba(113,56,77,.20);
}
.beauty-page-title { color: var(--luxury-wine-deep); font-weight: 800; letter-spacing: .4px; }
.beauty-page-subtitle { color: var(--luxury-muted); line-height: 1.5; }
.beauty-section-title, .section-title { color: var(--luxury-wine-deep); font-weight: 750; }
.beauty-title-bar {
    background: linear-gradient(180deg, var(--luxury-rose), var(--luxury-gold));
    box-shadow: 0 2px 6px rgba(113,56,77,.16);
}

/* 列表：信息密度合理，触控反馈自然 */
.list { margin-left: 12px; margin-right: 12px; border-radius: 18px; overflow: hidden; box-shadow: var(--luxury-shadow-soft); }
.list-item {
    min-height: 58px;
    padding: 13px 15px;
    border-bottom-color: rgba(126,78,91,.075);
    background: rgba(255,255,255,.965);
    transition: background .14s ease, transform .14s ease;
}
.list-item:active { background: #fff6f5; transform: scale(.992); }
.list-item-title { color: var(--luxury-ink); font-weight: 650; }
.list-item-sub { color: var(--luxury-muted); line-height: 1.45; }
.list-item-arrow { color: #c8a7ae; }

/* 表单：柔和边界、清晰焦点，不牺牲可读性 */
.form-label { color: #765f66; font-weight: 650; }
.form-input, .form-select, .form-textarea {
    min-height: 46px;
    border: 1px solid #eadfdf;
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: inset 0 1px 2px rgba(75,40,54,.025);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: rgba(196,111,134,.72);
    box-shadow: 0 0 0 4px rgba(196,111,134,.10);
}

/* 按钮：品牌主操作酒红金，次操作保持克制 */
.btn { border-radius: 14px; transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease; }
.btn-primary, .hj-btn-gold {
    color: #fff;
    background: linear-gradient(135deg, var(--luxury-wine), var(--luxury-rose) 55%, var(--luxury-gold));
    box-shadow: 0 7px 17px rgba(113,56,77,.20);
}
.btn-primary:active, .hj-btn-gold:active { transform: scale(.975); box-shadow: 0 3px 9px rgba(113,56,77,.15); }
.beauty-add-btn {
    background: linear-gradient(135deg, var(--luxury-wine), var(--luxury-rose));
    box-shadow: 0 6px 14px rgba(113,56,77,.20);
}

/* 标签、状态与进度：颜色统一且可视化清晰 */
.tag, .hj-pill, .date-tag { border-radius: 999px; }
.progress { height: 7px; background: #f2e9e6; box-shadow: inset 0 1px 2px rgba(75,40,54,.04); }
.progress-bar { background: linear-gradient(90deg, var(--luxury-wine), var(--luxury-rose), var(--luxury-gold)); }
.alert { border-radius: 15px; border-width: 1px; }
.empty { color: var(--luxury-muted); }
.empty-icon { filter: saturate(.75); }

/* 底部导航：悬浮白瓷栏，激活态为轻量胶囊 */
.app-tabbar {
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    max-width: 680px;
    background: rgba(255,253,252,.96);
    border-top: 1px solid rgba(113,56,77,.10);
    box-shadow: 0 -8px 26px rgba(75,40,54,.08);
    contain: layout paint;
}
.tab-item { color: #a79197; gap: 4px; font-size: 11px; font-weight: 600; padding: 6px 2px 4px; transition: color .16s ease, transform .16s ease; }
.tab-item svg { width: 25px; height: 25px; transition: transform .16s ease; }
.tab-item.active { color: var(--luxury-wine); }
.tab-item.active::before {
    content: ""; position: absolute; top: 5px; width: 44px; height: 31px; z-index: -1;
    border-radius: 16px; background: linear-gradient(135deg, rgba(196,111,134,.13), rgba(189,145,79,.13));
}
.tab-item.active svg { transform: translateY(-1px) scale(1.04); }
.tab-item:active { transform: scale(.94); }

/* Toast 与离线提示 */
.toast {
    background: rgba(63,48,53,.94);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    box-shadow: 0 12px 32px rgba(41,25,31,.22);
}
.offline-banner { background: linear-gradient(90deg, #a4435f, #cc745f); }
.global-version { color: #b6a4a4; font-size: 10px; }

/* 页面进入只做一次短过渡，避免复杂动画引起卡顿 */
@keyframes hj-luxury-page-in {
    from { opacity: .35; transform: translate3d(0,5px,0); }
    to { opacity: 1; transform: translate3d(0,0,0); }
}
body.app-ready .app-main > *:first-child { animation: hj-luxury-page-in .20s cubic-bezier(.2,.75,.25,1) both; }

/* 小屏和折叠屏布局合理化 */
@media (max-width: 370px) {
    :root { --header-h: 52px; --tabbar-h: 62px; }
    .card { margin-left: 9px; margin-right: 9px; border-radius: 16px; }
    .card-body { padding: 14px; }
    .list { margin-left: 9px; margin-right: 9px; }
    .beauty-page-title { font-size: 18px; }
}
@media (min-width: 700px) {
    .app-main, .app-header, .app-tabbar, .global-version { max-width: 760px; }
    .app-main { padding-left: 16px; padding-right: 16px; }
}

/* 低配置设备自动进入轻量模式，关闭模糊和高成本动画 */
body.performance-lite .app-tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fffdfc; }
body.performance-lite *, body.performance-lite *::before, body.performance-lite *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    filter: none !important;
}
body.performance-lite .card, body.performance-lite .stat-card, body.performance-lite .list { box-shadow: 0 2px 8px rgba(75,40,54,.055); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-color-scheme: dark) {
    /* 本产品保持统一浅色美业主题，避免系统深色模式造成文字/卡片反差异常 */
    :root { color-scheme: light; }
}
.tab-item { isolation: isolate; }
