/* ============================================================
   张羽佳老师 · 米修
   风格：慢悠悠、温暖、米白 + 森绿
   ============================================================ */

:root {
  --cream: #faf5ec;
  --paper: #fffdf8;
  --ink: #3a3228;
  --ink-soft: #7d7264;
  --ink-dim: #b0a697;

  --forest: #222f26;
  --forest-soft: #3d5245;
  --clay: #c98a5e;
  --rose: #e3b7a0;

  --line: rgba(58, 50, 40, 0.1);
  --radius: 20px;
  --shadow: 0 18px 50px -18px rgba(58, 50, 40, 0.25);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: rgba(201, 138, 94, 0.35);
}

/* ---------- 顶部飘带 ---------- */
.ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 50;
  background: linear-gradient(90deg, var(--forest), var(--clay), var(--rose), var(--forest));
  background-size: 300% 100%;
  animation: ribbonFlow 10s linear infinite;
}

@keyframes ribbonFlow {
  to {
    background-position: 300% 0;
  }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem clamp(1.2rem, 5vw, 2rem) 6rem;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(227, 183, 160, 0.25), transparent 65%),
    radial-gradient(50% 40% at 85% 90%, rgba(61, 82, 69, 0.12), transparent 60%);
}

.hero__inner {
  max-width: 640px;
  text-align: center;
}

.avatar {
  position: relative;
  width: clamp(120px, 30vw, 168px);
  aspect-ratio: 1;
  margin: 0 auto 1.8rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: 0 16px 44px -12px rgba(58, 50, 40, 0.4);
}

.avatar__halo {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px dashed rgba(201, 138, 94, 0.6);
  animation: spinSlow 24s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--forest);
}

.hero__role {
  margin: 0.7rem 0 0;
  font-size: clamp(0.9rem, 3.4vw, 1.05rem);
  color: var(--ink-soft);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.hero__quote {
  margin: 2rem auto 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  line-height: 1.9;
  color: var(--ink);
  letter-spacing: 0.1em;
}

.quote {
  color: var(--clay);
}

.quote-heart {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--rose);
}

.hero__douyin {
  margin: 1.8rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.copy-id {
  display: inline;
  padding: 0.15em 0.5em;
  border: none;
  border-bottom: 1.5px dashed rgba(201, 138, 94, 0.7);
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--clay);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.copy-id:hover {
  color: var(--forest);
}

.hero__actions {
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 14px 34px -14px rgba(34, 47, 38, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(34, 47, 38, 0.85);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(58, 50, 40, 0.3);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.scroll-hint span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--clay);
  animation: scrollDot 1.9s var(--ease) infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* ---------- 数据 ---------- */
.stats {
  max-width: 900px;
  margin: -2.5rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 5;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 1.4rem 0.5rem;
  background: var(--paper);
  transition: background 0.4s var(--ease);
}

.stat:hover {
  background: #f5ecdd;
}

.stat__num {
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--ink-dim);
  letter-spacing: 0.2em;
}

.stats__note {
  margin: 0.8rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-dim);
}

/* ---------- 区块 ---------- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1rem, 4vw, 2rem) 0;
}

.section__head {
  margin-bottom: 1.8rem;
}

.section__idx {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--clay);
}

.section__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: 0.08em;
  color: var(--forest);
}

.section__desc {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  align-items: start;
}

.card {
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.about__card p {
  font-size: 0.95rem;
  color: rgba(58, 50, 40, 0.88);
  line-height: 2;
}

.about__card strong {
  color: var(--forest);
  font-weight: 700;
}

.about__card em {
  font-style: normal;
  color: var(--clay);
}

.about__sign {
  margin-top: 1.2rem !important;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-serif);
  letter-spacing: 0.14em;
  color: var(--rose) !important;
}

.about__side h3 {
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}

.about__side dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.9rem;
  margin: 0;
  font-size: 0.9rem;
}

.about__side dt {
  color: var(--ink-dim);
  white-space: nowrap;
}

.about__side dd {
  margin: 0;
  color: var(--ink);
}

/* ---------- 封面 ---------- */
.cover-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cover-wrap img {
  width: 100%;
  aspect-ratio: 800 / 450;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.cover-wrap:hover img {
  transform: scale(1.03);
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: clamp(3.5rem, 9vw, 6rem);
  padding: 2rem 1rem 3rem;
  background: var(--forest);
  color: rgba(250, 245, 236, 0.75);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer__sub {
  margin-top: 0.5rem !important;
  font-size: 0.72rem !important;
  color: rgba(250, 245, 236, 0.45) !important;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 90;
  transform: translate(-50%, 140%);
  padding: 0.7em 1.3em;
  border-radius: 999px;
  background: rgba(34, 47, 38, 0.92);
  color: var(--cream);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.toast.is-show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- 入场动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .about {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
