@charset "UTF-8";
/* ****************************************************************** 博客主样式表（已去冗余 + 变量化 + 分段注释） ***************************************************************** */
/* ===== 0. 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ----- 0.1 全局平滑过渡（减少重复写 transition） ----- */
* { transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s; }

/* ----- 0.2 基础排版 ----- */
body { font-family: var(--body-font); line-height: 1.7; color: var(--text-color); background: var(--bg-color); }

h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); letter-spacing: 0.01em; }

a { color: var(--link-color); text-decoration: none; }

a:hover { color: var(--link-hover); }

/* ===== 1. CSS 变量（亮色主题） ===== */
:root { --bg-color: #ecece9; --card-bg: #f8f8f5; --text-color: #242424; --text-secondary: #4e4e4e; --text-muted: #767676; --border-color: #c8c8c2; --link-color: #6b4fc9; --link-hover: #4d3797; --code-bg: #e5e4df; --shadow: 0 6px 18px rgba(22, 18, 32, .08); --shadow-hover: 0 10px 24px rgba(22, 18, 32, .12); --radius: 3px; --radius-s: 2px; --body-font: "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif; --heading-font: "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; }

/* ===== 2. 暗色主题 ===== */
[data-theme="dark"] { --bg-color: #161616; --card-bg: #222222; --text-color: #ececf0; --text-secondary: #b8b8bf; --text-muted: #90909a; --border-color: #424248; --link-color: #bcabff; --link-hover: #d0c4ff; --code-bg: #2b2b2f; --shadow: 0 6px 18px rgba(0,0,0,.32); --shadow-hover: 0 10px 24px rgba(0,0,0,.42); }

/* ===== 3. 布局框架 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.main-content { min-height: calc(100vh - 120px); padding: 2rem 0; }

/* ===== 4. 头部 ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg-color); border-bottom: 2px solid var(--text-color); padding: 1.2rem 0; backdrop-filter: blur(5px); }

.header-content { display: flex; justify-content: space-between; align-items: center; }

.site-title { font-size: 2.2rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.site-title a { color: var(--text-color); }

.site-nav { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }

.site-nav a { border: 1px solid var(--border-color); color: var(--text-color); padding: 0.45rem 0.85rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

.site-nav a:hover { background: var(--link-color); border-color: var(--link-color); color: #fff; }

/* --- 主题切换按钮 --- */
.theme-toggle { width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: var(--radius-s); background: var(--card-bg); cursor: pointer; margin-left: 0.5rem; color: var(--text-color); }

.theme-toggle:hover { border-color: var(--link-color); background: var(--link-color); color: #fff; transform: translateY(-1px); }

/* ===== 5. 首页 Hero ===== */
.hero { text-align: center; padding: 4.2rem 0; background: var(--card-bg); color: var(--text-color); border-radius: var(--radius); margin-bottom: 3rem; border-top: 2px solid var(--text-color); border-bottom: 2px solid var(--text-color); }

.hero h2 { font-size: 3rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; }

.hero p { font-size: 1.05rem; opacity: .9; color: var(--text-secondary); }

/* ===== 6. 文章列表（网格 + 卡片可点击） ===== */
.posts { max-width: 1060px; margin: 0 auto; }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }

@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .posts-grid { grid-template-columns: 1fr; } }
/* --- 单张卡片 --- */
.post-item { position: relative; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-color); border-top: 3px solid var(--link-color); box-shadow: none; overflow: hidden; cursor: pointer; }

.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* 片羽文章虚化效果 */
.post-item.pianyu-blurred { opacity: 1; filter: none; border-top-color: #3f3f3f !important; cursor: pointer; }

.post-item.pianyu-blurred:hover { opacity: 1; filter: none; }

.post-item.pianyu-unlocked { opacity: 1; filter: none; border-top-color: #e0b546 !important; transition: border-top-color 0.3s ease; }

.post-item.pianyu-unlocked:hover { border-top-color: #ffd76b !important; }

/* 文章卡片背景图片 */
.post-item-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.15; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 1; }

/* 添加渐变遮罩以提高文字可读性 */
.post-item-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.7) 100%); }

[data-theme="dark"] .post-item-bg::after { background: linear-gradient(to bottom, rgba(45, 55, 72, 0.3) 0%, rgba(45, 55, 72, 0.5) 50%, rgba(45, 55, 72, 0.7) 100%); }

.post-item:hover .post-item-bg { opacity: 0.2; transform: scale(1.05); }

/* 确保暗色模式下背景更暗一些 */
[data-theme="dark"] .post-item-bg { opacity: 0.1; }

[data-theme="dark"] .post-item:hover .post-item-bg { opacity: 0.15; }

/* 链接覆盖整卡（保证无下划线） */
a.post-item-link { display: block; padding: 2rem; color: inherit; text-decoration: none; position: relative; z-index: 2; }

a.post-item-link:hover { text-decoration: none; }

.post-item-title { font-size: 1.6rem; font-weight: 600; margin: 0 0 .8rem; line-height: 1.4; }

.post-item-meta { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.2rem; }

.post-item-excerpt { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }

.post-item-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

.tag { background: var(--code-bg); color: var(--text-secondary); padding: .25rem .7rem; border: 1px solid var(--border-color); border-radius: var(--radius-s); font-size: .8rem; }

.post-item:hover .tag { background: var(--link-color); color: #fff; }

/* ===== 7. 文章详情页 ===== */
.post { max-width: 800px; margin: 0 auto; background: var(--card-bg); padding: 3rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.post-header { text-align: center; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }

.post-title { font-size: 2.2rem; color: var(--text-color); margin-bottom: 1rem; }

.post-meta { color: var(--text-secondary); font-size: .9rem; }

.post-location { margin-left: 1rem; }

.post-location::before { content: "📍 "; }

.post-content { font-size: 1.05rem; line-height: 1.9; color: var(--text-color); }

/* 改善标题层级 */
.post-content h2 { font-size: 1.75rem; font-weight: 600; margin: 2.5rem 0 1.2rem; color: var(--text-color); padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-color); }

.post-content h3 { font-size: 1.45rem; font-weight: 600; margin: 2rem 0 1rem; color: var(--text-color); }

.post-content h4 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.8rem; color: var(--text-color); }

/* 改善段落和列表 */
.post-content p { margin-bottom: 1.6rem; }

.post-content ul, .post-content ol { margin: 1.5rem 0; padding-left: 2rem; }

.post-content ul li, .post-content ol li { margin-bottom: 0.8rem; line-height: 1.8; }

.post-content ul ul, .post-content ol ul, .post-content ul ol, .post-content ol ol { margin: 0.5rem 0; }

/* 改善代码块 */
.post-content code { background: var(--code-bg); padding: .2rem .5rem; border-radius: var(--radius-s); font-size: .9em; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; }

.post-content pre { background: var(--code-bg); padding: 1.5rem; border-radius: var(--radius); overflow-x: auto; margin: 2rem 0; line-height: 1.5; }

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

/* 改善引用块 */
.post-content blockquote { border-left: 4px solid var(--link-color); padding: 1rem 1.5rem; margin: 2rem 0; font-style: italic; color: var(--text-secondary); background: var(--code-bg); border-radius: 0 var(--radius-s) var(--radius-s) 0; }

.post-content blockquote p { margin-bottom: 0.5rem; }

.post-content blockquote p:last-child { margin-bottom: 0; }

/* 改善表格 */
.post-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; }

.post-content table th, .post-content table td { padding: 0.75rem; border: 1px solid var(--border-color); text-align: left; }

.post-content table th { background: var(--code-bg); font-weight: 600; }

/* 改善水平线 */
.post-content hr { border: none; border-top: 2px solid var(--border-color); margin: 3rem 0; }

.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }

/* ===== 8. 文章底部导航 ===== */
.post-nav { max-width: 800px; margin: 2rem auto 0; display: flex; gap: 1rem; }

.post-nav a { flex: 1; text-align: center; padding: 1rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: none; }

.post-nav a:hover { transform: translateY(-2px); border-color: var(--link-color); }

/* ===== 9. 分页 ===== */
.pagination { max-width: 800px; margin: 3rem auto 0; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: none; }

.pagination a { padding: .8rem 1.5rem; background: var(--code-bg); border-radius: var(--radius); border: 1px solid var(--border-color); }

.pagination a:hover { background: var(--link-color); color: #fff; }

.pagination-info { color: var(--text-secondary); }

.no-posts { text-align: center; padding: 3rem; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border-color); box-shadow: none; color: var(--text-secondary); font-style: italic; }

/* ===== 10. 图片与画廊 ===== */
.image-container { margin: 2rem 0; text-align: center; clear: both; }

.image-container img { max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.image-container img:hover { transform: scale(1.01); box-shadow: var(--shadow-hover); }

.image-container figcaption { margin-top: 0.8rem; font-style: italic; color: var(--text-secondary); font-size: .95rem; line-height: 1.5; }

.image-small { max-width: 300px; }

.image-medium { max-width: 600px; }

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

.image-left { float: left; margin: 1rem 1.5rem 1.5rem 1rem; }

.image-right { float: right; margin: 0 0 1rem 1rem; }

.image-center { display: block; margin: 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 2rem 0; }

.gallery-item { overflow: hidden; border-radius: var(--radius); }

.gallery-image img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }

.gallery-image:hover img { transform: scale(1.1); }

/* ===== 11. 页脚 ===== */
.site-footer { background: var(--card-bg); color: var(--text-color); text-align: center; padding: 2rem 0; margin-top: 4rem; border-top: 1px solid var(--border-color); }

/* ===== 12. 响应式微调 ===== */
@media (max-width: 768px) { .header-content { flex-direction: column; gap: 1rem; }
  .site-nav { gap: 1rem; }
  .hero h2 { font-size: 2rem; }
  .post { padding: 2.5rem 1.8rem; margin: 0 1rem; }
  .post-title { font-size: 1.8rem; }
  .post-content { font-size: 1.02rem; }
  .post-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
  .post-content h3 { font-size: 1.3rem; }
  .post-content ul, .post-content ol { padding-left: 1.5rem; }
  .pagination { flex-direction: column; gap: 1rem; }
  .post-nav { flex-direction: column; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .image-left, .image-right { float: none; margin: 1.5rem 0; display: block; }
  .container { padding: 0 1rem; } }
/* ===== 13. 评论区样式 ===== */
.comments-section { max-width: 800px; margin: 3rem auto 0; padding: 2rem; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--link-color); }

.comments-section h3 { color: var(--text-color); margin-bottom: 1.5rem; text-align: center; font-size: 1.5rem; font-weight: 600; }

.giscus-container { transition: opacity 0.3s ease; }

/* giscus主题适配 */
.giscus { color-scheme: light; }

[data-theme="dark"] .giscus { color-scheme: dark; }

/* 确保giscus iframe在容器内正确显示 */
.giscus-container iframe { width: 100% !important; border: none; border-radius: var(--radius); }

/* 响应式调整 */
@media (max-width: 768px) { .comments-section { margin: 2rem 1rem 0; padding: 1.5rem; }
  .comments-section h3 { font-size: 1.3rem; } }
/* ===== 14. 摄影页面样式 ===== */
/* --- 14.1 摄影页面头部 --- */
.photography-header { text-align: center; padding: 3rem 0; background: var(--card-bg); color: var(--text-color); border-radius: var(--radius); margin-bottom: 3rem; border-top: 2px solid var(--text-color); border-bottom: 2px solid var(--text-color); }

.photography-header h1 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; }

.photography-header p { font-size: 1.05rem; opacity: 0.9; color: var(--text-secondary); }

/* --- 14.2 照片集网格 --- */
.photography-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }

/* --- 14.3 照片集卡片 --- */
.album-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; background: var(--card-bg); }

.album-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.album-link { display: block; text-decoration: none; color: inherit; }

.album-cover { position: relative; height: 280px; overflow: hidden; background: var(--code-bg); }

.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.3s ease; }

/* 懒加载图片状态 */
.album-cover img.lazy-load { opacity: 0; }

.album-cover img.lazy-loaded { opacity: 1; }

.album-card:hover .album-cover img { transform: scale(1.08); }

/* Loading占位动画 */
.album-cover::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, var(--code-bg) 0%, var(--border-color) 50%, var(--code-bg) 100%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; z-index: 1; }

.album-card.loaded .album-cover::before { display: none; }

@keyframes shimmer { 0% { background-position: -200% 0; }
  100% { background-position: 200% 0; } }
/* --- 14.4 照片集信息覆盖层 --- */
.album-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 70%, transparent); color: #fff; padding: 2.5rem 1.5rem 1.5rem; transform: translateY(0); transition: padding 0.3s ease; z-index: 2; }

.album-card:hover .album-overlay { padding: 2rem 1.5rem 1.5rem; }

.album-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.6rem; line-height: 1.3; }

.album-desc { font-size: 0.95rem; opacity: 0.95; margin-bottom: 0.8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.album-count { font-size: 0.85rem; opacity: 0.9; background: rgba(255, 255, 255, 0.25); padding: 0.4rem 1rem; border-radius: 20px; display: inline-block; backdrop-filter: blur(5px); }

/* --- 14.5 响应式调整 --- */
@media (max-width: 768px) { .photography-header { padding: 2rem 1rem; }
  .photography-header h1 { font-size: 2rem; }
  .photography-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; padding: 0 1rem; }
  .album-cover { height: 240px; }
  .album-overlay { background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75) 70%, transparent); transform: translateY(0); }
  .album-title { font-size: 1.2rem; }
  .album-desc { font-size: 0.9rem; } }
@media (max-width: 480px) { .photography-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .album-cover { height: 220px; } }
/* ===== 15. 照片集详情页面样式 ===== */
/* --- 15.1 照片集头部 --- */
.album-detail { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.album-header { margin-bottom: 3rem; }

.album-breadcrumb { margin-bottom: 2rem; }

.album-breadcrumb a { color: var(--link-color); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }

.album-breadcrumb a:hover { color: var(--link-hover); }

.album-info { text-align: center; padding: 2rem 0; border-bottom: 1px solid var(--border-color); }

.album-detail .album-title { font-size: 2.5rem; font-weight: 300; margin-bottom: 1rem; color: var(--text-color); }

.album-meta { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-secondary); }

.album-meta time, .album-meta .photo-count { background: var(--tag-bg); padding: 0.5rem 1rem; border-radius: 20px; }

.album-description { font-size: 1.1rem; line-height: 1.6; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* --- 15.2 照片集内容描述 --- */
.album-content { background: var(--card-bg); padding: 2.5rem; border-radius: var(--radius); margin-bottom: 3rem; line-height: 1.9; box-shadow: var(--shadow); font-size: 1.05rem; }

.album-content p { margin-bottom: 1.4rem; }

.album-content p:last-child { margin-bottom: 0; }

/* --- 15.3 照片展示网格（优化为masonry布局） --- */
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; /* 使用CSS Grid的自动流实现类似瀑布流的效果 */ grid-auto-flow: dense; }

.photo-item { position: relative; background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; /* 为不同高度的图片创建更自然的布局 */ break-inside: avoid; }

.photo-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); z-index: 1; }

/* 图片包装器 - 用于loading占位 */
.photo-image-wrapper { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--code-bg); }

/* Loading占位动画 */
.photo-loading-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, var(--code-bg) 0%, var(--border-color) 50%, var(--code-bg) 100%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; z-index: 1; }

.photo-img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.3s ease, opacity 0.4s ease; position: relative; z-index: 2; }

/* 懒加载状态 */
.photo-img.lazy-load { opacity: 0; }

.photo-img.lazy-loaded { opacity: 1; }

/* 隐藏加载完成后的占位符 */
.photo-item.loaded .photo-loading-placeholder { display: none; }

.photo-item:hover .photo-img { transform: scale(1.03); }

.photo-info { padding: 1rem 1.2rem 1.2rem; background: var(--card-bg); position: relative; }

.photo-caption { font-weight: 500; margin-bottom: 0.5rem; color: var(--text-color); line-height: 1.5; font-size: 0.9rem; /* 限制文字行数，避免过长 */ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.photo-location { font-size: 0.85rem; color: var(--text-secondary); margin: 0; line-height: 1.4; display: flex; align-items: center; gap: 0.3rem; }

/* --- 15.4 灯箱样式 --- */
.lightbox { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); opacity: 0; transition: opacity 0.3s ease; }

.lightbox.show { opacity: 1; }

.lightbox-content { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; }

.lightbox-close { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 2.5rem; font-weight: bold; cursor: pointer; z-index: 1001; transition: opacity 0.3s ease, transform 0.3s ease; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(0, 0, 0, 0.5); }

.lightbox-close:hover { opacity: 0.7; transform: rotate(90deg); }

.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.15); color: #fff; border: none; font-size: 2.5rem; padding: 1.2rem; cursor: pointer; border-radius: 50%; transition: background 0.3s ease, transform 0.3s ease; z-index: 1001; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }

.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.1); }

.lightbox-prev:active, .lightbox-next:active { transform: translateY(-50%) scale(0.95); }

.lightbox-prev { left: 2rem; }

.lightbox-next { right: 2rem; }

#lightbox-image { max-width: 90%; max-height: 80%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.3s ease; }

.lightbox-info { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; background: rgba(0, 0, 0, 0.8); padding: 1rem 2rem; border-radius: var(--radius); max-width: 80%; backdrop-filter: blur(10px); }

.lightbox-info p { margin: 0.5rem 0; line-height: 1.6; }

#lightbox-counter { font-size: 0.9rem; opacity: 0.8; margin-top: 0.5rem; display: block; }

/* --- 15.5 响应式调整 --- */
@media (max-width: 768px) { .album-detail .album-title { font-size: 2rem; }
  .album-meta { flex-direction: column; gap: 0.5rem; }
  .photo-gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
  .photo-item img { aspect-ratio: 4/3; }
  .album-content { padding: 2rem 1.5rem; margin: 0 1rem 3rem; }
  .lightbox-content { padding: 1rem; }
  .lightbox-prev, .lightbox-next { font-size: 1.5rem; padding: 0.8rem; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-close { top: 1rem; right: 1rem; font-size: 1.5rem; }
  #lightbox-image { max-width: 95%; max-height: 75%; }
  .lightbox-info { bottom: 1rem; max-width: 90%; padding: 0.8rem 1.5rem; } }
@media (max-width: 480px) { .album-detail { padding: 0 0.5rem; }
  .album-info { padding: 1.5rem 0; }
  .album-detail .album-title { font-size: 1.8rem; }
  .photo-gallery { grid-template-columns: 1fr; gap: 1rem; } }
/* ===== 16. 文章筛选控件样式 ===== */
/* --- 16.1 文章头部控件 --- */
.posts-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }

.posts-header h3 { margin: 0; /* 重置标题margin，避免与你现有样式冲突 */ color: var(--text-color); font-size: 2rem; text-transform: uppercase; letter-spacing: 0.05em; }

.filter-controls { display: flex; align-items: center; gap: 1rem; }

/* --- 16.2 标签筛选下拉框 --- */
.tag-filter-select { padding: 0.6rem 1.2rem; border: 1px solid var(--border-color); border-radius: var(--radius-s); background: var(--card-bg); font-size: 0.9rem; color: var(--text-color); cursor: pointer; min-width: 140px; font-family: inherit; /* 继承你的字体设置 */ transition: border-color 0.3s ease, box-shadow 0.3s ease; /* 使用你的过渡时间 */ }

.tag-filter-select:hover { border-color: var(--link-color); }

.tag-filter-select:focus { outline: none; border-color: var(--link-color); box-shadow: 0 0 0 2px rgba(107, 79, 201, 0.2); /* 使用你的link-color */ }

/* --- 16.3 暗色主题适配 --- */
[data-theme="dark"] .tag-filter-select:focus { box-shadow: 0 0 0 2px rgba(188, 171, 255, 0.25); /* 使用暗色主题的link-color */ }

/* --- 16.4 无结果提示 --- */
#no-results { /* 继承你现有的 .no-posts 样式，无需重复定义 */ }

/* --- 16.5 响应式调整 --- */
@media (max-width: 768px) { .posts-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .filter-controls { width: 100%; justify-content: flex-end; }
  .tag-filter-select { min-width: 160px; padding: 0.7rem 1rem; } }
@media (max-width: 480px) { .posts-header { gap: 1rem; }
  .filter-controls { justify-content: stretch; }
  .tag-filter-select { width: 100%; min-width: unset; } }
/* ===== 17. About 页面增强样式 ===== */
.about-wrap { background: var(--card-bg); max-width: 760px; margin: 3rem auto; padding: 2.8rem 2.6rem; border: 1px solid var(--border-color); border-top: 5px double var(--link-color); border-radius: 0; box-shadow: var(--shadow); line-height: 1.95; font-family: "Noto Serif SC", "Songti SC", "STSong", "Times New Roman", Georgia, serif; }

.about-header { text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1.2rem; margin-bottom: 1.3rem; }

.about-wrap h1 { margin-bottom: 0.5rem; font-size: 2.2rem; letter-spacing: 0.08em; font-weight: 700; }

.about-subtitle { margin: 0; color: var(--text-secondary); font-size: 0.95rem; letter-spacing: 0.24em; text-transform: uppercase; }

.about-content { font-size: 1.05rem; }

.about-content::after { content: ""; display: table; clear: both; }

.about-content p { margin: 1.1rem 0; line-height: 1.9; text-align: left; text-indent: 2em; }

.about-content p:first-child { text-indent: 0; }

.about-content .image-small { float: left; max-width: 42%; margin: 0.3rem 1.4rem 0.8rem 0; border: 1px solid var(--border-color); padding: 0.2rem; background: var(--card-bg); }

.about-content .image-small img { max-width: 100%; height: auto; display: block; }

@media (max-width: 768px) { .about-wrap { padding: 2.1rem 1.4rem; margin: 2rem 1rem; }
  .about-wrap h1 { font-size: 1.8rem; }
  .about-content .image-small { float: none; display: block; margin: 0 auto 1.2rem; }
  .about-content p { text-indent: 1.5em; } }
/* ===== 18. Persona Homepage ===== */
.persona-page { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.persona-hero { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-end; margin-bottom: 1.5rem; padding: 2.4rem 0 0.2rem; }

.persona-kicker { margin-bottom: 0.7rem; color: var(--text-secondary); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; }

.persona-hero h1 { font-size: 3.2rem; line-height: 1.08; margin-bottom: 0.5rem; }

.persona-subtitle { color: var(--text-secondary); font-size: 1.08rem; }

.persona-switch { display: inline-flex; gap: 0.6rem; flex-wrap: wrap; padding: 0.35rem; border: 1px solid var(--border-color); background: var(--card-bg); }

.persona-switch-btn { border: 1px solid transparent; background: transparent; color: var(--text-color); padding: 0.7rem 1rem; cursor: pointer; font-family: inherit; font-size: 0.95rem; }

.persona-switch-btn.is-active, .persona-switch-btn:hover { background: var(--text-color); border-color: var(--text-color); color: var(--bg-color); }

.persona-body { display: grid; gap: 1.5rem; }

.persona-card { background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: var(--shadow); }

.persona-intro-card, .persona-section-card { padding: 1.8rem; }

.persona-intro-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.8rem; align-items: start; }

.persona-portrait .image-container { margin: 0; }

.persona-portrait .image-small { max-width: 220px; margin: 0; border: 1px solid var(--border-color); padding: 0.25rem; background: var(--card-bg); }

.persona-portrait .image-small img { display: block; }

.persona-prose p { margin-bottom: 1rem; line-height: 1.9; }

.persona-prose p:last-child { margin-bottom: 0; }

.persona-prose-melancholy { font-size: 1.06rem; font-family: "Noto Serif SC", "Songti SC", "STSong", "Times New Roman", serif; }

.persona-prose-secular { font-size: 1.02rem; }

.persona-main-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.5rem; }

.persona-section-card h2 { margin-bottom: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border-color); font-size: 1.35rem; }

.persona-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem; }

.persona-section-head h2 { margin-bottom: 0; }

.persona-section-head p { color: var(--text-secondary); max-width: 36rem; }

.persona-info-list p, .persona-entry p { margin-bottom: 0.8rem; }

.persona-entry + .persona-entry { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--border-color); }

.persona-entry-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.45rem; }

.persona-entry-head h3 { margin: 0; font-size: 1.05rem; }

.persona-entry-head span { color: var(--text-muted); font-size: 0.92rem; white-space: nowrap; }

.paper-list { display: grid; gap: 1rem; }

.paper-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.2rem; padding: 1rem; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.25); }

[data-theme="dark"] .paper-card { background: rgba(255, 255, 255, 0.02); }

.paper-card-media { min-height: 140px; }

.paper-card-image { display: block; width: 100%; height: 100%; min-height: 140px; object-fit: cover; border: 1px solid var(--border-color); background: var(--card-bg); }

.paper-card-placeholder { width: 100%; height: 100%; min-height: 140px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-color); color: var(--text-muted); font-size: 0.95rem; letter-spacing: 0.05em; background: linear-gradient(135deg, transparent 0, transparent 44%, var(--border-color) 44%, var(--border-color) 46%, transparent 46%, transparent 54%, var(--border-color) 54%, var(--border-color) 56%, transparent 56%, transparent 100%); }

.paper-card-topline { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; color: var(--text-secondary); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }

.paper-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; line-height: 1.4; }

.paper-card h3 a { color: inherit; text-decoration: none; }

.paper-card h3 a:hover { color: var(--link-color); }

.paper-authors { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }

.paper-authors a, .paper-authors span { color: inherit; }

.paper-authors a:hover { color: var(--link-color); }

.author-me, .paper-authors .author-me, .paper-authors a.author-me { color: var(--link-color); font-weight: 600; }

.paper-links { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.paper-links a { display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; border: 1px solid var(--border-color); background: var(--code-bg); color: var(--text-color); }

.paper-links a:hover { background: var(--link-color); border-color: var(--link-color); color: #fff; }

.paper-link-muted { display: inline-flex; align-items: center; padding: 0.45rem 0.8rem; border: 1px dashed var(--border-color); background: transparent; color: var(--text-muted); }

@media (max-width: 960px) { .persona-hero, .persona-main-grid, .persona-intro-grid, .paper-card { grid-template-columns: 1fr; }
  .persona-hero { display: grid; align-items: start; } }
@media (max-width: 768px) { .persona-page { padding: 0 12px; }
  .persona-hero { padding-top: 1rem; }
  .persona-hero h1 { font-size: 2.4rem; }
  .persona-intro-card, .persona-section-card { padding: 1.4rem; }
  .persona-portrait .image-small { max-width: 180px; margin: 0 auto; }
  .persona-section-head, .persona-entry-head, .paper-card-topline { flex-direction: column; align-items: start; }
  .persona-entry-head span { white-space: normal; } }
