/* ============================================================
   finale.css — 结尾区域 + Footer 样式
   trees.center · 种亿棵树

   夜空蓝色调，星光点缀，呼吸发光效果
   ============================================================ */

/* ===========================
   结尾区域容器
   =========================== */
#finale {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(
    180deg,
    var(--bg-primary, #0a1f0a) 0%,
    #0a0e2a 30%,
    #060818 100%
  );
  overflow: hidden;
}

/* --- 星光背景 --- */
#finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 10%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 55%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 35% 80%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80% 85%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 92% 40%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 5% 90%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 48% 55%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 72% 92%, rgba(255,255,255,0.4), transparent);
  animation: starsTwinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes starsTwinkle {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

/* --- 第二层星光（不同节奏） --- */
#finale::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(201,168,76,0.4), transparent),
    radial-gradient(1.5px 1.5px at 42% 62%, rgba(201,168,76,0.3), transparent),
    radial-gradient(1px 1px at 67% 38%, rgba(74,222,128,0.3), transparent),
    radial-gradient(1px 1px at 88% 72%, rgba(201,168,76,0.35), transparent),
    radial-gradient(1.5px 1.5px at 33% 92%, rgba(74,222,128,0.25), transparent);
  animation: starsTwinkle2 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes starsTwinkle2 {
  0%   { opacity: 0.4; }
  100% { opacity: 0.9; }
}

/* ===========================
   结语引用文字
   =========================== */
.finale-quote {
  position: relative;
  z-index: 1;
  max-width: 680px;
  text-align: center;
  font-family: var(--font-cn, 'Noto Serif SC', serif);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  letter-spacing: 0.08em;
  animation: quoteBreathe 5s ease-in-out infinite;
}

/* 呼吸发光效果 */
@keyframes quoteBreathe {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(74, 222, 128, 0.15),
      0 0 40px rgba(74, 222, 128, 0.05);
  }
  50% {
    text-shadow:
      0 0 30px rgba(74, 222, 128, 0.3),
      0 0 60px rgba(74, 222, 128, 0.1),
      0 0 100px rgba(74, 222, 128, 0.05);
  }
}

/* --- 引用高亮字 --- */
.finale-quote em {
  font-style: normal;
  color: var(--c-neon-green, #4ade80);
  font-weight: 500;
}

.finale-quote strong {
  color: var(--c-gold, #c9a84c);
  font-weight: 500;
}

/* ===========================
   装饰分割线
   =========================== */
.finale-line {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 1px;
  margin: 3rem auto;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c-gold, #c9a84c),
    transparent
  );
  opacity: 0.5;
}

/* 分割线两端光点 */
.finale-line::before,
.finale-line::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-gold, #c9a84c);
  box-shadow: 0 0 8px var(--c-gold, #c9a84c);
}

.finale-line::before { left: 0; }
.finale-line::after  { right: 0; }

/* ===========================
   副结语 / 行动召唤
   =========================== */
.finale-sub {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: var(--font-cn, 'Noto Serif SC', serif);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  line-height: 1.8;
  max-width: 500px;
}

/* ===========================
   Footer
   =========================== */
footer,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3rem 2rem 2rem;
  text-align: center;
  background: transparent;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* --- Footer 品牌 --- */
.footer-brand {
  font-family: var(--font-en, 'Playfair Display', serif);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.15em;
}

/* --- Footer 链接 --- */
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-family: var(--font-cn, 'Noto Serif SC', serif);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--c-neon-green, #4ade80);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-neon-green, #4ade80);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* --- 版权 --- */
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* --- Footer 分割线 --- */
.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  margin: 0.5rem 0;
}

/* ===========================
   响应式
   =========================== */
@media (max-width: 768px) {
  #finale {
    padding: 6rem 1.5rem 3rem;
    min-height: 60vh;
  }

  .finale-quote {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    line-height: 1.7;
  }

  .finale-line {
    width: 80px;
    margin: 2rem auto;
  }

  .footer-links {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  #finale {
    padding: 4rem 1rem 2rem;
  }

  .finale-quote {
    letter-spacing: 0.04em;
  }

  .footer-links a {
    font-size: 0.75rem;
  }
}
