@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 100;
}
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #ff3c3c;
    text-align: center;
}
.login-icon {
    position: absolute;
    right: 16px;
    width: 24px;
    height: 24px;
    background-color: #999;
    border-radius: 50%;
}
.category-nav {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    height: 44px;
    background-color: #fff;
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 99;
    border-bottom: 1px solid #e0e0e0;
}
.category-nav::-webkit-scrollbar {
    display: none;
}
.category-item {
    padding: 0 16px;
    font-size: 15px;
    color: #666;
    position: relative;
}
.category-item.active {
    color: #ff3c3c;
}
.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: #ff3c3c;
    border-radius: 1.5px;
}
.content {
    margin-top: 92px;
    padding-bottom: 20px;
}
.news-item {
    background-color: #fff;
    padding: 15px;
    border-bottom: 10px solid #f5f5f5;
}
.news-title {
    font-size: 18px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}
.news-image-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.news-image {
    flex: 1;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-single-image {
    width: 100%;
    height: 160px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.news-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    position: relative;
}
.news-time {
    margin-right: 12px;
}
.news-comments {
    /* 移除右边距，保持在左侧 */
}
.news-comments-last {
    /* 移除右边距，保持在左侧 */
    margin-left: 10px;
}
.news-card {
    background-color: #fff;
    padding: 15px;
    border-bottom: 10px solid #f5f5f5;
}
.news-card-content {
    display: flex;
    gap: 12px;
}
.news-card-text {
    flex: 1;
}
.news-card-image {
    width: 120px;
    height: 90px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.text-overflow {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}
/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
}
.back-to-top::before {
    content: '';
}
/* 加载更多相关样式 */
.load-more {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #999;
    position: relative;
}
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}
.loading-spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
