/* ==================== 全局样式 ==================== */
:root {
    /* 科技感配色方案 */
    --primary-color: #0d47a1;
    --secondary-color: #1976d2;
    --accent-color: #00838f;
    --text-color: #1a237e;
    --text-light: #37474f;
    --bg-color: #e3f2fd;
    --darker-bg: #bbdefb;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border-color: rgba(13, 71, 161, 0.3);
    --shadow-glow: 0 0 30px rgba(13, 71, 161, 0.2);
    --glow-color: rgba(13, 71, 161, 0.4);
    --gradient-primary: linear-gradient(135deg, #1976d2, #0d47a1);
    --gradient-accent: linear-gradient(135deg, #00acc1, #00838f);
    --gradient-dark: linear-gradient(180deg, #e3f2fd 0%, #90caf9 100%);
    
    /* 阴影 */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --neon-green: #34c759;
    --neon-glow: rgba(52, 199, 89, 0.45);
    --neon-green: #00ff80;
    --neon-glow: rgba(0, 255, 128, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--darker-bg);
    overflow-x: hidden;
    position: relative;
}

/* ========== 霓虹绿边框动画 ========== */
@keyframes neonPulse {
    0% { box-shadow: 0 0 10px rgba(0,255,128,.18), inset 0 0 8px rgba(0,255,128,.08); }
    100% { box-shadow: 0 0 26px rgba(0,255,128,.38), inset 0 0 18px rgba(0,255,128,.14); }
}

@keyframes borderFlow {
    to { background-position: 200% 0, 0 200%, -200% 0, 0 -200%; }
}

.neon-panel {
    position: relative;
    border-color: rgba(0,255,128,0.35) !important;
    animation: neonPulse 3.6s ease-in-out infinite alternate;
}

.neon-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(90deg, transparent, var(--neon-green), transparent) 0 0 / 200% 2px no-repeat,
      linear-gradient(180deg, transparent, var(--neon-green), transparent) 100% 0 / 2px 200% no-repeat,
      linear-gradient(90deg, transparent, var(--neon-green), transparent) 0 100% / 200% 2px no-repeat,
      linear-gradient(180deg, transparent, var(--neon-green), transparent) 0 0 / 2px 200% no-repeat;
    animation: borderFlow 6s linear infinite;
    opacity: .8;
}

/* 给常用容器也加轻微霓虹呼吸效果 */
.product-card,
.service-card,
.contact-info,
.contact-form-wrapper,
.navbar,
.footer {
    animation: neonPulse 4s ease-in-out infinite alternate;
    border-color: rgba(0,255,128,0.25);
}

/* ==================== 星空蓝背景 ==================== */
#techBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, 
        #0d47a1 0%,    /* 深蓝 */
        #1565c0 25%,   /* 中深蓝 */
        #1976d2 50%,   /* 蓝色 */
        #42a5f5 75%,   /* 浅蓝 */
        #64b5f6 100%   /* 天蓝 */
    );
}

#heroParticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ==================== 容器 ==================== */
.container {
    max-width: none;
    width: 70vw;
    margin: 0 15vw;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* 首页（第1屏）使用全屏容器，按视口宽度精确网格分配 */
.hero > .container {
    width: 100vw;
    margin: 0;
    padding: 0;
}

@media (max-width: 1280px) {
    .container {
        width: 92vw;
        margin: 0 4vw;
    }
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 71, 161, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(66, 165, 245, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(13, 71, 161, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.logo-img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 10px var(--glow-color));
    animation: float 3s ease-in-out infinite;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

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

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: visible;  /* 改为visible让烟花可见 */
    letter-spacing: 1px;
}

/* 底部发光线 */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color);
}

/* 烟花爆炸效果 - 多个粒子 */
.nav-link::after {
    content: '💥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    font-size: 2rem;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 0 10px #ff0080) drop-shadow(0 0 20px #00f5ff);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* Hover时的烟花爆炸效果 */
.nav-link:hover::after {
    animation: firework 0.8s ease-out forwards;
}

.nav-link:hover,
.nav-link.active {
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.8),
                 0 0 20px rgba(100, 181, 246, 0.6),
                 0 0 30px rgba(100, 181, 246, 0.4);
    transform: translateY(-2px);
}

/* 烟花爆炸动画 */
@keyframes firework {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
        filter: drop-shadow(0 0 5px #ff0080) drop-shadow(0 0 10px #00f5ff);
    }
    30% {
        transform: translate(-50%, -50%) scale(1.5) rotate(180deg);
        opacity: 1;
        filter: drop-shadow(0 0 20px #ff0080) drop-shadow(0 0 30px #00f5ff) drop-shadow(0 0 40px #ffff00);
    }
    60% {
        transform: translate(-50%, -50%) scale(2.5) rotate(360deg);
        opacity: 0.8;
        filter: drop-shadow(0 0 30px #ff0080) drop-shadow(0 0 50px #00f5ff);
    }
    100% {
        transform: translate(-50%, -50%) scale(4) rotate(540deg);
        opacity: 0;
        filter: drop-shadow(0 0 0px transparent);
    }
}

/* 流星效果容器 */
.nav-menu li {
    position: relative;
    overflow: visible;
}

/* 流星划过效果 - 为每个导航项添加 */
.nav-menu li::before {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: -50px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    animation: shooting-star 3s ease-in-out infinite;
}

.nav-menu li:nth-child(1)::before {
    animation-delay: 0s;
}

.nav-menu li:nth-child(2)::before {
    animation-delay: 0.7s;
}

.nav-menu li:nth-child(3)::before {
    animation-delay: 1.4s;
}

.nav-menu li:nth-child(4)::before {
    animation-delay: 2.1s;
}

/* 流星划过动画 */
@keyframes shooting-star {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    30% {
        transform: translateX(-80px) translateY(60px) rotate(-45deg);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-150px) translateY(120px) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: translateX(-150px) translateY(120px) rotate(-45deg);
        opacity: 0;
    }
}

/* 悬停时的粒子散射效果 */
.nav-link:hover {
    animation: sparkle 0.6s ease-in-out;
    background: radial-gradient(circle at center, 
        rgba(0, 245, 255, 0.3) 0%, 
        transparent 70%);
}

@keyframes sparkle {
    0%, 100% {
        filter: brightness(1);
        box-shadow: 0 0 0 rgba(0, 245, 255, 0);
    }
    50% {
        filter: brightness(1.8) drop-shadow(0 0 15px var(--primary-color));
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.8),
                    0 0 60px rgba(255, 0, 128, 0.6);
    }
}

/* 烟花粒子散射效果（额外的视觉反馈） */
.nav-menu li:hover {
    position: relative;
}

.nav-menu li:hover::after {
    content: '✨🎆✨';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0;
    animation: particles-burst 1s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes particles-burst {
    0% {
        transform: translateX(-50%) translateY(0) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateX(-50%) translateY(-10px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-40px) scale(1.5);
        opacity: 0;
    }
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#heroVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    filter: blur(2px) brightness(0.6);
    object-fit: cover;
}

/* 隐藏视频水印 - 左上角遮罩 */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, rgba(10, 14, 39, 1) 0%, rgba(10, 14, 39, 0.8) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.5) 0%, rgba(5, 8, 22, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    display: grid;
    /* 7列：左右各7.5%留白（合计15%），中间三栏 21% | 37% | 21%，两处空隙各3%（总6%）
       注意：若你需要两侧各15%（合计30%），请告知，我会切换到另一套比例 */
    grid-template-columns: 7.5vw 21vw 3vw 37vw 3vw 21vw 7.5vw;
    column-gap: 0;
    /* 垂直分布：标题0-5% | 副标题5%-12% | 描述13%-19% | 面板区域剩余空间 */
    grid-template-rows: 5vh 7vh 6vh 1fr 20vh;
}

.hero-head {
    /* 标题区域横跨整个宽度 */
    grid-column: 1 / -1;
    grid-row: 1 / 4;
    justify-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

/* Hero区域的标题隐藏（标题已移到导航栏） */
.hero-head h1 {
    display: none !important;
}

/* 导航栏内的居中标题 - 超炫科技风 */
.nav-center-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-center-title h1 {
    margin: 0;
    font-weight: 900;
    font-size: 1.6rem;
    white-space: nowrap;
    letter-spacing: 3px;
    
    /* 白色发光文字 */
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(100, 181, 246, 0.4);
    
    /* 呼吸动画 */
    animation: whitePulse 2s ease-in-out infinite;
}

@keyframes neonGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes neonPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(13, 71, 161, 0.6))
                drop-shadow(0 0 15px rgba(25, 118, 210, 0.4))
                drop-shadow(0 0 25px rgba(13, 71, 161, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(13, 71, 161, 0.9))
                drop-shadow(0 0 30px rgba(25, 118, 210, 0.6))
                drop-shadow(0 0 45px rgba(13, 71, 161, 0.5));
    }
}

@keyframes whitePulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                     0 0 20px rgba(255, 255, 255, 0.6),
                     0 0 30px rgba(100, 181, 246, 0.4);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),
                     0 0 40px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(100, 181, 246, 0.6);
    }
}

/* 副标题：5%-12%位置 */
.hero-head .hero-subtitle {
    position: absolute !important;
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    
    /* 蓝白渐变 */
    background: linear-gradient(135deg, 
        #1976d2 0%, 
        #42a5f5 25%,
        #ffffff 50%,
        #42a5f5 75%,
        #1976d2 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* 蓝白发光 */
    filter: drop-shadow(0 0 12px rgba(25, 118, 210, 0.8))
            drop-shadow(0 0 25px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 35px rgba(66, 165, 245, 0.4));
    
    /* 渐变动画 */
    animation: hologramShimmer 4s ease-in-out infinite, hologramGlow 3s ease-in-out infinite;
}

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

@keyframes hologramGlow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(25, 118, 210, 0.8))
                drop-shadow(0 0 25px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 35px rgba(66, 165, 245, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(25, 118, 210, 1))
                drop-shadow(0 0 40px rgba(255, 255, 255, 0.9))
                drop-shadow(0 0 60px rgba(66, 165, 245, 0.6));
    }
}

/* Section标题蓝白渐变效果 */
.section-title-gradient {
    background: linear-gradient(135deg, 
        #1976d2 0%, 
        #42a5f5 25%,
        #ffffff 50%,
        #42a5f5 75%,
        #1976d2 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(25, 118, 210, 0.8))
            drop-shadow(0 0 25px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 35px rgba(66, 165, 245, 0.4));
    animation: hologramShimmer 4s ease-in-out infinite, hologramGlow 3s ease-in-out infinite;
}

/* 描述：13%-19%位置 */
.hero-head .hero-description {
    position: absolute !important;
    top: 13vh;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 !important;
    padding: 0 20px !important;
    max-width: 800px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.8;
    
    /* 蓝白渐变文字效果 */
    color: transparent;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #e3f2fd 20%,
        #1976d2 40%,
        #42a5f5 60%,
        #e3f2fd 80%,
        #ffffff 100%
    );
    background-size: 100% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* 蓝白柔和发光 */
    filter: drop-shadow(0 0 8px rgba(25, 118, 210, 0.5))
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    
    /* 流动动画 */
    animation: textFlow 6s ease-in-out infinite;
}

.hero-head .hero-description p {
    margin: 0;
    color: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
}

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

#panelRow {
    grid-column: 1 / -1;
}

/* 确保三栏准确落位到首页7列网格 */
#teamPanel { grid-column: 2; grid-row: 4; }
#modelPanel { grid-column: 4; grid-row: 4; }
#testPanel { grid-column: 6; grid-row: 4; }

/* 防止网格子项撑出容器 */
#teamPanel, #modelPanel, #testPanel { min-width: 0; }
#modelPanel { overflow-x: hidden; }

/* 行间距统一调整：团队介绍与向量小卡内容 */
#teamPanel p { line-height: 1.5 !important; white-space: pre-line; }
/* #modelPanel 内部最后一个子元素为 8 卡网格容器，对其所有文本统一行距 */
#modelPanel > div:last-child * { line-height: 1.5 !important; }

/* 服务页标签：每行一个，字体更大，行距与上下间距更宽 */
.service-tags { display: grid; grid-template-columns: 1fr; row-gap: 1.5em; }
.service-tag { display: block; width: 100%; font-size: 1.2rem; line-height: 1.6; padding: 8px 10px; }

/* 每个主要版块占满一屏高度并启用滚动捕捉 */
body {
    scroll-snap-type: y proximity;
}

#home, #products, #services, #contact {
    min-height: 100vh;
    scroll-snap-align: start;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--glow-color);
    animation: glow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--glow-color);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-team {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 15px var(--glow-color);
    font-weight: 600;
    letter-spacing: 2px;
}

.team-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.9;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

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

.scroll-indicator span {
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

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

/* ==================== 淡入动画 ==================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==================== 通用区块样式 ==================== */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 100;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 100;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    position: relative;
    z-index: 100;
    margin: 0 auto;
}


/* ==================== 产品区域 ==================== */
.products {
    background: rgba(10, 14, 39, 0.5);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 左上角转折线 */
        linear-gradient(90deg, var(--primary-color) 2px, transparent 2px) 0 0 / 40px 2px,
        linear-gradient(0deg, var(--primary-color) 2px, transparent 2px) 0 0 / 2px 40px,
        /* 右下角转折线 */
        linear-gradient(90deg, var(--primary-color) 2px, transparent 2px) 100% 100% / 40px 2px,
        linear-gradient(0deg, var(--primary-color) 2px, transparent 2px) 100% 100% / 2px 40px,
        /* 对角线装饰 */
        linear-gradient(135deg, transparent 45%, rgba(0, 245, 255, 0.1) 50%, transparent 55%);
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 0.8;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.product-features {
    list-style: none;
}

.product-features li {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
    margin: 2px;
    white-space: nowrap;
}

.product-features li::before {
    content: none;
}

/* ==================== 服务区域 ==================== */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* 右上角转折线 */
        linear-gradient(90deg, transparent calc(100% - 40px), var(--accent-color) calc(100% - 40px)) 0 0 / 100% 2px,
        linear-gradient(0deg, var(--accent-color) 2px, transparent 2px) calc(100% - 2px) 0 / 2px 40px,
        /* 左下角转折线 */
        linear-gradient(90deg, var(--accent-color) 40px, transparent 40px) 0 100% / 100% 2px,
        linear-gradient(0deg, transparent calc(100% - 40px), var(--accent-color) calc(100% - 40px)) 0 0 / 2px 100%,
        /* 斜线装饰 */
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 128, 0.1) 50%, transparent 52%);
    background-repeat: no-repeat;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.service-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== 联系我们区域 ==================== */
.contact {
    background: rgba(10, 14, 39, 0.5);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 1.8rem;
    color: #ffffff;
    min-width: 30px;
}

.contact-details h4 {
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: #ffffff;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* ==================== 页脚 ==================== */
.footer {
    background: rgba(5, 8, 22, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

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

.footer-section {
    position: relative;
    z-index: 100;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #64b5f6;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #ffffff;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-glow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==================== 滚动动画 ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 修复产品特性标签样式 */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.feature-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
    margin: 2px;
    white-space: nowrap;
}

/* 服务标签样式 */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.service-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
    margin: 2px;
    white-space: nowrap;
}

/* 联系信息样式 */
.contact-item {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.contact-item h4 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

/* 空消息和错误消息样式 */
.empty-message, .error-message {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px 20px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
}

.error-message {
    color: #ff4466;
    border-color: rgba(255, 68, 102, 0.3);
}

/* ========== 产品特性标签修复 ========== */
.product-features {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.feature-tag {
    display: inline-block !important;
    padding: 5px 10px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #000000 !important;
    margin: 2px !important;
    white-space: nowrap !important;
}

/* 服务标签样式 */
.service-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 12px !important;
}

.service-tag {
    display: inline-block !important;
    padding: 5px 10px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #000000 !important;
    margin: 2px !important;
    white-space: nowrap !important;
}
