/* 资讯模板 - news_classic 传统新闻网站风格 */
/* 红色/橙色主题，三栏布局 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航栏 */
.site-header {
    background-color: #dc2626;
    border-bottom: 3px solid #b91c1c;
}

.header-top {
    background-color: #991b1b;
    padding: 10px 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    max-height: 50px;
    width: auto;
    margin-right: 12px;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #b91c1c;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.search-btn {
    padding: 8px 20px;
    background-color: #ea580c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #f97316;
}

/* 主导航 */
.nav-bar {
    background-color: #dc2626;
    border-bottom: 2px solid #991b1b;
}

.main-menu {
    padding: 0;
}

.menu-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-item {
    border-right: 1px solid #991b1b;
}

.menu-item:last-child {
    border-right: none;
}

.menu-link {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
    border-bottom: 3px solid transparent;
}

.menu-link:hover,
.menu-link.active {
    background-color: #b91c1b;
    border-bottom-color: #f97316;
}

/* 面包屑导航 */
.breadcrumb-box {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: #dc2626;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* 主要内容区域 */
.main-wrapper {
    padding: 20px 0;
}

.main-layout {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 20px;
}

/* 左侧导航栏 */
.left-sidebar {
    background-color: #fff;
    border: 1px solid #e5e7eb;
}

.sidebar-box {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px;
}

.sidebar-box:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc2626;
}

/* 分类菜单 */
.category-menu {
    list-style: none;
}

.cat-item {
    border-bottom: 1px solid #f3f4f6;
}

.cat-item:last-child {
    border-bottom: none;
}

.cat-item a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.cat-item a:hover,
.cat-item.active a {
    background-color: #fef2f2;
    color: #dc2626;
    padding-left: 20px;
}

/* 热门文章 */
.hot-articles {
    list-style: none;
}

.hot-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    color: #333;
}

.hot-link:hover .hot-text {
    color: #dc2626;
}

.hot-num {
    width: 24px;
    height: 24px;
    background-color: #dc2626;
    color: #fff;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.hot-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    transition: color 0.3s;
}

.hot-count {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 12px;
    background-color: #f3f4f6;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: #dc2626;
    color: #fff;
}

/* 中间内容区 */
.main-content {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
}

/* 焦点图区域 */
.focus-section {
    margin-bottom: 20px;
}

.focus-slider {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 4px;
}

.focus-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.focus-item:first-child {
    opacity: 1;
}

.focus-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.focus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: #fff;
}

.focus-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.focus-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* 文章列表 */
.articles-section {
    margin-bottom: 20px;
}

.section-header {
    border-bottom: 3px solid #dc2626;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #dc2626;
    margin: 0;
}

.articles-list {
    list-style: none;
}

.article-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-item:last-child {
    border-bottom: none;
}

.article-thumb {
    flex-shrink: 0;
    width: 180px;
}

.thumb-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.article-info {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #dc2626;
}

.article-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.meta-time,
.meta-hits,
.meta-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-category a {
    color: #dc2626;
    text-decoration: none;
}

.meta-category a:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* 分页 */
.pagination-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.page-item {
    padding: 8px 15px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-item:hover {
    background-color: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.page-item.active {
    background-color: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

/* 右侧边栏 */
.right-sidebar {
    background-color: #fff;
    border: 1px solid #e5e7eb;
}

.related-list {
    list-style: none;
}

.related-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.related-item a:hover {
    color: #dc2626;
}

/* 评论列表 */
.comments-list {
    list-style: none;
}

.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-user {
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 5px;
}

.comment-text {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-meta a {
    color: #666;
    text-decoration: none;
}

.comment-meta a:hover {
    color: #dc2626;
}

/* 内容页 */
.page-header {
    background-color: #dc2626;
    color: #fff;
    padding: 30px 0;
    margin-bottom: 20px;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
}

.article-count {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.article-detail {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 30px;
    margin-bottom: 20px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.article-detail-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.meta-item a {
    color: #dc2626;
    text-decoration: none;
}

.meta-item a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.article-featured-img {
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.article-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.article-body * {
    font-size: inherit;
    color: inherit;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 4px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 30px;
    margin-bottom: 18px;
    font-weight: bold;
    color: #333;
}

.article-body h1 {
    font-size: 26px;
}

.article-body h2 {
    font-size: 24px;
}

.article-body h3 {
    font-size: 22px;
}

.article-body ul,
.article-body ol {
    padding-left: 30px;
    margin-bottom: 18px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body a {
    color: #dc2626;
    text-decoration: underline;
}

.article-body a:hover {
    color: #ea580c;
}

.article-body blockquote {
    border-left: 4px solid #dc2626;
    padding: 15px 20px;
    margin: 25px 0;
    background-color: #fef2f2;
    border-radius: 4px;
    color: #555;
    font-style: italic;
}

.article-body code {
    background-color: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #dc2626;
}

.article-body pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 25px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-body table th,
.article-body table td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

.article-body table th {
    background-color: #dc2626;
    color: #fff;
    font-weight: bold;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tags-label {
    color: #666;
    font-size: 14px;
}

.tag-link {
    padding: 5px 12px;
    background-color: #f3f4f6;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.tag-link:hover {
    background-color: #dc2626;
    color: #fff;
}

/* 上下篇导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
    display: block;
}

.nav-link:hover {
    color: #dc2626;
}

.nav-next {
    text-align: right;
}

/* 相关文章 */
.related-section {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 20px;
}

.related-section .section-title {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.related-item {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-item:hover {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.related-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-title {
    padding: 10px;
    font-size: 14px;
    margin: 0;
}

.related-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-title a:hover {
    color: #dc2626;
}

.related-meta {
    padding: 0 10px 10px;
    font-size: 12px;
    color: #999;
}

/* 信息列表 */
.info-list {
    list-style: none;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.info-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.info-value.highlight {
    color: #dc2626;
    font-size: 24px;
}

.info-value a {
    color: #dc2626;
    text-decoration: none;
}

.info-value a:hover {
    color: #ea580c;
    text-decoration: underline;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.tag-small {
    padding: 4px 10px;
    background-color: #f3f4f6;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.tag-small:hover {
    background-color: #dc2626;
    color: #fff;
}

/* 友情链接区域 */
.links-area {
    background-color: #fff;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.links-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.links-list {
    list-style: none;
}

.links-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.links-list li:last-child {
    border-bottom: none;
}

.links-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #dc2626;
}

/* 页脚 */
.site-footer {
    background-color: #1f2937;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.footer-text {
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.beian-text {
    margin-bottom: 10px;
}

.beian-text a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
}

.beian-text a:hover {
    color: #fff;
}

.copyright-text {
    color: #6b7280;
    font-size: 12px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #dc2626;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 180px 1fr 260px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar,
    .right-sidebar {
        margin-top: 20px;
    }
    
    .header-main {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .menu-list {
        flex-wrap: wrap;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* 417936 */

