/* 新闻横幅 */
.news-banner {
    position: relative;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.news-banner h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 36px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 新闻搜索 */
.news-search {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.search-container input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-container input:focus {
    outline: none;
    border-color: #8B4513;
}

.search-btn {
    padding: 12px 30px;
    background-color: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #704012;
}

/* 主要内容区 */
.news-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* 新闻导航 */
.news-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.nav-item {
    padding: 8px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item.active {
    color: #8B4513;
    font-weight: bold;
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8B4513;
}

/* 新闻列表 */
.news-list {
    display: grid;
    gap: 30px;
}

.news-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 300px 1fr;
}

.news-image {
    position: relative;
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    background-color: rgba(139, 69, 19, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.news-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #704012;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 30px;
    background-color: #fff;
    color: #8B4513;
    border: 2px solid #8B4513;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #8B4513;
    color: #fff;
}

/* 右侧边栏 */
.news-sidebar > section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-sidebar h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8B4513;
}

/* 热门新闻 */
.hot-list {
    list-style: none;
    padding: 0;
}

.hot-list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hot-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-image {
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.hot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-meta {
    color: #666;
    font-size: 12px;
    display: flex;
    gap: 10px;
}

/* 活动日历 */
.calendar-container {
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background: none;
    border: none;
    color: #8B4513;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid div {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
}

.calendar-grid .day {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-grid .day:hover {
    background-color: #f5f5f5;
}

.calendar-grid .day.has-event {
    background-color: #8B4513;
    color: #fff;
}

.event-list {
    margin-top: 20px;
}

.event-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-date .date {
    font-size: 24px;
    font-weight: bold;
    color: #8B4513;
    display: block;
}

.event-date .month {
    font-size: 14px;
    color: #666;
}

.event-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.event-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.register-btn {
    padding: 5px 15px;
    background-color: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #704012;
}

/* 订阅区域 */
.news-subscribe {
    text-align: center;
}

.news-subscribe p {
    color: #666;
    margin-bottom: 20px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #8B4513;
}

.subscribe-form button {
    padding: 12px;
    background-color: #8B4513;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #704012;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .news-banner {
        height: 300px;
    }

    .news-banner h2 {
        font-size: 28px;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
    }

    .news-sidebar {
        grid-template-columns: 1fr;
    }

    .hot-list li {
        grid-template-columns: 80px 1fr;
    }
}

@media screen and (max-width: 480px) {
    .search-container {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }

    .news-nav {
        padding-bottom: 5px;
    }

    .nav-item {
        padding: 8px 15px;
        font-size: 14px;
    }
} 