:root {
    --theme-primary: #1e90ff;
    --theme-primary-rgb: 30, 144, 255;
    --theme-primary-light: #4da6ff;
    --theme-primary-dark: #0066cc;
    --theme-secondary: #00b894;
    --theme-accent: #a855f7;
    --theme-background: #f8fafc;
    --theme-surface: #ffffff;
    --theme-text: #1e293b;
    --theme-text-secondary: #64748b;
    --theme-border: #e2e8f0;
    --theme-shadow: rgba(30, 144, 255, 0.1);
}

[data-theme="theme-ice"] {
    --theme-primary: #1e90ff;
    --theme-primary-rgb: 30, 144, 255;
    --theme-primary-light: #4da6ff;
    --theme-primary-dark: #0066cc;
    --theme-secondary: #00d4ff;
    --theme-accent: #0ea5e9;
    --theme-background: #f0f9ff;
    --theme-surface: #ffffff;
    --theme-text: #0c4a6e;
    --theme-text-secondary: #0369a1;
    --theme-border: #bae6fd;
    --theme-shadow: rgba(30, 144, 255, 0.15);
}

[data-theme="theme-mint"] {
    --theme-primary: #00b894;
    --theme-primary-rgb: 0, 184, 148;
    --theme-primary-light: #2ed573;
    --theme-primary-dark: #008577;
    --theme-secondary: #7bed9f;
    --theme-accent: #00cec9;
    --theme-background: #f0fff4;
    --theme-surface: #ffffff;
    --theme-text: #1b4332;
    --theme-text-secondary: #2d6a4f;
    --theme-border: #b7e4c7;
    --theme-shadow: rgba(0, 184, 148, 0.15);
}

[data-theme="theme-violet"] {
    --theme-primary: #a855f7;
    --theme-primary-rgb: 168, 85, 247;
    --theme-primary-light: #c084fc;
    --theme-primary-dark: #7c3aed;
    --theme-secondary: #ec4899;
    --theme-accent: #8b5cf6;
    --theme-background: #faf5ff;
    --theme-surface: #ffffff;
    --theme-text: #3b0764;
    --theme-text-secondary: #6b21a8;
    --theme-border: #e9d5ff;
    --theme-shadow: rgba(168, 85, 247, 0.15);
}

[data-theme="theme-rose"] {
    --theme-primary: #ec4899;
    --theme-primary-rgb: 236, 72, 153;
    --theme-primary-light: #f472b6;
    --theme-primary-dark: #db2777;
    --theme-secondary: #f9a8d4;
    --theme-accent: #f43f5e;
    --theme-background: #fdf2f8;
    --theme-surface: #ffffff;
    --theme-text: #831843;
    --theme-text-secondary: #be185d;
    --theme-border: #fbcfe8;
    --theme-shadow: rgba(236, 72, 153, 0.15);
}

[data-theme="theme-amber"] {
    --theme-primary: #f59e0b;
    --theme-primary-rgb: 245, 158, 11;
    --theme-primary-light: #fbbf24;
    --theme-primary-dark: #d97706;
    --theme-secondary: #fcd34d;
    --theme-accent: #ea580c;
    --theme-background: #fffbeb;
    --theme-surface: #ffffff;
    --theme-text: #78350f;
    --theme-text-secondary: #b45309;
    --theme-border: #fde68a;
    --theme-shadow: rgba(245, 158, 11, 0.15);
}

/* ========== 通用动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========== Toast通知 ========== */
.ccw-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 28px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease;
}

/* ========== 在线客服按钮 ========== */
.online-service-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--theme-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 20px var(--theme-shadow);
    z-index: 998;
    transition: transform 0.3s;
    animation: pulse 3s ease-in-out infinite;
}

.online-service-btn:hover {
    transform: scale(1.1);
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 998;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

/* ========== 加载骨架屏 ========== */
.skeleton {
    background: linear-gradient(90deg, var(--theme-border) 25%, transparent 50%, var(--theme-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--theme-radius, 8px);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
