/* ============================================================
   首页 - 佛经在线
   ============================================================ */
.home-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Hero ============ */
.home-hero {
  position: relative;
  text-align: center;
  padding: 56px 24px 44px;
  margin: 28px 0 26px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
}
.home-hero::before {
  content: "☸";
  position: absolute;
  top: -30px;
  right: -20px;
  font-size: 180px;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  line-height: 1;
}
.home-hero::after {
  content: "☸";
  position: absolute;
  bottom: -50px;
  left: -20px;
  font-size: 160px;
  color: var(--accent);
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}
.home-hero .icon-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(184,115,51,0.25);
}
.home-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 6px;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.home-hero .subtitle {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}
.home-hero .quote {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto 28px;
}
.home-hero .quote cite { font-style: normal; color: var(--accent); }

.home-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1;
}
.home-search input {
  width: 100%;
  padding: 14px 52px 14px 22px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(80,50,20,0.06);
}
.home-search input::placeholder { color: var(--text-muted); }
.home-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 18px rgba(184,115,51,0.15);
}
.home-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  transition: all .2s ease;
}
.home-search button:hover { background: var(--accent-hover); }

/* ============ 热门经典（快捷卡片） ============ */
.home-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.home-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(80,50,20,0.04);
}
.home-quick a .qi {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all .25s ease;
}
.home-quick a:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(184,115,51,0.15);
}
.home-quick a:hover .qi {
  background: var(--accent);
  color: #fff;
}

/* ============ 分类区块 ============ */
.home-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px 26px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(80,50,20,0.04);
  transition: box-shadow .25s ease;
}
.home-block:hover { box-shadow: 0 4px 16px rgba(80,50,20,0.08); }
.home-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
/* 图标：只留图标本身，主题色 */
.home-block-head .bh-icon {
  font-size: 18px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
}
.home-block-head h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: 1.5px;
}
.home-block-head .bh-desc {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.home-links a {
  display: block;
  padding: 9px 14px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.5;
  transition: all .2s ease;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(2px);
}

/* ============ 回向文 ============ */
.home-dedication {
  position: relative;
  text-align: center;
  padding: 32px 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border-light);
  border-radius: 16px;
}
.home-dedication h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
  margin: 0 0 16px;
  letter-spacing: 3px;
}
.home-dedication p {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2.2;
  letter-spacing: 2px;
  margin: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .home-wrap { padding: 0 14px; }
  .home-hero { padding: 36px 18px 32px; margin: 18px 0 18px; border-radius: 16px; }
  .home-hero .icon-big { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
  .home-hero h1 { font-size: 1.7rem; letter-spacing: 4px; }
  .home-hero .quote { font-size: 13px; line-height: 1.9; margin-bottom: 22px; }
  .home-hero::before, .home-hero::after { display: none; }

  .home-quick { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
  .home-quick a { padding: 14px 6px; font-size: 12px; gap: 8px; border-radius: 12px; }
  .home-quick a .qi { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }

  .home-block { padding: 18px 16px 16px; border-radius: 14px; margin-bottom: 14px; }
  .home-block-head .bh-icon { font-size: 16px; }
  .home-block-head h2 { font-size: 1rem; }
  .home-block-head .bh-desc { display: none; }
  .home-links { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
  .home-links a { padding: 8px 12px; font-size: 13px; }

  .home-dedication { padding: 22px 18px; }
  .home-dedication p { font-size: 13px; line-height: 2; letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .home-hero h1 { font-size: 1.45rem; letter-spacing: 3px; }
  .home-quick { gap: 6px; }
  .home-quick a { padding: 12px 4px; font-size: 11px; }
  .home-quick a .qi { width: 34px; height: 34px; font-size: 15px; }
  .home-links { grid-template-columns: 1fr 1fr; }
}