/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #050a14; /* 深海黑背景 */
    color: #ffffff;
    overflow-x: hidden;
}

/* --- Hero Section (视差滚动) --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    /* 背景图设置：固定(fixed)实现视差效果 */
    background: linear-gradient(rgba(0, 10, 30, 0.7), rgba(0, 10, 30, 0.5)), 
                url('/images/hero-background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* 关键：背景固定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.company-name {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 5px;
    line-height: 1.2;
    text-transform: uppercase;
    background: linear-gradient(to right, #00f2ff, #0077ff);
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.company-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #a0b0d0;
}

/* 滚动箭头动画 */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #00f2ff;
    border-right: 2px solid #00f2ff;
    transform: rotate(45deg);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- Gallery Section (核心修改部分) --- */
.gallery-section {
    padding: 100px 20px; /* 上下留白 */
    background-color: #050a14;
}

/* 限制最大宽度，防止图片无限变大 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 单个展示卡片 */
.gallery-item {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    justify-content: space-between;
    margin-bottom: 120px; /* 每个项目之间的距离 */
    gap: 60px; /* 图片和文字的间距 */
}

/* 图片容器 */
.image-wrapper {
    flex: 1; /* 占比 1份 */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2); /* 蓝色光晕 */
    transition: transform 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: 350px; /* 限制高度，防止过大 */
    object-fit: cover; /* 保持比例裁剪 */
    display: block;
}

.image-wrapper:hover {
    transform: translateY(-10px); /* 悬停上浮 */
}

/* 文字容器 */
.text-wrapper {
    flex: 1; /* 占比 1份 */
    padding: 40px;
    background: rgba(255, 255, 255, 0.05); /* 半透明卡片背景 */
    border-radius: 12px;
    border-left: 4px solid #00f2ff; /* 左侧装饰线 */
}

.business-title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.business-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1; /* 浅灰蓝色，确保清晰可见 */
}

/* === 交替布局魔法 === */
/* 选中偶数项 (第2个)，让它反转方向 */
.gallery-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(to top, #02050a, #050a14);
}
.cta-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
    letter-spacing: 2px;
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-label {
    font-size: 0.9rem;
    color: #00f2ff;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: bold;
}
.contact-value {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: color 0.3s;
}
.contact-value:hover {
    color: #00f2ff;
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .company-name { font-size: 2.5rem; }
    
    .gallery-item {
        flex-direction: column !important; /* 手机上强制垂直排列 */
        gap: 20px;
        margin-bottom: 80px;
    }
    
    .image-wrapper img {
        height: 250px; /* 手机上图片高度减小 */
    }
    
    .text-wrapper {
        width: 100%;
        padding: 20px;
    }

    .contact-info {
        flex-direction: column;
        gap: 40px;
    }
}

/* 简单的淡入动画类 */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}