/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#success-message { color: #0ea303; }
#total-count { color: red; }
#today-count { color: red; }
/* CSS变量定义 */
:root {
    /* 颜色变量 */
    --primary: #B90000;
    --secondary: #8B0000;
    --gold: #C9A55C;
    --lightGold: #E6C87A;
    --darkGold: #000000;
    --bgBrown: #ddcfae;
    --white: #FFFFFF;
    --black: #000000;
    --transparentBlack: rgba(0, 0, 0, 0.5);
    --transparentBlack2: rgba(0, 0, 0, 0.8);
    
    /* 旋转图标参数 */
    --rotate-icon-size: 146px;
    --rotate-icon-top-offset: 71px;
    --rotate-icon-left-offset: 71px;
    --rotate-icon-animation-duration: 0.6s;
    --rotate-icon-hover-rotation: 10deg;
    --rotate-icon-hover-translate-x: 5px;
    --rotate-icon-hover-translate-y: -9px;
    
    /* 下载按钮参数 */
    --btn-height-mobile: 5rem;
    /* --btn-height-desktop: 6rem; */
    --btn-animation-duration: 0.8s;
    
    /* Logo参数 */
    --logo-size: clamp(15rem, 37vw, 60rem);
    
    /* 通用间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* 动画时间 */
    --transition-fast: 0.3s;
    --transition-normal: 0.5s;
    --transition-slow: 0.8s;
}

/* 基础样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #ddc4ae4d;
    background-image: url("../images/bg-body.png");
    background-position: center top;
    line-height: 1.6;
    color: var(--darkGold);
    min-height: 100vh;
}

/* 主要内容区域上边距 - 避免被固定导航遮挡 */
main {
    /* margin-top: 120px; */ /* 为固定导航栏留出空间 */
}

/* 容器样式 */
.container {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    /* padding: 0 1rem; */
}

/* 文本样式 */
.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* 背景纹理 */
.bg-texture {
    background-color: var(--bgBrown);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D9CCB2' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 按钮发光效果 */
.btn-glow {
    box-shadow: 0 0 15px rgba(201, 165, 92, 0.7);
    transition: all var(--transition-normal) ease;
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(201, 165, 92, 0.9);
    transform: translateY(-2px);
}

/* 龙浮动动画 */
.dragon-animation {
    animation: dragonFloat 6s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 隐藏滚动条 */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 图片查看器样式 */
#imageViewer {
    z-index: 9999;
}

.image-viewer-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(0 0 0 / 77%);
    overflow: visible;
}

.image-viewer-container img {
    object-fit: contain;
    max-height: 90%;
}

/* 使用图片替换文本按钮 */
.image-viewer-prev,
.image-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgb(0 0 0 / 0%);
    border: none;
    /* border-radius: 50%; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10; /* 确保按钮在所有图片上方 */
    user-select: none;
}

.image-viewer-prev {
    left: 20px;
    background-image: url('../images/01.png');
    background-size: cover;
    background-position: center;
}

.image-viewer-next {
    right: 20px;
    background-image: url('../images/02.png');
    background-size: cover;
    background-position: center;
}

.image-viewer-prev:hover,
.image-viewer-next:hover {
    /* background-color: rgba(0, 0, 0, 0.8); */
    transform: translateY(-50%) scale(1.1);
}

/* 优化右上角关闭按钮样式 */
.md-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 15; /* 确保在所有元素上方 */
}

.md-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 移动设备上关闭按钮居中显示 */
@media (max-width: 768px) {
    .md-close {
        top: auto;
        right: auto;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .md-close:hover {
        transform: translateX(-50%) scale(1.1);
    }
}

.tchdp {
         /* width: 85%; */
         /* height: auto; */
} 

/* 图片索引信息 */
.image-viewer-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    user-select: none;
    z-index: 10;
}

/* 3D轮播效果样式 */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.carousel-items {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* 中央图片 (最主要的) */
.carousel-item.active {
    transform: translateZ(0);
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
}

/* 右侧第一张图片 */
.carousel-item.next-1 {
    transform: translateX(30%) translateZ(-100px) scale(0.8);
    opacity: 0.6;
    z-index: 4;
}

/* 右侧第二张图片 */
.carousel-item.next-2 {
    transform: translateX(60%) translateZ(-200px) scale(0.6);
    opacity: 0.3;
    z-index: 3;
}

/* 左侧第一张图片 */
.carousel-item.prev-1 {
    transform: translateX(-30%) translateZ(-100px) scale(0.8);
    opacity: 0.6;
    z-index: 4;
}

/* 左侧第二张图片 */
.carousel-item.prev-2 {
    transform: translateX(-60%) translateZ(-200px) scale(0.6);
    opacity: 0.3;
    z-index: 3;
}

/* 头部导航栏样式 */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(247, 243, 233, 0.9);
    border-bottom: 1px solid rgba(201, 165, 92, 0.3);
    backdrop-filter: blur(4px);
    transition: all var(--transition-fast) ease;
    background-image: url(../images/topbg.png);
    background-size: cover;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 2rem;
    width: auto;
}

.main-nav {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-link {
    color: var(--darkGold);
    font-weight: bold;
    text-decoration: none;
    margin: 0 2rem;
    transition: color var(--transition-fast) ease;
    text-align: center;
    display: inline-block;
    width: auto;
}

.nav-link:hover {
    color: var(--gold);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--darkGold);
    font-size: 2.1rem;
    cursor: pointer;
    padding: 0.5rem;
}

.utility-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.function-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.function-btn {
    background: none;
    border: none;
    color: var(--darkGold);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
}

.function-btn:hover {
    color: var(--gold);
}

.game-list-container {
    position: relative;
}

.game-list-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--darkGold);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: color var(--transition-fast) ease;
}

.game-list-btn:hover {
    color: var(--gold);
}

.game-list-text {
    display: none;
    margin-left: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
}

.game-list-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: var(--bgBrown);
    border: 1px solid rgba(201, 165, 92, 0.3);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
}

.dropdown-content {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--darkGold);
    text-decoration: none;
    transition: all var(--transition-fast) ease;
}

.dropdown-item:hover {
    background-color: rgba(201, 165, 92, 0.1);
    color: var(--gold);
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid rgba(201, 165, 92, 0.2);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--darkGold);
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-fast) ease;
}

.mobile-nav-link:hover {
    color: var(--gold);
}

/* 英雄区域样式 */
.hero-section {
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50C50 22.3858 27.6142 0 0 0V100H50C50 72.3858 72.3858 50 100 50V0H50Z' fill='%23EBE3D1' fill-opacity='0.4'/%3E%3C/svg%3E"); */
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    /* background-image: url("../images/bg-body.png"); */
    background-size: cover;
    background-position: center;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, transparent, rgba(247, 243, 233, 0.8)); */
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    margin: 0 auto;
    padding: 0rem 1rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 2rem; */
}

.main-logo {
    max-width: 100%;
    height: auto;
    width: var(--logo-size);
    margin-top: 2rem;
}

.subtitle-section {
    margin-bottom: 3.4rem;
    text-align: center;
}

.divider {
    width: 8rem;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 1rem;
}
.divider1 {color: #C9A55C;font-family: 'SimHei', '黑体';font-size: clamp(0.8rem, 2.8vw, 1.3rem);margin-bottom: clamp(8px, 2vw, 15px);background-image: url('../images/adimg.png');background-size: 470px;/* background-position: center; */background-position: 82px 0px;background-repeat: no-repeat;padding: 70px  0px 40px  10px;width: 100%;max-width: 600px;/* 跨浏览器兼容替代aspect-ratio: 5/1 */height: 0;/* padding-bottom: 20%; *//* 5/1的宽高比，即高度是宽度的20% */display: flex;align-items: center;/* 调整为垂直居中对齐 */justify-content: center;overflow: hidden;/* padding-bottom: 15px; */margin: 0 auto;/* padding-right: 11px; */}

.subtitle {
    color: var(--darkGold);
    font-size: 1.125rem;
    /* font-weight: bold; */
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.download-button-container {
    position: relative;
    margin-left: 0rem;
}

.download-link {
    display: block;
    position: relative;
}

.rotate-icon-container {
    position: absolute;
    width: var(--rotate-icon-size);
    height: var(--rotate-icon-size);
    top: calc(-1 * var(--rotate-icon-top-offset));
    left: calc(-1 * var(--rotate-icon-left-offset));
    transition: transform var(--rotate-icon-animation-duration) ease;
}

.rotate-icon {
    width: 100%;
    height: 100%;
}

.download-link:hover .rotate-icon-container {
    transform: rotate(var(--rotate-icon-hover-rotation)) 
               translate(var(--rotate-icon-hover-translate-x), var(--rotate-icon-hover-translate-y));
}

.game-download-btn {
    position: relative;
}

.download-btn-default,
.download-btn-hover {
    height: var(--btn-height-mobile);
    transition: opacity var(--btn-animation-duration) ease;
}

.download-btn-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.download-link:hover .download-btn-default {
    opacity: 0;
}

.download-link:hover .download-btn-hover {
    opacity: 1;
}

.download-info {
    margin-bottom: 2rem;
    text-align: center;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.info-text {
    color: #141313;
    margin-bottom: 0rem;
    font-weight: 900;
    font-size: x-large;
    font-family: "Microsoft YaHei", sans-serif;
}

.info-text-bold {
    color: #141313;
    font-weight: 900;
    font-size: x-large;
    font-family: "Microsoft YaHei", sans-serif;
}

.age-warning {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    justify-content: center;
}

.age-image {
    height: 2.5rem;
}

/* 公益足迹样式 */
.charity-section {
    width: 100%;
    max-width: 1288px;
    margin: 0 auto;
}

.charity-title {
    font-size: 1.5rem;
    color: var(--darkGold);
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.charity-content {
    width: 100%;
    max-width: 1288px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(201, 165, 92, 0.3);
}

.charity-wrapper {
    display: flex;
}

.timeline-navigation {
    display: block;
    width: 15%;
    min-width: 150px;
    max-height: 424px; /* 精确设置高度，确保只显示5个时间点 */
    overflow-y: auto; /* 允许垂直滚动 */
    padding: 1rem;
    /* 隐藏滚动条但保持功能 */
    -ms-overflow-style: none; /* IE和Edge */
    scrollbar-width: none; /* Firefox */
}

/* 隐藏Chrome滚动条 */
.timeline-navigation::-webkit-scrollbar {
    display: none;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
    border-left: 2px solid rgba(201, 165, 92, 0.5);
}

.timeline-item {
    position: relative;
    margin: 0rem 0rem 1.5rem 0rem;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
}

.timeline-item:hover {
    transform: translateX(0.5rem);
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 9px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid rgba(201, 165, 92, 0.5);
    transition: all var(--transition-fast) ease;
}

.timeline-dot.active {
    background-color: var(--gold);
    border-color: var(--white);
}

.timeline-date {
    color: var(--darkGold);
    font-weight: 500;
    transition: all var(--transition-fast) ease;
    min-width: 100px;
}

.timeline-item:hover .timeline-date {
    transform: scale(1.25);
    color: var(--primary);
}

.timeline-label {
    color: rgba(158, 122, 44, 0.7);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.charity-images {
    padding: 0.5rem;
    flex: 1;
}





/* 页脚样式 */
.footer {
    background-color: rgba(158, 122, 44, 0.1);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(201, 165, 92, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-image {
    /* height: 6rem; */
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--darkGold);
    text-decoration: none;
    transition: color var(--transition-fast) ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-divider {
    color: var(--darkGold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 6.5rem;
    height: 2.5rem;
    /* background-color: rgba(185, 0, 0, 0.1); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--darkGold);
    transition: background-color var(--transition-fast) ease;
}

.social-link:hover {
    background-color: rgba(185, 0, 0, 0.2);
}

.footer-text {
    color: var(--darkGold);
    font-size: 0.875rem;
}

.footer-info {
    margin-bottom: 0.5rem;
}

.footer-copyright {
    margin-top: 1.5rem;
}

/* 响应式设计 */

/* 小屏幕设备 (767px以下) */
@media (max-width: 767px) {
    /* 显示手机端导航，隐藏桌面端导航 */
    .mobile-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .header-content {
        display: none !important;
    }
    
    .timeline-date {
        font-size: 0.575rem;
        /* 添加最小宽度确保日期文字不换行 */
        min-width: 4rem;
        white-space: nowrap;
    }
    
    /* 时间线消失时，走马灯宽度占100% */
    .tchdp {
        width: 100%;
    }
    
    /* 手机端导航链接悬停效果 */
    .nav-link-mobile:hover {
        color: var(--gold);
    }
    
    /* 移动端菜单按钮样式 */
    .mobile-menu-btn {
        /* font-size: 1.5rem; */
        padding: 0.5rem 1rem;
    }
}

/* 平板设备 (768px以上) */
@media (min-width: 768px) {
    .logo-image {
        height: 2.5rem;
    }
    
    .main-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .game-list-text {
        display: inline;
    }
    
    .download-btn-default,
    .download-btn-hover {
        height: var(--btn-height-desktop);
    }
    
    .charity-title {
        font-size: 2rem;
    }
    
    .timeline-navigation {
        display: block;
    }
    
    .age-image {
        height: 3rem;
    }
}

/* 桌面设备 (1024px以上) */
@media (min-width: 1024px) {
    .charity-title {
        font-size: 2rem;
    }
}

/* 平板设备 (768px以上) - 隐藏手机端导航 */
@media (min-width: 768px) {
    .mobile-header {
        display: none !important;
    }
}

/* 手机端导航链接样式 */
.nav-link-mobile {
    color: var(--darkGold);
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-fast) ease;
    flex: 1;
    text-align: center;
}

/* 大型桌面设备 (1200px以上) */
@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
}

/* 手机端导航容器基础样式 */
.mobile-header {
    background-color: #ddcfaea8;
    /* padding: 0.5rem 1rem; */
    border-bottom: 1px solid var(--gold);
    position: relative;
    z-index: 1000;
    background-image: url(images/topbg.png);
    background-size: cover;
}

/* 手机端Logo区域样式 */
.mobile-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

/* 手机端Logo图片样式 */
.mobile-logo {
    height: 40px;
    margin-right: 10px;
}

/* 手机端Logo文字样式 */
.mobile-logo-text {
    color: #000000;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-main);
}

/* 手机端导航行样式 */
.mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px; /* 进一步降低导航栏高度 */
}

/* 手机端导航链接容器样式 */
.mobile-nav-links {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

/* 手机端下拉菜单样式 */
.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bgBrown);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 1rem 0;
    z-index: 1000;
    display: none;
}

/* 显示下拉菜单的样式 */
.mobile-dropdown-menu.active {
    display: block;
}

/* 下拉菜单链接样式 */
.mobile-dropdown-link {
    display: block;
    color: var(--darkGold);
    font-weight: bold;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    transition: background-color var(--transition-fast) ease, color var(--transition-fast) ease;
}

/* 下拉菜单链接悬停效果 */
.mobile-dropdown-link:hover {
    background-color: rgba(218, 165, 32, 0.1);
    color: var(--gold);
}

/* 最后一个下拉菜单链接没有底边框 */
.mobile-dropdown-link:last-child {
    border-bottom: none;
}

/* 确保导航链接行在手机上的紧凑布局 */
@media (max-width: 480px) {
    .nav-link-mobile {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
    
    .mobile-menu-btn {
        /* font-size: 1.3rem; */
        padding: 0.05rem 0.75rem;
        margin-bottom: 0.3rem;
    }
}

 /* 统计数据区域样式 */
        .stats-section {
            background-color: rgb(118 78 49);
            padding: 20px;
            border-radius: 10px;
            margin: 20px auto;
            max-width: 600px;
            color: #fff;
            text-align: center;
        }
        
        .stats-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: #f6eebb;
        }
        
        .stats-content {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
        }
        
        .stat-item {
            margin: 10px;
            text-align: center;
        }
        
        /* 预约板块样式 */
        .appointment-section {
            background-color: rgb(118 78 49);
            padding: 20px;
            border-radius: 10px;
            margin: 10px auto 30px;
            max-width: 1288px;
            color: #fff;
        }
        
        .appointment-title {
            font-size: 24px;
            margin-bottom: 20px;
            color: #fbefba;
            text-align: center;
        }
        
        .time-slots-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }
        
        .time-slot {
            background-color: #895016;
            padding: 12px 20px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 120px;
        }
        
        .time-slot:hover {
            background-color: #b52b05;
            transform: translateY(-2px);
        }
        
        .time-slot.booked {
            background-color: #7f8c8d;
            cursor: not-allowed;
        }
        
        .time-slot.booked:hover {
            transform: none;
        }
        
        .time-text {
            font-size: 22px;
            margin-bottom: 0px;
        }
        
        .booking-count {
            font-size: 12px;
            color: #f39c12;
        }
        
        .appointment-info {
                margin: 10px;
            text-align: center;
            font-size: 14px;
            color: #95a5a6;
        }
        
        .appointment-message {
            margin-top: 15px;
            padding: 10px;
            border-radius: 5px;
            text-align: center;
            display: none;
        }
        
        .appointment-message.success {
            background-color: rgba(46, 204, 113, 0.3);
            color: #2ecc71;
            display: block;
        }
        
        .appointment-message.error {
            background-color: rgba(231, 76, 60, 0.3);
            color: #e74c3c;
            display: block;
        }
        
        /* 错误状态的模态框样式 */
        .modal.error .modal-header {
            background-color: #e74c3c;
        }
        
        .modal.error .modal-header h2 {
            color: white;
        }
        
        .modal.error .modal-body {
            background-color: #fadbd8;
        }
        
        .modal.error #success-message {
            color: #c0392b;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .stats-content {
                flex-direction: column;
            }
            
            .time-slot {
                min-width: 100px;
                padding: 10px 15px;
            }
            
            /* 模态框移动端优化 */
            .modal-content {
                margin: 25% auto; /* 在移动端增加上边距 */
                width: 90%; /* 在移动端使用更宽的百分比 */
                padding: 15px; /* 减少内边距以适应小屏幕 */
            }
            
            .modal-header h2 {
                font-size: 18px; /* 调整标题大小 */
                margin: 0;
            }
            
            .modal-body {
                padding: 15px 0;
            }
            
            .modal-body p {
                font-size: 14px;
                line-height: 1.5;
            }
            
            .btn.btn-primary {
                padding: 10px 20px;
                font-size: 14px;
                width: 100%; /* 按钮在移动端全屏显示 */
            }
        }
        
        /* 小型手机设备优化 */
        @media (max-width: 480px) {
            .modal-content {
                margin: 35% auto; /* 在小型手机上进一步增加上边距 */
                width: 95%; /* 几乎全屏宽度 */
            }
        }
		
		
     
        .stats-container {
            display: flex;
            justify-content: space-around;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }
        .stat-item {
            text-align: center;
            padding: 20px;
            background-color: #f9f9f9;
            border-radius: 8px;
            margin: 10px;
            flex: 1;
            min-width: 200px;
        }
     
        .stat-label {
            font-size: 16px;
            color: #666;
        }
        .buttons-container {
            display: none; /* 默认隐藏，直到JavaScript准备好数据 */
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            
            margin-left: auto;
            margin-right: auto;
        }
        
        .buttons-container.ready {
            display: flex; /* 数据准备好后显示 */
        }
        .btn {
            padding: 12px 15px;
            font-size: 14px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
            text-align: center;
            flex: 0 0 calc(25% - 10px);
            max-width: calc(25% - 10px);
        }
        .btn-primary {
            background-color: #4CAF50;
            color: white;
        }
        .btn-primary:hover {
            background-color: #45a049;
        }
        .btn-secondary {
            background-color: #cccccc;
            color: #666666;
        }
        

        
        /* 时间段div样式 */
        .time-slot {
            padding: 12px 15px;
            font-size: 14px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 140px;
            text-align: center;
            flex: 0 0 calc(25% - 10px);
            max-width: calc(25% - 10px);
            /*background-color: #4CAF50;*/
            color: white;
            user-select: none;
        }
        
        .time-slot:hover {
            background-color: #be752a;
            transform: translateY(-2px);
        }
        
        .time-slot.booked {
            background-color: #452502;
            color: #666666;
            cursor: not-allowed;
            transform: none;
        }
        
        .time-text {
            font-weight: bold;
            margin-bottom: 4px;
        }
        
        .booking-count {
            font-size: 12px;
            opacity: 0.9;
        }
        .btn-success {
            background-color: #4CAF50;
            color: white;
        }
        .btn.appointed {
            cursor: not-allowed;
        }
        .appointment-count {
            text-align: center;
            margin-top: 20px;
            font-size: 24px;
            font-weight: bold;
            color: #28a745;
        }
        .footer {
            margin-top: auto;
            padding: 20px;
            text-align: center;
            color: #666;
            font-size: 14px;
        }
        /* 模态框样式 - 增加z-index以确保在所有设备上可见 */
        .modal {
            display: none; /* 默认隐藏 */
            position: fixed;
            z-index: 9999999; /* 使用更高的z-index值，确保覆盖所有其他元素 */
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.4);
            -webkit-backdrop-filter: blur(3px); /* Safari支持 */
            backdrop-filter: blur(3px);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 2px solid #28a745;
            width: 80%;
            max-width: 500px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0,0,0,0.2);
            -webkit-transform: translateZ(0); /* 硬件加速 */
            transform: translateZ(0);
            -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
            outline: none; /* 移除焦点轮廓 */
        }
        .modal-header {
            padding: 10px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modal-header h2 {
            margin: 0;
            color: #28a745;
        }
        .modal-body {
            padding: 20px;
        }
        .modal-footer {
            padding: 10px;
            border-top: 1px solid #eee;
            text-align: right;
        }
        .close-btn {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        .close-btn:hover,
        .close-btn:focus {
            color: #000;
            text-decoration: none;
            cursor: pointer;
        }
        @media (max-width: 768px) {
            .btn {
                flex: 0 0 calc(33.333% - 10px);
                max-width: calc(33.333% - 10px);
            }
			
			
			.divider1{
        background-image: url(../images/adimg.png);
        background-size: 21rem;
        background-position: 1.5rem 1.4rem;
            }
        }
        
        @media (max-width: 480px) {
            .stats-container {
                flex-direction: column;
            }
            .stat-item {
                margin: 10px 0;
            }
            .buttons-container {
                width: 100%;
            }
            .btn {
                flex: 0 0 calc(50% - 10px);
                max-width: calc(50% - 10px);
            }
        }
		
 #zmd {/* background: #000; */overflow: hidden;/* border: 0px dashed #CCC; *//* width: 1070px; *//* margin-bottom: 20px; */}
        #zmd img {border: 3px solid #00000000;transition: transform 0.3s ease;}
        #zmd img:hover {transform: scale(1.1);}
        #inzmd {float: left;width: 5800%;}
        #zmd1 {float: left;}
        #zmd2 {float: left;}
        
        /* QQ按钮自定义Tooltip样式 */
        .social-link {
            position: relative;
            display: inline-block;
            padding: 0.5rem;
            border-radius: 4px;
            color: var(--darkGold);
            text-decoration: none;
            transition: color var(--transition-fast) ease;
        }
        
        .social-link:hover {
            color: var(--gold);
        }
        
        /* Tooltip样式 - 使用与截图相同的颜色 */
        .social-link[title]:hover::after {
            content: attr(title);
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            color: #8B0000;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 14px;
            white-space: nowrap;
            z-index: 1000;
            margin-top: 5px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            font-weight: bold;
        }
        
        /* 箭头样式 */
        .social-link[title]:hover::before {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-bottom-color: #ffd700;
            margin-top: -5px;
            z-index: 1001;
        }

/* 加载状态指示器样式 */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    font-size: 16px;
    color: #666;
    animation: pulse 1.5s ease-in-out infinite;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* 错误消息样式 */
.error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    font-size: 16px;
    color: #e74c3c;
    padding: 20px;
    text-align: center;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* 预约按钮加载状态样式 */
.buttons-container.loading {
    position: relative;
}

/* 优化滚动性能 */
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 减少布局抖动 */
.time-slot {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 懒加载优化 - 确保内容渐进式显示 */
.hero-section, .appointment-section, .download-section {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}
/* ===== 公益足迹优化样式 ===== */
.charity-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.95;
}

.charity-image:hover {
    transform: scale(1.08);
    opacity: 1;
}

.charity-image.loaded {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* 优化滚动容器性能 */
#zmd, #inzmd, #zmd1, #zmd2 {
    transform: translateZ(0);
    will-change: transform;
}

/* 加载状态指示器 */
.charity-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.charity-loading::before {
    content: "⚡";
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
/* ============================================================================
 * 预约系统优化样式 - 每日预约功能专用
 * 添加时间：2024年
 * 功能：优化预约按钮的视觉效果和用户体验
 * ============================================================================

/* 优化已预约按钮的视觉效果 */
.time-slot.booked {
    background-color: #452502;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
    position: relative;
    transition: all 0.3s ease;
}

/* 添加"已预约"标识 */
.time-slot.booked::after {
    content: "✓ 今日已约";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: #4CAF50;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 10px;
    z-index: 1;
}

/* 成功消息样式优化 */
.appointment-message.success {
    background-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    display: block;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    border: 1px solid #2ecc71;
    font-weight: bold;
    animation: fadeInUp 0.5s ease;
}

/* 加载状态优化 */
.buttons-container.loading::before {
    content: "🔄 加载中...";
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    width: 100%;
}

/* 新的一天状态提示 */
.buttons-container.fresh-day::before {
    content: "🎉 新的一天开始了！现在可以预约";
    display: block;
    text-align: center;
    padding: 10px;
    color: #27ae60;
    font-weight: bold;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

/* 淡入向上动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 脉冲动画用于新的一天提示 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .time-slot.booked::after {
        font-size: 8px;
        top: 3px;
        right: 3px;
        padding: 1px 4px;
    }
    
    .appointment-message.success {
        padding: 10px;
        font-size: 14px;
    }
}

/* 隐藏时间轴 */
.timeline-navigation {
    display: none !important;
}

/* 调整装备展示区域宽度 */
.charity-wrapper {
    justify-content: center !important;
}

.tchdp {
    width: 100% !important;
    max-width: 1200px !important;
}

/* 添加提示文字样式 */
.equipment-notice {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    border: 2px solid #d4af37;
    font-size: 16px;
    color: #8B4513;
    font-weight: bold;
}
/* ===== 装备展示区域高度调整 ===== */

/* 调整整个慈善区域的最小高度 */
.charity-section {
    width: 100%;
    max-width: 1288px;
    margin: 0 auto;
    min-height: 450px; /* 增加整体区域高度 */
}

/* 调整内容区域高度 */
.charity-content {
    width: 100%;
    max-width: 1288px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 1.5rem; /* 增加内边距 */
    border: 1px solid rgba(201, 165, 92, 0.3);
    min-height: 380px; /* 设置最小高度 */
}

/* 调整滚动容器高度 */
#zmd {
    overflow: hidden;
    height: 300px; /* 显著增加滚动区域高度 */
    background: rgba(0, 0, 0, 0.03); /* 添加轻微背景色 */
    border-radius: 8px; /* 圆角 */
    padding: 10px 0; /* 上下内边距 */
}

/* 调整图片尺寸，使其更大气 */
#zmd img {
    border: 3px solid #00000000;
    transition: transform 0.3s ease;
    height: 280px; /* 增加图片高度 */
    width: auto;
    object-fit: cover;
    border-radius: 6px; /* 图片圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    margin: 0 8px; /* 图片间距 */
}

/* 图片悬停效果增强 */
#zmd img:hover {
    transform: scale(1.15); /* 增大悬停缩放效果 */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增强阴影 */
    z-index: 10; /* 确保悬停图片在最上层 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .charity-section {
        min-height: 350px;
    }
    
    .charity-content {
        min-height: 300px;
        padding: 1rem;
    }
    
    #zmd {
        height: 220px;
    }
    
    #zmd img {
        height: 200px;
    }
}