/**
 * 新闻动态 - 详情页样式
 */

/* ==========================================
   变量定义
========================================== */
:root {
    --news-primary: #1a5fb4;
    --news-primary-light: #3584e4;
    --news-primary-dark: #0f3a73;
    --news-text: #2d3748;
    --news-text-light: #718096;
    --news-bg-light: #f8fafc;
    --news-border: #e2e8f0;
    --news-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --news-radius: 12px;
    --news-transition: 0.3s ease;
}

/* ==========================================
   页面容器
========================================== */
.news-single-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ==========================================
   面包屑导航 - 顶部独立导航条
========================================== */
.news-breadcrumb-bar {
    width: 100%;
    padding: 10px 40px;
    background: #fff;
    border-bottom: 1px solid var(--news-border);
}

.news-breadcrumb-inner {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--news-text-light);
}

.news-breadcrumb-inner a {
    color: var(--news-primary);
    text-decoration: none;
    transition: opacity var(--news-transition);
}

.news-breadcrumb-inner a:hover {
    opacity: 0.8;
}

.news-breadcrumb-inner .breadcrumb-separator {
    margin: 0 8px;
    color: var(--news-border);
}

.news-breadcrumb-inner .current {
    color: var(--news-text);
    font-weight: 500;
}

/* ==========================================
   文章头部 - Hero区域
========================================== */
.news-single-header {
    padding: 50px 0 40px;
    text-align: center;
}

.news-single-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.news-single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: var(--news-text-light);
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.news-single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-single-meta-item i {
    font-size: 0.85rem;
    color: var(--news-primary);
}

.news-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--news-border);
}

/* ==========================================
   封面图
========================================== */
.news-single-featured {
    margin: 0 0 40px;
    border-radius: var(--news-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
}

.news-single-featured img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ==========================================
   文章内容
========================================== */
.news-single-body {
    background: #fff;
    border-radius: var(--news-radius);
    padding: 48px 56px;
    box-shadow: var(--news-shadow);
}

.news-single-body p {
    margin-bottom: 20px;
    line-height: 1.85;
    font-size: 1.05rem;
    color: var(--news-text);
}

.news-single-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--news-bg-light);
}

.news-single-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 32px 0 16px;
}

.news-single-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* WordPress 图片对齐类支持 */
.news-single-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.news-single-body .alignleft {
    float: left;
    margin-right: 24px;
}

.news-single-body .alignright {
    float: right;
    margin-left: 24px;
}

.news-single-body .wp-caption {
    max-width: 100%;
    text-align: center;
}

.news-single-body .wp-caption-text {
    font-size: 0.9rem;
    color: var(--news-text-light);
    margin-top: 8px;
    font-style: italic;
}

.news-single-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--news-primary);
    background: var(--news-bg-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--news-text-light);
}

.news-single-body a {
    color: var(--news-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--news-transition);
}

.news-single-body a:hover {
    border-bottom-color: var(--news-primary);
}

.news-single-body ul,
.news-single-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.news-single-body li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--news-text);
}

.news-single-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-single-body th,
.news-single-body td {
    border: 1px solid var(--news-border);
    padding: 12px 16px;
    text-align: left;
}

.news-single-body th {
    background: var(--news-bg-light);
    font-weight: 600;
    color: #1a202c;
}

/* ==========================================
   底部导航
========================================== */
.news-single-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--news-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid var(--news-border);
    border-radius: 8px;
    color: var(--news-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--news-transition);
}

.news-nav-btn:hover {
    border-color: var(--news-primary);
    color: var(--news-primary);
    transform: translateY(-2px);
    box-shadow: var(--news-shadow);
}

.news-nav-btn i {
    font-size: 0.8rem;
}

.news-nav-btn.next {
    flex-direction: row-reverse;
}

.news-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--news-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--news-transition);
}

.news-share-btn:hover {
    background: var(--news-primary-light);
    transform: translateY(-2px);
}

/* ==========================================
   返回列表入口
========================================== */
.news-back-to-list {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    border: 2px solid var(--news-primary);
    border-radius: 30px;
    color: var(--news-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--news-transition);
}

.news-back-link:hover {
    background: var(--news-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 95, 180, 0.25);
}

.news-back-link i {
    font-size: 0.85rem;
    transition: transform var(--news-transition);
}

.news-back-link:hover i {
    transform: translateX(-3px);
}

/* ==========================================
   相关推荐区块
========================================== */
.news-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--news-bg-light);
}

.news-related-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-related-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--news-primary);
    border-radius: 2px;
}

.news-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-related-card {
    background: #fff;
    border-radius: var(--news-radius);
    overflow: hidden;
    border: 1px solid var(--news-border);
    transition: all var(--news-transition);
}

.news-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.news-related-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.news-related-card-body {
    padding: 16px;
}

.news-related-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.news-related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-related-card-date {
    font-size: 0.8rem;
    color: var(--news-text-light);
}

/* ==========================================
   响应式设计
========================================== */
@media (max-width: 768px) {
    .news-single-header {
        padding: 40px 0 30px;
    }

    .news-single-title {
        font-size: 1.6rem;
    }

    .news-single-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .news-meta-divider {
        display: none;
    }

    .news-single-body {
        padding: 24px 20px;
    }

    .news-single-body p {
        font-size: 1rem;
    }

    .news-single-footer {
        flex-direction: column;
        gap: 12px;
    }

    .news-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .news-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .news-single-container {
        padding: 0 16px 40px;
    }

    .news-single-title {
        font-size: 1.35rem;
    }

    .news-single-featured {
        border-radius: 8px;
    }

    .news-single-featured img {
        aspect-ratio: 4 / 3;
    }
}