/* ============================================
   新闻详情页面样式 - 现代工业风格设计
   文件路径: /static/default/web/whl/wShowNews.css
   设计规范: 与TONRY品牌视觉系统保持一致
   主色调: #ea5a2d (橙色) | 辅助色: #1a365d (深蓝)
   ============================================ */

/* ============================================
   页面主容器
   ============================================ */
.news-show-w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   面包屑导航区域
   ============================================ */
.news-show-w .breadcrumb-section {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-show-w .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #718096;
}

.news-show-w .breadcrumb a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-show-w .breadcrumb a:hover {
    color: #ea5a2d;
}

.news-show-w .breadcrumb .separator {
    color: #a0aec0;
    font-size: 12px;
}

.news-show-w .breadcrumb .current {
    color: #ea5a2d;
    font-weight: 600;
}

/* ============================================
   文章头部区域
   ============================================ */
.news-show-w .article-header {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.news-show-w .article-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #ea5a2d, #ff7a52);
}

.news-show-w .article-title {
    font-size: 35px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.news-show-w .article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    color: #718096;
    font-size: 16px;
}

.news-show-w .article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-show-w .article-meta .meta-item i {
    color: #ea5a2d;
    font-size: 16px;
}

.news-show-w .article-meta .meta-item .label {
    color: #a0aec0;
}

.news-show-w .article-meta .meta-item .value {
    color: #4a5568;
    font-weight: 500;
}

.meta-item .fa-calendar-alt:before {
    position: relative;
    top: -2px;
}

/* ============================================
   文章内容区域
   ============================================ */
.news-show-w .article-content {
    font-size: 20px;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 60px;
}

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

.news-show-w .article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
    position: relative;
}

.news-show-w .article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ea5a2d, #ff7a52);
}

.news-show-w .article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 32px 0 16px;
}

.news-show-w .article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    margin: 24px 0 12px;
}

.news-show-w .article-content ul,
.news-show-w .article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.news-show-w .article-content li {
    margin-bottom: 10px;
    position: relative;
}

.news-show-w .article-content ul li {
    list-style: none;
}

.news-show-w .article-content ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ea5a2d, #ff7a52);
    border-radius: 50%;
}

.news-show-w .article-content ol li {
    padding-left: 8px;
}

.news-show-w .article-content blockquote {
    margin: 30px 0;
    padding: 24px 30px;
    background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
    border-left: 4px solid #ea5a2d;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4a5568;
    position: relative;
}

.news-show-w .article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: #ea5a2d;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.news-show-w .article-content a {
    color: #ea5a2d;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-show-w .article-content a:hover {
    border-bottom-color: #ea5a2d;
}

.news-show-w .article-content strong {
    color: #1a202c;
    font-weight: 600;
}

.news-show-w .article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.news-show-w .article-content th,
.news-show-w .article-content td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.news-show-w .article-content th {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.news-show-w .article-content tr:hover {
    background: #f7fafc;
}

.news-show-w .article-content tr:last-child td {
    border-bottom: none;
}

/* ============================================
   富文本图片样式 - 响应式适配
   ============================================ */
.news-show-w .article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-show-w .article-content img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
}

.news-show-w .article-content figure {
    margin: 30px 0;
    text-align: center;
}

.news-show-w .article-content figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: #718096;
    font-style: italic;
}

.news-show-w .article-content .image-left {
    float: left;
    margin: 0 24px 16px 0;
    max-width: 50%;
}

.news-show-w .article-content .image-right {
    float: right;
    margin: 0 0 16px 24px;
    max-width: 50%;
}

/* 图片懒加载占位符 */
.news-show-w .article-content img[data-src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 200px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.news-show-w .article-content img.loaded {
    animation: none;
    background: transparent;
}

/* ============================================
   上一篇/下一篇导航
   ============================================ */
.news-show-w .article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.news-show-w .nav-item {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.news-show-w .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ea5a2d, #ff7a52);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.news-show-w .nav-item:hover {
    border-color: #ea5a2d;
    box-shadow: 0 10px 25px -5px rgba(234, 90, 45, 0.15);
    transform: translateY(-3px);
}

.news-show-w .nav-item:hover::before {
    transform: scaleY(1);
}

.news-show-w .nav-item.disabled {
    background: #f7fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.6;
}

.news-show-w .nav-item.disabled:hover {
    transform: none;
    box-shadow: none;
}

.news-show-w .nav-item.disabled::before {
    display: none;
}

.news-show-w .nav-label {
    font-size: 12px;
    font-weight: 600;
    color: #ea5a2d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-show-w .nav-item.prev .nav-label::before {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.news-show-w .nav-item.next .nav-label::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.news-show-w .nav-item.next {
    text-align: right;
    align-items: flex-end;
}

.news-show-w .nav-item.next .nav-label {
    flex-direction: row-reverse;
}

.news-show-w .nav-title {
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-show-w .nav-item:hover .nav-title {
    color: #ea5a2d;
}

.news-show-w .nav-item.disabled .nav-title {
    color: #a0aec0;
}

/* ============================================
   返回按钮
   ============================================ */
.news-show-w .back-section {
    text-align: center;
    margin-top: 50px;
}

.news-show-w .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ea5a2d 0%, #ff7a52 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(234, 90, 45, 0.3);
}

.news-show-w .btn-back::before {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
}

.news-show-w .btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(234, 90, 45, 0.4);
}

.news-show-w .btn-back:active {
    transform: translateY(-1px);
}

/* ============================================
   分享按钮区域
   ============================================ */
.news-show-w .share-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.news-show-w .share-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.news-show-w .share-buttons {
    display: flex;
    gap: 12px;
}

.news-show-w .share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f7fafc;
    color: #4a5568;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.news-show-w .share-btn:hover {
    background: #ea5a2d;
    color: #fff;
    border-color: #ea5a2d;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(234, 90, 45, 0.3);
}

/* ============================================
   响应式设计 - 平板设备
   ============================================ */
@media (max-width: 991px) {
    .news-show-w {
        padding: 40px 20px 60px;
    }

    .news-show-w .article-title {
        font-size: 28px;
    }

    .news-show-w .article-meta {
        gap: 20px;
    }

    .news-show-w .article-content {
        font-size: 15px;
    }

    .news-show-w .article-content h2 {
        font-size: 22px;
    }

    .news-show-w .article-content h3 {
        font-size: 18px;
    }

    .news-show-w .article-navigation {
        gap: 20px;
    }

    .news-show-w .nav-item {
        padding: 20px;
    }
}

/* ============================================
   响应式设计 - 移动设备
   ============================================ */
@media (max-width: 767px) {
    .news-show-w {
        padding: 30px 15px 50px;
    }

    .news-show-w .breadcrumb-section {
        margin-bottom: 30px;
        padding: 15px 0;
    }

    .news-show-w .breadcrumb {
        font-size: 13px;
    }

    .news-show-w .article-header {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .news-show-w .article-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .news-show-w .article-meta {
        flex-direction: column;
        gap: 12px;
        font-size: 13px;
    }

    .news-show-w .article-content {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 40px;
    }

    .news-show-w .article-content p {
        margin-bottom: 16px;
    }

    .news-show-w .article-content h2 {
        font-size: 20px;
        margin: 32px 0 16px;
    }

    .news-show-w .article-content h3 {
        font-size: 17px;
        margin: 24px 0 12px;
    }

    .news-show-w .article-content img {
        margin: 20px auto;
        border-radius: 8px;
    }

    .news-show-w .article-content .image-left,
    .news-show-w .article-content .image-right {
        float: none;
        margin: 20px auto;
        max-width: 100%;
    }

    .news-show-w .article-content blockquote {
        padding: 20px;
        margin: 24px 0;
    }

    .news-show-w .article-content blockquote::before {
        font-size: 40px;
        top: 5px;
        left: 15px;
    }

    .news-show-w .article-content table {
        font-size: 14px;
    }

    .news-show-w .article-content th,
    .news-show-w .article-content td {
        padding: 10px 12px;
    }

    .news-show-w .article-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .news-show-w .nav-item.next {
        text-align: left;
        align-items: flex-start;
    }

    .news-show-w .nav-item.next .nav-label {
        flex-direction: row;
    }

    .news-show-w .nav-item.next .nav-label::after {
        content: none;
    }

    .news-show-w .nav-item.next .nav-label::before {
        content: '\f061';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
    }

    .news-show-w .share-section {
        flex-direction: column;
        gap: 15px;
    }

    .news-show-w .btn-back {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/* ============================================
   响应式设计 - 小屏移动设备
   ============================================ */
@media (max-width: 480px) {
    .news-show-w {
        padding: 20px 12px 40px;
    }

    .news-show-w .article-title {
        font-size: 20px;
    }

    .news-show-w .article-content {
        font-size: 14px;
    }

    .news-show-w .article-content h2 {
        font-size: 18px;
    }

    .news-show-w .article-content h3 {
        font-size: 16px;
    }

    .news-show-w .nav-item {
        padding: 16px;
    }

    .news-show-w .nav-title {
        font-size: 14px;
    }
}

/* ============================================
   打印样式
   ============================================ */
@media print {
    .news-show-w {
        padding: 0;
        max-width: 100%;
    }

    .news-show-w .breadcrumb-section,
    .news-show-w .share-section,
    .news-show-w .btn-back,
    .news-show-w .article-navigation {
        display: none;
    }

    .news-show-w .article-header {
        border-bottom: 1px solid #ccc;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .news-show-w .article-title {
        font-size: 24px;
    }

    .news-show-w .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }

    .news-show-w .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ============================================
   平滑滚动效果
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   图片查看器遮罩层
   ============================================ */
.news-show-w .image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.news-show-w .image-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-show-w .image-viewer-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.news-show-w .image-viewer-overlay.active img {
    transform: scale(1);
}

.news-show-w .image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-show-w .image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}