/* ============================================================ */
/*  AstroPro Theme - 完整样式表                                   */
/*  整理时间: 2026-05-15 By:astrsource                            */
/*  说明: 按功能模块分类组织，媒体查询跟随对应模块                     */
/* ============================================================ */

/* ==================== 无障碍：跳转到主要内容链接 ==================== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: top 0.3s ease;
    outline: none;
}
.skip-to-content:focus {
    top: 16px;
}

/* ==================== 全局基础样式 ==================== */

:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0c0;
    --bg-elevated: rgba(255, 255, 255, 0.25);
    --bg-card: rgba(255, 255, 255, 0.2);
    --bg-hover: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --glass-shadow-hover: 0 6px 16px -4px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --nav-shadow-hover: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    --glass-blur: blur(9px) saturate(140%);
    --nav-blur: blur(6px) saturate(120%);
    --text-primary: #0a0a0a;
    --text-secondary: #1a1a1a;
    --text-tertiary: #2d2d2d;
    --text-muted: #4a4a4a;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --accent-hover-bg: rgba(79, 70, 229, 0.08);
    --badge-bg: rgba(79, 70, 229, 0.06);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --input-bg: rgba(255, 255, 255, 0.2);
    --gradient-hero: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    --gradient-bg: radial-gradient(ellipse at top left, #e0e7ff20 0%, #f0f4f808 50%, #e2e8f018 100%);
    --nav-bg: rgba(255, 255, 255, 0.35);
    --divider: rgba(0, 0, 0, 0.08);
    --tag-bg: rgba(0, 0, 0, 0.04);
    --tag-text: #1a1a1a;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --font-display: Georgia, 'Times New Roman', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --bg-blur-amount: 8px;
    --code-bg: rgba(0, 0, 0, 0.04);

    /* === background 透明度变量 === */
    --bg-white-05: rgba(255, 255, 255, 0.05);
    --bg-white-60: rgba(255, 255, 255, 0.6);
    --bg-white-65: rgba(255, 255, 255, 0.65);
    --bg-white-70: rgba(255, 255, 255, 0.7);
    --bg-white-75: rgba(255, 255, 255, 0.75);
    --bg-white-80: rgba(255, 255, 255, 0.8);
    --bg-white-85: rgba(255, 255, 255, 0.85);
    --bg-black-05: rgba(0, 0, 0, 0.05);
    --bg-black-60: rgba(0, 0, 0, 0.6);
    --bg-black-65: rgba(0, 0, 0, 0.65);
    --bg-black-70: rgba(0, 0, 0, 0.7);
    --bg-black-75: rgba(0, 0, 0, 0.75);
    --bg-black-80: rgba(0, 0, 0, 0.8);
    --bg-slate-70: rgba(15, 23, 42, 0.7);
    --bg-slate-75: rgba(15, 23, 42, 0.75);
    --bg-slate-80-1: rgba(15, 23, 42, 0.8);
    --bg-slate-80-2: rgba(30, 41, 59, 0.8);
    --bg-slate-85: rgba(30, 41, 59, 0.85);
    --bg-indigo-05: rgba(79, 70, 229, 0.05);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293bc0;
    --bg-elevated: rgba(30, 41, 59, 0.3);
    --bg-card: rgba(30, 41, 59, 0.25);
    --bg-hover: rgba(51, 65, 85, 0.45);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(148, 163, 184, 0.1);
    --glass-shadow-hover: 0 6px 16px -4px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(148, 163, 184, 0.15);
    --nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(148, 163, 184, 0.08);
    --nav-shadow-hover: 0 1px 3px rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(148, 163, 184, 0.12);
    --glass-blur: blur(18px) saturate(140%);
    --nav-blur: blur(12px) saturate(150%);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    --accent: #818cf8;
    --accent-light: #a5b4fc;
    --accent-glow: rgba(129, 140, 248, 0.2);
    --accent-hover-bg: rgba(129, 140, 248, 0.12);
    --badge-bg: rgba(129, 140, 248, 0.08);
    --border-subtle: rgba(148, 163, 184, 0.1);
    --input-bg: rgba(51, 65, 85, 0.25);
    --gradient-hero: linear-gradient(135deg, rgba(129, 140, 248, 0.06) 0%, rgba(167, 139, 250, 0.04) 100%);
    --gradient-bg: radial-gradient(ellipse at top left, #1e293b30 0%, #0f172a08 50%, #1e293b18 100%);
    --nav-bg: rgba(15, 23, 42, 0.4);
    --divider: rgba(148, 163, 184, 0.1);
    --tag-bg: rgba(148, 163, 184, 0.06);
    --tag-text: #cbd5e1;
    --bg-blur-amount: 8px;
    --code-bg: rgba(255, 255, 255, 0.06);
}

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

::selection {
    background-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.5s, color 0.4s;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3)
}

[data-theme="dark"] body::before {
    filter: brightness(0.5);
}

[data-theme="dark"] body::after {
    background: var(--bg-black-80);
}

.material-icons {
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

:root {
    --dot-level-0: #ebedf0;
    --dot-level-1: #9be9a8;
    --dot-level-2: #40c463;
    --dot-level-3: #30a14e;
    --dot-level-4: #216e39;
}

[data-theme="dark"] {
    --dot-level-0: rgba(255, 255, 255, 0.04);
    --dot-level-1: rgba(99, 102, 241, 0.25);
    --dot-level-2: rgba(99, 102, 241, 0.45);
    --dot-level-3: rgba(129, 140, 248, 0.7);
    --dot-level-4: #818cf8;
}


/* ==================== 阅读进度条 ==================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--bg-secondary));
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    transition: width 0.15s linear;
}


/* ==================== 导航栏 ==================== */

.navbar {
    position: sticky;
    top: 24px;
    z-index: 100;
    width: 100%;
    padding: 0 24px;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1),padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-inner {
    max-width: 1172px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    border-radius: 80px;
    background: var(--bg-white-70);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s;
    position: relative;
}

.navbar-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    z-index: -1;
}

.scrolled .navbar-inner::before {
    border-radius: 80px;
}

[data-theme="dark"] .navbar-inner {
    background: var(--bg-slate-80-1);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-inner:hover {
    background: var(--bg-white-85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar-inner:hover {
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-brand .material-icons {
    font-size: 26px;
    color: var(--accent);
}

.logo-light,
.logo-dark {
    max-width: 120px;
    max-height: 40px;
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a,
.nav-menu .menu-trigger {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.nav-menu a .material-icons,
.menu-trigger .material-icons {
    font-size: 16px;
}

.nav-menu a:hover,
.nav-menu a.active,
.menu-trigger:hover,
.menu-trigger.active {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--glass-border);
}

.has-submenu .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: var(--bg-white-65);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    list-style: none;
    min-width: 150px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
}

[data-theme="dark"] .has-submenu .submenu {
    background: var(--bg-slate-75);
    border-color: rgba(148, 163, 184, 0.25);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li a {
    padding: 8px 16px;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.submenu li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: none;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.nav-right button,
.menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.nav-right .theme-toggle-single {
    display: flex;
}

.nav-right .menu-toggle {
    display: none;
}

[data-theme="dark"] .nav-right button,
[data-theme="dark"] .menu-toggle {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.nav-right button:hover,
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--accent-light);
    transform: scale(1.05);
}

[data-theme="dark"] .nav-right button:hover,
[data-theme="dark"] .menu-toggle:hover {
    background: rgba(30, 41, 59, 0.6);
}

.theme-toggle-single .material-icons {
    font-size: 22px;
}

.back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.6) rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) rotate(0deg);
}

.back-to-top:hover {
    transform: scale(1.15) rotate(0deg);
}

.back-to-top .material-icons {
    font-size: 22px;
    transition: transform 0.3s;
}

.navbar:not(.scrolled) {
    top: 0;
    padding: 0;
}

.navbar:not(.scrolled) .navbar-inner {
    max-width: 100%;
    border-radius: 0;
    border-color: transparent;
    box-shadow: none;
    background: var(--bg-white-70);
}

[data-theme="dark"] .navbar:not(.scrolled) .navbar-inner {
    background: var(--bg-slate-80-1);
    border-color: transparent;
    box-shadow: none;
}

.mobile-nav-item .nav-arrow {
    margin-left: auto;
    font-size: 18px;
    transition: transform 0.35s ease;
    color: var(--text-tertiary);
}

.mobile-nav-item.expanded .nav-arrow {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .navbar-inner{
        gap: 5px;
    }

    .nav-menu {
        display: none;
    }

    .nav-right .menu-toggle {
        display: flex;
    }

}

@media (max-width: 700px) {
    .navbar:not(.scrolled) {
        top: 0;
        padding: 0;
    }

    .navbar:not(.scrolled) .navbar-inner {
        border-radius: 0;
        max-width: 100%;
    }

    .navbar {
        top: 16px;
        padding: 0 16px;
    }

    .navbar-inner {
        padding: 12px 20px;
        border-radius: 60px;
    }

}

@media (max-width: 860px) {
    .nav-right .back-to-top {
        display: none;
    }

}

@media (max-width:525px) {
    .theme-toggle-single {
        display: none!important;
    }

    .back-to-top {
        display: none;
    }

}


/* ==================== 移动端侧边菜单 ==================== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

[data-theme="dark"] .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 85vw;
    height: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

[data-theme="dark"] .mobile-menu {
    background: rgba(15, 23, 42, 0.4);
    border-left-color: rgba(148, 163, 184, 0.2);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 28px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--divider);
    position: relative;
}

.mobile-menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

[data-theme="dark"] .mobile-menu-avatar {
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mobile-menu-username {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-menu-email {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--bg-white-80);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    transition: all 0.25s;
}

[data-theme="dark"] .mobile-menu-close {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.08) rotate(90deg);
}

.mobile-nav-wrapper {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 14px 12px 6px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    font-family: var(--font-sans);
}

.mobile-nav-item:hover {
    background: var(--bg-white-75);
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .mobile-nav-item:hover {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.12);
}

.mobile-nav-item.active {
    background: var(--accent-hover-bg);
    border-color: var(--accent-light);
    color: var(--accent);
}

.mobile-nav-item .material-icons:first-child {
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
}

.mobile-submenu.open {
    max-height: 300px;
    opacity: 1;
}

.mobile-submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.mobile-submenu a::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    transition: all 0.25s;
}

.mobile-submenu a:hover {
    background: var(--bg-white-70);
    color: var(--text-primary);
    padding-left: 46px;
}

.mobile-submenu a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.4);
}

[data-theme="dark"] .mobile-submenu a:hover {
    background: var(--bg-white-05);
}

.mobile-submenu a .material-icons {
    font-size: 16px;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--divider);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-menu-footer a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-white-65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s;
    cursor: pointer;
}

[data-theme="dark"] .mobile-menu-footer a {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer a:hover {
    background: var(--bg-white-80);
    border-color: var(--accent-light);
    color: var(--accent);
}

[data-theme="dark"] .mobile-menu-footer a:hover {
    background: var(--bg-white-60);
}

@media (max-width: 700px) {
    .mobile-menu {
        width: 100%;
        max-width: 100vw;
        border-radius: 24px 24px 0 0;
        top: auto;
        bottom: 0;
        right: 0;
        height: 85vh;
        height: 85dvh;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.5);
    }

    [data-theme="dark"] .mobile-menu {
        border-top-color: rgba(148, 163, 184, 0.2);
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

}


/* ==================== 页面主布局 ==================== */

.main-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 16px 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.content-area {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cards-list .top-meta .material-icons,
.ar-item-category .material-icons,
.user-articles-list .material-icons {
    font-size:12px;
}

.page-wrapper {
    grid-template-columns: 1fr;
}

@media (max-width: 960px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}


/* ==================== 首页 Banner 轮播 ==================== */

.hero-banner {
    grid-column: 1 / -1;
    display: flex;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.7s ease-out both;
    gap: 0;
    align-items: stretch;
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .hero-banner {
    background: var(--bg-slate-70);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .hero-banner::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.hero-profile {
    flex: 0 0 280px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--glass-border);
    flex-shrink: 0;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--badge-bg);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-title .material-icons {
    font-size: 15px;
}

.hero-bio {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 200px;
}

.hero-socials {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.hero-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.hero-social-link:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.hero-social-link .material-icons {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.hero-social-link:hover .material-icons {
    transform: scale(1.2);
}

[data-theme="dark"] .hero-social-link {
    background: var(--bg-white-60);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero-social-link:hover {
    background: var(--bg-white-70);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 12px 24px rgba(129, 140, 248, 0.4);
}

.hero-article {
    flex: 1;
    padding: 16px 8px;
    display: grid;
    grid-template-areas: "stack";
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-article > .magazine-card {
    grid-area: stack;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    transform: translateY(6px);
}

.hero-article > .magazine-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 1;
}

.magazine-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--bg-white-70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .magazine-card {
    background: var(--bg-black-70);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-article > .magazine-card.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .hero-article > .magazine-card.active:hover {
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.ha-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ha-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.hero-article > .magazine-card.active:hover .ha-bg img {
    transform: scale(1.03);
}

.ha-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

[data-theme="dark"] .ha-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.ha-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
}

.ha-meta-badge {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 2px 12px;
    font-size: 0.7rem;
    font-weight: 520;
    letter-spacing: 0.2px;
    background: var(--bg-white-75);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ha-meta-badge .material-icons {
    font-size: 12px;
}

[data-theme="dark"] .ha-meta-badge {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

.ha-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
    background: var(--bg-white-75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .ha-info {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.ha-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.ha-title a {
    text-decoration: none;
    color: inherit;
}

.ha-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.hero-carousel-thumbs {
    flex: 0 0 250px;
    padding: 16px 16px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
    position: relative;
    z-index: 3;
}

.thumb-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    flex-shrink: 0;
    text-decoration: none;
}

[data-theme="dark"] .thumb-card {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.12);
}

.thumb-card:hover {
    background: var(--bg-white-85);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .thumb-card:hover {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.thumb-card.active {
    border-left-color: var(--accent);
    background: var(--bg-white-85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .thumb-card.active {
    background: rgba(30, 41, 59, 0.58);
    border-color: rgba(255, 255, 255, 0.2);
    border-left-color: var(--accent);
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.15);
}

.thumb-img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .thumb-img {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.thumb-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.thumb-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.thumb-date {
    font-size: 0.63rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.thumb-date .material-icons {
    font-size: 11px;
}

.thumb-title span,
.thumb-date span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hero-banner {
        flex-wrap: wrap;
    }

    .hero-profile {
        flex: 1 1 280px;
        padding: 24px 16px;
    }

    .hero-article {
        flex: 1 1 100%;
        order: 3;
        padding: 8px;
        min-height: 280px;
    }

    .hero-carousel-thumbs {
        flex: 1 1 100%;
        order: 4;
        flex-direction: row;
        gap: 8px;
        padding: 0 8px 12px;
        flex-wrap: wrap;
    }

    .hero-carousel-thumbs .thumb-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }

}

@media (max-width: 700px) {
    .hero-carousel-thumbs .thumb-card {
        flex: 1 1 100%;
        min-width: 0;
    }

}

@media (max-width: 860px) {
    .hero-banner {
        flex-direction: column;
    }

    .hero-profile {
        flex: auto;
        padding: 20px;
    }

    .hero-article {
        order: 0;
        padding: 8px 12px;
        min-height: 240px;
    }

    .hero-carousel-thumbs {
        order: 0;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0 12px 12px;
        gap: 6px;
    }

    .hero-carousel-thumbs .thumb-card {
        flex: 1 1 calc(50% - 3px);
        min-width: 130px;
        padding: 8px 10px;
        gap: 6px;
    }

    .thumb-img {
        width: 34px;
        height: 34px;
        border-radius: 4px;
    }

    .thumb-title {
        font-size: 0.67rem;
    }

    .magazine-card {
        min-height: 220px;
    }

}


/* ==================== 通用玻璃卡片 ==================== */

.glass-card,
.glass-card-post {
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s;
}

.glass-card {
    display: flex;
    flex-direction: row;
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

.glass-card-post {
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-card::after,
.glass-card-post::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .glass-card,
[data-theme="dark"] .glass-card-post {
    background: var(--bg-slate-70);
}

[data-theme="dark"] .glass-card {
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .glass-card-post {
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .glass-card::after,
[data-theme="dark"] .glass-card-post::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glass-card:hover {
    background: var(--bg-white-80);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -14px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

[data-theme="dark"] .glass-card:hover {
    background: var(--bg-slate-80-2);
    box-shadow: 0 22px 32px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 116, 139, 0.4) inset;
}

.glass-card-post:hover {
    background: var(--bg-white-80);
}

[data-theme="dark"] .glass-card-post:hover {
    background: var(--bg-slate-80-2);
}

.glass-card:nth-child(even) {
    flex-direction: row-reverse;
}

.card-media {
    position: relative;
    flex: 4;
    min-width: 0;
    overflow: hidden;
}

.card-content {
    flex: 1;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    background: transparent;
    position: relative;
    z-index: 3;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
    background: transparent;
}

.image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

.card-media .image-wrapper img:hover {
    transform: scale(1.1);
}

.top-meta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.glass-card:nth-child(even) .top-meta {
    flex-direction: row-reverse;
}

.badge {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 60px;
    padding: 0.15rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 520;
    letter-spacing: 0.2px;
    transition: all 0.2s;
    background: var(--bg-white-70);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    color: #1a1a1a;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

[data-theme="dark"] .badge {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.badge:hover {
    background: var(--bg-white-85);
}

[data-theme="dark"] .badge:hover {
    background: rgba(30, 41, 59, 0.6);
}

.excerpt-badge {
    font-size: 0.7rem;
    font-weight: 520;
    letter-spacing: 0.2px;
    color: var(--text-secondary);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    opacity: 0.6;
}

[data-theme="dark"] .excerpt-badge {
    color: var(--text-secondary);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.floating-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 12;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 0.35rem 1rem;
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
    cursor: pointer;
    width: max-content;
    max-width: calc(100% - 1.6rem);
    background: var(--bg-white-70);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.05);
}

.glass-card:nth-child(even) .floating-title {
    left: auto;
    right: 1rem;
    text-align: right;
}

[data-theme="dark"] .floating-title {
    background: var(--bg-black-70);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.3);
}

.floating-title h3 a {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #0a0a0a;
    font-weight: 500;
    transition: color 1s;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    white-space: nowrap;
}

[data-theme="dark"] .floating-title h3 a {
    color: #f1f5f9;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.floating-title:hover {
    background: var(--bg-white-85);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .floating-title:hover {
    background: var(--bg-slate-85);
    border-color: rgba(255, 255, 255, 0.6);
}

.floating-title:hover h3 a {
    color: #f1f5f9;
}

[data-theme="dark"] .floating-title:hover h3 a {
    color: #0a0a0a;
}

.excerpt {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

[data-theme="dark"] .excerpt {
    color: var(--text-primary);
    opacity: 0.9;
}

@media (max-width: 640px) {
    .floating-title h3 a {
        white-space: normal;
        font-size: 0.9rem;
    }

    .floating-title {
        width: auto;
        max-width: calc(100% - 1.6rem);
    }

    .user-articles-list .glass-card,
.user-articles-list .glass-card:nth-child(even) {
        flex-direction: column;
    }

    .user-articles-list .card-media {
        flex: auto;
        width: 100%;
    }

    .user-articles-list .image-wrapper {
        min-height: 160px;
    }

    .user-articles-list .image-wrapper img {
        height: 180px;
    }

}

@media (max-width: 860px) {
    .glass-card,
.glass-card:nth-child(even) {
        flex-direction: column;
    }

    .card-media {
        flex: auto;
        width: 100%;
    }

    .image-wrapper {
        min-height: 180px;
    }

    .image-wrapper img {
        height: 200px;
    }

    .card-content {
        padding: 0.8rem 1rem;
    }

    .floating-title {
        bottom: 0.6rem;
        left: 0.6rem;
        right: auto;
        padding: 0.3rem 0.9rem;
        text-align: left;
    }

    .glass-card:nth-child(even) .floating-title {
        left: 0.6rem;
        right: auto;
        text-align: left;
    }

    .top-meta {
        top: 0.6rem;
        left: 0.6rem;
        right: 0.6rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.7rem;
    }

}


/* ==================== 分页组件 ==================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span:not(.material-icons),
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
    border: 1px solid transparent;
    background: var(--bg-white-70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

[data-theme="dark"] .page-btn,
[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span:not(.material-icons) {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.pagination a:hover,
.pagination span:not(.material-icons):hover,
.page-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .pagination a:hover,
[data-theme="dark"] .pagination span:not(.material-icons):hover,
[data-theme="dark"] .page-btn:hover {
    background: rgba(30, 41, 59, 0.6);
}

.pagination a.active,
.pagination span:not(.material-icons).active,
.page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pagination a .material-icons,
.pagination span .material-icons,
.page-btn .material-icons {
    font-size: 20px;
}

.ar-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.ar-page-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
    border: 1px solid var(--glass-border);
    background: var(--bg-white-70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ar-page-btn:hover {
    background: rgba(255,255,255,0.42);
    border-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(79,70,229,0.15);
}

[data-theme="dark"] .ar-page-btn {
    background: var(--bg-black-80);
    border-color: rgba(255,255,255,0.1);
    color: #cbd5e1;
}

[data-theme="dark"] .ar-page-btn:hover {
    background: rgba(30,41,59,0.6);
    color: var(--accent);
}

.ar-page-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 6px 14px rgba(79,70,229,0.3);
}

.ar-page-btn .material-icons {
    font-size: 20px;
}

@media (max-width: 700px) {
    .pagination {
        gap: 6px;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

}


/* ==================== 侧边栏 ==================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--bg-white-70);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--glass-shadow);
    transition: background 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

.sidebar-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .sidebar-card {
    background: var(--bg-slate-70);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .sidebar-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.sidebar-card:hover {
    background: var(--bg-white-80);
    box-shadow: var(--glass-shadow-hover);
}

[data-theme="dark"] .sidebar-card:hover {
    background: var(--bg-slate-80-2);
}

.sidebar-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
}

.sidebar-card-title .material-icons {
    font-size: 20px;
    color: var(--accent);
}

.sidebar-card-title#tocToggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .sidebar {
        grid-template-columns: 1fr !important;
    }

    .sidebar-card:last-child {
        grid-column: 1 !important;
    }

}

@media (max-width: 960px) {
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar-card:last-child {
        grid-column: 1 / -1;
    }

    .post-sidebar .sidebar-card:last-child {
        grid-column: 1 / -1;
    }

}


/* ==================== 侧边栏评论列表 ==================== */

.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 3;
}

.comment-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-list .comment-item {
    padding: 0;
}

.comment-list .comment-item a {
    text-decoration: none;
    color: inherit;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}

[data-theme="dark"] .comment-avatar {
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-item:hover .comment-avatar {
    transform: scale(1.05);
}

.comment-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-author {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-white-80);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: background 0.2s;
}

[data-theme="dark"] .comment-author {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

.comment-author:hover {
    background: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .comment-author:hover {
    background: rgba(30, 41, 59, 0.7);
}

.comment-time {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.comment-time .material-icons {
    font-size: 12px;
}

.comment-bubble {
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px 16px 16px 16px;
    padding: 10px 14px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

[data-theme="dark"] .comment-bubble {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.comment-item:hover .comment-bubble {
    background: var(--bg-white-85);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .comment-item:hover .comment-bubble {
    background: rgba(30, 41, 59, 0.5);
}

.comment-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 8px;
    opacity: 0.95;
}

.comment-text code {
    background: var(--badge-bg);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
    color: var(--accent);
    border: 1px solid var(--glass-border);
}

.comment-post {
    font-size: .65rem;
    color: var(--accent);
    background: var(--bg-indigo-05);
    border-radius: 20px;
    padding: 2px 6px;
    transition: background 0.25s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-post .material-icons {
    font-size: 16px;
}

.comment-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-white-70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    resize: vertical;
    transition: all 0.3s;
    outline: none;
    line-height: 1.5;
}

.comment-textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-white-80);
}

[data-theme="dark"] .comment-textarea {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme="dark"] .comment-textarea:focus {
    background: rgba(0, 0, 0, 0.45);
}

.comments-list .comment-item {
    padding: 16px 0;
}

.comments-nested .comment-item {
    padding: 12px 0 6px;
}

.comments-nested .comment-avatar {
    width: 35px;
    height: 35px;
}

.comments-nested .comment-bubble {
    border-radius: 4px 14px 14px 14px;
    padding: 8px 12px;
}


/* ==================== 侧边栏热榜与标签 ==================== */

.hot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 3;
}

.hot-list li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-white-60);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hot-list li a {
    background: var(--bg-black-65);
}

.hot-list li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.hot-list li a:hover::before {
    transform: scaleY(1);
}

.hot-list li a:hover {
    background: var(--accent-hover-bg);
    color: var(--accent);
    border-color: var(--accent-light);
    padding-left: 16px;
}

.hot-index {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.hot-list li a:hover .hot-index {
    transform: scale(1.2);
}

.hot-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white-65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .tag-item {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.tag-item:hover {
    background: var(--bg-white-85);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .tag-item:hover {
    background: rgba(51, 65, 85, 0.6);
}

.tag-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1;
}

.archive-tag-item .tag-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1;
}


/* ==================== 页脚 ==================== */

.footer {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 16px 32px;
}

.footer-inner {
    background: var(--bg-white-70);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    padding: 20px 24px;
    transition: background 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .footer-inner {
    background: var(--bg-slate-70);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .footer-inner::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.footer-left .material-icons {
    font-size: 18px;
    color: var(--accent);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-left: 6px;
}

.footer-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-right a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: color 0.25s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-right a:hover {
    color: var(--accent);
}

.footer-right a .material-icons {
    font-size: 14px;
}

.footer-sponsors {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
    border-top: 1px solid var(--divider);
    padding-top: 14px;
}

.sponsor-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sponsor-label .material-icons {
    font-size: 18px;
    color: var(--accent);
}

.sponsor-item {
    background: var(--bg-white-75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 60px;
    padding: 4px 14px 4px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.25s, border-color 0.25s;
}

[data-theme="dark"] .sponsor-item {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.sponsor-item:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--accent-light);
}

[data-theme="dark"] .sponsor-item:hover {
    background: rgba(30, 41, 59, 0.6);
}

.sponsor-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .footer-sponsors {
        justify-content: center;
    }

}

@media (max-width: 860px) {
    .footer-top {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }

}


/* ==================== 滚动条样式 ==================== */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black-05);
    border-radius: 10px;
}

.dot-heatmap-scroll::-webkit-scrollbar {
    height: 4px;
}

.dot-heatmap-scroll::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 2px;
}

.dot-heatmap-scroll::-webkit-scrollbar-track {
    background: transparent;
}


/* ==================== 动画关键帧 ==================== */

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

@keyframes snackbarIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes snackbarOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

@keyframes arPatternMove {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

@keyframes arFadeInUp {
    from {
    opacity: 0;
    transform: translateY(24px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes erOrbFloat {
    0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
    transform: translate(30px, -40px) rotate(5deg) scale(1.05);
    }
    100% {
    transform: translate(-20px, 25px) rotate(-3deg) scale(0.98);
    }
}

@keyframes erFadeInUp {
    from {
    opacity: 0;
    transform: translateY(40px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes pinnedRotate {
    0%   { transform: rotate(-12deg); }
    50%  { transform: rotate(12deg); }
    100% { transform: rotate(-12deg); }
}

@keyframes pinnedPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(79,70,229,0.45); }
    50%      { box-shadow: 0 4px 26px rgba(79,70,229,0.7); }
}


/* ==================== 文章页头部 ==================== */

.post-layout {
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.post-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-header {
    animation: fadeInUp 0.6s ease-out both;
}

.post-cover {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.post-header:hover .post-cover img {
    transform: scale(1.03);
}

.post-cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    pointer-events: none;
}

.post-header-body {
    padding: 28px 32px 20px;
    position: relative;
    z-index: 3;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.post-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 255, 255, 0.6);
    border: 2px solid var(--glass-border);
    transition: transform 0.3s;
}

[data-theme="dark"] .post-author-avatar {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.post-author-avatar:hover {
    transform: scale(1.06);
}

.post-author-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-author-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-author-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 1s;
    text-decoration: none;
}

.post-author-name:hover {
    color: var(--accent);
}

.post-author-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--accent-hover-bg);
    color: var(--accent);
    border: 1px solid var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.post-author-badge .material-icons {
    font-size: 13px;
}

.post-author-title {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-author-title .material-icons {
    font-size: 14px;
    color: var(--accent);
    opacity: 0.7;
}

.post-meta-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .post-meta-row {
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    line-height: 1;
}

.post-meta-item:not(:first-child) {
    border-left: 1px solid var(--divider);
    padding-left: 10px;
    margin-left: 4px;
}

.post-meta-item .material-icons {
    font-size: 14px;
    color: var(--accent);
    opacity: 0.7;
    transform: translateY(0.5px);
}

.post-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.post-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.post-tag-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--badge-bg);
    color: var(--accent);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.post-tag-chip:hover {
    background: var(--accent-hover-bg);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.post-tag-chip .material-icons {
    font-size: 14px;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    border-top: 1px solid var(--divider);
    padding-top: 12px;
    margin-top: 8px;
}

.post-breadcrumb a {
    text-decoration: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.25s;
}

.post-breadcrumb a:hover {
    color: var(--accent-light);
}

.post-breadcrumb .material-icons {
    font-size: 14px;
}

.post-breadcrumb .current {
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .post-cover {
        height: 220px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-header-body {
        padding: 22px 20px 16px;
    }

    .post-author-avatar {
        width: 50px;
        height: 50px;
    }

    .post-meta-row {
        font-size: 0.68rem;
        padding: 6px 12px;
        gap: 4px;
    }

    .post-meta-item:not(:first-child) {
        padding-left: 8px;
        margin-left: 2px;
    }

}

@media (max-width: 700px) {
    .post-cover {
        height: 160px;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-header-body {
        padding: 14px 14px 16px;
    }

    .post-meta-row {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px;
    }

}

@media (max-width: 860px) {
    .post-cover {
        height: 180px;
    }

    .post-title {
        font-size: 1.25rem;
    }

    .post-header-body {
        padding: 16px 18px 18px;
    }

    .post-author-avatar {
        width: 44px;
        height: 44px;
    }

    .post-author-name {
        font-size: 0.95rem;
    }

    .post-meta-row {
        gap: 2px;
        padding: 6px 10px;
        border-radius: 20px;
        font-size: 0.65rem;
    }

    .post-meta-item:not(:first-child) {
        padding-left: 6px;
        margin-left: 1px;
    }

    .post-meta-item .material-icons {
        font-size: 12px;
    }

}

@media (max-width: 960px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}


/* ==================== 文章正文内容 ==================== */

.post-content {
    padding: 32px 28px;
    position: relative;
    z-index: 1;
}

.post-content h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--divider);
    scroll-margin-top: 120px;
    line-height: 1.3;
}

.post-content h1:first-child {
    margin-top: 0;
}

.post-content h4:not(.cloud-ref-title):not(.ref-article-card h4) {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 650;
    color: var(--text-primary);
    margin: 24px 0 10px;
    scroll-margin-top: 120px;
    line-height: 1.4;
}

.post-content h5 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 22px 0 8px;
    scroll-margin-top: 120px;
    line-height: 1.4;
}

.post-content h6 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin: 20px 0 8px;
    scroll-margin-top: 120px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-content a:not(.friend-card):not(.cloud-ref-card):not(.friend-card-avatar a):not(.gh-project-card):not(.ref-article-card):not(.ref-article-card a):not(.post-content .btn) {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.2s, text-decoration-color 0.2s;
    text-decoration-color: rgba(79, 70, 229, 0.3);
}

.post-content a:not(.friend-card):not(.cloud-ref-card):not(.friend-card-avatar a):not(.gh-project-card):not(.ref-article-card):not(.ref-article-card a):not(.post-content .btn) :hover {
    color: var(--accent-light);
    text-decoration-color: var(--accent);
}

.post-content kbd {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--bg-white-65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
    font-family: var(--font-sans);
    font-size: 0.85em;
    color: var(--text-secondary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    line-height: 1.5;
}

[data-theme="dark"] .post-content kbd {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.post-content img:not(.post-figure img):not(.ref-article-thumb img):not(.friend-card-avatar img) {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    display: block;
}

.post-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--divider);
    scroll-margin-top: 120px;
    line-height: 1.3;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3:not(.friend-card-title) {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text-primary);
    margin: 26px 0 10px;
    scroll-margin-top: 120px;
    line-height: 1.3;
}

.post-content p:not(.gh-repo-desc):not(.ref-article-card p) {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.post-content strong {
    color: var(--text-primary);
    font-weight: 650;
}

.post-content em {
    font-style: italic;
    color: var(--text-tertiary);
}

.post-content pre {
    background: var(--code-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    overflow-x: auto;
    margin: 14px 0;
    font-size: 0.82rem;
    line-height: 1.6;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.post-content code {
    background: var(--badge-bg);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    color: var(--accent);
}

.post-lead {
    font-size: 1.05rem !important;
    color: var(--text-primary) !important;
    line-height: 1.85 !important;
    padding: 16px 20px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    margin-bottom: 20px !important;
}

.post-content ul,
.post-content ol {
    margin: 10px 0 16px 20px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
}

.post-content li {
    margin-bottom: 6px;
}

.post-content ul li::marker {
    color: var(--accent);
}

.styled-blockquote {
    margin: 20px 0;
    padding: 16px 22px;
    background: var(--bg-white-60);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .styled-blockquote {
    background: var(--bg-white-05);
}

.styled-blockquote p {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.styled-blockquote cite {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: normal;
}

.post-figure {
    margin: 22px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-white-60);
}

.post-figure img {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

.post-figure figcaption {
    font-size: 0.73rem;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 14px;
    line-height: 1.5;
}

.callout {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    align-items: flex-start;
}

.callout-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callout-icon .material-icons {
    font-size: 18px;
}

.callout-body {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.callout-body strong {
    color: var(--text-primary);
}

.callout-info {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.callout-info .callout-icon {
    background: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
}

.callout-tip {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.callout-tip .callout-icon {
    background: rgba(16, 185, 129, 0.05);
    color: #10b981;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.callout-warning .callout-icon {
    background: rgba(245, 158, 11, 0.05);
    color: #f59e0b;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.callout-danger .callout-icon {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
}

[data-theme="dark"] .callout-danger {
    background: rgba(239, 68, 68, 0.02);
}

[data-theme="dark"] .callout-info {
    background: rgba(59, 130, 246, 0.06);
}

[data-theme="dark"] .callout-tip {
    background: rgba(16, 185, 129, 0.06);
}

[data-theme="dark"] .callout-warning {
    background: rgba(245, 158, 11, 0.06);
}

.table-wrapper {
    overflow-x: auto;
    margin: 18px 0;
    border-radius: var(--radius-sm);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    background: var(--bg-white-60);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

[data-theme="dark"] .styled-table {
    background: var(--bg-black-75);
}

.styled-table thead th {
    background: var(--bg-white-65);
    padding: 12px 16px;
    text-align: left;
    font-weight: 650;
    color: var(--text-primary);
    border-bottom: 2px solid var(--divider);
    font-size: 0.75rem;
    white-space: nowrap;
}

[data-theme="dark"] .styled-table thead th {
    background: var(--bg-white-05);
}

.styled-table tbody td {
    padding: 11px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--divider);
    vertical-align: middle;
}

.styled-table tbody tr:last-child td {
    border-bottom: none;
}

.styled-table tbody tr:hover {
    background: var(--bg-white-60);
}

[data-theme="dark"] .styled-table tbody tr:hover {
    background: var(--bg-white-05);
}

.level-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 2px;
    vertical-align: middle;
}

.level-dot.l1 {
    background: #6366f1;
}

.level-dot.l2 {
    background: #8b5cf6;
}

.level-dot.l3 {
    background: #a78bfa;
}

@media (max-width: 1024px) {
    .post-content {
        padding: 24px 20px;
    }

    .post-content h2 {
        font-size: 1.2rem;
    }

    .post-content h3 {
        font-size: 1rem;
    }

}

@media (max-width: 700px) {
    .post-content h2 {
        font-size: 1.05rem;
    }

    .post-content h3:not(.ref-article-card h3) {
        font-size: 0.9rem;
    }

    .post-content p:not(.gh-repo-desc):not(.ref-article-card p) {
        font-size: 0.85rem;
    }

    .styled-table {
        font-size: 0.7rem;
    }

    .styled-table thead th,
.styled-table tbody td {
        padding: 8px 10px;
    }

}

@media (max-width: 860px) {
    .post-content {
        padding: 20px 16px;
    }

}


/* ==================== 文章底部导航（自适应布局） ==================== */

.post-actions {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 上半部分：导航区 - 自适应flex */
.post-nav-upper {
    display: flex;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    min-height: 100px;
}

/* 导航项 - flex:1 自适应宽度 */
.post-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-white-60);
    border: 1px solid transparent;
    min-width: 0;
}

.post-nav-item:hover {
    background: var(--bg-white-70);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .post-nav-item {
    background: rgba(255, 255, 255, 0.53);
}

[data-theme="dark"] .post-nav-item:hover {
    background: var(--bg-white-05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 当只有一个导航项时铺满 */
.post-nav-upper:has(.post-nav-item:only-child) .post-nav-item {
    flex: 1;
    justify-content: center;
    text-align: center;
}

.post-nav-upper:has(.post-nav-item:only-child) .post-nav-item .post-nav-content {
    align-items: center;
    text-align: center;
}

/* 图片区域 - 始终在两边，有padding */
.post-nav-visual {
    position: relative;
    flex-shrink: 0;
}

.post-nav-imgwrap {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-nav-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.post-nav-item:hover .post-nav-imgwrap img {
    transform: scale(1.15);
}

/* 图片角标 */
.post-nav-imgbadge {
    position: absolute;
    bottom: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    z-index: 3;
    transition: all 0.3s ease;
}

.post-nav-prev .post-nav-imgbadge {
    right: -6px;
}

.post-nav-next .post-nav-imgbadge {
    left: -6px;
}

.post-nav-imgbadge .material-icons {
    font-size: 16px;
    color: #fff;
    transition: transform 0.3s ease;
}

.post-nav-item:hover .post-nav-imgbadge {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
}

.post-nav-prev:hover .post-nav-imgbadge .material-icons {
    transform: translateX(-2px);
}

.post-nav-next:hover .post-nav-imgbadge .material-icons {
    transform: translateX(2px);
}

/* 内容区 */
.post-nav-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.post-nav-prev .post-nav-content {
    align-items: flex-start;
    text-align: left;
}

.post-nav-next .post-nav-content {
    align-items: flex-end;
    text-align: right;
}

/* 当只有一个导航项时内容居中 */
.post-nav-upper:has(.post-nav-item:only-child) .post-nav-content {
    align-items: center;
    text-align: center;
}

.post-nav-direction {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-nav-direction::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.post-nav-next .post-nav-direction::before {
    display: none;
}

.post-nav-prev .post-nav-direction::before {
    margin-right: 2px;
}

.post-nav-next .post-nav-direction::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
    margin-left: 2px;
}

.post-nav-article-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-item:hover .post-nav-article-title {
    color: var(--accent);
}

.post-nav-article-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* 中间连接装饰 */
.post-nav-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    flex-shrink: 0;
}

.post-nav-connector-line {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--divider), transparent);
}

.post-nav-connector-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.4;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* 当只有一个导航项时隐藏连接符 */
.post-nav-upper:has(.post-nav-item:only-child) .post-nav-connector {
    display: none;
}

/* 下半部分：操作区 - 版权在左，操作在右 */
.post-nav-lower {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--divider);
    background: var(--bg-white-05);
    flex-wrap: wrap;
}

[data-theme="dark"] .post-nav-lower {
    background: var(--bg-black-60);
}

/* 版权信息 - 始终在左边 */
.post-license {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.post-license .material-icons {
    font-size: 13px;
}

.post-license a {
    color: var(--accent);
    text-decoration: none;
}

.post-license a:hover {
    text-decoration: underline;
}

/* 操作按钮区 - 在右边 */
.post-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-white-65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s;
    font-family: var(--font-sans);
}

.post-action-btn:hover {
    background: var(--bg-white-80);
    border-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .post-action-btn {
    background: var(--bg-black-65);
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

[data-theme="dark"] .post-action-btn:hover {
    background: rgba(30, 41, 59, 0.4);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.12);
}

.post-action-btn .material-icons {
    font-size: 16px;
}

.action-count {
    font-weight: 600;
    font-size: 0.7rem;
}

/* 暗色主题 */
[data-theme="dark"] .post-nav-article-title {
    color: #f1f5f9;
}

[data-theme="dark"] .post-nav-direction {
    color: var(--accent-light);
}

/* 响应式 */
@media (max-width: 700px) {
    .post-nav-upper {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .post-nav-connector {
        display: none;
    }

    .post-nav-item {
        padding: 12px;
    }

    .post-nav-next {
        flex-direction: row-reverse;
    }

    .post-nav-next .post-nav-content {
        align-items: flex-start;
        text-align: left;
    }

    .post-nav-next .post-nav-direction::before {
        display: inline-block;
    }

    .post-nav-next .post-nav-direction::after {
        display: none;
    }

    .post-nav-imgwrap {
        width: 64px;
        height: 64px;
    }

    .post-nav-article-title {
        font-size: 0.82rem;
    }

    .post-nav-lower {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .post-nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .post-action-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .post-nav-upper {
        padding: 12px;
        gap: 8px;
    }

    .post-nav-item {
        padding: 8px;
        gap: 10px;
    }

    .post-nav-imgwrap {
        width: 52px;
        height: 52px;
    }

    .post-nav-imgbadge {
        width: 22px;
        height: 22px;
    }

    .post-nav-imgbadge .material-icons {
        font-size: 13px;
    }

    .post-nav-article-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .post-nav-article-meta {
        font-size: 0.6rem;
    }

    .post-nav-lower {
        padding: 10px 12px;
    }

    .post-license {
        font-size: 0.6rem;
    }
}

/* ==================== 评论区 ==================== */

.comments-section {
    padding: 24px 28px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title .material-icons {
    color: var(--accent);
}

.comments-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--badge-bg);
    padding: 3px 10px;
    border-radius: 12px;
}

.comment-form-wrap {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 3;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .comment-form-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

.comment-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-input {
    flex: 1 1 140px;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s;
}

.comment-input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent-glow);
    background: var(--bg-white-80);
}

[data-theme="dark"] .comment-input {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme="dark"] .comment-input:focus {
    background: rgba(0, 0, 0, 0.45);
}

.comment-input::placeholder {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-form-actions .glass-toggle {
    flex-shrink: 0;
}

.comments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 3;
}

.comment-badge {
    font-size: 0.58rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--badge-bg);
    color: var(--accent);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.author-badge {
    background: rgba(79, 70, 229, 0.05);
    color: var(--accent);
    border-color: var(--accent-light);
    font-weight: 600;
}

.comment-actions-row {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 2px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.66rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    transition: all 0.25s;
    font-family: var(--font-sans);
}

.comment-action-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
    border-color: var(--glass-border);
}

.comment-action-btn .material-icons {
    font-size: 14px;
}

.comments-nested {
    margin-left: 36px;
    padding-left: 16px;
    border-left: 2px solid var(--divider);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 4px;
    position: relative;
}

.comments-nested::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 60%;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 1px;
}

.load-more-comments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-white-65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s;
    font-family: var(--font-sans);
    position: relative;
    z-index: 3;
}

.load-more-comments:hover {
    background: var(--bg-white-80);
    border-color: var(--accent-light);
    color: var(--accent);
}

[data-theme="dark"] .load-more-comments {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

[data-theme="dark"] .load-more-comments:hover {
    background: rgba(30, 41, 59, 0.5);
}

.reply-form-wrap {
    margin-top: 8px;
}

.reply-form-wrap[hidden] {
    display: none;
}

.reply-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.reply-textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

[data-theme="dark"] .reply-textarea {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.reply-cancel-btn {
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.72rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-sans);
    transition: all 0.25s;
}

.reply-cancel-btn:hover {
    background: var(--bg-hover);
}

.reply-submit-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--font-sans);
    transition: all 0.25s;
}

.reply-submit-btn:hover {
    background: var(--accent-light);
}

@media (max-width: 1024px) {
    .comments-nested {
        margin-left: 0;
        padding-left: 12px;
    }

}

@media (max-width: 600px) {
    .comment-form-wrap {
        gap: 8px;
    }

    .comment-form-avatar {
        width: 32px;
        height: 32px;
    }

}

@media (max-width: 700px) {
    .comments-section {
        padding: 16px 14px;
    }

    .comment-input {
        width: 100%;
    }

}


/* ==================== 目录导航 TOC ==================== */

.post-sidebar {
    position: sticky;
    top: 120px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 3;
}

.toc-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    padding: 7px 12px;
    border-radius: 8px;
    transition: all 0.3s;
    display: block;
    border-left: 2px solid transparent;
    line-height: 1.4;
}

.toc-link:hover {
    background: var(--bg-hover);
    color: var(--text-tertiary);
    border-left-color: var(--glass-border);
}

.toc-link.active {
    color: var(--accent);
    background: var(--accent-hover-bg);
    border-left-color: var(--accent);
    font-weight: 600;
}

.toc-level-h3 {
    padding-left: 28px;
    font-size: 0.73rem;
}

.toc-link code {
    font-size: 0.9em;
    background: var(--badge-bg);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--accent);
}

.toc-card .toc-nav {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.toc-card:not(.collapsed) .toc-nav {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.toc-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.toc-card:not(.collapsed) .toc-arrow {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .toc-card {
        grid-column: 1;
    }

}

@media (max-width: 960px) {
    .toc-card {
        display: none;
    }

}


/* ==================== 原子组件 ==================== */

.glass-divider {
    border: none;
    margin: 16px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.glass-divider.gradient {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ec4899);
}

.glass-divider.dashed {
    border: none;
    border-top: 2px dashed var(--glass-border);
    background: none;
    height: 0;
}

.glass-divider.dotted {
    border: none;
    border-top: 2px dotted var(--accent);
    background: none;
    height: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 60px;
    font-size: 0.82rem;
    font-weight: 550;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: var(--bg-white-70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .btn {
    background: var(--bg-black-75);
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-secondary {
    background: var(--bg-white-85);
    border-color: var(--glass-border);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--bg-white-65);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--accent), #ec4899);
    color: #fff;
    border: none;
}

[data-theme="dark"] .btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent-light);
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 18px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .btn-gradient {
    background: linear-gradient(135deg, var(--accent), #f472b6);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .btn-gradient:hover {
    opacity: 0.9;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
    border-radius: 50px;
}

.btn-sm.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
}

.btn-sm .material-icons {
    font-size: 16px;
}

.btn-md {
    padding: 10px 20px;
    font-size: 0.82rem;
    border-radius: 60px;
}

.btn-md.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
}

.btn-md .material-icons {
    font-size: 20px;
}

.btn-xl {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 70px;
}

.btn-xl.btn-icon {
    width: 52px;
    height: 52px;
    padding: 0;
}

.btn-xl .material-icons {
    font-size: 24px;
}

.tab-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 18px;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-white-65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

[data-theme="dark"] .tab-btn {
    background: var(--bg-black-80);
    color: #cbd5e1;
}

.tab-panel {
    display: none;
    padding: 16px;
    background: var(--bg-white-60);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tab-panel.active {
    display: block;
}

.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-white-75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s;
    gap: 10px;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .accordion-header {
    background: var(--bg-black-80);
}

.accordion-header .accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-white-60);
}

.accordion-panel p {
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-container {
    padding: 20px 0;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: -40px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
}

[data-theme="dark"] .timeline-content {
    background: var(--bg-black-75);
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 0.95rem;
    margin: 4px 0;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.user-main .tab-panel {
    background: transparent;
    border: none;
    padding: 0;
}

.user-tabs-wrap .tab-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.archive-radar-tab-mobile .tab-container {
    overflow: visible;
}

.archive-radar-tab-mobile .tab-panel {
    border:none;
    background: transparent;
    padding: 0;
}


/* ==================== 搜索组件 ==================== */

.search-trigger-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

[data-theme="dark"] .search-trigger-btn {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.search-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--accent-light);
    transform: scale(1.05);
}

[data-theme="dark"] .search-trigger-btn:hover {
    background: rgba(30, 41, 59, 0.6);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: var(--bg-black-80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .search-backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.search-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 16px;
    background: var(--bg-white-85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-overlay.active .search-dialog {
    transform: translateY(0) scale(1);
}

[data-theme="dark"] .search-dialog {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.search-glow-bar {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 22px 12px;
    position: relative;
}

.search-header-icon {
    font-size: 22px;
    color: var(--accent);
}

.search-header-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.search-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-white-75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s;
}

[data-theme="dark"] .search-close-btn {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.08) rotate(90deg);
}

.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.search-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px 18px;
}

.search-submit-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    padding: 0;
}

.search-submit-btn:hover {
    background: var(--accent-light);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.search-submit-btn:active {
    transform: scale(0.95);
}

.search-submit-btn .material-icons {
    font-size: 22px;
}

[data-theme="dark"] .search-submit-btn {
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .search-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.55);
}

.search-input-icon {
    position: absolute;
    left: 15px;
    font-size: 20px;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

.search-input {
    width: 100%;
    padding: 14px 46px 14px 46px;
    border-radius: 60px;
    background: var(--bg-white-70);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .search-input {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-input:focus {
    border-color: var(--accent-light);
    background: var(--bg-white-85);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 20px rgba(0,0,0,0.05);
}

[data-theme="dark"] .search-input:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: var(--accent-light);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-clear-btn {
    position: absolute;
    right: 15px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-white-75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    line-height: 1;
}

[data-theme="dark"] .search-clear-btn {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--accent);
}

.search-default-view,
.search-results-view {
    padding: 0 22px 16px;
    max-height: 50vh;
    overflow-y: auto;
}

.search-section {
    margin-bottom: 16px;
}

.search-section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 4px;
}

.search-hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-white-70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
}

[data-theme="dark"] .search-hot-tag {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.search-hot-tag:hover {
    background: var(--bg-white-85);
    border-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .search-hot-tag:hover {
    background: rgba(30, 41, 59, 0.6);
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid transparent;
}

.search-suggest-item:hover {
    background: var(--bg-white-75);
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .search-suggest-item:hover {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.12);
}

.search-suggest-item .material-icons {
    font-size: 18px;
    color: var(--accent);
    opacity: 0.7;
}

.search-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-clear-all {
    background: none;
    border: none;
    font-size: 0.7rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: var(--font-sans);
}

.history-clear-all:hover {
    color: var(--accent);
    background: var(--bg-white-70);
}

.search-history-static {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-history-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 28px 5px 14px;
    border-radius: 20px;
    background: var(--bg-white-65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: background 0.2s;
    cursor: pointer;
}

[data-theme="dark"] .search-history-chip {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.search-history-chip .material-icons {
    font-size: 14px;
    opacity: 0.6;
}

.chip-delete {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-black-05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.chip-delete:hover {
    background: var(--bg-white-60);
    color: var(--text-primary);
}

[data-theme="dark"] .chip-delete {
    background: var(--bg-white-05);
    color: #cbd5e1;
}

[data-theme="dark"] .chip-delete:hover {
    background: var(--bg-black-60);
    color: #fff;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--bg-white-75);
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.active {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.12);
}

.search-result-icon {
    font-size: 24px;
    color: var(--accent);
    opacity: 0.8;
    flex-shrink: 0;
}

.search-result-info {
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
    display: block;
}

.search-result-meta {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-result-badge {
    background: var(--badge-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
}

.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    color: var(--text-muted);
    gap: 4px;
}

.search-no-results .material-icons {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: 8px;
}

.search-no-results p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.search-no-results span {
    font-size: 0.75rem;
    opacity: 0.7;
}

.search-footer-hint {
    padding: 12px 22px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
    border-top: 1px solid var(--divider);
    flex-wrap: wrap;
}

.search-footer-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--bg-white-75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    line-height: 1;
}

[data-theme="dark"] .search-footer-hint kbd {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .search-overlay {
        padding-top: 8vh;
    }

    .search-dialog {
        margin: 0 8px;
        border-radius: var(--radius-lg);
    }

    .search-input {
        padding: 12px 36px 12px 40px;
        font-size: 0.9rem;
    }

}


/* ==================== 表单组件 ==================== */

.checkbox-radio-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-check-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-check-label-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.glass-radio,
.glass-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    background: var(--bg-white-60);
    border: 1px solid transparent;
}

.glass-radio:hover,
.glass-checkbox:hover {
    background: var(--bg-white-75);
    border-color: var(--glass-border);
}

[data-theme="dark"] .glass-radio,
[data-theme="dark"] .glass-checkbox {
    background: var(--bg-white-05);
}

[data-theme="dark"] .glass-radio:hover,
[data-theme="dark"] .glass-checkbox:hover {
    background: var(--bg-white-60);
}

.glass-radio input,
.glass-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.glass-radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--bg-white-80);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.glass-radio input:checked + .glass-radio-indicator {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.glass-radio input:checked + .glass-radio-indicator::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.glass-check-indicator {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--glass-border);
    background: var(--bg-white-80);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.glass-check-indicator .material-icons {
    font-size: 14px;
    color: transparent;
    transition: color 0.2s;
}

.glass-checkbox input:checked + .glass-check-indicator {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.glass-checkbox input:checked + .glass-check-indicator .material-icons {
    color: #fff;
}


.progress-demo-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.glass-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.glass-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.glass-progress {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: var(--bg-white-75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.glass-progress-sm {
    height: 6px;
}

.glass-progress-fill {
    height: 100%;
    width: var(--progress);
    border-radius: inherit;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--accent);
}

.glass-progress-fill[data-color="gradient"] {
    background: linear-gradient(90deg, var(--accent), #ec4899);
}

.glass-progress-fill[data-color="success"] {
    background: #10b981;
}

.glass-progress-fill[data-color="warning"] {
    background: #f59e0b;
}

.glass-progress-fill.striped {
    background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
    );
    background-size: 1rem 1rem;
}

.toggle-demo-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.glass-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.glass-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-white-75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    position: relative;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.glass-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.glass-toggle input:checked + .glass-toggle-track {
    background: var(--accent);
    border-color: var(--accent);
}

.glass-toggle input:checked + .glass-toggle-track .glass-toggle-thumb {
    transform: translateX(20px);
}

.glass-toggle input:disabled + .glass-toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

.glass-toggle-sm .glass-toggle-track {
    width: 34px;
    height: 18px;
    border-radius: 9px;
}

.glass-toggle-sm .glass-toggle-thumb {
    width: 14px;
    height: 14px;
}

.glass-toggle-sm input:checked + .glass-toggle-track .glass-toggle-thumb {
    transform: translateX(16px);
}

.glass-toggle-label {
    user-select: none;
}

.snackbar-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.glass-snackbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: auto;
    animation: snackbarIn 0.4s ease, snackbarOut 0.3s ease 2.5s forwards;
    max-width: 340px;
}

.glass-snackbar .material-icons {
    font-size: 20px;
}

.glass-snackbar.success .material-icons {
    color: #10b981;
}

.glass-snackbar.warning .material-icons {
    color: #f59e0b;
}

.glass-snackbar.error .material-icons {
    color: #ef4444;
}

.glass-snackbar.info .material-icons {
    color: var(--accent);
}

[data-theme="dark"] .glass-snackbar {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.25);
    color: #f1f5f9;
}


/* ==================== 引用文章卡片（杂志封面风格） ==================== */

.ref-article-card {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 0 60px rgba(79, 70, 229, 0.06);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.ref-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ec4899, #f59e0b, var(--accent));
    background-size: 300% 100%;
    animation: refCardGradientShift 4s ease infinite;
    z-index: 10;
}

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

.ref-article-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .ref-article-card {
    background: var(--bg-slate-80-1);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(55, 65, 85, 0.35) inset,
        0 0 60px rgba(129, 140, 248, 0.08);
}

[data-theme="dark"] .ref-article-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.ref-article-card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
    box-shadow: 
        0 30px 60px -16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 80px rgba(79, 70, 229, 0.12);
    background: var(--bg-white-80);
}

[data-theme="dark"] .ref-article-card:hover {
    background: rgba(30, 41, 59, 0.4);
    box-shadow: 
        0 30px 60px -16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(100, 116, 139, 0.45) inset,
        0 0 80px rgba(129, 140, 248, 0.15);
}

/* 缩略图区域 - 杂志封面风格 */
.ref-article-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 160px;
    max-height: 230px;
    object-fit: cover;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.ref-article-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0.8);
    z-index: 2;
    mix-blend-mode: overlay;
    transition: opacity 0.4s;
}

.ref-article-card:hover .ref-article-thumb::before {
    opacity: 0.6;
}

.ref-article-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    z-index: 3;
}

.ref-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: saturate(0.9) contrast(1.05);
}

.ref-article-card:hover .ref-article-thumb img {
    transform: scale(1.12);
    filter: saturate(1.1) contrast(1.1);
}

/* 图片上的装饰文字 */
.ref-article-thumb-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 20%;
    z-index: 4;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    opacity: 0.9;
}

/* 内容区域 */
.ref-article-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 24px 16px;
    gap: 10px;
    position: relative;
    z-index: 3;
    text-decoration: none;
}

/* 标签 - 胶囊风格 */
.ref-article-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.ref-article-card:hover .ref-article-label {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* 标题 - 大字号杂志风格 */
.ref-article-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.ref-article-card:hover .ref-article-title {
    color: var(--accent);
}

/* 摘要 */
.ref-article-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

/* 元信息 - 底部横条 */
.ref-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--divider);
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.ref-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.25s;
}

.ref-article-meta span:hover {
    color: var(--accent);
}

.ref-article-meta .material-icons {
    font-size: 15px;
    opacity: 0.7;
}

/* 阅读更多指示器 */
.ref-article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-article-card:hover .ref-article-readmore {
    opacity: 1;
    transform: translateX(0);
}

.ref-article-readmore .material-icons {
    font-size: 16px;
    transition: transform 0.3s;
}

.ref-article-card:hover .ref-article-readmore .material-icons {
    transform: translateX(4px);
}

/* 角标装饰 */
.ref-article-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-white-80);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ref-article-corner .material-icons {
    font-size: 16px;
    color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-article-card:hover .ref-article-corner {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.ref-article-card:hover .ref-article-corner .material-icons {
    color: #fff;
    transform: rotate(-15deg);
}

[data-theme="dark"] .ref-article-corner {
    background: var(--bg-white-60);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 响应式 */
@media (max-width: 640px) {
    .ref-article-card {
        grid-template-columns: 1fr;
    }
    
    .ref-article-thumb {
        height: 180px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        clip-path: none;
    }
    
    .ref-article-body {
        padding: 20px;
    }
    
    .ref-article-title {
        font-size: 1rem;
    }
}

/* ==================== GitHub 项目卡片 ==================== */

.gh-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 24px -8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 0 40px rgba(79, 70, 229, 0.04);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.1s + 0.2s);
}

.gh-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.45s ease;
    z-index: 2;
}

.gh-project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

.gh-project-card a.gh-card-link {
    text-decoration: none!important;
}

[data-theme="dark"] .gh-project-card {
    background: var(--bg-slate-75);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 
        0 14px 26px -10px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(55, 65, 85, 0.3) inset,
        0 0 40px rgba(129, 140, 248, 0.06);
}

[data-theme="dark"] .gh-project-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.gh-project-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: var(--bg-white-80);
    box-shadow: 
        0 24px 36px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 60px rgba(79, 70, 229, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
}

.gh-project-card:hover::before {
    transform: scaleX(1);
}

[data-theme="dark"] .gh-project-card:hover {
    background: rgba(30, 41, 59, 0.4);
    box-shadow: 
        0 24px 36px -12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(100, 116, 139, 0.45) inset,
        0 0 60px rgba(129, 140, 248, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

/* 顶部徽章区域 */
.gh-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

.gh-repo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gh-project-card:hover .gh-repo-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.gh-repo-icon .material-icons {
    font-size: 24px;
    color: #fff;
}

.gh-repo-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gh-repo-owner {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gh-repo-owner::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M12 2C6.477 2 2 6.477 2 12c0 4.42 2.87 8.17 6.84 9.5.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34-.46-1.16-1.11-1.47-1.11-1.47-.91-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.87 1.52 2.34 1.07 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.92 0-1.11.38-2 1.03-2.71-.1-.25-.45-1.29.1-2.64 0 0 .84-.27 2.75 1.02.79-.22 1.65-.33 2.5-.33.85 0 1.71.11 2.5.33 1.91-1.29 2.75-1.02 2.75-1.02.55 1.35.2 2.39.1 2.64.65.71 1.03 1.6 1.03 2.71 0 3.82-2.34 4.66-4.57 4.91.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0012 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.6;
}

.gh-repo-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
    display: inline;
}

.gh-project-card:hover .gh-repo-name {
    background-size: 100% 2px;
}

/* 描述区域 */
.gh-repo-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
    position: relative;
    z-index: 3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部元信息 */
.gh-repo-meta {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--divider);
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

.gh-repo-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.25s;
}

.gh-repo-meta span:hover {
    color: var(--accent);
}

.gh-repo-meta .material-icons {
    font-size: 15px;
    opacity: 0.7;
    transition: opacity 0.25s;
}

.gh-repo-meta span:hover .material-icons {
    opacity: 1;
}

/* 语言标签 */
span.gh-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-white-70);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    font-weight: 500;
    transition: all 0.25s;
}

.gh-lang:hover {
    background: var(--bg-white-85);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

[data-theme="dark"] .gh-lang {
    background: var(--bg-white-05);
}

[data-theme="dark"] .gh-lang:hover {
    background: var(--bg-white-60);
}

span.gh-lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lang-color, #858585);
    display: inline-block;
    box-shadow: 0 0 6px var(--lang-color, #858585);
    transition: transform 0.25s;
}

.gh-lang:hover .gh-lang-dot {
    transform: scale(1.2);
}

/* 角标装饰 */
.gh-corner-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-white-80);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.gh-corner-icon .material-icons {
    font-size: 14px;
    color: var(--accent);
}

.gh-project-card:hover .gh-corner-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="dark"] .gh-corner-icon {
    background: var(--bg-white-60);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 响应式 */
@media (max-width: 640px) {
    .gh-project-card {
        padding: 18px;
    }

    .gh-repo-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .gh-repo-name {
        font-size: 0.9rem;
    }

    .gh-repo-desc {
        font-size: 0.78rem;
    }
    
    .search-input-icon {
        left: 30px;
    }

    .search-clear-btn {
        right: 30px;
    }
}

/* ==================== 归档页 ==================== */

.archive-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 16px 60px;
}

.archive-header {
    margin-bottom: 32px;
}

.archive-header-inner {
    background: var(--bg-white-70);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.7s ease-out both;
}

.archive-header-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .archive-header-inner {
    background: var(--bg-slate-70);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .archive-header-inner::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.archive-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 3;
}

.archive-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--accent-light);
}

.archive-header-icon .material-icons {
    font-size: 28px;
    color: var(--accent);
}

.archive-header-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.archive-header-subtitle {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.archive-header-stats {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

.archive-stat {
    text-align: center;
    min-width: 60px;
}

.archive-stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.archive-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.archive-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.archive-sidebar,
.archive-content {
    min-width: 0;
}

.archive-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.archive-filter-card {
    background: var(--bg-white-70);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

.archive-filter-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .archive-filter-card {
    background: var(--bg-slate-70);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .archive-filter-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.archive-filter-card:hover {
    background: var(--bg-white-80);
    box-shadow: var(--glass-shadow-hover);
}

[data-theme="dark"] .archive-filter-card:hover {
    background: var(--bg-slate-80-2);
}

.archive-filter-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 3;
}

.archive-filter-title .material-icons {
    font-size: 18px;
    color: var(--accent);
}

.archive-search-wrap {
    position: relative;
    z-index: 3;
}

.archive-search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: 60px;
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s;
}

.archive-search-input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-white-80);
}

[data-theme="dark"] .archive-search-input {
    background: var(--bg-black-80);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

[data-theme="dark"] .archive-search-input:focus {
    background: rgba(0, 0, 0, 0.45);
}

.archive-search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.archive-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 20px;
    z-index: 4;
}

.archive-month-list {
    list-style: none;
    margin: 0;
    padding: 6px 6px 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
}

.archive-month-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 14px;  /* 初始左内边距 */
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-white-60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    margin-right: 2px;
}

.archive-month-list li a:hover {
    background: var(--bg-white-80);
    border-color: var(--accent-light);
    color: var(--accent);
    padding-left: 22px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .archive-month-list li a {
    background: var(--bg-white-05);
    color: #cbd5e1;
}

[data-theme="dark"] .archive-month-list li a:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--accent-light);
    color: var(--accent);
}

.month-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.25s;
}

.archive-month-list li a:hover .month-count {
    transform: scale(1.1);
}

.archive-filter-card .accordion-group {
    gap: 6px;
}

.archive-filter-card .accordion-item {
    border: none;
}

.archive-filter-card .accordion-header {
    font-size: 0.85rem;
    padding: 12px 16px;
    background: var(--bg-white-70);
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.archive-filter-card .accordion-header:hover {
    background: var(--bg-white-80);
}

[data-theme="dark"] .archive-filter-card .accordion-header {
    background: var(--bg-black-70);
}

[data-theme="dark"] .archive-filter-card .accordion-header:hover {
    background: rgba(30, 41, 59, 0.45);
}

.archive-filter-card .accordion-panel {
    background: transparent;
}

.archive-category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 3;
}

.archive-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: var(--bg-white-60);
    text-decoration: none;
}

.archive-category-item .material-icons {
    font-size: 18px;
    color: var(--accent);
    opacity: 0.7;
}

[data-theme="dark"] .archive-category-item {
    background: var(--bg-white-05);
    color: #cbd5e1;
}

.archive-category-item:hover {
    background: var(--bg-white-70);
    border-color: var(--glass-border);
    color: var(--text-primary);
    transform: translateX(3px);
}

[data-theme="dark"] .archive-category-item:hover {
    background: var(--accent-light);
    color: #f1f5f9;
}

.archive-category-item .category-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-black-05);
    padding: 2px 9px;
    border-radius: 12px;
    min-width: 26px;
    text-align: center;
}

[data-theme="dark"] .archive-category-item .category-count {
    background: var(--bg-white-05);
    color: #94a3b8;
}

.archive-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 3;
}

.archive-tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white-65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .archive-tag-item {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.archive-tag-item:hover {
    background: var(--bg-white-85);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .archive-tag-item:hover {
    background: rgba(51, 65, 85, 0.6);
}

.archive-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.archive-item {
    display: flex;
    align-items: stretch;
    background: var(--bg-white-70);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

.archive-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .archive-item {
    background: var(--bg-slate-70);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .archive-item::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.archive-item:hover {
    background: var(--bg-white-85);
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -14px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

[data-theme="dark"] .archive-item:hover {
    background: var(--bg-slate-85);
    box-shadow: 0 22px 32px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 116, 139, 0.4) inset;
}

.archive-item-date {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background: var(--bg-white-60);
    border-right: 1px solid var(--divider);
    position: relative;
    z-index: 3;
    text-align: center;
    gap: 2px;
}

[data-theme="dark"] .archive-item-date {
    background: var(--bg-black-65);
    border-right-color: rgba(148, 163, 184, 0.12);
}

.archive-item-date .date-day {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.archive-item-date .date-month {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.archive-item-date .date-year {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
}

.archive-item-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 3;
}

.archive-item-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.archive-item-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s;
}

.archive-item-title a:hover {
    color: var(--accent);
}

.archive-item-excerpt {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.archive-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.archive-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    background: var(--badge-bg);
    color: var(--accent);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.archive-item-tag:hover {
    background: var(--accent-hover-bg);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.archive-item-tag .material-icons {
    font-size: 12px;
}

.archive-item-reading-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.archive-item-reading-time .material-icons {
    font-size: 13px;
}

.archive-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-primary);
}

.archive-empty-state .material-icons {
    font-size: 48px;
    color: var(--text-primary);
    opacity: 0.6;
    margin-bottom: 12px;
}

.archive-empty-state p {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.archive-header-inner,
.archive-filter-card,
.archive-item {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.archive-item-date {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.archive-category-item {
    background: var(--bg-white-70);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.archive-tag-item,
.archive-item-tag,
.archive-search-input {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

[data-theme="dark"] .archive-header-inner,
[data-theme="dark"] .archive-filter-card,
[data-theme="dark"] .archive-item {
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

[data-theme="dark"] .archive-item-date {
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: var(--bg-black-70);
}

[data-theme="dark"] .archive-tag-item,
[data-theme="dark"] .archive-item-tag,
[data-theme="dark"] .archive-search-input {
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.archive-radar-tab-mobile {
    display: none;
}

.archive-side-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.archive-side-flex .archive-filter-card {
    flex: 1 1 260px;
    min-width: 240px;
}

.archive-radar-card .radar-chart-wrap {
    min-height: 220px;
}

.archive-dot-card {
    overflow: visible !important;
}

@media (max-width: 1024px) {
    .archive-layout {
        grid-template-columns: 240px 1fr;
        gap: 18px;
    }

    .archive-sidebar {
        position: sticky;
        top: 110px;
    }

    .archive-item-date {
        flex: 0 0 72px;
        padding: 14px 8px;
    }

    .archive-item-date .date-day {
        font-size: 1.3rem;
    }

    .archive-item-body {
        padding: 14px 16px;
    }

    .archive-item-title {
        font-size: 0.95rem;
    }

    .archive-header-inner {
        padding: 22px 24px;
    }

    .archive-header-title {
        font-size: 1.25rem;
    }

    .archive-stat-number {
        font-size: 1.3rem;
    }

}

@media (max-width: 400px) {
    .archive-wrapper {
        padding: 28px 10px 32px;
    }

    .archive-sidebar {
        gap: 8px;
        width: 100%;
    }

    .archive-filter-card {
        padding: 12px;
        flex: 1 1 100%;
        width: 100%;
    }

    .archive-category-list {
        gap: 3px;
    }

    .archive-category-item {
        padding: 6px 10px;
        font-size: 0.67rem;
        gap: 4px;
    }

    .archive-item-date {
        padding: 8px 12px;
        gap: 4px;
    }

    .archive-item-body {
        padding: 10px 12px;
    }

    .archive-item-title {
        font-size: 0.8rem;
    }

}

@media (max-width: 600px) {
    .archive-wrapper {
        padding: 36px 12px 40px;
    }

    .archive-header-inner {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .archive-header-icon {
        width: 40px;
        height: 40px;
    }

    .archive-header-icon .material-icons {
        font-size: 22px;
    }

    .archive-header-title {
        font-size: 1.1rem;
    }

    .archive-header-stats {
        gap: 10px;
    }

    .archive-stat-number {
        font-size: 1.1rem;
    }

    .archive-stat-label {
        font-size: 0.62rem;
    }

    .archive-sidebar {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .archive-filter-card {
        min-width: 0;
        flex: 1 1 100%;
        width: 100%;
        padding: 14px 16px;
    }

    .archive-category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }

    .archive-category-item {
        padding: 7px 12px;
        font-size: 0.7rem;
        gap: 6px;
    }

    .archive-category-item .category-count {
        font-size: 0.6rem;
        padding: 1px 6px;
        min-width: 20px;
    }

    .archive-tag-cloud {
        gap: 6px;
    }

    .archive-tag-item {
        padding: 4px 10px;
        font-size: 0.68rem;
        gap: 5px;
    }

    .archive-item {
        flex-direction: column;
        border-radius: var(--radius-sm);
    }

    .archive-item-date {
        flex: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding: 10px 14px;
        border-right: none;
        border-bottom: 1px solid var(--divider);
        font-size: 0.75rem;
    }

    .archive-item-date .date-day {
        font-size: 1rem;
    }

    .archive-item-date .date-month {
        font-size: 0.68rem;
    }

    .archive-item-date .date-year {
        font-size: 0.65rem;
    }

    .archive-item-body {
        padding: 12px 14px;
        gap: 4px;
    }

    .archive-item-title {
        font-size: 0.85rem;
    }

    .archive-item-excerpt {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }

    .archive-item-meta {
        gap: 6px;
    }

    .archive-item-tag {
        font-size: 0.6rem;
        padding: 2px 8px;
    }

    .archive-item-reading-time {
        font-size: 0.62rem;
    }

    .archive-side-flex .archive-filter-card {
        min-width: 100%;
    }

}

@media (max-width: 860px) {
    .archive-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .archive-sidebar,
.archive-content {
        min-width: 0;
    }

    .archive-sidebar {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
    }

    .archive-filter-card {
        flex: 1 1 auto;
        min-width: 200px;
    }

    .archive-filter-card:first-child {
        flex: 1 1 100%;
    }

    .archive-category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .archive-category-item {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: 60px;
    }

    .archive-category-item .category-count {
        font-size: 0.65rem;
        padding: 1px 7px;
        min-width: 22px;
    }

    .archive-tag-cloud {
        gap: 8px;
    }

    .archive-tag-item {
        padding: 5px 12px;
        font-size: 0.7rem;
    }

    .archive-search-input {
        font-size: 0.78rem;
        padding: 9px 36px 9px 12px;
    }

    .archive-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 18px 20px;
    }

    .archive-header-left {
        flex-direction: column;
        gap: 8px;
    }

    .archive-header-stats {
        justify-content: center;
        gap: 14px;
    }

    .archive-item-date {
        flex: 0 0 64px;
        padding: 12px 6px;
    }

    .archive-item-date .date-day {
        font-size: 1.15rem;
    }

    .archive-item-body {
        padding: 12px 14px;
    }

    .archive-item-title {
        font-size: 0.88rem;
    }

    .archive-item-excerpt {
        font-size: 0.73rem;
    }

    .archive-radar-tab-mobile {
        display: block;
    }

    .archive-side-flex {
        display: none !important;
    }

}


/* ==================== Archive 通用页面 ==================== */

.ar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    position: relative;
    z-index: 1;
}

.ar-header {
    margin-bottom: 56px;
}

.ar-header-card {
    position: relative;
    border-radius: 28px;
    background: var(--bg-white-80);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    animation: arFadeInUp 0.7s ease-out;
}

.ar-header-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.62);
    z-index: 1;
    animation: arPatternMove 15s ease-in-out infinite alternate;
}

[data-theme="dark"] .ar-header-card {
    background: var(--bg-slate-80-1);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5),
    0 0 0 1px rgba(55,65,85,0.3) inset;
}

.ar-header-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 44px 48px;
}

.ar-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 12px 24px -8px rgba(79,70,229,0.2);
    transition: transform 0.3s ease, border-color 0.3s;
}

[data-theme="dark"] .ar-icon-wrap {
    background: var(--bg-white-60);
    border-color: rgba(255,255,255,0.15);
}

.ar-icon-wrap .material-icons {
    font-size: 36px;
    color: var(--accent);
}

.ar-header-card:hover .ar-icon-wrap {
    transform: scale(1.05) rotate(-3deg);
    border-color: var(--accent);
}

.ar-title-area {
    min-width: 0;
    flex: 1;
}

.ar-main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.2;
}

.ar-main-title span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.ar-main-title span::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    width: 100%;
    height: 0.25em;
    background: linear-gradient(90deg, var(--accent), rgba(99,102,241,0.4));
    border-radius: 2px;
    z-index: -1;
    transform: skewX(-12deg) scaleX(1.02);
}

.ar-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: 60px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-white-75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

[data-theme="dark"] .ar-badge {
    background: var(--bg-black-80);
    border-color: rgba(255,255,255,0.12);
    color: #cbd5e1;
}

.ar-badge .material-icons {
    font-size: 17px;
    color: var(--accent);
}

.ar-count {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ar-count strong {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
}

.ar-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.ar-list {
    position: relative;
    padding-left: 44px;
}

.ar-list::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: rgba(148, 163, 184, 0.7);
    border-radius: 1px;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

[data-theme="dark"] .ar-list::before {
    background: linear-gradient(to bottom, var(--accent), rgba(71,85,105,0.4));
}

.ar-item {
    position: relative;
    margin-bottom: 44px;
}

.ar-item:last-child {
    margin-bottom: 0;
}

.ar-item-dot {
    position: absolute;
    left: -28px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.6), 0 4px 12px rgba(79,70,229,0.4);
    z-index: 5;
    transition: transform 0.3s ease, box-shadow 0.3s;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

[data-theme="dark"] .ar-item-dot {
    box-shadow: 0 0 0 4px rgba(15,23,42,0.8), 0 4px 12px rgba(129,140,248,0.6);
}

.ar-item:nth-child(odd) .ar-item-dot {
    background: var(--accent);
}

.ar-item:nth-child(even) .ar-item-dot {
    background: #8b5cf6;
}

.ar-item:nth-child(3n) .ar-item-dot {
    background: #06b6d4;
}

.ar-item:nth-child(4n) .ar-item-dot {
    background: #f59e0b;
}

.ar-item-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-white-70);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.06),
    0 0 0 1px rgba(255,255,255,0.5) inset;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    position: relative;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

.ar-item-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 1px rgba(255,255,245,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.02);
    pointer-events: none;
    z-index: 5;
}

[data-theme="dark"] .ar-item-card {
    background: var(--bg-slate-70);
    border-color: rgba(148,163,184,0.18);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.4),
    0 0 0 1px rgba(55,65,85,0.25) inset;
}

[data-theme="dark"] .ar-item-card::after {
    box-shadow: inset 0 1px 1px rgba(255,255,250,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

.ar-item:hover .ar-item-card {
    transform: translateY(-4px);
    box-shadow: 0 20px 32px -12px rgba(0,0,0,0.12),
    0 0 0 1px rgba(255,255,255,0.55) inset;
}

[data-theme="dark"] .ar-item:hover .ar-item-card {
    background: var(--bg-slate-80-2);
    box-shadow: 0 20px 32px -12px rgba(0,0,0,0.6),
    0 0 0 1px rgba(100,116,139,0.35) inset;
}

.ar-item-body {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ar-item-thumb {
    flex: 0 0 200px;
    max-height: 180px;
    overflow: hidden;
    border-left: 1px solid var(--glass-border);
}

.ar-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ar-item:hover .ar-item-thumb img {
    transform: scale(1.05);
}

.ar-item-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ar-item-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.73rem;
    color: var(--text-tertiary);
}

.ar-item-date .material-icons {
    font-size: 15px;
}

.ar-item-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--badge-bg);
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: background 0.25s, border-color 0.25s;
    letter-spacing: 0.03em;
}

.ar-item-category:hover {
    background: var(--accent-hover-bg);
    border-color: var(--accent-light);
}

.ar-item-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.ar-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s;
    padding-bottom: 2px;
}

.ar-item-title a:hover {
    background-size: 100% 2px;
    color: var(--accent);
}

.ar-item-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ar-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.ar-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 500;
    background: var(--bg-white-70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.25s;
}

.ar-tag:hover {
    background: var(--bg-white-80);
    border-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-1px);
}

[data-theme="dark"] .ar-tag {
    background: var(--bg-black-75);
    border-color: rgba(255,255,255,0.08);
    color: #cbd5e1;
}

@media (max-width: 480px) {
    .ar-wrapper {
        padding: 40px 16px 60px;
    }

    .ar-header-content {
        padding: 24px 20px;
    }

    .ar-list {
        padding-left: 24px;
    }

    .ar-list::before {
        left: 10px;
    }

    .ar-item-dot {
        left: -16px;
        top: 18px;
        width: 10px;
        height: 10px;
    }

    .ar-item-body {
        padding: 18px 16px;
    }

    .ar-main-title {
        font-size: 1.25rem;
    }

}

@media (max-width: 768px) {
    .ar-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 32px 28px;
    }

    .ar-icon-wrap {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .ar-main-title {
        font-size: 1.5rem;
    }

    .ar-list {
        padding-left: 34px;
    }

    .ar-list::before {
        left: 14px;
    }

    .ar-item-dot {
        left: -22px;
        top: 20px;
        width: 14px;
        height: 14px;
    }

    .ar-item-body {
        padding: 22px 20px;
    }

    .ar-item-title {
        font-size: 1.1rem;
    }

    .ar-item-card {
        flex-direction: column;
    }

    .ar-item-thumb {
        flex: auto;
        max-height: 200px;
        border-left: none;
        border-top: 1px solid var(--glass-border);
        order: -1;
    }

}


/* ==================== 用户页面 ==================== */

.user-page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 16px 60px;
}

.user-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.user-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-profile-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease-out both;
}

.user-profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .user-profile-card {
    background: var(--bg-slate-75);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .user-profile-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.user-profile-card:hover {
    background: var(--bg-white-80);
    box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

[data-theme="dark"] .user-profile-card:hover {
    background: var(--bg-slate-85);
    box-shadow: 0 22px 32px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 116, 139, 0.4) inset;
}

.user-profile-cover {
    height: 70px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 50%, #ec4899 100%);
    opacity: 0.35;
    filter: blur(20px);
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .user-profile-cover {
    opacity: 0.5;
}

.user-profile-body {
    padding: 0 22px 22px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -40px;
    gap: 12px;
}

.user-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.user-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.7);
    border: 2px solid var(--glass-border);
    transition: transform 0.3s;
}

[data-theme="dark"] .user-avatar {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.user-avatar:hover {
    transform: scale(1.04);
}

.user-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    z-index: 2;
}

[data-theme="dark"] .user-online-dot {
    border-color: rgba(15, 23, 42, 0.8);
}

.user-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-username {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 400;
}

.user-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--badge-bg);
    padding: 4px 13px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.user-title-badge .material-icons {
    font-size: 14px;
}

.user-bio {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 240px;
}

.user-meta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.user-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    justify-content: center;
    width: 100%;
}

.user-meta-item .material-icons {
    font-size: 14px;
    color: var(--accent);
    opacity: 0.7;
}

.user-meta-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s;
}

.user-meta-item a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.user-social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.user-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white-75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .user-social-link {
    background: var(--bg-white-60);
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

.user-social-link:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.user-social-link .material-icons {
    font-size: 18px;
}

.user-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: 60px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--font-sans);
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.user-edit-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.user-edit-btn .material-icons {
    font-size: 16px;
}

.user-stats-card {
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.user-stats-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .user-stats-card {
    background: var(--bg-slate-75);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .user-stats-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.user-stats-card:hover {
    background: var(--bg-white-80);
    box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

[data-theme="dark"] .user-stats-card:hover {
    background: var(--bg-slate-85);
    box-shadow: 0 22px 32px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 116, 139, 0.4) inset;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
    z-index: 3;
}

.user-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-white-60);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    cursor: default;
}

[data-theme="dark"] .user-stat-item {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.08);
}

.user-stat-item:hover {
    background: var(--bg-white-75);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
}

[data-theme="dark"] .user-stat-item:hover {
    background: var(--bg-white-60);
    box-shadow: 0 6px 16px rgba(129, 140, 248, 0.15);
}

.user-stat-icon {
    font-size: 22px;
    color: var(--accent);
    opacity: 0.8;
}

.user-stat-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.user-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-tabs-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-comment-card {
    position: relative;
    display: flex;
    gap: 0;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    overflow: hidden;
    transition: all 0.35s ease;
    animation: fadeInUp 0.55s ease-out both;
    animation-delay: calc(var(--card-index, 0) * 0.08s + 0.2s);
}

.user-comment-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .user-comment-card {
    background: var(--bg-slate-70);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(55, 65, 85, 0.25) inset;
}

[data-theme="dark"] .user-comment-card::after {
    box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.user-comment-card:hover {
    background: var(--bg-white-80);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -14px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

[data-theme="dark"] .user-comment-card:hover {
    background: var(--bg-slate-80-2);
    box-shadow: 0 22px 32px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(100, 116, 139, 0.35) inset;
}

.user-comment-card:nth-child(4n+1) .user-comment-accent {
    background: linear-gradient(180deg, #6366f1 0%, #818cf8 100%);
}

.user-comment-card:nth-child(4n+2) .user-comment-accent {
    background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
}

.user-comment-card:nth-child(4n+3) .user-comment-accent {
    background: linear-gradient(180deg, #06b6d4 0%, #22d3ee 100%);
}

.user-comment-card:nth-child(4n+4) .user-comment-accent {
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
}

.user-comment-accent {
    flex: 0 0 5px;
    align-self: stretch;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    transition: all 0.35s ease;
    position: relative;
    z-index: 3;
}

.user-comment-card:hover .user-comment-accent {
    flex: 0 0 7px;
    filter: brightness(1.15);
}

.user-comment-body {
    flex: 1;
    padding: 18px 20px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.user-comment-body::before {
    content: '"';
    position: absolute;
    top: -8px;
    right: 16px;
    font-family: var(--font-display);
    font-size: 100px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.04;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 0;
}

.user-comment-card:hover .user-comment-body::before {
    opacity: 0.07;
    transform: translateY(-4px) scale(1.05);
}

[data-theme="dark"] .user-comment-body::before {
    opacity: 0.06;
}

[data-theme="dark"] .user-comment-card:hover .user-comment-body::before {
    opacity: 0.1;
}

.user-comment-context {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    background: var(--badge-bg);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: all 0.25s;
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-comment-context .material-icons {
    font-size: 13px;
    flex-shrink: 0;
}

.user-comment-context:hover {
    background: var(--accent-hover-bg);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.user-comment-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
    letter-spacing: 0.01em;
}

.user-comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.user-comment-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.user-comment-time .material-icons {
    font-size: 13px;
}

.user-comment-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.user-comment-stats .material-icons {
    font-size: 15px;
    margin-right: 2px;
    color: var(--text-muted);
    transition: color 0.25s;
}

.user-comment-stats .material-icons:hover {
    color: var(--accent);
}

.user-comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--text-muted);
    gap: 8px;
    text-align: center;
}

.user-comments-empty .material-icons {
    font-size: 56px;
    opacity: 0.3;
}

.user-comments-empty p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.user-comments-empty span {
    font-size: 0.75rem;
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .user-layout {
        grid-template-columns: 260px 1fr;
        gap: 18px;
    }

    .user-sidebar {
        top: 90px;
    }

    .user-avatar {
        width: 72px;
        height: 72px;
    }

    .user-avatar-wrap {
        width: 72px;
        height: 72px;
    }

    .user-name {
        font-size: 1.15rem;
    }

    .user-profile-body {
        padding: 0 16px 18px;
    }

    .user-profile-cover {
        height: 56px;
    }

    .user-stats-grid {
        gap: 10px;
    }

    .user-stat-value {
        font-size: 1.15rem;
    }

}

@media (max-width: 400px) {
    .user-page-wrapper {
        padding: 28px 10px 32px;
    }

    .user-profile-body {
        padding: 0 12px 14px;
    }

    .user-stat-item {
        padding: 8px 4px;
        gap: 2px;
    }

    .user-stat-value {
        font-size: 1rem;
    }

    .user-stat-icon {
        font-size: 18px;
    }

    .user-comment-card {
        border-radius: var(--radius-md);
    }

    .user-comment-body {
        padding: 12px;
        gap: 8px;
    }

    .user-comment-text {
        font-size: 0.78rem;
        line-height: 1.55;
    }

}

@media (max-width: 640px) {
    .user-page-wrapper {
        padding: 36px 12px 40px;
    }

    .user-breadcrumb {
        padding: 0 2px 14px;
        font-size: 0.7rem;
    }

    .user-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .user-profile-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-meta-list {
        justify-content: center;
    }

    .user-stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .user-comment-body {
        padding: 14px 14px;
    }

    .user-comment-text {
        font-size: 0.82rem;
    }

    .user-comment-body::before {
        font-size: 70px;
        top: -4px;
        right: 10px;
    }

}

@media (max-width: 860px) {
    .user-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .user-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .user-profile-card {
        grid-column: 1 / -1;
    }

    .user-profile-body {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        padding: 0 18px 18px;
    }

    .user-avatar-wrap {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }

    .user-avatar {
        width: 64px;
        height: 64px;
    }

    .user-name,
.user-username,
.user-bio,
.user-meta-list,
.user-social-links,
.user-edit-btn {
        width: auto;
        flex: 1 1 auto;
    }

    .user-bio {
        max-width: 100%;
        flex: 1 1 100%;
        order: 10;
    }

    .user-meta-list {
        flex: 1 1 100%;
        order: 11;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }

    .user-edit-btn {
        order: 12;
    }

    .user-stats-card {
        grid-column: 1 / -1;
    }

    .user-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

}


/* ==================== 友情链接 ==================== */

.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.friend-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.5) inset;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1.2),
    box-shadow 0.35s,
    border-color 0.35s;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.1s + 0.3s);
}

.friend-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255,255,245,0.5), inset 0 -1px 0 rgba(0,0,0,0.02);
}

[data-theme="dark"] .friend-card {
    background: var(--bg-slate-75);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 26px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(55,65,85,0.3) inset;
}

[data-theme="dark"] .friend-card::after {
    box-shadow: inset 0 1px 1px rgba(255,255,250,0.12), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.friend-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 36px -12px rgba(0,0,0,0.12), 0 0 0 1px var(--card-accent, var(--accent)) inset;
    border-color: rgba(255,255,255,0.6);
}

[data-theme="dark"] .friend-card:hover {
    box-shadow: 0 24px 36px -12px rgba(0,0,0,0.5), 0 0 0 1px var(--card-accent, var(--accent)) inset;
    border-color: rgba(148,163,184,0.3);
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--card-accent, var(--accent)), transparent);
    transform: scaleX(0);
    transition: transform 0.45s ease;
    z-index: 2;
}

.friend-card:hover::before {
    transform: scaleX(1);
}

.friend-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    flex-shrink: 0;
}

.friend-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid rgba(255,255,255,0.6);
    transition: border-color 0.3s;
}

[data-theme="dark"] .friend-card-avatar img {
    border-color: rgba(255,255,255,0.15);
}

.friend-card:hover .friend-card-avatar {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15), 0 0 0 4px var(--card-accent, rgba(255,255,255,0.3));
}

.friend-card:hover .friend-card-avatar img {
    border-color: var(--card-accent, var(--accent));
}

.friend-card-body {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.friend-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    background-image: linear-gradient(var(--card-accent, var(--accent)), var(--card-accent, var(--accent)));
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
    display: inline;
    padding-bottom: 2px;
}

.friend-card:hover .friend-card-title {
    background-size: 100% 2px;
}

.friend-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

.friend-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.friend-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.friend-card-date .material-icons {
    font-size: 14px;
    opacity: 0.7;
}

.friend-card-cat {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--bg-white-70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-accent, var(--accent-light));
    color: var(--card-accent, var(--accent));
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    transition: background 0.3s, color 0.3s;
}

.friend-card:hover .friend-card-cat {
    background: var(--card-accent, var(--accent));
    color: #fff;
    border-color: transparent;
}

[data-theme="dark"] .friend-card-cat {
    background: var(--bg-white-05);
    border-color: var(--card-accent, rgba(255,255,255,0.2));
    color: var(--card-accent, #cbd5e1);
}

[data-theme="dark"] .friend-card:hover .friend-card-cat {
    background: var(--card-accent, var(--accent));
    color: #fff;
}

.friend-card[style*="--i:"] {
    animation-delay: calc(var(--i) * 0.08s + 0.2s);
}

@media (max-width: 1024px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .friend-card {
        padding: 22px 16px 18px;
    }

    .friend-card-avatar {
        width: 70px;
        height: 70px;
    }

    .friend-card-title {
        font-size: 0.95rem;
    }

}

@media (max-width: 640px) {
    .friends-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .friend-card {
        flex-direction: row;
        align-items: center;
        padding: 18px 16px;
        gap: 16px;
    }

    .friend-card-avatar {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .friend-card-body {
        text-align: left;
    }

    .friend-card-title {
        font-size: 0.9rem;
    }

    .friend-card-desc {
        font-size: 0.76rem;
        -webkit-line-clamp: 3;
    }

    .friend-card-meta {
        justify-content: flex-start;
    }

}


/* ==================== 404 错误页面 ==================== */

.er-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.er-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.er-orb {
    position: absolute;
    border-radius: 50%;
    background: var(--bg-white-70);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    animation: erOrbFloat 12s ease-in-out infinite alternate;
}

[data-theme="dark"] .er-orb {
    background: var(--bg-white-05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.orb-1 {
    width: 140px;
    height: 140px;
    top: 15%;
    left: 10%;
    animation-duration: 14s;
    animation-delay: -1s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 8%;
    animation-duration: 16s;
    animation-delay: -3s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 70%;
    animation-duration: 11s;
    animation-delay: -5s;
}

.orb-4 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 15%;
    animation-duration: 13s;
    animation-delay: -7s;
}

.er-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    animation: erFadeInUp 0.8s ease-out;
}

.er-number-block {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.er-num-layer {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(120px, 20vw, 200px);
    font-weight: 900;
    line-height: 1;
    user-select: none;
    transition: all 0.4s;
}

.layer-back {
    position: absolute;
    inset: 0;
    color: var(--accent);
    opacity: 0.15;
    filter: blur(24px);
    transform: translateY(8px) scale(1.05);
    z-index: 1;
}

.layer-mid {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent) 20%, #8b5cf6 50%, #ec4899 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.5;
    filter: blur(4px);
    transform: translateY(2px) scale(1.02);
}

.layer-front {
    position: relative;
    z-index: 3;
    background: linear-gradient(135deg, var(--accent) 20%, #a78bfa 50%, #f472b6 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 12px rgba(79,70,229,0.3));
    transition: filter 0.3s;
}

[data-theme="dark"] .layer-back {
    opacity: 0.25;
    filter: blur(30px);
}

[data-theme="dark"] .layer-mid {
    opacity: 0.6;
    filter: blur(6px);
}

[data-theme="dark"] .layer-front {
    filter: drop-shadow(0 6px 16px rgba(129,140,248,0.5));
}

.er-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    line-height: 1.3;
}

.er-desc {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0 0 36px;
}

.er-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.er-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    letter-spacing: 0.02em;
}

.er-btn .material-icons {
    font-size: 20px;
}

.er-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

.er-btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79,70,229,0.4);
}

[data-theme="dark"] .er-btn-primary {
    box-shadow: 0 8px 20px rgba(129,140,248,0.4);
}

.er-btn-ghost {
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    cursor: pointer;
}

.er-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: var(--accent-light);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79,70,229,0.2);
}

[data-theme="dark"] .er-btn-ghost {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

[data-theme="dark"] .er-btn-ghost:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--accent-light);
    color: var(--accent);
}

@media (max-width: 600px) {
    .er-wrapper {
        min-height: calc(100vh - 80px);
        padding: 30px 16px;
    }

    .er-number-block {
        margin-bottom: 16px;
    }

    .er-title {
        font-size: 1.5rem;
    }

    .er-desc {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .er-actions {
        flex-direction: column;
        align-items: center;
    }

    .er-orb {
        display: none;
    }

}


/* ==================== 雷达图组件 ==================== */

.radar-toggle-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
}

.radar-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 0.67rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.radar-toggle-btn .material-icons {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.radar-toggle-btn:hover {
    background: var(--bg-white-85);
    border-color: var(--accent-light);
    color: var(--text-primary);
}

.radar-toggle-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.radar-toggle-btn.active .material-icons {
    color: #fff;
}

[data-theme="dark"] .radar-toggle-btn {
    background: var(--bg-black-75);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

[data-theme="dark"] .radar-toggle-btn:hover {
    background: rgba(30, 41, 59, 0.5);
}

[data-theme="dark"] .radar-toggle-btn.active {
    background: var(--accent);
    color: #fff;
}

.radar-chart-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    min-height: 260px;
}

#radarChart {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    cursor: crosshair;
    transition: opacity 0.3s;
}

.radar-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-size: 0.7rem;
    font-weight: 600;
    color: #0a0a0a;
    white-space: nowrap;
    transform: translate(-50%, -130%);
}

[data-theme="dark"] .radar-tooltip {
    background: rgba(15, 23, 42, 0.88);
    border-color: rgba(148, 163, 184, 0.3);
    color: #f1f5f9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.radar-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--divider);
    font-size: 0.7rem;
    color: var(--text-muted);
    position: relative;
    z-index: 3;
}

.radar-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
}

.radar-note-static {
    padding-top: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.8;
    position: relative;
    z-index: 3;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .radar-chart-wrap {
        min-height: 200px;
    }

    #radarChart {
        max-width: 200px;
    }

    .radar-toggle-btn {
        padding: 5px 10px;
        font-size: 0.62rem;
    }

    .radar-toggle-btn .material-icons {
        font-size: 12px;
    }

}

@media (max-width: 860px) {
    .radar-chart-wrap {
        min-height: 220px;
    }

    #radarChart {
        max-width: 240px;
    }

}


/* ==================== macOS 风格代码块 ==================== */

.code-block {
    margin: 14px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-family: var(--font-sans);
    margin: 0;
}

[data-theme="dark"] .code-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

[data-theme="dark"] .code-dot {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.code-lang-text {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    user-select: none;
}

.code-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    border-radius: 6px;
    background: var(--bg-white-85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all 0.2s;
    flex-shrink: 0;
}

.code-copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.04);
}

[data-theme="dark"] .code-copy-btn {
    background: var(--bg-white-60);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

[data-theme="dark"] .code-copy-btn:hover {
    background: var(--accent);
    color: #fff;
}

.code-block pre {
    margin: 0 !important;
    border-top: none !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    background: var(--code-bg);
}

/* ==================== 文章发布热图 ==================== */

.dot-heatmap-wrap {
    position: relative;
    z-index: 3;
    margin-bottom: 8px;
    min-width: 0;
}

.dot-heatmap-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) transparent;
    touch-action: pan-x pinch-zoom;
}

.dot-heatmap-grid {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.dot-month-label {
    grid-row: 1;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0 4px;
}

.dot-week-label {
    grid-column: 1;
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    white-space: nowrap;
}

.dot-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
    background: var(--dot-level-0, #ebedf0);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s, border-color 0.15s;
    cursor: default;
}

.dot-cell:hover {
    transform: scale(1.5);
    border-color: var(--accent);
    z-index: 10;
    outline: 1px solid var(--accent);
    outline-offset: -1px;
}

.dot-level-0 {
    background: var(--dot-level-0) !important;
}

.dot-level-1 {
    background: var(--dot-level-1) !important;
}

.dot-level-2 {
    background: var(--dot-level-2) !important;
}

.dot-level-3 {
    background: var(--dot-level-3) !important;
}

.dot-level-4 {
    background: var(--dot-level-4) !important;
}

.dot-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    color: var(--text-muted);
    position: relative;
    z-index: 3;
    margin-top: 10px;
    flex-wrap: wrap;
}

.dot-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

[data-theme="dark"] .dot-legend-swatch {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
    .dot-heatmap-grid {
        gap: 1.5px;
    }

    .dot-cell {
        border-radius: 1px;
    }

    .dot-cell:hover {
        transform: scale(1.3);
    }

}


/* ==================== 置顶文章卡片 ==================== */

.pinned-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-white-75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.1),
    0 0 0 1px rgba(255,255,255,0.5) inset;
    min-height: 368px;
    transition: box-shadow 0.35s;
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
}

.pinned-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 6;
    box-shadow: inset 0 1px 1px rgba(255,255,245,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.02);
}

[data-theme="dark"] .pinned-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148,163,184,0.22);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.45),
    0 0 0 1px rgba(55,65,85,0.32) inset;
}

[data-theme="dark"] .pinned-card::after {
    box-shadow: inset 0 1px 1px rgba(255,255,250,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.pinned-card:hover {
    box-shadow: 0 24px 38px -14px rgba(0,0,0,0.14),
    0 0 0 1px rgba(255,255,255,0.6) inset;
}

.pinned-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 2;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.pinned-cover:hover {
    height: 100%;
}

.pinned-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.pinned-cover:hover img {
    transform: scale(1.05);
}

.pinned-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 8;
    background: var(--accent);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 14px rgba(79,70,229,0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    animation: pinnedPulse 2s ease-in-out infinite;
    pointer-events: auto;
}

.pinned-badge .material-icons {
    font-size: 18px;
    animation: pinnedRotate 3s linear infinite;
}

.pinned-cover-meta {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 30px;
    background: var(--bg-white-75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.45);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    pointer-events: auto;
}

[data-theme="dark"] .pinned-cover-meta {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
    color: #e2e8f0;
}

.pinned-meta-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.7);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.pinned-meta-name,
.pinned-meta-cat {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.pinned-meta-name:hover,
.pinned-meta-cat:hover {
    color: var(--accent-light);
}

.pinned-meta-divider {
    opacity: 0.5;
}

.pinned-meta-cat {
    background: var(--bg-white-70);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}

.pinned-meta-date,
.pinned-meta-read {
    font-size: 0.68rem;
    opacity: 0.9;
}

.pinned-title-wrap {
    position: absolute;
    bottom: 25%;
    left: 0;
    z-index: 5;
    padding: 0 24px;
    pointer-events: auto;
}

.pinned-title {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.pinned-title:hover {
    background: var(--bg-white-85);
    border-color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .pinned-title {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148,163,184,0.3);
    color: #f1f5f9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.pinned-title a {
    text-decoration: none;
    color: inherit;
    transition: color 1s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pinned-title a:hover {
    color: var(--accent);
}

.pinned-body {
    position: absolute;
    z-index: 1;
    bottom: 0;
    padding: 24px;
}

.pinned-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
    transition: opacity 0.35s;
}

.pinned-cover:hover ~ .pinned-body .pinned-excerpt {
    opacity: 0.25;
}

@media (max-width: 480px) {
    .pinned-card {
        min-height: 300px;
    }

    .pinned-cover {
        height: 180px;
    }

    .pinned-badge {
        padding: 3px 10px;
        font-size: 0.68rem;
    }

    .pinned-badge .material-icons {
        font-size: 14px;
    }

    .pinned-meta-cat {
        display: none;
    }

}

@media (max-width: 768px) {
    .pinned-card {
        min-height: 330px;
    }

    .pinned-cover {
        height: 220px;
    }

    .pinned-cover-meta {
        padding: 4px 12px;
        font-size: 0.65rem;
        gap: 5px;
    }

    .pinned-meta-avatar {
        width: 22px;
        height: 22px;
    }

    .pinned-meta-date,
.pinned-meta-read {
        display: none;
    }

}


/*  Quote Card 引语卡片*/

/* 公共卡片基础 */
.glass-card-quote {
    animation: fadeInUp 0.7s ease-out both;
    animation-delay: 0.5s;
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-white-75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 25px -12px rgba(0,0,0,0.06), 
                0 0 0 1px rgba(255,255,255,0.5) inset;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible; /* 允许引号略微溢出 */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
}

/* 高光内阴影 */
.glass-card-quote::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255,255,245,0.5), 
                inset 0 -1px 0 rgba(0,0,0,0.02);
}

[data-theme="dark"] .glass-card-quote {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 28px -14px rgba(0,0,0,0.35), 
                0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

[data-theme="dark"] .glass-card-quote::after {
    box-shadow: inset 0 1px 1px rgba(255,255,250,0.12), 
                inset 0 -1px 0 rgba(0,0,0,0.1);
}

.glass-card-quote:hover {
    background: var(--bg-white-85);
    transform: translateY(-4px);
    box-shadow: 0 22px 32px -14px rgba(0,0,0,0.12), 
                0 0 0 1px rgba(255,255,255,0.55) inset;
}

[data-theme="dark"] .glass-card-quote:hover {
    background: var(--bg-slate-85);
    box-shadow: 0 22px 32px -16px rgba(0,0,0,0.5), 
                0 0 0 1px rgba(100, 116, 139, 0.4) inset;
}

/* 左侧引号装饰 */
.gcq-mark {
    flex: 0 0 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 100px;
    line-height: 0.8;
    color: var(--accent);
    opacity: 0.2;
    padding-top: 18px;
    user-select: none;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 3;
}

.glass-card-quote:hover .gcq-mark {
    opacity: 0.35;
    transform: translateY(-4px) scale(1.08);
    color: #8b5cf6; /* 微紫色变调，增加趣味 */
}

/* 内容区域 */
.gcq-body {
    flex: 1;
    padding: 24px 24px 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    position: relative;
    z-index: 3;
}

.gcq-label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--badge-bg);
    color: var(--accent);
    border: 1px solid var(--glass-border);
}

.gcq-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
    font-style: italic;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gcq-title a {
    text-decoration: none;
    color: inherit;
    transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
    background-image: linear-gradient(90deg, var(--bg-secondary) 0%, var(--accent) 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
}
.gcq-title a:hover {
    background-size: 100% 2px;
    color: var(--accent);
}

.gcq-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
    font-style: italic;
}

.gcq-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    padding-top: 10px;
    border-top: 1px solid var(--divider);
    margin-top: 2px;
}

.gcq-author {
    color: var(--accent);
    font-weight: 600;
    font-style: normal;
    margin-left: auto;
}

/* 装饰性背景光晕 */
.glass-card-quote::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-indigo-05);
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
}

.glass-card-quote:hover::before {
    transform: scale(1.4);
    opacity: 0.6;
}

/* 响应式：移动端缩小引号，优化空间 */
@media (max-width: 640px) {
    .gcq-mark {
        flex: 0 0 50px;
        font-size: 64px;
        padding-top: 14px;
    }

    .gcq-body {
        padding: 18px 16px 18px 4px;
        gap: 8px;
    }

    .gcq-title {
        font-size: 0.95rem;
    }

    .gcq-excerpt {
        font-size: 0.78rem;
    }
}

/* 超小屏（≤480px）隐藏左侧引号，改用伪元素在标题前添加 */
@media (max-width: 480px) {
    .gcq-mark {
        display: none;
    }

    .gcq-body {
        padding: 18px;
    }

    .gcq-title::before {
        content: '❝ ';
        color: var(--accent);
        opacity: 0.5;
        font-size: 1.1em;
    }
}

/* ==================== 网盘引用卡片 ==================== */

.cloud-ref-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-white-70);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.5) inset;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    overflow: hidden;
}

.cloud-ref-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 1px 1px rgba(255,255,245,0.5), inset 0 -1px 0 rgba(0,0,0,0.02);
}

[data-theme="dark"] .cloud-ref-card {
    background: var(--bg-slate-75);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 26px -10px rgba(0,0,0,0.3), 0 0 0 1px rgba(55,65,85,0.3) inset;
}

[data-theme="dark"] .cloud-ref-card::after {
    box-shadow: inset 0 1px 1px rgba(255,255,250,0.12), inset 0 -1px 0 rgba(0,0,0,0.1);
}

.cloud-ref-card:hover {
    background: var(--bg-white-80);
    transform: translateY(-3px);
    box-shadow: 0 20px 32px -12px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.55) inset;
}

[data-theme="dark"] .cloud-ref-card:hover {
    background: var(--bg-slate-85);
    box-shadow: 0 22px 32px -16px rgba(0,0,0,0.5), 0 0 0 1px rgba(100,116,139,0.4) inset;
}

.cloud-ref-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
    position: relative;
    z-index: 6;
}

.cloud-ref-icon .material-icons {
    font-size: 28px;
    color: #fff;
}

.cloud-ref-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    position: relative;
    z-index: 6;
}

.cloud-ref-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.cloud-ref-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    align-items: center;
}

.cloud-ref-code-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.cloud-ref-code-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cloud-ref-code {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    filter: blur(4px);
    transition: filter 0.3s ease;
    user-select: none;
    background: var(--bg-white-80);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.cloud-ref-code-row:hover .cloud-ref-code {
    filter: blur(0);
}

.cloud-ref-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.cloud-ref-copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.1);
}

.cloud-ref-copy-btn .material-icons {
    font-size: 16px;
}

.cloud-ref-arrow {
    position: relative;
    z-index: 6;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.3s;
    color: var(--text-tertiary);
}

.cloud-ref-card:hover .cloud-ref-arrow {
    opacity: 0.9;
    transform: translate(3px, -3px);
}

.cloud-ref-arrow .material-icons {
    font-size: 24px;
}

@media (max-width: 600px) {
    .cloud-ref-card {
        padding: 16px;
        gap: 12px;
    }

    .cloud-ref-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .cloud-ref-icon .material-icons {
        font-size: 22px;
    }

    .cloud-ref-title {
        font-size: 0.9rem;
    }

    .cloud-ref-arrow {
        display: none;
    }

}

/* ==================== 音乐播放器 ==================== */

.music-player {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    width: auto;
    max-width: calc(100% - 48px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- 折叠状态 ---- */
.music-player-collapsed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 60px;
    background: var(--bg-white-85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    animation: musicSlideUp 0.6s ease-out 1s both;
}

[data-theme="dark"] .music-player-collapsed {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

.music-player-collapsed:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

[data-theme="dark"] .music-player-collapsed:hover {
    background: rgba(30, 41, 59, 0.65);
}

.music-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    flex-shrink: 0;
}

.music-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.music-toggle-btn .material-icons {
    font-size: 20px;
}

/* 迷你波形 */
.music-wave-mini {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.music-wave-mini .wave-bar {
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
}

.playing .music-wave-mini .wave-bar{
    animation: musicWaveMini 1.2s ease-in-out infinite;
}

.music-wave-mini .wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-wave-mini .wave-bar:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.music-wave-mini .wave-bar:nth-child(3) { height: 12px; animation-delay: 0.4s; }
.music-wave-mini .wave-bar:nth-child(4) { height: 18px; animation-delay: 0.1s; }

@keyframes musicWaveMini {
    0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 0.9; }
}
/* 展开状态波形 */
.music-wave-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    width: 100%;
}

.music-wave-bars .wave-bar {
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.5;
    animation: musicWaveBar 1.2s ease-in-out infinite;
    transition: opacity 0.3s;
}

/* 20条波形，交错动画 */
.music-wave-bars .wave-bar:nth-child(1)  { height: 20%; animation-delay: 0.0s; }
.music-wave-bars .wave-bar:nth-child(2)  { height: 45%; animation-delay: 0.1s; }
.music-wave-bars .wave-bar:nth-child(3)  { height: 30%; animation-delay: 0.2s; }
.music-wave-bars .wave-bar:nth-child(4)  { height: 60%; animation-delay: 0.05s; }
.music-wave-bars .wave-bar:nth-child(5)  { height: 25%; animation-delay: 0.15s; }
.music-wave-bars .wave-bar:nth-child(6)  { height: 50%; animation-delay: 0.25s; }
.music-wave-bars .wave-bar:nth-child(7)  { height: 35%; animation-delay: 0.08s; }
.music-wave-bars .wave-bar:nth-child(8)  { height: 55%; animation-delay: 0.18s; }
.music-wave-bars .wave-bar:nth-child(9)  { height: 40%; animation-delay: 0.3s; }
.music-wave-bars .wave-bar:nth-child(10) { height: 65%; animation-delay: 0.12s; }
.music-wave-bars .wave-bar:nth-child(11) { height: 28%; animation-delay: 0.22s; }
.music-wave-bars .wave-bar:nth-child(12) { height: 48%; animation-delay: 0.06s; }
.music-wave-bars .wave-bar:nth-child(13) { height: 58%; animation-delay: 0.16s; }
.music-wave-bars .wave-bar:nth-child(14) { height: 32%; animation-delay: 0.26s; }
.music-wave-bars .wave-bar:nth-child(15) { height: 52%; animation-delay: 0.09s; }
.music-wave-bars .wave-bar:nth-child(16) { height: 42%; animation-delay: 0.19s; }
.music-wave-bars .wave-bar:nth-child(17) { height: 62%; animation-delay: 0.03s; }
.music-wave-bars .wave-bar:nth-child(18) { height: 38%; animation-delay: 0.13s; }
.music-wave-bars .wave-bar:nth-child(19) { height: 46%; animation-delay: 0.23s; }
.music-wave-bars .wave-bar:nth-child(20) { height: 56%; animation-delay: 0.07s; }

/* 暂停时波形静止 */
.music-player:not(.playing) .music-wave-bars .wave-bar {
    animation-play-state: paused;
    opacity: 0.2;
}

/* 播放时波形活跃 */
.music-player.playing .music-wave-bars .wave-bar {
    animation-play-state: running;
    opacity: 0.7;
}

@keyframes musicWaveBar {
    0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 0.9; }
}

/* ---- 展开状态 ---- */
.music-player-expanded {
    display: none;
    width: 720px;
    max-width: calc(100vw - 48px);
    border-radius: var(--radius-xl);
    background: var(--bg-white-80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    overflow: hidden;
    animation: musicExpandIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .music-player-expanded {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
}

.music-player.expanded .music-player-collapsed {
    display: none;
}

.music-player.expanded .music-player-expanded {
    display: block;
    animation: musicExpandIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-player.collapsing .music-player-expanded {
    display: block;
    animation: musicCollapseOut 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.music-player.collapsing .music-player-collapsed {
    display: none;
}

/* 头部 */
.music-player-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 0;
    margin-bottom: 20px;
    position: relative;
}

.music-drag-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 40px;
    cursor: grab;
    transition: opacity 0.3s;
}

.music-drag-handle:active {
    cursor: grabbing;
}

.drag-line {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--text-muted);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.music-drag-handle:hover .drag-line {
    opacity: 0.6;
}

.music-close-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white-70);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
}

.music-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

[data-theme="dark"] .music-close-btn {
    background: var(--bg-black-70);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* 主体 */
.music-player-body {
    display: grid;
    grid-template-columns: 140px 1fr 200px;
    gap: 20px;
    padding: 16px 24px 20px;
    align-items: center;
}

/* 专辑封面区 */
.music-album-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-album-art {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: transform 0.5s ease;
}

.music-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.music-player.playing .music-album-art {
    animation: musicAlbumSpin 8s linear infinite;
}

@keyframes musicAlbumSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-album-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.music-player.playing .music-album-glow {
    opacity: 1;
    animation: musicGlowPulse 2s ease-in-out infinite;
}

@keyframes musicGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.music-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black-80);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.music-album-art:hover .music-play-overlay {
    opacity: 1;
}

.music-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.music-play-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.music-play-btn .material-icons {
    font-size: 28px;
    margin-left: 2px;
}

/* 光碟环 */
.music-disc-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.music-player.playing .music-disc-ring {
    opacity: 1;
    animation: musicAlbumSpin 8s linear infinite reverse;
}

.disc-svg {
    width: 100%;
    height: 100%;
    animation: musicDiscPulse 3s ease-in-out infinite;
}

@keyframes musicDiscPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* 信息区 */
.music-info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.music-track-info {
    text-align: center;
}

.music-track-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-track-artist {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* 可视化 */
.music-visualizer {
    height: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

#visualizerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 进度条 */
.music-progress-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 30px;
    text-align: center;
}

.music-progress-bar {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.music-progress-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-black-60);
    position: relative;
    overflow: visible;
    transition: height 0.2s;
}

.music-progress-bar:hover .music-progress-track {
    height: 6px;
}

[data-theme="dark"] .music-progress-track {
    background: var(--bg-white-60);
}

.music-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    position: relative;
    transition: width 0.1s linear;
}

.music-progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s;
}

.music-progress-bar:hover .music-progress-thumb {
    transform: translateY(-50%) scale(1);
}

/* 控制按钮 */
.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.music-ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white-70);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.music-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--accent);
    transform: translateY(-2px);
}

.music-ctrl-btn.active,
[data-theme="dark"] .music-ctrl-btn.active {
    color: var(--accent);
    background: var(--accent-hover-bg);
}

[data-theme="dark"] .music-ctrl-btn {
    background: var(--bg-black-70);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

[data-theme="dark"] .music-ctrl-btn:hover {
    background: rgba(30, 41, 59, 0.5);
}

.music-ctrl-btn .material-icons {
    font-size: 20px;
}

.music-ctrl-main {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.music-ctrl-main:hover {
    background: var(--accent-light);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.45);
}

.music-ctrl-main .material-icons {
    font-size: 28px;
}

.music-ctrl-sm {
    width: 30px;
    height: 30px;
}

.music-ctrl-sm .material-icons {
    font-size: 16px;
}

/* 播放列表 */
.music-playlist-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
}

.music-playlist-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--divider);
}

.music-playlist-header .material-icons {
    font-size: 16px;
    color: var(--accent);
}

.music-playlist-count {
    margin-left: auto;
    background: var(--badge-bg);
    color: var(--accent);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
}

.music-playlist-scroll {
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.music-playlist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-playlist-item {
    display: grid;
    grid-template-columns: 24px 1fr 36px 20px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.music-playlist-item:hover {
    background: var(--bg-white-70);
}

[data-theme="dark"] .music-playlist-item:hover {
    background: var(--bg-white-05);
}

.music-playlist-item.active {
    background: var(--accent-hover-bg);
}

.playlist-number {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.music-playlist-item.active .playlist-number {
    color: var(--accent);
    font-weight: 600;
}

.playlist-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.playlist-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-artist {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-duration {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* 播放指示器 */
.playlist-playing-indicator {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.music-playlist-item.active .playlist-playing-indicator {
    display: flex;
}

.music-playlist-item.active .playlist-duration {
    display: none;
}

.playlist-playing-indicator .bar {
    width: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.music-player.playing .playlist-playing-indicator .bar {
    animation: musicPlaylistBar 0.8s ease-in-out infinite;
}
.playlist-playing-indicator .bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.playlist-playing-indicator .bar:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.playlist-playing-indicator .bar:nth-child(3) { height: 8px; animation-delay: 0.4s; }

@keyframes musicPlaylistBar {
    0%, 100% { transform: scaleY(0.6); }
    50% { transform: scaleY(1); }
}

/* 底部 */
.music-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--divider);
    gap: 16px;
}

.music-volume-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.music-vol-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.music-vol-btn:hover {
    color: var(--accent);
    background: var(--bg-white-65);
}

.music-vol-btn .material-icons {
    font-size: 18px;
}

.music-volume-bar {
    flex: 1;
    max-width: 100px;
    height: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.music-volume-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-black-60);
    position: relative;
}

[data-theme="dark"] .music-volume-track {
    background: var(--bg-white-60);
}

.music-volume-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.1s;
}

.music-volume-thumb {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.3);
}

.music-extra-actions {
    display: flex;
    gap: 6px;
}

/* 动画 */
@keyframes musicSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

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

/* 响应式 */
@media (max-width: 860px) {
    .music-player-body {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }

    .music-playlist-section {
        display: none;
    }

    .music-album-art {
        width: 90px;
        height: 90px;
    }

    .music-disc-ring {
        width: 110px;
        height: 110px;
    }

    .music-player-expanded {
        width: 520px;
    }
}

@media (max-width: 640px) {
    .music-player {
        bottom: 16px;
        max-width: calc(100% - 32px);
    }

    .music-player-expanded {
        width: max-content;
    }

    .music-player-body {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px 16px 16px;
    }

    .music-album-section {
        justify-content: center;
    }

    .music-album-art {
        width: 100px;
        height: 100px;
    }

    .music-disc-ring {
        width: 120px;
        height: 120px;
    }

    .music-visualizer {
        height: 32px;
    }

    .music-player-footer {
        padding: 10px 16px 12px;
    }
}

@media (max-width: 480px) {
    .music-player-collapsed {
        padding: 8px 16px;
    }

    .music-toggle-btn {
        width: 32px;
        height: 32px;
    }

    .music-toggle-btn .material-icons {
        font-size: 18px;
    }
}
@media (max-width: 600px) {
    .f-carousel__toolbar__column.is-middle{
        visibility: hidden;
    }
}
/* ==================== 搜索结果页专属样式 ==================== */
        
        .sr-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 32px 20px 80px;
            position: relative;
            z-index: 1;
        }

        /* 搜索状态栏 */
        .sr-status-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 28px;
        }

        .sr-status-left {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .sr-status-left .btn {
            font-size: 0.8rem;
            font-weight: 400;
            border: 1px solid var(--glass-border);
            text-decoration: none;
            animation: fadeInUp 0.5s ease-out both;
        }

        .sr-status-text {
            font-size: 0.9rem;
            color: var(--text-tertiary);
        }

        .sr-status-text strong {
            color: var(--accent);
            font-weight: 700;
        }

        .sr-search-box-inline {
            position: relative;
            max-width: 400px;
            width: 100%;
        }

        .sr-search-input-inline {
            width: 100%;
            padding: 10px 40px 10px 40px;
            border-radius: 30px;
            background: var(--bg-white-70);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid var(--glass-border);
            color: var(--text-primary);
            font-family: var(--font-sans);
            font-size: 0.9rem;
            outline: none;
            transition: all 0.3s;
        }

        [data-theme="dark"] .sr-search-input-inline {
            background: var(--bg-black-75);
            border-color: rgba(255, 255, 255, 0.1);
            color: #f1f5f9;
        }

        .sr-search-input-inline:focus {
            border-color: var(--accent-light);
            box-shadow: 0 0 0 3px var(--accent-glow);
            background: var(--bg-white-85);
        }

        .sr-search-input-inline::placeholder {
            color: var(--text-muted);
        }

        .sr-search-icon-inline {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            color: var(--accent);
            pointer-events: none;
            z-index: 1;
        }

        .sr-search-clear-inline {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            padding: 0;
        }

        .sr-search-clear-inline:hover {
            background: var(--bg-black-60);
            color: var(--text-primary);
        }

        /* 主体布局 */
        .sr-layout {
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 28px;
            align-items: start;
        }

        /* 左侧过滤面板 */
        .sr-sidebar {
            position: sticky;
            top: 100px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .sr-filter-card {
            background: var(--bg-white-70);
            backdrop-filter: blur(22px) saturate(180%);
            -webkit-backdrop-filter: blur(22px) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 20px;
            box-shadow: var(--glass-shadow);
            transition: background 0.3s, box-shadow 0.3s;
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.6s ease-out both;
        }

        .sr-result-card a {
            text-decoration: none;
            color: inherit;
        }

        .sr-filter-card::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: var(--radius-lg);
            pointer-events: none;
            z-index: 5;
            box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
        }

        [data-theme="dark"] .sr-filter-card {
            background: var(--bg-slate-70);
            box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(55, 65, 85, 0.3) inset;
        }

        [data-theme="dark"] .sr-filter-card::after {
            box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        }

        .sr-filter-title {
            font-family: var(--font-display);
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            z-index: 3;
        }

        .sr-filter-title .material-icons {
            font-size: 18px;
            color: var(--accent);
        }

        /* 分类过滤 */
        .sr-filter-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
            position: relative;
            z-index: 3;
        }

        .sr-filter-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            border-radius: 12px;
            font-size: 0.82rem;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            background: transparent;
            border: 1px solid transparent;
            transition: all 0.2s;
            cursor: pointer;
        }

        [data-theme="dark"] .sr-filter-item {
            color: #cbd5e1;
        }

        .sr-filter-item:hover {
            background: var(--bg-white-65);
            border-color: var(--glass-border);
            color: var(--text-primary);
        }

        .sr-filter-item.active {
            background: var(--accent-hover-bg);
            border-color: var(--accent-light);
            color: var(--accent);
        }

        .sr-filter-item .material-icons {
            font-size: 18px;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .sr-filter-item.active .material-icons {
            opacity: 1;
        }

        .sr-filter-count {
            margin-left: auto;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-muted);
            background: var(--bg-black-05);
            padding: 2px 8px;
            border-radius: 10px;
            min-width: 24px;
            text-align: center;
        }

        [data-theme="dark"] .sr-filter-count {
            background: var(--bg-white-05);
            color: #94a3b8;
        }

        .sr-filter-item.active .sr-filter-count {
            background: var(--accent);
            color: #fff;
        }

        /* 时间过滤 */
        .sr-time-filters {
            display: flex;
            flex-direction: column;
            gap: 4px;
            position: relative;
            z-index: 3;
        }

        .sr-time-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
            border: 1px solid transparent;
        }

        [data-theme="dark"] .sr-time-item {
            color: #cbd5e1;
        }

        .sr-time-item:hover {
            background: var(--bg-white-65);
            border-color: var(--glass-border);
            color: var(--accent);
        }

        .sr-time-item.active {
            background: var(--accent-hover-bg);
            border-color: var(--accent-light);
            color: var(--accent);
        }

        .sr-time-item .material-icons {
            font-size: 16px;
        }

        /* 标签过滤 */
        .sr-tag-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            position: relative;
            z-index: 3;
        }

        .sr-tag-filter {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.72rem;
            font-weight: 500;
            background: var(--bg-white-60);
            border: 1px solid var(--glass-border);
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        [data-theme="dark"] .sr-tag-filter {
            background: var(--bg-white-05);
            color: #cbd5e1;
        }

        .sr-tag-filter:hover {
            background: var(--bg-white-75);
            border-color: var(--accent-light);
            color: var(--accent);
        }

        .sr-tag-filter.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

        /* 右侧结果区 */
        .sr-results-area {
            display: flex;
            flex-direction: column;
            gap: 16px;
            min-width: 0;
        }

        .sr-results-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            animation: fadeInUp 0.5s ease-out both;
            animation-delay: 0.1s;
        }

        .sr-results-info {
            font-size: 0.85rem;
            color: var(--text-tertiary);
        }

        .sr-results-info strong {
            color: var(--accent);
            font-weight: 700;
        }

        .sr-results-info .sr-keyword {
            color: var(--text-primary);
            font-weight: 600;
            background: var(--accent-glow);
            padding: 2px 8px;
            border-radius: 6px;
        }

        .sr-sort-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sr-sort-label {
            font-size: 0.78rem;
            color: var(--text-muted);
        }

        .sr-sort-select {
            padding: 7px 14px;
            border-radius: 20px;
            background: var(--bg-white-70);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            color: var(--text-secondary);
            font-family: var(--font-sans);
            font-size: 0.78rem;
            outline: none;
            cursor: pointer;
            transition: all 0.3s;
        }

        [data-theme="dark"] .sr-sort-select {
            background: var(--bg-black-75);
            color: #cbd5e1;
        }

        .sr-sort-select:focus {
            border-color: var(--accent-light);
            box-shadow: 0 0 0 2px var(--accent-glow);
        }

        /* ==================== 搜索结果列表 V2 ==================== */

        .sr-results-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sr-result-card {
            position: relative;
            display: grid;
            grid-template-columns: 72px 1fr;
            gap: 0;
            background: var(--bg-white-70);
            backdrop-filter: blur(22px) saturate(180%);
            -webkit-backdrop-filter: blur(22px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: var(--radius-lg);
            box-shadow: 
                0 8px 24px -8px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.4) inset,
                0 0 60px rgba(79, 70, 229, 0.03);
            overflow: hidden;
            transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
            text-decoration: none;
            color: inherit;
            animation: fadeInUp 0.6s ease-out both;
        }

        .sr-result-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 50%, transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease, width 0.3s ease;
            z-index: 2;
        }

        .sr-result-card::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: var(--radius-lg);
            pointer-events: none;
            z-index: 5;
            box-shadow: inset 0 1px 1px rgba(255, 255, 245, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
        }

        [data-theme="dark"] .sr-result-card {
            background: var(--bg-slate-70);
            border-color: rgba(148, 163, 184, 0.15);
            box-shadow: 
                0 10px 28px -10px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(55, 65, 85, 0.25) inset,
                0 0 60px rgba(129, 140, 248, 0.04);
        }

        [data-theme="dark"] .sr-result-card::after {
            box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
        }

        .sr-result-card:hover {
            transform: translateY(-3px) translateX(2px);
            background: var(--bg-white-80);
            box-shadow: 
                0 16px 40px -10px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset,
                0 0 80px rgba(79, 70, 229, 0.06);
        }

        .sr-result-card:hover::before {
            opacity: 1;
            width: 4px;
        }

        [data-theme="dark"] .sr-result-card:hover {
            background: var(--bg-slate-80-2);
            box-shadow: 
                0 18px 44px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(100, 116, 139, 0.35) inset,
                0 0 80px rgba(129, 140, 248, 0.08);
        }

        /* 左侧日期区块 */
        .sr-result-date-block {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px 14px;
            background: var(--bg-white-60);
            border-right: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            z-index: 3;
            gap: 2px;
            min-width: 0;
            transition: background 0.3s ease;
        }

        [data-theme="dark"] .sr-result-date-block {
            background: rgba(0, 0, 0, 0.62);
            border-right-color: rgba(148, 163, 184, 0.1);
        }

        .sr-result-card:hover .sr-result-date-block {
            background: var(--bg-indigo-05);
        }

        [data-theme="dark"] .sr-result-card:hover .sr-result-date-block {
            background: rgba(129, 140, 248, 0.58);
        }

        .sr-result-day {
            font-family: var(--font-display);
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent);
            line-height: 1;
            transition: transform 0.3s ease;
        }

        .sr-result-card:hover .sr-result-day {
            transform: scale(1.1);
        }

        .sr-result-month {
            font-size: 0.65rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .sr-result-year {
            font-size: 0.6rem;
            color: var(--text-tertiary);
            font-weight: 500;
        }

        /* 右侧内容区 */
        .sr-result-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 18px 22px 18px 20px;
            position: relative;
            z-index: 3;
            min-width: 0;
        }

        /* 顶部元信息行 */
        .sr-result-meta-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .sr-result-cat-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.68rem;
            font-weight: 600;
            background: var(--badge-bg);
            color: var(--accent);
            border: 1px solid var(--glass-border);
            backdrop-filter: blur(8px);
            transition: all 1s ease;
        }

        .sr-result-cat-badge .material-icons {
            font-size: 13px;
        }

        .sr-result-card:hover .sr-result-cat-badge {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
        }

        .sr-result-meta-dot {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: var(--text-muted);
            opacity: 0.5;
            flex-shrink: 0;
        }

        .sr-result-read-time {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.68rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .sr-result-read-time .material-icons {
            font-size: 13px;
            opacity: 0.6;
        }

        /* 标题 */
        .sr-result-title {
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.4;
            margin: 0;
            transition: color 0.8s ease;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .sr-result-card:hover .sr-result-title {
            color: var(--accent);
        }

        /* 搜索高亮 */
        .sr-highlight {
    background: linear-gradient(180deg, transparent 55%, rgba(79, 70, 229, 0.18) 55%, rgba(79, 70, 229, 0.18) 85%, transparent 85%);
    color: var(--accent);
    font-weight: 700;
    padding: 0 2px;
    margin: 0 -2px;
}

        [data-theme="dark"] .sr-highlight {
            background: rgba(129, 140, 248, 0.72);
            color: var(--accent-light);
        }

        /* 摘要 */
        .sr-result-excerpt {
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.7;
            margin: 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            opacity: 0.9;
        }

        /* 底部标签和缩略图 */
        .sr-result-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 4px;
            padding-top: 10px;
            border-top: 1px solid var(--divider);
        }

        .sr-result-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            flex: 1;
            min-width: 0;
        }

        .sr-result-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 10px;
            border-radius: 16px;
            font-size: 0.65rem;
            font-weight: 500;
            background: var(--bg-white-60);
            border: 1px solid var(--glass-border);
            color: var(--text-tertiary);
            text-decoration: none;
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        [data-theme="dark"] .sr-result-tag {
            background: var(--bg-white-05);
            color: #94a3b8;
        }

        .sr-result-tag::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--accent);
            opacity: 0;
            transition: opacity 0.25s ease;
            z-index: -1;
            border-radius: inherit;
        }

        .sr-result-tag:hover {
            color: #fff;
            border-color: var(--accent);
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
        }

        .sr-result-tag:hover::before {
            opacity: 1;
        }

        .sr-result-tag .material-icons {
            font-size: 11px;
            opacity: 0.7;
        }

        /* 右侧缩略图（小） */
        .sr-result-thumb {
            flex: 0 0 25%;
            height: 75px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            position: relative;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .sr-result-thumb.mobile-thumb {
            flex:auto;
            height: 120px;
            display: none;
        }

        .sr-result-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
            display: block;
        }

        .sr-result-card:hover .sr-result-thumb {
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
            transform: scale(1.03);
        }

        .sr-result-card:hover .sr-result-thumb img {
            transform: scale(1.1);
        }

        /* 悬停时的箭头指示 */
        .sr-result-arrow-hint {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%) translateX(8px);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            color: var(--accent);
            z-index: 4;
        }

        .sr-result-arrow-hint .material-icons {
            font-size: 20px;
        }

        .sr-result-card:hover .sr-result-arrow-hint {
            opacity: 0.5;
            transform: translateY(-50%) translateX(0);
        }

        /* 序号装饰 */
        .sr-result-index {
            position: absolute;
            top: 12px;
            right: 16px;
            font-family: var(--font-display);
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent);
            opacity: 0.08;
            line-height: 1;
            z-index: 1;
            pointer-events: none;
            transition: opacity 0.3s ease;
            user-select: none;
        }

        .sr-result-card:hover .sr-result-index {
            opacity: 0.16;
        }

        [data-theme="dark"] .sr-result-index {
            opacity: 0.1;
        }

        [data-theme="dark"] .sr-result-card:hover .sr-result-index {
            opacity: 0.2;
        }

        /* 响应式 */
        @media (max-width: 768px) {
            .sr-result-card {
                grid-template-columns: 60px 1fr;
            }

            .sr-result-date-block {
                padding: 14px 10px;
            }

            .sr-result-day {
                font-size: 1.4rem;
            }

            .sr-result-body {
                padding: 14px 16px 14px 14px;
                gap: 8px;
            }

            .sr-result-title {
                font-size: 1rem;
            }

            .sr-result-excerpt {
                font-size: 0.78rem;
                -webkit-line-clamp: 2;
            }

            .sr-result-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .sr-result-thumb {
                width: 100%;
                height: 120px;
                flex: auto;
            }

            .sr-result-index {
                font-size: 2rem;
                top: 0;
            }
        }

        @media (max-width: 480px) {
            .sr-result-card {
                grid-template-columns: 1fr;
            }

            .sr-result-date-block {
                flex-direction: row;
                justify-content: flex-start;
                gap: 8px;
                padding: 10px 16px;
                border-right: none;
                border-bottom: 1px solid var(--divider);
            }

            .sr-result-day {
                font-size: 1.1rem;
            }

            .sr-result-month,
            .sr-result-year {
                font-size: 0.6rem;
            }

            .sr-result-body {
                padding: 14px 16px;
            }

            .sr-result-thumb.mobile-thumb {
                display: block;
            }

            .sr-result-thumb {
                display: none;
            }

            .sr-result-meta-row {
                gap: 8px;
            }

            .sr-result-title {
                font-size: 0.95rem;
            }

            .sr-result-excerpt {
                font-size: 0.75rem;
            }
        }

        /* 相关搜索 */
        .sr-related-section {
            margin-top: 8px;
        }

        .sr-related-title {
            font-family: var(--font-display);
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sr-related-title .material-icons {
            font-size: 20px;
            color: var(--accent);
        }

        .sr-related-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .sr-related-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 500;
            background: var(--bg-white-70);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.35);
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.25s;
            animation: fadeInUp 0.5s ease-out both;
            animation-delay: 0.4s;
        }

        [data-theme="dark"] .sr-related-tag {
            background: var(--bg-black-70);
            border-color: rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
        }

        .sr-related-tag:hover {
            background: var(--bg-white-85);
            border-color: var(--accent-light);
            color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(79, 70, 229, 0.15);
        }

        .sr-related-tag .material-icons {
            font-size: 16px;
        }

        /* 空状态 */
        .sr-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
            background: var(--bg-white-65);
            backdrop-filter: blur(20px);
            border-radius: var(--radius-lg);
            border: 1px solid rgba(255, 255, 255, 0.3);
            animation: fadeInUp 0.5s ease-out both;
        }

        [data-theme="dark"] .sr-empty-state {
            background: var(--bg-slate-70);
            border-color: rgba(148, 163, 184, 0.15);
        }

        .sr-empty-state .material-icons {
            font-size: 72px;
            color: var(--text-muted);
            opacity: 0.3;
            margin-bottom: 20px;
        }

        .sr-empty-state h3 {
            font-family: var(--font-display);
            font-size: 1.4rem;
            color: var(--text-primary);
            margin: 0 0 8px;
        }

        .sr-empty-state p {
            font-size: 0.9rem;
            color: var(--text-tertiary);
            margin: 0 0 24px;
        }

        .sr-empty-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        /* 分页 */
        .sr-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 32px;
            flex-wrap: wrap;
        }

        .sr-page-btn {
            min-width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.25s;
            border: 1px solid var(--glass-border);
            background: var(--bg-white-70);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: var(--text-secondary);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            cursor: pointer;
        }

        .sr-page-btn:hover {
            background: rgba(255, 255, 255, 0.42);
            border-color: var(--accent-light);
            color: var(--accent);
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(79, 70, 229, 0.15);
        }

        [data-theme="dark"] .sr-page-btn {
            background: var(--bg-black-80);
            border-color: rgba(255, 255, 255, 0.1);
            color: #cbd5e1;
        }

        [data-theme="dark"] .sr-page-btn:hover {
            background: rgba(30, 41, 59, 0.6);
            color: var(--accent);
        }

        .sr-page-btn.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
            box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
        }

        .sr-page-btn .material-icons {
            font-size: 20px;
        }

        /* 响应式 */
        @media (max-width: 960px) {
            .sr-layout {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .sr-sidebar {
                position: static;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 16px;
            }

            .sr-filter-card:first-child {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 768px) {
            .sr-result-content {
                padding: 16px 18px;
                gap: 14px;
            }

            .sr-result-title {
                font-size: 0.95rem;
            }

            .sr-result-excerpt {
                font-size: 0.78rem;
                -webkit-line-clamp: 2;
            }
        }

        @media (max-width: 640px) {
            .sr-wrapper {
                padding: 20px 12px 60px;
            }

            .sr-status-bar {
                flex-direction: column;
                align-items: flex-start;
            }

            .sr-search-box-inline {
                max-width: 100%;
            }

            .sr-sidebar {
                grid-template-columns: 1fr;
            }

            .sr-filter-card:first-child {
                grid-column: 1;
            }

            .sr-result-content {
                flex-direction: column;
                gap: 12px;
            }

            .sr-result-readtime {
                margin-left: 0;
            }
        }
        /* ============================================================
   Bilibili 视频卡片
   ============================================================ */

.bilibili-card {
    --bili-radius: 16px;
    --bili-cover-ratio: 56.25%; /* 16:9 */

    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
    border-radius: var(--bili-radius);
    background: var(--card-bg, rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1.5rem 0;
    max-width: 100%;
}

.bilibili-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* ---------- 封面区域 ---------- */
.bili-cover-wrap {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: var(--bili-cover-ratio);
    overflow: hidden;
    border-radius: var(--bili-radius) var(--bili-radius) 0 0;
    text-decoration: none;
    background: var(--bg-secondary, rgba(0, 0, 0, 0.2));
}

.bili-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bilibili-card:hover .bili-cover {
    transform: scale(1.05);
}

/* 播放按钮遮罩 */
.bili-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bilibili-card:hover .bili-play-overlay {
    opacity: 1;
}

.bili-play-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent, #fb7299);
    font-size: 32px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.bili-cover-wrap:hover .bili-play-icon {
    transform: scale(1.1);
    background: #fff;
}

/* 时长标签 */
.bili-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    pointer-events: none;
}

/* ---------- 内容区域 ---------- */
.bili-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.2rem 1.2rem;
}

/* UP主信息 */
.bili-up {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bili-up-face {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
}

.bili-up-name {
    font-size: 0.8rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-weight: 500;
}

/* 标题 */
.bili-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary, #fff);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 元数据 */
.bili-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.2rem;
    margin-top: 0.2rem;
}

.bili-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.55));
}

.bili-meta .material-icons {
    font-size: 1rem !important;
    opacity: 0.8;
}

/* 错误提示 */
.bili-error {
    padding: 1rem 1.2rem;
    margin: 0;
    font-size: 0.85rem;
    color: var(--error, #ff6b6b);
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .bili-body {
        padding: 0.85rem 1rem 1rem;
    }
    .bili-title {
        font-size: 0.95rem;
    }
    .bili-meta {
        gap: 0.5rem 0.9rem;
    }
    .bili-meta > span {
        font-size: 0.72rem;
    }
}