body,
html {
    background: #fdf6f6;
}

.news-detail-main {
    max-width: 1200px;
    margin: 180px auto 0 auto;
    display: flex;
    gap: 32px;
    min-height: 600px;
}

.news-detail-body {
    flex: 1 1 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 30px ;
    margin-bottom: 24px;
}

.news-header {
    margin-bottom: 32px;
}

.news-title {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.3;
}

.news-meta {
    font-size: 15px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-meta-sep {
    margin: 0 8px;
    color: #ccc;
}

.news-content-block {
    font-size: 16px;
    color: #222;
    line-height: 1.8;
}

.news-content-block p {
    margin-bottom: 18px;
}

.news-content-img {
    width: 100%;
    max-width: 700px;
    display: block;
    margin: 18px auto 6px auto;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.news-img-caption {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 18px;
    text-align: center;
}

.comments-section {
    background: #fafbfc;
    border-radius: 10px;
    margin-top: 40px;
    padding: 28px 24px 18px 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 18px;
}

.comments-count {
    font-size: 15px;
    color: #888;
    font-weight: normal;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.comment-form textarea {
    flex: 1;
    min-height: 48px;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    font-size: 15px;
    resize: vertical;
    background: #fff;
}

.comment-form button {
    background: #d7262b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form button:hover {
    background: #b81d22;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

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

.comment-item:hover {
    background: #f7f7fa;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 14px;
    object-fit: cover;
    background: #eee;
}

.comment-main {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: bold;
    color: #222;
    font-size: 15px;
}

.comment-date {
    font-size: 13px;
    color: #bbb;
}

.comment-content {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.7;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #888;
}

.comment-like {
    cursor: pointer;
    transition: color 0.2s;
}

.comment-like:hover {
    color: #d7262b;
}

.comment-reply {
    cursor: pointer;
    transition: color 0.2s;
}

.comment-reply:hover {
    color: #d7262b;
}

.comments-more {
    margin-top: 18px;
    text-align: center;
}

.comments-more a {
    color: #1976d2;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
}

.news-detail-side {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-block {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 20px 18px;
    margin-bottom: 0;
}

.side-block-title {
    font-size: 17px;
    font-weight: bold;
    color: #222;
    margin-bottom: 16px;
}

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

.side-list li {
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.side-list li:last-child {
    margin-bottom: 0;
}

.side-list li a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.side-list li a:hover {
    color: #d7262b;
}

/* 热门推荐序号列表 */
.hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
    background: #fafbfc;
    border-radius: 8px;
    padding: 8px 12px;
    transition: background 0.2s;
    position: relative;
}

.hot-list li:last-child {
    margin-bottom: 0;
}

.hot-list li:hover {
    background: #fbeaec;
}

.hot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #d7262b;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.hot-list li:nth-child(n+2) .hot-num {
    background: #f2f2f2;
    color: #888;
    font-weight: normal;
}

.hot-list li a {
    color: #222;
    text-decoration: none;
    flex: 1;
    transition: color 0.2s;
}

.hot-list li a:hover {
    color: #d7262b;
}

/* 相关推荐卡片 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(215, 38, 43, 0.04);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

.related-card:hover {
    background: #fbeaec;
    box-shadow: 0 4px 16px rgba(215, 38, 43, 0.10);
}

.related-card .related-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    background: #eee;
}

.related-info {
    padding: 10px 12px 12px 12px;
}

.related-info .related-title {
    font-size: 15px;
    color: #222;
    font-weight: 500;
    line-height: 1.5;
}

/* 分享按钮 */
.share-section {
    margin: 28px 0 10px 0;
    text-align: left;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #d7262b;
    border: 1.5px solid #d7262b;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.share-btn i {
    font-size: 16px;
}

.share-btn:hover {
    background: #d7262b;
    color: #fff;
    border-color: #d7262b;
}

.breadcrumb {
    font-size: 15px;
    color: #8a94a6;
    margin-bottom: 12px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb a {
    color: #8a94a6;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #d7262b;
}

.breadcrumb-sep {
    margin: 0 4px;
    color: #c0c4cc;
}

.breadcrumb-current {
    color: #222;
    font-weight: 500;
}

/* 分享按钮灰色风格 */
.btn-share {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: #8A94A6;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    gap: 4px;
    padding: 0;
    transition: color 0.2s;
}

.btn-share .icon-share {
    width: 28px;
    height: 28px;
    margin-right: 2px;
    vertical-align: middle;
}

.btn-share:hover {
    color: #d7262b;
}

.btn-share:hover .icon-share path {
    fill: #d7262b;
}

.btn-share .icon-share path {
    fill: #8A94A6;
    transition: fill 0.2s;
}

/* 点赞按钮样式 */
.btn-like {
    display: inline-flex;
    align-items: center;
    color: #8A94A6;
    font-size: 16px;
    margin-right: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-like .icon-like {
    margin-right: 4px;
}

.btn-like .like-count {
    margin-left: 2px;
}

.btn-like:hover {
    color: #d7262b;
}

/* 浏览数量样式 */
.view-count {
    display: inline-flex;
    align-items: center;
    color: #8A94A6;
    font-size: 16px;
}

.view-count .icon-view {
    margin-right: 4px;
}

/* 查看更多评论按钮样式 */
.more-comments-btn {
    width: 96%;
    margin: 32px auto 0 auto;
    padding: 16px 0;
    border-radius: 12px;
    background: #fff;
    color: #8A94A6;
    font-size: 18px;
    text-align: center;
    border: 1.5px solid #E5E7EB;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.more-comments-btn:hover {
    color: #d7262b;
    border-color: #d7262b;
}

/* 热门推荐序号样式 */
.hot-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-rank-num {
    display: inline-block;
    width: 19px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    background: #F3F4F6;
    color: #8A94A6;
    font-size: 16px;
    font-weight: 600;
    margin-right: 12px;
}

.hot-rank-num.active {
    background: #d7262b;
    color: #fff;
}

@media (max-width: 1000px) {
    .news-detail-main {
        flex-direction: column;
        gap: 0;
    }

    .news-detail-side {
        width: 100%;
        flex-direction: row;
        gap: 16px;
        margin-top: 32px;
    }
}

@media (max-width: 700px) {
    .news-detail-main {
        padding: 0 2px;
    }

    .news-detail-body {
        padding: 16px 4px 12px 4px;
    }

    .news-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .news-meta {
        font-size: 13px;
        gap: 6px;
    }

    .news-content-block {
        font-size: 14px;
    }

    .news-content-img {
        max-width: 100%;
        height: auto;
    }

    .comments-section {
        padding: 10px 2px 8px 2px;
    }

    .news-detail-side {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .side-block {
        padding: 10px 4px;
    }

    .related-img {
        width: 40px;
        height: 40px;
    }
}