/* ===== 67_Metro_Panorama - Metro全景横向风格 ===== */
/* 配色: 主色#1BA1E2, 背景#1F1F1F, 磁贴表面#FFFFFF, 文字#FFFFFF, 分组标题#FFD700(金) */
/* 特色: 全屏横向滚动, 暗色背景白色磁贴, 分组金色标题, 左右导航箭头 */
/* CSS前缀: .mp2- */

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

:root {
    --mp2-primary: #1BA1E2;
    --mp2-bg: #1F1F1F;
    --mp2-surface: #FFFFFF;
    --mp2-text: #FFFFFF;
    --mp2-gold: #FFD700;
    --mp2-gray: #2A2A2A;
    --mp2-border: #3A3A3A;
}

body.mp2-body {
    font-family: 'Segoe UI', 'Noto Sans SC', sans-serif;
    background: var(--mp2-bg);
    color: var(--mp2-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ===== 顶部导航栏 ===== */
.mp2-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #111;
    border-bottom: 1px solid var(--mp2-border);
}

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

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

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

.mp2-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--mp2-text);
    white-space: nowrap;
}

.mp2-nav {
    display: flex;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}
.mp2-nav::-webkit-scrollbar { display: none; }

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

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

.mp2-nav-item.mp2-nav-active {
    color: var(--mp2-primary);
    border-bottom-color: var(--mp2-primary);
    font-weight: 600;
}

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

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

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

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

.mp2-user-avatar { width: 28px; height: 28px; }
.mp2-user-name { font-size: 13px; color: var(--mp2-text); white-space: nowrap; }

/* ===== 全景横向滚动 ===== */
.mp2-panorama-wrapper {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

.mp2-panorama-scroll {
    display: flex;
    gap: 40px;
    padding: 0 60px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    cursor: grab;
}
.mp2-panorama-scroll::-webkit-scrollbar { display: none; }
.mp2-panorama-scroll:active { cursor: grabbing; }

/* 分组 */
.mp2-group {
    flex-shrink: 0;
    min-width: 600px;
}

.mp2-group-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--mp2-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255,215,0,0.3);
}

.mp2-group-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* 磁贴 */
.mp2-tile {
    background: var(--mp2-surface);
    color: #262626;
    padding: 16px;
    height: 160px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.mp2-tile-wide {
    grid-column: span 2;
}

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

.mp2-tile-name {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
}

.mp2-tile-stats {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.mp2-tile-preview {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    border-top: 1px solid #E0E0E0;
    padding-top: 6px;
}

.mp2-tile-hot {
    font-size: 14px;
    font-weight: 600;
    color: #1BA1E2;
    margin-bottom: 6px;
}

.mp2-tile-stat {
    background: var(--mp2-primary);
    color: #fff;
    align-items: center;
    justify-content: center;
}

.mp2-tile-stat .mp2-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.mp2-tile-stat .mp2-stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 导航箭头 */
.mp2-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.mp2-nav-arrow:hover {
    background: rgba(27,161,226,0.6);
}

.mp2-nav-arrow-left { left: 0; }
.mp2-nav-arrow-right { right: 0; }

/* 分组导航点 */
.mp2-nav-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 20px 0;
}

.mp2-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 0;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.mp2-nav-dot.mp2-dot-active {
    background: var(--mp2-primary);
    border-color: var(--mp2-primary);
}

/* ===== 主内容区(list/detail/search共用) ===== */
.mp2-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mp2-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
}

.mp2-main-col { min-width: 0; }

/* 面包屑 */
.mp2-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.mp2-breadcrumb a:hover { color: var(--mp2-primary); }
.mp2-crumb-sep { color: rgba(255,255,255,0.3); }
.mp2-crumb-current { color: #fff; font-weight: 600; }

/* 板块信息 */
.mp2-board-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--mp2-gray);
    margin-bottom: 16px;
}

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

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

.mp2-board-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.mp2-board-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

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

.mp2-post-btn:hover { opacity: 0.85; }

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

.mp2-post-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--mp2-gray);
    padding: 16px;
    transition: background 0.2s;
}

.mp2-post-tile:hover {
    background: #333;
}

.mp2-post-avatar { width: 40px; height: 40px; flex-shrink: 0; }
.mp2-post-body { flex: 1; }

.mp2-post-tag {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    padding: 2px 8px;
    margin-right: 8px;
    font-weight: 600;
}

.mp2-post-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    display: inline;
    transition: color 0.2s;
}

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

.mp2-post-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}

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

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

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

.mp2-page-btn:hover { background: var(--mp2-primary); }
.mp2-page-active { background: var(--mp2-primary); font-weight: 600; }
.mp2-page-disabled { opacity: 0.3; pointer-events: none; }
.mp2-page-ellipsis { line-height: 40px; color: rgba(255,255,255,0.3); padding: 0 4px; }

/* 帖子详情 */
.mp2-topic-header {
    padding: 20px;
    background: var(--mp2-gray);
    margin-bottom: 16px;
}

.mp2-topic-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.mp2-topic-meta { display: flex; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; }

.mp2-post-detail {
    background: var(--mp2-gray);
    margin-bottom: 4px;
}

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

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

.mp2-post-detail-avatar { width: 48px; height: 48px; }
.mp2-post-detail-author { font-size: 15px; font-weight: 600; color: #fff; }
.mp2-post-detail-role { font-size: 11px; color: #fff; padding: 2px 8px; display: inline-block; margin-top: 2px; }
.mp2-post-detail-floor { margin-left: auto; font-size: 13px; color: rgba(255,255,255,0.4); }

.mp2-post-detail-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.mp2-post-detail-body p { margin-bottom: 12px; }
.mp2-post-img { max-width: 100%; margin-top: 12px; display: block; }

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

.mp2-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    transition: all 0.2s;
    font-family: inherit;
}

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

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

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

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

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

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

.mp2-reply-tool {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1A1A;
    border: 1px solid var(--mp2-border);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s;
}

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

.mp2-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;
}

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

/* 搜索页 */
.mp2-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--mp2-primary);
    margin-bottom: 16px;
}

.mp2-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: #262626;
}

.mp2-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;
}

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

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

.mp2-filter-tile {
    padding: 8px 16px;
    background: var(--mp2-gray);
    color: rgba(255,255,255,0.7);
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
}

.mp2-filter-tile:hover { background: #333; color: #fff; }
.mp2-filter-active { background: var(--mp2-primary); color: #fff; }

.mp2-search-count { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }

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

.mp2-search-tile:hover { background: #333; }

.mp2-search-tile-cat { display: inline-block; font-size: 11px; color: #fff; padding: 2px 8px; margin-bottom: 8px; }
.mp2-search-tile-title { font-size: 16px; font-weight: 600; color: #fff; display: block; margin-bottom: 6px; }
.mp2-search-tile:hover .mp2-search-tile-title { color: var(--mp2-primary); }
.mp2-search-tile-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 8px; }
.mp2-search-tile-meta { display: flex; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.3); }

.mp2-hot-search { margin-top: 24px; padding: 20px; background: var(--mp2-gray); }
.mp2-hot-search-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.mp2-hot-search-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.mp2-hot-tag {
    padding: 8px 16px;
    background: var(--mp2-primary);
    color: #fff;
    font-size: 13px;
    transition: transform 0.2s;
}

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

/* 侧边栏 */
.mp2-sidebar { display: flex; flex-direction: column; gap: 12px; }

.mp2-side-block {
    background: var(--mp2-gray);
    padding: 16px;
}

.mp2-side-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: var(--mp2-gold); }
.mp2-side-text { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.6); }

.mp2-side-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--mp2-border);
}
.mp2-side-stat:last-child { border-bottom: none; }
.mp2-stat-num { font-size: 20px; font-weight: 700; color: var(--mp2-primary); }
.mp2-stat-label { font-size: 12px; color: rgba(255,255,255,0.4); }

.mp2-hot-list li { padding: 8px 0; border-bottom: 1px solid var(--mp2-border); }
.mp2-hot-list li:last-child { border-bottom: none; }
.mp2-hot-list a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.mp2-hot-list a:hover { color: var(--mp2-primary); }

.mp2-user-card { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; }
.mp2-user-card-avatar { width: 60px; height: 60px; }
.mp2-user-card-name { font-size: 15px; font-weight: 600; }

/* 页脚 */
.mp2-footer {
    background: #111;
    color: rgba(255,255,255,0.5);
    margin-top: 40px;
}

.mp2-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 20px;
}

.mp2-footer-copy { font-size: 12px; }
.mp2-footer-nav { display: flex; gap: 20px; }
.mp2-footer-nav a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.mp2-footer-nav a:hover { color: var(--mp2-primary); }
.mp2-footer-time { font-size: 14px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* 响应式 */
@media (max-width: 1024px) {
    .mp2-content { grid-template-columns: 1fr; }
    .mp2-group { min-width: 400px; }
    .mp2-nav { display: none; }
}

@media (max-width: 640px) {
    .mp2-group { min-width: 300px; }
    .mp2-group-tiles { grid-template-columns: 1fr; }
    .mp2-tile-wide { grid-column: span 1; }
    .mp2-footer-nav { display: none; }
    .mp2-user-name { display: none; }
}

/* ===== CMS Pagination (.jv-pagination) ===== */
.jv-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: 24px 0;
    flex-wrap: wrap;
}

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

.jv-pagination a:hover {
    background: var(--mp2-primary);
}

.jv-pagination .current {
    background: var(--mp2-primary);
    font-weight: 600;
}

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

/* ===== CMS Comment System (.comment-*) ===== */
.comment-item {
    background: var(--mp2-gray);
    padding: 16px;
    margin-bottom: 4px;
    border-left: 3px solid var(--mp2-border);
}

.comment-item:hover {
    border-left-color: var(--mp2-primary);
}

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

.comment-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.comment-time {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    font-family: inherit;
}

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

.comment-reply-form {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: #1A1A1A;
}

.comment-reply-input {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 2px solid var(--mp2-border);
    background: #1A1A1A;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

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

.comment-reply-submit {
    margin-top: 8px;
    padding: 6px 16px;
    background: var(--mp2-primary);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

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

.comment-replies {
    margin-left: 20px;
    border-left: 2px solid var(--mp2-border);
    padding-left: 12px;
}

/* ===== TRAE FIX 71: 内容页右栏与采集内容保护 ===== */
.mp2-content{grid-template-columns:minmax(0,1fr) 280px;align-items:start}
.mp2-main-col,.mp2-sidebar,.mp2-post-detail,.mp2-post-detail-body{min-width:0}
.mp2-sidebar{width:280px}
.mp2-side-block{overflow:hidden}
.mp2-user-card-name,.mp2-hot-list a{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp2-side-stat{gap:10px}
.mp2-post-detail-body{overflow:hidden;word-wrap:break-word}
.mp2-post-detail-body :where(img,video,iframe,table,pre){max-width:100%;height:auto}
.mp2-post-detail-body table{table-layout:fixed;word-wrap:break-word}
.mp2-post-detail-body pre{overflow-x:auto}
@media(max-width:1024px){.mp2-content{grid-template-columns:1fr}.mp2-sidebar{width:100%}}
