.main-content {
    background-color:white;
    border-radius:8px;
    box-shadow:0 3px 10px rgba(0, 0, 0, 0.08);
    overflow:hidden;
    margin-bottom:40px;
}

.article-header {
    padding:30px;
    border-bottom:1px solid #e2e8f0;
    position: relative;
}

.doc-badge {
    background-color: #f97316;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.news-categories {
    display:flex;
    gap:10px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.news-category-btn {
    background:#f0f9ff;
    color:#0369a1;
    padding:8px 16px;
    border-radius:20px;
    font-size:14px;
    text-decoration:none;
    transition:all 0.3s;
    border:1px solid #e0f2fe;
}

.news-category-btn:hover, .news-category-btn.active {
    background:#0ea5e9;
    color:white;
    border-color:#0ea5e9;
}

.article-title {
    font-size:28px;
    font-weight:600;
    color:#1a365d;
    margin-bottom:15px;
    line-height:1.3;
}

.article-summary {
    color:#64748b;
    font-size:16px;
    line-height:1.6;
    border-left:3px solid #0ea5e9;
    padding-left:15px;
    margin-bottom:15px;
}

.article-meta {
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.article-date {
    color:#64748b;
    font-size:14px;
}

.article-views {
    color:#94a3b8;
    font-size:14px;
    display:flex;
    align-items:center;
}

.article-body {
    padding:30px;
}

.article-wrap {
    display:grid;
    /* 原代码：grid-template-columns:2fr 1fr; */
    grid-template-columns:1fr 420px; /* 左侧自适应，右侧固定320px */
    gap:30px;
    /* 新增：防止网格溢出容器 */
    width: 100%;
    box-sizing: border-box;
}

@media (max-width:768px) {
    /* 其他样式不变 */
    .article-wrap {
        grid-template-columns:1fr; /* 移动端单列，宽度100% */
    }
}

.article-content {
    width:100%;
    margin:0 auto;
}

.article-content p {
    margin-bottom:20px;
    font-size:16px;
    line-height:1.8;
    color:#475569;
}

.article-content h2 {
    font-size:22px;
    color:#1a365d;
    margin:30px 0 15px;
    padding-bottom:10px;
    border-bottom:1px solid #e2e8f0;
}

.article-content h3 {
    font-size:18px;
    color:#1a365d;
    margin:25px 0 10px;
}

.article-content ul, .article-content ol {
    margin:15px 0;
    padding-left:20px;
}

.article-content li {
    margin-bottom:8px;
}

.article-content blockquote {
    background:#f8fafc;
    border-left:4px solid #0ea5e9;
    padding:15px 20px;
    margin:20px 0;
    font-style:italic;
    color:#475569;
}

.article-content img{
    margin:0 auto;
    display:block;
    max-width:100%;
    height:auto
}

.article-footer {
    background:#f8fafc;
    padding:20px 30px;
    border-top:1px solid #e2e8f0;
}

.related-news {
    padding:30px;
    border-top:1px solid #e2e8f0;
}

.related-news h3 {
    font-size:20px;
    color:#1a365d;
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:2px solid #0ea5e9;
}

.related-list {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
    gap:20px;
}

.related-item {
    display:flex;
    align-items:center;
    padding:15px;
    border:1px solid #e2e8f0;
    border-radius:6px;
    transition:all 0.3s;
}

.related-item:hover {
    border-color:#0ea5e9;
    box-shadow:0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-category {
    background:#f0f9ff;
    color:#0369a1;
    padding:3px 8px;
    border-radius:12px;
    font-size:11px;
    margin-bottom:5px;
}

.related-title {
    font-weight:500;
    color:#1a365d;
    margin-bottom:5px;
}

.related-date {
    color:#94a3b8;
    font-size:12px;
}

/* 右侧板块样式 */
.sidebar-panel {
    background:white;
    border-radius:8px;
    box-shadow:0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom:20px;
    border:1px solid #e2e8f0;
}

.panel-header {
    padding:15px 20px;
    border-bottom:1px solid #e2e8f0;
    background:#f8fafc;
}

.panel-header h3 {
    font-size:16px;
    color:#1a365d;
    margin:0;
    font-weight:600;
}

.panel-body {
    padding:20px;
}

.update-list {
    list-style:none;
}

.update-item {
    padding:10px 0;
    border-bottom:1px solid #f1f5f9;
}

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

.update-title {
    font-size:14px;
    color:#475569;
    margin-bottom:4px;
    line-height:1.4;
}

.update-title a {
    color:inherit;
    text-decoration:none;
}

.update-title a:hover {
    color:#0ea5e9;
}

.update-date {
    font-size:12px;
    color:#94a3b8;
}

.update-container {
    max-height:80px;
    overflow:hidden;
    /*border:1px solid #e2e8f0;*/
    border-radius:4px;
    padding:10px;
    position:relative;
}

.scrolling-updates {
    position:relative;
    animation:scrollUpdates 30s linear infinite;
}

@keyframes scrollUpdates {
    0% {
        top:0;
    }
    100% {
        top:-600px;
    }
}

.update-container:hover .scrolling-updates {
    animation-play-state:paused;
}

.manual-list {
    list-style:none;
    padding: 0; /* 新增：清除默认内边距，避免宽度偏差 */
    margin: 0; /* 新增：清除默认外边距 */
}

.manual-item {
    display:flex;
    align-items:flex-start; /* 改为顶部对齐，避免文字行高影响图标位置 */
    padding:10px 0;
    border-bottom:1px solid #f1f5f9;
    width: 100%; /* 新增：强制占满父容器宽度 */
    box-sizing: border-box; /* 新增：确保padding不撑宽 */
}

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

.manual-icon {
    width:24px;
    height:24px;
    background:#0ea5e9;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-right:12px;
    color:white;
    font-size:12px;
    flex-shrink:0; /* 关键：图标固定宽度，不被文字挤压 */
    margin-top: 2px; /* 新增：和文字顶部对齐更美观 */
}

.manual-content {
    flex:1; /* 占满剩余宽度 */
    width: calc(100% - 36px); /* 减去图标宽度+间距（24+12），兜底约束 */
    box-sizing: border-box; /* 新增：确保宽度不溢出 */
}

.manual-title {
    font-size:14px;
    color:#475569;
    margin-bottom:4px;
    line-height:1.5; /* 优化：换行后行高更易读 */
    width: 100%; /* 新增：占满父容器宽度 */
}

.manual-title a {
    color:inherit;
    text-decoration:none;
    /* 核心：强制拆分所有字符（包括无空格长串） */
    word-break: break-all;
    /* 兜底：兼容旧浏览器 + 确保允许换行 */
    word-wrap: break-word;
    white-space: normal;
    /* 新增：确保a标签占满宽度，触发换行 */
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.manual-title a:hover {
    color:#0ea5e9;
}

.manual-meta {
    font-size:12px;
    color:#94a3b8;
}

.category-list {
    list-style:none;
}

.category-item {
    margin-bottom:8px;
}

.category-link {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px 0;
    color:#475569;
    text-decoration:none;
    transition:color 0.3s;
}

.category-link:hover {
    color:#0ea5e9;
}

.category-count {
    background:#f1f5f9;
    color:#64748b;
    padding:2px 6px;
    border-radius:10px;
    font-size:11px;
}

.ad-banner {
    background:linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border-left:4px solid #f97316;
    padding:20px;
    border-radius:6px;
    text-align:center;
}

.ad-banner h4 {
    color:#9a3412;
    margin-bottom:10px;
    font-size:16px;
}

.ad-banner p {
    color:#7c2d12;
    font-size:14px;
    line-height:1.5;
    margin-bottom:15px;
}

.ad-btn {
    background:#f97316;
    color:white;
    padding:8px 16px;
    border:none;
    border-radius:4px;
    text-decoration:none;
    font-size:14px;
    display:inline-block;
    transition:background 0.3s;
}

.ad-btn:hover {
    background:#ea580c;
}

@media (max-width:768px) {

    .news-categories {
        flex-direction:column;
    }

    .article-meta {
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .related-list {
        grid-template-columns:1fr;
    }
}