* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 头部滚动图片区域 */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0;
    display: block;
}

.carousel-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    flex-shrink: 0;
    position: relative;
    will-change: transform;
}

/* 确保一屏仅显示一张 */
.carousel-container {
    overflow: hidden;
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-slide {
    height: 100%;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    /* 宽度将通过JavaScript动态设置 */
}

.carousel-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
    outline: none;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播图动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* 功能导航网格 */
.nav-grid {
    background: white;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 5px;
    border-radius: 12px;
    min-height: 75px;
}

.icon-container {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.nav-icon {
    width: 50px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.nav-label {
    font-size: 14px;
    color: #333;
    text-align: center;
    margin-top: 3px;
    line-height: 1.3;
    font-weight: 500;
}

/* 运营时间横幅 */
.hours-banner {
    padding: 0 20px 20px 20px;
}

.hours-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hours-image {
    width: 100%;
    height: auto;
    display: block;
}

.hours-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hours-title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hours-info {
    position: absolute;
    left: 40px;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
   
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hours-day {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.hours-time {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
}

.hours-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 5px;
}

/* 在线选票按钮 */
.ticket-button-section {
    padding: 0 20px 20px 20px;
}

.ticket-button {
    width: 100%;
    background: linear-gradient(135deg, #e0c48b, #d4b77c 50%, #cbad71 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.ticket-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.ticket-button:hover::before {
    left: 100%;
}

.ticket-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.ticket-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ticket-button i {
    font-size: 20px;
    color: #333;
}

.ticket-button span {
    font-weight: 600;
    letter-spacing: 1px;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 10px;
    min-height: 60px;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    color: #667eea;
}

 

.nav-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 20px 25px;
    }
    
    .grid-item {
        padding: 12px 8px;
        min-height: 80px;
    }
    
    .icon-container {
        width: 55px;
        height: 55px;
    }
    
    .nav-icon {
        width: 55px;
        height: 42px;
    }
    
    .hours-banner {
        padding: 0 15px 15px 15px;
    }
    
    .ticket-button-section {
        padding: 0 15px 15px 15px;
    }
    
    .ticket-button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .ticket-button i {
        font-size: 18px;
    }
    
    .hours-info {
        left: 51px;
        right: 15px;
        top: 67px;
    }
    
    .hours-info span {
        font-size: 18px !important;
    }
    
    .hours-info span span {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 18px 22px;
    }
    
    .grid-item {
        padding: 10px 6px;
        min-height: 70px;
    }
    
    .icon-container {
        width: 50px;
        height: 50px;
    }
    
    .nav-icon {
        width: 50px;
        height: 38px;
    }
    
    .hours-banner {
        padding: 0 10px 10px 10px;
    }
    
    .ticket-button-section {
        padding: 0 10px 10px 10px;
    }
    
    .ticket-button {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .ticket-button i {
        font-size: 16px;
    }
    
    .hours-info span {
        font-size: 16px !important;
    }
    
    .hours-info span span {
        font-size: 13px !important;
    }
    
    .bottom-nav {
        padding: 8px 0;
    }
    
    .nav-item {
        padding: 6px 12px;
        min-height: 55px;
    }
    
    
}

/* 页面加载动画 */
.grid-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }
.grid-item:nth-child(7) { animation-delay: 0.7s; }
.grid-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 触摸反馈效果 */
.grid-item,
.nav-item {
    -webkit-tap-highlight-color: transparent;
}

/* 滚动条样式 */
body::-webkit-scrollbar {
    width: 4px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 图片加载优化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* 确保图片在移动端正确显示 */
@media (max-width: 580px) {
    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 15px 18px;
    }
    
    .grid-item {
        padding: 6px 3px;
        min-height: 60px;
    }
    
    .icon-container {
        width: 42px;
        height: 42px;
        margin-bottom: 3px;
    }
    
    .nav-icon {
        width: 45px;
        height: 34px;
    }
    
    .nav-label {
        font-size: 13px;
    }
}

/* 简易模态框样式 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    width: min(92vw, 480px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.modal-body {
    padding: 16px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
