/* ===== 基础变量与重置 ===== */
/* Monet Water Lilies palette */
:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #f5f0eb;
    --bg-card: rgba(250,248,245,0.50);
    --bg-glass: rgba(250,248,245,0.30);
    --text-primary: #1a1818;
    --text-secondary: #3d3840;
    --text-muted: #5e5862;
    --accent: #7c6fa0;
    --accent-light: #9b8fc0;
    --accent-soft: rgba(199,125,101,0.08);
    --accent-glow: rgba(199,125,101,0.18);
    --border: rgba(0,0,0,0.06);
    --border-light: rgba(0,0,0,0.03);
    --shadow-xs: 0 1px 2px rgba(140,120,100,0.05);
    --shadow-sm: 0 2px 8px rgba(140,120,100,0.08);
    --shadow-md: 0 8px 24px rgba(140,120,100,0.10);
    --shadow-lg: 0 16px 48px rgba(140,120,100,0.12);
    --shadow-xl: 0 24px 64px rgba(140,120,100,0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Ma Shan Zheng', 'Noto Serif SC', 'STSong', serif;
    --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --max-width: 960px;
    --navbar-blur: saturate(180%) blur(calc(var(--blur-level, 24) * 1px));
    --card-blur: blur(calc(var(--blur-level, 14) * 1px));
}

[data-theme="dark"] {
    --bg-primary: #1a1410;
    --bg-secondary: #201914;
    --bg-card: rgba(30,22,16,0.55);
    --bg-glass: rgba(30,22,16,0.35);
    --text-primary: #efe5d9;
    --text-secondary: #c5b5a5;
    --text-muted: #8a7e6e;
    --accent: #d99b73;
    --accent-light: #e2ab89;
    --accent-soft: rgba(217,155,115,0.10);
    --accent-glow: rgba(217,155,115,0.20);
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.03);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.6);
}

[data-theme="dark"][data-theme-color="blue"]   { --accent: #a87d6a; --accent-light: #c09b8a; --accent-soft: rgba(168,125,106,0.12); --accent-glow: rgba(168,125,106,0.22); }
[data-theme="dark"][data-theme-color="red"]    { --accent: #c87a7a; --accent-light: #d89a9a; --accent-soft: rgba(200,122,122,0.12); --accent-glow: rgba(200,122,122,0.22); }
[data-theme="dark"][data-theme-color="green"]  { --accent: #8aa87d; --accent-light: #a8c09b; --accent-soft: rgba(138,168,125,0.12); --accent-glow: rgba(138,168,125,0.22); }
[data-theme="dark"][data-theme-color="purple"] { --accent: #9a8aa8; --accent-light: #b8a8c0; --accent-soft: rgba(154,138,168,0.12); --accent-glow: rgba(154,138,168,0.22); }
[data-theme="dark"][data-theme-color="orange"] { --accent: #d99b6a; --accent-light: #e2b090; --accent-soft: rgba(217,155,106,0.12); --accent-glow: rgba(217,155,106,0.22); }

[data-theme-color="blue"]   { --accent: #7c6fa0; --accent-light: #9b8fc0; --accent-soft: rgba(124,111,160,0.08); --accent-glow: rgba(124,111,160,0.18); }
[data-theme-color="red"]    { --accent: #9b6b6b; --accent-light: #b88888; --accent-soft: rgba(177,90,90,0.08); --accent-glow: rgba(177,90,90,0.18); }
[data-theme-color="green"]  { --accent: #6b8b6e; --accent-light: #8ba88d; --accent-soft: rgba(106,139,94,0.08); --accent-glow: rgba(106,139,94,0.18); }
[data-theme-color="purple"] { --accent: #7b6a8b; --accent-light: #9a8aa8; --accent-soft: rgba(123,106,139,0.08); --accent-glow: rgba(123,106,139,0.18); }
[data-theme-color="orange"] { --accent: #b8946b; --accent-light: #d0a888; --accent-soft: rgba(199,125,74,0.08); --accent-glow: rgba(199,125,74,0.18); }

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

html { scroll-behavior: smooth; font-size: 17px; scroll-padding-top: 70px; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
    color: var(--text-primary);
    line-height: 1.85;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
}

/* ===== 无障碍：跳过链接 + 焦点样式 ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 24px;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 200;
    font-size: 0.9rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}


/* 背景图加载层 */
.bg-layer {
    position: fixed; inset: 0; z-index: -1;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out, filter 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}
.bg-layer.active { opacity: 1; }

/* ===== 莫奈取色光球背景 ===== */
.monet-orbs {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
}

.monet-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: orbFloat 20s ease-in-out infinite;
}

/* 每颗光球的位置、颜色、动画节奏都不同 */
.orb-1 {
    width: 400px; height: 400px;
    top: -120px; left: -80px;
    background: radial-gradient(circle at 40% 40%, rgba(180,160,220,0.6) 0%, rgba(180,160,220,0) 70%),
                radial-gradient(circle at 60% 60%, rgba(249,168,212,0.5) 0%, rgba(249,168,212,0) 70%);
    animation-duration: 28s; animation-name: orbDrift1;
}
.orb-2 {
    width: 320px; height: 320px;
    top: 40%; right: -100px;
    background: radial-gradient(circle at 50% 40%, rgba(103,232,249,0.55) 0%, rgba(103,232,249,0) 65%),
                radial-gradient(circle at 40% 60%, rgba(180,160,220,0.4) 0%, rgba(180,160,220,0) 65%);
    animation-duration: 24s; animation-delay: -8s; animation-name: orbDrift2;
}
.orb-3 {
    width: 300px; height: 300px;
    bottom: -100px; left: 30%;
    background: radial-gradient(circle at 45% 45%, rgba(253,232,138,0.5) 0%, rgba(253,232,138,0) 65%),
                radial-gradient(circle at 55% 55%, rgba(249,168,212,0.45) 0%, rgba(249,168,212,0) 65%);
    animation-duration: 30s; animation-delay: -15s; animation-name: orbDrift3;
}
.orb-4 {
    width: 240px; height: 240px;
    top: 20%; left: 50%;
    background: radial-gradient(circle at center, rgba(180,160,220,0.35) 0%, rgba(180,160,220,0) 70%),
                radial-gradient(circle at 60% 40%, rgba(103,232,249,0.35) 0%, rgba(103,232,249,0) 70%);
    animation-duration: 22s; animation-delay: -5s; animation-name: orbDrift4;
}

@keyframes orbDrift1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(80px,-50px) scale(1.15); }
    66% { transform: translate(-40px,60px) scale(0.9); }
}
@keyframes orbDrift2 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-70px,40px) scale(1.1); }
    66% { transform: translate(50px,-30px) scale(0.95); }
}
@keyframes orbDrift3 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(60px,-40px) scale(1.12); }
}
@keyframes orbDrift4 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-50px,30px) scale(1.08); }
}

[data-theme="dark"] .monet-orb { opacity: 0.45; }

.article-card {
    background: rgba(250,248,245,0.15) !important;
    box-shadow: 0 8px 32px rgba(124,111,160,0.10), inset 0 1px 0 rgba(255,255,255,0.5) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-left: 3px solid rgba(124,111,160,0.45) !important;
}
[data-theme="dark"] .article-card {
    background: rgba(30,26,40,0.20) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-left: 3px solid rgba(180,160,220,0.35) !important;
}
.sidebar {
    background: rgba(250,248,245,0.18) !important;
    box-shadow: -8px 0 40px rgba(124,111,160,0.08), inset 1px 0 0 rgba(255,255,255,0.4) !important;
    border-right: 1px solid rgba(255,255,255,0.2) !important;
}
[data-theme="dark"] .sidebar {
    background: rgba(25,22,35,0.22) !important;
    box-shadow: -8px 0 40px rgba(0,0,0,0.4), inset 1px 0 0 rgba(255,255,255,0.04) !important;
    border-right: 1px solid rgba(255,255,255,0.04) !important;
}
.navbar {
    background: rgba(250,248,245,0.10) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.35), 0 4px 20px rgba(124,111,160,0.04) !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}
[data-theme="dark"] .navbar {
    background: rgba(25,22,35,0.15) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 4px 20px rgba(0,0,0,0.3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
}

#main-content, .sidebar, .navbar, .post-container, .footer {
    position: relative; z-index: 1;
}
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: var(--navbar-blur);
    -webkit-backdrop-filter: var(--navbar-blur);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

[data-theme="dark"] .navbar { background: rgba(17,19,24,0.65); }

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-logo:focus-visible { outline-offset: 4px; }

.nav-links {
    display: flex; list-style: none; gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem; font-weight: 400;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle,
.menu-toggle {
    background: none; border: none;
    font-size: 1.2rem; cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover { background: var(--accent-soft); }

.menu-toggle { display: none; font-size: 1.4rem; }

/* ===== 英雄区 ===== */
.hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background:
        radial-gradient(ellipse at 25% 15%, var(--accent-glow) 0%, transparent 45%),
        radial-gradient(ellipse at 75% 55%, rgba(180,160,140,0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, var(--accent-soft) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.hero-content {
    text-align: center;
    max-width: 560px;
    position: relative;
    z-index: 1;
}


.hero-avatar {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(124,111,160,0.15);
}

.hero-title { font-family: var(--font-serif); margin-bottom: 24px; }

.greeting {
    display: block;
    font-size: 1.05rem; font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.name {
    display: block;
    font-size: 3.2rem; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-cta { margin-top: 8px; }

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.cta-link::after {
    content: '↓';
    display: inline-block;
    transition: transform var(--transition);
}

.cta-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.cta-link:hover::after {
    transform: translateY(3px);
}

.hero-float {
    position: absolute;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.12;
    pointer-events: none;
    animation: heroDrift 6s ease-in-out infinite;
}
.hero-float-1 { top: 20%; left: 10%; animation-delay: 0s; font-size: 2rem; }
.hero-float-2 { top: 60%; right: 12%; animation-delay: 2s; font-size: 1.3rem; }
.hero-float-3 { bottom: 25%; left: 20%; animation-delay: 4s; font-size: 1.6rem; }

@keyframes heroDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

/* ===== 文章列表 ===== */
.articles {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-line {
    width: 40px; height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

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

.filter-btn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.filter-count {
    font-size: 0.72rem;
    opacity: 0.7;
}

.filter-search input {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-sans);
    outline: none;
    width: 180px;
    transition: all var(--transition);
}

.filter-search input:focus {
    border-color: var(--accent);
    width: 220px;
}

.filter-search input::placeholder {
    color: var(--text-muted);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 28px 28px 28px 32px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-xs);
}

.article-card:hover {
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-glow);
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.12);
}

.article-card.hidden { display: none; }

.card-meta {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}

.card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 14px;
    font-size: 0.76rem; font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0,0,0,0.04);
}

.card-date { color: var(--text-muted); font-size: 0.78rem; opacity: 0.7; }

.card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem; font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
}

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

.card-title a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem; line-height: 1.8;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.card-read-time { font-size: 0.76rem; color: var(--text-muted); opacity: 0.6; }

.card-link {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    padding: 8px 4px;
    display: inline-block;
    min-height: 44px;
    line-height: 28px;
}

.card-link:hover { color: var(--accent-light); }

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state.hidden { display: none; }

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-outline {
    padding: 10px 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: all var(--transition);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
/* ===== 关于 ===== */
.about {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.3;
}

.about-content {
    display: flex; gap: 40px;
    align-items: flex-start;
    max-width: 640px;
    margin: 0 auto;
}

.avatar-img {
    width: 100px; height: 100px;
    border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center; justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 2.5rem; font-weight: 700;
    flex-shrink: 0;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.about-bio {
    color: var(--text-secondary);
    font-size: 0.95rem; line-height: 1.9;
    margin-bottom: 20px;
}

.about-links { display: flex; gap: 16px; }

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.social-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== 页脚 ===== */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-content p { color: var(--text-muted); font-size: 0.85rem; }

.footer-quote { margin-top: 8px; font-style: italic; }
.footer-rss {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}
.footer-rss:hover { text-decoration: underline; }
.footer-links {
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.footer-links a {
    color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-divider { color: var(--border); font-size: 0.8rem; }

/* ===== 文章详情页 ===== */
.post-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}

.post-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.post-header::after {
    content: "";
    display: block;
    width: 48px; height: 3px;
    background: var(--accent);
    margin: 20px auto 0;
    border-radius: 2px;
    opacity: 0.4;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 2rem; font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.post-meta {
    display: flex; justify-content: center; gap: 16px;
    color: var(--text-muted); font-size: 0.9rem;
    flex-wrap: wrap;
}

.post-body {
    font-family: var(--font-serif);
    font-size: 1.1rem; line-height: 2.1;
    color: var(--text-primary);
}

.post-body h2 { font-size: 1.4rem; margin: 40px 0 16px; font-weight: 700; }
.post-body h3 { font-size: 1.15rem; margin: 28px 0 12px; font-weight: 600; }
.post-body p { margin-bottom: 20px; text-indent: 2em; }
.post-body p:first-of-type { text-indent: 0; }

.post-body p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 3.4em;
    font-weight: 700;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 6px;
    color: var(--accent);
}

.post-body blockquote {
    margin: 28px 0;
    padding: 20px 28px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
}

.post-body blockquote::before {
    content: "'"'"";
    position: absolute;
    top: -8px; left: 10px;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
}

.post-body h2 {
    font-size: 1.4rem;
    margin: 44px 0 18px;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.post-body ul, .post-body ol { margin: 16px 0; padding-left: 1.5em; }
.post-body li { margin-bottom: 8px; }

.post-body code {
    background: var(--bg-secondary);
    padding: 2px 8px; border-radius: 4px;
    font-size: 0.9em;
    font-family: "'"SF Mono"'"', "'"Fira Code"'"', monospace;
}

.post-body pre {
    background: var(--bg-secondary);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
}

.post-body pre code { background: none; padding: 0; }

.back-home {
    display: block; text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.back-home:hover { color: var(--accent); }

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ===== 阅读进度条 ===== */
.reading-progress {
    position: fixed;
    top: 0; left: 0; z-index: 101;
    height: 3px;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* ===== 上滑刷新（弹性动效） ===== */
.pull-container {
    position: fixed;
    top: 0; left: 0; right: 0; z-index: 190;
    height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    pointer-events: none;
}

.pull-container.ready { color: var(--accent); }

.pull-spinner {
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.pull-container.ready .pull-spinner { color: var(--accent); }
.pull-container.refreshing .pull-spinner { color: var(--accent); }
.pull-container.done .pull-spinner { color: #4a9a5a; }

@keyframes pullSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 侧边栏 ===== */
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 160;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0; left: -320px;
    width: 300px; height: 100%;
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    z-index: 170;
    padding: 24px;
    overflow-y: auto;
    transition: left var(--transition);
    box-shadow: var(--shadow-xl);
    border-right: 1px solid var(--border);
}
.sidebar.open { left: 0; }

.sidebar-close {
    display: block; margin-left: auto;
    background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.sidebar-close:hover { background: var(--accent-soft); }

.sidebar-section { margin-bottom: 28px; }
.sidebar-section h4 {
    font-family: var(--font-serif);
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.theme-colors {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.theme-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
}
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { border-color: var(--text-primary); }
.theme-dot.active::after {
    content: "'"✓"'"';
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.7rem; font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.theme-dot.blue   { background: #3a4f6e; }
.theme-dot.red    { background: #9b3a3a; }
.theme-dot.green  { background: #3a7040; }
.theme-dot.purple { background: #5e3a70; }
.theme-dot.orange { background: #8b5e2a; }

.sidebar-nav a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition);
    margin-bottom: 2px;
}
.sidebar-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.sidebar-trigger {
    background: none; border: none;
    font-size: 1.3rem; cursor: pointer;
    padding: 4px 8px;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.sidebar-trigger:hover { background: var(--accent-soft); }

.bg-upload-btn {
    display: block; width: 100%; text-align: center;
    padding: 8px; border: 1px dashed var(--border);
    border-radius: var(--radius-sm); cursor: pointer;
    font-size: .85rem; color: var(--text-secondary);
    transition: all var(--transition);
}
.bg-upload-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ===== 倒计时 V2 ===== */
.timer-v2 {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    max-width: 340px; margin: 0 auto;
}
.timer-v2-ring {
    position: relative; width: 260px; height: 260px;
}
.timer-v2-ring svg { width: 100%; height: 100%; display: block; }
.timer-v2-fill { transition: stroke-dashoffset 1s linear; }
.timer-v2-fill.running { transition: stroke-dashoffset 1s linear; }
.timer-v2-fill.done { stroke: #e74c3c !important; animation: timerPulse 0.5s ease-in-out 3; }
@keyframes timerPulse { 0%,100%{opacity:.3} 50%{opacity:1} }
.timer-v2-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    pointer-events: none;
}
.timer-v2-time {
    font-size: 3rem; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.03em; line-height: 1.1;
    transition: color 0.3s;
}
.timer-v2-time.done { color: #e74c3c; }
.timer-v2-label {
    font-size: 0.78rem; color: var(--text-muted);
    margin-top: 4px; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.timer-v2-presets {
    display: flex; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 28px; padding: 4px;
}
.timer-v2-preset {
    padding: 7px 18px; border: none; border-radius: 24px;
    background: transparent; color: var(--text-secondary);
    font-size: 0.85rem; font-family: var(--font-sans); cursor: pointer;
    transition: all var(--transition);
}
.timer-v2-preset:hover { color: var(--accent); }
.timer-v2-preset.active {
    background: var(--accent); color: #fff;
    box-shadow: 0 2px 8px var(--accent-soft);
}
.timer-v2-custom {
    display: flex; align-items: center; gap: 4px;
}
.timer-v2-custom input {
    width: 60px; text-align: center; padding: 8px 4px;
    border: 1.5px solid transparent; border-radius: 12px;
    background: var(--bg-secondary); color: var(--text-primary);
    font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans);
    transition: all var(--transition);
}
.timer-v2-custom input:focus { border-color: var(--accent); background: var(--bg-card); outline: none; }
.timer-v2-custom span { font-size: 1.2rem; color: var(--text-muted); font-weight: 300; }
.timer-v2-actions { display: flex; gap: 12px; }
.timer-v2-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 36px; border: none; border-radius: 30px;
    font-size: 1rem; font-weight: 600; font-family: var(--font-sans);
    cursor: pointer; transition: all var(--transition);
    letter-spacing: 0.02em;
}
.timer-v2-btn.start {
    background: var(--accent); color: #fff;
    box-shadow: 0 4px 16px var(--accent-soft);
}
.timer-v2-btn.start:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-soft); }
.timer-v2-btn.start.running { background: #e67e22; }
.timer-v2-btn.start.running:hover { background: #f39c12; }
.timer-v2-btn.reset {
    background: var(--bg-card); color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.timer-v2-btn.reset:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon { font-size: 0.75rem; }
.timer-v2-custom input:disabled,
.timer-v2-preset:disabled { opacity: 0.5; pointer-events: none; }
.timer-v2-btn:active { transform: scale(0.97); }

/* 旧 countdown */
.countdown-grid {
    display: flex; justify-content: center; gap: 20px; margin: 24px 0;
}
.countdown-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    min-width: 80px;
    transition: all var(--transition);
}
.countdown-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.countdown-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem; font-weight: 700;
    color: var(--accent); line-height: 1.2;
}
.countdown-label { font-size: 0.8rem; color: var(--text-muted); }
.countdown-target { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }

/* ===== 设备清单 ===== */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.device-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--transition);
}
.device-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.device-icon { font-size: 2rem; margin-bottom: 10px; }
.device-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.device-spec { font-size: 0.8rem; color: var(--text-muted); }

/* ===== 友链 ===== */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-width: 600px; margin: 0 auto;
}
.friend-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card);
    backdrop-filter: var(--card-blur);
    -webkit-backdrop-filter: var(--card-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}
.friend-card:hover {
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-glow);
    transform: translateY(-2px);
}
.friend-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.friend-info { flex: 1; min-width: 0; }
.friend-name {
    font-weight: 600; font-size: .92rem; color: var(--text-primary);
    margin-bottom: 2px;
}
.friend-desc {
    font-size: .8rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bili-avatar {
    background: linear-gradient(135deg, #fb7299, #fc8bab) !important;
}
.friend-arrow {
    color: var(--text-muted); font-size: 0.9rem;
    transition: transform var(--transition);
}
.friend-card:hover .friend-arrow { transform: translateX(3px); color: var(--accent); }

.friend-img {
    width: 44px; height: 44px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--border);
    transition: border-color var(--transition);
}
.friend-card:hover .friend-img { border-color: var(--accent); }

/* ===== 日记时间线 ===== */
.diary-list {
    max-width: 600px; margin: 0 auto;
    position: relative;
    padding-left: 30px;
}
.diary-list::before {
    content: "'""'"";
    position: absolute; left: 12px; top: 0; bottom: 0;
    width: 1px;
    background: var(--border);
}
.diary-entry {
    position: relative;
    margin-bottom: 24px;
    display: flex; align-items: flex-start; gap: 16px;
}
.diary-date {
    font-family: var(--font-serif);
    font-size: 0.85rem; font-weight: 600;
    color: var(--accent);
    min-width: 40px; padding-top: 2px;
}
.diary-dot {
    position: absolute; left: -24px; top: 6px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}
.diary-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; flex: 1; }

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-secondary); }

/* ===== 动效 ===== */

/* ── 页面加载淡入 ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 英雄区文字入场 */
.hero-content { animation: fadeInUp 0.7s ease-out; }
.hero-avatar { animation: fadeIn 0.5s ease-out; }

/* 文章卡片滚动入场 */
.article-card, .archive-item, .friend-card, .device-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.article-card.revealed, .archive-item.revealed, .friend-card.revealed, .device-card.revealed {
    opacity: 1; transform: translateY(0);
}

/* ── 导航链接下划线滑动 ── */
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── 卡片悬停上浮 ── */
.article-card:hover, .archive-item:hover, .friend-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-glow);
}

/* ── 按钮脉冲 ── */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,111,160,0.3); }
    50%      { box-shadow: 0 0 0 8px rgba(124,111,160,0); }
}
.cta-link { animation: subtlePulse 2.5s ease-in-out infinite; }

/* ── 回到顶部按钮旋转 ── */
.back-to-top { transition: all 0.3s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.back-to-top:hover { transform: translateY(-3px) rotate(360deg); }

/* ── 文章链接悬停下划线 ── */
.card-title a {
    background: linear-gradient(to right, var(--accent), var(--accent));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}
.card-title a:hover { background-size: 100% 2px; }

/* ── 触屏反馈 ── */
@media (hover: none) {
    .article-card:active, .archive-item:active { transform: scale(0.97); transition: transform 0.1s ease; }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    html { scroll-behavior: auto; }
    .article-card, .archive-item, .friend-card, .device-card { opacity: 1; transform: none; }
}

/* ===== 打印样式 ===== */
@media print {
    .navbar, .sidebar, .sidebar-overlay, .back-to-top,
    .reading-progress, .pull-container, .sidebar-trigger,
    .menu-toggle, .theme-toggle, .theme-bar, .hero-cta,
    .hero-float, .footer { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .post-container { max-width: 100%; padding: 0; margin: 0; }
    .post-body { line-height: 1.6; }
    .post-body a { color: #000; text-decoration: underline; }
    .post-body h2 { page-break-after: avoid; }
    .post-body p { orphans: 3; widows: 3; }
    @page { margin: 2cm; }
}

/* ===== 响应式设计 ===== */

/* ── 深色模式自动检测（CSS 兜底） ── */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) {
        --bg-primary: #1a1410;
        --bg-secondary: #201914;
        --bg-card: rgba(30,22,16,0.55);
        --bg-glass: rgba(30,22,16,0.35);
        --text-primary: #efe5d9;
        --text-secondary: #b8a590;
        --text-muted: #7a6e5e;
        --accent: #d99b73;
        --accent-light: #e2ab89;
        --border: rgba(255,255,255,0.06);
        --border-light: rgba(255,255,255,0.03);
    }
}

/* ── 触屏设备全局优化 ── */
@media (hover: none) and (pointer: coarse) {
    * { -webkit-tap-highlight-color: transparent; }
    a, button, .article-card, .archive-item, .friend-card, .device-card {
        cursor: default;
    }
    /* 触屏设备去掉 hover 依赖，改用 active */
    .article-card:active, .archive-item:active, .friend-card:active {
        transform: scale(0.98);
    }
}

/* ── iOS 安全区域 ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .navbar { padding-top: env(safe-area-inset-top); }
    .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(32px + env(safe-area-inset-bottom)); }
    .sidebar { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

/* ── 平板端 (769-1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .article-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .hero { min-height: 45vh; padding: 100px 24px 60px; }
    .name { font-size: 2.8rem; }
}

/* ── 折叠屏 / 小屏平板 (480-768px) ── */
@media (max-width: 768px) {
    :root { --radius: 14px; --radius-sm: 8px; }

    /* 导航 */
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 60px; left: 0; right: 0;
        background: var(--bg-card); padding: 16px 24px; gap: 16px;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    }
    .menu-toggle { display: block; }
    .nav-links a { padding: 8px 16px; min-height: 44px; display: flex; align-items: center; }

    /* 英雄区 */
    .hero { min-height: 40vh; padding: 90px 24px 50px; }
    .name { font-size: 2.2rem; }
    .greeting { font-size: 0.95rem; }
    .hero-avatar { width: 64px; height: 64px; }
    .hero-float { display: none; }

    /* 文章列表 */
    .article-grid { grid-template-columns: 1fr; gap: 16px; }
    .article-card { padding: 20px 20px 20px 24px; }
    .articles { padding: 40px 16px 60px; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 1.6rem; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-search input, .filter-search input:focus { width: 100%; }

    /* 文章详情 */
    .post-container { padding: 80px 16px 40px; }
    .post-title { font-size: 1.5rem; }
    .post-body { font-size: 1rem; }
    .post-body p:first-of-type::first-letter { font-size: 2.8em; }

    /* 归档页 */
    .archive-container { padding: 80px 16px 40px; }
    .archive-item { flex-direction: column; gap: 12px; padding: 18px; }
    .archive-item-date { text-align: left; min-width: auto; font-size: 0.95rem; }
    .archive-item-date .year { font-size: 1.05rem; }
    .archive-header h1 { font-size: 1.6rem; }

    /* 关于页 */
    .about-content { flex-direction: column; align-items: center; text-align: center; }
    .about-links { justify-content: center; }

    /* 友链 */
    .friends-grid { grid-template-columns: 1fr; }

    /* 设备 */
    .devices-grid { grid-template-columns: 1fr; }

    /* UI 组件 */
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.3rem; }
    .theme-toggle, .sidebar-trigger, .menu-toggle { width: 44px; height: 44px; font-size: 1.4rem; }
    .theme-dot { width: 32px; height: 32px; }
    .card-link { padding: 12px 8px; }
    .reading-progress { height: 3px; }
    .sidebar { width: 280px; }
}

/* ── 手机端 (<480px) ── */
@media (max-width: 480px) {
    html { font-size: 15px; }
    .hero { min-height: 35vh; padding: 80px 16px 40px; }
    .name { font-size: 1.9rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .cta-link { padding: 10px 24px; font-size: 0.9rem; }

    .article-card { padding: 16px; border-left-width: 2px; }
    .card-title { font-size: 1.05rem; }
    .card-excerpt { font-size: 0.85rem; }
    .card-tag { font-size: 0.72rem; padding: 2px 10px; }

    .post-title { font-size: 1.3rem; }
    .post-body h2 { font-size: 1.2rem; }
    .post-body blockquote { padding: 14px 18px; }

    .archive-item { padding: 14px; }
    .archive-item-title { font-size: 1rem; }

    .post-container, .archive-container { padding: 70px 12px 40px; }
}

/* ── 折叠屏 / 超窄屏 (<360px) ── */
@media (max-width: 360px) {
    html { font-size: 14px; }
    .nav-logo { font-size: 1.2rem; }
    .nav-container { padding: 0 12px; }
    .article-card { padding: 14px; }
    .name { font-size: 1.6rem; }
}

/* ── 横屏手机 ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 24px 40px; }
    .hero-avatar { width: 48px; height: 48px; margin-bottom: 8px; }
    .hero-title { margin-bottom: 8px; }
    .name { font-size: 1.8rem; }
}

/* ── 大屏 (>1400px) ── */
@media (min-width: 1400px) {
    .article-grid { grid-template-columns: repeat(3, 1fr); }
    .post-container { max-width: 780px; }
    .archive-container { max-width: 780px; }
}

/* ── Firefox 专用修复 ── */
@-moz-document url-prefix() {
    .article-card, .sidebar, .navbar {
        backdrop-filter: none;
        background: var(--bg-primary);
    }
    @supports (-moz-appearance: none) {
        * { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg-secondary); }
    }
}

/* ── IE/旧Edge 降级 ── */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .article-card, .sidebar, .navbar { backdrop-filter: none; }
    .monet-orbs { display: none; }
}

/* ===== 通用面板 ===== */
.panel { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 60px; }

/* 主题色切换栏 */
.theme-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}
.theme-bar-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 4px;
}
