/* ====== 全局样式 ====== */
body {
    background: var(--space-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ====== 星空背景 ====== */
#space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f1729 0%, #1a2744 50%, #0f1724 100%);
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.2), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.35), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.25), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.28), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.15), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.32), rgba(0,0,0,0));
    background-size: 200% 200%;
    background-position: 0% 0%;
    background-repeat: repeat;
}

.planets-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ====== 导航栏 ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 41, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.08);
    z-index: 1000;
    padding: 20px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.logo-tagline {
    font-size: 11px;
    color: #ddd;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-link {
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.contact-link:hover {
    background: rgba(251, 191, 36, 0.08);
}

/* 手机菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动菜单 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 41, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(251, 191, 36, 0.08);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.08);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu .contact-link {
    margin: 10px 0;
    text-align: center;
}

/* 工具类 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-menu.active {
        display: flex !important;
    }

    .navbar {
        position: relative;
    }
}

/* ====== 英雄区 ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    text-align: center;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 120px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 20px;
    letter-spacing: 3px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    margin: 0 0 50px;
    line-height: 1.8;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====== 按钮样式 ====== */
.btn {
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--space-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.08);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.btn-primary-large {
    padding: 20px 60px;
    font-size: 18px;
    background: var(--primary-color);
    color: var(--space-dark);
    border: none;
}

/* ====== 功能特性部分 ====== */
.features-section {
    position: relative;
    padding: 100px 20px;
    background: rgba(26, 39, 68, 0.4);
    z-index: 10;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.features-section h2,
.cases-section h2,
.workflow-section h2,
.video-cases-section h2,
.companies-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(26, 39, 68, 0.7);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(251, 191, 36, 0.15);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(26, 39, 68, 0.9);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
    transform: translateY(-10px);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.8;
}

/* ====== 应用场景部分 ====== */
.cases-section {
    position: relative;
    padding: 100px 20px;
    z-index: 10;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.case-item {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(251, 191, 36, 0.12));
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.case-item:hover {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(251, 191, 36, 0.25));
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* ====== 工作流程部分 ====== */
.workflow-section {
    position: relative;
    padding: 100px 20px;
    background: rgba(26, 39, 68, 0.4);
    z-index: 10;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: rgba(26, 39, 68, 0.7);
    border: 2px solid rgba(251, 191, 36, 0.2);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 220px;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.2);
}

.step-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step p {
    color: var(--text-light);
    opacity: 0.8;
}

.step-arrow {
    font-size: 32px;
    color: var(--secondary-color);
    animation: float 2s ease-in-out infinite;
}

/* ====== 最终CTA ====== */
.final-cta {
    position: relative;
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(251, 191, 36, 0.08));
    text-align: center;
    z-index: 10;
    border-top: 1px solid rgba(251, 191, 36, 0.12);
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-large {
    padding: 20px 60px;
    font-size: 18px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-large:hover {
    background: rgba(251, 191, 36, 0.08);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* ====== 视频案例部分 ====== */
.video-cases-section {
    position: relative;
    padding: 100px 20px;
    background: rgba(26, 39, 68, 0.4);
    z-index: 10;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 50px;
    opacity: 0.8;
}

.video-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.video-case-item {
    animation: fadeInUp 0.8s ease-out backwards;
}

.video-case-item:nth-child(1) { animation-delay: 0.1s; }
.video-case-item:nth-child(2) { animation-delay: 0.2s; }
.video-case-item:nth-child(3) { animation-delay: 0.3s; }
.video-case-item:nth-child(4) { animation-delay: 0.4s; }

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    background: rgba(26, 39, 68, 0.7);
    transition: var(--transition);
    display: block;
}

.video-case-item:hover .video-player {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.video-note {
    text-align: center;
    color: var(--text-light);
    opacity: 0.5;
    font-size: 14px;
}

/* ====== 企业logo轮播 ====== */
.companies-section {
    position: relative;
    padding: 100px 20px;
    z-index: 10;
}

.companies-carousel {
    position: relative;
    overflow: hidden;
    margin: 50px 0;
}

.companies-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    padding: 30px 0;
}

.company-logo {
    flex: 0 0 calc(20% - 40px);
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.company-logo:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.logo-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(192, 132, 252, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.logo-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(192, 132, 252, 0.2));
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.carousel-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.08);
    color: var(--primary-color);
    border: 2px solid rgba(251, 191, 36, 0.2);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== 页脚 ====== */
.footer {
    position: relative;
    background: rgba(5, 8, 18, 0.95);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(251, 191, 36, 0.08);
    z-index: 10;
}

.footer p {
    margin: 10px 0;
    opacity: 0.7;
}

/* ====== 响应式设计 ====== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 60px;
    }

    .hero-slogan {
        font-size: 20px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .features-section h2,
    .cases-section h2,
    .workflow-section h2,
    .video-cases-section h2,
    .companies-section h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-cases-grid {
        grid-template-columns: 1fr;
    }

    .company-logo {
        flex: 0 0 calc(50% - 15px);
    }

    .workflow-steps {
        flex-direction: column;
        gap: 20px;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        padding: 16px 40px;
        font-size: 16px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .cta-buttons {
        gap: 15px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

