/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
}

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

a:hover {
    color: #e53935;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 5px;
}

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

.navbar .nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.navbar .logo a {
    font-size: 24px;
    font-weight: bold;
    color: #e53935;
}

.navbar .nav-list {
    display: flex;
    list-style: none;
}

.navbar .nav-list li {
    margin: 0 15px;
}

.navbar .nav-list li a {
    font-size: 16px;
    font-weight: 500;
}

/* Hero区域 */
.hero {
    background: linear-gradient(to right, #e53935, #e35d5b);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* 自动轮播图样式 */
.carousel {
    background-color: #fff;
    padding: 20px 0;
    margin: 0 auto 30px;
    max-width: 1200px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-item .title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
}

/* 轮播控制按钮 */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover, .carousel-next:hover {
    background: #e53935;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-indicators button.active {
    background: #e53935;
}

/* 主内容区域（左70%+右30%黄金布局） */
.main-content {
    display: flex;
    gap: 30px;
    margin: 0 auto 40px;
    max-width: 1200px;
    width: 90%;
}

/* 左侧内容（70%） */
.left-content {
    flex: 7;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.left-content .section {
    margin-bottom: 0;
}

.left-content .section-title {
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e53935;
}

/* 新闻/事件/资讯列表样式 */
.left-content .news-list,
.left-content .event-list,
.left-content .info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-content .news-item,
.left-content .event-item,
.left-content .info-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.left-content .news-img,
.left-content .event-img,
.left-content .info-img {
    flex: 0 0 180px;
}

.left-content .news-img img,
.left-content .event-img img,
.left-content .info-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.left-content .news-content,
.left-content .event-content,
.left-content .info-content {
    flex: 1;
}

.left-content .news-title,
.left-content .event-title,
.left-content .info-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.left-content .news-desc,
.left-content .event-desc,
.left-content .info-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.left-content .news-meta,
.left-content .event-meta,
.left-content .info-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 20px;
}

/* 右侧栏（30%） */
.right-sidebar {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-sidebar .sidebar-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.right-sidebar .sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 友情链接样式 */
.right-sidebar .friend-link-list {
    list-style: none;
}

.right-sidebar .friend-link-list li {
    margin-bottom: 8px;
}

.right-sidebar .friend-link-list li a {
    display: block;
    padding: 6px;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
    font-size: 12px;
}

.right-sidebar .friend-link-list li a:hover {
    background-color: #f0f0f0;
    color: #e53935;
}

/* 热搜榜样式 */
.right-sidebar .rank-list .rank-num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background-color: #e53935;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 8px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer .footer-nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.footer .footer-nav .nav-item h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer .footer-nav .nav-item ul {
    list-style: none;
}

.footer .footer-nav .nav-item ul li {
    margin-bottom: 8px;
}

.footer .footer-nav .nav-item ul li a {
    color: #ccc;
}

.footer .footer-nav .nav-item ul li a:hover {
    color: #e53935;
}

/* 版权区域 */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 13px;
    color: #ccc;
}

.copyright .copyright-links {
    margin: 10px 0;
}

.copyright .copyright-links a {
    color: #ccc;
    margin: 0 10px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }
    .footer .footer-nav {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    .left-content {
        padding: 20px;
    }
    .left-content .news-item,
    .left-content .event-item,
    .left-content .info-item {
        flex-direction: column;
    }
    .left-content .news-img,
    .left-content .event-img,
    .left-content .info-img {
        flex: none;
    }
    .carousel-item img {
        height: 250px;
    }
    .carousel-item .title {
        font-size: 14px;
        padding: 8px 15px;
    }
}