/* ============================================================
   Modern 主题 - 统一设计系统 v6
   移动端原生 APP 风格 / 紫粉渐变 / 玻璃拟态 / 浅色 only
   v6 升级：
   1. Bug 1 修复：状态栏 .app-statusbar 改 transparent + 白色文字 + 阴影
   2. Bug 2 修复：.app-modal 加 !important 强校验 fixed 居中
   3. Bug 3 修复：购买页 .shop-form-select 自定义箭头 select 视觉
   4. 新类补全：.app-feature-* / .app-stat-* / .app-welcome-* / .app-balance-* /
                  .app-notice-bar / .app-qq-card* / .app-qq-pager* 等统一前缀
   5. 深度 APP 化：圆角/阴影/动画/触觉反馈全面升级
   ============================================================ */

/* ============================================================
   一、CSS 变量（浅色 only，不写 dark mode）
   ============================================================ */
:root {
    /* 主色板（v5 强化） */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #8b5cf6;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --yellow: #eab308;
    --orange: #f97316;

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-blue: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --gradient-yellow: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-page: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fff0f6 100%);

    /* 背景 */
    --bg-page: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-solid: #ffffff;
    --bg-input: #f1f5f9;
    --bg-overlay: rgba(15, 23, 42, 0.45);

    /* 文字（v5 强化对比） */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;

    /* 边框 */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-primary: rgba(99, 102, 241, 0.2);

    /* 圆角（v5 全面加大：12/14/20/24/28） */
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* 阴影（v5 主题色淡光晕） */
    --shadow-card: 0 4px 20px rgba(99, 102, 241, 0.08);
    --shadow-card-hover: 0 8px 28px rgba(99, 102, 241, 0.18);
    --shadow-nav: 0 -2px 12px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 8px 32px rgba(99, 102, 241, 0.2);
    --shadow-button: 0 4px 14px rgba(99, 102, 241, 0.3);
    --shadow-button-hover: 0 6px 20px rgba(99, 102, 241, 0.4);
    --shadow-fab: 0 8px 24px rgba(99, 102, 241, 0.3);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* 尺寸（v5 加大） */
    --header-height: 56px;
    --statusbar-height: 24px;
    --tabbar-height: 60px;
    --safe-top: 0px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* 字体（v5 升级 iOS 风） */
    --font-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "HarmonyOS Sans SC", "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", sans-serif;
    --font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "HarmonyOS Sans SC", "PingFang SC", sans-serif;

    /* 内容区安全内边距 */
    --content-padding-top: calc(var(--header-height) + 12px);
    --content-padding-bottom: calc(var(--tabbar-height) + 16px + var(--safe-bottom));
}

/* ============================================================
   二、基础重置
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body {
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: var(--bg-page);
    color: var(--text-primary);
    margin: 0; padding: 0;
    overscroll-behavior-y: contain;
    font-size: 15px;       /* v5: iOS 标准正文字号 */
    line-height: 1.5;
    font-feature-settings: "tnum" 0, "kern" 1;
}
body { min-height: 100vh; overflow-x: hidden; }

/* 数字字体：tabular-nums 提升可读性 */
.app-stat-num, .uc-stat-num, .uc-balance-amount, .uc-yen,
.app-goods-price, .shop-goods-price, .set-info-value,
.set-list-sub, .app-bottom-action-price, .app-bottom-action-label,
.app-stat-label, .uc-stat-label, .app-nav-title, .uc-welcome-title,
.uc-welcome-username, .uc-welcome-greet, .uc-welcome-sub {
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

/* 滚动条 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.25); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.5); }

/* 链接 */
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 全站颜色过渡（不包含 dark 相关） */
*, *::before, *::after {
    transition-property: background-color, color, border-color, box-shadow, opacity, transform;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

/* ============================================================
   三、APP Frame 容器（核心：手机宽度限制，禁用 transform/filter）
   ============================================================ */
.app-frame {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background: var(--bg-page);
    /* 故意不写 transform/filter/will-change，避免 fixed 子元素退化 */
}

/* 桌面端：将内容限制在手机宽度内（480px） */
@media (min-width: 1024px) {
    body {
        background: var(--gradient-page);
        background-attachment: fixed;
    }
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background:
            radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }
    .app-frame {
        max-width: 480px;
        min-height: 100vh;
        background: var(--bg-page);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
        position: relative;
        z-index: 1;
    }
}

/* ============================================================
   四、状态栏（24px 高度，手机时间 + 信号，v6 终极透明化）
   ============================================================ */
.app-statusbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--statusbar-height);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;   /* v6 终极：首屏全透明白色文字 + 阴影 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: transparent !important;   /* v6 终极：去白底 */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    pointer-events: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.app-statusbar-time { font-variant-numeric: tabular-nums; }
.app-statusbar-icons { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.app-statusbar-icons i { font-size: 11px; }
/* 滚动时白底：v6 终极 - nav + statusbar 一起变白 */
.app-nav.is-scrolled,
.app-nav.is-scrolled .app-statusbar {
    background: rgba(255, 255, 255, 0.95) !important;
}
.app-nav.is-scrolled .app-statusbar,
.app-nav.is-scrolled .app-nav-title,
.app-nav.is-scrolled .app-nav-btn {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}
/* 桌面端：强制白底（无彩色 banner 透出） */
@media (min-width: 1024px) {
    .app-statusbar { display: none; }
    .app-nav { background: rgba(255, 255, 255, 0.95) !important; border-bottom: 1px solid var(--border-light) !important; }
    .app-nav-title, .app-nav-btn { color: var(--text-primary) !important; text-shadow: none !important; }
}

/* ============================================================
   五、APP Nav Bar（顶部导航，v6 终极透明化）
   ============================================================ */
.app-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    /* v6 终极：首屏全透明，文字白色 + 阴影 */
    background: transparent;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    max-width: inherit;
    padding-top: var(--statusbar-height);
    height: calc(var(--header-height) + var(--statusbar-height));
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
/* 滚动时白底（柔和） - v6 终极：is-scrolled 状态由 .app-statusbar 同款 CSS 控制 */
.app-nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;     /* v6 终极：白色 + 阴影，在深色 banner 上可读 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.app-nav-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: #fff;     /* v6 终极：白色 + 阴影 */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background: transparent;
    border: 0;
    transition: all 0.2s ease;
}
.app-nav-btn:hover { background: rgba(255, 255, 255, 0.2); }
.app-nav-btn:active { transform: scale(0.95); }
/* 桌面端：白底黑字（统一在 .app-statusbar 媒体查询里处理） */
.app-nav-badge {
    position: absolute;
    top: 6px; right: 6px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9999px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}

/* ============================================================
   六、APP Tab Bar（底部 5 个 tab，v5 高度 60px）
   ============================================================ */
.app-tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-height) + var(--safe-bottom));
    z-index: 40;
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-nav);
    padding-bottom: var(--safe-bottom);
    max-width: inherit;
    border-radius: 20px 20px 0 0;
}
@media (min-width: 1024px) {
    .app-tab-bar { display: none; }
}
.app-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}
.app-tab-item i { font-size: 21px; line-height: 1; transition: transform 0.2s ease; }
.app-tab-item:active { transform: scale(0.97); }
.app-tab-item:hover { color: var(--primary); }
.app-tab-item.active { color: var(--primary); }
.app-tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
}
.app-tab-item.active i { transform: scale(1.08); }
.app-tab-item.tab-cloud.active { color: var(--accent); }
.app-tab-item.tab-cloud.active::before { background: var(--gradient-purple); }
.app-tab-item.tab-dg.active { color: var(--green); }
.app-tab-item.tab-dg.active::before { background: var(--gradient-cool); }
.app-tab-item.tab-shop.active { color: var(--pink); }
.app-tab-item.tab-shop.active::before { background: var(--gradient-pink); }
.app-tab-item.tab-me.active { color: var(--amber); }
.app-tab-item.tab-me.active::before { background: var(--gradient-warm); }
.app-tab-label {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================================
   七、内容区（v5 移除 transform 动画，避免破坏 fixed 定位）
   ============================================================ */
.app-content {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--header-height) + var(--statusbar-height) + 8px);
    padding-bottom: calc(var(--tabbar-height) + 24px + var(--safe-bottom));
    min-height: 100vh;
    /* 不写 transform/filter/will-change */
}
@media (min-width: 1024px) {
    .app-content { padding-top: 16px; padding-bottom: 24px; }
}
.app-content-nobar {
    padding-top: calc(var(--header-height) + var(--statusbar-height) + 4px);
    padding-bottom: 24px;
}

/* ============================================================
   八、页面切换动画（v5 改用 opacity-only，避免破坏 fixed 定位）
   ============================================================ */
.app-page-enter {
    animation: appFadeIn 0.3s ease-out;
}
@keyframes appSlideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes appSlideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes appFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes appScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes appStaggerFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.app-stagger > *:nth-child(1) { animation: appStaggerFade 0.35s ease-out 0.00s both; }
.app-stagger > *:nth-child(2) { animation: appStaggerFade 0.35s ease-out 0.05s both; }
.app-stagger > *:nth-child(3) { animation: appStaggerFade 0.35s ease-out 0.10s both; }
.app-stagger > *:nth-child(4) { animation: appStaggerFade 0.35s ease-out 0.15s both; }
.app-stagger > *:nth-child(5) { animation: appStaggerFade 0.35s ease-out 0.20s both; }
.app-stagger > *:nth-child(6) { animation: appStaggerFade 0.35s ease-out 0.25s both; }
.app-stagger > *:nth-child(7) { animation: appStaggerFade 0.35s ease-out 0.30s both; }
.app-stagger > *:nth-child(8) { animation: appStaggerFade 0.35s ease-out 0.35s both; }

/* ============================================================
   九、卡片（v5 加大圆角 + 主题色光晕）
   ============================================================ */
.app-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
}
.app-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.app-card-lg {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}
.app-card-flat {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 20px;
}
.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
    gap: 8px;
}
.app-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-card-title i { color: var(--primary); font-size: 14px; }

/* ============================================================
   十、列表（v5 加大尺寸）
   ============================================================ */
.app-list {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.app-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    transition: background-color 0.2s ease;
}
.app-list-item:active { background: rgba(99, 102, 241, 0.05); transform: scale(0.99); }
.app-list-item + .app-list-item {
    border-top: 1px solid var(--border-light);
}
.app-list-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}
.app-list-icon.pink   { background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(249,115,22,0.1) 100%); color: var(--pink); }
.app-list-icon.green  { background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.1) 100%); color: var(--green); }
.app-list-icon.amber  { background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(239,68,68,0.1) 100%); color: var(--amber); }
.app-list-icon.blue   { background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(99,102,241,0.1) 100%); color: var(--blue); }
.app-list-icon.red    { background: linear-gradient(135deg, rgba(239,68,68,0.1) 0%, rgba(236,72,153,0.1) 100%); color: var(--red); }
.app-list-icon.cyan   { background: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(99,102,241,0.1) 100%); color: var(--cyan); }
.app-list-icon.orange { background: linear-gradient(135deg, rgba(249,115,22,0.1) 0%, rgba(245,158,11,0.1) 100%); color: var(--orange); }
.app-list-icon.purple { background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(99,102,241,0.1) 100%); color: var(--accent); }
.app-list-content { flex: 1; min-width: 0; }
.app-list-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 2px;
}
.app-list-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-list-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.app-list-arrow {
    color: var(--text-tertiary);
    font-size: 12px;
    transition: transform 0.2s ease;
}
.app-list-item:hover .app-list-arrow { transform: translateX(2px); color: var(--primary); }

/* ============================================================
   十一、按钮（v5 圆角 14px）
   ============================================================ */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.app-btn:active { transform: scale(0.97); }
.app-btn-sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-xs); }
.app-btn-lg { padding: 14px 24px; font-size: 15px; border-radius: var(--radius-sm); height: 52px; }
.app-btn-block { width: 100%; }

.app-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-button);
}
.app-btn-primary:hover { box-shadow: var(--shadow-button-hover); transform: translateY(-1px); }
.app-btn-primary:active { transform: scale(0.97); }

.app-btn-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.app-btn-outline:hover { background: rgba(99, 102, 241, 0.08); }

.app-btn-ghost {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}
.app-btn-ghost:hover { background: rgba(99, 102, 241, 0.15); }

.app-btn-danger {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.app-btn-danger:hover { background: #dc2626; }

.app-btn-success {
    background: var(--gradient-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.app-btn-success:hover { transform: translateY(-1px); }

/* 浮动操作按钮（v5 主题色光晕） */
.app-fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--tabbar-height) + 16px + var(--safe-bottom));
    z-index: 30;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-fab);
    border: 0; cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.app-fab:hover { transform: translateY(-2px) scale(1.05); }
.app-fab:active { transform: scale(0.95); }

/* ============================================================
   十二、输入框 + 自定义下拉（v5 新增）
   ============================================================ */
.app-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
    font-family: inherit;
}
.app-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.app-input::placeholder { color: var(--text-tertiary); }
.app-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.app-input-group .app-input { padding-left: 44px; }
.app-input-group-icon {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
    font-size: 15px;
    pointer-events: none;
}
.app-input-lg { height: 52px; font-size: 16px; }

/* v6 终极 Bug 3 修复：购买页原生 select 视觉覆盖（v4 风格简化方案） */
.shop-form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 12px center;
    background-size: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #1e293b;
    font-family: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}
.shop-form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.shop-form-select:disabled {
    background-color: #f1f5f9;
    color: var(--text-tertiary);
    cursor: not-allowed;
}
.shop-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #1e293b;
    font-family: inherit;
    transition: all 0.2s ease;
}
.shop-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.shop-form-input::placeholder { color: var(--text-tertiary); }
.shop-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.shop-form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* v6：shop.php 隐藏数据桥 select/input 强校验 */
.app-hidden {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 自定义下拉（v5 重点修复 Bug 3） */
.app-select {
    position: relative;
    width: 100%;
    user-select: none;
}
.app-select-trigger {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    background: var(--bg-input);
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}
.app-select-trigger:hover { background: #fff; }
.app-select-trigger:focus,
.app-select.open .app-select-trigger {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.app-select-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 14px;
    pointer-events: none;
}
.app-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}
.app-select-text.placeholder { color: var(--text-tertiary); }
.app-select-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.app-select.open .app-select-arrow { transform: rotate(180deg); color: var(--primary); }
.app-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    transform-origin: top center;
    animation: appSelectIn 0.2s ease;
}
.app-select.open .app-select-menu { display: block; }
@keyframes appSelectIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.app-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.app-select-option:hover { background: rgba(99, 102, 241, 0.06); }
.app-select-option.selected {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
}
.app-select-option-icon {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 12px;
}
.app-select-option-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   十三、弹窗（v5 强制 fixed 居中，display: none 默认）
   ============================================================ */

/* 13.1 Action Sheet（底部滑入） */
.app-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.app-action-sheet.active { display: flex; }
.app-action-sheet-mask {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: appFadeIn 0.25s ease;
}
.app-action-sheet-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 8px 0 calc(16px + var(--safe-bottom));
    animation: appSlideInUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh;
    overflow-y: auto;
}
.app-action-sheet-title {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 14px 16px 8px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}
.app-action-sheet-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    font-family: inherit;
    text-decoration: none;
}
.app-action-sheet-item:last-child { border-bottom: 0; }
.app-action-sheet-item:active { background: rgba(99, 102, 241, 0.05); }
.app-action-sheet-item.danger { color: var(--red); }
.app-action-sheet-item.primary { color: var(--primary); font-weight: 600; }
.app-action-sheet-cancel {
    margin-top: 8px;
    background: #fff;
    border-radius: 0;
    border-top: 8px solid var(--bg-page);
}

/* 13.2 居中毛玻璃弹窗（v6 终极 Bug 2 修复：!important 强校验 fixed 居中） */
.app-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: none;          /* 关键：默认隐藏 */
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0 !important;
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
}
.app-modal.active { display: flex !important; }
.app-modal-mask {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: appFadeIn 0.25s ease;
}
.app-modal-content {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    animation: appScaleIn 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}
.app-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}
.app-modal-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 0;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px;
}
.app-modal-close:hover { background: rgba(0, 0, 0, 0.1); }
.app-modal-body {
    padding: 20px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.app-modal-footer {
    display: flex;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}
.app-modal-footer .app-btn { flex: 1; }

/* 13.3 Toast（顶部胶囊） */
.app-toast-wrap {
    position: fixed;
    top: calc(var(--header-height) + var(--statusbar-height) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.app-toast {
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: appToastIn 0.3s ease, appToastOut 0.3s ease 2.7s forwards;
    pointer-events: auto;
    max-width: 80vw;
    text-align: center;
}
.app-toast.success { background: rgba(16, 185, 129, 0.95); }
.app-toast.error   { background: rgba(239, 68, 68, 0.95); }
.app-toast.warning { background: rgba(245, 158, 11, 0.95); }
.app-toast.info    { background: rgba(99, 102, 241, 0.95); }
@keyframes appToastIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes appToastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-12px) scale(0.9); }
}

/* 13.4 Loading 遮罩 */
.app-loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.app-loading.active { display: flex; }
.app-loading-spinner {
    width: 44px; height: 44px;
    border: 3.5px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: appSpin 0.8s linear infinite;
}
@keyframes appSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   13.5 v6 终极补全：6 宫格 + 4 列数据 + 余额卡 + 欢迎 banner（统一 app- 前缀）
   用于 index.php 等用户中心页
   ============================================================ */

/* 6 宫格功能区（v6 终极：grid 3 列 + 圆角图标 + 触觉反馈） */
.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.app-feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-md);
    padding: 18px 12px;
    box-shadow: var(--shadow-card);
}
.app-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 14px;
    transition: all 0.2s ease;
    position: relative;
}
.app-feature-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}
.app-feature-item:active { transform: scale(0.96); background: rgba(99, 102, 241, 0.12); }
.app-feature-icon {
    width: 48px; height: 48px;
    min-width: 48px; min-height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    /* v7 终极：emoji 字体栈，不再依赖 FontAwesome 字体加载 */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color", "Twemoji Mozilla", sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    position: relative;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.app-feature-item:active .app-feature-icon { transform: scale(0.92); }
.app-feature-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}
.app-feature-badge {
    position: absolute;
    top: -2px; right: 8px;
    min-width: 16px; height: 16px;
    background: var(--red);
    color: #fff;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px #fff;
}

/* 4 列数据条（v6 终极：grid 4 列 + 分隔线） */
.app-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 12px 12px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    box-shadow: var(--shadow-card);
}
.app-stat-item {
    text-align: center;
    position: relative;
}
.app-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -4px; top: 20%; bottom: 20%;
    width: 1px;
    background: var(--border-light);
}
.app-stat-num {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}
.app-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* 余额卡（v6 终极：浮在 banner 边缘的玻璃卡） */
.app-balance-card {
    position: relative;
    margin: -48px 12px 12px 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}
.app-balance-left { flex: 1; min-width: 0; }
.app-balance-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.app-balance-amount {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}
.app-yen { font-size: 20px; margin-right: 2px; }
.app-balance-actions { display: flex; gap: 8px; flex-shrink: 0; }
.app-balance-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
}
.app-balance-btn:active { transform: scale(0.96); }
.app-balance-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.app-balance-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}
.app-balance-btn-outline {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
}
.app-balance-btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
}

/* 紫粉渐变欢迎 banner（v6 终极） */
.app-welcome-banner {
    position: relative;
    margin: -8px -4px 0 -4px;
    padding: 20px 18px 64px 18px;
    background: var(--gradient-primary);
    border-radius: 0 0 28px 28px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}
.app-welcome-banner::before,
.app-welcome-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.app-welcome-banner::before {
    width: 200px; height: 200px;
    top: -70px; right: -60px;
}
.app-welcome-banner::after {
    width: 140px; height: 140px;
    bottom: 20px; left: -40px;
    background: rgba(255, 255, 255, 0.08);
}
.app-welcome-greet {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; opacity: 0.95;
    position: relative; z-index: 1;
}
.app-welcome-greet i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}
.app-welcome-title {
    font-size: 30px; font-weight: 700; line-height: 1.2;
    margin: 6px 0 6px 0; letter-spacing: 0.5px;
    position: relative; z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.app-welcome-username {
    font-size: 18px; font-weight: 500; opacity: 0.95;
    margin-left: 4px;
}
.app-welcome-sub {
    font-size: 12px; opacity: 0.9;
    display: inline-flex; align-items: center; gap: 4px;
    position: relative; z-index: 1;
}

/* 公告条（v7 终极：删除整个 .app-notice-bar 块，不再使用） */

/* 我的QQ 卡（v6 终极：玻璃拟态 + 标题栏 + 列表 + 分页） */
.app-qq-card {
    margin: 0 12px 12px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.app-qq-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px 16px;
    flex-wrap: wrap; gap: 8px;
    border-bottom: 1px solid var(--border-light);
}
.app-qq-card-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: var(--text-primary);
}
.app-qq-card-title i { color: var(--primary); font-size: 14px; }
.app-qq-card-count {
    font-size: 12px; color: var(--text-secondary); font-weight: 400;
}
.app-qq-card-count span { color: var(--primary); font-weight: 600; }
.app-qq-list {
    padding: 12px 12px;
    min-height: 60px;
}
.app-qq-pager {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
}
.app-qq-pager-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    font-size: 12px; font-weight: 500;
    border: 0; cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.app-qq-pager-btn:hover { background: rgba(99, 102, 241, 0.15); }
.app-qq-pager-btn:active { transform: scale(0.96); }
.app-qq-pager-info {
    font-size: 12px; color: var(--text-secondary);
}
.app-qq-pager-info span { color: var(--primary); font-weight: 600; }

/* ============================================================
   十四、状态标识
   ============================================================ */
.app-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}
.app-badge-pill.pink   { background: rgba(236, 72, 153, 0.1); color: var(--pink); }
.app-badge-pill.green  { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.app-badge-pill.amber  { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.app-badge-pill.red    { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.app-badge-pill.blue   { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.app-status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: appPulse 2s ease-in-out infinite;
}
.app-status-dot.offline { background: var(--text-tertiary); box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2); animation: none; }
.app-status-dot.warning { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }
@keyframes appPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ============================================================
   十五、统计
   ============================================================ */
.app-stat {
    text-align: center;
    padding: 4px 0;
}
.app-stat-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
}
.app-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================================
   十六、空状态 / 骨架屏
   ============================================================ */
.app-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-secondary);
}
.app-empty-icon {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 24px;
}
.app-empty-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.app-skeleton {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: appShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes appShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   十七、商品网格
   ============================================================ */
.app-goods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 640px) { .app-goods-grid { grid-template-columns: repeat(3, 1fr); } }
.app-goods-item {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.app-goods-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.app-goods-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 24px;
    background: var(--gradient-primary);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}
.app-goods-icon.cloud   { background: var(--gradient-purple); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3); }
.app-goods-icon.dg      { background: var(--gradient-cool); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3); }
.app-goods-icon.qzone   { background: var(--gradient-warm); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3); }
.app-goods-icon.tri_all { background: var(--gradient-primary); box-shadow: 0 6px 16px rgba(236, 72, 153, 0.3); }
.app-goods-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-goods-price {
    font-size: 16px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
}
.app-goods-price small { font-size: 11px; -webkit-text-fill-color: var(--text-tertiary); }
.app-goods-meta {
    font-size: 11px;
    color: var(--text-secondary);
}
.app-goods-btn {
    width: 100%;
    height: 32px;
    border-radius: 9999px;
    background: var(--gradient-primary);
    color: #fff;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.app-goods-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }
.app-goods-btn:active { transform: scale(0.97); }
.app-goods-hot {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--gradient-warm);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

/* ============================================================
   十八、标签筛选
   ============================================================ */
.app-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.app-filter-tab {
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    border: 1.5px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.app-filter-tab:hover { background: rgba(99, 102, 241, 0.08); color: var(--primary); border-color: rgba(99, 102, 241, 0.4); }
.app-filter-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   十九、Header Shine 动效
   ============================================================ */
@keyframes headerShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.app-header-shine {
    position: relative;
    overflow: hidden;
}
.app-header-shine::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.3) 42%, rgba(255,255,255,0.08) 50%, transparent 68%);
    pointer-events: none;
    animation: headerShine 3s ease-in-out infinite;
}

/* ============================================================
   二十、悬浮气泡（客服/加群/下载App）
   ============================================================ */
.app-bubble {
    position: fixed !important;  /* v8 兜底：避免父容器 transform 破坏 fixed 定位 */
    z-index: 100 !important;     /* v8 兜底：确保客服气泡始终在 cs-widget 上层 */
    width: 46px; height: 46px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.app-bubble:hover { transform: translateY(-2px) scale(1.05); }
.app-bubble:active { transform: scale(0.95); }
.app-bubble.green { background: var(--gradient-cool); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35); }
.app-bubble.amber { background: var(--gradient-warm); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35); }
.app-bubble.pink  { background: var(--gradient-pink); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35); }

/* ============================================================
   二十一、杂项
   ============================================================ */
/* .app-hidden 已在 12 章定义：v6 终极版（含 !important + 绝对定位） */
.app-flex { display: flex; }
.app-block { display: block; }
.app-text-center { text-align: center; }
.app-text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.app-divider {
    height: 1px;
    background: var(--border-light);
    margin: 12px 0;
}
.app-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
    padding: 0 4px;
}
.app-section-title:not(:first-child) { margin-top: 20px; }

/* 滚动隐藏辅助类（脚部元素；v7 终极：Tab Bar 永驻不隐藏） */
.scroll-hidden { opacity: 0 !important; pointer-events: none !important; transform: translateY(80px) !important; }
/* v7 终极修复：底部 Tab Bar（5 项菜单）必须始终可见，不参与滚动隐藏 */
.app-tab-bar.scroll-hidden { /* 禁用滚动隐藏，Tab Bar 永驻 */ }
.app-bubble.scroll-hidden { transform: translateY(80px) scale(0.6) !important; }

/* ============================================================
   二十二、移动端优先 / 桌面端辅助类
   ============================================================ */
.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 1024px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: block; }
}

/* ============================================================
   二十三、背景装饰（仅移动端）
   ============================================================ */
.app-bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}
.app-bg-orb-1 { width: 320px; height: 320px; background: linear-gradient(135deg, #6366f1, #8b5cf6); top: -80px; right: -80px; }
.app-bg-orb-2 { width: 240px; height: 240px; background: linear-gradient(135deg, #ec4899, #f43f5e); bottom: 20%; left: -60px; }
.app-bg-orb-3 { width: 200px; height: 200px; background: linear-gradient(135deg, #22d3ee, #06b6d4); top: 40%; right: 10%; }
@media (min-width: 1024px) { .app-bg-orb { display: none; } }

/* ============================================================
   二十四、通知 banner / 公告条（v7 终极：删除整个 .app-notice-bar 块，不再使用）
   ============================================================ */

/* ============================================================
   二十四·补、模拟 select（v7 终极：解决 iOS Safari 系统级 select 弹窗问题）
   ============================================================ */
.app-select-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.app-select-mock:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.app-select-mock:active {
    transform: scale(0.99);
}
.app-select-mock-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-select-mock-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}
.app-select-mock.is-open .app-select-mock-arrow {
    transform: rotate(180deg);
}
/* 真正的 select 完全隐藏：iOS 接受 opacity 0 + pointer-events none，不触发系统弹窗 */
.app-hidden-real {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* ============================================================
   二十五、版本切换 tab
   ============================================================ */
.app-version-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 0;
    font-family: inherit;
}
.app-version-tab:hover { background: #fff; color: var(--text-primary); }
.app-version-tab.active.cloud   { background: var(--gradient-purple); color: #fff; box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); }
.app-version-tab.active.dg      { background: var(--gradient-cool); color: #fff; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.app-version-tab.active.qzone   { background: var(--gradient-warm); color: #fff; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
.app-version-tab.active {
    border: 0;
}

/* ============================================================
   二十六、辅助：图标彩色背景
   ============================================================ */
.app-icon-purple { background: var(--gradient-purple); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), 0 2px 6px rgba(99, 102, 241, 0.3); }
.app-icon-blue   { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), 0 2px 6px rgba(59, 130, 246, 0.3); }
.app-icon-pink   { background: var(--gradient-pink); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5), 0 2px 6px rgba(236, 72, 153, 0.3); }
.app-icon-green  { background: var(--gradient-green); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5), 0 2px 6px rgba(16, 185, 129, 0.3); }
.app-icon-orange { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5), 0 2px 6px rgba(245, 158, 11, 0.3); }
.app-icon-yellow { background: var(--gradient-yellow); box-shadow: 0 6px 20px rgba(234, 179, 8, 0.5), 0 2px 6px rgba(234, 179, 8, 0.3); }
.app-icon-cyan   { background: var(--gradient-blue); box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35); }
.app-icon-red    { background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%); box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }

/* ============================================================
   二十七、QQ 卡片兼容样式（index_modern.js 依赖）
   ============================================================ */
.qq-card-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.qq-card-item:hover { background: #fff; border-color: rgba(99, 102, 241, 0.2); }
.qq-card-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.qq-card-info { flex: 1; min-width: 0; }
.qq-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qq-card-sub {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.qq-card-manage-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    text-decoration: none;
}
.qq-card-manage-btn:hover { background: rgba(99, 102, 241, 0.15); color: var(--primary-dark); }

/* ============================================================
   二十八、登录/注册 hero
   ============================================================ */
.app-login-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 60px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.app-login-hero::before,
.app-login-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.app-login-hero::before {
    width: 220px; height: 220px;
    top: -80px; right: -80px;
}
.app-login-hero::after {
    width: 160px; height: 160px;
    bottom: 40px; left: -50px;
    background: rgba(255, 255, 255, 0.08);
}
.app-login-logo {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}
.app-login-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.app-login-subtitle {
    font-size: 13px;
    opacity: 0.95;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

/* 登录 Tab 切换 */
.app-login-tabs {
    display: flex;
    background: #fff;
    border-radius: 9999px;
    padding: 4px;
    margin: -28px 24px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}
.app-login-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 0;
    font-family: inherit;
}
.app-login-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================================
   二十九、个人中心头像横幅
   ============================================================ */
.app-profile-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 20px 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}
.app-profile-hero::before {
    content: '';
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    top: -60px; right: -40px;
    pointer-events: none;
}
.app-profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.app-profile-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.app-profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-profile-uid {
    font-size: 12px;
    opacity: 0.9;
}
.app-profile-vip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    backdrop-filter: blur(10px);
}

/* ============================================================
   三十、退出登录按钮
   ============================================================ */
.app-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: #fff;
    color: var(--red);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 16px;
}
.app-logout-btn:hover { background: rgba(239, 68, 68, 0.05); }
.app-logout-btn:active { transform: scale(0.98); }

/* ============================================================
   三十一、底部 fixed 操作按钮（购买页）
   ============================================================ */
.app-bottom-action {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border-light);
    padding: 10px 16px calc(10px + var(--safe-bottom));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}
@media (min-width: 1024px) { .app-bottom-action { display: none; } }
.app-bottom-action-info { flex: 1; min-width: 0; }
.app-bottom-action-price {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.1;
}
.app-bottom-action-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.app-bottom-action-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 28px;
    border-radius: 9999px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.app-bottom-action-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); }
.app-bottom-action-btn:active { transform: scale(0.97); }

/* ============================================
   v9 现代化组件（替换 v3 glass-* 体系）
   ============================================ */

/* app-card：通用卡片背景，有底色不透明，毛玻璃效果 */
.app-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    padding: 16px;
    margin-bottom: 12px;
    color: #1f2937;
}

/* app-card-sub：小卡片（说明行等） */
.app-card-sub {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 16px !important;
    padding: 8px 12px;
    font-size: 12px;
    color: #6b7280;
}

/* app-page-header：页面标题卡片 */
.app-page-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    padding: 16px;
    margin: 8px 0 12px;
}
.app-page-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.app-page-header p {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* app-input：输入框 */
.app-input,
.app-select,
input[type="text"].app-input,
input[type="number"].app-input,
input[type="password"].app-input,
select.app-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(99, 102, 241, 0.2) !important;
    border-radius: 12px !important;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.app-input:focus,
.app-select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}
.app-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236366f1' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
}

/* app-btn：基础按钮 */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.app-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.app-btn:active { transform: scale(0.96); }

/* app-btn-primary：主按钮（蓝紫渐变，用于"添加QQ"） */
.app-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}
.app-btn-primary:hover { box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45) !important; }

/* app-btn-secondary：次要按钮（用于"返回上一层"等） */
.app-btn-secondary {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #4b5563 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* app-message-item：消息列表项 */
.app-message-item {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    border-radius: 12px !important;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.app-message-item:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}
.app-message-item.unread {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.05);
}

/* app-empty：空状态容器 */
.app-empty {
    text-align: center;
    padding: 48px 16px;
    color: #9ca3af;
}
.app-empty i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
    display: block;
}
.app-empty p {
    font-size: 14px;
    color: #9ca3af;
}
