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

#hero {
  background: var(--c-paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) saturate(0.95);
  animation: kenBurns 30s ease-in-out infinite alternate;
  z-index: 1;
}

/* 半透明米黄遮罩 */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(240, 230, 210, 0.35) 0%,
    rgba(240, 230, 210, 0.55) 50%,
    rgba(240, 230, 210, 0.35) 100%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
}

/* 横排巨型标题 */
.hero-title {
  font-family: var(--font-kai);
  font-size: clamp(48px, 7.5vw, 110px);
  color: var(--c-ink);
  letter-spacing: clamp(20px, 3vw, 50px);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  white-space: nowrap;
  /* letter-spacing 在末字后多出一格，左偏移视觉补回 */
  padding-left: clamp(20px, 3vw, 50px);
  margin: 0 0 4px;
  line-height: 1.1;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  animation: charFadeIn 0.9s ease forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.5s; }
.hero-title span:nth-child(2) { animation-delay: 0.8s; }
.hero-title span:nth-child(3) { animation-delay: 1.1s; }
.hero-title span:nth-child(4) { animation-delay: 1.4s; }
.hero-title span:nth-child(5) { animation-delay: 1.7s; }

/* 副标题 + 装饰线 */
.hero-subtitle {
  position: relative;
  font-family: var(--font-kai);
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--c-ink-light);
  letter-spacing: 10px;
  padding: 0 60px;
  margin: 0 0 8px;
  opacity: 0;
  animation: fadeIn 1.2s 2s forwards;
}

.hero-subtitle::before,
.hero-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold) 50%, transparent);
}
.hero-subtitle::before { left: 0; }
.hero-subtitle::after  { right: 0; }

.hero-quote {
  text-align: center;
  font-family: var(--font-kai);
  color: var(--c-ink);
  line-height: 1.9;
  margin: 0 0 12px;
  opacity: 0;
  animation: fadeIn 1.2s 2.6s forwards;
}

.hero-quote p {
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 8px;
  color: var(--c-ink);
  text-shadow: 1px 1px 3px rgba(245, 235, 215, 0.7);
  margin: 0;
}

.hero-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-ink-light);
  letter-spacing: 5px;
  font-style: normal;
}

/* 启卷按钮 */
.hero-btn {
  background: rgba(245, 235, 215, 0.92);
  border: 1.5px solid var(--c-gold);
  padding: 13px 50px;
  font-family: var(--font-kai);
  font-size: 17px;
  letter-spacing: 8px;
  color: var(--c-ink);
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1.2s 3.2s forwards;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  background: var(--c-paper-light);
  border-color: var(--c-gold-light);
  box-shadow: 0 0 22px rgba(201, 169, 110, 0.55);
  transform: translateY(-2px);
}

.btn-arrow {
  animation: bounce 2s ease-in-out infinite;
  letter-spacing: 0;
}

#hero .atlas-entry-btn {
  padding: 9px 32px;
  font-size: 13px;
  letter-spacing: 6px;
  margin-top: -4px;
}

/* 装饰印章 */
.hero-seal {
  position: absolute;
  bottom: 36px;
  left: 36px;
  width: 56px;
  height: 56px;
  background: var(--c-seal);
  color: var(--c-paper);
  font-family: var(--font-kai);
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  z-index: 12;
  opacity: 0;
  animation: fadeIn 1.2s 3.5s forwards;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}