* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1.1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-size: 1.0rem;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, 
        rgba(58, 12, 163, 0.95) 0%, 
        rgba(79, 70, 229, 0.95) 35%,
        rgba(124, 58, 237, 0.95) 65%,
        rgba(147, 51, 234, 0.95) 100%);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 -1px 0 rgba(0, 0, 0, 0.15) inset,
        0 10px 40px rgba(124, 58, 237, 0.45),
        0 4px 20px rgba(0, 0, 0, 0.18),
        0 0 60px rgba(139, 92, 246, 0.2);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 15% 60%, rgba(251, 191, 36, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 20%, rgba(96, 165, 250, 0.25) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 120%, rgba(244, 114, 182, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* AI科技网格底纹 */
.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167, 139, 250, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    pointer-events: none;
}

.nav-bg-glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

/* AI扫描线效果 */
.navbar .nav-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(251, 191, 36, 0.1) 20%,
        rgba(167, 139, 250, 0.8) 50%,
        rgba(251, 191, 36, 0.6) 80%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.6);
    animation: navScanLine 4s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes navScanLine {
    0%, 100% { top: 0; opacity: 0.3; }
    50% { top: 100%; opacity: 0.9; }
}

/* 动态AI粒子 */
.navbar .nav-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(167, 139, 250, 0.4) 60%, transparent 100%);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
    pointer-events: none;
    animation: navParticleFloat 7s ease-in-out infinite;
    z-index: 2;
}

@keyframes navParticleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-16px) scale(1.4); opacity: 1; }
}

.navbar .nav-particle:nth-child(3) { width: 4px; height: 4px; top: 22%; left: 12%; animation-delay: 0s; }
.navbar .nav-particle:nth-child(4) { width: 3px; height: 3px; top: 65%; left: 28%; animation-delay: 1s; }
.navbar .nav-particle:nth-child(5) { width: 5px; height: 5px; top: 30%; left: 48%; animation-delay: 2s; background: radial-gradient(circle, rgba(251, 191, 36, 0.9) 0%, transparent 70%); }
.navbar .nav-particle:nth-child(6) { width: 3px; height: 3px; top: 72%; left: 65%; animation-delay: 3s; }
.navbar .nav-particle:nth-child(7) { width: 4px; height: 4px; top: 18%; left: 78%; animation-delay: 4s; }
.navbar .nav-particle:nth-child(8) { width: 3px; height: 3px; top: 60%; left: 88%; animation-delay: 5s; }
.navbar .nav-particle:nth-child(9) { width: 4px; height: 4px; top: 42%; left: 96%; animation-delay: 5.5s; }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    height: 68px;
    position: relative;
    z-index: 4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* 流光底部边框 */
.nav-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(251, 191, 36, 0.4) 20%,
        rgba(167, 139, 250, 0.8) 50%,
        rgba(236, 72, 153, 0.5) 80%,
        transparent 100%);
    animation: navBorderFlow 6s linear infinite;
    background-size: 200% 100%;
}

@keyframes navBorderFlow {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-back-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateX(-2px);
}

.nav-back-btn:active {
    transform: translateX(-2px) scale(0.96);
}

.nav-back-icon {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.nav-brand {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    letter-spacing: 0.6px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(167, 139, 250, 0.4);
}

.nav-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 12px;
    font-size: 20px;
    color: #fff;
    box-shadow: 
        0 4px 14px rgba(217, 119, 6, 0.6),
        0 0 24px rgba(251, 191, 36, 0.35),
        0 1px 2px rgba(255, 255, 255, 0.4) inset;
    position: relative;
    transform: translateZ(0);
    animation: brandIconPulse 3.5s ease-in-out infinite;
}

@keyframes brandIconPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(217, 119, 6, 0.6), 0 0 24px rgba(251, 191, 36, 0.35), 0 1px 2px rgba(255, 255, 255, 0.4) inset; }
    50% { box-shadow: 0 4px 20px rgba(217, 119, 6, 0.75), 0 0 40px rgba(251, 191, 36, 0.55), 0 1px 2px rgba(255, 255, 255, 0.5) inset; }
}

.nav-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 24px rgba(167, 139, 250, 0.4);
}

.nav-brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 40%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* AI芯片徽章 */
.nav-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    margin-left: 4px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #67e8f9;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
    animation: aiChipGlow 2.5s ease-in-out infinite;
}

@keyframes aiChipGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(34, 211, 238, 0.3); }
    50% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.55), 0 0 40px rgba(139, 92, 246, 0.3); }
}

.nav-ai-chip i {
    font-size: 0.75rem;
    animation: aiChipSpin 6s linear infinite;
}

@keyframes aiChipSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-user-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

/* 扫一扫（未登录时显示在导航右侧，跟随布局自适应，不遮挡其它按钮） */
.nav-scan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-scan-btn svg {
    width: 26px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.nav-scan-btn:hover {
    transform: scale(1.12);
    opacity: 0.88;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
    overflow: visible;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(167, 139, 250, 0.18) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.nav-link i {
    font-size: 15px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(124, 58, 237, 0.35),
        0 0 20px rgba(167, 139, 250, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    box-shadow: 
        0 4px 16px rgba(124, 58, 237, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 0 24px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, #fcd34d, #f59e0b, #ec4899);
    border-radius: 3px;
    box-shadow: 
        0 2px 8px rgba(251, 191, 36, 0.6),
        0 0 16px rgba(236, 72, 153, 0.4);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: rgba(30, 27, 75, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    box-shadow: 
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(139, 92, 246, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
    padding: 10px 0;
    margin-top: 10px;
    list-style: none;
    z-index: 1000;
    border: 1px solid rgba(167, 139, 250, 0.3);
    overflow: hidden;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
}

.nav-dropdown-menu li {
    padding: 0;
}

.nav-dropdown-menu .nav-link {
    color: #e9d5ff;
    padding: 12px 22px;
    border-radius: 0;
    display: block;
    white-space: nowrap;
}

.nav-dropdown-menu .nav-link:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4) 0%, rgba(236, 72, 153, 0.3) 100%);
    color: #fff;
    box-shadow: none;
    transform: translateX(4px);
    border-color: transparent;
}

.nav-dropdown-menu .nav-link.active {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.35) 0%, rgba(139, 92, 246, 0.4) 100%);
    color: #fff;
}

/* 用户信息卡片 */
.nav-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 34px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.12),
        0 0 20px rgba(167, 139, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-user-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(167, 139, 250, 0.18));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.nav-user-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.4);
}

.nav-user-card:hover::before {
    opacity: 1;
}

.nav-user-card > * {
    position: relative;
    z-index: 1;
}

.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7 0%, #e9d5ff 50%, #c4b5fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d28d9;
    font-size: 18px;
    box-shadow: 
        0 3px 10px rgba(109, 40, 217, 0.4),
        0 0 14px rgba(251, 191, 36, 0.25),
        0 1px 2px rgba(255, 255, 255, 0.5) inset;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: userAvatarPulse 4s ease-in-out infinite;
}

@keyframes userAvatarPulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(109, 40, 217, 0.4), 0 0 14px rgba(251, 191, 36, 0.25), 0 1px 2px rgba(255, 255, 255, 0.5) inset; }
    50% { box-shadow: 0 3px 16px rgba(109, 40, 217, 0.55), 0 0 24px rgba(251, 191, 36, 0.45), 0 1px 2px rgba(255, 255, 255, 0.6) inset; }
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-user-name {
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.nav-user-balance {
    color: #fcd34d;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 
        0 1px 4px rgba(251, 191, 36, 0.45),
        0 0 10px rgba(251, 191, 36, 0.3);
}

/* 购物车徽章 */
.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 50%, #f97316 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.6),
        0 0 12px rgba(236, 72, 153, 0.4),
        0 1px 2px rgba(255, 255, 255, 0.35) inset;
    border: 2px solid #7c3aed;
    transform: scale(0.9);
}

.cart-link:hover .cart-badge {
    animation: badge-bounce 0.4s ease;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(0.9); }
    50% { transform: scale(1.15); }
}

/* 导航栏数字角标（我的订单/代发货） */
.nav-badge-link {
    position: relative;
}

.nav-count-badge {
    position: absolute;
    top: -2px;
    right: -8px;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 50%, #f97316 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.6),
        0 0 12px rgba(236, 72, 153, 0.4);
    border: 2px solid #fff;
    line-height: 1;
}

.nav-badge-link:hover .nav-count-badge {
    animation: badge-bounce 0.4s ease;
}

/* 管理后台链接 */
.admin-link {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.25) 100%) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.admin-link:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4) 0%, rgba(217, 119, 6, 0.4) 100%) !important;
    border-color: rgba(251, 191, 36, 0.65);
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.4);
    color: #fff !important;
}

/* 退出按钮 */
.nav-logout {
    padding: 10px 12px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.nav-logout:hover {
    color: #fca5a5 !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

/* 注册按钮 */
.nav-register-btn {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #ec4899 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 
        0 4px 14px rgba(217, 119, 6, 0.5),
        0 0 24px rgba(236, 72, 153, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
    position: relative;
    overflow: hidden;
    animation: registerBtnShine 3.5s ease-in-out infinite;
}

.nav-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: registerBtnSweep 3s ease-in-out infinite;
}

@keyframes registerBtnShine {
    0%, 100% { box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5), 0 0 24px rgba(236, 72, 153, 0.35), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
    50% { box-shadow: 0 4px 20px rgba(217, 119, 6, 0.7), 0 0 40px rgba(236, 72, 153, 0.55), 0 1px 0 rgba(255, 255, 255, 0.5) inset; }
}

@keyframes registerBtnSweep {
    0% { left: -80%; }
    50%, 100% { left: 130%; }
}

.nav-register-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 6px 24px rgba(217, 119, 6, 0.65),
        0 0 44px rgba(236, 72, 153, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.4) inset !important;
}

/* 个人中心下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    z-index: 1001;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown .dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-dropdown .dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.nav-dropdown .dropdown-menu li a i {
    font-size: 14px;
    color: #667eea;
}

/* 购物车角标 */
.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    min-width: 20px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    font-weight: bold;
    padding: 0 5px;
}

/* 消息提示 */
.flash-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    transition: all 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash-success { background: #10b981; }
.flash-danger { background: #ef4444; }
.flash-warning { background: #f59e0b; }
.flash-info { background: #3b82f6; }

.flash-close {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
}

/* 主容器 */
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Hero区域 */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-admin {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* 产品区域 */
.products-section {
    margin-bottom: 40px;
}

.products-section h2 {
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: #ef4444;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
}

.product-card-link {
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(102, 126, 234, 0.15);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-card-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(102, 126, 234, 0.15);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
}

.product-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.04));
    pointer-events: none;
}

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img,
.product-card-wrapper:hover .product-img {
    transform: scale(1.06);
}

.product-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
    color: #c4b5fd;
}

.product-info {
    padding: 14px 14px 16px;
}

.product-info h3 {
    font-size: 0.9rem;
    margin: 0 0 4px;
    color: #1f2937;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-subtitle {
    color: #868e96;
    font-size: 0.76rem;
    margin: 0 0 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #7c3aed;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-desc {
    color: #6b7280;
    font-size: 0.82rem;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-bottom {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: -0.3px;
}

.product-price::before {
    content: '¥';
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1px;
}

.product-myprice {
    font-size: 0.82rem;
    color: #667eea;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-myprice::before {
    content: '拿货价';
    font-size: 0.6rem;
    padding: 1px 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    margin-right: 2px;
}

.product-sales {
    font-size: 0.78rem;
    color: #9ca3af;
}

.product-cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-cart-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.qty-control:hover {
    border-color: #9ca3af;
}

.qty-control:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.qty-control button {
    padding: 8px 14px;
    border: none;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #374151;
    font-weight: 600;
}

.qty-control button:hover {
    background: #f3f4f6;
    color: #667eea;
}

.qty-control input {
    width: 55px;
    text-align: center;
    border: none;
    padding: 8px 0;
    font-size: 0.95rem;
    background: #ffffff;
    color: #1f2937;
}

.qty-control input:focus {
    outline: none;
}

.cart-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* 信息区域 */
.info-section {
    margin-top: 40px;
}

.info-section h2 {
    font-size: 0.85rem;
    margin-bottom: 25px;
    text-align: center;
    color: #ef4444;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-card h3 {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #000000;
}

.feature-card p {
    color: #000000;
    font-size: 0.85rem;
}

/* 认证容器 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: #667eea;
}

.auth-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 700;
}

.auth-tip {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 8px;
    color: #0369a1;
    font-size: 14px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
}

/* 系统设置页面样式 */
.setting-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.setting-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.setting-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.setting-row label {
    width: 180px;
    font-weight: 600;
    color: #000000;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.setting-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-input input,
.setting-input select,
.setting-input textarea {
    flex: 1;
    max-width: 400px;
}

.setting-desc {
    color: #9ca3af;
    font-size: 0.85rem;
}

.setting-input .radio-group {
    display: flex;
    gap: 20px;
}

.setting-input .radio-group label {
    width: auto;
    font-weight: normal;
    cursor: pointer;
}

/* 物流公司列表 */
.logistics-companies {
    margin-top: 15px;
}

.company-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
}

.company-item input {
    flex: 1;
    min-width: 0;
}

.company-item input[name^="company_name"] {
    flex: 2;
}

.company-item input[name^="company_code"] {
    flex: 1;
}

.company-item input[name^="company_sort"] {
    width: 80px;
    text-align: center;
}

/* 全局输入框样式 - 确保覆盖所有输入控件 */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="search"],
select,
textarea {
    padding: 12px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    font-family: inherit;
    background: #ffffff;
    color: #000000;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
    border-color: #9ca3af;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* 全宽输入框 */
input.full-width,
select.full-width,
textarea.full-width {
    width: 100%;
}

/* 单选按钮和复选框 */
input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    padding: 0;
    border: none;
    min-height: auto;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group.required label::after {
    content: ' *';
    color: #ef4444;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 数据概览卡片 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 0.85rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    color: #000000;
    font-size: 0.85rem;
}

.stat-card.income .stat-value { color: #10b981; }
.stat-card.expense .stat-value { color: #ef4444; }
.stat-card.warning .stat-value { color: #f59e0b; }

/* 日期筛选 */
.date-filter {
    display: flex;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.date-filter label {
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
}

.date-filter input[type="date"] {
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    background: #ffffff;
    color: #000000;
}

.date-filter input[type="date"]:hover {
    border-color: #9ca3af;
}

.date-filter input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 表格样式 */
.data-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: #fef3c7; color: #d97706; }
.status-shipped { background: #dbeafe; color: #2563eb; }
.status-completed { background: #d1fae5; color: #059669; }
.status-refunded { background: #fee2e2; color: #dc2626; }
.status-approved { background: #d1fae5; color: #059669; }
.status-rejected { background: #fecaca; color: #dc2626; }

/* 团队列表 */
.team-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.team-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.team-card h3 {
    margin-bottom: 20px;
    color: #ef4444;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.team-item-info {
    display: flex;
    flex-direction: column;
}

.team-item-name {
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
}

.team-item-level {
    font-size: 0.85rem;
    color: #000000;
}

.team-item-stats {
    text-align: right;
    font-size: 0.85rem;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pagination .page-btn {
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #667eea;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.pagination .page-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination .page-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination .page-disabled {
    color: #d1d5db;
    border-color: #e5e7eb;
    cursor: not-allowed;
    background: #f9fafb;
}

.pagination .page-disabled:hover {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #e5e7eb;
    transform: none;
    box-shadow: none;
}

.pagination .page-dots {
    color: #9ca3af;
    padding: 0 4px;
    font-weight: 500;
}

.pagination .page-info {
    color: #6b7280;
    font-size: 0.9rem;
    margin-left: 10px;
    white-space: nowrap;
}

/* 财务管理等分组页面的标签卡（与 AI客户管理 保持一致） */
.fin-tabs { display: flex; gap: 6px; background: white; border-radius: 12px; padding: 10px 14px; margin: 0 0 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); overflow-x: auto; }
.fin-tab { padding: 10px 22px; border-radius: 8px; cursor: pointer; white-space: nowrap; color: #666; font-size: 0.92rem; border: none; background: transparent; transition: all 0.2s; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.fin-tab:hover { color: #333; background: #f5f7fa; }
.fin-tab.active { color: white; background: linear-gradient(135deg, #667eea, #764ba2); font-weight: 500; box-shadow: 0 3px 8px rgba(102,126,234,0.3); }

/* 待处理数量角标：红色小圈 + 白色数字，置于文字右上角 */
.count-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    position: relative;
    top: -6px;
    margin-left: 5px;
    box-sizing: border-box;
}

/* 后台管理 */
.admin-sidebar {
    width: 220px;
    background: #1f2937;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 70px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: #1f2937;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 2px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #e5e7eb;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-sidebar li a:hover {
    background: #374151;
}

.admin-sidebar li a.active {
    background: #667eea;
}

.admin-content {
    margin-left: 240px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    font-size: 1.8rem;
    color: #333;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 订单详情 */
.order-detail {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.order-detail h3 {
    margin-bottom: 20px;
    color: #ef4444;
    font-size: 0.85rem;
}

.order-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.order-info-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-info-item label {
    display: block;
    font-size: 0.85rem;
    color: #000000;
    margin-bottom: 4px;
}

.order-info-item value {
    font-weight: 600;
    color: #000000;
    font-size: 0.85rem;
}

.order-items {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* 页脚 */
.footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    margin-top: 60px;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 92, 246, 0.5) 30%, 
        rgba(236, 72, 153, 0.5) 50%,
        rgba(245, 158, 11, 0.5) 70%, 
        transparent 100%);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(139, 92, 246, 0.08) 0%, 
        transparent 60%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo,
.footer-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.footer-logo {
    object-fit: contain;
}

.footer-brand-text {
    line-height: 1.4;
}

.footer-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-slogan {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.footer-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(148, 163, 184, 0.3) 50%,
        transparent 100%);
}

.footer-copy {
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.3px;
}

/* 个人中心导航 */
.profile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.profile-nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #000000;
}

.profile-level {
    font-size: 0.85rem;
    color: #667eea;
}

.profile-nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 25px;
    text-decoration: none;
    color: #000000;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.profile-nav-links a:hover {
    background: #667eea;
    color: white;
}

.profile-nav-links a i {
    font-size: 0.75rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        flex-direction: column;
        padding: 10px 16px;
        height: auto;
        gap: 10px;
    }

    .nav-left-group {
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .nav-back-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        font-size: 0.85rem;
        width: 100%;
    }

    .nav-user-row {
        width: 100%;
        justify-content: center;
    }

    /* 移动端：扫一扫仍靠右显示 */
    .nav-scan-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
        padding: 6px 0;
    }

    .nav-brand-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .nav-user-card {
        padding: 4px 10px 4px 4px;
        gap: 8px;
    }
    
    .nav-user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .nav-user-info {
        display: none;
    }
    
    /* 移动端个人中心下拉菜单 */
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        background: rgba(255,255,255,0.1);
        margin-top: 4px;
    }

    .nav-dropdown .dropdown-menu li a {
        color: white;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .nav-dropdown .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.15);
        color: white;
    }

    .nav-dropdown .dropdown-menu li a i {
        color: white;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .team-section {
        grid-template-columns: 1fr;
    }
    
    .date-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        max-height: 300px;
        padding-top: 15px;
        overflow-y: auto;
    }
    
    .admin-sidebar ul li a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-header h2 {
        font-size: 1.2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .data-table table {
        font-size: 0.85rem;
    }
    
    .data-table th, .data-table td {
        padding: 8px 6px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .btn-block {
        width: 100%;
    }
    
    .form-group input, .form-group select {
        font-size: 0.9rem;
    }
    
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 20px;
        margin: 10px;
    }
    
    .auth-card h2 {
        font-size: 1.3rem;
    }
    
    .search-box {
        width: 100%;
        font-size: 0.85rem;
    }
    
    .pagination a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .flash-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }
    
    .flash {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .balance-display .balance-amount {
        font-size: 2rem;
    }
    
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .checkout-form, .checkout-products {
        padding: 15px;
    }
    
    .main-container {
        margin: 15px auto;
        padding: 0 5px;
    }
}

/* 更小屏幕适配 */
@media (max-width: 480px) {
    .nav-left-group {
        gap: 8px;
    }

    .nav-back-btn {
        height: 30px;
        padding: 0 10px;
        font-size: 0.75rem;
    }

    .nav-back-icon {
        font-size: 0.95rem;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-menu li a {
        padding: 6px 4px;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .balance {
        padding: 2px 8px;
        font-size: 0.75rem;
    }
    
    .admin-sidebar ul li a {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* 结算页面 */
.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.checkout-form h3 {
    margin-bottom: 25px;
    color: #ef4444;
    font-size: 0.85rem;
}

.checkout-products {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.checkout-products h3 {
    margin-bottom: 20px;
    color: #ef4444;
    font-size: 0.85rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.checkout-item-detail {
    font-size: 0.85rem;
    color: #999;
}

.checkout-item-price {
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
    white-space: nowrap;
    align-self: center;
}

.checkout-item-price .unit {
    font-size: 0.85rem;
    color: #999;
}

.checkout-item-price .subtotal {
    font-weight: 600;
    color: #e74c3c;
    font-size: 1rem;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 10px;
}

.checkout-total label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.checkout-total value {
    font-weight: 700;
    color: #e74c3c;
    font-size: 1.3rem;
}

.balance-info {
    text-align: right;
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}

.balance-info span {
    color: #ef4444;
}

/* 余额显示 */
.balance-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.balance-display .balance-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-display .balance-amount {
    font-size: 0.85rem;
    font-weight: bold;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 搜索框 */
.search-box {
    padding: 11px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.85rem;
    width: 250px;
    margin-bottom: 20px;
    transition: all 0.25s ease;
    background: #ffffff;
    color: #000000;
}

.search-box:hover {
    border-color: #9ca3af;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.search-box::placeholder {
    color: #9ca3af;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

/* ===== Admin后台专用样式（覆盖全局前台样式） ===== */
.admin-body {
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
}

.admin-body .nav-brand {
    font-size: 1.2rem;
}

.admin-body .nav-menu li a {
    font-size: 14px;
}

.admin-body .balance {
    font-size: 14px;
}

.admin-body .btn {
    font-size: 14px;
}

.admin-body .btn-sm {
    font-size: 12px;
}

.admin-body .btn-lg {
    font-size: 16px;
}

.admin-body .hero h1 {
    font-size: 2.5rem;
}

.admin-body .hero p {
    font-size: 1.1rem;
}

.admin-body .products-section h2 {
    font-size: 1.5rem;
    color: #333;
}

.admin-body .product-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}

.admin-body .product-card {
    font-size: 12px;
}

.admin-body .product-card .product-img {
    height: 80px;
    aspect-ratio: 1;
}

.admin-body .product-card .product-info {
    padding: 8px;
}

.admin-body .product-card h3 {
    font-size: 12px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-body .product-card .product-price {
    font-size: 14px;
}

.admin-body .product-img-placeholder {
    aspect-ratio: 1;
    height: 80px;
}

.admin-body .product-category {
    font-size: 10px;
    color: #666;
}

.admin-body .product-desc {
    display: none;
}

.admin-body .product-price {
    font-size: 1.3rem;
    color: #e74c3c;
}

.admin-body .product-myprice {
    font-size: 14px;
}

.admin-body .info-section h2 {
    font-size: 1.5rem;
    color: #333;
}

.admin-body .feature-card h3 {
    font-size: 1.2rem;
    color: #333;
}

.admin-body .feature-card p {
    font-size: 14px;
    color: #666;
}

.admin-body .auth-tab {
    font-size: 16px;
    color: #333;
}

.admin-body .auth-tip {
    font-size: 14px;
}

.admin-body .auth-card h2 {
    font-size: 1.5rem;
    color: #333;
}

.admin-body .setting-section h3 {
    font-size: 1.2rem;
    color: #333;
}

.admin-body .setting-row label {
    font-size: 14px;
    color: #333;
}

.admin-body .setting-desc {
    font-size: 14px;
}

.admin-body input[type="text"],
.admin-body input[type="password"],
.admin-body input[type="number"],
.admin-body input[type="date"],
.admin-body input[type="email"],
.admin-body input[type="tel"],
.admin-body input[type="search"],
.admin-body select,
.admin-body textarea {
    font-size: 14px;
    color: #333;
}

.admin-body .form-group label {
    font-size: 14px;
    color: #333;
}

.admin-body .stat-card .stat-value {
    font-size: 2rem;
}

.admin-body .stat-card .stat-label {
    font-size: 14px;
    color: #666;
}

.admin-body .date-filter label {
    font-size: 14px;
    color: #333;
}

.admin-body .date-filter input[type="date"] {
    font-size: 14px;
    color: #333;
}

.admin-body .data-table th,
.admin-body .data-table td {
    font-size: 14px;
}

.admin-body .data-table th {
    font-size: 14px;
    color: #333;
}

.admin-body .status-badge {
    font-size: 12px;
}

.admin-body .team-card h3 {
    font-size: 1.2rem;
    color: #333;
}

.admin-body .team-item-name {
    font-size: 14px;
    color: #333;
}

.admin-body .team-item-level {
    font-size: 12px;
    color: #666;
}

.admin-body .team-item-stats {
    font-size: 14px;
}

.admin-body .search-box {
    font-size: 14px;
    color: #333;
}

.admin-body .order-detail h3 {
    font-size: 1.2rem;
    color: #333;
}

.admin-body .order-info-item label {
    font-size: 12px;
    color: #666;
}

.admin-body .order-info-item value {
    font-size: 14px;
    color: #333;
}

.admin-body .checkout-form h3 {
    font-size: 1.2rem;
    color: #333;
}

.admin-body .checkout-products h3 {
    font-size: 1.2rem;
    color: #333;
}

.admin-body .checkout-item-name {
    font-size: 14px;
    color: #333;
}

.admin-body .checkout-item-detail {
    font-size: 12px;
    color: #666;
}

.admin-body .checkout-item-price .unit {
    font-size: 12px;
    color: #666;
}

.admin-body .checkout-item-price .subtotal {
    font-size: 14px;
    color: #333;
}

.admin-body .checkout-total label {
    font-size: 16px;
    color: #333;
}

.admin-body .checkout-total value {
    font-size: 1.5rem;
    color: #e74c3c;
}

.admin-body .balance-display .balance-label {
    font-size: 14px;
}

.admin-body .balance-display .balance-amount {
    font-size: 2.5rem;
}

/* 产品详情页响应式修复 */
@media screen and (max-width: 1000px) {
    .product-detail-page {
        grid-template-columns: 1fr !important;
    }
    .product-gallery {
        position: static !important;
        top: auto !important;
    }
    .gallery-main {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
    }
}

/* ==================== 用户中心新样式 ==================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 用户中心头部 - 参考图1浅色白紫渐变风格 */
.uc-header {
    position: relative;
    margin: -20px -20px 0 -20px;
    padding: 36px 24px 60px;
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 30%, #e0d7ff 65%, #ddd6fe 100%);
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.uc-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(167,139,250,0.2) 0%, transparent 38%),
        radial-gradient(circle at 8% 80%, rgba(99,102,241,0.15) 0%, transparent 38%),
        radial-gradient(circle at 50% 40%, rgba(196,181,253,0.18) 0%, transparent 55%);
    pointer-events: none;
}

.uc-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask: linear-gradient(180deg, transparent 0%, black 20%, black 80%, transparent 100%);
    pointer-events: none;
}

/* 顶部导航动态粒子 - 彩色版(蓝+黄) */
.uc-header .uc-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: ucParticleFloat 7s ease-in-out infinite;
}
.uc-header .uc-particle:nth-child(1) { width: 5px; height: 5px; top: 18%; left: 10%; background: #60a5fa; box-shadow: 0 0 6px #60a5fa; animation-delay: 0s; }
.uc-header .uc-particle:nth-child(2) { width: 4px; height: 4px; top: 45%; left: 28%; background: #fbbf24; box-shadow: 0 0 5px #fbbf24; animation-delay: 1.2s; }
.uc-header .uc-particle:nth-child(3) { width: 6px; height: 6px; top: 65%; left: 45%; background: #a78bfa; box-shadow: 0 0 8px #a78bfa; animation-delay: 2.4s; }
.uc-header .uc-particle:nth-child(4) { width: 3px; height: 3px; top: 30%; left: 60%; background: #22d3ee; box-shadow: 0 0 4px #22d3ee; animation-delay: 0.8s; }
.uc-header .uc-particle:nth-child(5) { width: 5px; height: 5px; top: 55%; left: 76%; background: #fbbf24; box-shadow: 0 0 6px #fbbf24; animation-delay: 3.2s; }
.uc-header .uc-particle:nth-child(6) { width: 3px; height: 3px; top: 22%; left: 88%; background: #60a5fa; box-shadow: 0 0 4px #60a5fa; animation-delay: 2s; }
.uc-header .uc-particle:nth-child(7) { width: 4px; height: 4px; top: 75%; left: 18%; background: #a78bfa; box-shadow: 0 0 5px #a78bfa; animation-delay: 4s; }
.uc-header .uc-particle:nth-child(8) { width: 3px; height: 3px; top: 40%; left: 40%; background: #f472b6; box-shadow: 0 0 4px #f472b6; animation-delay: 1.8s; }
.uc-header .uc-particle:nth-child(9) { width: 4px; height: 4px; top: 15%; left: 52%; background: #fbbf24; box-shadow: 0 0 5px #fbbf24; animation-delay: 3.6s; }
.uc-header .uc-particle:nth-child(10) { width: 5px; height: 5px; top: 70%; left: 82%; background: #60a5fa; box-shadow: 0 0 6px #60a5fa; animation-delay: 2.6s; }
@keyframes ucParticleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.25; }
    50% { transform: translateY(-15px) scale(1.35); opacity: 0.9; }
}

/* 顶部扫描线 */
.uc-header-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 20%, rgba(167,139,250,0.5) 50%, rgba(255,255,255,0.35) 80%, transparent 100%);
    box-shadow: 0 0 12px rgba(167,139,250,0.5);
    animation: ucHeaderScan 3.5s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}
@keyframes ucHeaderScan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.uc-bg {
    display: none;
}

.uc-user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.uc-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f3ff, #e9d5ff);
    display: flex; align-items: center; justify-content: center;
    color: #7c3aed; font-size: 30px;
    border: 2px solid rgba(167,139,250,0.5);
    box-shadow: 0 6px 20px rgba(139,92,246,0.18), 0 2px 6px rgba(139,92,246,0.08);
}

.uc-user-meta {
    flex: 1;
    min-width: 0;
}

.uc-username {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e1b4b;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.uc-level-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(196,181,253,0.25));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 22px;
    font-size: 0.82rem;
    color: #5b21b6;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.uc-balance-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,243,255,0.85));
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 14px 22px;
    text-align: right;
    border: 1px solid rgba(167,139,250,0.22);
    box-shadow: 0 8px 26px rgba(139,92,246,0.1), 0 2px 8px rgba(139,92,246,0.06);
}

.uc-balance-label {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.uc-balance-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4c1d95;
}

/* 导航标签 - 毛玻璃浅色风格 */
.uc-nav-tabs {
    display: flex;
    gap: 8px;
    margin: -26px 16px 24px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(99,102,241,0.14), 0 4px 12px rgba(0,0,0,0.04);
    border: 1.5px solid rgba(167,139,250,0.15);
    overflow-x: auto;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
}

.uc-nav-tab {
    flex: 1;
    min-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;
    position: relative;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139,92,246,0.1), 0 2px 6px rgba(139,92,246,0.06);
}

.uc-nav-tab i {
    font-size: 1.25rem;
    color: #7c3aed;
}

.uc-nav-tab:hover {
    background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(196,181,253,0.12));
    color: #5b21b6;
    box-shadow: 0 8px 22px rgba(139,92,246,0.18), 0 3px 8px rgba(139,92,246,0.1);
}

.uc-nav-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    box-shadow: 0 8px 22px rgba(124,58,237,0.32), 0 3px 8px rgba(124,58,237,0.15);
}
.uc-nav-tab.active i { color: white; }

.uc-nav-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* 总收益大卡片 - 浅色白紫渐变风格 */
.uc-stats-hero {
    background: linear-gradient(135deg, #faf8ff 0%, #f0ebff 40%, #e8e0ff 70%, #ede9fe 100%);
    border-radius: 22px;
    padding: 32px 28px 26px;
    color: #1e293b;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(139,92,246,0.12), 0 4px 14px rgba(99,102,241,0.08), 0 0 0 1px rgba(139,92,246,0.08) inset;
    position: relative;
    overflow: hidden;
}

.uc-stats-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 15%, rgba(168,85,247,0.12) 0%, transparent 38%),
        radial-gradient(circle at 8% 85%, rgba(99,102,241,0.08) 0%, transparent 38%),
        radial-gradient(circle at 50% 50%, rgba(139,92,246,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.uc-stats-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
    -webkit-mask: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
    pointer-events: none;
}

.uc-stats-hero-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    opacity: 0.75;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    color: #64748b;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.uc-stats-hero-value {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #6d28d9, #7c3aed, #8b5cf6, #6366f1, #6d28d9);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroShimmer 5s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(139,92,246,0.15));
    line-height: 1.2;
}
@keyframes heroShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.uc-stats-hero-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.uc-stats-hero-item {
    flex: 1;
    max-width: 140px;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(245,243,255,0.7) 100%);
    border: 1px solid rgba(139,92,246,0.15);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}
.uc-stats-hero-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.06), transparent);
    animation: heroSweep 3.5s ease-in-out infinite;
}
.uc-stats-hero-item:nth-child(2)::before { animation-delay: 0.6s; }
.uc-stats-hero-item:nth-child(4)::before { animation-delay: 1.2s; }
@keyframes heroSweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.uc-stats-hero-num {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #6d28d9, #7c3aed, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uc-stats-hero-label {
    font-size: 0.72rem;
    opacity: 0.9;
    color: #64748b;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.uc-stats-hero-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, rgba(139,92,246,0.25), transparent);
    align-self: center;
}

/* 日期筛选 */
.uc-date-filter {
    margin-bottom: 20px;
}

.uc-date-filter-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    flex-wrap: wrap;
}

.uc-date-filter-inner i {
    color: #6b7280;
}

.uc-date-filter-inner input[type="date"] {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    min-height: 36px;
    font-size: 0.85rem;
}

.uc-date-sep {
    color: #9ca3af;
    font-size: 0.85rem;
}

.uc-btn-primary-sm {
    padding: 8px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25), 0 1px 2px rgba(102, 126, 234, 0.15);
}

.uc-btn-primary-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.4), 0 3px 8px rgba(102, 126, 234, 0.2);
}

/* 统计卡片网格 */
.uc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.uc-card-grid:not(.uc-card-grid-2) {
    grid-template-columns: repeat(2, 1fr);
}

.uc-card-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.uc-stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.uc-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.uc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.uc-stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: white;
}

.uc-card-purple::before { background: #667eea; }
.uc-card-purple .uc-stat-card-icon { background: linear-gradient(135deg, #667eea, #764ba2); }

.uc-card-green::before { background: #10b981; }
.uc-card-green .uc-stat-card-icon { background: linear-gradient(135deg, #10b981, #059669); }

.uc-card-blue::before { background: #3b82f6; }
.uc-card-blue .uc-stat-card-icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.uc-card-orange::before { background: #f59e0b; }
.uc-card-orange .uc-stat-card-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }

.uc-card-cyan::before { background: #06b6d4; }
.uc-card-cyan .uc-stat-card-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.uc-card-pink::before { background: #ec4899; }
.uc-card-pink .uc-stat-card-icon { background: linear-gradient(135deg, #ec4899, #db2777); }

.uc-card-yellow::before { background: #fbbf24; }
.uc-card-yellow .uc-stat-card-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.uc-stat-card-content {
    flex: 1;
    min-width: 0;
}

.uc-stat-card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.uc-stat-card-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.uc-stat-card-sub {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 面板卡片 */
.uc-panel-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.uc-panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.uc-panel-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uc-panel-header h3 i {
    color: #667eea;
}

.uc-panel-body {
    padding: 20px 24px;
}

/* 账户概览网格 */
.uc-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.uc-account-item {
    text-align: center;
    padding: 14px 8px;
    background: #f9fafb;
    border-radius: 12px;
}

.uc-account-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.uc-account-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.uc-val-purple { color: #667eea; }
.uc-val-green { color: #10b981; }
.uc-val-orange { color: #f59e0b; }

/* 团队列表 */
.uc-team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uc-team-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.2s;
}

.uc-team-item:hover {
    background: #f9fafb;
}

.uc-team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.uc-team-info {
    flex: 1;
    min-width: 0;
}

.uc-team-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.uc-team-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.uc-team-amount {
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
}

/* 二维码区域 */
.uc-qrcode-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.uc-qrcode-box {
    padding: 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.uc-qrcode-box img {
    width: 160px;
    height: 160px;
    display: block;
}

.uc-qrcode-info {
    flex: 1;
    min-width: 250px;
}

.uc-qrcode-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.uc-qrcode-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 14px;
}

.uc-copy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.uc-copy-row input {
    flex: 1;
    font-size: 0.8rem !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
}

.uc-btn-primary {
    padding: 10px 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), 0 1px 3px rgba(102, 126, 234, 0.2);
}

.uc-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.45), 0 4px 10px rgba(102, 126, 234, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}

.uc-btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3), 0 1px 3px rgba(102, 126, 234, 0.2);
}

.uc-qrcode-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #eef2ff;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #4f46e5;
}

.uc-qrcode-tip i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* 空状态 */
.uc-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.uc-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #e5e7eb;
}

.uc-empty p {
    margin: 0;
    font-size: 0.7rem;
}

.uc-empty-sub {
    margin-top: 4px !important;
    font-size: 0.75rem !important;
    color: #d1d5db;
}

/* 提示框 */
.uc-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.uc-tip-warn {
    background: #fffbeb;
    color: #92400e;
}

.uc-tip-info {
    background: #eff6ff;
    color: #1e40af;
}

.uc-tip-purple {
    background: #f5f3ff;
    color: #5b21b6;
}

.uc-tip i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.9rem;
}

/* 数据表格 */
.uc-table-wrap {
    overflow-x: auto;
    margin: 0 -24px;
    padding: 0 24px;
}

.uc-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.uc-data-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    font-size: 0.8rem;
}

.uc-data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.uc-data-table tbody tr:hover {
    background: #f9fafb;
}

.uc-data-table .text-right { text-align: right; }
.uc-data-table .text-center { text-align: center; }

/* 标签 */
.uc-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.uc-tag-warn {
    background: #fef3c7;
    color: #92400e;
}

.uc-tag-pink {
    background: #fce7f3;
    color: #be185d;
}

.uc-tag-blue {
    background: #dbeafe;
    color: #1e40af;
}

.uc-tag-green {
    background: #d1fae5;
    color: #065f46;
}

.uc-amount {
    font-weight: 700;
}

.uc-amount-pink {
    color: #ec4899;
}

/* 表格底部 */
.uc-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.85rem;
    color: #6b7280;
}

.uc-footer-total em {
    font-style: normal;
    color: #ec4899;
    font-weight: 700;
    font-size: 0.85rem;
}

/* 订单状态标签 */
.uc-order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.uc-status-pending { background: #fef3c7; color: #92400e; }
.uc-status-paid { background: #dbeafe; color: #1e40af; }
.uc-status-shipped { background: #cffafe; color: #0e7490; }
.uc-status-completed { background: #d1fae5; color: #065f46; }
.uc-status-refunded { background: #fee2e2; color: #991b1b; }
.uc-status-refunding { background: #fce7f3; color: #be185d; }

/* 订单卡片（移动端用） */
.uc-order-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    overflow: hidden;
}

.uc-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.8rem;
}

.uc-order-card-id {
    font-weight: 600;
    color: #374151;
}

.uc-order-card-body {
    padding: 14px 16px;
}

.uc-order-product {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.uc-order-product:last-child {
    margin-bottom: 0;
}

.uc-order-product-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.uc-order-product-info {
    flex: 1;
    min-width: 0;
}

.uc-order-product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-order-product-price {
    font-size: 0.85rem;
    color: #ef4444;
    font-weight: 600;
}

.uc-order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #fafafa;
    font-size: 0.8rem;
}

.uc-order-total {
    color: #111827;
    font-weight: 600;
}

.uc-order-total strong {
    color: #ef4444;
    font-size: 0.75rem;
}

/* 奖励类型Tab */
.uc-reward-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.uc-reward-tab {
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 2px 8px rgba(99,102,241,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

.uc-reward-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124,58,237,0.18), 0 2px 6px rgba(124,58,237,0.08);
    color: #5b21b6;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.uc-reward-tab.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 22px rgba(124,58,237,0.45), 0 2px 6px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.2);
    font-weight: 700;
    transform: translateY(-2px);
}

/* 奖励记录条目 */
.uc-reward-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.uc-reward-item:last-child {
    border-bottom: none;
}

.uc-reward-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.uc-reward-icon.direct { background: #d1fae5; color: #059669; }
.uc-reward-icon.diff { background: #dbeafe; color: #2563eb; }
.uc-reward-icon.area { background: #fce7f3; color: #db2777; }
.uc-reward-icon.partner { background: #e0e7ff; color: #4f46e5; }
.uc-reward-icon.dropship { background: #ccfbf1; color: #0d9488; }

.uc-reward-info {
    flex: 1;
    min-width: 0;
}

.uc-reward-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.uc-reward-desc {
    font-size: 0.75rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-reward-amount {
    text-align: right;
    flex-shrink: 0;
}

.uc-reward-amount .amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
}

.uc-reward-amount .time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 2px;
}

/* 个人中心表单 */
.uc-profile-form {
    max-width: 500px;
}

.uc-profile-group {
    margin-bottom: 18px;
}

.uc-profile-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.uc-profile-value {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 10px;
    font-size: 0.7rem;
    color: #111827;
}

.uc-profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.uc-btn-outline {
    padding: 10px 22px;
    background: white;
    color: #667eea;
    border: 1.5px solid #667eea;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
}

.uc-btn-outline:hover {
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.25), 0 4px 10px rgba(102, 126, 234, 0.15);
    border-color: #764ba2;
    color: #5b21b6;
}

.uc-btn-outline:active {
    transform: translateY(-1px);
}

.uc-btn-danger {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.uc-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* 个人中心菜单网格 */
.uc-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.uc-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    color: #374151;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s;
    font-size: 0.8rem;
    position: relative;
}

.uc-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.uc-menu-item i {
    font-size: 1.4rem;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.uc-menu-item:nth-child(6n+1) i { background: linear-gradient(135deg, #667eea, #764ba2); }
.uc-menu-item:nth-child(6n+2) i { background: linear-gradient(135deg, #10b981, #059669); }
.uc-menu-item:nth-child(6n+3) i { background: linear-gradient(135deg, #f59e0b, #d97706); }
.uc-menu-item:nth-child(6n+4) i { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.uc-menu-item:nth-child(6n+5) i { background: linear-gradient(135deg, #ec4899, #db2777); }
.uc-menu-item:nth-child(6n+6) i { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.uc-menu-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* 订单类型筛选（全部 / 商城订单 / 金币订单） */
.uc-type-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.uc-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}

.uc-type-pill:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
}

.uc-type-pill.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.28);
}

/* 代发货Tab */
.uc-dropship-tabs {
    display: flex;
    gap: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.uc-dropship-tab {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
}

.uc-dropship-tab.active {
    background: white;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.uc-dropship-tab .uc-tab-count {
    font-size: 0.65rem;
    margin-left: 2px;
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    .uc-header {
        margin: -15px -15px 0 -15px;
        padding: 28px 16px 48px;
    }

    .uc-user-info {
        flex-wrap: wrap;
        gap: 12px;
    }

    .uc-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .uc-username {
        font-size: 1.2rem;
    }

    .uc-balance-card {
        width: 100%;
        text-align: left;
        padding: 14px 22px;
    }

    .uc-balance-value {
        font-size: 1.3rem;
    }

    .uc-nav-tabs {
        margin: -26px 0 24px;
        padding: 8px;
        gap: 6px;
    }

    .uc-nav-tab {
        padding: 16px 8px;
        font-size: 0.82rem;
    }

    .uc-nav-tab i {
        font-size: 1.15rem;
    }

    .uc-stats-hero {
        padding: 20px 16px;
    }

    .uc-stats-hero-value {
        font-size: 1.8rem;
    }

    .uc-card-grid:not(.uc-card-grid-2) {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .uc-card-grid-2 {
        grid-template-columns: 1fr;
    }

    .uc-stat-card {
        padding: 14px;
        gap: 10px;
    }

    .uc-stat-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .uc-stat-card-value {
        font-size: 0.9rem;
    }

    .uc-stat-card-label {
        font-size: 0.75rem;
    }

    .uc-panel-header {
        padding: 14px 16px;
    }

    .uc-panel-body {
        padding: 14px 16px;
    }

    .uc-account-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .uc-account-item {
        padding: 10px 4px;
    }

    .uc-account-value {
        font-size: 0.7rem;
    }

    .uc-qrcode-wrap {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .uc-qrcode-info {
        min-width: 0;
        width: 100%;
    }

    .uc-table-wrap {
        margin: 0 -16px;
        padding: 0 16px;
    }

    .uc-table-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .uc-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .uc-menu-item {
        padding: 14px 6px;
        font-size: 0.75rem;
    }

    .uc-menu-item i {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    .uc-reward-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .uc-account-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uc-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .uc-stats-hero-value {
        font-size: 1.5rem;
    }

    .uc-card-grid:not(.uc-card-grid-2) {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ==================== 后台首页数据概览 ==================== */
.admin-dashboard {
    padding: 24px;
    background: #f1f5f9;
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
}

.admin-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-dashboard-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-dashboard-title i {
    color: #6366f1;
    font-size: 1.5rem;
}

.admin-time-tabs {
    display: flex;
    gap: 6px;
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-time-tab {
    padding: 7px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
    border: none;
    background: transparent;
    cursor: pointer;
}

.admin-time-tab:hover {
    color: #6366f1;
    background: #f1f5f9;
}

.admin-time-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

/* 运营数据概览 */
.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.admin-overview-item {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    transition: transform 0.25s, box-shadow 0.25s;
}

.admin-overview-item:nth-child(1) { border-top-color: #6366f1; }
.admin-overview-item:nth-child(2) { border-top-color: #10b981; }
.admin-overview-item:nth-child(3) { border-top-color: #3b82f6; }
.admin-overview-item:nth-child(4) { border-top-color: #ef4444; }
.admin-overview-item:nth-child(5) { border-top-color: #f59e0b; }
.admin-overview-item:nth-child(6) { border-top-color: #8b5cf6; }
.admin-overview-item:nth-child(7) { border-top-color: #ec4899; }
.admin-overview-item:nth-child(8) { border-top-color: #06b6d4; }

.admin-overview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.admin-overview-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.admin-overview-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* 中部/底部三列网格 */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.admin-dashboard-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    height: 100%;
}

.admin-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.admin-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-header h3 i {
    color: #6366f1;
    font-size: 1.1rem;
}

.admin-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-card-more {
    font-size: 0.8rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.admin-card-more:hover {
    color: #8b5cf6;
}

/* 本月订单统计 */
.admin-order-chart {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.admin-donut-chart {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(
        #f59e0b 0% calc(var(--p-pending) * 1%),
        #3b82f6 calc(var(--p-pending) * 1%) calc((var(--p-pending) + var(--p-pending-ship)) * 1%),
        #06b6d4 calc((var(--p-pending) + var(--p-pending-ship)) * 1%) calc((var(--p-pending) + var(--p-pending-ship) + var(--p-shipped)) * 1%),
        #10b981 calc((var(--p-pending) + var(--p-pending-ship) + var(--p-shipped)) * 1%) calc((var(--p-pending) + var(--p-pending-ship) + var(--p-shipped) + var(--p-completed)) * 1%),
        #ef4444 calc((var(--p-pending) + var(--p-pending-ship) + var(--p-shipped) + var(--p-completed)) * 1%) calc((var(--p-pending) + var(--p-pending-ship) + var(--p-shipped) + var(--p-completed) + var(--p-refunding)) * 1%),
        #94a3b8 calc((var(--p-pending) + var(--p-pending-ship) + var(--p-shipped) + var(--p-completed) + var(--p-refunding)) * 1%) 100%
    );
}

.admin-donut-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95px;
    height: 95px;
    background: white;
    border-radius: 50%;
}

.admin-donut-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.admin-donut-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.admin-donut-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.admin-order-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.admin-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-legend-text {
    color: #475569;
    flex: 1;
}

.admin-legend-num {
    color: #1e293b;
    font-weight: 600;
}

/* 会员概览 */
.admin-member-overview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-member-big {
    flex: 1;
    text-align: center;
    padding: 14px 6px;
    background: #f8fafc;
    border-radius: 12px;
}

.admin-member-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.admin-member-label {
    font-size: 0.75rem;
    color: #64748b;
}

.admin-member-donut {
    position: relative;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(
        #3b82f6 0% calc(var(--p-ordered) * 1%),
        #06b6d4 calc(var(--p-ordered) * 1%) calc((var(--p-ordered) + var(--p-repeat)) * 1%),
        #f1f5f9 calc((var(--p-ordered) + var(--p-repeat)) * 1%) 100%
    );
}

.admin-member-donut::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    background: white;
    border-radius: 50%;
}

.admin-member-donut-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.admin-member-donut-num {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.admin-member-donut-text {
    font-size: 0.65rem;
    color: #64748b;
}

.admin-member-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-member-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* 管理员中心 */
.admin-admin-card {
    min-height: 320px;
}

.admin-admin-card .admin-card-body {
    justify-content: center;
}

.admin-admin-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-admin-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.admin-admin-meta {
    flex: 1;
}

.admin-admin-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.admin-admin-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
    padding: 3px 8px;
    background: #d1fae5;
    border-radius: 16px;
}

.admin-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0 4px;
}

.admin-admin-label {
    color: #64748b;
}

.admin-admin-value {
    color: #1e293b;
    font-weight: 600;
}

/* 会员金额概览 */
.admin-money-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.admin-money-item {
    padding: 16px 12px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
    transition: background 0.2s;
}

.admin-money-item:hover {
    background: #f1f5f9;
}

.admin-money-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.admin-money-label i {
    color: #6366f1;
    font-size: 0.9rem;
}

.admin-money-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
}

/* 热卖商品 */
.admin-hot-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-hot-row {
    display: grid;
    grid-template-columns: 1fr 60px 80px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.admin-hot-row:hover {
    background: #f8fafc;
}

.admin-hot-head {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
}

.admin-hot-name {
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* 待处理事项 */
.admin-notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-notice-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.admin-notice-item:hover {
    background: #eef2ff;
}

.admin-notice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.admin-notice-item:nth-child(1) .admin-notice-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.admin-notice-item:nth-child(2) .admin-notice-icon { background: linear-gradient(135deg, #ef4444, #dc2626); }
.admin-notice-item:nth-child(3) .admin-notice-icon { background: linear-gradient(135deg, #10b981, #059669); }
.admin-notice-item:nth-child(4) .admin-notice-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.admin-notice-text {
    flex: 1;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.admin-notice-num {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* 空状态 */
.admin-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #94a3b8;
}

.admin-empty-state i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.admin-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* 后台首页响应式 */
@media (max-width: 1200px) {
    .admin-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding: 16px;
    }

    .admin-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard-title {
        font-size: 1.2rem;
    }

    .admin-time-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .admin-overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-overview-item {
        padding: 16px;
    }

    .admin-overview-value {
        font-size: 1.3rem;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-dashboard-card {
        min-height: auto;
    }

    .admin-order-chart {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .admin-member-overview {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-member-big {
        flex: 1 1 45%;
    }

    .admin-member-donut {
        margin-top: 10px;
    }

    .admin-money-grid {
        grid-template-columns: 1fr;
    }

    .admin-hot-row {
        grid-template-columns: 1fr 50px 70px;
        font-size: 0.8rem;
    }
}

/* ===== 移动端兼容（<=768px）：后台宽表格与设置表单自适应，避免横向撑破页面 ===== */
@media (max-width: 768px) {
    /* 后台内容区表格：转为可横向滚动的块，表格列宽保持不变 */
    .admin-body .admin-content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 系统设置等「标签 + 输入」行：改为纵向堆叠 */
    .admin-body .setting-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-body .setting-row label {
        width: auto;
        margin-bottom: 8px;
    }

    .admin-body .setting-input {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-body .setting-input input,
    .admin-body .setting-input select,
    .admin-body .setting-input textarea {
        max-width: 100%;
        min-width: 0;
    }
}