/* ============================================================
   背景由 html 控制 — 防止亮色模式闪烁
   ============================================================ */
html {
  background: #0c0a08;
}
html.light {
  background: #f7f2eb;
}
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;
  line-height: 1.9;
  transition: color 0.5s;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 顶部导航 ===== */
.header {
  background: #0c0a08;
  padding: 14px 0;
  border-bottom: 2px solid #b8a080;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(12, 10, 8, 0.92);
  transition: background 0.5s, border-color 0.5s;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e8ddd0;
  transition: color 0.5s;
  flex-shrink: 1;
  min-width: 0;
}
.logo-mark {
  font-size: 32px;
  color: #d4b890;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 160, 128, 0.08);
  border: 2px solid #b8a08055;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
  flex-shrink: 0;
}
.logo h1 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 8px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  color: #e8ddd0;
  transition: color 0.5s;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: #a89888;
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  padding: 6px 14px;
  border-radius: 4px;
  transition: 0.3s;
  letter-spacing: 2px;
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: #e8ddd0;
  background: rgba(184, 160, 128, 0.12);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #b8a080;
  border-radius: 2px;
}

/* ===== 主题切换按钮 ===== */
.theme-btn {
  background: rgba(255, 255, 255, 0.06);
  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 12px 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid transparent;
  gap: 4px;
}
.language-current:hover {
  background: rgba(255, 255, 255, 0.08);
  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.1);
  flex-shrink: 0;
}
.language-name {
  font-size: 13px;
  color: #a89888;
  white-space: nowrap;
  transition: color 0.5s;
}
.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: 12px;
  border: 1px solid #2a221a;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.3s;
  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;
  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;
  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: none;
  border: none;
  color: #a89888;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  transition: 0.3s;
}
.mobile-language-toggle:hover {
  color: #e8ddd0;
}
.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;
  margin: 0;
}
.mobile-language-close {
  background: none;
  border: none;
  color: #a89888;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}
.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;
  color: #d4cdc4;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #a89888;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: 0.3s;
}
.mobile-menu-btn:hover {
  color: #e8ddd0;
}

/* ============================================================
   首页样式
   ============================================================ */

.hero {
  background: radial-gradient(ellipse at 50% 30%, #2a221a, #0c0a08 70%);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  border-bottom: 2px solid #b8a08055;
  overflow: hidden;
  transition: background 0.5s, border-color 0.5s;
}
.hero::before {
  content: "☸";
  position: absolute;
  left: 5%;
  top: 15%;
  font-size: 280px;
  opacity: 0.04;
  color: #b8a080;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero::after {
  content: "卍";
  position: absolute;
  right: 5%;
  bottom: 12%;
  font-size: 220px;
  opacity: 0.04;
  color: #b8a080;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184, 160, 128, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-lotus {
  font-size: 64px;
  color: #d4b890;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 60px rgba(184, 160, 128, 0.15);
}
.hero h2 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 16px;
  color: #e8ddd0;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  margin-bottom: 20px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  transition: color 0.5s;
}
.hero-verse {
  background: rgba(12, 10, 8, 0.6);
  backdrop-filter: blur(8px);
  display: inline-block;
  padding: 20px 48px;
  border-radius: 80px;
  border: 1px solid #b8a08044;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
  transition: background 0.5s, border-color 0.5s;
}
.hero-verse p {
  font-size: 22px;
  line-height: 2;
  color: #e8ddd0;
  font-weight: 300;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  font-style: italic;
  transition: color 0.5s;
}
.verse-source {
  font-size: 14px;
  margin-top: 4px;
  opacity: 0.5;
  letter-spacing: 4px;
  font-style: normal;
  color: #b8a080;
  transition: color 0.5s;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 56px 0 24px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 300;
  color: #e8ddd0;
  letter-spacing: 6px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: color 0.5s;
}
.section-header h2 i {
  color: #b8a080;
  font-size: 24px;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #b8a08066, transparent);
  transition: background 0.5s;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.card {
  background: linear-gradient(145deg, #161210, #0f0d0b);
  border-radius: 24px;
  padding: 32px 30px;
  border: 1px solid #2a221a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b8a080, transparent);
  opacity: 0;
  transition: 0.4s;
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  border-color: #b8a08055;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.card-icon {
  font-size: 34px;
  color: #b8a080;
  margin-bottom: 2px;
}
.card h3 {
  font-size: 22px;
  font-weight: 400;
  color: #e8ddd0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: color 0.5s;
}
.card h3 i {
  color: #b8a080;
  font-size: 18px;
}
.card p {
  color: #b0a898;
  margin-bottom: 10px;
  font-size: 15.5px;
  transition: color 0.5s;
}
.card ul {
  padding-left: 0;
  list-style: none;
}
.card ul li {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: #b0a898;
  transition: color 0.5s;
}
.card ul li i {
  color: #b8a080;
  font-size: 8px;
}
.highlight-box {
  background: #1a1612;
  padding: 14px 20px;
  border-radius: 40px;
  border-left: 4px solid #b8a080;
  margin: 12px 0 2px;
  color: #d4cdc4;
  font-size: 14.5px;
  border: 1px solid #2a221a;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.highlight-box i {
  color: #b8a080;
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid #b8a080;
  padding: 6px 28px;
  border-radius: 40px;
  color: #e8ddd0;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  transition: 0.3s;
  background: transparent;
  letter-spacing: 2px;
}
.btn-outline:hover {
  background: #b8a080;
  color: #0c0a08;
  box-shadow: 0 4px 24px rgba(184, 160, 128, 0.2);
}
.badge {
  background: #1a1612;
  color: #b8a080;
  padding: 2px 16px;
  border-radius: 30px;
  font-size: 13px;
  border: 1px solid #2a221a;
  display: inline-block;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}

.mid-bar {
  background: linear-gradient(145deg, #161210, #0f0d0b);
  border-radius: 24px;
  padding: 32px 38px;
  margin: 36px 0 18px;
  border: 1px solid #2a221a;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.mid-bar .text {
  flex: 2;
  min-width: 220px;
}
.mid-bar .text h3 {
  font-size: 24px;
  font-weight: 400;
  color: #e8ddd0;
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  margin-bottom: 6px;
  transition: color 0.5s;
}
.mid-bar .text h3 i {
  color: #b8a080;
}
.mid-bar .text p {
  font-size: 16px;
  color: #b0a898;
  transition: color 0.5s;
}
.mid-bar .side {
  flex: 1;
  background: #1a1612;
  padding: 16px 22px;
  border-radius: 40px;
  border-left: 4px solid #b8a080;
  min-width: 150px;
  border: 1px solid #2a221a;
  transition: background 0.5s, border-color 0.5s;
}
.mid-bar .side .badge {
  background: #0f0d0b;
}
.mid-bar .text .dharma-quote {
  margin-top: 10px;
  padding: 8px 22px;
  border-radius: 40px;
  display: inline-block;
  font-size: 14px;
  border: 1px solid #2a221a;
  transition: background 0.5s, border-color 0.5s;
  background: #1a1612;
}
.mid-bar .text .dharma-quote i {
  color: #b8a080;
}
.mid-bar .side .example-text {
  margin-top: 10px;
  font-style: italic;
  font-size: 15px;
  color: #b0a898;
  transition: color 0.5s;
}
.mid-bar .side .example-source {
  text-align: right;
  font-size: 13px;
  color: #6a6058;
  transition: color 0.5s;
}

/* ============================================================
   文章列表样式
   ============================================================ */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 28px;
}
.article-item {
  background: linear-gradient(145deg, #161210, #0f0d0b);
  border-radius: 20px;
  padding: 20px 28px;
  border: 1px solid #2a221a;
  transition: 0.3s;
}
.article-item:hover {
  border-color: #b8a08055;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.article-meta-top {
  display: flex;
  justify-content: space-between;
  color: #6a6058;
  font-size: 13px;
  margin-bottom: 2px;
  flex-wrap: wrap;
  gap: 8px;
}
.article-category {
  background: #1a1612;
  padding: 0 14px;
  border-radius: 30px;
  letter-spacing: 1px;
  border: 1px solid #2a221a;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
  font-size: 12px;
}
.article-title {
  font-size: 21px;
  font-weight: 400;
  margin: 4px 0 6px;
}
.article-title a {
  color: #e8ddd0;
  text-decoration: none;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: 0.3s;
}
.article-title a:hover {
  color: #b8a080;
}
.article-excerpt {
  color: #8a8078;
  margin-bottom: 8px;
  font-size: 14.5px;
  transition: color 0.5s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   列表页专用样式
   ============================================================ */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid #2a221a;
  transition: border-color 0.5s;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 300;
  color: #e8ddd0;
  letter-spacing: 12px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: color 0.5s;
}
.page-header p {
  color: #8a8078;
  font-size: 16px;
  margin-top: 10px;
  letter-spacing: 2px;
  transition: color 0.5s;
}
.page-header .breadcrumb {
  margin-top: 16px;
  font-size: 14px;
  color: #6a6058;
}
.page-header .breadcrumb a {
  color: #b8a080;
  text-decoration: none;
  transition: 0.3s;
}
.page-header .breadcrumb a:hover {
  color: #e8ddd0;
}
.page-header .breadcrumb span {
  color: #6a6058;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 20px;
  border-bottom: 1px solid #1a1612;
  transition: border-color 0.5s;
}
.filter-bar a {
  padding: 6px 20px;
  border-radius: 30px;
  border: 1px solid #2a221a;
  color: #a89888;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  letter-spacing: 1px;
}
.filter-bar a:hover {
  border-color: #b8a080;
  color: #e8ddd0;
}
.filter-bar a.active {
  background: #b8a080;
  color: #0c0a08;
  border-color: #b8a080;
}

.article-list-page {
  padding: 30px 0 50px;
}
.article-list-page .article-item {
  margin-bottom: 18px;
}
.article-list-page .article-item:hover {
  transform: translateY(-2px);
}

/* ============================================================
   内容页样式
   ============================================================ */
.content-wrapper {
  padding: 40px 0 60px;
}
.content-main {
  max-width: 860px;
  margin: 0 auto;
}

.content-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a221a;
  transition: border-color 0.5s;
}
.content-header h1 {
  font-size: 34px;
  font-weight: 400;
  color: #e8ddd0;
  line-height: 1.4;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: color 0.5s;
  margin-bottom: 12px;
}
.content-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #6a6058;
  font-size: 14px;
}
.content-header .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.content-header .meta i {
  color: #b8a080;
  font-size: 14px;
}

.content-body {
  font-size: 17px;
  line-height: 2.2;
  color: #d4cdc4;
  transition: color 0.5s;
}
.content-body p {
  margin-bottom: 20px;
  text-indent: 2em;
}
.content-body h2 {
  font-size: 26px;
  font-weight: 400;
  color: #e8ddd0;
  margin: 40px 0 16px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: color 0.5s;
  text-indent: 0;
}
.content-body h3 {
  font-size: 20px;
  font-weight: 400;
  color: #e8ddd0;
  margin: 28px 0 12px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: color 0.5s;
  text-indent: 0;
}
.content-body blockquote {
  border-left: 4px solid #b8a080;
  padding: 16px 24px;
  margin: 24px 0;
  background: #161210;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #b0a898;
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}
.content-body blockquote p {
  margin-bottom: 0;
  text-indent: 0;
}
.content-body .verse-block {
  background: #161210;
  border: 1px solid #2a221a;
  border-radius: 16px;
  padding: 24px 32px;
  margin: 24px 0;
  text-align: center;
  font-size: 19px;
  color: #e8ddd0;
  line-height: 2.4;
  transition: background 0.5s, border-color 0.5s, color 0.5s;
}
.content-body .verse-block .source {
  font-size: 14px;
  color: #6a6058;
  margin-top: 8px;
  display: block;
}
.content-body ul,
.content-body ol {
  padding-left: 28px;
  margin: 16px 0;
}
.content-body ul li,
.content-body ol li {
  margin-bottom: 8px;
}
.content-body .highlight-box {
  background: #1a1612;
  padding: 16px 24px;
  border-radius: 12px;
  border-left: 4px solid #b8a080;
  margin: 20px 0;
  transition: background 0.5s, border-color 0.5s;
}
.content-body .highlight-box i {
  color: #b8a080;
  margin-right: 8px;
}
.content-body .translation-info {
  text-align: right;
  color: #6a6058;
  font-size: 14px;
  text-indent: 0;
  margin-top: 30px;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #2a221a;
  transition: border-color 0.5s;
}
.content-tags span {
  background: #1a1612;
  padding: 2px 16px;
  border-radius: 30px;
  font-size: 13px;
  color: #8a8078;
  border: 1px solid #2a221a;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.content-tags span a {
  color: #8a8078;
  text-decoration: none;
  transition: 0.3s;
}
.content-tags span a:hover {
  color: #b8a080;
}

.content-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2a221a;
  transition: border-color 0.5s;
}
.content-nav a {
  color: #b0a898;
  text-decoration: none;
  transition: 0.3s;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-nav a:hover {
  color: #b8a080;
}
.content-nav .prev {
  justify-content: flex-start;
}
.content-nav .next {
  justify-content: flex-end;
}

.related-section {
  margin-top: 50px;
  padding-top: 32px;
  border-top: 1px solid #2a221a;
  transition: border-color 0.5s;
}
.related-section h3 {
  font-size: 22px;
  font-weight: 400;
  color: #e8ddd0;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  margin-bottom: 20px;
  transition: color 0.5s;
}
.related-section h3 i {
  color: #b8a080;
  margin-right: 10px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-item {
  background: linear-gradient(145deg, #161210, #0f0d0b);
  border-radius: 16px;
  padding: 18px 22px;
  border: 1px solid #2a221a;
  transition: 0.3s;
}
.related-item:hover {
  border-color: #b8a08055;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.related-item h4 {
  font-size: 16px;
  font-weight: 400;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}
.related-item h4 a {
  color: #e8ddd0;
  text-decoration: none;
  transition: 0.3s;
}
.related-item h4 a:hover {
  color: #b8a080;
}
.related-item .date {
  font-size: 12px;
  color: #6a6058;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: #0c0a08;
  color: #8a8078;
  padding: 44px 0 22px;
  margin-top: 48px;
  border-top: 2px solid #b8a08044;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 36px;
}
.footer-section h4 {
  color: #b8a080;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 12px;
  font-size: 17px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
  transition: color 0.5s;
}
.footer-section h4 i {
  color: #b8a080;
  margin-right: 8px;
}
.footer-section p {
  color: #6a6058;
  font-size: 14.5px;
  transition: color 0.5s;
  line-height: 1.9;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 5px;
}
.footer-section ul li a {
  color: #6a6058;
  text-decoration: none;
  transition: 0.3s;
  font-size: 14px;
}
.footer-section ul li a:hover {
  color: #b8a080;
}
.footer-verse {
  line-height: 2.2;
  font-size: 16px;
  background: #161210;
  padding: 14px 20px;
  border-radius: 16px;
  border-left: 4px solid #b8a080;
  color: #b0a898;
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.copyright {
  border-top: 1px solid #1a1612;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 3px;
  color: #4a4038;
  transition: color 0.5s, border-color 0.5s;
}

/* ============================================================
   亮色主题
   ============================================================ */
html.light {
  color: #3d352e;
}
html.light .header {
  background: #f7f2eb !important;
  border-bottom-color: #d6c9b8 !important;
}
html.light .logo {
  color: #3d352e;
}
html.light .logo h1 {
  color: #3d352e;
}
html.light .logo-mark {
  border-color: #c4a88266 !important;
  color: #5a3921 !important;
}
html.light .nav a {
  color: #7a6b5a;
  font-weight: 400;
}
html.light .nav a:hover,
html.light .nav a.active {
  color: #5a3921;
  background: rgba(90, 57, 33, 0.08);
}
html.light .nav a.active::after {
  background: #5a3921;
}
html.light .theme-btn {
  background: #ede5db;
  border-color: #d6c9b8;
  color: #5a3921;
}
html.light .theme-btn:hover {
  background: #ddd0be;
  border-color: #c4a882;
}
html.light .language-current {
  background: #ede5db;
  border-color: #d6c9b8;
}
html.light .language-current:hover {
  background: #ddd0be;
}
html.light .language-name {
  color: #3d352e;
  font-weight: 400;
}
html.light .language-dropdown {
  background: #f7f2eb;
  border-color: #d6c9b8;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
html.light .region-title {
  color: #5a3921;
  border-bottom-color: #d6c9b8;
  background: #f7f2eb;
}
html.light .language-option {
  color: #4a4036;
}
html.light .language-option:hover {
  background: #ede5db;
}
html.light .language-option.active {
  background: #e5d8c8;
  color: #5a3921;
}
html.light .mobile-language-content {
  background: #f7f2eb;
  border-color: #d6c9b8;
}
html.light .mobile-language-header {
  background: #ede5db;
  border-bottom-color: #d6c9b8;
}
html.light .mobile-language-header h3 {
  color: #3d352e;
}
html.light .mobile-language-option {
  border-bottom-color: #ede5db;
}
html.light .mobile-language-option:hover {
  background: #ede5db;
}
html.light .mobile-language-option.active {
  background: #e5d8c8;
}
html.light .mobile-language-name {
  color: #3d352e;
}
html.light .mobile-language-close {
  color: #7a6b5a;
}
html.light .mobile-language-close:hover {
  color: #3d352e;
}
html.light .hero {
  background: radial-gradient(ellipse at 50% 30%, #ede5db, #ddd0be 70%) !important;
  border-bottom-color: #d6c9b8 !important;
}
html.light .hero h2 {
  color: #3d352e;
  text-shadow: none;
  font-weight: 400;
}
html.light .hero-verse {
  background: rgba(247, 242, 235, 0.85);
  border-color: #c4a88266;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.04);
}
html.light .hero-verse p {
  color: #3d352e;
  font-weight: 400;
}
html.light .verse-source {
  color: #7a6b5a;
  opacity: 0.7;
}
html.light .section-header h2 {
  color: #3d352e;
  font-weight: 400;
}
html.light .section-line {
  background: linear-gradient(90deg, #c4a88266, transparent);
}
html.light .section-header h2 i {
  color: #5a3921;
}
html.light .card {
  background: #fcf9f5 !important;
  border-color: #e5d8c8 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
html.light .card:hover {
  border-color: #c4a882 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
}
html.light .card::before {
  background: linear-gradient(90deg, transparent, #c4a882, transparent);
}
html.light .card h3 {
  color: #3d352e;
  font-weight: 500;
}
html.light .card h3 i {
  color: #5a3921;
}
html.light .card p {
  color: #4a4036;
  font-size: 16px;
  line-height: 1.9;
}
html.light .card ul li {
  color: #4a4036;
  font-size: 15.5px;
}
html.light .card ul li i {
  color: #c4a882;
}
html.light .card .card-icon {
  color: #5a3921;
}
html.light .highlight-box {
  background: #ede5db !important;
  border-color: #d6c9b8;
  color: #3d352e;
  font-size: 15px;
}
html.light .highlight-box i {
  color: #5a3921;
}
html.light .btn-outline {
  border-color: #5a3921;
  color: #3d352e;
}
html.light .btn-outline:hover {
  background: #5a3921;
  color: #fcf9f5;
}
html.light .badge {
  background: #ede5db;
  border-color: #d6c9b8;
  color: #5a3921;
}
html.light .mid-bar {
  background: #fcf9f5 !important;
  border-color: #e5d8c8 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
html.light .mid-bar .text h3 {
  color: #3d352e;
  font-weight: 500;
}
html.light .mid-bar .text h3 i {
  color: #5a3921;
}
html.light .mid-bar .text p {
  color: #4a4036;
  font-size: 16px;
  line-height: 1.9;
}
html.light .mid-bar .side {
  background: #ede5db;
  border-color: #d6c9b8;
}
html.light .mid-bar .side .badge {
  background: #fcf9f5;
}
html.light .mid-bar .text .dharma-quote {
  background: #ede5db !important;
  border-color: #d6c9b8 !important;
  color: #3d352e !important;
}
html.light .mid-bar .side .example-text {
  color: #3d352e !important;
}
html.light .mid-bar .side .example-source {
  color: #3d352e !important;
}
html.light .article-item {
  background: #fcf9f5 !important;
  border-color: #e5d8c8 !important;
}
html.light .article-item:hover {
  border-color: #c4a882 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
html.light .article-title a {
  color: #3d352e;
  font-weight: 500;
}
html.light .article-title a:hover {
  color: #5a3921;
}
html.light .article-excerpt {
  color: #4a4036;
  font-size: 15px;
  line-height: 1.8;
}
html.light .article-category {
  background: #ede5db;
  border-color: #d6c9b8;
  color: #5a3921;
}
html.light .article-meta-top {
  color: #8a7a6a;
}
html.light .page-header {
  border-bottom-color: #d6c9b8;
}
html.light .page-header h1 {
  color: #3d352e;
}
html.light .page-header p {
  color: #7a6b5a;
}
html.light .page-header .breadcrumb a {
  color: #5a3921;
}
html.light .page-header .breadcrumb a:hover {
  color: #3d352e;
}
html.light .filter-bar {
  border-bottom-color: #e5d8c8;
}
html.light .filter-bar a {
  background: #fcf9f5 !important;
  border-color: #d6c9b8;
  color: #7a6b5a;
}
html.light .filter-bar a:hover {
  border-color: #c4a882;
  color: #3d352e;
  background: #ede5db !important;
}
html.light .filter-bar a.active {
  background: #5a3921 !important;
  color: #fcf9f5;
  border-color: #5a3921;
}
html.light .article-list-page .article-item:hover {
  transform: translateY(-2px);
}
html.light .content-header {
  border-bottom-color: #d6c9b8;
}
html.light .content-header h1 {
  color: #3d352e;
}
html.light .content-header .meta {
  color: #8a7a6a;
}
html.light .content-header .meta i {
  color: #5a3921;
}
html.light .content-body {
  color: #3d352e;
}
html.light .content-body h2 {
  color: #3d352e;
}
html.light .content-body h3 {
  color: #3d352e;
}
html.light .content-body blockquote {
  background: #ede5db;
  border-color: #c4a882;
  color: #4a4036;
}
html.light .content-body .verse-block {
  background: #ede5db;
  border-color: #d6c9b8;
  color: #3d352e;
}
html.light .content-body .verse-block .source {
  color: #7a6b5a;
}
html.light .content-body .highlight-box {
  background: #ede5db;
  border-color: #c4a882;
}
html.light .content-body .highlight-box i {
  color: #5a3921;
}
html.light .content-body .translation-info {
  color: #7a6b5a;
}
html.light .content-tags {
  border-top-color: #d6c9b8;
}
html.light .content-tags span {
  background: #ede5db;
  border-color: #d6c9b8;
  color: #7a6b5a;
}
html.light .content-tags span a {
  color: #7a6b5a;
}
html.light .content-tags span a:hover {
  color: #5a3921;
}
html.light .content-nav {
  border-top-color: #d6c9b8;
}
html.light .content-nav a {
  color: #7a6b5a;
}
html.light .content-nav a:hover {
  color: #5a3921;
}
html.light .related-section {
  border-top-color: #d6c9b8;
}
html.light .related-section h3 {
  color: #3d352e;
}
html.light .related-item {
  background: #fcf9f5;
  border-color: #e5d8c8;
}
html.light .related-item:hover {
  border-color: #c4a882;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
html.light .related-item h4 a {
  color: #3d352e;
}
html.light .related-item h4 a:hover {
  color: #5a3921;
}
html.light .footer {
  background: #ede5db !important;
  border-top-color: #d6c9b8 !important;
  color: #7a6b5a !important;
}
html.light .footer-section h4 {
  color: #5a3921;
}
html.light .footer-section h4 i {
  color: #5a3921;
}
html.light .footer-section p {
  color: #7a6b5a;
}
html.light .footer-section ul li a {
  color: #7a6b5a;
}
html.light .footer-section ul li a:hover {
  color: #5a3921;
}
html.light .footer-verse {
  background: #fcf9f5 !important;
  border-left-color: #5a3921;
  color: #3d352e;
}
html.light .copyright {
  color: #8a7a6a;
  border-top-color: #d6c9b8;
}

/* ============================================================
   ★★★ 朗读模块（浏览器 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: #a89888;
  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: #d4b890;
  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: #8a8078;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}
.simple-tts-speed i {
  color: #b8a080;
  font-size: 13px;
  opacity: 0.85;
}
.simple-tts-speed input[type="range"] {
  width: 90px;
  height: 4px;
  accent-color: #b8a080;
  cursor: pointer;
  background: transparent;
}
.simple-tts-speed span {
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #a89888;
  font-size: 13px;
  font-family: '华文楷体', 'KaiTi', 'Georgia', serif;
}

/* 逐句高亮（暗金） */
.simple-tts-active {
  background: rgba(184, 160, 128, 0.10) !important;
  border-radius: 6px !important;
  transition: background 0.35s ease;
  box-shadow: 0 0 0 1px rgba(184, 160, 128, 0.15);
}

/* 亮色主题适配 */
html.light .simple-tts-btn {
  color: #7a6b5a;
}
html.light .simple-tts-btn:hover {
  color: #3d352e;
}
html.light .simple-tts-btn[data-action="play"] {
  color: #5a3921;
}
html.light .simple-tts-btn[data-action="play"]:hover {
  color: #3d352e;
}
html.light .simple-tts-speed {
  color: #8a7a6a;
}
html.light .simple-tts-speed i {
  color: #5a3921;
}
html.light .simple-tts-speed span {
  color: #7a6b5a;
}
html.light .simple-tts-active {
  background: rgba(90, 57, 33, 0.10) !important;
  box-shadow: 0 0 0 1px rgba(90, 57, 33, 0.15);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 992px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .mobile-menu-btn {
    display: block !important;
  }
  .mobile-language-toggle {
    display: none !important;
  }
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header .container {
    position: relative;
  }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0c0a08;
    border-bottom: 2px solid #b8a080;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  html.light .nav {
    background: #f7f2eb;
    border-bottom-color: #d6c9b8;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }
  .nav.active {
    display: flex;
  }
  .nav a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    letter-spacing: 2px;
  }
  html.light .nav a {
    border-bottom-color: rgba(0, 0, 0, 0.05);
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .nav a.active::after {
    display: none;
  }
  .nav a:hover,
  .nav a.active {
    background: rgba(184, 160, 128, 0.1);
  }
  html.light .nav a:hover,
  html.light .nav a.active {
    background: rgba(90, 57, 33, 0.06);
  }
  .nav-tools {
    gap: 6px;
  }
  .logo h1 {
    font-size: 20px;
    letter-spacing: 4px;
    max-width: 200px;
  }
  .logo-mark {
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  .language-selector .language-name {
    display: none;
  }
  .language-selector .language-current {
    padding: 6px 8px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    justify-content: center;
    background: transparent;
  }
  .language-selector .language-current .fa-chevron-down {
    display: none;
  }
  .language-selector .language-current .language-flag {
    width: 20px;
    height: 14px;
    margin-right: 0;
  }
  .language-selector.active .language-current {
    background: rgba(255, 255, 255, 0.05);
  }
  html.light .language-selector.active .language-current {
    background: #ede5db;
  }
  .language-dropdown {
    width: 290px;
    right: -10px;
    top: calc(100% + 6px);
  }
  .region-languages {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-language-modal {
    display: none !important;
  }
  .hero h2 {
    font-size: 32px;
    letter-spacing: 8px;
  }
  .hero-verse p {
    font-size: 18px;
  }
  .hero-verse {
    padding: 14px 24px;
  }
  .hero {
    padding: 70px 0 60px;
  }
  .mid-bar {
    padding: 22px 20px;
  }
  .card {
    padding: 24px 20px;
  }
  .article-item {
    padding: 16px 18px;
  }
  .section-header h2 {
    font-size: 22px;
    letter-spacing: 4px;
  }
  .page-header h1 {
    font-size: 26px;
    letter-spacing: 6px;
  }
  .page-header {
    padding: 40px 0 24px;
  }
  .filter-bar a {
    font-size: 13px;
    padding: 4px 14px;
  }
  .content-header h1 {
    font-size: 26px;
  }
  .content-body {
    font-size: 16px;
  }
  .content-body h2 {
    font-size: 22px;
  }
  .content-body .verse-block {
    font-size: 17px;
    padding: 16px 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .content-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .content-nav .prev,
  .content-nav .next {
    justify-content: center;
  }

  .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) {
  .hero {
    padding: 50px 0;
  }
  .hero h2 {
    font-size: 24px;
    letter-spacing: 4px;
  }
  .hero-verse {
    padding: 10px 16px;
  }
  .hero-verse p {
    font-size: 16px;
  }
  .logo h1 {
    font-size: 18px;
    letter-spacing: 3px;
    max-width: 170px;
  }
  .logo-mark {
    font-size: 20px;
    width: 36px;
    height: 36px;
  }
  .language-dropdown {
    width: 280px;
    right: -10px;
  }
  .region-languages {
    grid-template-columns: 1fr;
  }
  .page-header h1 {
    font-size: 22px;
    letter-spacing: 4px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-bar a {
    font-size: 12px;
    padding: 3px 12px;
  }
  .content-header h1 {
    font-size: 22px;
  }
  .content-body {
    font-size: 15px;
  }
  .article-item {
    padding: 14px 16px;
  }
  .article-title {
    font-size: 17px;
  }
}

:target {
  scroll-margin-top: 80px;
}
html {
  scroll-behavior: smooth;
}