/* assets/css/main.css */
:root {
    --primary-color: #cc0000;
    --secondary-color: #333;
    --light-bg: #f9f9f9;
    --text-color: #333;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}
/* 2. 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 2rem; /* 控制logo和导航之间的间距 */
}

/* 确保logo不会被压缩 */
.logo {
    flex-shrink: 0;
}

/* 确保导航菜单正确显示 */
.main-navigation {
    flex-grow: 1;
}

/* 移除原来的左边距 */
.main-navigation > ul > li:first-child {
    margin-left: 0;
}

/* 调整导航项之间的间距 */
.main-navigation > ul > li {
    margin-left: 1.5rem; /* 减小导航项之间的间距 */
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.language-selector select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('<?php echo get_template_directory_uri(); ?>/assets/images/china-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #a00;
}

/* 目的地区域 */
.destinations-section {
    margin: 4rem 0;
}

.destinations-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.destination-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-card h3 {
    padding: 1rem 1rem 0;
    color: var(--primary-color);
}

.destination-card h3 a {
    text-decoration: none;
    color: inherit;
}

.destination-card p {
    padding: 0 1rem 1rem;
}

/* 文章内容样式 */
.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.entry-content h3 {
    color: #666;
    margin: 1.5rem 0 1rem;
}

/* 广告块样式 */
.ad-block {
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    border-radius: 4px;
}

/* 相关文章 */
.related-posts {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-posts h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h4 {
    margin: 0 0 0.5rem;
}

.related-post-content h4 a {
    text-decoration: none;
    color: var(--secondary-color);
}

.post-date {
    color: #666;
    font-size: 0.85rem;
}

/* 标签样式 */
.post-tags {
    margin: 2rem 0;
}

.post-tags a {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 0.3rem 0.8rem;
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 3px;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 侧边栏 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 3rem 0;
}

.site-main {
    flex: 1;
    min-width: 0;
    margin-right: 2rem;
}

.widget-area {
    width: 300px;
}

.widget {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* 页脚 */
.site-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-menu li {
    margin: 0 1rem;
}

.footer-menu a {
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
    
    .main-navigation ul {
        margin: 1rem 0;
    }
    
    .main-navigation li {
        margin: 0 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .site-main {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .widget-area {
        width: 100%;
    }
}


/* 在 assets/css/main.css 中添加或更新以下样式 */

/* Single Post Styles */
.travel-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 40px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 文章标题 */
.entry-header .entry-title {
    color: #cc0000;
    font-size: 2.2rem;
    margin: 15px 0 20px;
    line-height: 1.3;
}

/* 文章元信息 */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 5px;
}

/* 特色图片 */
.post-featured-image {
    margin: 25px 0;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* 文章内容 */
.entry-content {
    margin: 30px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2 {
    color: #cc0000;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.8rem;
}

.entry-content h3 {
    color: #3498db;
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.entry-content h4 {
    color: #2c3e50;
    margin: 25px 0 15px;
    font-size: 1.2rem;
}

.entry-content ul, .entry-content ol {
    margin: 20px 0 20px 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content a {
    color: #3498db;
    text-decoration: underline;
}

.entry-content a:hover {
    color: #cc0000;
}

.entry-content blockquote {
    border-left: 4px solid #cc0000;
    padding: 20px;
    margin: 30px 0;
    background: #f9f9f9;
    font-style: italic;
}

.entry-content blockquote p {
    margin: 0;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* 文章标签 */
.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-tags h4 {
    display: inline-block;
    margin-right: 15px;
    color: #333;
}

.post-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    margin: 0 5px 8px 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #cc0000;
    color: white;
}

/* 文章底部 */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-categories {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-categories strong {
    color: #333;
}

.post-categories a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
}

.post-categories a:hover {
    text-decoration: underline;
}

/* 分享按钮 */
.post-share h4 {
    margin-bottom: 15px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.email { background: #dd4b39; }

/* 作者信息框 */
.author-box {
    display: flex;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #cc0000;
}

.author-avatar {
    margin-right: 20px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info h4 {
    margin: 0 0 10px;
    color: #cc0000;
}

.author-info p {
    margin: 0 0 15px;
    color: #555;
}

.author-posts a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.author-posts a:hover {
    text-decoration: underline;
}

/* 相关文章 */
.related-posts {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-posts h3 {
    color: #cc0000;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-post {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-content h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.related-post-content h4 a {
    color: #333;
    text-decoration: none;
}

.related-post-content h4 a:hover {
    color: #cc0000;
}

.post-date {
    color: #666;
    font-size: 0.85rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .travel-post {
        padding: 20px 15px;
    }
    
    .entry-header .entry-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
    
    .entry-content {
        font-size: 1rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.2rem;
    }
}

/* 轮播样式 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content .slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

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

.indicator.active,
.indicator:hover {
    background-color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 16px 12px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 响应式轮播 */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content .slide-description {
        font-size: 1rem;
    }
    
    .slider-nav {
        padding: 12px 8px;
        font-size: 18px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
}

/* 移动端导航菜单样式 - 仅在小屏幕显示 */

/* 移动端菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    justify-content: space-around;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    border-radius: 2px;
}

/* 移动端菜单覆盖层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-navigation {
    padding: 80px 30px 30px;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
}

.mobile-menu a:hover {
    color: #cc0000;
}

.mobile-menu .sub-menu {
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-menu .sub-menu li {
    border-bottom: none;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.mobile-menu .sub-menu a {
    font-size: 1rem;
    color: #666;
}

/* 响应式断点 - 只在小屏幕激活移动端菜单 */
@media (max-width: 768px) {
    .main-navigation {
        display: none; /* 隐藏桌面导航 */
    }
    
    .language-selector {
        display: none; /* 隐藏桌面语言选择器 */
    }
    
    .mobile-menu-toggle {
        display: flex; /* 显示移动端菜单按钮 */
    }
    
    /* 在移动端显示语言选择器在菜单内 */
    .mobile-menu-container .language-selector-mobile {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }
    
    .mobile-menu-container .language-selector-mobile select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #f9f9f9;
    }
}

/* 在大屏幕保持原有样式 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* 保持您原有的桌面端样式 */
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }
    
    .main-navigation ul {
        display: flex;
        list-style: none;
    }
    
    .main-navigation li {
        margin-left: 2rem;
    }
    
    .main-navigation a {
        text-decoration: none;
        color: var(--secondary-color);
        font-weight: 500;
        transition: color 0.3s;
    }
    
    .main-navigation a:hover {
        color: var(--primary-color);
    }
    
    .language-selector {
        display: block;
    }
    
    .language-selector select {
        padding: 0.5rem;
        border-radius: 4px;
        border: 1px solid #ddd;
    }
}

/* 防止移动端菜单打开时背景滚动 */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Popular Destinations 样式 */
.popular-destinations-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.popular-destinations-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* 旅行贴士样式 */
.travel-tips-section {
    margin: 4rem 0;
    padding: 2rem 0;
    background-color: var(--light-bg);
}

.travel-tips-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .popular-destinations-section,
    .travel-tips-section {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .popular-destinations-section h2,
    .travel-tips-section h2 {
        font-size: 1.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tip-card {
        padding: 1.5rem;
    }
}

.mobile-menu .menu-item-has-children {
    position: relative;
}

.mobile-menu .menu-item-has-children > a::after {
    content: "+";
    float: right;
    font-weight: bold;
}

.mobile-menu .menu-item-has-children.open > a::after {
    content: "-";
}

.mobile-menu .sub-menu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
}

.mobile-menu .sub-menu li {
    border-bottom: none;
    padding-bottom: 8px;
}

.mobile-menu .sub-menu a {
    font-size: 1rem;
    color: #666;
}

/* 在 main.css 中更新导航菜单样式 */

.main-navigation li {
    position: relative;
    margin-left: 2rem;
}


/* 二级菜单样式 */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}



.main-navigation ul ul li {
    margin: 0;
    width: 100%;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    color: #666;
    border-bottom: 1px solid #eee;
}



.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* 二级菜单箭头指示器 */
.main-navigation .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f5f5f5;
        display: none;
    }
    
    .main-navigation li:hover > ul {
        display: block;
        transform: none;
    }
    
    .main-navigation .menu-item-has-children > a::after {
        content: "▶";
    }
}


/* 在 main.css 中添加旅游贴士推荐样式 */

.travel-tips-recommendation {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.travel-tips-recommendation h3 {
    color: #cc0000;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

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

.tip-card-small {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tip-card-small:hover {
    transform: translateY(-3px);
}

.tip-card-small img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.tip-card-small h4 {
    padding: 15px 15px 0;
    font-size: 1rem;
}

.tip-card-small h4 a {
    text-decoration: none;
    color: #333;
}

.tip-card-small h4 a:hover {
    color: #cc0000;
}

.tip-card-small p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0 0;
}

.view-all-tips {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    background: #cc0000;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-view-all:hover {
    background: #a00;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .travel-tips-recommendation {
        padding: 20px 15px;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tip-card-small h4 {
        font-size: 0.9rem;
    }
}

/* 更新现有样式并添加新样式 */

/* Popular Destinations 样式 */
.popular-destinations-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.popular-destinations-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.destination-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-card h3 {
    padding: 1rem 1rem 0;
    color: var(--primary-color);
}

.destination-card h3 a {
    text-decoration: none;
    color: inherit;
}

.destination-card h3 a:hover {
    color: var(--primary-color);
}

.destination-card p {
    padding: 0 1rem 1rem;
}

/* 旅行贴士样式 */
.travel-tips-section {
    margin: 4rem 0;
    padding: 2rem 0;
    background-color: var(--light-bg);
}

.travel-tips-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

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

.tip-card .tip-image {
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.tip-card .tip-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card h3 a {
    text-decoration: none;
    color: inherit;
}

.tip-card h3 a:hover {
    color: var(--primary-color);
}

.tip-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more::after {
    content: " →";
}

/* 查看更多按钮样式 */
.view-more-container {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 2px solid var(--primary-color);
}

.view-more-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .popular-destinations-section,
    .travel-tips-section {
        margin: 2rem 0;
        padding: 1rem 0;
    }
    
    .popular-destinations-section h2,
    .travel-tips-section h2 {
        font-size: 1.5rem;
    }
    
    .destination-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tip-card {
        padding: 1rem;
    }
    
    .tip-card .tip-image {
        margin: -1rem -1rem 1rem -1rem;
    }
    
    .tip-card .tip-image img {
        height: 150px;
    }
}

/* 更新移动端菜单以支持横向布局 */
@media (max-width: 768px) {
    .mobile-menu .sub-menu {
        display: none;
        padding-left: 20px;
        margin-top: 10px;
        background: #f0f0f0;
    }
    
    .mobile-menu .menu-item-has-children > a::after {
        content: "+";
        float: right;
        font-weight: bold;
    }
    
    .mobile-menu .menu-item-has-children.open > a::after {
        content: "-";
    }
    
    .mobile-menu .sub-menu li {
        border-bottom: none;
        padding-bottom: 8px;
    }
    
    .mobile-menu .sub-menu a {
        font-size: 1rem;
        color: #666;
    }
}


/* 在 main.css 中更新导航菜单样式 */

/* 桌面端导航菜单 */
.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation > ul > li {
    position: relative;
    margin-left: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 15px 0;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* 二级菜单样式 */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 4px 4px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: block;
}

/* 悬停显示二级菜单 */
.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    color: #666;
    font-weight: normal;
    border-bottom: none;
}

.main-navigation ul ul a:hover {
    color: var(--primary-color);
    background: #f9f9f9;
}

/* 横向二级菜单布局 */
/* 二级菜单应该垂直排列 */
.main-navigation ul ul {
    flex-direction: column;
}

/* 二级菜单箭头指示器 */
.main-navigation .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.8rem;
    margin-left: 5px;
    vertical-align: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f5f5f5;
        display: none;
        border-radius: 0;
    }
    
    .main-navigation li:hover > ul {
        display: block;
        transform: none;
    }
    
    .main-navigation .menu-item-has-children > a::after {
        content: " ▶";
    }
}

css
/* 轮播样式 - 更新整个区域 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* 改为100vh占满整个视窗高度 */
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个区域 */
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content .slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

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

.indicator.active,
.indicator:hover {
    background-color: white;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 16px 12px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav:hover {
    background-color: rgba(0,0,0,0.8);
}

/* 响应式轮播 */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh; /* 移动端稍微小一些 */
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content .slide-description {
        font-size: 1rem;
    }
    
    .slider-nav {
        padding: 12px 8px;
        font-size: 18px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
}