/* 枫木刷题 · 对外静态站
   视觉方向：林间墨绿 + 枫叶琥珀，避开紫调 / 奶油衬线套版 */

:root {
  --ink: #122820;
  --forest: #1a4a3a;
  --leaf: #2f6b52;
  --maple: #c4782a;
  --maple-deep: #9a5a1a;
  --mist: #e7f0eb;
  --paper: #f5faf7;
  --line: rgba(18, 40, 32, 0.12);
  --muted: #4a6358;
  --max: 72rem;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  background: var(--paper);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--leaf);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--maple-deep);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 99;
  background: #fff;
  padding: 0.5rem 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-header .logo,
.page-header .nav a {
  color: var(--forest);
  text-shadow: none;
}

.page-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #dff0e6 0%, var(--paper) 100%);
}

.page-header .site-header {
  position: relative;
}

/* —— Hero：全幅视觉面 —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(196, 120, 42, 0.35), transparent 55%),
    linear-gradient(160deg, #0d2a22 0%, #1a4a3a 42%, #245844 72%, #16382e 100%);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4.5rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  animation: rise 0.9s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  max-width: 18em;
  animation: rise 0.9s ease 0.12s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 28em;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  animation: rise 0.9s ease 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s ease 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--maple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--maple-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-ink {
  background: var(--forest);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink);
  color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leaf {
  animation: drift 14s ease-in-out infinite;
  transform-origin: center;
}
.leaf:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 18s;
}
.leaf:nth-child(3) {
  animation-delay: -7s;
  animation-duration: 16s;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(12px) rotate(4deg);
  }
}

/* —— 内容区 —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
  color: var(--forest);
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36em;
}

.answer-box {
  background: linear-gradient(135deg, #eef6f1, #f8fbf9);
  border-left: 4px solid var(--maple);
  padding: 1.25rem 1.35rem;
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--forest);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-list a {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.faq-list a:hover {
  color: var(--maple-deep);
  padding-left: 0.35rem;
}

.faq-list span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .split-2 {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.aside-panel {
  background: var(--mist);
  padding: 1.35rem 1.4rem;
  border-radius: 6px;
}

.aside-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  color: var(--forest);
}

.aside-panel ol {
  margin: 0;
  padding-left: 1.15rem;
}

.entity {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #10241d;
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--leaf);
}

.related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 1.35rem;
}

.copy-hint {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 50;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
