/* ==================== notes 页面专属样式 ====================
   全局基础样式已移至 base.css
   本文件只包含 notes 页面的独特设计
   符合 Liquid Glassmorphism + Tech Glow 设计系统
   ==================== */

/* 页面容器增加顶部间距，避免被导航栏遮挡 */
body.page-template-custom-notes {
    padding-top: var(--header-height);

    /* 主题色映射 - 用于组件 */
    --theme-primary: var(--notes-primary);
    --theme-secondary: var(--notes-secondary);
    --theme-gradient: var(--notes-gradient);

    /* ========== 中性边框 - 统一使用设计系统 ========== */
    --theme-border: var(--border-color);
    --theme-border-light: var(--slate-border);

    /* ========== 主题背景 - 带主题色调的渐变 ========== */
    --theme-hero-bg: color-mix(in srgb, var(--bg-secondary) 93%, var(--theme-primary) 7%);
    --theme-filter-bg: color-mix(in srgb, var(--bg-secondary) 95%, var(--theme-primary) 5%);
    --theme-card-bg: color-mix(in srgb, var(--bg-secondary) 94%, var(--theme-primary) 6%);

    /* ========== 主题悬停效果 ========== */
    --theme-hover-bg: color-mix(in srgb, var(--theme-primary) 12%, transparent);
    --theme-hover-border: color-mix(in srgb, var(--theme-primary) 35%, transparent);

    /* ========== 主题阴影和光晕 ========== */
    --theme-glow: 0 0 30px rgba(var(--notes-primary-rgb, 187, 107, 217), 0.15);
    --theme-glow-strong: 0 10px 24px rgba(var(--notes-primary-rgb, 187, 107, 217), 0.25);
    --theme-shadow-color: rgba(var(--notes-primary-rgb, 187, 107, 217), 0.08);
}

#main-content {
    padding-top: var(--header-height) !important;
}

/* ==================== Hero 区域 ==================== */
.notes-hero {
    background: var(--theme-hero-bg);
    padding: 48px var(--space-2xl) 40px;
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) auto;
    border: 1px solid var(--theme-border-light);
    box-shadow: var(--shadow-xl), var(--shadow-inset-subtle);
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: var(--z-base);
}

.notes-hero::before,
.notes-hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

.notes-hero::before {
    inset: auto auto -60px 60%;
    width: clamp(220px, 60vw, 420px);
    height: clamp(220px, 60vw, 420px);
    background: radial-gradient(circle at center, rgba(187, 107, 217, 0.35), transparent 70%);
    filter: blur(10px);
    opacity: 0.5;
    animation: hero-breathe 8s ease-in-out infinite alternate;
}

.notes-hero::after {
    inset: -120px -80px auto auto;
    width: clamp(200px, 50vw, 360px);
    height: clamp(200px, 50vw, 360px);
    background: radial-gradient(circle at center, rgba(155, 81, 224, 0.25), transparent 65%);
    filter: blur(10px);
    opacity: 0.5;
    animation: hero-breathe 10s ease-in-out infinite alternate-reverse;
}

@keyframes hero-breathe {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate3d(20px, -20px, 0) scale(1.1);
        opacity: 0.7;
    }
}

.notes-hero>* {
    position: relative;
    z-index: 1;
}

.notes-hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: var(--text-xs);
    color: var(--text-slate);
    margin-bottom: var(--space-xs);
}

.notes-hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.notes-hero__description {
    max-width: 640px;
    margin: 0 auto var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.8;
}

.notes-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.notes-hero__stat {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--glass-bg-78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--slate-border);
    text-align: left;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-inset-white-80), var(--shadow-neutral-sm);
}

.notes-hero__stat:hover {
    background: var(--glass-bg-88);
    transform: translateY(-2px);
    box-shadow: var(--shadow-inset-white-90), var(--shadow-neutral-lg);
}

.notes-hero__stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.notes-hero__stat-value {
    margin-top: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== 筛选面板 ==================== */
.notes-hero__panel {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--slate-border-light);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.notes-filter {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
    background: var(--theme-filter-bg);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    box-shadow: var(--shadow-md);
}

.notes-filter__chips {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    flex: 1;
    min-width: 240px;
}

.notes-filter .filter-btn.chip {
    padding: 0.55rem 1.25rem;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 72px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.notes-filter .filter-btn.chip:hover {
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 70%, transparent) !important;
    color: var(--theme-primary);
    background: var(--theme-hover-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 45%, transparent);
}

.notes-filter .filter-btn.chip.active,
.notes-filter__chips .filter-btn.chip.active,
button.filter-btn.chip.active[data-filter] {
    background: var(--theme-gradient, var(--notes-gradient)) !important;
    background-color: var(--theme-primary, var(--notes-primary)) !important;
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 55%, transparent) !important;
    border-style: solid;
    border-width: 1.5px;
    color: var(--text-inverse, #fff) !important;
    box-shadow: var(--shadow-lg), 0 0 0 1.5px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 45%, transparent), var(--theme-glow-strong) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.notes-filter .filter-btn:focus {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

.notes-filter .filter-btn:focus:not(:focus-visible) {
    outline: none;
}

.notes-filter .filter-btn:focus-visible {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

.notes-filter__sort {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-left: var(--space-md);
    border-left: 1px solid var(--slate-border-medium);
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: var(--z-dropdown);
}

.notes-filter__sort .sort-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.notes-filter__sort .sort-icon {
    width: 14px;
    height: 14px;
    color: var(--text-tertiary);
}

.notes-filter .sort-select {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.sort-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 0;
    overflow: visible;
    z-index: var(--z-dropdown);
}

.sort-select-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    border: 0;
    appearance: none;
    display: none;
}

.sort-select__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-neutral-xs);
    min-width: 0;
}

.sort-select__trigger:hover {
    color: var(--theme-primary);
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 65%, transparent);
    box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 40%, transparent);
}

.sort-select.is-open .sort-select__trigger {
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 70%, transparent);
    color: var(--theme-primary);
    box-shadow: var(--shadow-md), 0 0 0 1.5px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 45%, transparent);
}

.sort-select__chevron {
    color: var(--text-tertiary);
    transition: transform 0.25s ease;
}

.sort-select.is-open .sort-select__chevron {
    transform: rotate(180deg);
    color: var(--theme-primary);
}

.sort-select__menu {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    min-width: 180px;
    padding: var(--space-xs);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: var(--z-tooltip);
}

.sort-select.is-open .sort-select__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-select__option {
    border: none;
    background: transparent;
    text-align: left;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sort-select__option:hover,
.sort-select__option:focus {
    background: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 14%, transparent);
    color: var(--theme-primary, var(--notes-primary));
}

.sort-select__option.is-active {
    background: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 18%, transparent);
    color: var(--theme-primary, var(--notes-primary));
    font-weight: 700;
}

.sort-select__option-icon {
    font-size: 1rem;
    display: inline-flex;
}

.sort-select__option-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

.sort-select__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.sort-select__label-icon {
    font-size: 1rem;
    display: inline-flex;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
    gap: var(--space-3xl);
    align-items: start;
}

.posts-main {
    min-width: 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

/* ==================== 文章卡片 - 使用统一卡片系统 ==================== */
.post-card {
    /* 玻璃磨砂效果 */
    background: var(--glass-bg-80);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-30);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);

    overflow: hidden;
    display: flex;
    flex-direction: column;

    transition: all var(--transition-bounce);
    position: relative;
}

/* 渐变边框效果，与 tech 同步 */
.post-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--theme-gradient);
    -webkit-mask: linear-gradient(rgb(255 255 255) 0 0) content-box, linear-gradient(rgb(255 255 255) 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(rgb(255 255 255) 0 0) content-box, linear-gradient(rgb(255 255 255) 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

/* 不支持backdrop-filter的降级方案 */
@supports not (backdrop-filter: blur(20px)) {
    .post-card {
        background: var(--bg-secondary);
    }
}

.post-card[hidden] {
    display: none;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--theme-glow);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card.featured {
    border-color: var(--theme-primary);
    box-shadow: var(--shadow-xl), var(--theme-glow);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--bg-tertiary);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--theme-gradient);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.post-category {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--theme-gradient);
    background-color: var(--theme-primary, var(--notes-primary));
    color: var(--text-inverse, #fff);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 55%, transparent);
    box-shadow: var(--theme-glow-strong), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent);
    z-index: var(--z-base);
}

.post-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    font-weight: 700;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-title a:hover {
    color: var(--theme-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-height: calc(1.6 * 3 * var(--text-base));
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.post-date,
.reading-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.post-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-left: auto;
}

.tag {
    background: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 12%, transparent);
    color: var(--theme-primary, var(--notes-primary));
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all var(--transition-base);
    border: 1px solid color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 30%, transparent);
}

.tag:hover {
    background: var(--theme-primary, var(--notes-primary));
    color: var(--text-inverse, #fff);
    border-color: transparent;
    box-shadow: var(--shadow-sm), 0 6px 18px rgba(var(--notes-primary-rgb, 187, 107, 217), 0.25);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background: linear-gradient(135deg, rgba(251, 248, 255, 0.5), rgba(245, 237, 255, 0.5));
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(187, 107, 217, 0.3);
}

.empty-state::before {
    content: '🔍';
    display: block;
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state p {
    font-size: var(--text-xl);
    color: var(--text-slate-muted);
    font-family: var(--font-serif);
    margin-bottom: var(--space-md);
}

.empty-state-hint {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

.empty-state-actions {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state-btn {
    padding: var(--space-sm) var(--space-lg);
    background: white;
    border: 1px solid var(--theme-primary);
    color: var(--theme-primary);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}

.empty-state-btn:hover {
    background: var(--theme-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== 侧边栏 ==================== */
.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-widget {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.sidebar-widget--books,
.sidebar-widget--accent {
    background: linear-gradient(135deg, rgba(var(--notes-primary-rgb), 0.15), rgba(var(--notes-secondary-rgb), 0.15));
    border-color: rgba(var(--notes-primary-rgb), 0.35);
    box-shadow: 0 25px 60px rgba(var(--notes-primary-rgb), 0.18);
}

.sidebar-widget--accent .tag-item {
    background: var(--glass-bg-85);
    border: 1px solid var(--glass-border-40);
    color: var(--notes-primary);
    box-shadow: 0 8px 18px rgba(var(--notes-primary-rgb), 0.18);
}

.widget-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.widget-title::after {
    content: '';
    flex: 1;
    height: 1px;
    margin-left: var(--space-sm);
    background: var(--gradient-fade-dark);
}

/* 书籍列表 */
.books-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.books-loading,
.books-empty,
.books-error {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.books-error {
    background: color-mix(in srgb, var(--color-error, var(--theme-primary)) 8%, transparent);
    color: var(--color-error, var(--theme-primary));
}

.book-card-simple {
    position: relative;
    display: flex;
    padding: calc(var(--space-md) * 0.9) var(--space-md);
    border-radius: calc(var(--radius-lg) - 4px);
    text-decoration: none;
    background: var(--theme-card-bg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    align-items: flex-start;
    gap: var(--space-md);
}

.sidebar-widget--books .books-list .book-card-simple:first-child {
    background: linear-gradient(135deg, rgba(187, 107, 217, 0.25), rgba(155, 81, 224, 0.25));
}

.book-card-simple:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.book-card-simple:focus {
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

.book-card-simple:focus:not(:focus-visible) {
    outline: none;
}

.book-cover {
    width: 60px;
    height: 84px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, color-mix(in srgb, var(--notes-primary) 8%, var(--bg-secondary)), color-mix(in srgb, var(--notes-secondary) 8%, var(--bg-secondary)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-inset-white-70);
    object-fit: cover;
    padding: 0;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 0;
}

.book-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.book-author {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.book-rating {
    font-size: var(--text-xs);
    margin-top: auto;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--theme-hover-border, color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent));
    background: var(--bg-secondary);
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.view-all-link:hover,
.view-all-link:focus-visible {
    background: var(--theme-gradient, linear-gradient(135deg, var(--theme-primary, var(--notes-primary)), var(--theme-secondary, var(--notes-secondary)))));
    background-color: var(--theme-primary, var(--notes-primary));
    color: var(--text-inverse, #fff);
    border-color: transparent;
    box-shadow: var(--shadow-xl), var(--theme-glow-strong);
    transform: translateY(-2px);
}

.view-all-link .count {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.view-all-link__icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-base);
}

.view-all-link:hover .view-all-link__icon {
    transform: translateX(4px);
}

/* 书摘精选 */
.sidebar-widget--books .widget-title,
.sidebar-widget--accent .widget-title {
    color: var(--theme-primary);
}

.quote-card {
    background: var(--theme-card-bg);
    border-radius: calc(var(--radius-lg) - 4px);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.quote-text {
    margin: 0;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
    font-family: var(--font-serif);
    quotes: "" " " "" "'" "'";
}

.quote-text::before {
    content: open-quote;
    color: var(--theme-primary);
    opacity: 0.5;
}

.quote-text::after {
    content: close-quote;
    color: var(--theme-primary);
    opacity: 0.5;
}

.quote-source {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-style: italic;
    text-align: right;
}

.quote-refresh {
    align-self: flex-start;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--theme-hover-border, color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent));
    background: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 10%, transparent);
    color: var(--theme-primary, var(--notes-primary));
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-refresh:hover,
.quote-refresh:focus-visible {
    background: var(--theme-gradient, linear-gradient(135deg, var(--theme-primary, var(--notes-primary)), var(--theme-secondary, var(--notes-secondary)))));
    color: var(--text-inverse, #fff);
    border-color: transparent;
    box-shadow: var(--shadow-md), var(--theme-glow);
    transform: translateY(-1px);
}

.quote-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 标签云 */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag-item {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--bg-secondary) 85%, var(--theme-primary) 15%);
    color: var(--theme-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.tag-item:hover {
    background: color-mix(in srgb, var(--bg-secondary) 70%, var(--theme-primary) 30%);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--theme-primary) 35%, transparent);
}

.tag-loading,
.tag-empty {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-tertiary);
    font-size: var(--text-lg);
}

/* ==================== 暗色模式 ==================== */
@media (prefers-color-scheme: dark) {
    .notes-hero__stat {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .notes-hero__stat:hover {
        background: rgba(0, 0, 0, 0.4);
    }

    .post-category {
        background: var(--theme-gradient);
        background-color: var(--theme-primary, var(--notes-primary));
        color: var(--text-inverse, #fff);
        border: 1px solid color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 55%, transparent);
        box-shadow: var(--theme-glow-strong), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent);
    }

    .tag {
        background: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 14%, transparent);
        color: var(--theme-primary, var(--notes-primary));
        border: 1px solid color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 30%, transparent);
    }

    .tag:hover {
        background: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 24%, transparent);
        color: var(--text-inverse, #fff);
        border-color: transparent;
        box-shadow: var(--shadow-sm), 0 6px 18px rgba(var(--notes-primary-rgb, 187, 107, 217), 0.25);
    }
}

[data-theme='dark'] .post-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(71, 85, 105, 0.4);
}

[data-theme='dark'] .post-card:hover {
    background: rgba(30, 41, 59, 0.85);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(187, 107, 217, 0.15);
}

[data-theme='dark'] .post-category,
body[data-theme='dark'] .post-category {
    background: linear-gradient(135deg,
            rgba(var(--notes-primary-rgb, 187, 107, 217), 0.35),
            rgba(var(--notes-secondary-rgb, 155, 81, 224), 0.35));
    box-shadow: 0 4px 12px rgba(var(--notes-primary-rgb, 187, 107, 217), 0.25);
    border: 1px solid color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 55%, transparent);
}

[data-theme='dark'] .sidebar-widget--accent .tag-item {
    background: rgba(187, 107, 217, 0.18);
    border-color: rgba(187, 107, 217, 0.3);
    color: rgba(245, 230, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

[data-theme='dark'] .tag-item {
    background: color-mix(in srgb, var(--bg-dark-secondary) 80%, var(--theme-primary) 20%);
    color: var(--theme-secondary);
    border-color: color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

[data-theme='dark'] .tag-item:hover {
    background: color-mix(in srgb, var(--bg-dark-secondary) 65%, var(--theme-primary) 35%);
    border-color: color-mix(in srgb, var(--theme-primary) 45%, transparent);
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .tag-loading,
[data-theme='dark'] .tag-empty {
    color: rgba(148, 163, 184, 0.7);
}

[data-theme='dark'] .quote-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.85));
    border-color: rgba(71, 85, 105, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

[data-theme='dark'] .quote-card:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .quote-text {
    color: rgba(226, 232, 240, 0.92);
}

[data-theme='dark'] .quote-text::before,
[data-theme='dark'] .quote-text::after {
    color: rgba(199, 142, 224, 0.6);
}

[data-theme='dark'] .quote-source {
    color: rgba(148, 163, 184, 0.75);
}

[data-theme='dark'] .quote-refresh {
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 45%, transparent);
    background: rgba(51, 65, 85, 0.4);
    color: rgba(199, 142, 224, 0.95);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .quote-refresh:hover,
[data-theme='dark'] .quote-refresh:focus-visible {
    background: var(--theme-gradient, linear-gradient(135deg, var(--theme-primary, var(--notes-primary)), var(--theme-secondary, var(--notes-secondary)))));
    color: var(--text-inverse, #fff);
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 60%, transparent);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55), var(--theme-glow-strong);
}

/* 暗色模式 - 侧边栏 */
[data-theme='dark'] .sidebar-widget {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.4);
}

[data-theme='dark'] .sidebar-widget:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .sidebar-widget--books,
[data-theme='dark'] .sidebar-widget--accent {
    background: linear-gradient(135deg, rgba(30, 25, 40, 0.85), rgba(25, 18, 35, 0.85));
    border-color: rgba(187, 107, 217, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .widget-title::after {
    background: linear-gradient(90deg, rgba(187, 107, 217, 0.15), transparent);
}

[data-theme='dark'] .book-card-simple {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.85));
    border-color: rgba(71, 85, 105, 0.5);
}

[data-theme='dark'] .sidebar-widget--books .books-list .book-card-simple:first-child {
    background: linear-gradient(135deg, rgba(50, 30, 60, 0.9), rgba(40, 25, 50, 0.85));
    border-color: rgba(187, 107, 217, 0.5);
}

[data-theme='dark'] .book-card-simple:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .book-cover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9), rgba(71, 85, 105, 0.9));
    box-shadow: inset 0 0 10px rgba(187, 107, 217, 0.1);
}

[data-theme='dark'] .book-title {
    color: rgba(248, 250, 252, 0.95);
}

[data-theme='dark'] .book-author {
    color: rgba(203, 213, 225, 0.85);
}

[data-theme='dark'] .view-all-link {
    background: rgba(51, 65, 85, 0.4);
    background-color: rgba(51, 65, 85, 0.4);
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent);
    color: rgba(199, 142, 224, 0.95);
}

[data-theme='dark'] .view-all-link:hover,
[data-theme='dark'] .view-all-link:focus-visible {
    background: var(--notes-gradient, linear-gradient(135deg, var(--notes-primary), var(--notes-secondary)));
    background-color: var(--theme-primary, var(--notes-primary));
    color: var(--text-inverse, #fff);
    border-color: rgba(187, 107, 217, 0.6);
    box-shadow: 0 12px 28px rgba(187, 107, 217, 0.45);
    transform: translateY(-2px);
}

/* ==================== 响应式设计 ==================== */
/* 平板横屏 (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    body.page-template-custom-notes .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .notes-page {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .notes-filter {
        position: relative;
        z-index: 10;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .posts-main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    .post-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .post-image {
        width: 100%;
        max-width: 100%;
    }

    .post-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        grid-row: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sidebar-widget {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .book-card-simple {
        max-width: 100%;
        box-sizing: border-box;
    }

    .book-info {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
}

/* 平板及以下通用 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    /* 清除 o-grid 的 padding，防止水平溢出 */
    body.page-template-custom-notes .o-grid,
    body.page-template-custom-notes .o-grid__col {
        padding-left: 0;
        padding-right: 0;
    }

    body.page-template-custom-notes .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .notes-page {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .notes-hero {
        padding: var(--space-xl) var(--space-md);
        width: 100%;
        box-sizing: border-box;
    }

    /* 防止内容溢出 */
    .notes-filter {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
    }

    .notes-page .content-layout {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
    }

    .posts-main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
        grid-row: 1;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
        position: static;
        grid-row: 2;
        grid-template-columns: 1fr;
    }

    .posts-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        grid-template-columns: 1fr;
    }

    .post-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .post-image {
        width: 100%;
        max-width: 100%;
    }

    .post-image img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .sidebar-widget {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .book-card-simple {
        max-width: 100%;
        box-sizing: border-box;
    }

    .book-info {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .notes-hero__title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .notes-hero__stats {
        grid-template-columns: 1fr;
    }

    .notes-filter__sort {
        width: 100%;
        justify-content: space-between;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(187, 107, 217, 0.25);
        padding-top: var(--space-md);
    }

    .notes-filter__chips {
        justify-content: flex-start;
    }

    .notes-filter .sort-select {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .notes-filter__chips {
        width: 100%;
    }

    .sort-select__trigger {
        width: 100%;
        justify-content: space-between;
    }

    .post-title {
        font-size: var(--text-lg);
    }

    .post-image {
        height: 160px;
    }
}

/* ==================== 暗色模式 ==================== */
[data-theme='dark'] .notes-hero {
    background: linear-gradient(135deg, rgba(20, 15, 30, 0.95), rgba(25, 18, 35, 0.95));
    border-color: rgba(187, 107, 217, 0.18);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .notes-hero::before {
    background: radial-gradient(circle at center, rgba(187, 107, 217, 0.4), transparent 70%);
}

[data-theme='dark'] .notes-hero::after {
    background: radial-gradient(circle at center, rgba(155, 81, 224, 0.3), transparent 65%);
}

[data-theme='dark'] .notes-hero__kicker {
    color: rgba(226, 232, 240, 0.7);
}

[data-theme='dark'] .notes-hero__title {
    color: rgba(248, 250, 252, 0.98);
}

[data-theme='dark'] .notes-hero__description {
    color: rgba(226, 232, 240, 0.85);
}

[data-theme='dark'] .notes-hero__stat {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(187, 107, 217, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .notes-hero__stat:hover {
    background: rgba(30, 41, 59, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .notes-hero__stat-label {
    color: rgba(226, 232, 240, 0.7);
}

[data-theme='dark'] .notes-hero__stat-value {
    color: rgba(248, 250, 252, 0.95);
}

[data-theme='dark'] .notes-hero__panel {
    border-top-color: rgba(187, 107, 217, 0.25);
}

/* 旧的暗色模式样式（筛选按钮和排序选择器）已移除，统一使用文件末尾的新样式 */

[data-theme='dark'] .empty-state {
    background: linear-gradient(135deg, rgba(30, 25, 40, 0.4), rgba(25, 18, 35, 0.4));
    border-color: rgba(187, 107, 217, 0.3);
}

[data-theme='dark'] .empty-state p {
    color: rgba(226, 232, 240, 0.9);
}

[data-theme='dark'] .empty-state-hint {
    color: rgba(148, 163, 184, 0.8);
}

[data-theme='dark'] .empty-state-btn {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--notes-primary);
    color: var(--notes-primary);
}

[data-theme='dark'] .empty-state-btn:hover {
    background: var(--notes-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(187, 107, 217, 0.4);
}

/* ==================== 分页样式 ==================== */
.posts-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin: var(--space-xl) 0 var(--space-3xl);
}

.pagination-button {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.pagination-button:hover:not(.is-disabled) {
    border-color: var(--theme-hover-border);
    color: var(--theme-primary);
}

.pagination-button.is-active {
    background: linear-gradient(135deg, #BB6BD9, #9B51E0);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 8px 32px rgba(187, 107, 217, 0.25);
}

.pagination-button.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    align-self: center;
    color: var(--text-tertiary);
    padding: 0 var(--space-xs);
}

/* 暗色主题下的分页样式 */
[data-theme='dark'] .pagination-button {
    border-color: rgba(86, 204, 242, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: rgba(226, 232, 240, 0.9);
}

[data-theme='dark'] .pagination-button:hover:not(.is-disabled) {
    border-color: rgba(187, 107, 217, 0.6);
    color: var(--notes-primary);
    background: rgba(30, 41, 59, 0.8);
}

[data-theme='dark'] .pagination-button.is-active {
    background: var(--notes-gradient);
    border-color: rgba(187, 107, 217, 0.6);
    color: var(--text-inverse);
    box-shadow: 0 12px 28px rgba(187, 107, 217, 0.35);
}

[data-theme='dark'] .pagination-ellipsis {
    color: rgba(148, 163, 184, 0.6);
}

/* ==================== 暗色模式 - 筛选栏和排序选择器 ==================== */
[data-theme='dark'] .notes-filter {
    background: linear-gradient(135deg, rgba(9, 14, 26, 0.95), rgba(16, 30, 46, 0.9));
    border-color: rgba(187, 107, 217, 0.25);
    box-shadow: 0 12px 35px rgba(2, 6, 14, 0.8);
}

[data-theme='dark'] .notes-filter .filter-btn.chip {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(20, 30, 48, 0.85);
    color: rgba(226, 232, 240, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

[data-theme='dark'] .notes-filter .filter-btn.chip:hover {
    background: rgba(187, 107, 217, 0.12);
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 55%, transparent) !important;
    color: var(--theme-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .notes-filter .filter-btn.chip.active,
[data-theme='dark'] .notes-filter__chips .filter-btn.chip.active,
[data-theme='dark'] button.filter-btn.chip.active[data-filter] {
    background: var(--theme-gradient, var(--notes-gradient)) !important;
    background-color: var(--theme-primary, var(--notes-primary)) !important;
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 55%, transparent) !important;
    border-style: solid;
    border-width: 1.5px;
    color: var(--text-inverse, #fff) !important;
    box-shadow: var(--shadow-xl), 0 0 0 1.5px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent) !important;
}

[data-theme='dark'] .sort-select__trigger {
    background: rgba(20, 30, 48, 0.9);
    color: rgba(226, 232, 240, 0.95);
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 40%, transparent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 30%, transparent);
}

[data-theme='dark'] .sort-select__trigger:hover {
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 65%, transparent);
    color: var(--theme-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent);
}

[data-theme='dark'] .sort-select.is-open .sort-select__trigger {
    border-color: color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 70%, transparent);
    color: var(--theme-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 0 1.5px color-mix(in srgb, var(--theme-primary, var(--notes-primary)) 35%, transparent);
}

[data-theme='dark'] .sort-select__chevron {
    color: rgba(226, 232, 240, 0.8);
}

[data-theme='dark'] .sort-select.is-open .sort-select__chevron {
    color: var(--theme-primary);
}

[data-theme='dark'] .sort-select__menu {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(187, 107, 217, 0.2);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6);
}

[data-theme='dark'] .sort-select__option {
    color: rgba(226, 232, 240, 0.9);
}

[data-theme='dark'] .sort-select__option:hover,
[data-theme='dark'] .sort-select__option:focus,
[data-theme='dark'] .sort-select__option.is-active {
    background: rgba(187, 107, 217, 0.15);
    color: var(--theme-primary);
}

/* ==================== 时光流逝组件 ==================== */
.time-progress {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.time-progress__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.time-progress__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.time-progress__name {
    color: var(--text-secondary);
    font-weight: 500;
}

.time-progress__value {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
}

.time-progress__bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-progress__bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.time-progress__fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease, background 0.3s ease;
}

.time-progress__percent {
    font-size: var(--text-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
    color: var(--text-secondary);
}

/* 暗色模式 */
[data-theme='dark'] .time-progress__bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .time-progress__name {
    color: rgba(226, 232, 240, 0.9);
}

[data-theme='dark'] .time-progress__value,
[data-theme='dark'] .time-progress__percent {
    color: rgba(203, 213, 225, 0.7);
}