/* ========== MuteTree 树洞主题 ========== */

/* --- 变量 --- */
:root {
    --bg-primary: #0f1117;
    --bg-secondary: #161822;
    --bg-card: #1c1e2e;
    --bg-card-hover: #242640;
    --bg-input: #252740;
    --text-primary: #e8e6e3;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent: #6c8cff;
    --accent-glow: rgba(108, 140, 255, 0.3);
    --warm: #f0a45d;
    --warm-glow: rgba(240, 164, 93, 0.2);
    --green: #4ade80;
    --border: rgba(255,255,255,0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --max-width: 680px;
    --font-serif: 'Noto Serif SC', 'Georgia', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- 基础 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(108,140,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(240,164,93,0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #8fa8ff; }
img { max-width: 100%; height: auto; display: block; }

/* --- 容器 --- */
.tree-wrapper {
    display: flex;
    flex-direction: column;
}
.tree-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}
.tree-content {
    width: 100%;
    max-width: var(--max-width);
}

/* ========== 顶部导航 ========== */
.tree-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}
.site-logo:hover { color: var(--text-primary); }
.logo-icon { font-size: 1.4rem; }
.header-nav { display: flex; gap: 6px; flex: 1; justify-content: center; }
.header-nav a {
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all .2s;
}
.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* 移动端菜单 */
.mobile-nav { display: none; }
.mobile-nav.open { display: block; }
.mobile-nav-mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.5);
}
.mobile-nav-panel {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 201;
    width: 260px;
    background: var(--bg-secondary);
    padding: 24px;
    transform: translateX(0);
    transition: transform .3s;
}
.mobile-nav-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; font-size: 1.1rem; font-weight: 600;
}
.mobile-nav-header button {
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.2rem; cursor: pointer;
}
.mobile-nav-panel a {
    display: block; padding: 12px 0;
    color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.mobile-nav-panel a:hover { color: var(--text-primary); }

/* ========== Hero 区域 ========== */
.hero-section {
    text-align: center;
    padding: 80px 24px 60px;
}
.hero-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    font-style: italic;
}
.hero-search form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    transition: border-color .2s;
}
.hero-search form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-search input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: color .2s;
}
.hero-search button:hover { color: var(--accent); }

/* 心情标签云（两行反向滚动） */
.mood-cloud {
    margin-top: 24px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.5s;
}
.mood-cloud:hover {
    opacity: 1;
}
.mood-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding-left: 16px;
}
.mood-track-1 {
    animation: mood-scroll 50s linear infinite;
}

.mood-cloud:hover .mood-track {
    animation-play-state: paused;
}
.mood-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(148, 163, 184, 1);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.mood-tag:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(100, 116, 139, 0.6);
}
.mood-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
@keyframes mood-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes mood-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ========== 面包屑 ========== */
.page-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.page-breadcrumb a { color: var(--text-secondary); }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb .sep { margin: 0 8px; }

/* ========== 树洞卡片列表 ========== */
.hole-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hole-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
}
.hole-card:hover {
    border-color: rgba(108,140,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* 封面 */
.hole-cover {
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
}
.hole-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.hole-card:hover .hole-cover img {
    transform: scale(1.03);
}

/* 卡片内容 */
.hole-body {
    padding: 20px 22px 12px;
}
.hole-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}
.hole-title a { color: var(--text-primary); }
.hole-title a:hover { color: var(--accent); }
.hole-excerpt {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hole-body .sort {
    display: inline-block;
    padding: 2px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.78rem;
    border-radius: 12px;
}

/* 卡片元信息 */
.hole-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.hole-stats {
    display: flex;
    gap: 14px;
}
.hole-stats span { display: flex; align-items: center; gap: 4px; }

/* 互动按钮 */
.hole-actions {
    display: flex;
    gap: 8px;
    padding: 10px 22px 16px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all .2s;
}
.action-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}
.action-btn.liked {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}
.action-icon { font-size: 1rem; }
.action-count { font-size: 0.82rem; }
.action-btn.large {
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* ========== 分页 ========== */
.pagination {
    text-align: center;
    padding: 32px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all .2s;
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.load-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all .2s;
}
.load-more-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 0;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h2 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.empty-state p { color: var(--text-muted); }

/* ========== 文章详情 ========== */
.hole-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.detail-cover {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}
.detail-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.detail-header {
    padding: 28px 28px 0;
}
.detail-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.detail-meta span { display: flex; align-items: center; gap: 5px; }
.detail-header .tag {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 2px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.78rem;
    border-radius: 12px;
}

/* ========== 卡片堆叠模块 ========== */
.card-stack-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 48px;
    min-height: 400px;
}
.card-stack-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 320px;
    perspective: 1000px;
}
@media (min-width: 768px) {
    .card-stack-container { height: 360px; max-width: 440px; }
}

.stack-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* 层级样式 */
.stack-card.card-active {
    z-index: 30;
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
    cursor: pointer;
    border-color: rgba(255,255,255,0.1);
}
.stack-card.card-middle {
    z-index: 20;
    transform: translateY(16px) scale(0.95) rotate(1deg);
    opacity: 0.7;
    cursor: default;
    border-color: rgba(100,116,139,0.3);
}
.stack-card.card-back {
    z-index: 10;
    transform: translateY(32px) scale(0.9) rotate(-1deg);
    opacity: 0.4;
    cursor: default;
    border-color: rgba(100,116,139,0.3);
}

/* 过渡动画（原地淡出缩小） */
.stack-card.card-gone-up {
    transform: translateY(32px) scale(0.9) rotate(-1deg);
    opacity: 0;
    z-index: 5;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* 卡片头部 */
.stack-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

/* 卡片内容 */
.stack-card-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin: 12px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.stack-card-body::-webkit-scrollbar { display: none; }
.stack-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
    margin-bottom: 10px;
}
.stack-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    white-space: pre-wrap;
}

/* 卡片底部 */
.stack-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding-top: 8px;
}
.stack-card-actions {
    display: flex;
    gap: 8px;
}
.stack-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    transition: all 0.2s;
}
.stack-action-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.08);
}
.stack-action-btn .action-count {
    font-size: 0.72rem;
    min-width: 12px;
    text-align: center;
}
.stack-action-btn.liked {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}
.stack-card-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.stack-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.stack-next-btn:hover {
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
}
.stack-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
}
.stack-card-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* ========== 文章弹窗 ========== */
.mt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.mt-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mt-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.92);
    transition: transform .35s cubic-bezier(.25,.46,.45,.94);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    overflow: hidden;
}
.mt-modal-overlay.open .mt-modal {
    transform: translateY(0) scale(1);
}
.mt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
    flex-shrink: 0;
}
.mt-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.mt-modal-meta .author { color: var(--text-primary); font-weight: 500; }
.mt-modal-meta .sort-tag {
    padding: 2px 10px;
    background: rgba(108,140,255,0.12);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 500;
}
.mt-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .2s;
    flex-shrink: 0;
}
.mt-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.mt-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.mt-modal-body::-webkit-scrollbar { width: 4px; }
.mt-modal-body::-webkit-scrollbar-track { background: transparent; }
.mt-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.mt-modal-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.5;
}
.mt-modal-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.mt-modal-content img {
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.mt-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.mt-modal-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mt-modal-stats span { display: flex; align-items: center; gap: 4px; }
.mt-modal-actions {
    display: flex;
    gap: 6px;
}
.mt-modal-actions .stack-action-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
}
.mt-modal-actions .stack-action-btn .action-icon { font-size: 1rem; }

.mt-modal-loading {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.mt-modal-loading i { display: block; font-size: 1.5rem; margin-bottom: 10px; opacity: .5; }

/* 弹窗评论区 */
.mt-modal-comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.mt-modal-comment-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mt-modal-comment-title i { color: var(--accent); }
.mt-modal-comment-list { display: flex; flex-direction: column; }
.mt-modal-comment-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.mt-modal-comment-item:last-child { border-bottom: none; }
.mt-modal-comment-body { flex: 1; min-width: 0; }
.mt-modal-comment-main {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
    word-break: break-word;
}
.mt-modal-comment-author {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent);
}
.mt-modal-comment-author a { color: var(--accent); text-decoration: none; }
.mt-modal-comment-sep { color: var(--text-muted); }
.mt-modal-comment-text { color: var(--text-secondary); }
.mt-modal-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.mt-modal-comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.mt-modal-reply-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s;
}
.mt-modal-reply-btn:hover { color: var(--accent); }
.mt-modal-sub-comments { margin-top: 4px; padding-left: 12px; border-left: 2px solid rgba(108,140,255,0.15); }
.mt-modal-sub-comment { padding: 8px 0; border-bottom-color: rgba(255,255,255,0.03); }

.mt-modal-no-comments {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 20px 0;
}

/* 弹窗评论表单 */
.mt-modal-comment-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.mt-modal-comment-form #mtCancelReply {
    margin-bottom: 10px;
}
.mt-modal-comment-form #mtCancelReply a {
    color: var(--warm);
    font-size: 0.82rem;
    text-decoration: none;
}
.mt-modal-comment-form .mt-modal-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: border-color .2s;
}
.mt-modal-comment-form .mt-modal-input:focus { border-color: var(--accent); }
.mt-modal-comment-form .mt-modal-input::placeholder { color: var(--text-muted); }
.mt-modal-comment-form .mt-modal-textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    min-height: 80px;
    resize: vertical;
    outline: none;
    font-family: var(--font-sans);
    line-height: 1.6;
    margin-bottom: 10px;
    transition: border-color .2s;
}
.mt-modal-comment-form .mt-modal-textarea:focus { border-color: var(--accent); }
.mt-modal-comment-form .mt-modal-textarea::placeholder { color: var(--text-muted); }
.mt-modal-submit-btn {
    padding: 8px 28px;
    background: var(--accent);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: opacity .2s;
}
.mt-modal-submit-btn:hover { opacity: 0.85; }
.mt-modal-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mt-modal-comment-msg {
    font-size: 0.82rem;
    margin-top: 8px;
    min-height: 20px;
    transition: all .3s;
}
.mt-modal-comment-msg.success {
    color: #4ade80;
}
.mt-modal-comment-msg.error {
    color: #ef4444;
}

/* ========== Drop 投递区域 ========== */
.drop-section {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
.drop-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}
.drop-header {
    text-align: center;
    margin-bottom: 20px;
}
.drop-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.drop-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.drop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.drop-cat {
    padding: 5px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.drop-cat:hover {
    border-color: rgba(108,140,255,0.3);
    color: var(--text-primary);
}
.drop-cat.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}
.drop-nickname {
    margin-bottom: 12px;
}
.drop-nickname input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}
.drop-nickname input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.drop-nickname input::placeholder { color: var(--text-muted); }
.drop-textarea-wrap {
    position: relative;
    margin-bottom: 16px;
}
.drop-textarea-wrap textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.92rem;
    min-height: 120px;
    resize: vertical;
    outline: none;
    transition: border-color .2s;
    font-family: var(--font-sans);
    line-height: 1.7;
}
.drop-textarea-wrap textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.drop-textarea-wrap textarea::placeholder { color: var(--text-muted); }
.drop-count {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}
.drop-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    letter-spacing: 0.5px;
}
.drop-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 140, 255, 0.35);
}
.drop-submit-btn:active {
    transform: translateY(0);
}
.drop-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.drop-submit-btn span { font-size: 1.1rem; }
.drop-tip {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;
}
.drop-msg {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: none;
}
.drop-msg.success {
    display: block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}
.drop-msg.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========== 宇宙回响弹窗 ========== */
.drop-echo-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.drop-echo-overlay.open {
    opacity: 1;
    visibility: visible;
}
.drop-echo-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 16px;
}
.drop-echo-glow {
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #2dd4bf, #3b82f6, #8b5cf6);
    border-radius: 16px;
    opacity: 0.5;
    filter: blur(8px);
    pointer-events: none;
}
.drop-echo-inner {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    transform: scale(0.92);
    transition: transform .25s cubic-bezier(.25,.46,.45,.94);
}
.drop-echo-overlay.open .drop-echo-inner {
    transform: scale(1);
}
.drop-echo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.drop-echo-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5eead4;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.drop-echo-title svg { flex-shrink: 0; }
.drop-echo-close {
    width: 28px; height: 28px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all .2s;
}
.drop-echo-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.drop-echo-body {
    padding: 20px 24px;
}
.drop-echo-body p {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    line-height: 1.8;
    color: #cbd5e1;
}
.drop-echo-foot {
    padding: 0 20px 20px;
}
.drop-echo-btn {
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.25);
}
.drop-echo-btn:hover {
    background: linear-gradient(135deg, #2dd4bf, #60a5fa);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}
@media (max-width: 640px) {
    .drop-echo-card { max-width: calc(100% - 48px); }
    .drop-echo-body { padding: 16px 20px; }
}

.detail-content {
    padding: 24px 28px;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
}
.detail-content h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 28px 0 12px; }
.detail-content h3 { font-family: var(--font-serif); font-size: 1.15rem; margin: 24px 0 10px; }
.detail-content p { margin-bottom: 16px; }
.detail-content img { border-radius: 10px; margin: 16px 0; }
.detail-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.detail-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(108,140,255,0.06);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}
.detail-content code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.detail-content pre {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}
.detail-content pre code { background: none; padding: 0; }

/* 详情互动 */
.detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.action-group { display: flex; gap: 10px; }
.share-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all .2s;
}
.share-btn:hover {
    border-color: var(--warm);
    color: var(--warm);
}

/* ========== 热门话题 ========== */
.hot-topics {
    max-width: 960px;
    margin: 60px auto 0;
    padding: 0 24px;
}
.section-header { text-align: center; margin-bottom: 32px; }
.section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.section-title i { color: var(--warm); margin-right: 6px; }
.section-desc { color: var(--text-muted); font-size: 0.9rem; }
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.topic-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .25s;
    color: var(--text-primary);
}
.topic-card:hover {
    border-color: rgba(108,140,255,0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--text-primary);
}
.topic-emoji { font-size: 1.6rem; margin-bottom: 10px; }
.topic-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.topic-hot { color: var(--warm); }

/* ========== 评论区 ========== */
.comments-section { padding: 24px 28px; }
.comments-header h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.comments-header h2 i { margin-right: 8px; color: var(--accent); }

/* 评论列表 */
.comment-list { margin-bottom: 24px; }
.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-input);
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}
.comment-author a { color: var(--accent); }
.comment-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.comment-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    word-break: break-word;
}
.comment-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s;
}
.comment-reply-btn:hover { color: var(--accent); }

/* 子评论回复区 - 平铺不缩进 */
.comment-reply {
    margin-top: 0;
    padding-left: 0;
    border-left: none;
}
.comment-reply .comment-item {
    padding: 12px 0;
    border-bottom-color: rgba(255,255,255,0.03);
}
.comment-reply .comment-avatar {
    width: 32px; height: 32px;
}

/* 评论分页 */
#pagenavi {
    text-align: center;
    padding: 16px 0;
}
#pagenavi a, #pagenavi span {
    display: inline-block;
    padding: 6px 14px;
    margin: 2px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
#pagenavi a:hover { border-color: var(--accent); color: var(--accent); }
#pagenavi .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 评论表单 */
.comment-form { margin-top: 24px; }
.comment-form #cancel-reply {
    margin-bottom: 12px;
    padding: 8px 14px;
    background: rgba(240,164,93,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}
.comment-form #cancel-reply a { color: var(--warm); }
.comment-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}
.comment-form input:focus { border-color: var(--accent); }
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: border-color .2s;
    margin-bottom: 10px;
    font-family: var(--font-sans);
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form button[type="submit"] {
    padding: 10px 32px;
    background: var(--accent);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 0.92rem;
    cursor: pointer;
    transition: opacity .2s;
}
.comment-form button[type="submit"]:hover { opacity: 0.85; }

/* 验证码输入框兼容 */
.comment-form .captcha { margin-bottom: 10px; }
.comment-form .captcha input[type="text"] { flex: none; width: 120px; }
.comment-form .captcha img { vertical-align: middle; margin-left: 8px; cursor: pointer; border-radius: 4px; }

/* ========== Footer ========== */
.tree-footer {
    margin-top: 60px;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1rem;
    margin-bottom: 12px;
}
.footer-logo { font-size: 1.3rem; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 4px; }
.tree-footer a { color: var(--text-muted); }
.tree-footer p { font-size: 0.78rem; color: var(--text-muted); margin: 4px 0; }

/* ========== 浮动按钮 ========== */
.float-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
}
.float-btn {
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    box-shadow: var(--shadow);
}
.float-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}
.float-btn.top-btn { opacity: 0; pointer-events: none; transition: all .25s; }
.float-btn.top-btn.visible { opacity: 1; pointer-events: auto; }

/* ========== 上下篇 ========== */
.neighbor-log {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    border-top: 1px solid var(--border);
}
.neighbor-log a {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all .2s;
}
.neighbor-log a:hover { color: var(--accent); background: var(--bg-card-hover); }
.neighbor-log a.next { text-align: right; }

/* ========== 响应式 ========== */
@media (max-width: 640px) {
    .header-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 1.6rem; }
    .hero-section { padding: 50px 16px 40px; }
    .hole-cover { aspect-ratio: 16/9; }
    .hole-body { padding: 16px 18px 10px; }
    .hole-meta { padding: 10px 18px; flex-wrap: wrap; gap: 8px; }
    .hole-actions { padding: 8px 18px 14px; }
    .detail-header { padding: 20px 20px 0; }
    .detail-content { padding: 20px; }
    .detail-actions { padding: 0 20px 20px; }
    .comments-section { padding: 20px; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .neighbor-log { flex-direction: column; padding: 16px 20px; }
    .neighbor-log a.next { text-align: left; }
    .float-actions { bottom: 16px; right: 16px; }
    .drop-container { padding: 20px 16px; }
    .drop-categories { gap: 6px; }
    .drop-cat { padding: 4px 10px; font-size: 0.72rem; }
}
