/* ============================================================
   背景由 html 控制 — 防止亮色模式闪烁
   ============================================================ */
html {
  background: #0b0907;
}
html.light {
  background: #f6f2ec;
}
body {
  background: transparent !important;
}
html.light body {
  background: transparent !important;
}

/* ============================================================
   全局重置 & 字体 — 佛教禅意风格
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', '宋体', serif;
  color: #d4cdc4;
  transition: background 0.4s, color 0.4s;
  line-height: 1.9;
  scroll-behavior: smooth;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #1a1612; }
::-webkit-scrollbar-thumb { background: #6a5a4a; border-radius: 8px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 头部 ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11, 9, 7, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #2a221a;
  transition: background 0.4s, border-color 0.4s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 8px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}
.logo-icon {
  font-size: 28px;
  color: #c9ab8b;
  flex-shrink: 0;
}
.logo-text {
  font-size: 26px;
  letter-spacing: 4px;
  font-weight: 400;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e8ddd0;
  background: linear-gradient(135deg, #e8ddd0 0%, #b8a080 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.logo-sub {
  font-size: 12px;
  color: #7a6a5a;
  letter-spacing: 2px;
  -webkit-text-fill-color: #7a6a5a;
  flex-shrink: 0;
  display: inline-block;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== 导航 ===== */
#mainNav {
  display: flex;
  gap: 4px;
  align-items: center;
}
#mainNav a {
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 15px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #b0a090;
  transition: 0.25s;
  letter-spacing: 1px;
  border: 1px solid transparent;
  white-space: nowrap;
}
#mainNav a:hover,
#mainNav a.active {
  color: #e8ddd0;
  background: rgba(184, 160, 128, 0.12);
  border-color: #4a3a2a;
}

.theme-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a221a;
  color: #b8a080;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0;
}
.theme-btn:hover {
  background: rgba(184, 160, 128, 0.15);
  border-color: #b8a080;
}

/* ===== 语言选择器 (桌面) ===== */
.language-selector { position: relative; flex-shrink: 0; }
.language-current {
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid transparent;
  gap: 4px;
}
.language-current:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #2a221a;
}
.language-flag {
  width: 20px;
  height: 14px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.language-name {
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #a89888;
  white-space: nowrap;
}
.language-current .fa-chevron-down {
  font-size: 10px;
  color: #6a6058;
  margin-left: 2px;
}
.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  max-height: 420px;
  background: #161210;
  border-radius: 16px;
  border: 1px solid #2a221a;
  box-shadow: 0 20px 56px rgba(0,0,0,0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.language-selector.active .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.language-regions-container {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}
.language-regions-container::-webkit-scrollbar { width: 4px; }
.language-regions-container::-webkit-scrollbar-track { background: transparent; }
.language-regions-container::-webkit-scrollbar-thumb { background: #2a221a; border-radius: 4px; }
.language-region { margin-bottom: 16px; }
.language-region:last-child { margin-bottom: 0; }
.region-title {
  font-size: 13px;
  font-weight: 600;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #b8a080;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a221a;
  position: sticky;
  top: 0;
  background: #161210;
  z-index: 1;
}
.region-languages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 4px;
}
.language-option {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #b0a898;
  transition: 0.2s;
  gap: 6px;
}
.language-option:hover { background: rgba(255, 255, 255, 0.05); }
.language-option.active {
  background: rgba(184, 160, 128, 0.12);
  color: #e8ddd0;
}
.language-option .language-flag { width: 16px; height: 12px; }
.language-option span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 移动端语言弹窗 ===== */
.mobile-language-toggle {
  display: none !important;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a221a;
  color: #a89888;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}
.mobile-language-toggle:hover {
  background: rgba(184,160,128,0.1);
  border-color: #b8a080;
}
.mobile-language-modal {
  display: none !important;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.mobile-language-modal.active { display: flex !important; }
.mobile-language-content {
  background: #161210;
  width: 92%;
  max-width: 380px;
  max-height: 70vh;
  border-radius: 16px;
  border: 1px solid #2a221a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mobile-language-header {
  padding: 14px 20px;
  border-bottom: 1px solid #2a221a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.mobile-language-header h3 {
  color: #e8ddd0;
  font-size: 16px;
  font-weight: 400;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  margin: 0;
}
.mobile-language-close {
  background: none; border: none;
  color: #a89888; font-size: 20px;
  cursor: pointer;
}
.mobile-language-close:hover { color: #e8ddd0; }
.mobile-language-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.mobile-language-option {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #1a1612;
  cursor: pointer;
  transition: 0.2s;
  gap: 10px;
}
.mobile-language-option:last-child { border-bottom: none; }
.mobile-language-option:hover { background: rgba(255,255,255,0.03); }
.mobile-language-option.active { background: rgba(184,160,128,0.08); }
.mobile-language-flag {
  width: 22px; height: 16px;
  background-size: cover; background-position: center;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.mobile-language-name {
  font-size: 15px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #d4cdc4;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a221a;
  color: #a89888;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  background: rgba(184,160,128,0.1);
  border-color: #b8a080;
}

/* ===== Hero (首页) ===== */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #1f1812 0%, #0b0907 70%);
  border-bottom: 1px solid #1f1812;
}
.hero h1 {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 6px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e8ddd0;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero .sub {
  font-size: 18px;
  color: #b8a080;
  letter-spacing: 3px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  margin-bottom: 24px;
}
.hero .desc {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: #b0a090;
  line-height: 2.2;
  letter-spacing: 0.5px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
}
.hero .dharma-icon {
  font-size: 48px;
  color: #c9ab8b;
  opacity: 0.6;
  margin-bottom: 16px;
  display: inline-block;
}

/* ===== 通用 Section ===== */
.section {
  padding: 70px 0 60px;
  border-bottom: 1px solid #1a1612;
}
.section:last-of-type { border-bottom: none; }
.section-title {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 4px;
  text-align: center;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #d4cdc4;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: #8a7a6a;
  font-size: 16px;
  letter-spacing: 2px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  margin-bottom: 44px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1f1812;
  border-radius: 20px;
  padding: 32px 24px 28px;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  text-align: center;
}
.card:hover {
  border-color: #4a3a2a;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}
.card-icon {
  font-size: 38px;
  color: #b8a080;
  margin-bottom: 16px;
  display: inline-block;
}
.card h3 {
  font-size: 22px;
  font-weight: 400;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e0d5c8;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.card p {
  font-size: 15px;
  color: #b0a090;
  line-height: 2;
  letter-spacing: 0.5px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
}

/* ===== 文章列表 (首页) ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
.article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #1a1612;
  transition: 0.2s;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.article-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: #3a2a1a;
}
.article-item .title {
  font-size: 16px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #d0c8be;
  letter-spacing: 1px;
  flex: 1 1 180px;
}
.article-item .title i {
  color: #b8a080;
  margin-right: 12px;
  font-size: 14px;
  width: 18px;
  text-align: center;
}
.article-item .meta {
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #7a6a5a;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.article-item .meta i {
  margin-right: 4px;
}

/* ===== 列表页特有 ===== */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #1f1812 0%, #0b0907 70%);
  border-bottom: 1px solid #1f1812;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 6px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e8ddd0;
  margin-bottom: 8px;
}
.page-hero .sub {
  font-size: 16px;
  color: #b8a080;
  letter-spacing: 3px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}

.articles-grid {
  padding: 50px 0 70px;
}
.articles-grid .container { max-width: 960px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-bar a {
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #b0a090;
  border: 1px solid #2a221a;
  transition: 0.25s;
  letter-spacing: 1px;
}
.filter-bar a:hover,
.filter-bar a.active {
  color: #e8ddd0;
  background: rgba(184, 160, 128, 0.10);
  border-color: #4a3a2a;
}

.article-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1a1612;
  border-radius: 16px;
  transition: 0.3s;
  gap: 16px;
  flex-wrap: wrap;
}
.article-card:hover {
  border-color: #4a3a2a;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.article-card .info .title {
  font-size: 18px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #d4cdc4;
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 4px;
}
.article-card .info .title i {
  color: #b8a080;
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.article-card .info .summary {
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
  color: #8a7a6a;
  margin-top: 4px;
  padding-left: 32px;
  letter-spacing: 0.5px;
}
.article-card .meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #7a6a5a;
  flex-shrink: 0;
}
.article-card .meta i { margin-right: 4px; }
.article-card .meta .tag {
  background: rgba(184, 160, 128, 0.08);
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid #2a221a;
  color: #b0a090;
  font-size: 12px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}

/* ===== 内容页特有 ===== */
.content-hero {
  padding: 40px 0 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #1f1812 0%, #0b0907 70%);
  border-bottom: 1px solid #1f1812;
}
.content-hero .breadcrumb {
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #7a6a5a;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.content-hero .breadcrumb a { color: #b8a080; }
.content-hero .breadcrumb a:hover { color: #e8ddd0; }
.content-hero h1 {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 3px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e8ddd0;
  margin-bottom: 8px;
}
.content-hero .meta {
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #8a7a6a;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.content-hero .meta i { margin-right: 4px; }
.content-hero .meta .tag {
  background: rgba(184, 160, 128, 0.08);
  padding: 2px 14px;
  border-radius: 20px;
  border: 1px solid #2a221a;
  color: #b0a090;
  font-size: 12px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}

.article-body { padding: 48px 0 60px; }
.article-body .container { max-width: 820px; }
.article-body .content {
  font-size: 17px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
  color: #d0c8be;
  line-height: 2.2;
  letter-spacing: 0.5px;
}
.article-body .content p { margin-bottom: 1.5em; }
.article-body .content h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 2px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e0d5c8;
  margin: 2em 0 0.8em;
  border-left: 3px solid #b8a080;
  padding-left: 16px;
}
.article-body .content h3 {
  font-size: 20px;
  font-weight: 400;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #d4cdc4;
  margin: 1.6em 0 0.6em;
  letter-spacing: 1px;
}
.article-body .content blockquote {
  background: rgba(255, 255, 255, 0.02);
  border-left: 4px solid #b8a080;
  padding: 16px 24px;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
  color: #b8a898;
  font-style: italic;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
}
.article-body .content ul {
  margin: 1em 0 1.5em 1.8em;
  list-style: disc;
}
.article-body .content ul li {
  margin-bottom: 0.4em;
  color: #c8c0b6;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
}
.article-body .content .highlight {
  background: rgba(184, 160, 128, 0.06);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #2a221a;
  margin: 1.5em 0;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
}

.related-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #1a1612;
}
.related-articles h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #c9b08a;
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-grid a {
  display: block;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1a1612;
  border-radius: 12px;
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #b0a090;
  transition: 0.3s;
  letter-spacing: 0.5px;
}
.related-grid a:hover {
  border-color: #4a3a2a;
  background: rgba(255, 255, 255, 0.04);
  color: #e8ddd0;
}
.related-grid a i { margin-right: 8px; color: #b8a080; }

/* ===== 搜索页特有 ===== */
.search-hero {
  padding: 48px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #1f1812 0%, #0b0907 70%);
  border-bottom: 1px solid #1f1812;
}
.search-hero h1 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 4px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e8ddd0;
  margin-bottom: 16px;
}
.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #2a221a;
  border-radius: 60px;
  overflow: hidden;
  transition: 0.3s;
}
.search-box:focus-within {
  border-color: #6a5a4a;
  box-shadow: 0 0 20px rgba(184, 160, 128, 0.06);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #d4cdc4;
  outline: none;
}
.search-box input::placeholder {
  color: #6a5a4a;
  letter-spacing: 1px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}
.search-box button {
  background: none;
  border: none;
  padding: 14px 24px;
  color: #b8a080;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}
.search-box button:hover { color: #e8ddd0; }

.search-results { padding: 40px 0 60px; }
.search-results .container { max-width: 880px; }
.result-stats {
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #8a7a6a;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1a1612;
  letter-spacing: 1px;
}
.result-stats strong {
  color: #d4cdc4;
  font-weight: 400;
}

.result-item {
  padding: 20px 0;
  border-bottom: 1px solid #1a1612;
  transition: 0.2s;
}
.result-item:hover {
  background: rgba(255, 255, 255, 0.01);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}
.result-item .title {
  font-size: 20px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #e0d5c8;
  letter-spacing: 1px;
  font-weight: 400;
  margin-bottom: 4px;
}
.result-item .title a:hover { color: #c9ab8b; }
.result-item .title i {
  color: #b8a080;
  margin-right: 10px;
  font-size: 16px;
}
.result-item .snippet {
  font-size: 15px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
  color: #b0a090;
  line-height: 2;
  margin: 6px 0 8px 32px;
  letter-spacing: 0.5px;
}
.result-item .meta {
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #7a6a5a;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: 32px;
}
.result-item .meta i { margin-right: 4px; }
.result-item .meta .tag {
  background: rgba(184, 160, 128, 0.06);
  padding: 1px 12px;
  border-radius: 20px;
  border: 1px solid #2a221a;
  color: #b0a090;
  font-size: 12px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}

/* ===== 无结果 ===== */
.no-results {
  text-align: center;
  padding: 60px 0;
}
.no-results i {
  font-size: 48px;
  color: #4a3a2a;
  margin-bottom: 16px;
}
.no-results h3 {
  font-size: 22px;
  font-weight: 400;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #b0a090;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.no-results p {
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #7a6a5a;
}

/* ===== 分页 (通用) ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #2a221a;
  color: #b0a090;
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: 0.25s;
}
.pagination a:hover,
.pagination a.active {
  background: rgba(184, 160, 128, 0.10);
  border-color: #4a3a2a;
  color: #e8ddd0;
}
.pagination a.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ===== 底部 ===== */
#footer {
  background: #0a0806;
  border-top: 1px solid #1a1612;
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-section h4 {
  font-size: 16px;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  color: #c9b08a;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-section h4 i { margin-right: 8px; }
.footer-section p {
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', '宋体', serif;
  color: #8a7a6a;
  line-height: 2;
  letter-spacing: 0.5px;
}
.footer-section ul li {
  padding: 6px 0;
  border-bottom: 1px solid #14100e;
}
.footer-section ul li a {
  color: #b0a090;
  font-size: 14px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}
.footer-section ul li a:hover { color: #e8ddd0; }
.footer-bottom {
  border-top: 1px solid #1a1612;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #6a5a4a;
}
.footer-bottom .links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .links a {
  color: #6a5a4a;
  transition: 0.2s;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}
.footer-bottom .links a:hover { color: #b8a080; }

/* ============================================================
   亮色 — 所有选择器使用 html.light 前缀
   ============================================================ */
html.light {
  background: #f6f2ec;
  color: #3a322a;
}
html.light #header {
  background: rgba(246, 242, 236, 0.88);
  border-bottom-color: #dcd4ca;
}
html.light .logo-text {
  background: linear-gradient(135deg, #3a322a 0%, #6a5a4a 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .logo-sub { -webkit-text-fill-color: #8a7a6a; color: #8a7a6a; }
html.light #mainNav a { color: #6a5a4a; }
html.light #mainNav a:hover,
html.light #mainNav a.active { color: #2a221a; background: rgba(0,0,0,0.04); border-color: #c0b0a0; }
html.light .hero { background: radial-gradient(ellipse at 50% 20%, #e8e0d8 0%, #f6f2ec 70%); }
html.light .hero h1 { color: #2a221a; }
html.light .hero .sub { color: #6a5a4a; }
html.light .hero .desc { color: #5a4a3a; }
html.light .card { background: rgba(255,255,255,0.5); border-color: #dcd4ca; }
html.light .card:hover { background: #ffffff; border-color: #b8a898; }
html.light .card h3 { color: #2a221a; }
html.light .card p { color: #5a4a3a; }
html.light .section-title { color: #2a221a; }
html.light .article-item { border-color: #dcd4ca; }
html.light .article-item:hover { background: rgba(0,0,0,0.02); border-color: #b8a898; }
html.light .article-item .title { color: #3a322a; }
html.light .article-item .meta { color: #8a7a6a; }

html.light .page-hero { background: radial-gradient(ellipse at 50% 20%, #e8e0d8 0%, #f6f2ec 70%); }
html.light .page-hero h1 { color: #2a221a; }
html.light .page-hero .sub { color: #6a5a4a; }
html.light .filter-bar a { border-color: #d0c8be; color: #6a5a4a; }
html.light .filter-bar a:hover,
html.light .filter-bar a.active { color: #2a221a; border-color: #b8a898; background: rgba(0,0,0,0.04); }
html.light .article-card { background: rgba(255,255,255,0.4); border-color: #dcd4ca; }
html.light .article-card:hover { background: #ffffff; border-color: #b8a898; }
html.light .article-card .info .title { color: #3a322a; }
html.light .article-card .info .summary { color: #7a6a5a; }
html.light .article-card .meta .tag { border-color: #d0c8be; color: #6a5a4a; background: rgba(0,0,0,0.03); }

html.light .content-hero { background: radial-gradient(ellipse at 50% 20%, #e8e0d8 0%, #f6f2ec 70%); }
html.light .content-hero h1 { color: #2a221a; }
html.light .content-hero .meta { color: #6a5a4a; }
html.light .content-hero .meta .tag { border-color: #d0c8be; color: #6a5a4a; }
html.light .content-hero .breadcrumb { color: #8a7a6a; }
html.light .content-hero .breadcrumb a { color: #6a5a4a; }
html.light .content-hero .breadcrumb a:hover { color: #2a221a; }
html.light .article-body .content { color: #3a322a; }
html.light .article-body .content h2 { color: #2a221a; border-left-color: #b8a898; }
html.light .article-body .content h3 { color: #3a322a; }
html.light .article-body .content blockquote { background: rgba(0,0,0,0.02); border-left-color: #b8a898; color: #5a4a3a; }
html.light .article-body .content ul li { color: #4a3a32; }
html.light .article-body .content .highlight { border-color: #dcd4ca; background: rgba(0,0,0,0.02); }
html.light .related-articles { border-color: #dcd4ca; }
html.light .related-articles h3 { color: #5a4a3a; }
html.light .related-grid a { background: rgba(255,255,255,0.4); border-color: #dcd4ca; color: #5a4a3a; }
html.light .related-grid a:hover { background: #ffffff; border-color: #b8a898; color: #2a221a; }

html.light .search-hero { background: radial-gradient(ellipse at 50% 20%, #e8e0d8 0%, #f6f2ec 70%); }
html.light .search-hero h1 { color: #2a221a; }
html.light .search-box { background: rgba(255,255,255,0.5); border-color: #d0c8be; }
html.light .search-box input { color: #3a322a; }
html.light .search-box input::placeholder { color: #8a7a6a; }
html.light .search-box button { color: #6a5a4a; }
html.light .search-box button:hover { color: #2a221a; }
html.light .result-stats { border-color: #dcd4ca; color: #8a7a6a; }
html.light .result-stats strong { color: #3a322a; }
html.light .result-item { border-color: #dcd4ca; }
html.light .result-item .title { color: #2a221a; }
html.light .result-item .title a:hover { color: #6a5a4a; }
html.light .result-item .snippet { color: #5a4a3a; }
html.light .result-item .meta { color: #8a7a6a; }
html.light .result-item .meta .tag { border-color: #d0c8be; color: #6a5a4a; background: rgba(0,0,0,0.02); }
html.light .no-results i { color: #c0b8ae; }
html.light .no-results h3 { color: #5a4a3a; }
html.light .no-results p { color: #8a7a6a; }

html.light .pagination a { border-color: #d0c8be; color: #6a5a4a; }
html.light .pagination a:hover,
html.light .pagination a.active { color: #2a221a; border-color: #b8a898; background: rgba(0,0,0,0.04); }

html.light #footer { background: #f0ece6; border-top-color: #dcd4ca; }
html.light .footer-section h4 { color: #5a4a3a; }
html.light .footer-section p { color: #6a5a4a; }
html.light .footer-section ul li { border-color: #e0d8ce; }
html.light .footer-section ul li a { color: #5a4a3a; }
html.light .footer-section ul li a:hover { color: #2a221a; }
html.light .footer-bottom { border-color: #dcd4ca; color: #8a7a6a; }

html.light .language-dropdown { background: #f6f2ec; border-color: #dcd4ca; }
html.light .region-title { color: #5a4a3a; border-bottom-color: #dcd4ca; background: #f6f2ec; }
html.light .language-option { color: #5a4a3a; }
html.light .language-option.active { background: rgba(0,0,0,0.05); color: #2a221a; }
html.light .language-current { background: rgba(0,0,0,0.03); }
html.light .language-current:hover { border-color: #c0b0a0; }
html.light .mobile-language-content { background: #f6f2ec; border-color: #dcd4ca; }
html.light .mobile-language-header { border-color: #dcd4ca; }
html.light .mobile-language-header h3 { color: #2a221a; }
html.light .mobile-language-option { border-color: #e0d8ce; }
html.light .mobile-language-name { color: #3a322a; }
html.light .theme-btn,
html.light .mobile-menu-btn,
html.light .mobile-language-toggle { border-color: #c0b0a0; color: #5a4a3a; }

/* ============================================================
   ★ 朗读模块（浏览器 TTS）
   ============================================================ */

.simple-tts-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 0 28px;
  padding: 0;
  background: none;
  border: none;
}

.simple-tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  background: none;
  color: #b0a090;
  border: none;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.25s ease;
  font-family: '华文楷体', 'KaiTi', 'Noto Serif SC', 'Georgia', serif;
  white-space: nowrap;
  letter-spacing: 2px;
}
.simple-tts-btn:hover {
  color: #e8ddd0;
}
.simple-tts-btn i {
  font-size: 15px;
}

.simple-tts-btn[data-action="play"] {
  color: #c9ab8b;
  font-weight: 500;
}
.simple-tts-btn[data-action="play"]:hover {
  color: #e8ddd0;
}

.simple-tts-speed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  color: #8a7a6a;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}
.simple-tts-speed i {
  color: #c9ab8b;
  font-size: 13px;
  opacity: 0.85;
}
.simple-tts-speed input[type="range"] {
  width: 90px;
  height: 4px;
  accent-color: #c9ab8b;
  cursor: pointer;
  background: transparent;
}
.simple-tts-speed span {
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #b0a090;
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}

/* 逐句高亮：所有块级元素通用 */
.simple-tts-active {
  background: rgba(201, 171, 139, 0.10) !important;
  border-radius: 6px !important;
  transition: background 0.35s ease;
  box-shadow: 0 0 0 1px rgba(201, 171, 139, 0.15);
}

html.light .simple-tts-btn {
  color: #6a5a4a;
}
html.light .simple-tts-btn:hover {
  color: #b8a080;
}
html.light .simple-tts-btn[data-action="play"] {
  color: #a08050;
}
html.light .simple-tts-btn[data-action="play"]:hover {
  color: #6a5a4a;
}
html.light .simple-tts-speed {
  color: #8a7a6a;
}
html.light .simple-tts-speed i {
  color: #a08050;
}
html.light .simple-tts-speed span {
  color: #6a5a4a;
}
html.light .simple-tts-active {
  background: rgba(176, 130, 80, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(176, 130, 80, 0.18);
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex !important; }
  .mobile-language-toggle { display: flex !important; }
  .language-selector.desktop-only { display: none !important; }

  #mainNav {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(11,9,7,0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 6px;
    border-bottom: 1px solid #2a221a;
    display: none;
    align-items: stretch;
  }
  #mainNav.active { display: flex; }
  #mainNav a { text-align: center; padding: 10px 0; }
  html.light #mainNav { background: rgba(246,242,236,0.96); }

  .hero h1 { font-size: 36px; letter-spacing: 4px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom .links { justify-content: center; }

  .article-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .article-item .title { flex: unset; width: 100%; }
  .article-item .meta { width: 100%; justify-content: flex-start; }

  .page-hero h1 { font-size: 30px; letter-spacing: 4px; }
  .article-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px;
  }
  .article-card .info .summary { padding-left: 0; margin-top: 6px; }
  .article-card .meta { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  .content-hero h1 { font-size: 28px; letter-spacing: 2px; }
  .content-hero .meta { gap: 12px; font-size: 13px; flex-wrap: wrap; }
  .article-body .content { font-size: 16px; }
  .article-body .content h2 { font-size: 22px; }
  .article-body .content h3 { font-size: 19px; }
  .related-grid { grid-template-columns: 1fr; }

  .search-hero h1 { font-size: 26px; letter-spacing: 3px; }
  .search-box input { padding: 12px 16px; font-size: 14px; }
  .search-box button { padding: 12px 16px; }
  .result-item .title { font-size: 18px; }
  .result-item .snippet { margin-left: 0; }
  .result-item .meta { margin-left: 0; }

  /* 朗读模块移动端 */
  .simple-tts-bar {
    gap: 16px;
    margin-bottom: 20px;
  }
  .simple-tts-btn {
    font-size: 14px;
  }
  .simple-tts-speed {
    font-size: 12px;
  }
  .simple-tts-speed input[type="range"] {
    width: 70px;
  }
  .simple-tts-speed span {
    min-width: 34px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 28px; letter-spacing: 3px; }
  .logo-text { font-size: 20px; letter-spacing: 2px; }
  .logo-sub { font-size: 10px; letter-spacing: 1px; }
  .logo-icon { font-size: 24px; }
  .nav-actions { gap: 6px; }
  .theme-btn, .mobile-menu-btn, .mobile-language-toggle { width: 34px; height: 34px; font-size: 14px; }

  .page-hero { padding: 40px 0 30px; }
  .page-hero h1 { font-size: 24px; letter-spacing: 3px; }
  .filter-bar a { padding: 4px 14px; font-size: 13px; }

  .content-hero { padding: 30px 0 20px; }
  .content-hero h1 { font-size: 22px; letter-spacing: 2px; }
  .article-body { padding: 30px 0 40px; }

  .search-hero { padding: 32px 0 28px; }
  .search-hero h1 { font-size: 22px; letter-spacing: 2px; }
  .result-item .title { font-size: 16px; }
  .result-item .snippet { font-size: 14px; }
}

@media (min-width: 769px) {
  .language-selector.desktop-only { display: block; }
  .mobile-language-toggle { display: none !important; }
}

/* ===== 滚动边距 ===== */
:target {
  scroll-margin-top: 80px;
}
html {
  scroll-behavior: smooth;
}