/* ============================================
   StoreGG - 彩虹云商城 storegg 模板样式
   主色调: 灰/白/黑
   ============================================ */

/* === 全局重置 === */
.storegg-body {
    width: 100%;
    max-width: 650px;
    margin: auto;
    background: #f5f5f5;
    line-height: 1.6;
    font: 14px -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
}
.storegg-body a { text-decoration: none; color: inherit; }
.storegg-body a:hover { text-decoration: none; }
.storegg-body * { box-sizing: border-box; }

/* === 用户中心页面 === */
.storegg-user {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 90px;
}

/* 顶部渐变背景 */
.storegg-user-header {
    position: relative;
    background: #111;
    padding: 20px 16px 30px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
}
.storegg-user-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.storegg-user-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* 顶部导航栏 */
.storegg-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
}
.storegg-topbar .storegg-back {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.storegg-topbar .storegg-back:hover { background: rgba(255,255,255,0.3); }
.storegg-topbar .storegg-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.storegg-topbar .storegg-settings {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.storegg-topbar .storegg-settings:hover { background: rgba(255,255,255,0.3); }

/* 用户信息卡片 */
.storegg-user-card {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.storegg-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.storegg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.storegg-user-info {
    margin-left: 14px;
    flex: 1;
}
.storegg-nickname {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.storegg-uid {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
}
.storegg-level {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}
.storegg-level-vip {
    background: #111;
    color: #fff;
}
.storegg-level-agent {
    background: #111;
    color: #fff;
}
.storegg-level-super {
    background: #111;
    color: #fff;
}
.storegg-level-normal {
    background: rgba(0,0,0,0.25);
    color: #fff;
}

/* 余额和收益行 */
.storegg-balance-row {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 12px;
}
.storegg-balance-item {
    flex: 1;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s;
}
.storegg-balance-item:active { opacity: 0.85; }
.storegg-balance-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
}
.storegg-balance-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.storegg-balance-btn {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(0,0,0,0.25);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s;
}
.storegg-balance-btn:hover { background: rgba(255,255,255,0.4); color: #fff; }

/* 内容区域 */
.storegg-content {
    padding: 0 12px;
    margin-top: -10px;
    position: relative;
    z-index: 3;
}

/* 菜单卡片 */
.storegg-menu-card {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.storegg-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
    cursor: pointer;
}
.storegg-menu-item:last-child { border-bottom: none; }
.storegg-menu-item:active { background: #f9f9f9; }
.storegg-menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 12px;
}
.storegg-menu-icon.orange { background: #f0f0f0; color: #475569; }
.storegg-menu-icon.red { background: #f0f0f0; color: #555; }
.storegg-menu-icon.blue { background: #e3f2fd; color: #2196f3; }
.storegg-menu-icon.green { background: #e8f5e9; color: #4caf50; }
.storegg-menu-icon.purple { background: #f3e5f5; color: #9c27b0; }
.storegg-menu-icon.teal { background: #e0f2f1; color: #009688; }
.storegg-menu-icon.pink { background: #f0f0f0; color: #555; }
.storegg-menu-icon.indigo { background: #e8eaf6; color: #3f51b5; }
.storegg-menu-icon.amber { background: #f0f0f0; color: #888; }
.storegg-menu-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.storegg-menu-remark {
    font-size: 12px;
    color: #999;
    margin-right: 8px;
}
.storegg-menu-arrow {
    color: #ccc;
    font-size: 14px;
}

/* 订单状态图标行 */
.storegg-order-icons {
    display: flex;
    padding: 12px 0;
    flex-wrap: wrap;
}
.storegg-order-icon {
    flex: 1;
    min-width: 20%;
    text-align: center;
    padding: 8px 4px;
    transition: transform 0.2s;
}
.storegg-order-icon:active { opacity: 0.85; }
.storegg-order-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.storegg-order-icon-circle.orange {
    background: #f5f5f5;
    color: #475569;
}
.storegg-order-icon-circle.green {
    background: #e8f5e9;
    color: #4caf50;
}
.storegg-order-icon-circle.blue {
    background: #e3f2fd;
    color: #2196f3;
}
.storegg-order-icon-circle.pink {
    background: #f5f5f5;
    color: #555;
}
.storegg-order-icon-circle.red {
    background: #f5f5f5;
    color: #555;
}
.storegg-order-icon-text {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* 折叠面板 */
.storegg-accordion-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.storegg-accordion-header:active { background: #f9f9f9; }
.storegg-accordion-header .storegg-menu-icon { margin-right: 12px; }
.storegg-accordion-header .storegg-menu-text { flex: 1; }
.storegg-accordion-toggle {
    font-size: 12px;
    color: #ccc;
    transition: transform 0.3s;
}
.storegg-accordion-toggle.open { transform: rotate(180deg); }
.storegg-accordion-content {
    display: none;
    padding: 0 16px 12px;
}
.storegg-accordion-content.open { display: block; }

/* 图标网格 */
.storegg-icon-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0;
}
.storegg-icon-grid-item {
    flex: 1;
    min-width: 33.33%;
    text-align: center;
    padding: 10px 6px;
    transition: transform 0.2s;
}
.storegg-icon-grid-item:active { opacity: 0.85; }
.storegg-icon-grid-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin: 0 auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.storegg-icon-grid-circle.orange { background: #f0f0f0; color: #475569; }
.storegg-icon-grid-circle.green { background: #e8f5e9; color: #4caf50; }
.storegg-icon-grid-circle.blue { background: #e3f2fd; color: #2196f3; }
.storegg-icon-grid-circle.pink { background: #f0f0f0; color: #555; }
.storegg-icon-grid-circle.purple { background: #f3e5f5; color: #9c27b0; }
.storegg-icon-grid-text {
    font-size: 11px;
    color: #666;
}

/* 退出登录按钮 */
.storegg-logout-section {
    padding: 0 12px;
    margin: 16px 0;
}
.storegg-logout-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.storegg-logout-btn:active { background: #f0f0f0; opacity: 0.9; }

/* 底部版权 */
.storegg-footer {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #999;
    margin-bottom: 70px;
}
.storegg-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0 8px;
}
.storegg-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.storegg-footer-links a:hover { color: #555; background: #f5f5f5; }
.storegg-footer-links a i { font-size: 13px; }
.storegg-footer-info { text-align: center; }
.storegg-footer-info p { margin: 4px 0; color: #999; font-size: 12px; }
.storegg-footer-desc { color: #bbb !important; font-size: 11px !important; }

/* ===== 统一底部导航栏 (苹果风格悬浮毛玻璃) ===== */
.storegg-footer-nav,
.storegg-navbar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 626px;
    height: 60px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.5) inset;
    z-index: 1000;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0 4px;
}
.storegg-footer-nav a,
.storegg-navbar .storegg-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    padding: 6px 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 10px;
    position: relative;
    border-radius: 18px;
    gap: 2px;
}
.storegg-footer-nav a .nav-icon,
.storegg-navbar .storegg-nav-item .storegg-nav-icon {
    font-size: 20px;
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.storegg-footer-nav a.active,
.storegg-navbar .storegg-nav-item.active {
    color: #333;
    background: rgba(51,51,51,0.08);
}
.storegg-footer-nav a.active .nav-icon,
.storegg-navbar .storegg-nav-item.active .storegg-nav-icon {
    transform: scale(1.15) translateY(-1px);
}
.storegg-footer-nav a .cart-count,
.storegg-navbar .storegg-nav-item .cart-count {
    position: absolute;
    top: 2px; right: 25%;
    background: #333;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}

/* === 登录/注册/找回密码 页面 === */
.storegg-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    padding: 20px 16px 90px;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}
.storegg-auth::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.storegg-auth::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.storegg-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 22px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 0 auto;
    box-sizing: border-box;
}
.storegg-auth-back {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.storegg-auth-back:hover { background: #e0e0e0; }
.storegg-auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 28px;
    letter-spacing: 2px;
}
.storegg-auth-form-group {
    margin-bottom: 16px;
}
.storegg-auth-input-wrap {
    display: flex;
    align-items: center;
    background: #f7f8fa;
    border-radius: 12px;
    padding: 0 14px;
    border: 1.5px solid transparent;
    transition: all 0.3s;
}
.storegg-auth-input-wrap:focus-within {
    border-color: #555;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(85,85,85,0.1);
}
.storegg-auth-input-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 16px;
    flex-shrink: 0;
}
.storegg-auth-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    outline: none;
}
.storegg-auth-input::placeholder { color: #bbb; }
.storegg-auth-captcha-img {
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
}
.storegg-auth-forgot {
    text-align: right;
    margin-bottom: 16px;
}
.storegg-auth-forgot a {
    font-size: 12px;
    color: #555;
}
.storegg-auth-submit {
    display: block;
    width: 100%;
    padding: 13px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 auto;
    box-sizing: border-box;
    -webkit-appearance: none;
    outline: none;
}
.storegg-auth-submit:active {
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.storegg-auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #999;
}
.storegg-auth-link a {
    color: #555;
    font-weight: 500;
}
.storegg-auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}
.storegg-auth-divider::before,
.storegg-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}
.storegg-auth-divider span {
    padding: 0 16px;
    font-size: 12px;
    color: #ccc;
}
.storegg-auth-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.storegg-auth-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}
.storegg-auth-social-btn:hover { border-color: #555; transform: scale(1.1); }
.storegg-auth-social-btn.qq { background-image: url(../assets/img/logo2.png); }
.storegg-auth-social-btn.wx { background-image: url(../assets/img/wx.png); }

/* 验证码加载区域 */
.storegg-auth-captcha-area {
    text-align: center;
    padding: 10px;
    margin-bottom: 12px;
}
.storegg-auth-captcha-area .captcha-text {
    font-size: 13px;
    color: #999;
}

/* === 客服页面 === */
.storegg-kf {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    padding-bottom: 60px;
}
.storegg-kf-header {
    background: #111;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.storegg-kf-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.storegg-kf-info { flex: 1; }
.storegg-kf-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.storegg-kf-status {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}
.storegg-kf-controls {
    display: flex;
    gap: 8px;
}
.storegg-kf-control-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.storegg-kf-control-btn:hover { background: rgba(255,255,255,0.3); }

.storegg-kf-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f5f5f5;
}
.storegg-kf-msg {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}
.storegg-kf-msg.admin { align-items: flex-start; }
.storegg-kf-msg.user { align-items: flex-end; }
.storegg-kf-bubble {
    display: inline-block;
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 14px;
    word-break: break-all;
    line-height: 1.5;
    position: relative;
}
.storegg-kf-msg.admin .storegg-kf-bubble {
    background: #fff;
    color: #333;
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.storegg-kf-msg.user .storegg-kf-bubble {
    background: #111;
    color: #fff;
    border-radius: 16px 4px 16px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.storegg-kf-bubble img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
}
.storegg-kf-time {
    font-size: 11px;
    color: #bbb;
    margin: 4px 8px;
}
.storegg-kf-msg.admin .storegg-kf-time { margin-left: 8px; }

/* 快捷问题 */
.storegg-kf-quick {
    margin: 12px 0;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.storegg-kf-quick-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}
.storegg-kf-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.storegg-kf-quick-item {
    padding: 6px 14px;
    background: #f7f8fa;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.storegg-kf-quick-item:hover {
    background: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.storegg-kf-quick-item:active {
    background: #e0e0e0;
    opacity: 0.85;
}

/* 快捷操作按钮 */
.storegg-kf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.storegg-kf-action-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.storegg-kf-action-btn:hover {
    border-color: #2c3e50;
    color: #333;
}
.storegg-kf-action-btn:active {
    background: #f0f0f0;
    opacity: 0.85;
}

/* 输入发送栏 */
.storegg-kf-input-bar {
    padding: 10px 14px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.storegg-kf-input {
    flex: 1;
    border: 1.5px solid #eee;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: #f7f8fa;
    transition: all 0.3s;
}
.storegg-kf-input:focus {
    border-color: #555;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(85,85,85,0.08);
}
.storegg-kf-input-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
}
.storegg-kf-input-btn.upload {
    background: #f0f0f0;
    color: #666;
}
.storegg-kf-input-btn.upload:hover { background: #e0e0e0; }
.storegg-kf-input-btn.send {
    background: #111;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.storegg-kf-input-btn.send:hover { transform: scale(1.05); }
.storegg-kf-input-btn.send:active { opacity: 0.85; }

/* === 分类页面 === */
.storegg-category-page {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 100px;
}
.storegg-category-header {
    position: sticky;
    top: 0;
    background: #111;
    padding: 14px 16px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    z-index: 100;
    letter-spacing: 1px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.storegg-category-content {
    padding: 12px;
}

/* 分类轮播 */
.storegg-category-swiper {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}
.storegg-category-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
}
.storegg-category-item {
    width: 20%;
    padding: 8px 4px;
    text-align: center;
    transition: transform 0.2s;
}
.storegg-category-item:active { opacity: 0.85; }
.storegg-category-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.storegg-category-item.active .storegg-category-img {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51,51,51,0.2);
}
.storegg-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.storegg-category-name {
    font-size: 11px;
    color: #555;
    line-height: 1.3;
}
.storegg-category-item.active .storegg-category-name {
    color: #333;
    font-weight: 600;
}

/* 二级分类 */
.storegg-sub-category-box {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.storegg-sub-category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #333;
}
.storegg-sub-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.storegg-sub-category-item {
    padding: 6px 14px;
    background: #f7f8fa;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.storegg-sub-category-item:hover {
    background: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.storegg-sub-category-item:active {
    background: #e0e0e0;
    opacity: 0.85;
}

/* 分页器 */
.storegg-swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
}
.storegg-swiper-dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
}
.storegg-swiper-dot.active {
    width: 32px;
    background: #111;
}

/* 响应式 */
@media (max-width: 375px) {
    .storegg-category-item { width: 25%; }
    .storegg-category-img { width: 44px; height: 44px; }
    .storegg-order-icon { min-width: 25%; }
    .storegg-icon-grid-item { min-width: 50%; }
}

/* === 加盟赚钱页面 === */
.storegg-invite {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 90px;
}
.storegg-invite-header {
    background: #111;
    padding: 20px 16px 40px;
    border-radius: 0 0 28px 28px;
}
.storegg-invite-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.storegg-invite-topbar .storegg-back {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.storegg-invite-topbar .storegg-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.storegg-invite-hero {
    text-align: center;
    color: #fff;
    padding: 10px 0;
}
.storegg-invite-hero-icon {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}
.storegg-invite-hero h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}
.storegg-invite-hero p {
    font-size: 13px;
    opacity: 0.85;
    margin: 0;
}
.storegg-invite-steps {
    margin: -20px 12px 12px;
    position: relative;
    z-index: 2;
}
.storegg-invite-step {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.storegg-invite-step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.storegg-invite-step-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}
.storegg-invite-step-content p {
    font-size: 12px;
    color: #999;
    margin: 0;
}
.storegg-invite-features {
    margin: 0 12px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.storegg-invite-feature {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    text-align: center;
}
.storegg-invite-feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    color: #fff;
}
.storegg-invite-feature-icon.orange { background: #111; }
.storegg-invite-feature-icon.green { background: #111; }
.storegg-invite-feature-icon.blue { background: #111; }
.storegg-invite-feature-icon.pink { background: #111; }
.storegg-invite-feature-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}
.storegg-invite-feature-text p {
    font-size: 11px;
    color: #999;
    margin: 0;
}
.storegg-invite-cta {
    margin: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}
.storegg-invite-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.storegg-invite-btn:active { opacity: 0.9; }
.storegg-invite-btn-outline {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #333;
    border: 1.5px solid #333;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}
.storegg-invite-btn-outline:active { background: #f5f5f5; opacity: 0.9; }

/* ============================================
   新增样式 - 全面补充
   ============================================ */

/* === 统一页面底部 (storegg-page-footer) === */
/* 用于所有页面统一的底部容器，包含版权信息和链接 */
.storegg-page-footer {
    width: 100%;
    padding: 20px 16px 80px;
    background: #f5f5f5;
    text-align: center;
    font-size: 12px;
    color: #999;
    box-sizing: border-box;
}

/* === 版权文字 (storegg-footer-copy) === */
.storegg-footer-copy {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    padding: 8px 0;
    line-height: 1.8;
}
.storegg-footer-copy a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.storegg-footer-copy a:hover {
    color: #555;
}

/* === 增强底部链接区域 === */
.storegg-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0 8px;
    width: 100%;
}
.storegg-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.2s;
    white-space: nowrap;
}
.storegg-footer-links a:hover {
    color: #555;
    background: #f5f5f5;
    ;
    box-shadow: 0 2px 8px rgba(85,85,85,0.1);
}
.storegg-footer-links a i,
.storegg-footer-links a .fas,
.storegg-footer-links a .far {
    font-size: 13px;
    color: #666;
    width: 16px;
    text-align: center;
}

/* === 增强底部信息区域 === */
.storegg-footer-info {
    text-align: center;
    padding: 4px 0;
}
.storegg-footer-info p {
    margin: 4px 0;
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}
.storegg-footer-desc {
    color: #bbb !important;
    font-size: 11px !important;
}
.storegg-footer-info .storegg-footer-copy {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.storegg-auth-card {
    margin: auto 0;
}
/* 防止短屏设备上卡片溢出 */
@media (max-height: 600px) {
    .storegg-auth {
        justify-content: flex-start;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .storegg-auth-card {
        margin: 0 auto;
    }
}

/* === 消息通知页面 (storegg-message) === */
.storegg-message {
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 90px;
}
.storegg-message-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #111;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.storegg-message-header .storegg-back {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.storegg-message-header .storegg-back:hover {
    background: rgba(255,255,255,0.3);
}
.storegg-message-header .storegg-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}
.storegg-message-header .storegg-message-action {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.storegg-message-header .storegg-message-action:hover {
    background: rgba(255,255,255,0.3);
}

/* 消息分类标签 */
.storegg-message-tabs {
    display: flex;
    background: #fff;
    padding: 0 4px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 62px;
    z-index: 99;
}
.storegg-message-tab {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    font-weight: 500;
}
.storegg-message-tab.active {
    color: #555;
    font-weight: 600;
}
.storegg-message-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: #111;
    border-radius: 2px 2px 0 0;
}
.storegg-message-tab .storegg-message-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    background: #555;
    color: #fff;
    font-size: 10px;
    padding: 0 5px;
    margin-left: 4px;
    font-weight: 500;
}

/* 消息列表 */
.storegg-message-list {
    padding: 0;
}
.storegg-message-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.storegg-message-item:active {
    background: #f9f9f9;
}
.storegg-message-item.unread {
    background: #f8f8f8;
}
.storegg-message-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: #111;
    border-radius: 0 3px 3px 0;
}
.storegg-message-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 12px;
}
.storegg-message-icon.system {
    background: #f0f0f0;
    color: #475569;
}
.storegg-message-icon.order {
    background: #e3f2fd;
    color: #2196f3;
}
.storegg-message-icon.promo {
    background: #f0f0f0;
    color: #555;
}
.storegg-message-icon.notice {
    background: #e8f5e9;
    color: #4caf50;
}
.storegg-message-icon.warn {
    background: #f0f0f0;
    color: #555;
}
.storegg-message-body {
    flex: 1;
    min-width: 0;
}
.storegg-message-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.storegg-message-item.read .storegg-message-title {
    font-weight: 400;
    color: #666;
}
.storegg-message-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.storegg-message-meta {
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}
.storegg-message-time {
    font-size: 11px;
    color: #bbb;
    margin-bottom: 4px;
    white-space: nowrap;
}
.storegg-message-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}

/* 消息为空状态 */
.storegg-message-empty {
    text-align: center;
    padding: 60px 20px;
}
.storegg-message-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
}
.storegg-message-empty-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}
.storegg-message-empty-sub {
    font-size: 12px;
    color: #ccc;
}

/* === Font Awesome 图标兼容 === */
/* 确保所有使用 Font Awesome 的图标正确显示 */
.storegg-menu-icon i,
.storegg-menu-icon .fas,
.storegg-menu-icon .far,
.storegg-menu-icon .fab {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
.storegg-order-icon-circle i,
.storegg-order-icon-circle .fas,
.storegg-order-icon-circle .far {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
.storegg-icon-grid-circle i,
.storegg-icon-grid-circle .fas,
.storegg-icon-grid-circle .far {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
.storegg-nav-item .storegg-nav-icon i,
.storegg-nav-item .storegg-nav-icon .fas,
.storegg-nav-item .storegg-nav-icon .far {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
.storegg-auth-input-icon i,
.storegg-auth-input-icon .fas,
.storegg-auth-input-icon .far {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
.storegg-message-icon i,
.storegg-message-icon .fas,
.storegg-message-icon .far {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}
/* 通用图标基类 */
.storegg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.storegg-icon i,
.storegg-icon .fas,
.storegg-icon .far,
.storegg-icon .fab {
    line-height: 1;
    vertical-align: middle;
}

/* === 全面响应式修复 === */

/* 小屏手机 (宽度 <= 374px) */
@media (max-width: 374px) {
    .storegg-body {
        max-width: 100%;
    }
    .storegg-footer-nav,
    .storegg-navbar {
        max-width: 100%;
    }
    .storegg-balance-row {
        flex-direction: column;
        gap: 8px;
    }
    .storegg-auth-card {
        padding: 24px 16px 20px;
    }
    .storegg-auth-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .storegg-category-item {
        width: 25%;
    }
    .storegg-category-img {
        width: 40px;
        height: 40px;
    }
    .storegg-order-icon {
        min-width: 25%;
    }
    .storegg-icon-grid-item {
        min-width: 50%;
    }
    .storegg-invite-features {
        grid-template-columns: 1fr;
    }
    .storegg-invite-hero h1 {
        font-size: 18px;
    }
    .storegg-message-item {
        padding: 12px 12px;
    }
    .storegg-message-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 10px;
    }
    .storegg-message-title {
        font-size: 13px;
    }
    .storegg-footer-links a {
        padding: 5px 10px;
        font-size: 11px;
    }
    .storegg-page-footer {
        padding: 16px 12px 80px;
    }
}

/* 标准手机 (375px - 413px) */
@media (min-width: 375px) and (max-width: 413px) {
    .storegg-category-item {
        width: 20%;
    }
    .storegg-category-img {
        width: 48px;
        height: 48px;
    }
    .storegg-order-icon {
        min-width: 20%;
    }
    .storegg-icon-grid-item {
        min-width: 33.33%;
    }
}

/* 大屏手机 (414px - 650px) */
@media (min-width: 414px) {
    .storegg-body {
        background: #e8eaed;
    }
    .storegg-user {
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }
    .storegg-auth {
        padding: 40px 20px 60px;
    }
    .storegg-auth-card {
        max-width: 380px;
    }
    .storegg-invite-features {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .storegg-message-item {
        padding: 16px 20px;
    }
}

/* 横屏/短屏修复 */
@media (max-height: 500px) and (orientation: landscape) {
    .storegg-auth {
        justify-content: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
        overflow-y: auto;
    }
    .storegg-auth-card {
        margin: 10px auto;
    }
    .storegg-footer-nav,
    .storegg-navbar {
        height: 46px;
    }
    .storegg-footer-nav a,
    .storegg-nav-item {
        font-size: 9px;
        padding: 2px 8px;
    }
    .storegg-footer-nav a .nav-icon,
    .storegg-nav-item .storegg-nav-icon {
        font-size: 16px;
    }
}

/* 平板及以上 */
@media (min-width: 651px) {
    .storegg-body {
        background: #ddd;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
    }
    .storegg-user {
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }
    .storegg-category-item {
        width: 16.66%;
    }
    .storegg-invite-features {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* 触摸设备通用优化 */
@media (hover: none) and (pointer: coarse) {
    .storegg-menu-item:hover,
    .storegg-balance-btn:hover,
    .storegg-category-item:hover,
    .storegg-sub-category-item:hover {
        background: inherit;
        color: inherit;
    }
    .storegg-menu-item:active {
        background: #f9f9f9;
    }
    .storegg-balance-btn:active {
        background: rgba(255,255,255,0.4);
    }
}