/* ===== 70_Metro_Settings Metro设置面板论坛模板 ===== */
/* 配色: 主色#0078D4, 背景#F2F2F2, 表面#FFFFFF, 文字#262626, 设置面板#1F1F1F(深色弹出) */
/* 特色: 右侧弹出设置超级面板, Charms栏触发, 分区管理(音量/亮度/键盘/电源) */
/* CSS前缀: .mt2- */

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

:root {
    --mt2-primary: #0078D4;
    --mt2-primary-dark: #005A9E;
    --mt2-primary-light: #2B88D8;
    --mt2-bg: #F2F2F2;
    --mt2-surface: #FFFFFF;
    --mt2-text: #262626;
    --mt2-text-light: #FFFFFF;
    --mt2-gray: #F2F2F2;
    --mt2-border: #E0E0E0;
    --mt2-dark-panel: #1F1F1F;
    --mt2-dark-panel-light: #2D2D2D;
    --mt2-muted: #767676;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航栏 ===== */
.mt2-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mt2-surface);
    border-bottom: 1px solid var(--mt2-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    gap: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

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

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

.mt2-nav-item {
    color: var(--mt2-text);
    font-size: 14px;
    padding: 8px 14px;
    white-space: nowrap;
    transition: all 0.15s;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.mt2-nav-item:hover {
    background: var(--mt2-gray);
    color: var(--mt2-primary);
}

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

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

.mt2-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--mt2-gray);
    padding: 0 12px;
    height: 36px;
}

.mt2-search-box input {
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    width: 120px;
    color: var(--mt2-text);
}

.mt2-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--mt2-gray);
    transition: background 0.15s;
}

.mt2-user-chip:hover { background: var(--mt2-border); }

.mt2-user-chip img { width: 28px; height: 28px; }
.mt2-user-chip span { font-size: 13px; color: var(--mt2-text); white-space: nowrap; }

/* ===== Charms 栏 ===== */
.mt2-charms {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.mt2-charms-inner {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--mt2-dark-panel);
    padding: 4px;
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
}

.mt2-charm-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    min-width: 56px;
}

.mt2-charm-btn:hover { background: var(--mt2-dark-panel-light); }
.mt2-charm-btn.mt2-charm-active { background: var(--mt2-primary); }
.mt2-charm-btn span { font-size: 11px; white-space: nowrap; }

/* ===== Banner区 ===== */
.mt2-banner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 220px;
    overflow: hidden;
    background: var(--mt2-primary);
}

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

.mt2-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
}

.mt2-banner-content h1 { font-size: 30px; font-weight: 600; margin-bottom: 6px; }
.mt2-banner-content p { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }

.mt2-banner-stats { display: flex; gap: 24px; font-size: 13px; }
.mt2-banner-stats b { font-size: 20px; font-weight: 700; margin-right: 4px; }

/* ===== 主内容区 ===== */
.mt2-main { max-width: 1200px; margin: 0 auto; padding: 24px; }

.mt2-main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }

.mt2-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--mt2-text);
    padding-left: 12px;
    border-left: 4px solid var(--mt2-primary);
}

/* ===== 磁贴网格 ===== */
.mt2-tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.mt2-tile {
    padding: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    transition: transform 0.15s;
    cursor: pointer;
}

.mt2-tile:hover { transform: scale(0.97); }
.mt2-tile-icon { margin-bottom: 8px; }
.mt2-tile-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mt2-tile-stat { font-size: 12px; opacity: 0.85; margin-bottom: 8px; }

.mt2-tile-preview {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
    margin-top: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.mt2-widget { background: var(--mt2-surface); border: 1px solid var(--mt2-border); }

.mt2-widget-title {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mt2-border);
    color: var(--mt2-text);
    background: var(--mt2-gray);
}

.mt2-widget-body { padding: 16px; }
.mt2-widget-body p { font-size: 13px; color: var(--mt2-muted); margin-bottom: 8px; }

.mt2-more { font-size: 13px; color: var(--mt2-primary); font-weight: 500; }
.mt2-more:hover { text-decoration: underline; }

.mt2-hot-list li {
    padding: 10px 16px;
    border-bottom: 1px solid var(--mt2-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.mt2-hot-list li:last-child { border-bottom: none; }
.mt2-hot-list a { font-size: 13px; color: var(--mt2-text); transition: color 0.15s; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt2-hot-list a:hover { color: var(--mt2-primary); }
.mt2-hot-list span { font-size: 11px; color: var(--mt2-muted); white-space: nowrap; }

.mt2-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--mt2-border);
    font-size: 13px;
}
.mt2-stat-row:last-child { border-bottom: none; }
.mt2-stat-row span { color: var(--mt2-muted); }
.mt2-stat-row b { font-size: 18px; font-weight: 700; color: var(--mt2-text); }

.mt2-member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt2-member { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mt2-member img { width: 48px; height: 48px; }
.mt2-member span { font-size: 12px; color: var(--mt2-text); }

/* ===== 设置超级面板 ===== */
.mt2-settings-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 380px;
    background: var(--mt2-dark-panel);
    color: #fff;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mt2-settings-panel.mt2-open { transform: translateX(0); }

.mt2-sp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mt2-sp-title { font-size: 22px; font-weight: 600; }

.mt2-sp-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.mt2-sp-close:hover { background: rgba(255,255,255,0.1); }

.mt2-sp-body { padding: 16px 24px; }

.mt2-sp-section { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mt2-sp-section:last-child { border-bottom: none; }

.mt2-sp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.mt2-sp-slider {
    position: relative;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin-bottom: 12px;
}
.mt2-sp-slider-fill { height: 100%; background: var(--mt2-primary-light); border-radius: 3px; }
.mt2-sp-slider-val { position: absolute; right: 0; top: -22px; font-size: 13px; color: rgba(255,255,255,0.8); }

.mt2-sp-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.mt2-sp-switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.mt2-sp-switch input { opacity: 0; width: 0; height: 0; }

.mt2-sp-slider-knob {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.2);
    transition: 0.3s;
    border-radius: 11px;
}
.mt2-sp-slider-knob:before {
    content: "";
    position: absolute;
    height: 18px; width: 18px;
    left: 2px; bottom: 2px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
}
.mt2-sp-switch input:checked + .mt2-sp-slider-knob { background: var(--mt2-primary); }
.mt2-sp-switch input:checked + .mt2-sp-slider-knob:before { transform: translateX(22px); }

.mt2-sp-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    cursor: pointer;
    margin-right: 8px;
    margin-top: 8px;
    transition: background 0.15s;
    font-family: inherit;
}
.mt2-sp-btn:hover { background: rgba(255,255,255,0.2); }

.mt2-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mt2-overlay.mt2-show { opacity: 1; visibility: visible; }

/* ===== 页脚 ===== */
.mt2-footer { background: var(--mt2-surface); border-top: 1px solid var(--mt2-border); margin-top: 40px; }

.mt2-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mt2-footer-inner span { font-size: 13px; color: var(--mt2-muted); }

.mt2-footer-links { display: flex; gap: 20px; }
.mt2-footer-links a { font-size: 13px; color: var(--mt2-muted); transition: color 0.15s; }
.mt2-footer-links a:hover { color: var(--mt2-primary); }

/* ===== 面包屑 ===== */
.mt2-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--mt2-muted); }
.mt2-breadcrumb a { color: var(--mt2-primary); transition: opacity 0.15s; }
.mt2-breadcrumb a:hover { opacity: 0.8; }
.mt2-breadcrumb .mt2-current { color: var(--mt2-text); font-weight: 600; }

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

.mt2-board-left { display: flex; align-items: center; gap: 16px; flex: 1; }
.mt2-board-icon { flex-shrink: 0; }
.mt2-board-title { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.mt2-board-desc { font-size: 13px; opacity: 0.9; }

.mt2-board-stats { display: flex; gap: 20px; }
.mt2-bs { text-align: center; }
.mt2-bs b { display: block; font-size: 20px; font-weight: 700; }
.mt2-bs span { font-size: 11px; opacity: 0.85; }

.mt2-post-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
    white-space: nowrap;
}
.mt2-post-btn:hover { background: rgba(255,255,255,0.35); }

/* ===== 排序栏 ===== */
.mt2-sort-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid var(--mt2-border); }
.mt2-sort-tabs { display: flex; gap: 0; }

.mt2-sort-tab {
    padding: 6px 16px;
    background: none;
    border: none;
    color: var(--mt2-muted);
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    font-family: inherit;
}
.mt2-sort-tab:hover { color: var(--mt2-text); }
.mt2-sort-tab.mt2-sort-active { color: var(--mt2-primary); border-bottom-color: var(--mt2-primary); font-weight: 600; }

.mt2-select { padding: 6px 12px; border: 1px solid var(--mt2-border); background: var(--mt2-surface); font-size: 13px; color: var(--mt2-text); font-family: inherit; outline: none; }

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

.mt2-post-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--mt2-surface);
    border: 1px solid var(--mt2-border);
    padding: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mt2-post-card:hover { border-color: var(--mt2-primary); box-shadow: 0 2px 8px rgba(0,120,212,0.1); }

.mt2-post-avatar { width: 44px; height: 44px; flex-shrink: 0; }
.mt2-post-body { flex: 1; min-width: 0; }

.mt2-post-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.mt2-post-title { font-size: 15px; font-weight: 600; color: var(--mt2-text); transition: color 0.15s; }
.mt2-post-title:hover { color: var(--mt2-primary); }

.mt2-tag { font-size: 11px; padding: 2px 8px; font-weight: 600; color: #fff; }
.mt2-tag-hot { background: #E81123; }
.mt2-tag-essence { background: #FF8C00; }
.mt2-tag-original { background: #107C10; }

.mt2-post-meta { display: flex; gap: 8px; font-size: 12px; color: var(--mt2-muted); margin-bottom: 6px; flex-wrap: wrap; }

.mt2-post-excerpt {
    font-size: 13px;
    color: var(--mt2-muted);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mt2-post-last { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-left: 12px; border-left: 1px solid var(--mt2-border); }
.mt2-post-last img { width: 32px; height: 32px; }
.mt2-last-user { font-size: 12px; color: var(--mt2-text); font-weight: 500; }
.mt2-last-time { font-size: 11px; color: var(--mt2-muted); }

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

.mt2-page {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mt2-surface);
    border: 1px solid var(--mt2-border);
    color: var(--mt2-text);
    font-size: 14px;
    transition: all 0.15s;
    padding: 0 10px;
}
.mt2-page:hover { background: var(--mt2-primary); color: #fff; border-color: var(--mt2-primary); }
.mt2-page.mt2-page-active { background: var(--mt2-primary); color: #fff; border-color: var(--mt2-primary); font-weight: 600; }
.mt2-page.mt2-page-disabled { opacity: 0.4; pointer-events: none; }
.mt2-dots { line-height: 38px; color: var(--mt2-muted); padding: 0 4px; }
.mt2-jump { font-size: 13px; color: var(--mt2-muted); margin-left: 12px; }
.mt2-jump input { width: 40px; height: 38px; text-align: center; border: 1px solid var(--mt2-border); font-size: 14px; font-family: inherit; margin: 0 4px; outline: none; }

/* ===== 帖子详情 ===== */
.mt2-detail-layout { grid-template-columns: 1fr 300px; }

.mt2-detail-header { margin-bottom: 16px; }
.mt2-detail-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--mt2-text); line-height: 1.4; }
.mt2-detail-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.mt2-post-detail { display: flex; gap: 0; background: var(--mt2-surface); border: 1px solid var(--mt2-border); margin-bottom: 8px; }

.mt2-pd-left {
    width: 160px;
    flex-shrink: 0;
    padding: 20px;
    text-align: center;
    background: var(--mt2-gray);
    border-right: 1px solid var(--mt2-border);
}
.mt2-pd-avatar { width: 64px; height: 64px; margin: 0 auto 10px; }
.mt2-pd-author { font-size: 15px; font-weight: 600; color: var(--mt2-text); margin-bottom: 4px; }
.mt2-pd-level { font-size: 12px; color: var(--mt2-primary); margin-bottom: 12px; }
.mt2-pd-stats { display: flex; justify-content: center; gap: 16px; }
.mt2-pd-stats > div { text-align: center; }
.mt2-pd-stats b { display: block; font-size: 16px; font-weight: 700; color: var(--mt2-text); }
.mt2-pd-stats span { font-size: 11px; color: var(--mt2-muted); }

.mt2-pd-right { flex: 1; min-width: 0; padding: 20px; }
.mt2-pd-meta { display: flex; gap: 8px; font-size: 12px; color: var(--mt2-muted); margin-bottom: 16px; flex-wrap: wrap; }
.mt2-floor { background: var(--mt2-primary); color: #fff; padding: 2px 8px; font-size: 12px; font-weight: 600; }

.mt2-pd-body { font-size: 14px; line-height: 1.8; color: var(--mt2-text); }
.mt2-pd-body h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; color: var(--mt2-text); }
.mt2-pd-body p { margin-bottom: 12px; }
.mt2-pd-body strong { font-weight: 700; color: var(--mt2-primary); }
.mt2-pd-body blockquote { border-left: 4px solid var(--mt2-primary); background: var(--mt2-gray); padding: 12px 16px; margin: 12px 0; font-size: 14px; color: var(--mt2-text); font-style: italic; }
.mt2-pd-img { margin: 12px 0; border: 1px solid var(--mt2-border); }

.mt2-pd-footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--mt2-border); }
.mt2-like { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #E81123; }
.mt2-like b { font-weight: 700; }

.mt2-reply-btn { padding: 6px 16px; background: var(--mt2-gray); border: 1px solid var(--mt2-border); color: var(--mt2-text); font-size: 13px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.mt2-reply-btn:hover { background: var(--mt2-primary); color: #fff; border-color: var(--mt2-primary); }

.mt2-replies { margin-top: 20px; }
.mt2-replies-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--mt2-text); }
.mt2-reply-item .mt2-pd-left { background: var(--mt2-gray); }

.mt2-reply-box { margin-top: 20px; background: var(--mt2-surface); border: 1px solid var(--mt2-border); padding: 20px; }
.mt2-rb-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--mt2-text); }
.mt2-rb-area { display: flex; gap: 12px; }
.mt2-rb-avatar { width: 44px; height: 44px; flex-shrink: 0; }
.mt2-rb-input { flex: 1; }
.mt2-rb-toolbar { display: flex; gap: 4px; padding: 6px; background: var(--mt2-gray); border: 1px solid var(--mt2-border); border-bottom: none; }
.mt2-rb-toolbar button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; transition: background 0.15s; }
.mt2-rb-toolbar button:hover { background: var(--mt2-border); }

.mt2-rb-textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid var(--mt2-border); font-size: 14px; font-family: inherit; resize: vertical; outline: none; transition: border-color 0.15s; }
.mt2-rb-textarea:focus { border-color: var(--mt2-primary); }

.mt2-rb-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.mt2-checkbox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mt2-muted); cursor: pointer; }
.mt2-checkbox input { cursor: pointer; }

.mt2-submit-btn { padding: 8px 24px; background: var(--mt2-primary); color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.mt2-submit-btn:hover { background: var(--mt2-primary-dark); }

.mt2-author-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px !important; text-align: center; }
.mt2-author-card img { width: 64px; height: 64px; }
.mt2-author-name { font-size: 16px; font-weight: 600; color: var(--mt2-text); }
.mt2-author-badge { font-size: 12px; color: var(--mt2-primary); background: var(--mt2-gray); padding: 2px 10px; }
.mt2-follow-btn { padding: 8px 20px; background: var(--mt2-primary); color: #fff; border: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; font-family: inherit; margin-top: 4px; }
.mt2-follow-btn:hover { background: var(--mt2-primary-dark); }

/* ===== 搜索页 ===== */
.mt2-search-hero { padding: 32px 0; text-align: center; }

.mt2-search-box-big {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto 12px;
    background: var(--mt2-surface);
    border: 2px solid var(--mt2-primary);
    padding: 0 16px;
    height: 52px;
}

.mt2-search-input { flex: 1; border: none; background: none; outline: none; font-size: 16px; font-family: inherit; color: var(--mt2-text); height: 100%; }
.mt2-search-btn { padding: 0 24px; height: 100%; background: var(--mt2-primary); color: #fff; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.mt2-search-btn:hover { background: var(--mt2-primary-dark); }

.mt2-search-meta { font-size: 13px; color: var(--mt2-muted); }
.mt2-search-meta b { color: var(--mt2-primary); }

.mt2-search-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-top: 20px; }

.mt2-search-filter { display: flex; flex-direction: column; gap: 16px; }

.mt2-filter-group { background: var(--mt2-surface); border: 1px solid var(--mt2-border); padding: 16px; }
.mt2-filter-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--mt2-text); padding-bottom: 8px; border-bottom: 1px solid var(--mt2-border); }

.mt2-filter-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--mt2-text); cursor: pointer; }
.mt2-filter-item input { cursor: pointer; accent-color: var(--mt2-primary); }
.mt2-filter-item:hover { color: var(--mt2-primary); }

.mt2-search-results { display: flex; flex-direction: column; gap: 10px; }

.mt2-result-card { background: var(--mt2-surface); border: 1px solid var(--mt2-border); padding: 16px; transition: border-color 0.15s, box-shadow 0.15s; }
.mt2-result-card:hover { border-color: var(--mt2-primary); box-shadow: 0 2px 8px rgba(0,120,212,0.1); }

.mt2-result-cat { display: inline-block; font-size: 11px; color: #fff; padding: 2px 8px; margin-bottom: 8px; font-weight: 600; }
.mt2-result-title { font-size: 16px; font-weight: 600; color: var(--mt2-text); margin-bottom: 6px; display: block; transition: color 0.15s; }
.mt2-result-title:hover { color: var(--mt2-primary); }
.mt2-result-excerpt { font-size: 13px; color: var(--mt2-muted); line-height: 1.6; margin-bottom: 8px; }
.mt2-highlight { background: #FFF4CE; color: var(--mt2-text); font-weight: 600; padding: 0 2px; }
.mt2-result-meta { display: flex; gap: 8px; font-size: 12px; color: var(--mt2-muted); flex-wrap: wrap; }

.mt2-hot-search { margin-top: 32px; padding: 20px; background: var(--mt2-surface); border: 1px solid var(--mt2-border); }
.mt2-hot-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--mt2-text); }
.mt2-hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mt2-hot-tag { padding: 8px 16px; background: var(--mt2-gray); border: 1px solid var(--mt2-border); font-size: 13px; color: var(--mt2-text); transition: all 0.15s; }
.mt2-hot-tag:hover { background: var(--mt2-primary); color: #fff; border-color: var(--mt2-primary); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .mt2-main-layout, .mt2-detail-layout { grid-template-columns: 1fr; }
    .mt2-sidebar { order: 2; }
    .mt2-tile-grid { grid-template-columns: repeat(3, 1fr); }
    .mt2-search-layout { grid-template-columns: 1fr; }
    .mt2-search-filter { order: 2; }
}

@media (max-width: 768px) {
    .mt2-topbar { padding: 0 12px; gap: 12px; }
    .mt2-nav { display: none; }
    .mt2-banner { height: 160px; }
    .mt2-banner-content { padding: 20px; }
    .mt2-banner-content h1 { font-size: 22px; }
    .mt2-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .mt2-tile { min-height: 120px; }
    .mt2-main { padding: 12px; }
    .mt2-post-card { flex-wrap: wrap; }
    .mt2-post-last { border-left: none; padding-left: 0; margin-top: 8px; width: 100%; }
    .mt2-pd-left { width: 100%; border-right: none; border-bottom: 1px solid var(--mt2-border); padding: 12px; }
    .mt2-pd-avatar { width: 48px; height: 48px; }
    .mt2-post-detail { flex-direction: column; }
    .mt2-board-bar { flex-direction: column; align-items: flex-start; }
    .mt2-board-stats { gap: 12px; }
    .mt2-settings-panel { width: 100%; }
    .mt2-charms { display: none; }
    .mt2-rb-area { flex-direction: column; }
    .mt2-rb-avatar { width: 40px; height: 40px; }
    .mt2-footer-inner { flex-direction: column; text-align: center; }
    .mt2-footer-links { flex-wrap: wrap; justify-content: center; }
    .mt2-search-box-big { flex-direction: column; height: auto; padding: 8px; gap: 8px; }
    .mt2-search-input { height: 44px; }
    .mt2-search-btn { height: 44px; width: 100%; }
}

/* ===== TRAE FIX 72: 重新套用后的右栏与内容保护 ===== */
.mt2-main-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
.mt2-main-layout>main,.mt2-sidebar,.mt2-post-card,.mt2-post-body,.mt2-post-detail,.mt2-pd-right,.mt2-pd-body{min-width:0}
.mt2-sidebar{width:300px}
.mt2-widget{overflow:hidden}
.mt2-hot-list a,.mt2-author-name,.mt2-pd-author,.mt2-post-title{overflow:hidden;text-overflow:ellipsis}
.mt2-pd-body{overflow:hidden;word-wrap:break-word}
.mt2-pd-body :where(img,video,iframe,table,pre){max-width:100%;height:auto}
.mt2-pd-body table{table-layout:fixed;word-wrap:break-word}
.mt2-pd-body pre{overflow-x:auto}
@media(max-width:1024px){.mt2-main-layout{grid-template-columns:1fr}.mt2-sidebar{width:100%;order:2}}
