/* 全局样式 */
:root {
    --primary-color: #FF6B00; /* 主橙色 */
    --secondary-color: #FF8C00; /* 次橙色 */
    --dark-color: #121212; /* 主黑色 */
    --darker-color: #0A0A0A; /* 更深黑 */
    --light-color: #F5F5F5; /* 浅色文字 */
    --gray-color: #333333; /* 灰色 */
    --light-gray: #444444; /* 浅灰 */
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
 
body {
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
}
 
a {
    text-decoration: none;
    color: inherit;
}
 
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
 
/* 头部样式 */
.header {
    background-color: var(--darker-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}
 
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
 
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
}
 
.logo span {
    color: var(--primary-color);
}
 
.nav ul {
    display: flex;
    list-style: none;
}
 
.nav ul li {
    margin-left: 1.5rem;
}
 
.nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}
 
.nav ul li a:hover,
.nav ul li a.active  {
    color: var(--primary-color);
}
 
.nav ul li a.active::after  {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}
 
.search-box {
    display: flex;
    align-items: center;
}
 
.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-color);
    border-radius: 20px;
    background-color: var(--dark-color);
    color: var(--light-color);
    outline: none;
    transition: all 0.3s;
    width: 200px;
}
 
.search-box input:focus {
    border-color: var(--primary-color);
    width: 250px;
}
 
.search-box button {
    background: none;
    border: none;
    color: var(--light-color);
    margin-left: -35px;
    cursor: pointer;
    transition: color 0.3s;
}
 
.search-box button:hover {
    color: var(--primary-color);
}
 
/* 主要内容区 */
.main {
    padding: 6rem 0;
}
 
.news-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}
 
.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--gray-color);
    color: var(--light-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}
 
.filter-btn:hover,
.filter-btn.active  {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
 
/* 新闻列表样式 */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
 
.news-item {
    display: grid;
    gap: 1.5rem;
    background-color: var(--darker-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
	padding-left:1.5rem;
}
 
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
 
.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
 
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
 
.news-item:hover .news-image img {
    transform: scale(1.05);
}
 
.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
 
.news-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
 
.news-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--light-color);
    transition: color 0.3s;
}
 
.news-item:hover .news-title {
    color: var(--primary-color);
}
 
.news-excerpt {
    color: #AAAAAA;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #777777;
}
 
.news-meta i {
    margin-right: 0.3rem;
}
 
.read-more {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
    margin-left: auto;
}
 
.read-more:hover {
    color: var(--secondary-color);
}
 
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}
 
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--light-color);
    transition: all 0.3s;
}
 
.page-btn:hover,
.page-btn.active  {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
 
/* 页脚样式 */
.footer {
    background-color: var(--darker-color);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
 
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
 
.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}
 
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}
 
.footer-section p {
    margin-bottom: 1rem;
    color: #AAAAAA;
}
 
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
 
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--light-color);
    transition: all 0.3s;
}
 
.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
 
.footer-section.links  ul {
    list-style: none;
}
 
.footer-section.links  li {
    margin-bottom: 0.75rem;
}
 
.footer-section.links  a {
    color: #AAAAAA;
    transition: color 0.3s;
}
 
.footer-section.links  a:hover {
    color: var(--primary-color);
}
 
.footer-section.contact  i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}
 
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-color);
    color: #777777;
    font-size: 0.9rem;
}
 
/* 响应式设计 */
@media (max-width: 992px) {
    .news-item {
        grid-template-columns: 250px 1fr;
    }
}
 
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 0 0.75rem;
    }
    
    .search-box {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 80%;
    }
    
    .search-box input:focus {
        width: 90%;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 250px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
}
 
@media (max-width: 576px) {
    .news-filters {
        flex-wrap: wrap;
    }
    
    .news-meta {
        gap: 1rem;
    }
    
    .read-more {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
}
/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}
 
.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.breadcrumb li {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}
 
.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #777;
}
 
.breadcrumb a {
    color: #AAA;
    transition: color 0.3s;
}
 
.breadcrumb a:hover {
    color: var(--primary-color);
}
 
.breadcrumb .active {
    color: var(--primary-color);
}
 
/* 新闻详情页 */
.news-detail {
    display: block;
    grid-template-columns: 1fr;
    gap: 2rem;
}
 
.news-header {
    margin-bottom: 1.5rem;
}
 
.news-title {
    font-size: 2rem;
    line-height: 1.3;
    margin: 1rem 0;
    color: var(--light-color);
}
 
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #777;
    font-size: 0.9rem;
    margin-top: 1rem;
}
 
.news-meta i {
    margin-right: 0.3rem;
}
 
.news-cover {
    margin: 1.5rem 0;
    position: relative;
}
 
.news-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}
 
.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
}
 
.news-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
 
.news-content p {
    margin-bottom: 1.5rem;
}
 
.news-content .lead {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
}
 
.news-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}
 
.news-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}
 
.news-highlight {
    background-color: rgba(255, 107, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}
 
.news-highlight p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem !important;
}
 
.news-highlight span {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #777;
}
 
.news-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
 
.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
 
.grid-item p {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0 !important;
}
 
.news-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-color);
    border-bottom: 1px solid var(--gray-color);
}
 
.news-tags span {
    color: #777;
}
 
.news-tags a {
    padding: 0.3rem 0.8rem;
    background-color: var(--gray-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}
 
.news-tags a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
 
.news-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}
 
.news-share span {
    color: #777;
}
 
.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}
 
.share-btn i {
    margin-right: 0.3rem;
}
 
.share-btn.weibo  {
    background-color: #E6162D;
    color: white;
}
 
.share-btn.wechat  {
    background-color: #07C160;
    color: white;
}
 
.share-btn.qq  {
    background-color: #12B7F5;
    color: white;
}
 
.share-btn.douyin  {
    background-color: #000;
    color: white;
}
 
.share-btn:hover {
    opacity: 0.9;
}
 
/* 作者信息 */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--darker-color);
    border-radius: 8px;
}
 
.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
 
.author-info h3 {
    margin-bottom: 0.5rem;
    color: var(--light-color);
}
 
.author-title {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem !important;
}
 
.author-bio {
    font-size: 0.95rem;
    margin-bottom: 1rem !important;
}
 
.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--light-color);
    transition: all 0.3s;
    margin-right: 0.5rem;
}
 
.author-social a:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
}
 
/* 相关新闻 */
.related-news {
    margin: 3rem 0;
}
 
.related-news h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    display: flex;
    align-items: center;
}
 
.related-news h2 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
 
.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
 
.related-item {
    background-color: var(--darker-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
 
.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
 
.related-image {
    height: 180px;
    overflow: hidden;
}
 
.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
 
.related-item:hover .related-image img {
    transform: scale(1.05);
}
 
.related-content {
    padding: 1.2rem;
}
 
.related-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-color);
    transition: color 0.3s;
}
 
.related-item:hover .related-content h3 {
    color: var(--primary-color);
}
 
.related-content p {
    font-size: 0.9rem;
    color: #AAA;
    margin-bottom: 0.5rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
 
.related-date {
    font-size: 0.8rem;
    color: #777;
}
 
/* 评论区 */
.comments-section {
    margin: 3rem 0;
}
 
.comments-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    display: flex;
    align-items: center;
}
 
.comments-section h2 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
 
.comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
 
.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
 
.comment-form form {
    flex: 1;
}
 
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-color);
    border-radius: 8px;
    background-color: var(--darker-color);
    color: var(--light-color);
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}
 
.comment-form textarea:focus {
    border-color: var(--primary-color);
}
 
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}
 
.emoji-picker button {
    background: none;
    border: none;
    color: #777;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}
 
.emoji-picker button:hover {
    color: var(--primary-color);
}
 
.submit-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
 
.submit-btn:hover {
    background-color: var(--secondary-color);
}
 
.comments-list {
    margin-top: 2rem;
}
 
.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-color);
}
 
.comment .comment-avatar img {
    width: 40px;
    height: 40px;
}
 
.comment-content {
    flex: 1;
}
 
.comment-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
 
.comment-header h3 {
    font-size: 0.95rem;
    color: var(--light-color);
}
 
.comment-date {
    font-size: 0.8rem;
    color: #777;
}
 
.reply-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #777;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s;
}
 
.reply-btn:hover {
    color: var(--primary-color);
}
 
.comment-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
 
.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
 
.like-btn, .dislike-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s;
}
 
.like-btn:hover {
    color: var(--primary-color);
}
 
.dislike-btn:hover {
    color: #FF3333;
}
 
.comment.reply  {
    margin-left: 3rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gray-color);
    border-bottom: none;
}
 
.comments-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
 
/* 侧边栏 */
.sidebar {
    display: none;
}
 
.sidebar-widget {
    background-color: var(--darker-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
 
.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
 
.sidebar-widget h3 i {
    margin-right: 0.5rem;
}
 
.popular-list {
    list-style: none;
}
 
.popular-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-color);
}
 
.popular-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
 
.popular-list a {
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
 
.popular-list a:hover {
    color: var(--primary-color);
}
 
.popular-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.8rem;
}
 
.popular-title {
    flex: 1;
    font-size: 0.95rem;
}
 
.ad-widget .ad-content {
    text-align: center;
}
 
.ad-widget img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
 
.ad-widget p {
    font-size: 0.9rem;
    color: #AAA;
}
 
.category-list {
    list-style: none;
}
 
.category-list li {
    margin-bottom: 0.8rem;
}
 
.category-list a {
    display: flex;
    justify-content: space-between;
    color: #AAA;
    transition: color 0.3s;
}
 
.category-list a:hover {
    color: var(--primary-color);
}
 
.category-list a span {
    background-color: var(--gray-color);
    color: var(--light-color);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
}
 
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
 
.tag-cloud a {
    color: #AAA;
    transition: all 0.3s;
}
 
.tag-cloud a:hover {
    color: var(--primary-color);
}
 
/* 响应式设计 */
@media (min-width: 992px) {
    .news-detail {
        grid-template-columns: 2fr 1fr;
    }
    
    .sidebar {
        display: block;
    }
}
 
@media (max-width: 768px) {
    .news-title {
        font-size: 1.7rem;
    }
    
    .news-image-grid {
        grid-template-columns: 1fr;
    }
    
    .comment.reply  {
        margin-left: 1.5rem;
    }
}