/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* === Navigation === */
.navbar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text) !important;
}

.logo-icon { font-size: 1.5rem; }
.nav-logo-img { height: 32px; width: auto; border-radius: 6px; }

.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-links-center {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: var(--primary-glow);
}

.nav-admin {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.3);
}
.nav-admin:hover { background: var(--primary); color: white; }

/* === 用户下拉菜单 === */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    border: 1px solid rgba(108, 92, 231, 0.3);
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}

.user-dropdown-trigger:hover {
    border-color: var(--primary);
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    color: var(--primary);
    font-weight: 600;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 200;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 0.88rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.dropdown-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.dropdown-logout:hover {
    color: var(--error);
    background: rgba(248, 113, 113, 0.08);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-dropdown {
        width: 100%;
    }
    .user-dropdown-trigger {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    .user-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        margin-top: 4px;
    }
    .dropdown-item {
        padding: 10px 24px;
        justify-content: center;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* === Flash Messages === */
/* ========================================
   Flash 消息 — 玻璃拟态豪华对话框
   ======================================== */

.flash-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 199;
    animation: fadeIn 0.3s ease;
}

.flash-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 400px;
}

.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: dialogSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .flash-message {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="inovance"] .flash-message {
    background: rgba(34, 36, 38, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.flash-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.flash-error::before {
    background: linear-gradient(90deg, #ff6b81, #ff4757, #ff6b81);
    background-size: 200% 100%;
    animation: shimmerGradient 3s ease infinite;
}

.flash-success::before {
    background: linear-gradient(90deg, #7bed9f, #2ed573, #7bed9f);
    background-size: 200% 100%;
    animation: shimmerGradient 3s ease infinite;
}

.flash-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.15);
    position: relative;
}

.flash-error .flash-icon {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(255, 107, 129, 0.08));
    border-color: rgba(255, 71, 87, 0.2);
}

.flash-success .flash-icon {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.15), rgba(123, 237, 159, 0.08));
    border-color: rgba(46, 213, 115, 0.2);
}

.flash-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flash-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text, #e2e8f0);
    letter-spacing: -0.01em;
}

.flash-error .flash-text {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 2px;
}

.flash-success .flash-text {
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.88rem;
    margin-top: 2px;
}

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

.flash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.flash-error .flash-btn {
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.flash-error .flash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.flash-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #64748b);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 6px 10px;
    border-radius: 10px;
    opacity: 0.6;
    transition: all 0.2s ease;
    line-height: 1;
}

.flash-close:hover {
    opacity: 1;
    color: var(--text, #e2e8f0);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .flash-close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

@keyframes dialogSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === Hero === */
.hero {
    text-align: center;
    padding: 80px 0 48px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.hero-link {
    text-decoration: none;
}
.hero-link:hover .hero-title {
    opacity: 0.85;
}
.hero-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary-glow);
    color: var(--primary) !important;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
}
.hero-cta:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-1px);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* === Posts Grid === */
.posts-section { padding-bottom: 60px; }

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.post-card-body { padding: 20px; }

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
}
.post-tag:hover { background: var(--primary); color: white; }

.post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a { color: var(--text) !important; }
.post-title a:hover { color: var(--primary) !important; }

.post-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.page-link {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
}
.page-link:hover { border-color: var(--primary); background: var(--primary-glow); }

.page-info { color: var(--text-muted); font-size: 0.9rem; }

/* === Post Detail === */
.post-detail { padding: 48px 0; }

.post-header { margin-bottom: 40px; }

.post-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-content { line-height: 1.8; }

/* Markdown Body */
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.markdown-body h1 { font-size: 1.8rem; }
.markdown-body h2 { font-size: 1.5rem; }
.markdown-body h3 { font-size: 1.25rem; }

.markdown-body p { margin-bottom: 16px; }

.markdown-body ul, .markdown-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.markdown-body li { margin-bottom: 6px; }

.markdown-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--primary-glow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.markdown-body code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

.markdown-body pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.markdown-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.markdown-body a { color: var(--accent); text-decoration: underline; }

/* Code block header */
.markdown-body pre { position: relative; }

/* === Back Link === */
.post-nav {
    padding-bottom: 60px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}
.back-link:hover { color: var(--primary); }

/* === Auth Page === */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.auth-logo-img {
    height: 64px;
    width: auto;
    border-radius: 12px;
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary); filter: brightness(1.15); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }

.btn-danger {
    background: transparent;
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--error);
}
.btn-danger:hover { background: rgba(255, 71, 87, 0.1); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-block { width: 100%; }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* === About Page === */
.about-page {
    padding: 60px 0;
}
.about-page h1 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.about-content { max-width: 860px; }

/* ====== 资源/课程卡片块 ====== */
.resource-block {
    display: flex; align-items: center; gap: 18px;
    background: var(--bg-card, #111118);
    border: 1px solid var(--border, #1a1a2e);
    border-radius: 14px;
    padding: 20px 24px; margin: 20px 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.resource-block:hover {
    border-color: var(--primary, #6c5ce7);
    box-shadow: 0 4px 16px rgba(108,92,231,0.12);
    transform: translateY(-2px);
}

/* 亮色主题调整 */
[data-theme="light"] .resource-block {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #ffffff;
}
[data-theme="light"] .resource-block:hover {
    box-shadow: 0 4px 16px rgba(108,92,231,0.10);
}

.resource-block-error {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.3);
    border-radius: 12px;
    padding: 14px 18px; margin: 16px 0;
    color: #ff4757; font-size: 0.9rem;
}
.rb-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; flex-shrink: 0;
    background: rgba(108,92,231,0.1);
    color: var(--primary, #6c5ce7);
}
.course-block .rb-icon { background: rgba(0,200,83,0.1); color: #00c853; }
.rb-body { flex: 1; min-width: 0; }
.rb-title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.rb-desc { font-size: 0.85rem; color: var(--text-muted, #6b6b80); margin-bottom: 8px; line-height: 1.5; }
.rb-meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--text-muted, #6b6b80);
}
.rb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rb-download-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 10px;
    background: var(--primary, #6c5ce7); color: #fff;
    font-family: inherit; font-size: 0.85rem; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.25s ease;
    text-decoration: none; flex-shrink: 0; white-space: nowrap;
}
.rb-download-btn:hover {
    background: var(--primary-hover, #5a4bd1);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(108,92,231,0.25);
}
.rb-login-required { background: #666; }
.rb-login-required:hover { background: #555; transform: none; box-shadow: none; }
.rb-star { color: #444; font-size: 1.1rem; }
.rb-star.active { color: #ffc107; }
.rb-rating-text { margin-left: 4px; font-size: 0.8rem; }
.rb-stars-wrap { display: inline-flex; align-items: center; }

/* ====== 移动端卡片优化 ====== */
@media (max-width: 640px) {
    .resource-block {
        flex-wrap: wrap; gap: 12px;
        padding: 14px; margin: 14px 0;
    }
    .resource-block .rb-icon {
        width: 44px; height: 44px; font-size: 1.3rem;
    }
    .resource-block .rb-body {
        flex: 1; min-width: calc(100% - 60px);
    }
    .resource-block .rb-title {
        font-size: 0.9rem; word-break: break-word;
    }
    .resource-block .rb-desc {
        font-size: 0.8rem; margin-bottom: 6px;
        display: -webkit-box; -webkit-line-clamp: 2;
        -webkit-box-orient: vertical; overflow: hidden;
    }
    .resource-block .rb-meta {
        gap: 8px; font-size: 0.75rem;
    }
    .resource-block .rb-stars-wrap {
        width: 100%;
    }
    .resource-block .rb-download-btn {
        width: 100%; justify-content: center;
        padding: 11px 16px; font-size: 0.85rem;
    }
}

/* 极小屏 (<380px) 进一步紧凑 */
@media (max-width: 380px) {
    .resource-block { padding: 12px; gap: 10px; }
    .resource-block .rb-icon {
        width: 38px; height: 38px; font-size: 1.1rem;
    }
    .resource-block .rb-title { font-size: 0.85rem; }
    .resource-block .rb-meta { gap: 6px; font-size: 0.7rem; flex-direction: column; }
}

/* === Footer === */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-content .icp-beian {
    margin: 0;
}

.footer-content .icp-beian a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-content .icp-beian a:hover {
    color: var(--accent);
}

/* === Responsive === */
@media (max-width: 640px) {
    .hero { padding: 48px 0 32px; }
    .hero-title { font-size: 2rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 8px;
    }
    .nav-links.open .nav-links-center {
        position: static;
        transform: none;
        margin-left: 0;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    .nav-links.open .nav-links-center .nav-link {
        width: 100%;
        padding: 10px 16px;
        border-radius: var(--radius-sm);
    }
    .nav-links.open .nav-links-right {
        position: static;
        transform: none;
        margin-left: 0;
        flex-direction: row;
        gap: 8px;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
        width: 100%;
        justify-content: flex-start;
    }
    .post-detail-title { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* 极小屏 (<380px) 容器紧凑 */
@media (max-width: 380px) {
    .nav-container {
        padding: 0 16px;
    }
    .container {
        padding: 0 16px;
    }
}
