/* 遮罩层，覆盖整个页面 */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    /* 白色半透明 */
    z-index: 9999;
    pointer-events: all;
    /* 禁止点击页面其他元素 */
}

/* 加载内容区域 */
#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #333;
    text-align: center;
}

/* 简单的加载动画 */
.spinner {
    margin: 0 auto 10px;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 全局样式 */
.vspinp-container {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    /* 加宽容器适应分栏 */
    margin: 0 auto;
    padding: 20px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    /* 启用弹性布局 */
    gap: 30px;
    /* 主内容和侧边栏间距 */
    min-height: 50vh;
    /* background: white; */
}

/* 主内容区域 */
.main-content {
    flex: 7;
    /* 主内容占7份 */
}

/* 侧边栏 */
.sidebar {
    /* flex: 3;  */
    /* padding-top: 20px; */
}

/* 头部信息 */
.vspinp-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.vspinp-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.vspinp-meta {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 14px;
}

/* 内容区域 */
.vspinp-content {
    padding: 0 10px;
    margin-bottom: 30px;
}

.vspinp-section-title {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0 15px 0;
    color: #3498db;
}

.vspinp-feature-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.vspinp-feature-item {
    margin-bottom: 15px;
    padding-left: 10px;
}

/* 总结部分 */
.vspinp-summary {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-top: 30px;
    font-style: italic;
}

.new-breadcrumb {
    margin: 20px 0;
}

/* 上一篇下一篇导航 */
.news-nav {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 20px 0;
}

.news-nav-item {
    display: flex;
    align-items: center;
}

.news-nav-link {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.news-nav-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 相关新闻样式 - 重点：强制溢出隐藏 */
.related-news {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 5px;
}

.related-news-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    /* margin-bottom: 15px; */
    /* padding-bottom: 10px; */
}

.related-news-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #3498db;
}

.hot-recommend-more {
    color: #333;
}

.related-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-news-item {
    /* padding: 10px 0; */
    padding: 0;
    border-bottom: 1px dashed #e0e0e0;
    /* 强制限制高度，确保溢出隐藏生效 */
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 300px;
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    /* 核心：强制单行溢出隐藏（优先级最高） */
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 40px;
}

.related-news-link:hover {
    color: #3498db;
    padding-left: 5px;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .vspinp-container {
        flex-direction: column;
    }
}

/* 面包屑 - 干净简约 */
.new-breadcrumb {
    max-width: 1200px !important;
    margin: 15px auto !important;
    padding: 12px 24px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #edf0f5 !important;
    font-size: 14px;
    color: #4e5969;
}

.new-breadcrumb a {
    color: #1e6f9f;
    text-decoration: none;
}

.new-breadcrumb a:hover {
    text-decoration: underline;
}

/* 主容器 - 两栏布局 */
.vspinp-container {
    max-width: 1200px !important;
    /* margin: 0 auto 40px !important; */
    display: flex !important;
    gap: 15px !important;
    padding: 0 !important;
}

/* 左侧主内容区 - 白底卡片 */
.main-content {
    flex: 1 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 32px 36px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #eef2f6 !important;
}

/* 标题 */
.vspinp-header {
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #f0f2f5 !important;
}

.vspinp-title {
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
}

.vspinp-meta {
    display: flex;
    gap: 24px;
    color: #8a9bb5 !important;
    font-size: 0.9rem;
}

.vspinp-meta span {
    background: transparent !important;
    padding: 0 !important;
}

/* 正文内容 */
.vspinp-content {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #2d3a4f !important;
    margin-bottom: 40px !important;
}

.vspinp-content p {
    margin-bottom: 1.2rem;
}

.vspinp-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* 上一篇/下一篇导航 */
.news-nav {
    margin-top: 40px !important;
    padding-top: 24px !important;
    border-top: 1px solid #f0f2f5 !important;
    display: flex;
    gap: 14px;
}

.news-nav-item {
    font-size: 0.95rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-nav-item span {
    color: #8a9bb5;
    min-width: 60px;
}

.news-nav-link {
    color: #1e6f9f !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    max-width: 600px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-nav-link:hover {
    color: #0a4b78 !important;
    text-decoration: underline;
}

/* 右侧边栏 */
.sidebar {
    /* width: 280px !important; */
    flex-shrink: 0;
}

.related-news {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid #eef2f6 !important;
}

.related-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.related-news-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

.hot-recommend-more {
    color: #1e6f9f !important;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.hot-recommend-more:hover {
    text-decoration: underline;
}

.related-news-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.related-news-item {
    margin-bottom: 14px !important;
    padding: 0 !important;
    border-bottom: 1px dashed #edf2f8;
    padding-bottom: 12px !important;
}

.related-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-news-link {
    color: #3d4e6b !important;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    transition: color 0.15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-news-link:hover {
    color: #1e6f9f !important;
}

/* 响应式 */
@media (max-width: 1000px) {
    .vspinp-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100% !important;
    }
}

