
.zonkvm-hero {
    background-color: #0d6efd !important;
}
.text-shadow {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.zonkvm-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}
.zonkvm-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
.zonkvm-content p {
    margin-bottom: 1rem;
}

/* 分享弹窗 */
.zonkvm-share-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 999;
    display: none;
    overflow: hidden;
}
.zonkvm-share-popup.show {
    display: block;
}
.zonkvm-share-popup .share-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.zonkvm-share-popup .share-item:hover {
    background: #f7f7f7;
}
.zonkvm-share-popup .share-item:nth-child(1) { color: #07c160; }
.zonkvm-share-popup .share-item:nth-child(2) { color: #e6162d; }
.zonkvm-share-popup .share-item:nth-child(3) { color: #12b7f5; }
.zonkvm-share-popup .share-item:nth-child(4) { color: #666; }

/* hover 动效 */
.hov-shadow:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

/* 浮动提示 Toast */
#toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
#toast.show {
    opacity: 1;
}
#toast.success {
    background-color: #28a745;
}
#toast.error {
    background-color: #dc3545;
}
#toast.info {
    background-color: #17a2b8;
}

/* 微信二维码弹窗 */
.wechat-qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.wechat-qrcode-modal.show {
    opacity: 1;
    visibility: visible;
}
.qrcode-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 320px;
    width: 90%;
}
.qrcode-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}
.qrcode-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}
.qrcode-img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
}
.close-qrcode {
    padding: 6px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}
/* 新闻横幅 - 修复版 */
.news-banner .jumbotron {
    height: 280px; /* 可根据需要调整高度 */
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}


.news-banner .container {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    padding-right: 15px;
}

.news-banner .decs {
    color: #000;
    max-width: 600px; /* 控制描述文字最大宽度 */
    margin-top:120px;
}

.news-banner .decs h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-banner .desc-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #626266;
    margin: 0;
    word-break: keep-all;
    white-space: normal;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .news-banner .jumbotron {
        height: 240px;
    }
    .news-banner .decs h1 {
        font-size: 2rem;
    }
    .news-banner .desc-text {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* ============================================================
   新闻列表页 /news/ 专用（前缀 .news-page / .news-）
   about.css 里同名 .zonkvm-news-* 规则靠提高选择器权重覆盖
   ============================================================ */
.news-page {
    padding: 48px 0 64px;
    background: #f7f9fc;
}

/* 左侧分类侧栏：覆盖 about.css 中 height:100vh / top:0 的写法 */
.news-page .zonkvm-news-sidebar {
    position: sticky;
    top: 150px;
    height: auto;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 0;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
}
.news-page .zonkvm-news-sidebar .nav {
    /* Bootstrap 的 .nav 默认是 flex 横向排列，这里必须改回纵向 */
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 侧栏模块（分类 / 热门阅读） */
.news-side-block {
    padding: 16px 14px;
}
.news-side-block + .news-side-block {
    border-top: 1px solid #eef1f5;
}
.news-side-title {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.1px;
    color: #101828;
}
.news-side-title i {
    flex: none;
    margin-right: 8px;
    font-size: 13px;
    color: #0055ff;
}

/* 热门阅读 */
.news-hot {
    margin: 0;
    padding: 0;
    list-style: none;
}
.news-hot li + li {
    margin-top: 2px;
}
.news-hot a {
    display: flex;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.news-hot a:hover {
    background: #f4f7fc;
    color: #0055ff;
    text-decoration: none;
}
.news-hot .idx {
    flex: none;
    width: 18px;
    height: 18px;
    margin-right: 9px;
    border-radius: 4px;
    background: #eef1f5;
    color: #8a94a6;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
.news-hot li:nth-child(1) .idx {
    background: #0055ff;
    color: #fff;
}
.news-hot li:nth-child(2) .idx {
    background: #4d8cff;
    color: #fff;
}
.news-hot li:nth-child(3) .idx {
    background: #8fb4ff;
    color: #fff;
}
.news-hot .tt {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-page .zonkvm-news-sidebar .nav li + li {
    margin-top: 2px;
}
.news-page .news-item-children {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border-left: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #495057;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}
.news-page .news-item-children:hover {
    padding-left: 14px;
    background: #f4f7fc;
    color: #0055ff;
    text-decoration: none;
}
.news-page .zonkvm-news-sidebar .nav li.active .news-item-children {
    background: #eef4ff;
    color: #0055ff;
    font-weight: 600;
}
.news-page .news-cat-ico {
    flex: none;
    margin-right: 9px;
    font-size: 12px;
}

/* 右侧内容区 */
.news-page .zonkvm-news-main {
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 10px;
}
.news-list-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef1f5;
}
.news-list-hd h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.2px;
    color: #101828;
}
.news-list-hd h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    margin-right: 10px;
    border-radius: 2px;
    background: #0055ff;
    vertical-align: -3px;
}
.news-list-count {
    font-size: 13px;
    color: #9ca3af;
}

/* 列表项 */
.news-page .zonkvm-news-item {
    display: flex;
    align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid #eef1f5;
}
.news-page .zonkvm-news-item:last-child {
    border-bottom: 0;
}
.news-date {
    flex: none;
    width: 62px;
    margin-right: 18px;
    padding: 8px 0;
    text-align: center;
    background: #f7f9fc;
    border: 1px solid #eef1f5;
    border-radius: 8px;
}
.news-date .nd {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    color: #0055ff;
}
.news-date .nm {
    margin-top: 2px;
    font-size: 11.5px;
    color: #9ca3af;
}
.news-cnt {
    flex: 1 1 auto;
    min-width: 0;
}
.news-page .zonkvm-news-title {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #101828;
    text-decoration: none;
    transition: color .2s ease;
}
.news-page .zonkvm-news-title:hover {
    color: #0055ff;
    text-decoration: none;
}
.news-page .zonkvm-news-desc {
    margin: 0 0 10px;
    font-size: 13.5px;
    line-height: 1.8;
    color: #6b7280;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-page .zonkvm-news-time {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    color: #9ca3af;
}
.news-page .zonkvm-news-time > span {
    margin-right: 18px;
}
.news-page .zonkvm-news-time i {
    margin-right: 5px;
}
.news-read {
    margin-left: auto;
    color: #0055ff;
    font-size: 12.5px;
    text-decoration: none;
}
.news-read:hover {
    color: #0044cc;
    text-decoration: none;
}
.news-read i {
    display: inline-block;
    margin-left: 2px;
    transition: transform .2s ease;
}
.news-page .zonkvm-news-item:hover .news-read i {
    transform: translateX(3px);
}

/* 空状态 */
.news-empty {
    padding: 70px 0;
    text-align: center;
}
.news-empty i {
    display: block;
    margin-bottom: 14px;
    font-size: 42px;
    color: #d5dbe5;
}
.news-empty p {
    margin: 0;
    font-size: 14px;
    color: #b0b7c3;
}

.news-page .news-pagination {
    margin-top: 28px;
}

@media (max-width: 991px) {
    .news-page .zonkvm-news-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 20px;
    }
    .news-page .zonkvm-news-sidebar .nav {
        display: flex;
        flex-wrap: wrap;
    }
    .news-page .zonkvm-news-sidebar .nav li {
        margin: 0 6px 6px 0;
    }
    .news-page .zonkvm-news-sidebar .nav li + li {
        margin-top: 0;
    }
}
@media (max-width: 575px) {
    .news-page {
        padding: 28px 0 40px;
    }
    .news-page .zonkvm-news-main {
        padding: 18px 16px;
    }
    .news-date {
        display: none;
    }
    .news-list-hd h2 {
        font-size: 17px;
    }
}

/* ============================================================
   新闻详情页 /news/details
   ============================================================ */

/* 面包屑（做成浅色圆角条，与页面卡片同一套语言） */
.news-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    font-size: 13px;
    color: #9ca3af;
}
.news-crumb a {
    display: inline-flex;
    align-items: center;
    color: #4b5563;
    text-decoration: none;
    transition: color .2s ease;
}
.news-crumb a:hover {
    color: #0055ff;
    text-decoration: none;
}
.news-crumb a i {
    margin-right: 6px;
    font-size: 12px;
    color: #8a94a6;
    transition: color .2s ease;
}
.news-crumb a:hover i {
    color: #0055ff;
}
.news-crumb .sep {
    margin: 0 9px;
    font-size: 11px;
    color: #c4cbd6;
}
.news-crumb span {
    color: #101828;
    font-weight: 600;
}

/* 正文头部：标题 + 元信息 */
.news-page .zonkvm-news-detail {
    padding: 0;
    background: transparent;
}
.news-page .zonkvm-news-detail-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.3px;
    color: #101828;
}
.news-page .zonkvm-news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
    color: #9ca3af;
}
.news-page .zonkvm-news-detail-meta span {
    display: inline-flex;
    align-items: center;
    margin: 0 22px 4px 0;
}
.news-page .zonkvm-news-detail-meta i {
    margin-right: 6px;
}
.news-page .zonkvm-news-detail-meta a {
    color: #0055ff;
    text-decoration: none;
}
.news-page .zonkvm-news-detail-meta a:hover {
    text-decoration: underline;
}

/* 正文排版（about.css 已有基础规则，这里补细节并提高权重） */
.news-page .zonkvm-news-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
}
.news-page .zonkvm-news-detail-content p {
    margin: 0 0 1.1em;
}
.news-page .zonkvm-news-detail-content a {
    color: #0055ff;
    text-decoration: underline;
}
.news-page .zonkvm-news-detail-content a:hover {
    color: #0044cc;
}
.news-page .zonkvm-news-detail-content img {
    margin: 18px 0;
    border-radius: 8px;
}
.news-page .zonkvm-news-detail-content h2 {
    margin: 30px 0 14px;
    padding-left: 12px;
    border-left: 3px solid #0055ff;
    font-size: 18px;
    font-weight: 700;
    color: #101828;
}
.news-page .zonkvm-news-detail-content h3 {
    margin: 24px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #101828;
}
.news-page .zonkvm-news-detail-content ul,
.news-page .zonkvm-news-detail-content ol {
    margin: 0 0 1.1em;
    padding-left: 22px;
}
.news-page .zonkvm-news-detail-content li {
    margin-bottom: .4em;
}
.news-page .zonkvm-news-detail-content blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    background: #f7f9fc;
    border-left: 3px solid #c9d8f5;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
}
.news-page .zonkvm-news-detail-content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    font-size: 14px;
}
.news-page .zonkvm-news-detail-content th,
.news-page .zonkvm-news-detail-content td {
    padding: 9px 12px;
    border: 1px solid #e9edf3;
}
.news-page .zonkvm-news-detail-content th {
    background: #f7f9fc;
    font-weight: 600;
    color: #101828;
}
.news-page .zonkvm-news-detail-content code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5fe;
    color: #0055ff;
    font-size: 13px;
}
.news-page .zonkvm-news-detail-content pre {
    padding: 14px 16px;
    background: #0f1b2d;
    color: #d7e3f4;
    border-radius: 8px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.7;
}
.news-page .zonkvm-news-detail-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

/* 底部操作条（点赞 / 分享） */
.news-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef1f5;
}
.news-actions .btn {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
}

/* 上一篇 / 下一篇（两块并排卡片） */
.news-page .zonkvm-news-prevnext {
    display: flex;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #eef1f5;
}
.news-page .zonkvm-news-prevnext .pn-item {
    flex: 1 1 0;
    min-width: 220px;
    padding: 12px 16px;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.news-page .zonkvm-news-prevnext .pn-item.next {
    margin-left: 12px;
    text-align: right;
}
/* 只有一条时占满整行并左对齐 */
.news-page .zonkvm-news-prevnext .pn-item:only-child {
    margin-left: 0;
    text-align: left;
}
.news-page .zonkvm-news-prevnext .pn-item:hover {
    border-color: #bfd7ff;
    box-shadow: 0 8px 20px -10px rgba(0, 85, 255, .3);
}
.news-page .zonkvm-news-prevnext .lb {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #9ca3af;
}
.news-page .zonkvm-news-prevnext .lb i {
    font-size: 11px;
}
.news-page .zonkvm-news-prevnext .pn-item a {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.6;
    color: #374151;
    text-decoration: none;
    transition: color .2s ease;
}
.news-page .zonkvm-news-prevnext .pn-item:hover a {
    color: #0055ff;
}

/* 返回列表 */
.news-back {
    margin-top: 22px;
}
.news-back a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s ease;
}
.news-back a:hover {
    color: #0055ff;
    text-decoration: none;
}
.news-back i {
    margin-right: 5px;
}

@media (max-width: 575px) {
    .news-page .zonkvm-news-detail-title {
        font-size: 19px;
    }
    .news-actions {
        justify-content: flex-start;
    }
    .news-actions > * {
        margin: 0 10px 10px 0;
    }
    .news-page .zonkvm-news-prevnext .pn-item {
        flex: 1 1 100%;
        min-width: 0;
    }
    .news-page .zonkvm-news-prevnext .pn-item.next {
        margin: 10px 0 0;
        text-align: left;
    }
}