html, body {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #fff;
    font-family: Arial, sans-serif;
}

/* HEADER 置顶抬头 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 2000;
    transition: background 0.4s ease;
    display: flex;
    justify-content: center; /* 让 Logo 置中 */
    align-items: center;

    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0));
    color: #fff;
}

.header.scrolled {
    background: rgba(0,0,0,0.85); /* 滚动后完全变黑 */
}

/* LOGO 居中 */
.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: 48px;
    object-fit: contain;
}

/* 菜单按钮定位在右上，适当向左缩 */
.menu-btn {
    position: absolute;
    right: 50px;   /* 从贴边变为 18px，更舒适 */
    top: 50%;
    transform: translateY(-50%);

    font-size: 28px;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
}

/* 抽屉栏 */
.drawer {
    position: fixed;
    top: 0;
    right: -60%;      /* 更窄：60% 宽度 */
    width: 60%;
    max-width: 360px; /* 大屏限制最大宽度 */
    height: 100vh;

    backdrop-filter: blur(20px); /* 毛玻璃来了 */
    background: rgba(255,255,255,0.85);
    box-shadow: -8px 0 20px rgba(0,0,0,0.15);

    transition: right 0.35s ease;
    z-index: 3000;
}
/* 抽屉背景毛玻璃罩层 */
.overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 2500; /* 在 header 下，drawer 下 */
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.drawer.open {
    right: 0;
}

/* 抽屉顶部栏：关闭按钮 */
.drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

.drawer-close {
    font-size: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
}

/* 抽屉内容 */
.drawer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.drawer-content a {
    color: #0e0e12;
    padding: 18px 0;
    font-size: 18px;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}


/* HERO 视频部分 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;  /* 只占一屏，不延伸 */
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.join-btn {
    margin-top: 20px;
    padding: 12px 28px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-size: 18px;
    font-style: normal;
    cursor: pointer;
    transition: 0.25s ease;
    border-radius: 8px;
}

.join-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(255,255,255,0.7);
}

.join-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.2);
}


/* 内容1 */
.content1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
}

@media (orientation: landscape) {
    .content1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.img-box {
    position: relative;
    width: 100%;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
}

.img-box img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.img-label {
    position: absolute;
    bottom: 10px;
    left: 20px;
    width: 100%;
    padding: 10px;
    color: white;
    font-size: 16px;
    font-style: bold;
}

/* 下期活动图片容器，限制放大不撑开布局 */
/* --- 覆盖文字层 --- */
.next-event {
    margin: 20px 20px 20px 20px;
}
.next-event-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 800px;
    border-radius: 16px;
    overflow: hidden;
}

/* --- 覆盖文字层：居中，上方 --- */
.next-event-overlay {
    position: absolute;
    top: 12%;          /* ← 关键：从顶部往下 12%，可调 */
    left: 50%;         /* 定位中心 */
    transform: translateX(-50%);  
    width: 100%;
    text-align: center;   /* 居中文本 */

    color: white;
    padding: 0 24px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* 文字行样式 */
.event-line1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-line2 {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* 按钮容器 */
.event-btn-group {
    display: flex;
    gap: 16px;
}

/* 按钮基础样式 */
.event-btn {
    padding: 10px 22px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
    display: inline-block;
}

/* 白底按钮 */
.btn-white {
    background: white;
    color: #000;
}

.btn-white:hover {
    transform: scale(1.06);
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.btn-white:active {
    transform: scale(0.92);
}

/* 透明描边按钮 */
.btn-outline {
    background: rgba(255,255,255,0.1);
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    transform: scale(1.06);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.btn-outline:active {
    transform: scale(0.92);
}

/* 下期活动图片本体保持容器放大的逻辑 */
.next-event-img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.next-event-img-wrapper:hover .next-event-img {
    transform: scale(1.06);
}

.next-event-img-wrapper:active .next-event-img {
    transform: scale(1.10);
}

/* 横屏：2:1 */
@media (orientation: landscape) {
    .next-event-img-wrapper {
        aspect-ratio: 2 / 1;
    }

    .event-line1 { font-size: 36px; }
    .event-line2 { font-size: 20px; }
}

/* 竖屏：3:4 */
@media (orientation: portrait) {
    .next-event-img-wrapper {
        aspect-ratio: 3 / 4;
    }

    .event-line1 { font-size: 28px; }
    .event-line2 { font-size: 16px; }
}



/* 合作伙伴滚动 */
.partners {
    padding: 40px 20px;
    background-color: #0e0e12;
}

.section-title {
    color: #ffffff;
    text-align: center;
    font-size: 24px;
    margin-bottom: 50px;
}

.logo-scroll {
    display: flex;
    animation: scroll 12s linear infinite;
}

.logo-scroll img {
    height: 50px;
    margin-right: 50px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* FOOTER */
.footer {
    background: #0e0e12;
    color: #fff;
    padding: 40px 20px;
}

.footer-container {
    left: 50%;
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-block h3 {
    margin-bottom: 10px;
}

/* 底部 LOGO */
.footer hr {
    border: 0;
    border-top: 1px solid rgb(117, 114, 114);
    margin: 50px 20px 25px 50px;
}

.footer-logo {
  text-align: center;
  left: 50%;
}

.footer-logo img {
  height: 40px;
}

/* 入场动画基础 */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* 鼠标悬停放大 */
.img-box img,
.next-event-img {
    transition: transform 0.35s ease;
}

.img-box:hover img,
.next-event-img:hover {
    transform: scale(1.06);
}

.img-box:active img,
.next-event-img:active {
    transform: scale(1.10);
}


/* 倒计时浮层：固定在图片底部 */
.event-countdown {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 14px;
    z-index: 3;
}

/* 单个卡片 */
.cd-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 8px 14px;
    background: rgba(0,0,0,0.35);         /* 半透明黑卡片 */
    backdrop-filter: blur(8px);           /* 毛玻璃 */
    border-radius: 10px;
    min-width: 58px;

    border: 1px solid rgba(255,255,255,0.25);
}

/* 数字 */
.cd-card span {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

/* 单位文字 */
.cd-card label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* 竖屏适配 */
@media (orientation: portrait) {
    .cd-card {
        min-width: 54px;
        padding: 6px 12px;
    }

    .cd-card span {
        font-size: 20px;
    }

    .cd-card label {
        font-size: 11px;
    }
}
