@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    /* 夜间模式（默认） */
    --bg-primary: #0a0a0f;
    --bg-secondary: rgba(25, 25, 40, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-nav: rgba(10, 10, 15, 0.8);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666;
    --border-color: rgba(99, 102, 241, 0.4);
    --border-light: rgba(255, 255, 255, 0.15);
    --grid-color: rgba(99, 102, 241, 0.03);
    --particle-color: rgba(99, 102, 241, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 30, 50, 0.85);
}

[data-theme="light"] {
    /* 白天模式 */
    --bg-primary: #f8fafc;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-nav: rgba(248, 250, 252, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border-color: rgba(99, 102, 241, 0.2);
    --border-light: rgba(0, 0, 0, 0.1);
    --grid-color: rgba(99, 102, 241, 0.05);
    --particle-color: rgba(99, 102, 241, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 文本选中样式 */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
}

[data-theme="light"] ::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: inherit;
}

[data-theme="light"] ::-moz-selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* 网格背景动画 */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    transition: background 0.3s ease;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--particle-color);
    border-radius: 50%;
    animation: float 15s infinite;
    transition: background 0.3s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* 菱形拼接背景 */
.gradient-bg {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(99, 102, 241, 0.08) 30px,
            rgba(99, 102, 241, 0.08) 60px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(99, 102, 241, 0.08) 30px,
            rgba(99, 102, 241, 0.08) 60px
        );
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .gradient-bg {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #ddd6fe 100%);
}

[data-theme="light"] .gradient-bg::after {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 30px,
            rgba(99, 102, 241, 0.12) 30px,
            rgba(99, 102, 241, 0.12) 60px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 30px,
            rgba(99, 102, 241, 0.12) 30px,
            rgba(99, 102, 241, 0.12) 60px
        );
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

[data-theme="light"] .gradient-bg::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 霓虹文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite alternate, gradientShift 3s ease infinite;
}

@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.3); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 玻璃态效果 */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    box-shadow: 
        0 8px 32px var(--shadow-color),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 48px var(--shadow-color),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 发光按钮 */
.glow-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.glow-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glow-button:hover::before {
    width: 300px;
    height: 300px;
}

.glow-button:hover::after {
    transform: translateX(100%);
}

.glow-button:hover {
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.6), 
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.glow-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* 科技感卡片 */
.tech-card {
    background: linear-gradient(145deg, var(--card-bg), rgba(30, 30, 50, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 28px;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8), transparent);
    opacity: 0;
    border-radius: 24px 24px 0 0;
    transition: opacity 0.4s ease;
}

.tech-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover::after {
    opacity: 1;
}

.tech-card:hover,
.tech-card:focus {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    outline: none;
}

[data-theme="light"] .tech-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .tech-card::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5), transparent);
}

[data-theme="light"] .tech-card::after {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
}

[data-theme="light"] .tech-card:hover,
[data-theme="light"] .tech-card:focus {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 16px 48px rgba(99, 102, 241, 0.2),
        0 0 30px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-8px) scale(1.02);
    outline: none;
}

/* 特色定价卡片 */
.tech-card.border-2 {
    border: 2px solid rgba(99, 102, 241, 0.6);
    background: linear-gradient(145deg, rgba(50, 50, 70, 0.95), rgba(40, 40, 60, 0.9));
    box-shadow: 
        0 12px 48px rgba(99, 102, 241, 0.25),
        0 0 60px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: featuredCardPulse 3s ease-in-out infinite;
}

@keyframes featuredCardPulse {
    0%, 100% {
        box-shadow: 
            0 12px 48px rgba(99, 102, 241, 0.25),
            0 0 60px rgba(99, 102, 241, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 12px 48px rgba(99, 102, 241, 0.35),
            0 0 80px rgba(99, 102, 241, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.tech-card.border-2:hover,
.tech-card.border-2:focus {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 
        0 24px 72px rgba(99, 102, 241, 0.45),
        0 0 100px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-10px) scale(1.03);
    outline: none;
    animation: none;
}

[data-theme="light"] .tech-card.border-2 {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.95));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.2),
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .tech-card.border-2:hover,
[data-theme="light"] .tech-card.border-2:focus {
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.3),
        0 0 70px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-10px) scale(1.03);
    outline: none;
}

/* 模型卡片叠加效果 */
.model-cards-stack {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 220px;
    margin: 0 auto;
}

.model-card {
    position: absolute;
    width: 100%;
    background: rgba(35, 35, 55, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
    cursor: pointer;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.model-card:hover {
    box-shadow: 0 25px 70px rgba(99, 102, 241, 0.4), 0 0 40px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.8);
    z-index: 10 !important;
}

[data-theme="light"] .model-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.model-card:nth-child(1) {
    transform: rotate(-3deg) translateY(0) translateX(-5px);
    z-index: 1;
    opacity: 0.95;
}

.model-card:nth-child(2) {
    transform: rotate(2deg) translateY(8px) translateX(3px);
    z-index: 2;
    opacity: 0.97;
}

.model-card:nth-child(3) {
    transform: rotate(-1deg) translateY(16px) translateX(-2px);
    z-index: 3;
    opacity: 0.99;
}

.model-card:nth-child(4) {
    transform: rotate(1deg) translateY(24px) translateX(2px);
    z-index: 4;
    opacity: 1;
}

/* 一行排列的模型卡片 - 纽扣样式 */
.model-card-inline {
    background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(35, 35, 55, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    padding: 12px 20px 12px 14px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    width: fit-content;
    min-width: fit-content;
    flex-shrink: 0;
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    isolation: isolate;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modelCardFloat 3s ease-in-out infinite;
}

@keyframes modelCardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.model-card-inline:nth-child(1) { animation-delay: 0s; }
.model-card-inline:nth-child(2) { animation-delay: 0.3s; }
.model-card-inline:nth-child(3) { animation-delay: 0.6s; }
.model-card-inline:nth-child(4) { animation-delay: 0.9s; }

.model-card-inline::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 30%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.model-card-inline:hover,
.model-card-inline:focus {
    background: linear-gradient(145deg, rgba(55, 55, 75, 0.95), rgba(45, 45, 65, 0.9));
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.15),
        0 8px 24px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3);
    outline: none;
    transform: translateY(-8px) scale(1.05);
    animation: none;
}

[data-theme="light"] .model-card-inline {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .model-card-inline::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
}

[data-theme="light"] .model-card-inline:hover,
[data-theme="light"] .model-card-inline:focus {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 -1px 2px rgba(255, 255, 255, 0.8),
        0 4px 12px rgba(99, 102, 241, 0.15);
    outline: none;
}

[data-theme="light"] .model-card-inline .text-white {
    color: var(--text-primary) !important;
}

.floating-model-content {
    background: rgba(35, 35, 55, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.25);
    text-align: center;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .model-logo {
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(255, 255, 255, 0.6);
}

.model-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.model-logo svg {
    width: 100%;
    height: 100%;
}

.model-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    height: 52px;
}


.floating-model-content:hover {
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5), 0 0 28px rgba(99, 102, 241, 0.4);
    background: rgba(45, 45, 65, 0.95);
}

/* 移除动画，模型直接静态分布 */

/* 白天模式下的飘散模型 */
[data-theme="light"] .floating-model-content {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 0 16px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .floating-model-content:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .floating-model-content .text-white {
    color: var(--text-primary) !important;
}

/* 响应式：移动端调整模型卡片 */
@media (max-width: 768px) {
    .model-card-inline {
        padding: 10px 16px 10px 12px;
    }
    
    .model-card-inline .model-logo {
        width: 44px;
        height: 44px;
        padding: 6px;
    }
    
    .model-card-inline .model-info {
        height: 44px;
    }
    
    .model-card-inline .model-info .text-sm {
        font-size: 0.875rem;
    }
    
    .model-card-inline .model-info .text-xs {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .model-card-inline {
        padding: 8px 12px 8px 8px;
        gap: 8px;
    }
    
    .model-card-inline .model-logo {
        width: 36px;
        height: 36px;
        padding: 5px;
    }
    
    .model-card-inline .model-info {
        height: 36px;
        gap: 1px;
    }
    
    .model-card-inline .model-info .text-sm {
        font-size: 0.75rem;
    }
    
    .model-card-inline .model-info .text-xs {
        font-size: 0.625rem;
    }
    
    /* 移动端Hero区域优化 */
    .gradient-bg {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* 移动端模型卡片行间距 */
    .flex.flex-wrap.justify-center.gap-2 {
        gap: 0.375rem !important;
    }
}

/* 扫描线效果 */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.scan-line::before,
.scan-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 1);
    border-radius: 50%;
    box-shadow: 
        150px 200px 0 0 rgba(99, 102, 241, 0.8),
        350px 150px 0 0 rgba(139, 92, 246, 0.9),
        550px 300px 0 0 rgba(99, 102, 241, 0.7),
        750px 200px 0 0 rgba(139, 92, 246, 0.8),
        950px 350px 0 0 rgba(99, 102, 241, 0.9),
        200px 400px 0 0 rgba(139, 92, 246, 0.7),
        450px 450px 0 0 rgba(99, 102, 241, 0.8),
        700px 500px 0 0 rgba(139, 92, 246, 0.9),
        900px 450px 0 0 rgba(99, 102, 241, 0.7),
        1200px 300px 0 0 rgba(139, 92, 246, 0.8),
        300px 600px 0 0 rgba(99, 102, 241, 0.9),
        600px 650px 0 0 rgba(139, 92, 246, 0.7),
        900px 600px 0 0 rgba(99, 102, 241, 0.8),
        1200px 550px 0 0 rgba(139, 92, 246, 0.9);
    animation: particleFloat 12s ease-in-out infinite;
}

.scan-line::after {
    animation-delay: -6s;
    background: rgba(139, 92, 246, 1);
    box-shadow: 
        200px 100px 0 0 rgba(139, 92, 246, 0.8),
        400px 250px 0 0 rgba(99, 102, 241, 0.9),
        600px 150px 0 0 rgba(139, 92, 246, 0.7),
        800px 300px 0 0 rgba(99, 102, 241, 0.8),
        1000px 200px 0 0 rgba(139, 92, 246, 0.9),
        250px 350px 0 0 rgba(99, 102, 241, 0.7),
        500px 400px 0 0 rgba(139, 92, 246, 0.8),
        750px 450px 0 0 rgba(99, 102, 241, 0.9),
        1000px 400px 0 0 rgba(139, 92, 246, 0.7),
        1300px 250px 0 0 rgba(99, 102, 241, 0.8),
        350px 550px 0 0 rgba(139, 92, 246, 0.9),
        650px 600px 0 0 rgba(99, 102, 241, 0.7),
        950px 550px 0 0 rgba(139, 92, 246, 0.8),
        1250px 500px 0 0 rgba(99, 102, 241, 0.9);
}

[data-theme="light"] .scan-line::before {
    background: rgba(99, 102, 241, 0.6);
    box-shadow: 
        150px 200px 0 0 rgba(99, 102, 241, 0.4),
        350px 150px 0 0 rgba(139, 92, 246, 0.45),
        550px 300px 0 0 rgba(99, 102, 241, 0.35),
        750px 200px 0 0 rgba(139, 92, 246, 0.4),
        950px 350px 0 0 rgba(99, 102, 241, 0.45),
        200px 400px 0 0 rgba(139, 92, 246, 0.35),
        450px 450px 0 0 rgba(99, 102, 241, 0.4),
        700px 500px 0 0 rgba(139, 92, 246, 0.45),
        900px 450px 0 0 rgba(99, 102, 241, 0.35),
        1200px 300px 0 0 rgba(139, 92, 246, 0.4),
        300px 600px 0 0 rgba(99, 102, 241, 0.45),
        600px 650px 0 0 rgba(139, 92, 246, 0.35),
        900px 600px 0 0 rgba(99, 102, 241, 0.4),
        1200px 550px 0 0 rgba(139, 92, 246, 0.45);
}

[data-theme="light"] .scan-line::after {
    background: rgba(139, 92, 246, 0.6);
    box-shadow: 
        200px 100px 0 0 rgba(139, 92, 246, 0.4),
        400px 250px 0 0 rgba(99, 102, 241, 0.45),
        600px 150px 0 0 rgba(139, 92, 246, 0.35),
        800px 300px 0 0 rgba(99, 102, 241, 0.4),
        1000px 200px 0 0 rgba(139, 92, 246, 0.45),
        250px 350px 0 0 rgba(99, 102, 241, 0.35),
        500px 400px 0 0 rgba(139, 92, 246, 0.4),
        750px 450px 0 0 rgba(99, 102, 241, 0.45),
        1000px 400px 0 0 rgba(139, 92, 246, 0.35),
        1300px 250px 0 0 rgba(99, 102, 241, 0.4),
        350px 550px 0 0 rgba(139, 92, 246, 0.45),
        650px 600px 0 0 rgba(99, 102, 241, 0.35),
        950px 550px 0 0 rgba(139, 92, 246, 0.4),
        1250px 500px 0 0 rgba(99, 102, 241, 0.45);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    25% {
        transform: translate(30px, -50px);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -100px);
        opacity: 0.9;
    }
    75% {
        transform: translate(40px, -70px);
        opacity: 0.8;
    }
}

/* 导航栏 */
.nav-glass {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-glass:hover {
    background: rgba(10, 10, 15, 0.9);
    border-bottom-color: rgba(99, 102, 241, 0.5);
}

[data-theme="light"] .nav-glass:hover {
    background: rgba(248, 250, 252, 0.95);
}

/* 主题切换按钮 */
.theme-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-toggle:hover {
    background: var(--border-color);
    opacity: 0.9;
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

[data-theme="light"] .theme-toggle-slider {
    transform: translateX(24px);
    background: #fbbf24;
}

.theme-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.theme-icon.sun {
    left: 6px;
    opacity: 0;
    color: #fbbf24;
}

.theme-icon.moon {
    right: 6px;
    opacity: 1;
    color: #6366f1;
}

[data-theme="light"] .theme-icon.sun {
    opacity: 1;
}

[data-theme="light"] .theme-icon.moon {
    opacity: 0;
}

@media (max-width: 640px) {
    .theme-toggle {
        width: 48px;
        height: 26px;
    }
    
    .theme-toggle-slider {
        width: 18px;
        height: 18px;
    }
    
    [data-theme="light"] .theme-toggle-slider {
        transform: translateX(22px);
    }
}

/* 响应式优化 */
@media (max-width: 1024px) {
    .tech-card {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .model-cards-stack {
        height: auto;
        max-width: 100%;
    }
    .model-card {
        position: relative;
        margin-bottom: 12px;
        transform: none !important;
        opacity: 1 !important;
    }
    .model-card:nth-child(1),
    .model-card:nth-child(2),
    .model-card:nth-child(3) {
        display: none;
    }
    
    .tech-card {
        padding: 28px 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .grid.md\:grid-cols-3 {
        gap: 1.5rem;
    }
    
    /* 移动端CTA优化 */
    .cta-card {
        padding: 2.5rem 2rem !important;
    }
    
    .cta-card h2 {
        font-size: 2rem !important;
    }
    
    .cta-card p {
        font-size: 1rem !important;
    }
}

@media (max-width: 640px) {
    .tech-card {
        padding: 24px 18px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 3rem !important;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .glow-button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* 移动端导航栏优化 */
    .nav-glass {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* CTA卡片移动端优化 */
    .cta-card {
        padding: 2rem 1.5rem !important;
        border-radius: 1.5rem !important;
        animation: none;
    }
    
    .cta-card h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .cta-card p {
        font-size: 0.875rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* 隐藏CTA卡片的装饰元素在移动端 */
    .cta-card > div:first-child + div,
    .cta-card > div:nth-child(3) {
        display: none;
    }
    
    .cta-card svg.w-24 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    /* 页脚移动端优化 */
    footer {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* 代码字体 */
.code-font {
    font-family: 'JetBrains Mono', monospace;
}

/* 淡入上升动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* 改进滚动行为 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* 改进卡片网格间距 */
.grid.md\:grid-cols-3.gap-8 {
    gap: 2rem;
}

@media (min-width: 1024px) {
    .grid.md\:grid-cols-3.gap-8 {
        gap: 2.5rem;
    }
}

/* 更流畅的导航链接 */
nav a, nav button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 改进图标容器 */
.tech-card > div[class*="w-16 h-16"],
.tech-card > div[class*="w-14 h-14"],
.tech-card > div[class*="w-12 h-12"] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover > div[class*="w-16 h-16"],
.tech-card:hover > div[class*="w-14 h-14"],
.tech-card:hover > div[class*="w-12 h-12"] {
    transform: translateY(-6px) scale(1.15) rotate(5deg);
}

/* 改进标题悬停效果 */
.tech-card h3,
.tech-card h4 {
    transition: all 0.3s ease;
}

.tech-card:hover h3,
.tech-card:hover h4 {
    color: rgba(99, 102, 241, 0.9);
    transform: translateX(4px);
}

[data-theme="light"] .tech-card:hover h3,
[data-theme="light"] .tech-card:hover h4 {
    color: rgba(99, 102, 241, 1);
}

/* 发光边框 */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-border:hover::after {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}

/* 文本颜色适配 */
.dark-mode-text {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

/* 白天模式下Hero区域的文本 */
[data-theme="light"] .gradient-bg h1,
[data-theme="light"] .gradient-bg p {
    color: var(--text-primary);
}

/* 改进列表项悬停效果 */
ul li {
    transition: all 0.2s ease;
}

ul li:hover {
    transform: translateX(4px);
}

/* 白天模式下白色文本需要改为深色 */
[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .text-gray-400 {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .text-gray-500 {
    color: var(--text-tertiary) !important;
}

/* Footer在白天模式下的样式 */
[data-theme="light"] footer {
    background: #f1f5f9;
    border-top-color: var(--border-light);
}

[data-theme="light"] footer .text-gray-400 {
    color: var(--text-secondary) !important;
}

[data-theme="light"] footer .text-gray-500 {
    color: var(--text-tertiary) !important;
}

[data-theme="light"] footer .border-gray-800 {
    border-color: var(--border-light) !important;
}

/* 模型卡片在白天模式下的文本 */
[data-theme="light"] .model-card {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .model-card .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .model-card .text-indigo-400 {
    color: #6366f1 !important;
}

/* 导航链接在白天模式下的颜色 */
[data-theme="light"] nav a {
    color: var(--text-secondary) !important;
}

[data-theme="light"] nav a:hover {
    color: #6366f1 !important;
}

[data-theme="light"] nav button.text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="light"] nav button.text-gray-300:hover {
    color: #6366f1 !important;
}

/* Hero区域文本在白天模式下的适配 */
[data-theme="light"] .gradient-bg .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .gradient-bg .text-gray-300 {
    color: var(--text-secondary) !important;
}

/* 滚动条优化 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.7), rgba(139, 92, 246, 0.7));
}

/* 平滑滚动优化 */
* {
    scroll-margin-top: 100px;
}

/* 添加页面加载动画 */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease-in-out;
}

/* 改进定价卡片按钮 */
.tech-card button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover button {
    transform: translateY(-2px);
}

/* 优化模型logo圆圈 */
.model-logo {
    transition: all 0.3s ease;
}

.model-card-inline:hover .model-logo {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 
        inset 0 1px 2px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(99, 102, 241, 0.4);
}

/* CTA 卡片特殊样式 */
.cta-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: ctaFloat 6s ease-in-out infinite;
}

@keyframes ctaFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.cta-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 24px 60px rgba(99, 102, 241, 0.3),
        0 0 80px rgba(99, 102, 241, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    animation: none;
}

[data-theme="light"] .cta-card {
    box-shadow: 
        0 16px 40px rgba(99, 102, 241, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .cta-card:hover {
    box-shadow: 
        0 20px 50px rgba(99, 102, 241, 0.25),
        0 0 60px rgba(99, 102, 241, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* 移动端按钮间距优化 */
@media (max-width: 640px) {
    .cta-card button svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .cta-card .flex.items-center.gap-2 {
        gap: 0.375rem !important;
    }
    
    /* 移动端底部提示文字 */
    .cta-card p.mt-8 {
        margin-top: 1.5rem !important;
        font-size: 0.75rem !important;
    }
    
    .cta-card p.mt-8 svg {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
}
