/* 全局样式 */
:root {
    --primary-dark: #0a1128;
    --primary-medium: #1c3166;
    --primary-light: #4dabf7;
    --accent-silver: #e9ecef;
    --gradient-blue: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    --gradient-silver: linear-gradient(135deg, #a0a0a0, #e9ecef);
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --shadow-normal: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--primary-dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* 顶部导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-logo 2s forwards;
}

.logo-node {
    opacity: 0;
    animation: fade-in 1s forwards 1.5s;
}

@keyframes draw-logo {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-menu {
    display: flex;
    gap: 25px;
}

.desktop-menu a {
    position: relative;
    padding: 5px 0;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-normal);
}

.desktop-menu a:hover {
    color: var(--primary-light);
}

.desktop-menu a:hover::after {
    width: 100%;
}

.language-switch {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switch button {
    padding: 5px 10px;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.language-switch button.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-normal);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 17, 40, 0.95);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 首屏主视觉区 */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slogan {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--accent-silver);
    font-weight: 300;
}

.cta-button {
    padding: 12px 30px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition-normal);
}

.cta-button:hover {
    box-shadow: 0 5px 20px rgba(77, 171, 247, 0.4);
    transform: translateY(-3px);
}

.cta-button:hover::before {
    animation: flow-light 1s;
}

@keyframes flow-light {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateX(100%) rotate(45deg);
    }
}

.hero-visual {
    position: relative;
}

.model-container {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 30px;
}

.robot-arm {
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-3d {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.robot-carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-normal);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    font-weight: 500;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.6);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    background: var(--primary-light);
}

.prev, .next {
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 核心业务展示 */
.services {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary-medium));
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-light);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(77, 171, 247, 0.3);
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--accent-silver);
    margin-bottom: 20px;
}

.card-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 49, 102, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    pointer-events: none;
}

.service-card:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.card-hover-content p {
    margin-bottom: 10px;
}

/* 数据看板区 */
.stats {
    padding: 80px 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M0,100 L100,0" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    z-index: -1;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    display: inline-block;
}

.stat-plus, .stat-unit {
    font-size: 2rem;
    color: var(--primary-light);
    display: inline-block;
    margin-left: 5px;
}

.stat-label {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--accent-silver);
}

.stats-disclaimer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 页脚信息 */
footer {
    background: var(--primary-dark);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 10px;
}

.company-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-link-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.footer-link-group a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-menu, .language-switch {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .slogan {
        font-size: 1.2rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-plus, .stat-unit {
        font-size: 1.5rem;
    }
}