/* 文明图鉴详情页面专用样式 */

/* Banner区域 */
.tuwen-detail-banner {
    margin-top: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tuwen-detail-banner .banner-image {
    width: 1200px;
    height: 300px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tuwen-detail-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}


/* 面包屑样式 - 参考news-detail.html */
.tuwen-detail-banner + .breadcrumb {
    margin-bottom: 10px;
    padding-bottom: 15px;
}

/* 正文内容区域 */
.tuwen-detail-main {
    padding: 15px 0 60px 0;
    background-color: transparent;
    position: relative;
}

.tuwen-detail-main > * {
    position: relative;
    z-index: 1;
}

.detail-title {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.4;
    text-align: center;
}

/* 分享图标侧边栏 */
.share-sidebar {
    position: fixed;
    left: calc((100vw - 1200px) / 2 - 70px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (max-width: 1240px) {
    .share-sidebar {
        left: 20px;
    }
}

.share-title {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.share-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-item {
    position: relative;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-link i {
    font-size: 20px;
    line-height: 1;
}

.share-link.wechat:hover {
    background-color: #07c160;
    color: white;
    border-color: #07c160;
}

.share-link.bilibili:hover {
    background-color: #fb7299;
    color: white;
    border-color: #fb7299;
}

.share-link.douyin:hover {
    background-color: #000000;
    color: white;
    border-color: #000000;
}

.share-link.weibo:hover {
    background-color: #e6162d;
    color: white;
    border-color: #e6162d;
}

.tuwen-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 正文内容 */
.detail-body {
    color: var(--text-color);
    line-height: 1.8;
}

.content-block {
    margin-bottom: 40px;
}

.content-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    line-height: 1.8;
    text-align: justify;
}

/* 中间穿插的图片 */
.content-image-center {
    width: 100%;
    margin: 40px 0;
    text-align: center;
}

.content-image-center img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 上一篇/下一篇导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-prev,
.nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
}

.nav-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 400;
}

.nav-title {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-prev {
    text-align: left;
}

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

/* 响应式设计 */
@media (max-width: 1200px) {
    .tuwen-detail-banner .banner-image {
        width: 100%;
        max-width: 1200px;
    }

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

@media (max-width: 768px) {
    .tuwen-detail-banner {
        margin-top: 0;
    }

    .tuwen-detail-banner .banner-image {
        width: 100%;
        max-width: 1200px;
        height: 250px;
    }

    .share-sidebar {
        display: none;
    }

    .tuwen-detail-main {
        padding: 10px 0 40px 0;
    }

    .detail-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .tuwen-detail-content {
        padding: 0 20px;
    }

    .content-text {
        font-size: 15px;
    }

    .content-image-center {
        margin: 30px 0;
    }

    .content-block {
        margin-bottom: 30px;
    }

    .article-navigation {
        flex-direction: column;
        margin-top: 40px;
        padding-top: 25px;
    }

    .nav-prev,
    .nav-next {
        width: 100%;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .tuwen-detail-banner .banner-image {
        width: 100%;
        max-width: 1200px;
        height: 200px;
    }

    .detail-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .tuwen-detail-content {
        padding: 0 15px;
    }

    .content-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .content-image-center {
        margin: 25px 0;
    }

    .content-block {
        margin-bottom: 25px;
    }

    .article-navigation {
        margin-top: 30px;
        padding-top: 20px;
    }

    .nav-prev,
    .nav-next {
        padding: 15px;
    }

    .nav-label {
        font-size: 13px;
    }

    .nav-title {
        font-size: 15px;
    }
}
