/* 太牛旅行网 - 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #1890ff;
}

img {
    max-width: 100%;
    border: 0;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-slogan {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    letter-spacing: 1px;
}

/* 导航菜单 */
.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #fff;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #ffd700;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffd700;
}

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

/* 首页Banner */
.banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://picsum.photos/seed/travelbanner/1920/500') center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 12px;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner p {
    font-size: 20px;
    opacity: 0.9;
}

/* 栏目标题 */
.section-title {
    font-size: 28px;
    color: #1e3c72;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid #1890ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title .more {
    font-size: 14px;
    color: #999;
    font-weight: normal;
}

/* 新闻卡片 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news-card-img {
    height: 180px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 18px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* 新闻列表页 */
.list-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-nav li {
    list-style: none;
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    color: #555;
    font-size: 15px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #e6f7ff;
    color: #1890ff;
}

/* 新闻列表项 */
.news-list {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-img {
    width: 220px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.4;
}

.news-item-title:hover {
    color: #1890ff;
}

.news-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 20px;
}

.news-item-meta span::before {
    content: '•';
    margin-right: 8px;
    color: #1890ff;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #e8e8e8;
    color: #555;
}

.pagination a:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination .active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 新闻详情页 */
.article {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 32px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-img {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

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

.article-content {
    font-size: 17px;
    line-height: 2;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #1e3c72;
    text-indent: 0;
}

.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags {
    display: flex;
    gap: 10px;
}

.article-tag {
    padding: 5px 12px;
    background: #f0f7ff;
    color: #1890ff;
    border-radius: 20px;
    font-size: 13px;
}

/* 导航页面 */
.sitemap-section {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.sitemap-title {
    font-size: 22px;
    color: #1e3c72;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.sitemap-links a {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sitemap-links a:hover {
    background: #e6f7ff;
    color: #1890ff;
}

/* 底部 */
.footer {
    background: #1a2a4a;
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    line-height: 2;
    list-style: none;
}

.footer-col a:hover {
    color: #ffd700;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #1890ff;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sitemap-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    .nav {
        gap: 20px;
    }
    .banner h1 {
        font-size: 32px;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .list-layout {
        grid-template-columns: 1fr;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item-img {
        width: 100%;
        height: 200px;
    }
    .sitemap-links {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .article {
        padding: 25px;
    }
    .article-title {
        font-size: 24px;
    }
}
