/* 
  《杖剑传说》系统架构库 - 博客排版样式
*/

:root {
    --bg-dark: #0a0a0f;
    --bg-panel: rgba(20, 20, 30, 0.4);
    --primary-color: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.6);
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;

    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(20px);

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --rarity-r: rgb(134, 173, 253);
    --rarity-sr: rgb(164, 104, 253);
    --rarity-ssr: rgb(242, 189, 97);
    --rarity-ur: rgb(255, 230, 100);
    --rarity-lr: rgb(254, 81, 122);
    --rarity-er-gradient: linear-gradient(135deg, rgb(134, 173, 253), rgb(164, 104, 253), rgb(242, 189, 97), rgb(255, 230, 100), rgb(254, 81, 122));
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* --- 详情切片与 9:16 图片面板布局 --- */
.detail-split-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.detail-text-content {
    flex: 1;
    min-width: 0;
    /* 避免 flex 子项内容由于 Markdown 表格溢出越界撑开 */
}

.detail-image-panel {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
}

.aspect-ratio-9-16 {
    position: relative;
    width: 100%;
    padding-top: 177.78%;
    /* 16 / 9 = ~1.7778 */
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}

.img-placeholder .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 850px) {
    .detail-split-layout {
        flex-direction: column-reverse;
        /* 偏小屏幕默认图片在下 */
    }

    .detail-image-panel {
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0 auto;
        position: static;
    }
}

/* --- Markdown 实体表格样式 --- */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.markdown-body th,
.markdown-body td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    text-align: left;
}

.markdown-body th {
    background-color: rgba(139, 92, 246, 0.2);
    font-weight: 600;
    color: var(--accent-color);
}

.markdown-body tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* 基础玻璃版与环境特效 */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, var(--bg-dark) 100%);
}

.ambient-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("icon/background/20260318-195728.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.1;
    mix-blend-mode: screen;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(3%, 3%) scale(1.05);
    }
}

/* =========================================
   双栏框架布局
   ========================================= */
.layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边导航 */
.glass-sidebar {
    width: 320px;
    height: 100%;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: var(--glass-blur);
    border-right: var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    /* 宽度过渡动画 */
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    /* overflow visible 保证按钮不被裁剪，内容溢出由各子元素自行控制 */
    overflow: visible;
}

/* 收起状态：缩为 48px 窄条 */
.glass-sidebar.collapsed {
    width: 48px;
    padding: 2.5rem 0;
}

/* 收起时隐藏所有内容（渐出），按钮本身用 position:absolute 独立不受影响 */
.glass-sidebar.collapsed .sidebar-footer,
.glass-sidebar.collapsed .sidebar-nav,
.glass-sidebar.collapsed .sidebar-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s;
    overflow: hidden;
    white-space: nowrap;
}

/* 展开时内容渐入 */
.glass-sidebar:not(.collapsed) .sidebar-footer,
.glass-sidebar:not(.collapsed) .sidebar-nav,
.glass-sidebar:not(.collapsed) .sidebar-header {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s 0.1s;
}

/* 收起/展开按钮 */
.sidebar-toggle {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #dbe4f0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    flex-shrink: 0;
    transition: background 0.15s, box-shadow 0.15s;
}

.sidebar-toggle:hover {
    background: #eff6ff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.2);
}

.sidebar-toggle-icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    color: #2563eb;
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    /* 默认方向：‹ 表示「向左收起」 */
}

/* 收起状态下箭头反转为 › 表示「向右展开」 */
.glass-sidebar.collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-header {
    margin-bottom: 3rem;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.logo span {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-left: 0.35rem;
    -webkit-text-fill-color: var(--accent-color);
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

.nav-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* 飞书式目录：简洁大纲，缩进层级，无大按钮 */
.nav-list.feishu-outline .nav-group {
    margin-bottom: 0;
}

.nav-list.feishu-outline .nav-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-main);
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.nav-list.feishu-outline .nav-group-header:hover {
    color: var(--accent-color);
}

.nav-list.feishu-outline .nav-group-chevron {
    font-size: 0.55rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-list.feishu-outline .nav-group.expanded .nav-group-chevron {
    transform: rotate(0deg);
}

.nav-list.feishu-outline .nav-group:not(.expanded) .nav-group-chevron {
    transform: rotate(-90deg);
}

.nav-list.feishu-outline .nav-group-body {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-left: 1px solid rgba(255,255,255,0.08);
    margin-left: 0.35rem;
}

.nav-list.feishu-outline .nav-group:not(.expanded) .nav-group-body {
    max-height: 0 !important;
    margin: 0;
    margin-left: 0.35rem;
    padding-left: 1rem;
    opacity: 0;
    pointer-events: none;
}

.nav-list.feishu-outline .nav-group.expanded .nav-group-body {
    max-height: 2000px;
    opacity: 1;
}

.nav-list.feishu-outline .nav-item {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
}

.nav-list.feishu-outline .nav-item.sub-item {
    padding-left: 1rem;
    text-decoration: none;
}

.nav-list.feishu-outline .nav-item:hover {
    transform: none;
}

.nav-list.feishu-outline .nav-item.active {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
}

/* 兼容：非 feishu-outline 保留原样式 */
.nav-group {
    margin-bottom: 0.25rem;
}

.nav-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.nav-group-header:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(139, 92, 246, 0.25);
}

.nav-group-chevron {
    font-size: 0.6rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.nav-group.expanded .nav-group-chevron {
    transform: rotate(0deg);
}

.nav-group:not(.expanded) .nav-group-chevron {
    transform: rotate(-90deg);
}

.nav-group-body {
    list-style: none;
    margin: 0.35rem 0 0 0;
    padding-left: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.nav-group:not(.expanded) .nav-group-body {
    max-height: 0 !important;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.nav-group.expanded .nav-group-body {
    max-height: 2000px;
    opacity: 1;
}

.nav-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 2rem 0 0.8rem 0;
    padding-left: 0.5rem;
    opacity: 0.8;
}

.nav-item {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(5px);
}

.nav-item.sub-item {
    padding-left: 1.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    position: relative;
}

.nav-item.sub-item::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 50%;
    width: 4px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #fff;
    box-shadow: inset 4px 0 0 var(--primary-color);
}

.sidebar-footer {
    margin-top: 0;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.sidebar-header {
    margin-top: 1rem;
    margin-bottom: 0;
}

.auth-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.auth-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
}

/* 未登录：头像作为登录入口 */
.auth-avatar.is-auth-trigger {
    cursor: pointer;
}

.auth-avatar.is-auth-trigger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.auth-user-meta {
    min-width: 0;
}

.auth-user-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.auth-status {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
}

.auth-modal-panel {
    position: relative;
    width: min(92vw, 420px);
    margin: 8vh auto 0;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.auth-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.auth-modal-head {
    margin-bottom: 1rem;
}

.auth-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.auth-modal-subtitle {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-mode-tab {
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.auth-mode-tab.is-active {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #93c5fd;
    color: #1d4ed8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* [hidden] 须压过本类的 display:flex，否则注册项会在登录页离奇露出来 */
.auth-field[hidden] {
    display: none !important;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.9rem;
}

.auth-inline-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.auth-inline-row input {
    flex: 1;
    min-width: 0;
}

.auth-send-code-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 12px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.auth-send-code-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-form-hint {
    margin: -0.35rem 0 0;
    font-size: 0.82rem;
    color: #0369a1;
    line-height: 1.35;
}

.auth-form-hint[hidden] {
    display: none !important;
}

.auth-field input {
    height: 44px;
    padding: 0 0.9rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 0.95rem;
    outline: none;
}

.auth-field input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form-error {
    min-height: 1.1rem;
    color: #dc2626;
    font-size: 0.84rem;
}

.auth-submit-btn {
    height: 46px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.18);
}

/* Google 登录按钮 */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 46px;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.google-login-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-login-btn:active {
    transform: scale(0.98);
}

/* 分隔线 */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 1rem;
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* 主阅读区：长文档布局，右侧整块可滚动 */
.content-area {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.content-area .content-header {
    flex-shrink: 0;
}

.content-area #reader-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

#reader-container::-webkit-scrollbar {
    width: 8px;
}

#reader-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#reader-container::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.4);
}

/* 交互重构：内容头部与面包屑 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .active-page {
    color: var(--accent-color);
    margin-left: 0.5rem;
    font-weight: 500;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

/* 交互式系统拆解图容器 */
.system-diagram-view {
    padding: 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- 思维导图树状样式 --- */
.mindmap-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 2rem;
}

.mm-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* 根节点 */
.mm-root {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.2));
    border: 2px solid var(--accent-color);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    z-index: 2;
    position: relative;
}

/* 一级分支容器 */
.mm-branches {
    display: flex;
    flex-direction: column;
    margin-left: 40px;
    /* 连线距离 */
    position: relative;
}

/* 根节点通向一级分支的主干竖线 */
.mm-branches::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: rgba(139, 92, 246, 0.6);
    transform: translateY(-50%);
}

/* 一级分支项，每一个包含一个节点和它衍生的子分支 */
.mm-branch {
    display: flex;
    align-items: center;
    position: relative;
    padding: 1.5rem 0;
}

/* 画垂直连接线 */
.mm-branch::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: rgba(139, 92, 246, 0.6);
}

.mm-branch::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(139, 92, 246, 0.6);
}

/* 去掉第一项的上半根线和最后一项的下半根线，形成完美的树叉 */
.mm-branch:first-child::after {
    top: 50%;
}

.mm-branch:last-child::after {
    bottom: 50%;
}

.mm-branch:only-child::after {
    display: none;
}

/* 交互节点 */
.mm-node {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.mm-node:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mm-node h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.mm-node p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 二级分支 (子系统详情模块) */
.mm-sub-branches {
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    position: relative;
}

.mm-sub-branch {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.75rem 0;
}

.mm-sub-branch::before,
.mm-sub-branch::after {
    background: rgba(255, 255, 255, 0.2);
}

.mm-sub-branch::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 15px;
    height: 1px;
}

.mm-sub-branch::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 1px;
}

.mm-sub-branch:first-child::after {
    top: 50%;
}

.mm-sub-branch:last-child::after {
    bottom: 50%;
}

.mm-sub-node {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mm-sub-node:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
}

/* 加载动画占位 */
.diagram-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: rgba(255, 255, 255, 0.3);
}

.glass-reader {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-panel);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 4rem 5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-height: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 长文档内每个章节：锚点跳转时留出顶部间距，章节之间分隔 */
.doc-section {
    scroll-margin-top: 1.5rem;
    padding-top: 0.5rem;
    margin-bottom: 3rem;
}
.doc-section:first-child { padding-top: 0; }

/* =========================================
   Markdown 专属排版元素强化渲染 (markdown-body)
   ========================================= */
.markdown-body {
    color: var(--text-main);
    font-size: 1.05rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.markdown-body h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.markdown-body h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.markdown-body h2::before {
    content: '✦';
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.markdown-body h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
}

.markdown-body p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.markdown-body strong {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* 重点引用块 (Blockquote) */
.markdown-body blockquote {
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-body blockquote p:last-child {
    margin-bottom: 0;
}

/* 列表渲染 */
.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #cbd5e1;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body li::marker {
    color: var(--secondary-color);
    font-size: 1.2em;
}

/* 强调片段 (Inline Code) */
.markdown-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #93c5fd;
    font-size: 0.9em;
}

/* 代码段 (Pre Code) */
.markdown-body pre {
    background: #0d0d14;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.markdown-body pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
    font-size: 0.85rem;
}

/* 图片 */
.markdown-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================
   赛季概览（核心概览替换）
   ================================ */
.season-overview-wrap {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-overview-body {
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(300px, 0.95fr);
    gap: 1rem;
    align-items: start;
}

.season-timeline-pane,
.season-detail-pane {
    min-width: 0;
}

.season-pane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.season-pane-head h3 {
    margin: 0;
    font-size: 1rem;
}

.season-pane-head p {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.season-pane-meta {
    font-size: 0.78rem;
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.28);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.season-overview-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.season-open-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.season-open-label {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.season-open-date {
    font-size: 1.05rem;
    font-weight: 700;
    color: #dbeafe;
}

.season-open-days {
    color: #cbd5e1;
    font-size: 1rem;
}

.season-open-days strong {
    color: #60a5fa;
    font-size: 1.6rem;
    margin: 0 0.2rem;
}

.season-server-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.season-server-text {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: 600;
}

.season-server-edit-btn {
    align-self: flex-end;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.84rem;
    cursor: pointer;
}

.season-server-edit-btn:hover {
    background: rgba(59, 130, 246, 0.24);
}

.season-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100vh - 320px);
    overflow: auto;
    padding-right: 0.3rem;
}

.season-timeline-list::-webkit-scrollbar {
    width: 8px;
}

.season-timeline-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.season-card {
    border-radius: 12px;
}

.season-timeline-item {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.season-timeline-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.season-timeline-item.is-active {
    outline: 2px solid rgba(96, 165, 250, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.season-card-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.72rem 0.95rem;
    color: #fff;
    background: linear-gradient(90deg, #2288ff, #55acef);
}

.season-banner-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.season-badge {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

.season-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.season-banner-right {
    font-size: 1rem;
    font-weight: 700;
}

.season-card-region {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.78rem 1rem;
    border-left: 4px solid #3190ff;
    background: rgba(190, 219, 245, 0.2);
}

.season-region-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #e2e8f0;
}

.season-region-date,
.season-main-date {
    background: #2787f0;
    color: #fff;
    border-radius: 8px;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.season-card-detail {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.55rem;
    align-items: stretch;
}

.season-day-col {
    color: #cbd5e1;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    padding-top: 0.95rem;
}

.season-main-col {
    padding: 0.88rem 1rem;
    border-left: 4px solid #2e8eff;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.season-card-compact {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.7rem;
    align-items: start;
}

.season-compact-day {
    padding-top: 0.8rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    color: #94a3b8;
}

.season-compact-main {
    padding: 0.75rem 0.85rem;
    border-left: 4px solid #2e8eff;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.season-card-compact.is-activity .season-compact-main {
    border-left-color: #fb923c;
}

.season-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.season-compact-head h4 {
    margin: 0;
    color: #f1f5f9;
    font-size: 1rem;
    line-height: 1.35;
}

.season-compact-summary {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.55;
}

.season-timeline-tag {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #bfdbfe;
    font-size: 0.7rem;
}

.season-card-detail.is-activity .season-main-col {
    border-left-color: #fb923c;
}

.season-main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.season-main-head h4 {
    margin: 0;
    color: #f1f5f9;
    font-size: 1.72rem;
    font-weight: 800;
}

.season-tag {
    display: inline-block;
    color: #fca5a5;
    border: 1px solid rgba(252, 165, 165, 0.8);
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}

.season-line {
    margin-bottom: 0.22rem;
    color: #d1d5db;
    font-size: 1.4rem;
}

.season-line span {
    color: #9ca3af;
    margin-right: 0.4rem;
    font-size: 0.9em;
}

.season-line strong {
    color: #fda4af;
}

.season-sub-list {
    margin: 0.35rem 0 0;
    padding-left: 1rem;
    color: #cbd5e1;
}

.season-sub-list li {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
}

.season-detail-card {
    position: sticky;
    top: 0;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    min-height: 320px;
}

.season-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.season-detail-season {
    color: #93c5fd;
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.season-detail-head h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #fff;
}

.season-detail-datebox {
    flex-shrink: 0;
    background: rgba(39, 135, 240, 0.95);
    color: #fff;
    border-radius: 10px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.season-detail-tag {
    margin-bottom: 0.7rem;
}

.season-detail-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.season-detail-chip {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.season-detail-chip span {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.season-detail-chip strong {
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.45;
}

/* 战力要求：难度+战力 递进颜色卡片（首页嵌入） */
.season-difficulty-cards-wrap {
    grid-column: 1 / -1;
}
.season-detail-chip-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.74rem;
}
.season-difficulty-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.season-difficulty-card {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 2px solid;
    min-width: 5rem;
}
.season-difficulty-name {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-bottom: 0.15rem;
}
.season-difficulty-power {
    font-weight: 700;
    font-size: 0.95rem;
}
.season-difficulty-level-1 {
    border-color: rgba(34, 197, 94, 0.75);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}
.season-difficulty-level-2 {
    border-color: rgba(234, 179, 8, 0.8);
    background: rgba(234, 179, 8, 0.14);
    color: #fde047;
}
.season-difficulty-level-3 {
    border-color: rgba(249, 115, 22, 0.8);
    background: rgba(249, 115, 22, 0.15);
    color: #fdba74;
}
.season-difficulty-level-4 {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
.season-difficulty-level-5 {
    border-color: rgba(139, 92, 246, 0.85);
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
}

.season-detail-block {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.season-detail-block h5 {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: #e5e7eb;
}

.season-detail-list {
    margin: 0;
    padding-left: 1rem;
    color: #cbd5e1;
}

.season-detail-list li {
    margin-bottom: 0.45rem;
    line-height: 1.6;
}

.season-detail-list li span {
    display: block;
    color: #94a3b8;
    font-size: 0.84rem;
}

.season-detail-hero {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.season-detail-hero h4 {
    margin: 0 0 0.2rem;
    font-size: 1.15rem;
    color: #fff;
}

.season-detail-hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.season-detail-hero-banner {
    background: linear-gradient(90deg, rgba(34, 136, 255, 0.22), rgba(85, 172, 239, 0.16));
}

.season-detail-hero-region {
    background: rgba(190, 219, 245, 0.12);
}

.season-detail-icon {
    font-size: 1.2rem;
}

.season-loading,
.season-error,
.season-empty {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
    .season-overview-body {
        grid-template-columns: 1fr;
    }

    .season-detail-card {
        position: static;
    }

    .season-timeline-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .season-overview-top {
        flex-direction: column;
    }

    .season-server-meta {
        text-align: left;
    }

    .season-server-edit-btn {
        align-self: flex-start;
    }

    .season-main-head,
    .season-compact-head,
    .season-detail-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .season-detail-metrics {
        grid-template-columns: 1fr;
    }
}

.season-page-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 16px 0 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.season-page-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.season-page-title {
    display: grid;
    gap: 8px;
}

.season-page-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.5rem);
    letter-spacing: 0.02em;
}

.season-page-title p {
    margin: 0;
    max-width: 820px;
    color: var(--text-dim);
    line-height: 1.65;
}

.season-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.season-page-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.season-page-back:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.48);
    background: rgba(30, 41, 59, 0.88);
}

.season-page-app {
    min-height: 420px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.season-layout-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    flex: 1;
}

.season-layout-topbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.season-stat-card {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.74));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.season-stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.season-stat-value {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.season-stat-subtle {
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.season-stat-controls {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.season-stat-field {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.season-stat-field-label {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.season-stat-select {
    width: 100%;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.36);
    background: rgba(30, 41, 59, 0.65);
    color: var(--text-main);
    font-size: 0.8rem;
    padding: 0 8px;
    outline: none;
}

.season-stat-select:focus {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.16);
}

.season-stat-button {
    margin-top: 6px;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.season-stat-button:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.48);
    background: rgba(37, 99, 235, 0.22);
}

.season-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 10px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* 左侧时间线：仅滚动容器，不再整块描边铺底（卡片各自独立） */
.season-list {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.season-detail-pane {
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.season-detail-card-v2 {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

.season-list-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 0 0 6px;
}

.season-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.season-list-meta {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.season-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.season-season-block {
    display: grid;
    gap: 6px;
}

.season-season-card {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(56, 189, 248, 0.72));
    color: #eff6ff;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.season-season-card:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.season-season-card.is-active {
    box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.55), 0 18px 40px rgba(37, 99, 235, 0.24);
}

.season-season-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.season-season-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.28rem;
    font-weight: 800;
}

.season-season-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.season-season-day {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.season-season-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    color: rgba(239, 246, 255, 0.9);
}

.season-season-card--expand {
    cursor: pointer;
}

.season-season-card--expand:hover {
    filter: brightness(1.06);
}

.season-season-expand-hint {
    margin-top: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.season-season-card[data-is-season-banner] .season-season-expand-hint {
    margin-top: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
}

/* 折叠状态：紧凑显示，仅一行标题 + 一行 meta+提示 */
.season-season-block--collapsed .season-season-card {
    padding: 5px 10px 6px;
    border-radius: 10px;
}

.season-season-block--collapsed .season-season-card-top {
    gap: 6px;
}

.season-season-block--collapsed .season-season-card-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.season-season-block--collapsed .season-season-badge {
    min-height: 18px;
    padding: 0 5px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.season-season-block--collapsed .season-season-day {
    font-size: 0.75rem;
}

.season-season-block--collapsed .season-season-meta {
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.3;
}

.season-season-block--collapsed .season-season-expand-hint {
    margin-top: 2px;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
}

.season-season-block--collapsed .season-region-stack {
    display: none;
}

.season-region-stack {
    display: grid;
    gap: 6px;
}

.season-region-group {
    position: relative;
    display: grid;
    gap: 6px;
    padding-left: 18px;
}

.season-region-group::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.24), rgba(148, 163, 184, 0.08));
}

.season-region-group--collapsed-nodes .season-node-list {
    display: none;
}

.season-region-collapse-chevron {
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.85;
}

.season-region-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(226, 232, 240, 0.08);
    cursor: pointer;
}

.season-region-card::before {
    content: '';
    position: absolute;
    left: -17px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.season-region-card.is-active {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(96, 165, 250, 0.14);
}

.season-region-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
}

.season-region-icon {
    font-size: 1.05rem;
}

.season-region-date {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.92);
    color: #eff6ff;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.season-date-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.season-region-day-badge,
.season-node-day-badge {
    background: rgba(37, 99, 235, 0.82);
}

.season-region-date-muted {
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-dim);
}

.season-node-list {
    display: grid;
    gap: 4px;
    padding-left: 20px;
}

.season-node-card {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.season-node-card::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 26px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.88;
}

.season-node-card.is-normal {
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.24);
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.18), rgba(15, 23, 42, 0.88));
    box-shadow: inset 4px 0 0 #22c55e;
}

.season-node-card.is-weekly {
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.2), rgba(15, 23, 42, 0.88));
    box-shadow: inset 4px 0 0 #f59e0b;
}

.season-node-card:hover {
    transform: translateY(-1px);
}

.season-node-card.is-active {
    box-shadow: inset 4px 0 0 currentColor, 0 0 0 1px currentColor;
}

.season-node-day-index {
    position: absolute;
    left: -56px;
    top: 6px;
    width: 40px;
    text-align: right;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.78);
}

.season-node-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.season-node-title-wrap {
    display: grid;
    gap: 8px;
}

.season-node-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-main);
}

.season-node-tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
}

.season-node-date {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.92);
    color: #eff6ff;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.season-node-summary {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main);
}

.season-node-preview {
    margin: 0;
    padding-left: 14px;
    display: grid;
    gap: 4px;
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.5;
}

.season-detail-card-v2 {
    position: sticky;
    top: 16px;
    padding: 12px 14px 16px;
    display: grid;
    gap: 10px;
}

.season-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.season-detail-heading {
    display: grid;
    gap: 8px;
}

.season-detail-heading h2 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.35;
}

.season-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.season-detail-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.season-detail-summary {
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.68);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.6;
}

.season-detail-block {
    display: grid;
    gap: 6px;
}

.season-detail-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* 战力要求：难度+战力 递进颜色卡片（赛季时间线独立页） */
.season-detail-card-v2 .season-difficulty-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.season-detail-card-v2 .season-difficulty-card {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 10px;
    border-radius: 10px;
    border: 2px solid;
    min-width: 5rem;
}
.season-detail-card-v2 .season-difficulty-name {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    opacity: 0.95;
    margin-bottom: 2px;
}
.season-detail-card-v2 .season-difficulty-power {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
}

.season-detail-list {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}

.season-detail-note {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    border: 1px solid rgba(250, 204, 21, 0.18);
    background: rgba(113, 63, 18, 0.22);
    color: #fde68a;
    line-height: 1.65;
}

.season-page-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
}

.season-page-placeholder {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 1rem;
}

.season-page-placeholder p {
    margin: 0;
}

@media (max-width: 960px) {
    .season-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .season-detail-card-v2 {
        position: static;
    }
}

@media (max-width: 900px) {
    .season-page-shell {
        width: min(100vw - 24px, 100%);
        padding-top: 20px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .season-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .season-layout-topbar {
        grid-template-columns: 1fr;
    }

    .season-season-card-top,
    .season-region-card,
    .season-node-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .season-date-badges {
        width: 100%;
    }

    .season-region-group {
        padding-left: 16px;
    }

    .season-region-group::before {
        left: 6px;
    }

    .season-region-card::before {
        left: -13px;
    }

    .season-node-list {
        padding-left: 12px;
    }

    .season-node-day-index {
        position: static;
        width: auto;
        text-align: left;
        color: var(--text-dim);
    }

    .season-node-card::before {
        left: -14px;
    }
}

/* 淡出动画容器类 */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 5rem 0;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem auto;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式调整 */
@media (max-width: 900px) {
    .layout-container {
        flex-direction: column;
    }

    .glass-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: var(--glass-border);
        padding: 1rem;
    }

    .sidebar-header {
        margin-bottom: 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .glass-reader {
        padding: 2rem;
    }
}

/* =========================================
   亮色攻略站改版
   ========================================= */
:root {
    --bg-dark: #f5f7fb;
    --bg-panel: #ffffff;
    --primary-color: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.16);
    --secondary-color: #38bdf8;
    --accent-color: #f59e0b;
    --glass-border: 1px solid #dbe4f0;
    --glass-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
    --glass-blur: none;
    --text-main: #1f2937;
    --text-muted: #64748b;
}

body {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    color: var(--text-main);
}

.ambient-bg {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.blob {
    opacity: 0.18;
    filter: blur(100px);
}

.glass-sidebar {
    width: 296px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid #dbe4f0;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.04);
    padding: 1.75rem 1rem 1rem;
    position: relative;
    z-index: 50;
    overflow: visible;
}

.sidebar-header {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: left;
    padding: 0 0.5rem;
    border-top: 1px solid #e5edf6;
    padding-top: 1rem;
    overflow: visible;
    position: relative;
    z-index: 51;
}

.sidebar-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    overflow: visible;
}

.logo {
    background: linear-gradient(90deg, #0f172a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25rem;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.logo-icon {
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    width: 28px;
    height: 28px;
}

.lang-switch {
    position: relative;
    flex-shrink: 0;
    z-index: 52;
}

.lang-trigger {
    height: 26px;
    padding: 0 0.5rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: transparent;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: border-color 0.15s, color 0.15s;
}

.lang-trigger::after {
    content: '▾';
    font-size: 0.65rem;
    opacity: 0.6;
}

.lang-trigger:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.lang-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    top: auto;
    right: 0;
    min-width: 130px;
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid #dbe4f0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* 关键：防止 display:flex 覆盖 hidden 属性 */
.lang-menu[hidden] {
    display: none !important;
}

.lang-option {
    border: none;
    border-radius: 9px;
    padding: 0.45rem 0.6rem;
    text-align: left;
    background: transparent;
    color: #334155;
    font-size: 0.78rem;
    cursor: pointer;
}

.lang-option:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.lang-option.is-active {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

.logo span {
    -webkit-text-fill-color: inherit;
}

.subtitle {
    color: #64748b;
    letter-spacing: 0;
    text-transform: none;
}

.nav-list.feishu-outline .nav-group,
.nav-group {
    margin-bottom: 0.55rem;
}

.nav-list.feishu-outline .nav-group-header,
.nav-group-header {
    padding: 0.5rem 0.5rem;
    color: #334155;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-list.feishu-outline .nav-group-header:hover,
.nav-group-header:hover {
    color: #334155;
    background: transparent;
    border: none;
}

.nav-item {
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #475569;
    font-weight: 600;
}

.nav-item.sub-item {
    padding-left: 0.95rem;
    font-size: 0.9rem;
}

.nav-item.sub-item::before {
    display: none;
}

.nav-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: none;
}

.nav-list.feishu-outline .nav-item.active,
.nav-item.active {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    box-shadow: none;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 0.4rem 0.95rem;
    border-bottom: 1px solid #e5edf6;
}

.btn-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    box-shadow: none;
}

.btn-outline:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
    box-shadow: none;
}

.auth-status {
    color: #64748b;
}

.auth-user-name {
    color: #0f172a;
}

.auth-avatar {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.content-area {
    padding: 1.25rem 1.75rem;
    background: transparent;
}

.content-header {
    display: none !important;
}

.glass-reader {
    max-width: none;
    width: 100%;
    margin: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* 嵌入工具页（iframe）：定高铺满阅读区，避免 iframe 随子页面内容无限变高 */
.content-area.has-tool-frame {
    padding: 0;
}

.content-area.has-tool-frame #reader-container {
    padding: 0;
}

#reader-container.reader-tool-mode {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

#tool-frame-container {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    flex-direction: column;
}

#reader-container.reader-tool-mode #tool-frame-container {
    display: flex;
}

.tool-frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    border: 0;
    background: transparent;
    display: block;
}

.markdown-body {
    color: #334155;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #0f172a;
}

.markdown-body h1 {
    border-bottom: 2px solid #dbeafe;
    background: none;
    -webkit-text-fill-color: initial;
}

.markdown-body h2::before {
    color: #2563eb;
}

.markdown-body p,
.markdown-body li,
.markdown-body blockquote {
    color: #475569;
}

.markdown-body strong {
    color: #0f172a;
    text-shadow: none;
}

.markdown-body code {
    background: #eff6ff;
    color: #1d4ed8;
}

.markdown-body pre {
    background: #0f172a;
    border: none;
    box-shadow: none;
}

.markdown-body table,
.markdown-body th,
.markdown-body td {
    border-color: #dbe4f0;
}

.markdown-body th {
    background: #eff6ff;
    color: #1d4ed8;
}

.season-page-shell {
    width: min(1600px, calc(100vw - 32px));
    padding: 16px 0 24px;
}

.season-page-back {
    border-color: #bfdbfe;
    background: #ffffff;
    color: #1d4ed8;
}

.season-page-back:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.season-stat-card,
.season-detail-card-v2 {
    border-color: #dbe4f0;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

/* 浅色壳：左侧列表区不铺大白底大边框 */
.season-list {
    background: transparent;
    border: none;
    box-shadow: none;
}

.season-stat-select {
    background: #ffffff;
    color: #0f172a;
    border-color: #bfdbfe;
}

.season-season-card {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.season-node-card.is-normal {
    color: #0f172a;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: linear-gradient(180deg, #f7fff9 0%, #ecfdf3 100%);
    box-shadow: inset 4px 0 0 #22c55e;
}

.season-node-card.is-weekly {
    color: #0f172a;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(180deg, #fff9ec 0%, #fef3c7 100%);
    box-shadow: inset 4px 0 0 #f59e0b;
}

.season-node-card.is-active {
    box-shadow: inset 4px 0 0 #2563eb, 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.season-node-summary,
.season-node-preview li {
    color: #334155;
}

.season-empty,
.season-page-placeholder {
    color: #64748b;
}

/* 更新日志导航项样式 */
.nav-group-changelog {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5edf6;
}

.nav-item-changelog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-item-changelog:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.nav-item-changelog.active {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
}

.nav-item-changelog::before {
    content: '📋';
    font-size: 1rem;
}

/* =========================================
   移动端适配 (768px 及以下)
   ========================================= */

/* 移动端汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #dbe4f0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.mobile-menu-btn:active {
    transform: scale(0.98);
}

.mobile-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.mobile-menu-icon span {
    display: block;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-open .mobile-menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.is-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-open .mobile-menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* 移动端遮罩层 */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-overlay.is-visible {
    opacity: 1;
}

@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-btn {
        display: flex;
    }

    /* 侧边栏移动端样式 */
    .glass-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 1rem;
        overflow-y: auto;
        border-right: 1px solid #dbe4f0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: none;
    }

    .glass-sidebar.is-mobile-open {
        transform: translateX(0);
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.15);
    }

    .glass-sidebar.collapsed {
        width: 280px;
        max-width: 85vw;
        padding: 1rem;
    }

    .glass-sidebar.collapsed .sidebar-footer,
    .glass-sidebar.collapsed .sidebar-nav,
    .glass-sidebar.collapsed .sidebar-header {
        opacity: 1;
        pointer-events: auto;
    }

    /* 隐藏桌面端侧边栏折叠按钮 */
    .sidebar-toggle {
        display: none;
    }

    /* 内容区移动端样式 */
    .content-area {
        width: 100%;
        padding: 1rem;
        padding-top: 4rem;
        min-height: 100vh;
    }

    .content-header {
        display: none !important;
    }

    /* 遮罩层显示 */
    .mobile-overlay.is-visible {
        display: block;
    }

    /* 侧边栏内容微调 */
    .sidebar-footer {
        border-bottom: 1px solid #e5edf6;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .sidebar-header {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #e5edf6;
    }

    /* 文章内容移动端适配 */
    .glass-reader {
        padding: 0;
    }

    .markdown-body h1 {
        font-size: 1.75rem;
    }

    .markdown-body h2 {
        font-size: 1.35rem;
    }

    .markdown-body h3 {
        font-size: 1.15rem;
    }

    .markdown-body p,
    .markdown-body li {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* 思维导图移动端适配 */
    .mm-wrapper {
        flex-direction: column;
        margin-left: 0;
    }

    .mm-branches {
        margin-left: 0;
        margin-top: 1rem;
    }

    .mm-branch::before,
    .mm-branch::after {
        display: none;
    }

    .mm-sub-branches {
        margin-left: 0.5rem;
    }

    /* 认证弹窗移动端适配 */
    .auth-modal-panel {
        width: 94vw;
        margin: 5vh auto 0;
        max-height: 85vh;
        overflow-y: auto;
    }

    /* 语言切换菜单移动端适配 */
    .lang-menu {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(280px, 90vw);
    }
}

/* 超小屏幕 (400px 及以下) */
@media (max-width: 400px) {
    .mobile-menu-btn {
        top: 0.5rem;
        left: 0.5rem;
        width: 40px;
        height: 40px;
    }

    .content-area {
        padding: 0.75rem;
        padding-top: 3.5rem;
    }

    .glass-sidebar {
        width: 260px;
        padding: 0.75rem;
    }

    .nav-item {
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
    }

    .nav-group-header {
        font-size: 1rem;
    }

    .auth-modal-panel {
        margin: 3vh auto;
        padding: 1rem;
    }

    .auth-submit-btn {
        height: 44px;
    }
}