/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面加载动画 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

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

/* 全宽容器样式（用于热门景点） */
.full-width-container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
}

/* 平板设备（768px - 1199px） */
@media (max-width: 1199px) {
    .full-width-container {
        padding: 0 15px;
    }
}

/* 移动设备（767px以下） */
@media (max-width: 767px) {
    .full-width-container {
        padding: 0 10px;
    }
}

/* 小屏移动设备（480px以下） */
@media (max-width: 480px) {
    .full-width-container {
        padding: 0 5px;
    }
}

/* 导航栏样式 */
header {
    background-image: url('../images/top.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

header:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.logo h1 {
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* Logo图片样式 */
.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #e0f7fa;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 轮播图样式 */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    min-width: 300px;
    max-width: 90%;
    box-sizing: border-box;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 2rem;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: rgba(44, 90, 160, 0.8);
    backdrop-filter: blur(15px);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 景区简介样式 */
.intro {
    padding: 4rem 0;
    background-color: #fff;
}

.intro h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
}

.intro p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #f0f4f8;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.feature h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* 热门景点样式 */
.popular-attractions {
    padding: 4rem 0;
    background-color: #f8f8f8;
}

.popular-attractions h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.attraction-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.attraction-item:hover {
    transform: translateY(-5px);
}

.attraction-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.attraction-item h3 {
    padding: 1rem;
    color: #2c5aa0;
    font-size: 1.3rem;
}

.attraction-item p {
    padding: 0 1rem 1.5rem;
    color: #666;
}

/* 最新动态样式 */
.news {
    padding: 4rem 0;
    background-color: #fff;
}

.news h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-item {
    background-color: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-item p {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1a3d7a;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #2c5aa0;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background-color: #1a3d7a;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.footer-section ul {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 200px;
    padding-left: 0;
    margin: 0 auto;
}

.footer-section ul li {
    width: calc(50% - 0.2rem);
    margin: 0 0.1rem 0.1rem 0;
    text-align: center;
    box-sizing: border-box;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2c5aa0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* 通用页面样式 */
.page-header {
    background-color: #2c5aa0;
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 4rem 0;
    background-color: #fff;
}

/* 社交媒体样式 */
.social-media {
    margin: 3rem 0;
    text-align: center;
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-radius: 10px;
}

.social-header {
    margin-bottom: 2rem;
}

.social-header h3 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.social-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qrcode {
    margin-bottom: 1rem;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrcode img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.social-item p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .qrcode img {
        width: 120px;
        height: 120px;
    }
    
    .social-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* 关于我们页面样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 景点介绍页面样式 */
.attractions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 景点分类样式 */
.attraction-category {
    margin-bottom: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.attraction-category h2 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
}

.attraction-detail {
    background-color: #fff;
    padding: 1.5rem;
    flex-grow: 1;
}

.attraction-detail img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* 景点图片容器样式 */
.attraction-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.attraction-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attraction-image-container:hover img {
    transform: scale(1.05);
}

/* 景点标题样式 */
.attraction-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

/* 景点双列布局 */
.page-content .attractions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* 移除景点分类的额外样式 */
.attraction-category {
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: block;
    height: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-content .attractions-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
    }
    
    .attraction-title {
        font-size: 1.2rem;
        padding: 8px 12px;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .page-content .attractions-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 0;
    }
    
    .attraction-title {
        font-size: 1rem;
        padding: 6px 10px;
        bottom: 10px;
        left: 10px;
    }
}

/* 首页景点文章区域样式 */
.attraction-articles {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f0f4f8;
    border-radius: 8px;
}

.attraction-articles h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 文章项样式 */
.article-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-item h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-item h5 {
    color: #2c5aa0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-item p {
    color: #666;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-item .read-more {
    font-size: 0.9rem;
}

/* 文章列表中段落样式 */
.article-list p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

/* 文章元信息样式 */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.article-item .read-more {
    font-size: 0.9rem;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.article-list .read-more:hover {
    color: #1a3d7a;
    text-decoration: underline;
}

/* 旅游攻略页面样式 */
.travel-guide {
    max-width: 800px;
    margin: 0 auto;
}

.travel-guide h2 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.travel-guide h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.travel-guide p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.travel-guide ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.travel-guide ul li {
    margin-bottom: 0.5rem;
}

/* 导航地图样式 */
.map-container {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(44, 90, 160, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 280px;
    }
}

/* 新闻动态页面样式 */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-article {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.news-article h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 联系我们页面样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: #f0f4f8;
    border-radius: 8px;
}

.contact-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: #f0f4f8;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group button {
    background-color: #2c5aa0;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #1a3d7a;
}

/* 右下角透明视频样式 */
.tao-yuanming {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.tao-video {
    position: relative;
    width: auto;
    height: auto;
    display: inline-block;
    z-index: 999;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* 透明视频样式 - 基础样式 */
.transparent-video {
    width: 120px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: 3px solid rgba(44, 90, 160, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.5);
    transition: all 0.3s ease;
    display: block;
    opacity: 1;
    cursor: pointer;
    z-index: 999;
}

/* 视频较大尺寸样式 - 直接控制尺寸 */
.transparent-video.large-size {
    width: 220px;
    border-color: rgba(44, 90, 160, 1);
    box-shadow: 0 0 25px rgba(44, 90, 160, 0.7);
}

/* 视频悬停效果 */
.transparent-video:hover {
    transform: scale(1.05);
    border-color: rgba(44, 90, 160, 1);
    box-shadow: 0 0 25px rgba(44, 90, 160, 0.7);
}

/* 较大尺寸视频悬停效果 */
.transparent-video.large-size:hover {
    transform: scale(1.1);
}

/* 缩放控制按钮样式 */
.scale-control {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

/* 缩放控制按钮悬停效果 */
.scale-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    opacity: 1;
}

/* 声音控制按钮样式 */
.sound-control {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

/* 声音控制按钮悬停效果 */
.sound-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    opacity: 1;
}



/* 视频气泡文字样式 */
.video-bubble {
    position: absolute;
    left: -220px;
    top: 30%;
    transform: translateY(-50%);
    background-color: rgba(44, 90, 160, 0.9);
    color: white;
    padding: 0 15px 16px 15px;
    border-radius: 20px;
    max-width: 240px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: pre-line;
    transition: opacity 0.5s ease;
}

/* 诗人名称样式 */
.video-bubble .poet-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* 气泡显示状态 */
.video-bubble.visible {
    opacity: 1;
    animation: bubble-appear 1s ease-out, bubble-pulse 2s infinite ease-in-out;
}

/* 气泡箭头 */
.video-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(44, 90, 160, 0.9);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 气泡出现动画 */
@keyframes bubble-appear {
    0% {
        opacity: 0;
        left: -240px;
    }
    100% {
        opacity: 1;
        left: -220px;
    }
}

/* 气泡脉动动画 */
@keyframes bubble-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.05);
    }
}

/* 确保视频元素完全透明 */
video {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    border: none !important;
    /* 添加这些属性确保透明效果 */
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}



