:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
}

body {
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: hsl(var(--background));
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 19px, hsl(var(--muted-foreground)/0.1) 20px, hsl(var(--muted-foreground)/0.1) 21px),
        repeating-linear-gradient(0deg, transparent, transparent 19px, hsl(var(--muted-foreground)/0.1) 20px, hsl(var(--muted-foreground)/0.1) 21px);
    background-size: 20px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    backdrop-filter: blur(1px);
    pointer-events: none;
}

.bg-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: hsl(var(--card)/0.8);
    border: 1px solid hsl(var(--border)/0.5);
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.header-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: hsl(var(--card)/0.8);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.dark .bg-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: hsl(var(--card)/0.6);
    border: 1px solid hsl(var(--border)/0.5);
}

.container {
    position: relative;
    z-index: 1;
}

.pricing-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hero-section {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-menu {
    display: none;
    z-index: 50;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 18px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

.pricing-card.popular {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: hsl(var(--card)/0.8);
    background: linear-gradient(135deg, hsl(var(--card)/0.9), hsl(var(--primary)/0.05));
}

.pricing-card.popular::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: white;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 1;
}

button {
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

button:hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px hsl(var(--ring)/0.1);
}

input:focus, textarea:focus {
    outline: none;
    ring: 2px solid hsl(var(--primary));
    box-shadow: 0 0 0 2px hsl(var(--primary)/0.2);
    transition: box-shadow 0.2s ease;
}

.cf-turnstile {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cf-turnstile:hover {
    transform: scale(1.02);
}

/* 提示框添加模糊 */
.bg-destructive\/10, .bg-secondary\/50 {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* 模态动画 */
.fixed.inset-0 {
    transition: opacity 0.3s ease;
}
