/* 图片序列(1) */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../../assets/bg.webp');
    background-size: cover;
    background-position: center;
    background-color: #e9ebf3 !important;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-text1,
.hero-text2,
.hero-buttons {
    position: relative;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: -1;
}

/* 创建一个透明的点击层 */
.hero-buttons::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-text1 {
    top: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Glacier 和 Legend 之间的间距 */
}

.glacier-title {
    font-weight: 700;
    font-size: 3.5rem;
    background: linear-gradient(to bottom, #ffffff, #a8c7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.2),
        0 8px 12px rgba(71, 139, 255, 0.3);
    transform: translateZ(0);
    letter-spacing: 1px;
}

.legend-title {
    font-weight: 600;
    font-size: 3.5rem;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.2),  /* 主阴影 */
        0 4px 8px rgba(0, 0, 0, 0.15),   /* 更柔和的扩散阴影 */
        0 8px 16px rgba(71, 139, 255, 0.2); /* 带一点蓝色的远距离阴影 */
}

.hero-text2 {
    top: 20%;
    background: linear-gradient(to bottom, #ffffff, #a8c7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 500;
    color: #4A5568;  /* 使用深蓝灰色 */
    font-size: 1.8rem; /* 增加字体大小 */
    letter-spacing: 1px;
}

.hero-buttons {
    top: 25%;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-buttons .try-button {
    pointer-events: auto;
    cursor: pointer;
}

.hero-text3,
.hero-text4 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translate(-50%, 6.25rem);
    pointer-events: none;
}

.hero-text3 {
    font-size: 3rem;
    top: 70%;
    z-index: 3;
}

.hero-text4 {
    font-size: 3rem;
    top: 85%;
    z-index: 3;
}

.hero-text5 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    color: white;
    opacity: 0;
    transform: translate(-50%, 6.25rem);
    pointer-events: none;
    font-size: 2rem;
    top: 90%;
    z-index: 3;
}

.hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#hero-sequence {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* 确保按钮样式正确 */
.try-button.white {
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border: 2px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.try-button.white:hover {
    background-color: white;
    color: #333;
}

/* 添加渐变遮罩 */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh; /* 调整渐变高度 */
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 1) 100%
    );
    pointer-events: none;
}

/* 添加合作伙伴logo滚动样式 */
.partnership-scroll-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 150px;
    z-index: 0;
    pointer-events: all !important;
}

.partnership-scroll-track {
    display: flex;
    animation: partnerScroll 60s linear infinite;
    width: fit-content;
    pointer-events: all !important;
}

/* 确保这个hover样式存在且正确 */
.partnership-scroll-track:hover {
    animation-play-state: paused;
}

.partnership-scroll-content {
    display: flex;
    align-items: center;
    gap: 180px;
    padding: 0 90px;
    pointer-events: all !important;
}

.partnership-scroll-content img {
    height: 100px;
    object-fit: contain;
    filter: brightness(0.95); /* 将亮度设置为1，去除灰色框 */
    opacity: 0.6;
    transition: all 0.3s ease;
    pointer-events: all !important;
    border: none; /* 去除边框 */
    outline: none; /* 去除轮廓 */
    display: block; /* 确保图片为块级元素，避免底部空隙 */
}

/* 可以添加图片hover效果来测试鼠标事件是否生效 */
.partnership-scroll-content img:hover {
    filter: brightness(1);
    opacity: 1;
}

/* 移除hover效果，因为在背景中不需要交互 */
.partnership-scroll-container::before,
.partnership-scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.partnership-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #e9ebf3 40%, transparent);
}

.partnership-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #e9ebf3 40%, transparent);
}

@keyframes partnerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 确保其他可能遮挡的元素不会阻止事件 */
#hero-sequence,
.hero canvas,
.hero-content {
    pointer-events: none;
}

/* 添加弹窗样式 */
.partner-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.partner-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    min-width: 400px;
}

.partner-modal.active,
.partner-modal-overlay.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    color: #333;
}

.close-modal {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.stats-container {
    color: #333;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #2196F3;
}