/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100%;
    position: relative;
}

/* 头部样式 */
.header {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 导航栏样式 */
.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffd700;
}

/* 主要内容区域 */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
    width: 100%;
    position: relative;
}

/* 页脚样式 */
.footer {
    background: #1e3c72;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 1rem;
    }
} 

/* 首页英雄区域样式 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.5rem;
}

/* 特色区域样式 */
.features {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h2 {
    padding: 1rem;
    font-size: 1.5rem;
    color: #1e3c72;
}

.feature-card p {
    padding: 0 1rem 1rem;
    color: #666;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
} 

/* 子页面通用样式 */
.page-header {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), url('../images/page-header-bg.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 3rem;
}

.page-header-content {
    max-width: 800px;
    padding: 0 1rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 文章卡片样式 */
.article-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-card h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin: 1rem 0;
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.grid-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-item-content {
    padding: 1.5rem;
}

.grid-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.grid-item p {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .page-header {
        height: 200px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .article-card h2 {
        font-size: 1.5rem;
    }

    .article-card img {
        height: 200px;
    }
} 

/* 概况页面时间轴布局 */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #1e3c72;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 自然风光瀑布流布局 */
.waterfall {
    column-count: 3;
    column-gap: 2rem;
    padding: 2rem;
}

.waterfall-item {
    break-inside: avoid;
    margin-bottom: 2rem;
}

.waterfall-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* 人文历史横向滚动布局 */
.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
}

.scroll-item {
    display: inline-block;
    width: 300px;
    margin-right: 2rem;
    white-space: normal;
    vertical-align: top;
}

.scroll-item:last-child {
    margin-right: 0;
}

/* 美食特产卡片网格布局 */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.food-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}

.food-card:hover {
    transform: translateY(-10px);
}

.food-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.food-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

/* 旅游攻略手风琴布局 */
.accordion {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.accordion-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.accordion-header {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    background: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: none;
    overflow: visible;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }

    .timeline-item {
        width: 100%;
        padding-left: 4rem;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .waterfall {
        column-count: 1;
    }

    .scroll-container {
        padding: 1rem 0;
    }

    .scroll-item {
        width: 250px;
    }

    .food-grid {
        grid-template-columns: 1fr;
    }
} 

/* 季节网格布局 */
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.season-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.season-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.season-item h3 {
    margin: 15px 0 10px;
    color: #333;
}

/* 交通网格布局 */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.transport-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transport-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.transport-item h3 {
    margin: 15px 0 10px;
    color: #333;
}

.transport-item ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.transport-item li {
    margin: 5px 0;
    color: #666;
}

/* 住宿网格布局 */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.hotel-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hotel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.hotel-item h3 {
    margin: 15px 0 10px;
    color: #333;
}

.hotel-item ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.hotel-item li {
    margin: 5px 0;
    color: #666;
}

/* 景点网格布局 */
.spot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.spot-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.spot-item h3 {
    margin: 15px 0 10px;
    color: #333;
}

.spot-item ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.spot-item li {
    margin: 5px 0;
    color: #666;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .season-grid,
    .transport-grid,
    .hotel-grid,
    .spot-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header h2 {
        font-size: 1.2rem;
    }

    .accordion-content {
        padding: 15px;
    }
} 

/* 景点卡片网格布局 */
.scenery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.scenery-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scenery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scenery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scenery-card-content {
    padding: 1.5rem;
}

.scenery-card-content h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.scenery-card-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    border-radius: 15px;
    position: relative;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1e3c72;
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.modal-text {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.modal-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.modal-info h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.modal-info ul {
    list-style: none;
    padding: 0;
}

.modal-info li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .scenery-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 1rem;
    }
    
    .modal-cover {
        height: 250px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
} 

/* 景点详情页样式 */
.scenery-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.scenery-cover {
    width: 100%;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 15px;
    overflow: hidden;
}

.scenery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scenery-intro,
.scenery-info,
.scenery-culture {
    margin-bottom: 3rem;
}

.scenery-intro h2,
.scenery-info h2,
.scenery-culture h2,
.scenery-gallery h2,
.scenery-related h2 {
    color: #1e3c72;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.scenery-intro p,
.scenery-culture p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.scenery-info ul {
    list-style: none;
    padding: 0;
}

.scenery-info li {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.scenery-info strong {
    color: #1e3c72;
    margin-right: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-item {
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-item h3 {
    padding: 1rem;
    text-align: center;
    color: #1e3c72;
    font-size: 1.2rem;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .scenery-cover {
        height: 300px;
    }

    .scenery-intro h2,
    .scenery-info h2,
    .scenery-culture h2,
    .scenery-gallery h2,
    .scenery-related h2 {
        font-size: 1.5rem;
    }

    .gallery-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }
} 

/* 文化页面布局 */
.culture-section {
    margin: 2rem 0;
    padding: 2rem 0;
    position: relative;
}

.culture-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.culture-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.culture-section {
    margin-bottom: 40px;
}

.culture-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.culture-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.culture-item:hover {
    transform: translateY(-5px);
}

.culture-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.culture-content {
    padding: 20px;
}

.culture-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.culture-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

