/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(0, 212, 255, 0.3);
    --shadow-glow: rgba(0, 212, 255, 0.2);
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* 星空背景效果 */
.stars, .twinkling, .clouds {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -3;
}

.stars {
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><defs><radialGradient id="star"><stop offset="0%" stop-color="white" stop-opacity="1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="50" cy="50" r="1" fill="url(%23star)"/><circle cx="150" cy="80" r="0.5" fill="url(%23star)"/><circle cx="200" cy="120" r="1" fill="url(%23star)"/><circle cx="80" cy="150" r="0.5" fill="url(%23star)"/><circle cx="250" cy="180" r="1" fill="url(%23star)"/><circle cx="120" cy="220" r="0.5" fill="url(%23star)"/><circle cx="180" cy="250" r="1" fill="url(%23star)"/></svg>') repeat;
    background-size: 300px 300px;
    animation: move-stars 100s linear infinite;
}

.twinkling {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><circle cx="100" cy="100" r="1" fill="white" opacity="0.8"/><circle cx="200" cy="50" r="0.5" fill="%2300d4ff" opacity="0.6"/><circle cx="50" cy="200" r="1" fill="%23ff006e" opacity="0.7"/><circle cx="250" cy="150" r="0.5" fill="%238338ec" opacity="0.5"/></svg>') repeat;
    background-size: 300px 300px;
    animation: move-twinkling 200s linear infinite;
    z-index: -2;
}

.clouds {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><defs><radialGradient id="nebula"><stop offset="0%" stop-color="%2300d4ff" stop-opacity="0.1"/><stop offset="100%" stop-color="%238338ec" stop-opacity="0"/></radialGradient></defs><ellipse cx="100" cy="100" rx="80" ry="40" fill="url(%23nebula)"/><ellipse cx="300" cy="200" rx="120" ry="60" fill="url(%23nebula)"/></svg>') repeat;
    background-size: 500px 500px;
    animation: move-clouds 300s linear infinite;
    z-index: -1;
}

@keyframes move-stars {
    from { transform: translateX(0px); }
    to { transform: translateX(-300px); }
}

@keyframes move-twinkling {
    from { transform: translateX(0px); }
    to { transform: translateX(-300px); }
}

@keyframes move-clouds {
    from { transform: translateX(0px); }
    to { transform: translateX(-500px); }
}

/* 粒子背景容器 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-glow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

.nav-link:hover .nav-glow {
    opacity: 0.1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switch {
    display: flex;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 主页英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(131, 56, 236, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
    animation: hero-bg-float 20s ease-in-out infinite;
}

@keyframes hero-bg-float {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.badge-text {
    display: block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.badge-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 50px;
    z-index: -1;
    opacity: 0.5;
    animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.hero-title {
    position: relative;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    line-height: 1.1;
}

.title-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.9;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* 宇宙风格按钮 */
.btn-cosmic {
    position: relative;
    padding: 1rem 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cosmic.btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(131, 56, 236, 0.2));
    border: 1px solid var(--primary-color);
}

.btn-cosmic.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-cosmic:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
    z-index: -1;
}

.btn-cosmic:hover .btn-glow {
    opacity: 0.2;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50px;
}

/* AI大脑视觉效果 */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-brain {
    position: relative;
    width: 300px;
    height: 300px;
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.brain-core i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { 
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 30px rgba(0, 212, 255, 1);
        transform: scale(1.1);
    }
}

.core-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.neural-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(131, 56, 236, 0.5);
    animation: node-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.code-snippet {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    font-family: 'Monaco', 'Courier', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}

.code-snippet:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.code-snippet:nth-child(2) {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

.code-snippet:nth-child(3) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 章节标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.title-glow {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* 功能特色区域 */
.features {
    padding: 8rem 0;
    position: relative;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.grid-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 宇宙风格卡片 */
.cosmic-card {
    position: relative;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.3), 
        rgba(131, 56, 236, 0.3), 
        rgba(255, 0, 110, 0.3));
    border-radius: 20px;
    padding: 1px;
    z-index: -2;
}

.card-border::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 19px;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -3;
    filter: blur(10px);
}

.cosmic-card:hover .card-glow {
    opacity: 0.3;
}

.cosmic-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.feature-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    display: block;
}

.icon-orbit {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: orbit 4s linear infinite;
}

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

.cosmic-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cosmic-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.9;
}

/* 模型展示区域 */
.models {
    padding: 8rem 0;
    position: relative;
}

.models-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.constellation {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="100" cy="100" r="2" fill="%2300d4ff"/><circle cx="300" cy="150" r="1.5" fill="%23ff006e"/><circle cx="500" cy="200" r="2" fill="%238338ec"/><circle cx="700" cy="100" r="1" fill="%2300d4ff"/><circle cx="200" cy="300" r="1.5" fill="%23ff006e"/><circle cx="600" cy="350" r="2" fill="%238338ec"/><line x1="100" y1="100" x2="300" y2="150" stroke="%2300d4ff" stroke-width="0.5" opacity="0.3"/><line x1="300" y1="150" x2="500" y2="200" stroke="%23ff006e" stroke-width="0.5" opacity="0.3"/><line x1="500" y1="200" x2="700" y2="100" stroke="%238338ec" stroke-width="0.5" opacity="0.3"/></svg>') repeat;
    background-size: 800px 600px;
    animation: constellation-drift 30s linear infinite;
}

@keyframes constellation-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-800px); }
}

.models-universe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
}

.model-galaxy {
    position: relative;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(20px);
}

.galaxy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.galaxy-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.galaxy-title i {
    font-size: 2.5rem;
}

.galaxy-description {
    color: var(--text-secondary);
    opacity: 0.8;
}

.model-constellation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.model-star {
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.model-star.premium {
    border-color: rgba(255, 215, 0, 0.5);
}

.model-star.premium .star-core i {
    color: #ffd700;
}

.model-star.more-models {
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(0, 212, 255, 0.1);
}

.model-star.more-models .star-core i {
    color: #00d4ff;
}

.star-core {
    position: relative;
    z-index: 1;
}

.star-core i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.star-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.star-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.star-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.model-star:hover .star-glow {
    opacity: 1;
}

.model-star:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.star-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid transparent;
    border-radius: 17px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-star:hover .star-ring {
    opacity: 0.5;
}

/* 下载区域 */
.download {
    padding: 8rem 0;
    position: relative;
}

.download-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.energy-field {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(131, 56, 236, 0.3) 0%, transparent 50%);
    animation: energy-pulse 8s ease-in-out infinite;
}

@keyframes energy-pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.download-terminal {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.terminal-header {
    padding: 1rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.terminal-title {
    font-family: 'Monaco', 'Courier', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.terminal-content {
    padding: 2rem;
}

.terminal-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.terminal-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: 'Monaco', 'Courier', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.3);
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    opacity: 0.8;
}

.step-glow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-step:hover .step-glow {
    opacity: 1;
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(131, 56, 236, 0.2));
    border-color: var(--primary-color);
}

.btn-github {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* 联系区域 */
.contact {
    padding: 8rem 0;
    position: relative;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.communication-grid {
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 212, 255, 0.1) 50px,
            rgba(0, 212, 255, 0.1) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(131, 56, 236, 0.1) 50px,
            rgba(131, 56, 236, 0.1) 51px
        );
    animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    text-align: center;
    cursor: pointer;
    position: relative;
}

.contact-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.contact-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.icon-pulse {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 3s ease-out infinite;
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-info {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Monaco', 'Courier', monospace;
}

.contact-action {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-action {
    opacity: 1;
}

/* 页脚 */
.footer {
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
}

.footer-constellation {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><circle cx="50" cy="50" r="1" fill="%2300d4ff"/><circle cx="150" cy="30" r="0.5" fill="%23ff006e"/><circle cx="250" cy="70" r="1" fill="%238338ec"/><circle cx="350" cy="40" r="0.5" fill="%2300d4ff"/><circle cx="100" cy="120" r="0.5" fill="%23ff006e"/><circle cx="200" cy="150" r="1" fill="%238338ec"/><circle cx="300" cy="130" r="0.5" fill="%2300d4ff"/></svg>') repeat;
    background-size: 400px 200px;
    animation: footer-drift 25s linear infinite;
}

@keyframes footer-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-400px); }
}

.footer-content {
    text-align: center;
}

.footer-logo .logo-glow {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.footer-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

.copyright {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-actions {
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .language-switch {
        padding: 2px;
    }
    
    .lang-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .title-line {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .ai-brain {
        width: 200px;
        height: 200px;
    }
    
    .brain-core {
        width: 80px;
        height: 80px;
    }
    
    .brain-core i {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .models-universe {
        grid-template-columns: 1fr;
    }
    
    .model-constellation {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .download-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .title-line {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cosmic-card {
        padding: 1.5rem;
    }
    
    .model-galaxy {
        padding: 2rem;
    }
    
    .terminal-content {
        padding: 1rem;
    }
    
    .terminal-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
}

/* 性能优化 */
* {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.hero, .features, .models, .download, .contact {
    will-change: transform;
}