/* --- 1. 全局重置与基础样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden; /* 防止因为 100vw 导致的水平滚动条 */
}

/* --- 2. 导航栏 (Header) 样式 --- */
.main-header {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px; 
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.logo-image {
    height: 40px;           /* 核心设置：限制高度，通常 30px-50px 之间 */
    width: auto;            /* 宽度自动，这样长条形 Logo 也就不会变形 */
    display: block;         /* 防止图片底部出现莫名的微小空隙 */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.3s;
    text-transform: uppercase;
}

.main-nav ul li a:hover {
    color: #c1c1c1;
}

.contact-button {
    background-color: #0078D4; 
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}
.contact-button:hover {
    background-color: #005A9E;
}

/* --- 3. Hero 区块样式 --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* 1. 让视频铺满全屏 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 关键：像切图片一样切视频，保证不拉伸 */
    z-index: 1; /* 在最底层 */
}

/* 2. 黑色半透明遮罩 (让文字更清晰) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 30% 黑色透明度 */
    z-index: 2; /* 在视频上面 */
}

.hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    z-index: 3;
}

.hero-content-wrapper h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content-wrapper p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.video-pause-button {
    background: rgba(255, 255, 255, 0.2); 
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px; 
    font-size: 1.5em;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- 4. 过渡分隔线样式 --- */
.section-divider-transition {
    text-align: center;
    padding: 50px 20px 0; 
}

.divider-text {
    display: block;
    font-size: 0.8em;
    color: #AAAAAA;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* --- 5. Impact 介绍文本样式 (大字居中) --- */
.impact-section {
    /* [修复] 移除左右 padding，防止 Impact 内容比其他区块窄 */
    padding: 0 0 80px; 
    background-color: white;
    width: 100%;
}

.impact-intro-text p {
    max-width: 800px; 
    margin: 0 auto;
    font-size: 2.2em; 
    line-height: 1.3;
    font-weight: 400;
    color: #2c3e50;
    text-align: center;
    padding: 0 20px; /* 防止小屏幕文字贴边 */
}

/* 分隔线样式 */
.full-width-divider-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 40px 0 0;
}

.impact-divider-line {
    height: 1px;
    background-color: #EEEEEE;
    width: 100%;
}

/* --- 6. 通用两栏布局样式 (Flexbox) --- */
/* 这是控制所有区块宽度的核心类 */
.two-column-section {
    display: flex;
    gap: 100px; 
    align-items: center;
    padding: 80px 0; /* 上下 padding */
    max-width: 1200px;
    width: 90%; /* [修复] 统一所有内容宽度为 90% */
    margin: 0 auto;
}

/* [修复] 统一 Flex 比例：图片 flex: 3 (60%), 文字 flex: 2 (40%) */

/* 左侧栏默认样式 */
.column-left {
    flex: 3; /* 默认让左侧（通常是图片）更宽 */
    min-width: 0;
}

/* 右侧栏默认样式 */
.column-right {
    flex: 2; /* 默认让右侧（通常是文字）稍窄 */
    min-width: 0;
}

/* 如果特定区块需要反转比例，可以在这里覆盖，但目前我们保持统一 */
.impact-detail .column-left { flex: 3; }
.impact-detail .column-right { flex: 2; }

/* 标签和标题样式 */
.section-label {
    display: block;
    font-size: 0.8em;
    color: #AAAAAA;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.impact-text-block h2,
.about-text-block h2,
.team-text-block h2 { 
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: left; 
}

.impact-text-block p,
.about-text-block p,
.team-text-block p { 
    font-size: 1.1em; 
    line-height: 1.8;
    margin-bottom: 25px; 
    color: #555; 
    text-align: left;
}

/* --- 7. Impact 详情：引言区块样式 --- */
.impact-quote-block {
    background-image: url('./assets/images/impact.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #f4f4f4; 
    min-height: 400px;
    border-radius: 8px;
    display: block; 
    padding: 0;
}

.quote-wrapper, .quote-text, .quote-author {
    all: unset; 
    display: none; 
}

/* --- 8. Learn More 按钮样式 (统一) --- */
.learn-more-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #0078D4; 
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.learn-more-button:hover {
    background-color: #005A9E; 
}

/* --- 9. About 区块：镜像和图片占位样式 --- */

.two-column-section.section-reverse { 
    flex-direction: row-reverse; 
}

.about-image-block {
    background-image: url('./assets/images/about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3 !important; /* [修复] 强制 About 图片也占 60% 宽度 */
}

.about-text-block {
    flex: 2; /* 配合图片，文字占 40% */
}

.product-image-wrapper {
    color: white;
    font-size: 1.5em;
}

/* --- 10. Team 区块样式 --- */

.team-section-wrapper {
    background-color: white; 
}

.team-image-block {
    background-image: url('./assets/images/team.JPG');
    background-size: cover;
    background-position: center;
    background-color: #f4f4f4; 
    min-height: 400px; 
    border-radius: 8px;
    flex: 3; /* 图片占 60% */
}

.team-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: left;
    flex: 2; /* 文字占 40% */
}

.team-buttons {
    display: flex;
    flex-direction: column; 
    gap: 15px; 
    margin-top: 5px;
}

.team-button {
    display: block; 
    padding: 15px 20px;
    background-color: #0078D4; 
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.3s;
    letter-spacing: 0.5px;
}

.team-button:hover {
    background-color: #005A9E; 
}

/* --- 11. 滚动 Logo 墙样式 (Logo Marquee) --- */

.logo-carousel-section {
    padding: 30px 0;
    background-color: #e6f7ff; 
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    /* 关键：隐藏溢出的内容，把它当成一个“窗口” */
    overflow: hidden; 
}

.logo-strip-container {
    display: flex; 
    /* 🔥 核心修复 1：让宽度根据内容自动撑开，不要受屏幕限制 */
    width: max-content; 
    
    /* 🔥 核心修复 2：动画逻辑调整 */
    animation: scroll 40s linear infinite; 
}

.logo-group {
    display: flex;
    align-items: center;
    /* 移除之前的 space-around，改用 gap 保证间距均匀 */
    gap: 60px; 
    padding-right: 60px; /* 这一组结束时，给下一组留个空隙 */
}

.logo-item {
    height: 40px; /* 统一高度 */
    /* 防止 Logo 被压缩 */
    flex-shrink: 0; 
    
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-height: 100%;
    width: auto;
    filter: grayscale(100%); 
}

/* 鼠标放上去时暂停滚动，方便用户看清楚 (可选) */
.logo-carousel-section:hover .logo-strip-container {
    animation-play-state: paused;
}

/* --- 核心动画逻辑 --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); 
    }
}

/* --- 12. Contact/Subscription 区块样式 --- */
.contact-subscription-section {
    padding: 80px 0; /* [修复] 移除左右 padding */
    text-align: center;
    background-color: white;
}

.contact-content-wrapper {
    max-width: 1200px;
    width: 90%; /* [修复] 确保与上方区块对齐 */
    margin: 0 auto;
}

.subscription-intro-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 40px;
}

.subscription-form-container {
    background-color: #0078D4; 
    padding: 40px 60px; 
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    margin: 0 auto; 
}

.subscription-title {
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    flex-shrink: 0; 
    margin-right: 30px;
}

.subscription-form {
    display: flex;
    flex-grow: 1;
    gap: 10px;
    max-width: 350px; 
}

.subscription-input {
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    flex-grow: 1;
    font-size: 1em;
}

.subscription-button {
    background-color: #5baceb; 
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.subscription-button:hover {
    background-color: #005A9E;
}

/* --- 13. 网站底部 Footer 样式 --- */
.main-footer-bottom {
    border-top: 1px solid #EEEEEE;
    padding: 25px 40px;
    background-color: white;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.9em;
    color: #AAAAAA;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 0.9em;
    margin-left: 25px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0078D4;
}

/* --- 14. 响应式调整 (Media Queries - 核心修复) --- */

@media (max-width: 992px) {
    .hero-content-wrapper h1 {
        font-size: 2.5em;
    }
    .two-column-section {
        gap: 50px;
    }
}

@media (max-width: 768px) {
    /* --- 布局核心修复 --- */
    
    .two-column-section {
        flex-direction: column; /* 垂直堆叠 */
        padding: 40px 0; /* 移除左右内边距，完全由 width 控制 */
        width: 90%; /* 手机上统一宽度 */
        gap: 40px;
    }

    /* 文本内容居中 */
    .impact-text-block,
    .about-text-block,
    .team-text-block {
        width: 100%;
        text-align: center;
        align-items: center;
        flex: unset; /* 取消 flex 比例 */
    }

    /* 文本内部元素居中 */
    .impact-text-block h2, .about-text-block h2, .team-text-block h2,
    .impact-text-block p, .about-text-block p, .team-text-block p {
        text-align: center;
    }

    /* 图片占满宽度 */
    .impact-quote-block,
    .about-image-block,
    .team-image-block {
        width: 100%;
        min-height: 250px; /* 手机上高度减小 */
        flex: unset;
        order: 1; /* 图片在文字上方 */
    }

    .impact-text-block, .about-text-block, .team-text-block {
        order: 2; /* 文字在图片下方 */
    }

    /* --- 导航修复 --- */
    .main-header {
        padding: 20px;
    }
    .main-nav {
        display: none; 
    }

    /* --- 订阅表单修复 --- */
    .subscription-form-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        width: 100%; /* 确保填满容器 */
    }
    
    .subscription-title {
        margin-right: 0;
        text-align: center;
    }
    
    .subscription-form {
        flex-direction: column;
        width: 100%;
        max-width: none;
    }
    
    .subscription-input,
    .subscription-button {
        width: 100%;
    }

    /* --- Footer 修复 --- */
    .footer-content-wrapper {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 10px;
        display: inline-block;
        margin-top: 10px;
    }
}