/* 文章页面专用样式 - 按照图片样式设计 */


/* 页面主体 */
.main {
    min-height: 100vh;
    /* background: #f8f9fa; */
}

/* 顶部标题区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 主要内容区域 */
.content-wrapper {
    width:100%;
    min-width: 1920px;
    margin: 0 auto;
    padding: 0 0px;
    background:#ffffff;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
    width:80%;
    margin-left:auto;
    margin-right:auto;
}

/* 文章列表区域 */
.news-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width:100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px;
}

/* 文章卡片 */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #ff7f2a;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

/* 新闻信息 */
.news-info {
    padding: 25px;
}

.news-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.news-date {
    display: inline-block;
    color: #999;
    font-size: 0.85rem;
    margin-left: 15px;
    vertical-align: middle;
}

.news-date::before {
    content: '•';
    margin: 0 5px;
    color: #ccc;
}

.news-views {
    display: inline-block;
    color: #999;
    font-size: 0.85rem;
    margin-left: 10px;
    vertical-align: middle;
}

.news-views::before {
    content: '•';
    margin: 0 5px;
    color: #ccc;
}

.news-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 15px 0 20px;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #ff7f2a;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #ff9955;
    transform: translateX(5px);
}

.read-more::after {
    content: '→';
    margin-left: 5px;
}

/* 右侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width:100%;
}

/* 栏目分类 */
.category-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-item {
    flex: 1;
    min-width: 100px;
}

.category-link {
    display: block;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #666;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.category-link:hover {
    background: #ff7f2a;
    color: white;
    transform: translateY(-2px);
}

/* 栏目分类选中态：橙色背景 + 白色文字 */
.category-link.active {
    background: #ff7f2a;
    color: #fff;
}

.category-link.active:hover {
    background: #e57220;
    color: #fff;
}

/* 热门文章 */
.popular-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.popular-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.popular-list {
    list-style: none;
}

.popular-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.popular-item a:hover {
    color: #ff7f2a;
    transform: translateX(5px);
}

.popular-date {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.cta-container {
    min-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    min-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #ff7f2a;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 127, 42, 0.3);
}

.cta-btn:hover {
    background: #ff9955;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 127, 42, 0.4);
}

/* ========== 文章详情页 ========== */
.article-detail-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-detail-hero {
    padding: 60px 0 50px;
    text-align: left;
}

.article-detail-hero .hero-content {
    max-width: 100%;
}

.detail-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.detail-back-link:hover {
    color: #fff;
    opacity: 1;
}

.article-detail-hero .tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-detail-hero .hero-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    line-height: 1.35;
    text-align: left;
}

.article-detail-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.article-detail-meta time,
.article-detail-meta .meta-divider {
    margin-right: 8px;
}

.article-detail-container {
    padding: 0 20px 60px;
    margin: 0 auto;
    max-width: 900px;
}

.article-detail-cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: -24px auto 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-detail-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-detail-body {
    margin-bottom: 40px;
}

.article-detail-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.article-detail-content p {
    margin-bottom: 1em;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-detail-content h2,
.article-detail-content h3 {
    margin: 1.5em 0 0.5em;
    color: #333;
}

.article-detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
}

.article-detail-nav .nav-link {
    color: #ff7f2a;
    font-weight: 500;
    text-decoration: none;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.article-detail-nav .nav-link:hover {
    color: #e57220;
}

.article-detail-nav .nav-link.disabled {
    color: #bbb;
    cursor: default;
}

.article-detail-nav .nav-next {
    text-align: right;
}

.article-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom:50px;
}

.article-detail-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff7f2a 0%, #ff9955 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 127, 42, 0.25);
}

.article-detail-btn:hover {
    background: linear-gradient(135deg, #e57220 0%, #ff7f2a 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 127, 42, 0.4);
}

.article-detail-cta .article-detail-btn.outline {
    background: transparent;
    color: #ff7f2a;
    border: 2px solid #ff7f2a;
    box-shadow: none;
}

.article-detail-cta .article-detail-btn.outline:hover {
    background: rgba(255, 127, 42, 0.08);
    color: #e57220;
    border-color: #e57220;
}

@media (max-width: 768px) {
    /* 列表页 Banner：手机端根据内容自适应高度，文字尺寸参考项目服务 */
    .hero-section {
        padding: 40px 0;
        min-height: auto !important;
    }
    .hero-title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }

    /* 主题布局：手机端先显示栏目分类，再显示新闻列表，一行一条 */
    .content-wrapper {
        min-width: auto;
        padding: 0 0;
    }
    .main-content {
        display: flex;
        flex-direction: column-reverse; /* 先侧边栏(分类)，后新闻列表 */
        width: 100%;
        margin-top: 20px;
        gap: 20px;
    }
    .news-section,
    .sidebar {
        width: 100%;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    /* 文章详情页标题与导航在手机端的适配 */
    .article-detail-hero .hero-title {
        font-size: 1.75rem;
    }
    .article-detail-nav {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .article-detail-nav .nav-next {
        text-align: left;
    }
}