/* ===== 佛学词典站 样式 (fxcd.maogo1.cn) =====
   古风禅意：米白底 + 墨绿/金色点缀 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #3d3d3d;
  background: #f6f1e7 url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48cGF0aCBkPSJNMjAgMTBoNDBhMTAgMTAgMCAwIDEgMTAgMTB2NDBhMTAgMTAgMCAwIDEgMTAgMTBIMjBhMTAgMTAgMCAwIDEgMTAtMTBWMjBhMTAgMTAgMCAwIDEgMTAtMTB6IiBmaWxsPSJub25lIiBzdHJva2U9IiNlZGU1ZDQiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

a { color: #1f5f4a; text-decoration: none; }
a:hover { color: #b8860b; text-decoration: underline; }

/* ===== 头部 ===== */
.site-header {
  background: linear-gradient(135deg, #2f5d45, #3f7a5c);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
}
.logo a {
  font-size: 26px; font-weight: 700; color: #f5e9c9;
  letter-spacing: 2px; font-family: "STKaiti","KaiTi",serif;
}
.logo a:hover { text-decoration: none; }
.logo span { color: #e8c15a; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: #e8f0e6; font-size: 15px; }
.site-nav a:hover { color: #ffe9a8; text-decoration: none; }
.search-form { flex: 1; min-width: 240px; display: flex; max-width: 420px; margin-left: auto; }
.search-form input {
  flex: 1; padding: 9px 14px; border: 1px solid #c9b98a; border-radius: 4px 0 0 4px;
  font-size: 15px; outline: none; background: #fdfaf2; color: #333;
}
.search-form button {
  padding: 9px 20px; border: none; background: #e8c15a; color: #3d2f00;
  font-size: 15px; cursor: pointer; border-radius: 0 4px 4px 0; font-weight: 600;
}
.search-form button:hover { background: #f2cf72; }
.search-form.big { max-width: 560px; margin: 20px auto 0; }
.search-form.big input { padding: 12px 16px; font-size: 16px; }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 12px 2px 4px; font-size: 13px; color: #8a7a55;
}
.breadcrumb a { color: #1f5f4a; }
.breadcrumb .sep { margin: 0 6px; color: #c0b28a; }
.breadcrumb .cur { color: #6d5d35; }

/* ===== 布局 ===== */
.container { padding: 10px 0 30px; }
.home-main { margin-top: 18px; }
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

/* ===== 面板 ===== */
.panel {
  background: #fdfbf4; border: 1px solid #e4d9bc; border-radius: 8px;
  padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.panel-title {
  font-size: 18px; color: #2f5d45; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 2px solid #e4d9bc; position: relative;
}
.panel-title::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: #b8860b;
}

/* ===== 首页 hero ===== */
.home-hero {
  background: linear-gradient(180deg, #fdfbf4, #f6efdc);
  border: 1px solid #e4d9bc; border-radius: 8px; text-align: center;
  padding: 40px 20px 30px; margin-top: 14px;
}
.home-hero h1 { font-size: 38px; color: #2f5d45; font-family: "STKaiti","KaiTi",serif; letter-spacing: 4px; }
.hero-sub { color: #7a6b45; margin: 10px 0 0; font-size: 15px; }
.hero-sub strong { color: #b8860b; }
.hot-tags { margin-top: 18px; font-size: 13px; }
.hot-tags span { color: #8a7a55; }
.hot-tags a {
  display: inline-block; margin: 4px 6px 0 0; padding: 3px 12px;
  background: #f0e8d2; border: 1px solid #dccda4; border-radius: 20px; color: #3f5a4a;
}
.hot-tags a:hover { background: #e8c15a; border-color: #d4ab3f; text-decoration: none; }

/* ===== 词条列表 ===== */
.word-list { list-style: none; }
.word-list li { padding: 6px 0; border-bottom: 1px dashed #ece3ca; }
.word-list li:last-child { border-bottom: none; }
.word-list a { font-size: 15px; }
.word-list.dense { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 30px; }
.word-list.dense li { padding: 5px 0; }
.word-list .tag {
  font-size: 12px; color: #8a7a55; background: #f0e8d2; border-radius: 3px;
  padding: 1px 8px; margin-left: 8px;
}
.word-list .empty, .search-list .empty { color: #a08c5a; padding: 12px 0; }

/* ===== 分类 ===== */
.cat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-list li { margin: 0; }
.cat-list a {
  display: inline-block; padding: 5px 14px; background: #f0e8d2;
  border: 1px solid #dccda4; border-radius: 20px; color: #2f5d45; font-size: 14px;
}
.cat-list a:hover { background: #e8c15a; border-color: #d4ab3f; text-decoration: none; }
.cat-list .cnt { color: #a08c5a; font-size: 12px; }
.cat-list.mini { display: block; }
.cat-list.mini li { padding: 4px 0; }
.cat-list.mini a { display: block; border-radius: 4px; padding: 4px 10px; background: transparent; border-color: transparent; }
.cat-list.mini a:hover { background: #f0e8d2; }

/* ===== 拼音索引 ===== */
.zimu-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.zimu-list a {
  display: inline-block; width: 38px; height: 38px; line-height: 36px; text-align: center;
  background: #f0e8d2; border: 1px solid #dccda4; border-radius: 6px;
  font-size: 16px; font-weight: 700; color: #2f5d45;
}
.zimu-list a:hover { background: #e8c15a; text-decoration: none; }
.zimu-bar { margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.zimu-bar a {
  display: inline-block; width: 30px; height: 30px; line-height: 28px; text-align: center;
  background: #f0e8d2; border: 1px solid #dccda4; border-radius: 4px;
  font-size: 13px; font-weight: 700; color: #2f5d45;
}
.zimu-bar a:hover { background: #e8c15a; text-decoration: none; }

/* ===== 词条详情 ===== */
.word-main { padding: 26px 30px; }
.word-title { font-size: 30px; color: #2f5d45; font-family: "STKaiti","KaiTi",serif; margin-bottom: 12px; }
.word-meta { margin-bottom: 16px; font-size: 13px; color: #8a7a55; }
.word-meta .meta-item { margin-right: 18px; }
.word-content { font-size: 16px; line-height: 2; color: #3a3a3a; }
.word-content p { margin-bottom: 14px; text-indent: 0; }
.word-source {
  margin-top: 20px; padding-top: 12px; border-top: 1px dashed #e4d9bc;
  font-size: 13px; color: #a08c5a;
}

/* ===== 列表/搜索页 ===== */
.list-main, .search-page { padding: 22px 26px; }
.list-title { font-size: 24px; color: #2f5d45; margin-bottom: 8px; font-family: "STKaiti","KaiTi",serif; }
.list-info { color: #8a7a55; font-size: 14px; margin-bottom: 14px; }
.search-list { list-style: none; }
.search-item { padding: 12px 0; border-bottom: 1px dashed #ece3ca; }
.search-item:last-child { border-bottom: none; }
.search-title { font-size: 17px; font-weight: 600; color: #1f5f4a; }
.search-snippet { font-size: 13px; color: #7a6b45; margin-top: 4px; line-height: 1.8; }

/* ===== 侧栏 ===== */
.word-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.list-side { margin-top: 18px; }

/* ===== 分页 ===== */
.pagination { margin: 20px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination a, .pagination span {
  display: inline-block; min-width: 32px; padding: 4px 10px; text-align: center;
  background: #fdfbf4; border: 1px solid #dccda4; border-radius: 4px; font-size: 13px; color: #2f5d45;
}
.pagination a:hover { background: #e8c15a; text-decoration: none; }
.pagination .current { background: #2f5d45; color: #fff; border-color: #2f5d45; }
.pagination .pageinfo { border: none; background: transparent; color: #8a7a55; }

/* ===== 底部 ===== */
.site-footer {
  background: #2f3d33; color: #b8c4b0; margin-top: 10px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px; text-align: center; }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: #d8e3cf; margin: 0 6px; }
.footer-links a:hover { color: #ffe9a8; }
.footer-info { font-size: 12px; color: #9aab92; line-height: 1.9; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .home-cols, .word-side { grid-template-columns: 1fr; }
  .word-list.dense { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: stretch; }
  .search-form { margin-left: 0; max-width: none; }
  .home-hero h1 { font-size: 30px; }
  .word-main { padding: 18px; }
}
