/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 注意：这里不加 html/body 级 overflow 裁剪规则 ——
   webplus pro 后台的模块悬浮配置层（红虚线框 + 配置图标）注入在页面 DOM 里，
   祖先容器的 overflow: hidden 会把它裁剪掉，导致后台"鼠标悬浮无反应"。
   横向溢出由 body 上原有的 overflow-x: hidden 兜底即可。 */
body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: #333;
    line-height: 1.8;
    background: #f5f5f5;
    font-size: 16px;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul {
    list-style: none;
}
.container {
    max-width: 96%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 页面加载入场动画 ========== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ========== 顶部导航栏 ========== */
.top-header {
    background: url("../images/head.png") center/cover no-repeat;
    color: #fff;
    padding: 12px 0;
    position: relative;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.1s forwards;
}
.top-header::after {
/*
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(168, 16, 16, 0.92);
    z-index: 0;
*/
}
.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* LOGO整张图片形式（随屏幕流式缩放） */
.logo img {
    height: clamp(40px, 4.2vw, 58px);
    display: block;
}
.top-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}
/* 导航文字金色 */
.top-nav > ul {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
}
.top-nav > ul > li {
    position: relative;
    padding: 0 clamp(6px, 1.1vw, 18px);
}
.top-nav > ul > li > a {
    display: block;
    line-height: clamp(44px, 4.2vw, 58px);
    font-size: clamp(15px, 1.15vw, 18px);
    color: #ffd700;
    font-weight: 500;
    white-space: nowrap;
}
.top-nav > ul > li:hover > a {
    color: #fff;
}
/* 新增：导航最右侧图片图标 */
.nav-icon {
    margin-left: clamp(4px, 0.6vw, 8px);
}
.nav-icon img {
    height: clamp(26px, 2.6vw, 36px);
    width: auto;
    display: block;
    transition: all 0.3s ease;
    /* 滤镜将图标统一调成金色，和导航文字风格一致；若图标本身是金色可删除此行 */
    filter: brightness(0) invert(85%) sepia(80%) saturate(1000%) hue-rotate(0deg);
}
.nav-icon:hover img {
    transform: scale(1.15);
    /* hover时变为白色，和导航文字hover效果统一 */
    filter: brightness(0) invert(100%);
}

/* ===== 二级下拉菜单 ===== */
.top-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #a81010;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}
.top-nav > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* 靠右的导航项：下拉菜单右对齐，防止弹出屏幕外 */
.top-nav > ul > li:nth-last-child(-n+2) > .sub-menu {
    left: auto;
    right: 0;
}
.top-nav .sub-menu li {
    position: relative;
    border-bottom: 1px solid rgba(255,215,0,0.15);
}
.top-nav .sub-menu li:last-child {
    border-bottom: none;
}
.top-nav .sub-menu a {
    display: block;
    padding: 14px 22px;
    font-size: 15px;
    color: #ffd700;
}
.top-nav .sub-menu a:hover {
    background: #8a0c0c;
    color: #fff;
    padding-left: 28px;
}

/* ===== 三级下拉菜单 ===== */
.top-nav .third-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    background: #a81010;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}
.top-nav .sub-menu li:hover > .third-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 汉堡按钮 - 移动端显示 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1;
}
.hamburger span {
    width: 28px;
    height: 2px;
    background: #ffd700;
    transition: all 0.3s;
}

/* 抽屉式导航 - 移动端 */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: min(300px, 86vw);
    height: 100vh;
    background: #a81010;
    z-index: 200;
    transition: right 0.3s ease;
    padding: 70px 0 20px;
    overflow-y: auto;
}
.nav-drawer.active {
    right: 0;
}
.drawer-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #ffd700;
    cursor: pointer;
}
.drawer-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.drawer-mask.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端抽屉菜单层级样式 */
.drawer-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    color: #ffd700;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}
.drawer-menu .sub-menu,
.drawer-menu .third-menu {
    display: none;
    background: rgba(0,0,0,0.15);
}
.drawer-menu .sub-menu.open,
.drawer-menu .third-menu.open {
    display: block;
}
.drawer-menu .sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px 14px 45px;
    color: #ffd700;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}
.drawer-menu .third-menu a {
    padding-left: 60px;
    font-size: 14px;
}
.drawer-arrow {
    transition: transform 0.3s;
}
.drawer-arrow.rotate {
    transform: rotate(90deg);
}

/* ========== 单张固定Banner图（高度随屏幕自适应） ========== */
.banner {
    position: relative;
    width: 100%;
    height: clamp(280px, 55vw, 800px);
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.slide-content {
    text-align: center;
    position: relative;
    z-index: 2;
}
.league-badge {
    width: clamp(100px, 13vw, 150px);
    height: clamp(100px, 13vw, 150px);
    margin: 0 auto clamp(12px, 2vw, 24px);
    background: url("") center/cover no-repeat;
}
.banner h2 {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: bold;
    letter-spacing: clamp(2px, 0.4vw, 4px);
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ========== 主体内容区背景轮播 ========== */
/* 整体内容沉到底部，背景图放满整个屏幕 */
.main-content {
    position: relative;
    padding: 0 20px clamp(25px, 4vw, 55px);
    margin: clamp(30px, 6vw, 90px) 0;
    /* 不加 overflow: hidden —— 会裁剪 webplus pro 后台注入到模块上的悬浮配置层 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
}
/* 背景轮播容器 - 兼容webplus pro等CMS后台（不依赖JS即可正常显示） */
.bg-swiper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.bg-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    /* 不再 flex 横排，所有 slide 绝对定位叠在一起，避免 JS 失效后出现"两张并排" */
}
.bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s ease-in-out;
}
.bg-slide.active {
    opacity: 1;
    z-index: 1;
}
/*
 * 兜底（适配 webplus pro 等 CMS 后台的循环标签）：
 * 后台模板用循环输出 .bg-slide，无法给第一张手动加 .active 类。
 * 规则：仅当 JS 未接管（wrapper 上没有 js-ready 标记）时，第一张图保持可见，
 * 避免 JS 被过滤后出现"两张图并排横滑"的异常。
 * JS 一旦运行，会给 .bg-wrapper 加上 js-ready 标记，本规则自动失效，
 * 显示完全交给 .bg-slide.active 控制，不会出现双显。
 */
.bg-wrapper:not(.js-ready) .bg-slide:first-child {
    opacity: 1;
    z-index: 1;
}
.bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 新增：轮播左右按钮（图片形式） ========== */
.bg-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
/*    border-radius: 50%;*/
    overflow: hidden;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.bg-swiper-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255,215,0,0.3);
}
.bg-prev {
/*    left: 35px;*/
}
.bg-next {
    right: 4px;
}
.bg-swiper-btn img {
    width: 100%;
    height: 100%;
/*    object-fit: contain;*/
/*    padding: 12px;*/
}

/* 内容层置于背景之上 */
.main-content .container {
    display: flex;
    gap: clamp(10px, 1.5vw, 20px);
    position: relative;
    z-index: 1;
    width: 100%;
    /* 底部对齐：左右两列不互相拉伸，左侧模块保持紧凑高度 */
    align-items: flex-end;
}

/* 左侧三个新闻板块（整体变矮） */
.news-sections {
    flex: 3;
    display: flex;
    gap: clamp(15px, 2vw, 25px);
    min-width: 0;
}
.news-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    min-width: 0;
}
.news-sections .news-card:nth-child(1) { animation-delay: 0.3s; }
.news-sections .news-card:nth-child(2) { animation-delay: 0.4s; }
.news-sections .news-card:nth-child(3) { animation-delay: 0.5s; }

.card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding-bottom: 12px;
}
.card-header::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
}
.card-header h3 {
    font-size: clamp(18px, 1.6vw, 22px);
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 新闻栏目标题左侧箭头图片 */
.card-header h3::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("../images/arrow.png") center/contain no-repeat;
    display: inline-block;
    flex-shrink: 0;
}
.card-header .more {
    font-size: 14px;
    opacity: 0.9;
}
.card-header .more:hover {
    color: #ffd700;
}
.card-body {
    flex: 1;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 2px;
    padding: clamp(10px, 1.5vw, 18px);
    min-height: 0;
}
.news-list li {
    padding: 7px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
}
.news-list li a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right:12px;
    min-width: 0;
}
.news-list li:last-child {
    border-bottom: none;
}
.news-list a:hover {
    color: #a81010;
}
.news-list .date {
    color: #999;
    font-size: 13px;
}

/* ========== 快捷导航（六个方块：始终保持正方形，底部与左侧对齐） ========== */
.quick-nav {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: clamp(6px, 0.8vw, 10px);
    align-items: end;
    align-content: end;
    align-self: end;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    min-width: 0;
}
.quick-nav  a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 更大的正方形，间隙收窄 */
    width: clamp(84px, 10.2vw, 124px);
    height: auto;
    aspect-ratio: 1 / 1;
    justify-self: center;
}



.quick-nav-item {
    background: rgba(255, 255, 255, 0.65);
/*    padding: 28px 12px;*/
    text-align: center;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}
.quick-nav .quick-nav-item:nth-child(1) { animation-delay: 0.65s; }
.quick-nav .quick-nav-item:nth-child(2) { animation-delay: 0.7s; }
.quick-nav .quick-nav-item:nth-child(3) { animation-delay: 0.75s; }
.quick-nav .quick-nav-item:nth-child(4) { animation-delay: 0.8s; }
.quick-nav .quick-nav-item:nth-child(5) { animation-delay: 0.85s; }
.quick-nav .quick-nav-item:nth-child(6) { animation-delay: 0.9s; }

.quick-nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    background: #fff;
}
.quick-nav-item .icon-img {
    /* 图片撑满整个方框，与方框大小一致 */
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.quick-nav-item span {
    font-size: clamp(12px, 1.3vw, 17px);
    display: block;
    color: #a81010;
    font-weight: bold;
}

/* ========== 底部 - 友情链接区域 ========== */
.friend-link-section {
    background: url("../images/foot.png") center/cover no-repeat;
    position: relative;
    padding: clamp(50px, 9vw, 105px) 20px 20px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}
.friend-link-section::after {
/*
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(168, 16, 16, 0.85);
*/
}
.friend-link-section .container {
    position: relative;
    z-index: 2;
}
.friend-link-section h3 {
    font-size: clamp(20px, 2.6vw, 30px);
    margin-bottom: 25px;
    padding-bottom: 12px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 友情链接下方横线缩短为一半 */
.friend-link-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: #ffffff;
}
/* 友情链接标题左侧箭头图片 */
.friend-link-section h3::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("../images/arrow.png") center/contain no-repeat;
    display: inline-block;
    flex-shrink: 0;
}
.friend-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(14px, 2.5vw, 25px) clamp(18px, 4vw, 50px);
}
.friend-link-list a {
    font-size: clamp(15px, 1.5vw, 18px);
    opacity: 0.9;
}
.friend-link-list a:hover {
    color: #ffd700;
}

.footer-contact {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 40px;
    padding-right: clamp(0px, 14vw, 200px);
}
.contact-item {
    text-align: center;
}
.contact-item .qrcode {
    width: clamp(120px, 18vw, 190px);
    height: clamp(120px, 18vw, 190px);
/*    background: #fff;*/
    background: url("../images/ewm.png") center/contain no-repeat;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 13px;
}
.contact-item p {
    font-size: clamp(15px, 1.5vw, 18px);
}
.contact-item .email {
    font-size: clamp(16px, 1.7vw, 20px);
    letter-spacing: 1px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.9);
    padding-bottom: 6px;
    margin-top: clamp(20px, 12vw, 145px);
}

/* ========== 底部 - 版权信息区域 ========== */
.copyright-section {
    background-color: #7e0709;
    color: #fff;
    padding: 25px;
    text-align: center;
    font-size: 16px;
    line-height: 2;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
}

/* ===== 换行模式（与LOGO同行放不下时）：LOGO单独一行居中，导航单独一行居中 ===== */
@media (max-width: 1150px) and (min-width: 621px) {
    .top-header .container {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }
    .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .top-nav {
        justify-content: center;
        width: 100%;
    }
    .top-nav > ul {
        justify-content: center;
    }
    /* 换行模式下适度压缩，保证较窄区间导航一行仍放得下 */
    .top-nav > ul > li {
        padding: 0 clamp(4px, 1vw, 10px);
    }
    .top-nav > ul > li > a {
        font-size: clamp(14px, 1.4vw, 16px);
        line-height: 44px;
    }
    .logo img {
        height: clamp(38px, 5vw, 48px);
    }
    .nav-icon img {
        height: clamp(24px, 3vw, 30px);
    }
}

/* ===== 导航单独一行也放不下时：切换为汉堡抽屉导航 ===== */
@media (max-width: 620px) {
    .top-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .logo img {
        height: 36px;
    }
}

/* ===== 平板竖屏及以下：内容改纵向排布 ===== */
@media (max-width: 992px) {
    .main-content .container {
        flex-direction: column;
        /* 小屏下改回 stretch 让两列拉满宽度（桌面 flex-end 是为了让左右两列高度不互相拉伸） */
        align-items: stretch;
    }
    /* 竖排布局下方块改为带尺寸上限的居中正方形，避免在宽容器中被撑得过大 */
    .quick-nav {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: none;
        /* 覆盖桌面的 align-self:end（桌面用于底部对齐）；纵向布局下改回 stretch
           让方块区拉满容器宽度，三列均分、两端对齐，不再整体靠右 */
        align-self: stretch;
        justify-items: center;
    }
    .quick-nav a {
        width: 100%;
        max-width: clamp(96px, 26vw, 160px);
        height: auto;
        aspect-ratio: 1 / 1;
        justify-self: center;
    }
    .news-sections {
        flex-direction: column;
    }
    .card-body {
        min-height: 0;
    }
    /* 平板下背景区改为自然高度，避免内容纵向堆叠时留出过大空白 */
    .main-content {
        min-height: 0;
        padding-top: clamp(40px, 8vw, 90px);
    }
}

/* ===== 手机横屏/小平板 ===== */
@media (max-width: 768px) {
    .footer-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
    .container {
        max-width: 94%;
        padding: 0 15px;
    }
    /* 小屏缩小按钮尺寸 */
    .bg-swiper-btn {
        width: 42px;
        height: 42px;
    }
    .bg-prev {
        left: 15px;
    }
    .bg-next {
        right: 15px;
    }
    .bg-swiper-btn img {
        padding: 10px;
    }
}

/* ===== 手机竖屏 ===== */
@media (max-width: 600px) {
    /* 小屏时主内容区背景保留适度空隙即可 */
    .main-content {
        padding-top: clamp(50px, 16vw, 100px);
    }
    .quick-nav {
        grid-template-columns: 1fr 1fr;
    }
    .quick-nav a {
        width: 100%;
        max-width: clamp(96px, 36vw, 140px);
    }
    .footer-contact {
        padding-right: 0;
    }
    .contact-item .qrcode {
        width: clamp(110px, 32vw, 150px);
        height: clamp(110px, 32vw, 150px);
    }
    .contact-item .email {
        margin-top: 20px;
    }
    .friend-link-section h3::after {
        width: 70%;
    }
}

/* ===== 超小屏（小手机） ===== */
@media (max-width: 380px) {
    .quick-nav {
        grid-template-columns: 1fr 1fr;
    }
    .quick-nav a {
        width: 100%;
        max-width: clamp(88px, 42vw, 120px);
    }
    .card-header h3 {
        font-size: 17px;
    }
    .news-list li {
        font-size: 13px;
    }
    .copyright-section {
        font-size: 13px;
        padding: 16px;
    }
}