/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #2c5fa8 0%, #1a3d7a 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 主内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 页面样式 */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页样式 */
.hero {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* 特色功能样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #2c5fa8;
}

/* CTA按钮样式 */
.cta-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #6a9fb5 0%, #2c5fa8 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 40px;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.cta-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: scale(1.05);
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c5fa8;
}

.page-header h2 {
    color: #2c5fa8;
    font-size: 2rem;
}

/* 景点展示样式 */
#map-container {
    height: 300px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#baidu-map {
    width: 100%;
    height: 100%;
}

.attractions-list {
    margin-bottom: 30px;
}

.attraction-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.attraction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.attraction-item h3 {
    color: #2c5fa8;
    margin-bottom: 10px;
}

.attraction-detail {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.attraction-detail h3 {
    color: #2c5fa8;
    margin-bottom: 15px;
}

.attraction-detail p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.navigation-button {
    background: linear-gradient(135deg, #2c5fa8 0%, #4a90e2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 95, 168, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navigation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 168, 0.4);
    background: linear-gradient(135deg, #1e4a8c 0%, #3a7bc8 100%);
}

.navigation-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 95, 168, 0.3);
}

.navigation-button::before {
    content: '🧭';
    font-size: 18px;
}

/* 文化内容样式 */
.culture-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.culture-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.culture-section img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

.culture-section h3 {
    color: #2c5fa8;
    margin-bottom: 15px;
}

/* 活动公告样式 */
.events-list {
    margin-bottom: 40px;
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5fa8;
}

.event-date {
    color: #ff6b6b;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-card h3 {
    color: #2c5fa8;
    margin-bottom: 10px;
}

/* 活动日历样式 */
.events-calendar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.calendar-item {
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* 活动详情样式 */
.event-detail {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.event-detail h3 {
    color: #2c5fa8;
    margin-bottom: 15px;
}

.event-detail p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.event-detail ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.event-detail li {
    line-height: 1.6;
}

/* 文化详情样式 */
.culture-detail {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.culture-detail h3 {
    color: #2c5fa8;
    margin-bottom: 15px;
}

.culture-detail p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.culture-detail h4 {
    color: #2c5fa8;
    margin-top: 20px;
    margin-bottom: 10px;
}

.culture-detail ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.culture-detail li {
    line-height: 1.6;
}

.event-link {
    color: #2c5fa8;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1a3d7a 0%, #2c5fa8 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.6rem;
    }
    
    .attractions-grid,
    .culture-content {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .hero {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .attraction-card,
    .culture-section {
        padding: 15px;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* 按钮焦点样式优化 */
button:focus {
    outline: 2px solid #2c5fa8;
    outline-offset: 2px;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5fa8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
