/* 文章详情页面样式 */

/* 面包屑导航 */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-red);
    text-decoration: underline;
}

/* 容器宽度控制 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文章容器 */
.article-container {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* 文章详情卡片 */
.news-detail {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-detail:hover {
    transform: translateY(-5px);
}

/* 文章头部 */
.article-header {
    padding: 30px 40px 20px;
    background: white;
    color: #333;
    text-align: center;
    border-bottom: 2px solid var(--primary-red);
}

.article-title {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    font-size: 0.9rem;
    color: var(--primary-red);
}

/* 文章图片 */
.article-image {
    position: relative;
    margin: 0;
    overflow: hidden;
}

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

.article-image:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* 文章摘要 */
.article-summary {
    padding: 30px 50px;
    background: #f8f9fa;
}

.summary-box {
    background: white;
    border-left: 4px solid var(--primary-red);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.summary-box h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* 文章内容 */
.article-content {
    padding: 40px 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content h2 {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content strong {
    /* color: var(--primary-red); */
    font-weight: 600;
}

/* 引用样式 */
.article-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary-red);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    position: relative;
}

.article-quote::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-red);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.article-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin: 0 0 15px 0;
}

.article-quote cite {
    display: block;
    text-align: right;
    font-size: 1rem;
    color: #777;
    font-style: normal;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(141, 27, 17, 0.3);
}

.highlight-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.highlight-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* 侧边栏样式 */
.sidebar-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 25px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-nav .nav-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-red);
    color: white;
    font-weight: 500;
}

.sidebar-nav .nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-link:hover i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .article-header {
        padding: 20px 15px 15px;
    }

    .article-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .article-meta {
        gap: 10px;
        font-size: 0.85rem;
    }

    .article-summary {
        padding: 20px;
    }

    .summary-box {
        padding: 20px;
    }

    .article-content {
        padding: 30px 20px;
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-quote {
        padding: 20px;
    }

    .article-quote p {
        font-size: 1.1rem;
    }

    .highlight-box {
        padding: 20px;
    }

    .sidebar-menu {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .sidebar-nav .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .article-title {
        font-size: 1.4rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .article-image img {
        height: 250px;
    }

    .container {
        padding: 0 10px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-detail {
    animation: fadeInUp 0.8s ease-out;
}