/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 触摸滑动优化 */
.hero-section {
    -ms-touch-action: pan-y pinch-zoom;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.hero-slides {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -ms-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* 优化滑动性能 */
.hero-slide {
    -ms-transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* 触摸滑动时的视觉反馈 */
.hero-section.touching .hero-slides {
    transition: none !important;
}

/* 滑动指示器增强 */
.hero-dots {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 20px;
}

.hero-dot + .hero-dot {
    margin-left: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.hero-dot.active {
    background: #2196f3;
    border-color: #fff;
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

/* PC端鼠标拖拽优化 */
.hero-section {
    cursor: grab;
}

.hero-section:active {
    cursor: grabbing;
}

.hero-section.touching {
    cursor: grabbing;
}

/* 移动端触摸优化 */
@media (max-width: 768px) {
    .hero-dot {
        width: 14px;
        height: 14px;
        margin: 0 4px;
    }
    
    .hero-section {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: default;
    }
    
    .hero-section:active {
        cursor: default;
    }
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.nav-brand > * + * {
    margin-left: 10px;
}

.logo {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 60px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: #2c5530;
}

.nav-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.nav-menu > * + * {
    margin-left: 30px;
}

/* 移动端菜单默认隐藏 - 无过渡动画 */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 20px;
        -ms-transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: none; /* 移除过渡动画 */
        z-index: 1000;
    }
    
    .nav-menu.mobile-open {
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* 只在打开时才有动画 */
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ff993c;
    background-color: #fff5ea;
}

/* 主横幅区域 */
.hero-section {
    padding: 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    height: 450px;
    width: 100%;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide:nth-child(1) {
    background-image: url('assets/hero-slide-1.jpg');
    background-color: #ff6b35;
}

.hero-slide:nth-child(2) {
    background-image: url('assets/hero-slide-2.jpg');
    background-color: #ff6b35;
}

.hero-slide:nth-child(3) {
    background-image: url('assets/hero-slide-3.jpg');
    background-color: #ff6b35;
}


.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
    transform: scale(1.3);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* 通用区域样式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.section-title-image {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
}

/* 游戏玩法区域 */
.games-section {
    padding: 80px 0;
    background: white;
}

.games-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 30px;
}

.game-card {
    width: calc(25% - 15px);
    margin: 0 7.5px 20px 7.5px;
}

/* 现代浏览器使用Grid */
@supports (display: grid) {
    .games-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        -webkit-box-pack: unset;
        -ms-flex-pack: unset;
        justify-content: unset;
    }
    
    .game-card {
        width: auto;
        margin: 0;
    }
}

/* IE兼容性优化 - 确保8个游戏卡片正确显示 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .games-container {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 100%;
        min-height: 400px;
    }
    
    .game-card {
        width: calc(25% - 15px);
        margin: 0 7.5px 20px 7.5px;
        -ms-flex: 0 0 calc(25% - 15px);
        flex: 0 0 calc(25% - 15px);
        display: block;
        float: left;
        clear: none;
    }
    
    /* 确保游戏卡片在IE中正确显示 */
    .game-card img {
        width: 100%;
        height: 100%;
        display: block;
    }
    
    /* 强制显示游戏区域 */
    .games-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .games-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* IE8及以下版本的额外兼容性 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* 确保容器可见 */
    .games-section {
        min-height: 500px;
        background: white;
        padding: 80px 0;
    }
    
    .games-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        overflow: hidden;
    }
    
    /* 游戏卡片布局 */
    .game-card {
        width: 22%;
        margin: 0 1.5% 20px 1.5%;
        display: inline-block;
        vertical-align: top;
        zoom: 1; /* IE7 hack */
    }
    
    /* IE7 hack for inline-block */
    * .game-card {
        display: inline;
    }
    
    /* 确保图片正确显示 */
    .game-card img {
        width: 100%;
        height: 360px;
        object-fit: contain;
        border-radius: 12px;
        display: block;
    }
    
    /* 强制显示所有元素 */
    .section-header,
    .section-title-image,
    .games-container,
    .game-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* IE导航栏兼容性增强 */
    .nav-link {
        display: inline-block;
        zoom: 1; /* IE7 hack */
        position: relative;
    }
    
    .nav-link.active {
        color: #ff993c !important;
        background-color: #fff5ea !important;
    }
    
    .nav-link:hover {
        color: #ff993c !important;
        background-color: #fff5ea !important;
    }
    
    /* 确保导航栏在IE中正确显示 */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .header .container {
        display: table !important;
        width: 100% !important;
        padding: 15px 20px !important;
    }
    
    .nav-brand {
        display: table-cell !important;
        vertical-align: middle !important;
        width: auto !important;
    }
    
    .nav-menu {
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: right !important;
        width: auto !important;
    }
    
    .nav-menu a {
        display: inline-block !important;
        margin-left: 20px !important;
        padding: 8px 16px !important;
        text-decoration: none !important;
        color: #333 !important;
        font-weight: 500 !important;
        border-radius: 4px !important;
    }
    
    /* 确保导航链接的active状态在IE中正确显示 */
    .nav-link.active::after {
        content: '' !important;
        position: absolute !important;
        bottom: -5px !important;
        left: 50% !important;
        width: 100% !important;
        height: 2px !important;
        background: #2c5530 !important;
        transform: translateX(-50%) !important;
    }
}

.game-card {
    height: 360px;
    background: white;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    -webkit-transition: -webkit-transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.game-card:nth-child(1)::before {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.game-card:nth-child(2)::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.game-card:nth-child(3)::before {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.game-card:nth-child(4)::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.game-card:nth-child(5)::before {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.game-card:nth-child(6)::before {
    background: linear-gradient(90deg, #e67e22, #d35400);
}

.game-card:hover {
    -ms-transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    cursor: pointer;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}



/* 江城闲趣杯区域 */
.cup-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cup-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.cup-text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-right: 30px;
}

.cup-graphic {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-left: 30px;
}

/* 现代浏览器使用Grid */
@supports (display: grid) {
    .cup-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        -webkit-box-align: unset;
        -ms-flex-align: unset;
        align-items: unset;
    }
    
    .cup-text {
        margin-right: 0;
    }
    
    .cup-graphic {
        margin-left: 0;
    }
}

.cup-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.cup-graphic {
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.cup-banner-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 15px;
}

/* 加入我们区域 */
.join-section {
    padding: 80px 0;
    background: white;
}

.join-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    min-height: auto;
}

.join-text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-right: 30px;
}

.join-image {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    margin-left: 30px;
}

/* 现代浏览器使用gap */
@supports (gap: 60px) {
    .join-content {
        gap: 60px;
    }
    
    .join-text {
        margin-right: 0;
    }
    
    .join-image {
        margin-left: 0;
    }
}

.join-image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.join-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.join-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 30px;
    -webkit-box-align: flex-end;
    -ms-flex-align: flex-end;
    align-items: flex-end;
}

.join-buttons > * + * {
    margin-left: 20px;
}

/* 现代浏览器使用gap */
@supports (gap: 20px) {
    .join-buttons {
        gap: 20px;
    }
    
    .join-buttons > * + * {
        margin-left: 0;
    }
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c00, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9500, #ff5722);
    -ms-transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    border: 2px solid rgba(33, 150, 243, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    -ms-transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.qr-code {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 2px solid #e9ecef;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.join-image {
    height: auto;
    margin-top: 0;
    padding-top: 0;
}

.join-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.image-text {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 600;
}

.text-line {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 40px 0 0;
}

.footer-content {
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    text-align: center;
}

.footer-left {
    padding: 20px;
    border-radius: 4px;
}

.footer-left p {
    margin-bottom: 15px;
    font-size: 14px;
    color: white;
    line-height: 1.6;
    text-align: center;
}

.footer-left p:last-child {
    margin-bottom: 0;
}

.license {
    font-weight: 500;
}

.warning {
    color: #ffc107;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #555;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.7;
}

/* 固定浮动框 */
.floating-box {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 280px;
    height: 280px;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 1000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.qr-code-section {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.qr-code-container {
    text-align: center;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
    padding: 0;
    margin: 0;
}

.qr-code-container img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

.options-section {
    width: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
    padding: 20px 15px;
}

.option-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 20px 15px;
    cursor: pointer;
    margin-bottom: 35px;
    width: auto;
    height: auto;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    border-radius: 0;
}

.option-icon {
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 确保选项按钮没有任何悬停效果 */
.option-item:hover,
.option-item:focus,
.option-item:active {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .games-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-card {
        height: 320px;
    }
    
    .hero-section {
        height: 400px;
    }
}

/* 超宽屏和曲面屏优化 */
@media (min-width: 1920px) {
    .header {
        padding: 20px 0;
    }
    
    .nav-menu > * + * {
        margin-left: 40px;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .hero-section {
        height: 600px;
    }
    
    .games-section {
        padding: 120px 0;
    }
    
    .cup-section {
        padding: 120px 0;
    }
    
    .join-section {
        padding: 120px 0;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 1600px;
    }
    
    .header {
        padding: 25px 0;
    }
    
    .nav-menu > * + * {
        margin-left: 50px;
    }
    
    .nav-link {
        padding: 15px 25px;
        font-size: 18px;
    }
    
    .hero-section {
        height: 700px;
    }
    
    .games-section {
        padding: 150px 0;
    }
    
    .cup-section {
        padding: 150px 0;
    }
    
    .join-section {
        padding: 150px 0;
    }
    
    .section-title-image {
        height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 300px;
    }
}

@media (max-width: 1024px) {
    .games-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-card {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .graphic-text {
        font-size: 48px;
    }
    
    .section-title-image {
        height: auto;
        max-height: none;
    }
    
    .games-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-card {
        height: 240px;
    }
    
    .cup-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .join-content {
        flex-direction: column;
        gap: 40px;
        min-height: auto;
    }
    
    .cup-banner-image {
        max-height: 250px;
    }
    
    .join-image {
        min-height: 300px;
    }
    
    .join-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .join-buttons > * + * {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .footer-bottom {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom > * + * {
        margin-top: 20px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-left {
        padding: 15px;
    }
    
    .footer-left p {
        font-size: 13px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .graphic-text {
        font-size: 36px;
    }
    
    .section-title-image {
        height: auto;
        max-height: none;
    }
    
    .cup-banner-image {
        max-height: 200px;
    }
    
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        height: 360px;
    }
    
    .join-buttons {
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-left p {
        text-align: center;
    }
    
    .floating-box {
        width: 240px;
        height: 200px;
        bottom: 50px;
        right: 15px;
    }
    
    .qr-code-section {
        padding: 12px;
    }
    
    .options-section {
        width: 80px;
        padding: 15px 10px;
    }
    
    .option-item {
        padding: 12px 8px;
        margin-bottom: 10px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        -ms-transform: translateY(30px);
        -webkit-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 悬停效果增强 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2c5530;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -ms-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* IE兼容性：修复footer样式问题 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .footer {
        background: #333 !important;
        color: white !important;
        padding: 40px 0 0 !important;
        border: none !important;
        outline: none !important;
    }
    
    .footer-content {
        margin-bottom: 30px !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 20px !important;
        text-align: center !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
    }
    
    .footer-left {
        padding: 20px !important;
        border-radius: 4px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
    }
    
    .footer-left p {
        margin-bottom: 15px !important;
        font-size: 14px !important;
        color: white !important;
        line-height: 1.6 !important;
        text-align: center !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
    }
    
    .footer-left p:last-child {
        margin-bottom: 0 !important;
    }
    
    .footer-bottom {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px 0 !important;
        border-top: 1px solid #555 !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        background: transparent !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        outline: none !important;
    }
    
    /* IE兼容性：修复浮动按钮样式问题 */
    .floating-box {
        position: fixed !important;
        bottom: 60px !important;
        right: 20px !important;
        width: 280px !important;
        height: 220px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .qr-code-section {
        width: 180px !important;
        height: 280px !important;
        float: left !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    .qr-code-container {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        text-align: center !important;
    }
    
    .qr-code-container img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .options-section {
        width: 100px !important;
        height: 280px !important;
        float: right !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 20px 15px !important;
    }
    
    .option-item {
        width: auto !important;
        height: auto !important;
        min-width: 60px !important;
        min-height: 60px !important;
        margin-bottom: 20px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        cursor: pointer !important;
        text-align: center !important;
        padding: 10px !important;
        position: relative !important;
    }
    
    .option-item:last-child {
        margin-bottom: 0 !important;
    }
    
    .option-item.active {
        background: transparent !important;
        border-radius: 0 !important;
    }
    
    .option-icon {
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
    }
}

