/* ============================================
   纯白极简商城管理系统 - 全局样式
   强制浅色模式，手机端锁定缩放
   ============================================ */

/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #ffffff !important;
    color: #1a1a1a !important;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* 强制浅色模式 - 覆盖深色模式 */
:root {
    color-scheme: light only;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #f0f0f0;
    --border-light: #f5f5f5;
    --accent: #1a1a1a;
    --price-red: #e53935;
    --title-green: #43a047;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

/* 深色模式强制覆盖 */
@media (prefers-color-scheme: dark) {
    html, body {
        background: #ffffff !important;
        color: #1a1a1a !important;
    }
    * {
        color-scheme: light only !important;
    }
}

/* 通用工具类 */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s;
    outline: none;
    -webkit-appearance: none;
}
.btn:active { opacity: 0.8; }
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-outline { background: #fff; color: #1a1a1a; border: 1px solid #e0e0e0; }
.btn-danger { background: #e53935; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { height: 50px; font-size: 15px; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #1a1a1a;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #1a1a1a;
    background: #fff;
}
.form-textarea { min-height: 100px; resize: vertical; }

/* 卡片 */
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

/* ============================================
   顶部导航栏
   ============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    padding-top: env(safe-area-inset-top);
}
.topbar-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
}
.topbar-btn:active { background: #f5f5f5; }
.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 头像下拉菜单 */
.avatar-wrapper { position: relative; }
.avatar-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
    cursor: pointer;
}
.avatar-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    width: 160px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
    display: none;
}
.avatar-dropdown.show { display: block; }
.avatar-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
}
.avatar-dropdown-item:last-child { border-bottom: none; }
.avatar-dropdown-item:active { background: #fafafa; }
.avatar-dropdown-item.logout { color: #e53935; }

/* ============================================
   侧边栏菜单 (三条杠)
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 160;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.sidebar.show { left: 0; }

/* 侧边栏头部 - 头像框 + 背景轮播 */
.sidebar-header {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-bg-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease;
}
.sidebar-bg-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(0px);
}
.sidebar-bg-default {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #f0f0f0 100%);
    filter: blur(0px);
}
.sidebar-header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}
.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sidebar-username {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* 侧边栏菜单按钮 */
.sidebar-menu {
    flex: 1;
    padding: 12px 0;
}
.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}
.sidebar-menu-item:active,
.sidebar-menu-item.active {
    background: #fafafa;
    border-left-color: #1a1a1a;
}
.sidebar-menu-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 商品列表 box 下拉 */
.product-box {
    background: #fafafa;
    margin: 0 12px 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.product-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
}
.product-box-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}
.product-box-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.product-box-toggle.expanded { transform: rotate(180deg); }
.product-box-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.product-box-body.open { max-height: 500px; }
.product-box-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: #f5f5f5;
    color: #1a1a1a;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    gap: 8px;
    border-bottom: 1px solid #eee;
}
.product-box-btn:last-child { border-bottom: none; }
.product-box-btn:active { background: #eee; }

/* ============================================
   主内容区
   ============================================ */
.main-content {
    padding-top: 52px;
    padding-bottom: 20px;
    min-height: 100vh;
    background: #fff;
}
.page-content { padding: 16px; }

/* 页面标题 */
.page-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}
.page-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

/* ============================================
   商品卡片（前台展示）
   ============================================ */
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.product-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
}
.product-card-body { padding: 12px; }
.product-card-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}
.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--price-red);
}
.product-card-price .currency { font-size: 13px; }

/* ============================================
   商品详情页
   ============================================ */
.detail-images {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}
.detail-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.detail-info { padding: 16px; }
.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.detail-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--price-red);
}
.detail-price .currency { font-size: 16px; }

/* 大标题（绿色 + logo） */
.detail-big-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--title-green);
    margin-bottom: 8px;
}
.detail-big-title img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

/* 小标题三种字体 */
.detail-sub-titles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.sub-special {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff6b35, #e53935);
    padding: 2px 8px;
    border-radius: 4px;
    font-style: italic;
    letter-spacing: 0.5px;
}
.sub-flagship {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}
.sub-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.detail-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    white-space: pre-wrap;
}

/* 底部操作栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    font-size: 10px;
    gap: 2px;
}
.bottom-bar-icon svg { width: 22px; height: 22px; }
.bottom-bar-icon.active { color: #e53935; }
.btn-buy {
    flex: 1;
    height: 42px;
    background: linear-gradient(135deg, #ff6b35, #e53935);
    color: #fff;
    border: none;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   弹窗
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}
.modal-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}
.modal-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}
.modal-actions {
    display: flex;
    gap: 10px;
}
.modal-actions .btn { flex: 1; }

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}
.qty-btn:active { background: #eee; }
.qty-value {
    font-size: 20px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: #1a1a1a;
}
.total-amount {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
}
.total-amount strong {
    color: var(--price-red);
    font-size: 20px;
    font-weight: 700;
}

/* ============================================
   登录页
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
}
.login-box {
    width: 100%;
    max-width: 360px;
}
.login-logo {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    border-radius: 16px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}
.login-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}
.login-sub {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-bottom: 32px;
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state-text { font-size: 14px; }

/* ============================================
   Toast 提示
   ============================================ */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    max-width: 80%;
    text-align: center;
}
.toast.show { opacity: 1; }

/* 图片上传预览 */
.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
}
.upload-area:active { border-color: #1a1a1a; }
.upload-area-text { font-size: 13px; color: #999; margin-top: 8px; }
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.upload-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
}
.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.upload-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

/* 商品管理列表 */
.admin-product-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}
.admin-product-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.admin-product-info { flex: 1; min-width: 0; }
.admin-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--price-red);
}
.admin-product-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}
.admin-product-actions button {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
}
.admin-product-actions button.del { color: #e53935; border-color: #ffd6d6; }

/* 背景管理 */
.bg-manage-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.bg-manage-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

/* Switch 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e0e0e0;
    transition: 0.3s;
    border-radius: 26px;
}
.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.switch input:checked + .slider {
    background-color: #9c27b0;
}
.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* AI 关键词标签 */
.ai-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f3e5f5;
    color: #7b1fa2;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.ai-tag:active {
    background: #e1bee7;
}

/* AI 生成动画 */
@keyframes aiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.ai-loading {
    animation: aiPulse 0.8s ease-in-out infinite;
}

/* ============================================
   液态玻璃全局覆盖
   ============================================ */
body {
    background: linear-gradient(180deg, #eef1f7 0%, #e8ecf4 50%, #e3e7f0 100%) !important;
    position: relative;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(140,170,255,.18), transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(180,150,255,.14), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.main-content, .page-content, .container {
    position: relative;
    z-index: 1;
}

/* 顶部栏玻璃化 */
.topbar {
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.25) !important;
    box-shadow: 0 2px 12px rgba(80,100,160,0.04) !important;
}

/* 卡片玻璃化 */
.card, .stat-card, .product-card, .order-card, .form-card, .settings-card {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(8px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px rgba(80,100,160,0.05), inset 0 1px 0 rgba(255,255,255,0.4) !important;
}

/* 按钮玻璃化 */
.btn, .btn-primary, .btn-success, .btn-danger, .btn-secondary {
    background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.15)) !important;
    backdrop-filter: blur(8px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #1a1a2e !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 8px rgba(80,100,160,0.05) !important;
}
.btn-primary {
    background: linear-gradient(180deg, rgba(74,125,255,0.75), rgba(74,125,255,0.55)) !important;
    color: #fff !important;
    border-color: rgba(74,125,255,0.4) !important;
}
.btn-danger {
    background: linear-gradient(180deg, rgba(229,57,53,0.75), rgba(229,57,53,0.55)) !important;
    color: #fff !important;
    border-color: rgba(229,57,53,0.4) !important;
}

/* 输入框玻璃化 */
.form-input, input[type="text"], input[type="password"], input[type="number"], input[type="email"], textarea, select {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 12px !important;
    color: #1a1a2e !important;
}
.form-input:focus, input:focus, textarea:focus, select:focus {
    border-color: rgba(74,125,255,0.45) !important;
    background: rgba(255,255,255,0.4) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(74,125,255,0.1) !important;
}

/* 侧边栏玻璃化 */
.sidebar {
    background: rgba(255,255,255,0.22) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    border-right: 1px solid rgba(255,255,255,0.3) !important;
}
.sidebar-menu-item {
    background: transparent !important;
    color: #1a1a2e !important;
    border-radius: 12px !important;
}
.sidebar-menu-item:hover, .sidebar-menu-item.active {
    background: rgba(255,255,255,0.4) !important;
}

/* 表格玻璃化 */
table {
    background: rgba(255,255,255,0.2) !important;
    border-radius: 14px !important;
    overflow: hidden;
}
th {
    background: rgba(255,255,255,0.3) !important;
    color: #1a1a2e !important;
}
td {
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    color: #333 !important;
}

/* 商品列表box玻璃化 */
.product-box, .product-box-header {
    background: rgba(255,255,255,0.28) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
    border-radius: 14px !important;
}
.product-box-btn {
    background: rgba(255,255,255,0.35) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 10px !important;
    color: #1a1a2e !important;
}

/* 弹窗玻璃化 */
.modal-box, .modal-overlay .modal-box {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 20px !important;
}

/* 标签页玻璃化 */
.tab-bar-glass, .tabs {
    background: rgba(255,255,255,0.28) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
    border-radius: 14px !important;
}
.tab-btn.active {
    background: rgba(255,255,255,0.5) !important;
    color: #1a1a2e !important;
}

/* 登录页玻璃化 */
.login-page {
    background: transparent !important;
}
.login-box, .install-box {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(80,100,160,0.06), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}
.login-logo {
    background: linear-gradient(135deg, #7c9cff, #b48cff) !important;
}
.login-title, .install-title {
    color: #1a1a2e !important;
}
.login-sub, .install-sub {
    color: #666 !important;
}
.form-label {
    color: #333 !important;
}

/* ============================================
   全面透明玻璃化 - 所有纯白元素
   ============================================ */
/* 商品卡片 & 列表项 */
.product-item, .product-grid-item, .goods-card, .goods-item,
.product-list-item, .shop-card, .item-card {
    background: rgba(255,255,255,0.28) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px rgba(80,100,160,0.06) !important;
}

/* 商品详情区域 */
.product-detail, .product-info, .product-desc, .detail-section,
.goods-detail, .goods-info, .info-block {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
    border-radius: 16px !important;
}

/* 通用区块/面板 */
.section, .block, .panel, .box, .wrapper, .content-box,
.module, .group, .field-group, .form-group {
    background: rgba(255,255,255,0.22) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 14px !important;
}

/* 空状态 */
.empty-state, .empty-box, .no-data, .no-result {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px dashed rgba(255,255,255,0.4) !important;
    border-radius: 16px !important;
}

/* 标签/徽章 */
.badge, .tag, .label, .chip, .mark {
    background: rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 10px !important;
}

/* 分割线 */
.divider, .hr, hr {
    background: rgba(255,255,255,0.3) !important;
    border: none !important;
    height: 1px !important;
}

/* 头像下拉 */
.avatar-dropdown, .dropdown-menu, .popup-menu {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(80,100,160,0.12) !important;
}
.avatar-dropdown-item, .dropdown-item {
    background: transparent !important;
    color: #1a1a2e !important;
    border-radius: 10px !important;
}
.avatar-dropdown-item:hover, .dropdown-item:hover {
    background: rgba(255,255,255,0.4) !important;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    background: rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(2px) !important;
}

/* 商品box下拉 */
.product-box, .product-box-header, .box-header {
    background: rgba(255,255,255,0.28) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255,255,255,0.38) !important;
    border-radius: 14px !important;
}
.product-box-btn, .box-btn {
    background: rgba(255,255,255,0.35) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 10px !important;
    color: #1a1a2e !important;
}

/* 页面标题区 */
.page-header, .page-title-bar, .title-bar {
    background: transparent !important;
}

/* 统计数字卡片 */
.stat-number, .stat-value {
    background: transparent !important;
}

/* 上传区域 */
.upload-area, .upload-box, .drop-zone {
    background: rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(4px) !important;
    border: 2px dashed rgba(255,255,255,0.4) !important;
    border-radius: 14px !important;
}

/* 开关 */
.switch .slider {
    background: rgba(255,255,255,0.35) !important;
}

/* 提示框 */
.alert, .notice, .message, .toast {
    background: rgba(255,255,255,0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    border-radius: 12px !important;
}

/* 所有白色背景强制变透明玻璃 */
[style*="background: #fff"], [style*="background:#fff"],
[style*="background: white"], [style*="background:white"],
[style*="background-color: #fff"], [style*="background-color:#fff"],
[style*="background-color: white"], [style*="background-color:white"] {
    background: rgba(255,255,255,0.28) !important;
    backdrop-filter: blur(6px) !important;
}
