/* 旅游资讯列表页面样式 */

/* 页面标题区域 */
.tourism-page-header {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    padding: 40px 0;
    color: white;
    margin-bottom: 30px;
    border-radius: 0 0 12px 12px;
}

.tourism-page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tourism-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tourism-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0, 115, 170, 0.1);
    font-weight: 500;
}

.tourism-breadcrumb a:hover {
    color: #ffffff;
    background: #0073aa;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.tourism-breadcrumb span {
    color: #6c757d;
    font-weight: 500;
}

.tourism-breadcrumb .current {
    color: #495057;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 4px;
}

/* 面包屑分隔符 */
.tourism-breadcrumb .separator {
    color: #adb5bd;
    margin: 0 5px;
    font-weight: normal;
}

/* 旅游资讯列表容器 */
.tourism-list-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
 /*   margin-bottom: 40px;  */
    max-width: 1200px; /* 与导航栏的 .container 最大宽度一致 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 15px; /* 与导航栏内边距一致，避免边缘溢出 */
}

/* 主列表区域 */
.tourism-main-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 列表筛选区域 */
.tourism-filters {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 120px;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

/* 旅游资讯列表网格布局 */
.tourism-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
}

/* 旅游资讯列表项 */
.tourism-list {
    padding: 0;
}


.tourism-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.tourism-item:last-child {
    border-bottom: none;
}

.tourism-item:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tourism-thumbnail {
    flex: 0 0 auto;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.tourism-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tourism-item:hover .tourism-thumbnail img {
    transform: scale(1.05);
}

.tourism-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tourism-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.tourism-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.tourism-title a:hover {
    color: #0073aa;
}

.tourism-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tourism-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
}

.tourism-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tourism-category {
    background: #0073aa;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tourism-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 侧边栏样式 */
.tourism-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 热门推荐 */
.popular-tourism {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.3s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    transform: translateX(3px);
}

.popular-thumb {
    flex: 0 0 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0 0 5px 0;
}

.popular-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-title a:hover {
    color: #0073aa;
}

.popular-date {
    font-size: 0.8rem;
    color: #888;
}

/* 分类导航 */
.tourism-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #0073aa;
    color: white;
    transform: translateX(5px);
}

.category-count {
    background: #ddd;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.category-item:hover .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 标签云 */
.tourism-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #0073aa;
    color: white;
    transform: translateY(-2px);
}

/* 分页样式 */
.tourism-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px;
}



/* 空状态样式 */
.tourism-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.tourism-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.tourism-empty h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tourism-list-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tourism-sidebar {
       /* order: -1;  移除*/
    }
}

@media (max-width: 1200px) {
    .tourism-list-container {
        max-width: 100%; /* 小于1200px时自适应屏幕宽度 */
    }
}

@media (max-width: 768px) {
    .tourism-page-title {
        font-size: 2rem;
    }
    
    .tourism-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .tourism-thumbnail {
        flex: 0 0 auto;
        height: 200px;
    }
    
    .tourism-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .tourism-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .tourism-page-header {
        padding: 30px 0;
    }
    
    .tourism-page-title {
        font-size: 1.8rem;
    }
    
    .tourism-item {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .popular-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .popular-thumb {
        flex: 0 0 auto;
        height: 120px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tourism-item {
    animation: fadeInUp 0.5s ease forwards;
}

.tourism-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.tourism-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* 加载状态 */
.tourism-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== 新增样式 - 旅游资讯详情页两栏布局 ========== */

/* 两栏布局容器 */
.tourism-single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* 主内容区域 */
.tourism-single-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 侧边栏区域 */
.tourism-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 侧边栏小工具容器 */
.tourism-single-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 侧边栏小工具通用样式 */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 热门推荐列表 */
.popular-tourism-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-tourism-item {
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.popular-tourism-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-tourism-item:hover {
    transform: translateX(3px);
}

.popular-tourism-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.popular-tourism-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-tourism-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-tourism-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.popular-tourism-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类列表 */
.tourism-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tourism-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

.tourism-category-item:hover {
    background: #0073aa;
    color: white;
    transform: translateX(5px);
}

.category-name {
    font-weight: 500;
}

.category-count {
    background: #ddd;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tourism-category-item:hover .category-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 最新资讯列表 */
.recent-tourism-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-tourism-item {
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.recent-tourism-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-tourism-item:hover {
    transform: translateX(3px);
}

.recent-tourism-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recent-tourism-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-tourism-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-tourism-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.recent-tourism-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 旅游资讯详情页面包屑导航样式 ========== */

/* 详情页面包屑导航 - 与列表页保持一致 */
.tourism-single .tourism-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tourism-single .tourism-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(0, 115, 170, 0.1);
    font-weight: 500;
}

.tourism-single .tourism-breadcrumb a:hover {
    color: #ffffff;
    background: #0073aa;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.tourism-single .tourism-breadcrumb span {
    color: #6c757d;
    font-weight: 500;
}

.tourism-single .tourism-breadcrumb .current {
    color: #495057;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 4px;
}

/* 面包屑分隔符 */
.tourism-single .tourism-breadcrumb .separator {
    color: #adb5bd;
    margin: 0 5px;
    font-weight: normal;
}

/* ========== 旅游资讯详情页图片样式 ========== */

/* 详情页内容区域图片样式 */
.tourism-single-content {
    padding: 30px;
    line-height: 1.8;
    color: #333;
}

/* 详情页中文字内容中的图片居中显示，宽度和容器大小一样 */
.tourism-single-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* 图片悬停效果 */
.tourism-single-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 确保图片在响应式布局中保持居中 */
@media (max-width: 768px) {
    .tourism-single-content img {
        margin: 15px auto;
        border-radius: 6px;
    }
}

/* 详情页标题样式 */
.tourism-single-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: center;
}

/* 详情页元信息 */
.tourism-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.tourism-single-date,
.tourism-single-category,
.tourism-single-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tourism-single-category {
    background: #0073aa;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 详情页内容段落样式 */
.tourism-single-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.tourism-single-content h2,
.tourism-single-content h3,
.tourism-single-content h4 {
    color: #0073aa;
    margin: 1.5em 0 0.8em 0;
    font-weight: 600;
}

.tourism-single-content h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.tourism-single-content h3 {
    font-size: 1.4rem;
}

.tourism-single-content h4 {
    font-size: 1.2rem;
}

/* 详情页响应式设计 */
@media (max-width: 1024px) {
    .tourism-single-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tourism-single-sidebar {
       /* order: -1;  移除*/
    }
}

@media (max-width: 768px) {
    .tourism-single-title {
        font-size: 1.8rem;
    }
    
    .tourism-single-meta {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .tourism-single-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tourism-single-title {
        font-size: 1.6rem;
    }
    
    .tourism-single-content {
        padding: 15px;
    }
    
    .tourism-single-breadcrumb {
        padding: 12px 15px;
        font-size: 13px;
    }
}
