/* 顶部横幅 */
body {
    background-color: rgb(246, 251, 251);
}
.hero-banner {
    position: relative;
    height: 200px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* 主容器 */
.main-container {
    width: 100%;
    margin: 0;
    background: rgb(246, 251, 251);
    min-height: calc(100vh - 200px);
}

/* 新闻列表 */
.news-list {
    margin-bottom: 30px;
    padding: 0 8%;
}

.news-item {
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    margin-bottom: 20px;
}

.news-item:hover {
    background: #f9f9f9;
    border: 2px solid #e53935;
    border-radius: 8px;
}

.news-item.featured {
    border: 2px solid #e53935;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
}

.news-item.large-item {
    flex-direction: column;
    align-items: stretch;
    background: #f8f8f8;
    border-radius: 8px;
    margin-top: 15px;
}

.news-item.large-item .news-arrow {
    position: absolute;
    right: 20px;
    top: 20px;
}

.news-image {
    height: 100px;
    max-width: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap:10px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    margin: 0;
}

.news-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.large-item .news-summary {
    -webkit-line-clamp: 3;
    font-size: 14px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-direction: space-between;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.news-arrow {
    display: flex;
    color: #666;
    margin-left: 15px;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: #333;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.news-arrow svg {
    margin: auto;
    margin-left: 7px;
    color: #fff;
}

.news-item:hover .news-arrow {
    background-color: #e53935;
}

/* 在移动端调整箭头位置 */
@media (max-width: 768px) {
    .news-arrow {
        right: 15px;
        bottom: 10px;
    }
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.page-btn,
.page-next,
.page-last {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background: #e53935;
    color: white;
    border-color: #e53935;
}

.page-btn:hover:not(.active),
.page-next:hover,
.page-last:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.page-dots {
    padding: 0 8px;
    color: #999;
    font-size: 13px;
}

.page-next,
.page-last {
    font-size: 12px;
    padding: 8px 15px;
}

/* 右侧浮动按钮 */
.float-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-btn {
    background: white;
    border: 2px solid #e53935;
    border-radius: 50px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 50px;
    height: 50px;
}

.float-btn:hover {
    width: 120px;
    background: #e53935;
    color: white;
}

.float-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #e53935;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.float-btn:hover .float-icon {
    color: white;
}

.float-text {
    font-size: 12px;
    white-space: nowrap;
    margin-left: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.float-btn:hover .float-text {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    .news-item {
        flex-direction: column;
        align-items: stretch;
    }

    .news-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-arrow {
        position: absolute;
        right: 20px;
        top: 20px;
        margin-left: 0;
    }

    .float-buttons {
        right: 10px;
        scale: 0.9;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .page-btn,
    .page-next,
    .page-last {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 150px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }
    .news-item {
        padding: 15px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-summary {
        font-size: 12px;
    }
}