/* ===========================
   Global Variables & Reset
   =========================== */
:root {
    /* Color Palette - Deep Space Theme */
    --primary-blue: #0a1628;
    --secondary-blue: #162447;
    --accent-blue: #1f4788;
    --bright-blue: #00d4ff;
    --cyan: #00ffff;
    --purple: #6366f1;
    --gold: #fbbf24;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a1628 0%, #162447 50%, #1f4788 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--primary-blue);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--bright-blue);
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-hex {
    font-size: 32px;
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--bright-blue);
}

.language-toggle {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--bright-blue);
    color: var(--bright-blue);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-toggle:hover {
    background: var(--bright-blue);
    color: var(--primary-blue);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--bright-blue);
    transition: var(--transition-smooth);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 10s ease-in-out infinite;
    opacity: 0.6;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--bright-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    overflow: visible;
    word-break: break-word;
    hyphens: auto;
}

/* 中文尽量不换行，但如果空间不够还是会换行 */
html:lang(zh) .hero-title {
    word-break: keep-all;
    white-space: normal;
}

/* 英文允许换行 */
html:lang(en) .hero-title {
    word-break: break-word;
    white-space: normal;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--bright-blue);
    border: 2px solid var(--bright-blue);
}

.btn-secondary:hover {
    background: var(--bright-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.scroll-indicator {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

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

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--bright-blue);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--bright-blue);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Hexagon Showcase */
.hexagon-showcase {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.hexagon-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.hexagon {
    position: absolute;
    width: 100px;
    height: 115px;
    background: var(--gradient-glow);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float 3s ease-in-out infinite;
}

.hex-main {
    width: 150px;
    height: 173px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-accent);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
}

.hex-orbit-1 {
    left: 20%;
    top: 20%;
    animation-delay: 0.5s;
}

.hex-orbit-2 {
    right: 20%;
    top: 30%;
    animation-delay: 1s;
}

.hex-orbit-3 {
    left: 30%;
    bottom: 20%;
    animation-delay: 1.5s;
}

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

/* ===========================
   Sections Common Styles
   =========================== */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--bright-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Features Section
   =========================== */
.features {
    background: var(--secondary-blue);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bright-blue), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(31, 71, 136, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--bright-blue);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--bright-blue);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   Product Showcase Section
   =========================== */
.product-showcase {
    background: var(--primary-blue);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon-product {
    position: relative;
    width: 300px;
    height: 350px;
}

.hex-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid var(--bright-blue);
    animation: rotate-hex 20s linear infinite;
}

.hex-layer-1 {
    background: rgba(0, 212, 255, 0.1);
}

.hex-layer-2 {
    transform: scale(0.8) rotate(30deg);
    background: rgba(99, 102, 241, 0.1);
    animation-duration: 15s;
    animation-direction: reverse;
}

.hex-layer-3 {
    transform: scale(0.6) rotate(60deg);
    background: rgba(0, 212, 255, 0.15);
    animation-duration: 10s;
}

@keyframes rotate-hex {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.showcase-info h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--bright-blue);
}

.showcase-features {
    list-style: none;
    margin-bottom: 40px;
}

.showcase-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.showcase-features i {
    color: var(--bright-blue);
    font-size: 20px;
    margin-top: 2px;
}

/* ===========================
   Quick Links Section
   =========================== */
.quick-links {
    background: var(--secondary-blue);
    padding: 80px 0;
}

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

.link-card {
    background: rgba(31, 71, 136, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.link-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.link-card:hover::after {
    width: 500px;
    height: 500px;
}

.link-card:hover {
    transform: translateY(-10px);
    border-color: var(--bright-blue);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
}

.link-card i {
    font-size: 50px;
    color: var(--bright-blue);
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.link-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.link-card p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 20px;
    position: relative;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--primary-blue);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--bright-blue);
    margin-bottom: 15px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--bright-blue);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--bright-blue);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--bright-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--bright-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .hexagon-showcase {
        display: none;
    }
    
    .showcase-content {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 22, 40, 0.98);
        width: 100%;
        padding: 30px;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 32px;
        white-space: normal;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 24px;
        white-space: normal;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
}