/* ===== 61_Metro_Start - Metro开始屏幕风格 ===== */
/* 配色: 主色#00BCF2, 背景#FFFFFF, 各板块彩色磁贴 */
/* CSS前缀: .ms- */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --ms-primary: #00BCF2;
    --ms-bg: #FFFFFF;
    --ms-text: #262626;
    --ms-text-light: #FFFFFF;
    --ms-gray: #F2F2F2;
    --ms-border: #E0E0E0;
}

body.ms-body {
    font-family: 'Segoe UI', 'Noto Sans SC', sans-serif;
    background: var(--ms-bg);
    color: var(--ms-text);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 64px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== 顶部导航条 ===== */
.ms-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ms-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.ms-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 56px;
    gap: 20px;
}

.ms-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ms-logo-img {
    width: 32px;
    height: 32px;
}

.ms-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.ms-nav {
    display: flex;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.ms-nav::-webkit-scrollbar { display: none; }

.ms-nav-item {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 8px 14px;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.ms-nav-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.ms-nav-item.ms-nav-active {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}

.ms-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ms-search-btn {
    color: #fff;
    padding: 6px;
    display: flex;
    transition: background 0.2s;
}

.ms-search-btn:hover, .ms-search-btn.ms-search-active {
    background: rgba(255,255,255,0.2);
}

.ms-user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.15);
}

.ms-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 0;
}

.ms-user-name {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
}

/* ===== Banner区 ===== */
.ms-banner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 200px;
    overflow: hidden;
}

.ms-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ms-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
}

.ms-banner-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ms-banner-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== 主内容区 ===== */
.ms-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.ms-content {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 16px;
    align-items: start;
}

.ms-content-split {
    grid-template-columns: minmax(0,1fr) 300px;
}

/* ===== 磁贴网格 ===== */
.ms-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 6px;
}

.ms-tile {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    color: #fff;
    display: block;
}

.ms-tile:hover {
    transform: scale(0.97);
}

.ms-tile-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.ms-tile-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.ms-tile-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.ms-tile-front, .ms-tile-back {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.5s, transform 0.5s;
    backface-visibility: hidden;
}

.ms-tile-back {
    opacity: 0;
    transform: rotateY(180deg);
    justify-content: center;
}

.ms-tile.flip .ms-tile-front {
    opacity: 0;
    transform: rotateY(180deg);
}

.ms-tile.flip .ms-tile-back {
    opacity: 1;
    transform: rotateY(0deg);
}

.ms-tile-icon {
    margin-bottom: auto;
}

.ms-tile-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ms-tile-2x2 .ms-tile-name {
    font-size: 24px;
}

.ms-tile-stats {
    font-size: 13px;
    opacity: 0.85;
}

.ms-tile-latest {
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.ms-tile-latest:last-child { border-bottom: none; }

/* ===== 磁贴彩色循环(CMS) ===== */
.ms-tile-grid .ms-tile:nth-child(10n+1) { background: #F44336; }
.ms-tile-grid .ms-tile:nth-child(10n+2) { background: #4CAF50; }
.ms-tile-grid .ms-tile:nth-child(10n+3) { background: #FFC107; }
.ms-tile-grid .ms-tile:nth-child(10n+4) { background: #9C27B0; }
.ms-tile-grid .ms-tile:nth-child(10n+5) { background: #00BCD4; }
.ms-tile-grid .ms-tile:nth-child(10n+6) { background: #FF5722; }
.ms-tile-grid .ms-tile:nth-child(10n+7) { background: #3F51B5; }
.ms-tile-grid .ms-tile:nth-child(10n+8) { background: #E91E63; }
.ms-tile-grid .ms-tile:nth-child(10n+9) { background: #009688; }
.ms-tile-grid .ms-tile:nth-child(10n+10) { background: #795548; }

/* ===== 侧边栏 ===== */
.ms-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ms-side-tile {
    padding: 20px;
    color: #fff;
}

.ms-side-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ms-side-text {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
}

.ms-side-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ms-side-stat:last-child { border-bottom: none; }

.ms-stat-num {
    font-size: 22px;
    font-weight: 700;
}

.ms-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.ms-side-avatar {
    width: 60px;
    height: 60px;
    display: block;
}

.ms-hot-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ms-hot-list li:last-child { border-bottom: none; }
.ms-hot-list a {
    font-size: 13px;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.ms-hot-list a:hover { opacity: 1; }

.ms-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ms-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ms-user-item img {
    width: 28px;
    height: 28px;
}

/* ===== 面包屑 ===== */
.ms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}

.ms-breadcrumb a:hover { color: var(--ms-primary); }
.ms-crumb-sep { color: #999; }
.ms-crumb-current { color: var(--ms-text); font-weight: 600; }

/* ===== 板块信息 ===== */
.ms-board-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    color: #fff;
    margin-bottom: 16px;
}

.ms-board-detail {
    flex: 1;
}

.ms-board-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ms-board-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.ms-board-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    opacity: 0.85;
}

.ms-post-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.ms-post-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* ===== 帖子列表 ===== */
.ms-post-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ms-post-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ms-gray);
    padding: 16px;
    transition: background 0.2s;
    border-left: 4px solid transparent;
}

.ms-post-tile:hover {
    background: #E8E8E8;
    border-left-color: var(--ms-primary);
}

.ms-post-tile-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ms-post-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ms-post-tile-body {
    flex: 1;
}

.ms-post-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ms-text);
    display: block;
    margin-bottom: 4px;
}

.ms-post-title:hover { color: var(--ms-primary); }

.ms-post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #888;
}

.ms-post-time { color: var(--ms-primary); }

.ms-post-tile-tag {
    font-size: 11px;
    padding: 4px 10px;
    font-weight: 600;
}

/* ===== 分页 ===== */
.ms-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 24px 0;
    flex-wrap: wrap;
}

.ms-page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ms-gray);
    color: var(--ms-text);
    font-size: 14px;
    transition: all 0.2s;
    padding: 0 12px;
}

.ms-page-btn:hover {
    background: var(--ms-primary);
    color: #fff;
}

.ms-page-active {
    background: var(--ms-primary);
    color: #fff;
    font-weight: 600;
}

.ms-page-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.ms-page-ellipsis {
    line-height: 40px;
    color: #999;
    padding: 0 4px;
}

/* ===== 帖子详情 ===== */
.ms-main-col {
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
}

.ms-topic-header {
    padding: 20px;
    color: #fff;
    margin-bottom: 16px;
}

.ms-topic-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ms-topic-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    opacity: 0.85;
    flex-wrap: wrap;
}

.ms-post-detail {
    background: var(--ms-gray);
    margin-bottom: 6px;
    padding: 0;
}

.ms-post-detail.ms-post-op {
    border-left: 4px solid var(--ms-primary);
}

.ms-post-detail-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--ms-border);
}

.ms-post-detail-avatar {
    width: 48px;
    height: 48px;
}

.ms-post-detail-author {
    font-size: 15px;
    font-weight: 600;
}

.ms-post-detail-role {
    font-size: 11px;
    color: #fff;
    padding: 2px 8px;
    display: inline-block;
    margin-top: 2px;
}

.ms-post-detail-floor {
    margin-left: auto;
    font-size: 13px;
    color: #999;
}

.ms-post-detail-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    overflow: hidden;
    word-wrap: break-word;
}

.ms-post-detail-body p {
    margin-bottom: 12px;
}

.ms-post-img {
    max-width: 100%;
    margin-top: 12px;
    display: block;
}

.ms-post-detail-foot {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--ms-border);
}

.ms-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.2s;
    font-family: inherit;
}

.ms-action-btn:hover {
    background: #fff;
    color: var(--ms-primary);
}

/* ===== 回复框 ===== */
.ms-reply-box {
    background: var(--ms-gray);
    padding: 20px;
    margin-top: 16px;
}

.ms-reply-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ms-reply-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid var(--ms-border);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.ms-reply-textarea:focus {
    border-color: var(--ms-primary);
}

.ms-reply-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.ms-reply-tool {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ms-border);
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ms-reply-tool:hover {
    background: var(--ms-primary);
    color: #fff;
    border-color: var(--ms-primary);
}

.ms-reply-submit {
    margin-left: auto;
    color: #fff;
    border: none;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.ms-reply-submit:hover { opacity: 0.85; }

/* ===== 搜索页 ===== */
.ms-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 16px;
}

.ms-search-input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,0.95);
    color: var(--ms-text);
}

.ms-search-go {
    padding: 0 28px;
    height: 44px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.ms-search-go:hover { background: rgba(0,0,0,0.5); }

.ms-filter-row {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ms-filter-tile {
    padding: 8px 16px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: opacity 0.2s;
}

.ms-filter-tile:hover { opacity: 0.8; }

.ms-filter-active {
    outline: 3px solid var(--ms-primary);
    outline-offset: 1px;
}

.ms-search-result-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.ms-search-tile {
    background: var(--ms-gray);
    padding: 16px;
    margin-bottom: 6px;
    border-left: 4px solid var(--ms-primary);
    transition: background 0.2s;
}

.ms-search-tile:hover { background: #E8E8E8; }

.ms-search-tile-cat {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.ms-search-tile-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ms-text);
    display: block;
    margin-bottom: 6px;
}

.ms-search-tile-title:hover { color: var(--ms-primary); }

.ms-search-tile-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ms-search-tile-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.ms-hot-search {
    margin-top: 24px;
    padding: 20px;
    background: var(--ms-gray);
}

.ms-hot-search-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ms-hot-search-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.ms-hot-tag {
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
    transition: transform 0.2s;
}

.ms-hot-tag:hover { transform: scale(0.95); }

/* ===== 底部用户栏 ===== */
.ms-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--ms-primary);
    color: #fff;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.ms-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.ms-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-footer-avatar {
    width: 36px;
    height: 36px;
}

.ms-footer-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ms-footer-role {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.ms-footer-center {
    display: flex;
    gap: 8px;
}

.ms-footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    color: #fff;
    font-size: 11px;
    transition: background 0.2s;
}

.ms-footer-btn:hover {
    background: rgba(255,255,255,0.2);
}

.ms-footer-time {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .ms-content, .ms-content-split {
        grid-template-columns: minmax(0,1fr) 300px;
    }
    .ms-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ms-tile-2x2 { grid-column: span 2; grid-row: span 1; }
    .ms-tile-2x1 { grid-column: span 2; }
    .ms-nav { display: none; }
}

@media (max-width: 760px) {
    .ms-content, .ms-content-split {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .ms-tile-grid { grid-template-columns: 1fr; }
    .ms-tile-2x2, .ms-tile-2x1, .ms-tile-1x1 { grid-column: span 1; }
    .ms-banner { height: 140px; }
    .ms-banner-title { font-size: 20px; }
    .ms-footer-center { display: none; }
    .ms-user-name { display: none; }
}

/* ===== CMS 扩展样式 ===== */

/* ===== CMS 分页 ===== */
.jv-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 24px 0;
    justify-content: center;
}

.jv-pagination a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ms-gray);
    color: var(--ms-text);
    font-size: 14px;
    transition: all 0.2s;
    padding: 0 12px;
    text-decoration: none;
}

.jv-pagination a:hover {
    background: var(--ms-primary);
    color: #fff;
}

.jv-pagination a.active {
    background: var(--ms-primary);
    color: #fff;
    font-weight: 600;
}

.jv-pagination a.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.jv-pagination span {
    line-height: 40px;
    color: #999;
    padding: 0 4px;
}

/* ===== CMS 评论回复区 ===== */
.ms-replies-section {
    margin-top: 16px;
}

.ms-replies-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ms-text);
    padding: 12px 16px;
    background: var(--ms-gray);
    border-left: 4px solid var(--ms-primary);
}

/* ===== CMS 评论区 ===== */
.comment-list {
    display: flex;
    flex-direction: column;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--ms-gray);
    margin-bottom: 6px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--ms-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--ms-text);
}

.comment-reply-to {
    font-size: 12px;
    color: #888;
}

.comment-reply-to::before {
    content: '\2192';
    margin-right: 3px;
}

.comment-time {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    color: var(--ms-text);
    line-height: 1.7;
    word-break: break-word;
}

.comment-actions {
    margin-top: 8px;
}

.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.comment-reply-btn:hover {
    color: var(--ms-primary);
}

.comment-reply-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-reply-input {
    width: 100%;
    border: 2px solid var(--ms-border);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    background: #fff;
    color: var(--ms-text);
    transition: border-color 0.2s;
    outline: none;
}

.comment-reply-input:focus {
    border-color: var(--ms-primary);
}

.comment-reply-submit {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border: none;
    background: var(--ms-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.comment-reply-submit:hover {
    opacity: 0.85;
}

.comment-reply-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-replies {
    margin-left: 52px;
    padding-left: 16px;
    border-left: 3px solid var(--ms-border);
    display: flex;
    flex-direction: column;
}

.comment-reply-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #E8E8E8;
    margin-bottom: 4px;
}

.comment-reply-item:last-child {
    margin-bottom: 0;
}

.comment-reply-item .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.comment-reply-item .comment-author {
    font-size: 13px;
}

.comment-reply-item .comment-content {
    font-size: 13px;
}

/* ===== CMS 文章内容图片 ===== */
.ms-post-detail-body img {
    max-width: 100%;
    height: auto;
}

/* ===== 强制两栏与采集内容保护 ===== */
.ms-content,
.ms-content-split {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 300px !important;
    gap: 16px !important;
    align-items: start !important;
}
.ms-main-col {
    min-width: 0 !important;
    overflow: hidden !important;
}
.ms-sidebar {
    min-width: 0 !important;
}
.ms-post-detail-body,
.ms-post-body,
.ms-thread-body,
.ms-result-desc {
    overflow: hidden;
    word-wrap: break-word;
}
.ms-post-detail-body img,
.ms-post-body img,
.ms-result-desc img {
    max-width: 100%;
    height: auto;
}
.ms-post-detail-body table,
.ms-post-body table {
    max-width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}
.ms-post-detail-body pre,
.ms-post-detail-body code,
.ms-post-body pre,
.ms-post-body code {
    overflow-x: auto;
    max-width: 100%;
    word-wrap: break-word;
}

@media (max-width: 760px) {
    .ms-content,
    .ms-content-split {
        grid-template-columns: 1fr !important;
    }
}
