/* ============================================================
   我爱章鱼 · aiyujuan.com
   设计基调：暖米色底 + 玫瑰红点缀 + 楷书标题 + 宋体正文
   ============================================================ */

:root {
  --bg: #fdf6f0;
  --bg-soft: #f9ece3;
  --ink: #3d2b2b;
  --ink-soft: #8a6f6a;
  --rose: #e63946;
  --rose-deep: #c1121f;
  --rose-soft: #f4b6bd;
  --card: #ffffff;
  --shadow: 0 10px 40px rgba(193, 18, 31, 0.08);
  --radius: 18px;
  /* 楷书展示字体：标题/网站名，高级感 */
  --calligraphy: "Ma Shan Zheng", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  /* 清晰拉丁字体：域名 / yu juan */
  --sans: "Montserrat", "Avenir Next", "Helvetica Neue", "PingFang SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --latin: "Cormorant Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

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

.accent { color: var(--rose); }

.yujuan {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  color: var(--rose);
  letter-spacing: 0.08em;
}

/* ---------- 飘落的心 ---------- */
.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.heart-fall {
  position: absolute;
  top: -4vh;
  color: var(--rose-soft);
  animation: fall linear forwards;
  will-change: transform, opacity;
}

@keyframes fall {
  0%   { transform: translateY(-4vh) rotate(0deg) scale(var(--s, 1)); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: translateY(108vh) rotate(var(--r, 40deg)) scale(var(--s, 1)); opacity: 0; }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(253, 246, 240, 0.82);
  border-bottom: 1px solid rgba(230, 57, 70, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav.is-scrolled { box-shadow: 0 4px 24px rgba(61, 43, 43, 0.06); }

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--calligraphy);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
}

.nav__heart { width: 1.15em; height: 1.15em; color: var(--rose); }

.nav__links { display: flex; gap: 1.6rem; }

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.nav__links a:hover { color: var(--rose); }

/* ---------- 首屏 ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(244, 182, 189, 0.35), transparent),
    radial-gradient(ellipse 60% 45% at 85% 100%, rgba(230, 57, 70, 0.07), transparent),
    var(--bg);
}

.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--rose);
  letter-spacing: 0.42em;
  font-size: 1rem;
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--calligraphy);
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.25;
}

.hero__sub {
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 2.3;
  letter-spacing: 0.28em;
}

.hero__scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--rose-soft);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--rose);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 通用段落 ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}

.section__title {
  text-align: center;
  font-family: var(--calligraphy);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: 0.16em;
  font-weight: 400;
}

.section__sub {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  margin-bottom: 3.2rem;
  letter-spacing: 0.2em;
  font-size: 0.98rem;
}

/* ---------- 照片与开篇 ---------- */
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: center;
}

.story__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  background: var(--card);
  padding: 10px;
}

.story__photo::after {
  content: "❤";
  position: absolute;
  top: -14px;
  right: -10px;
  font-size: 1.6rem;
  color: var(--rose);
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 8px rgba(230, 57, 70, 0.3));
}

.story__photo img {
  border-radius: calc(var(--radius) - 8px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.story__photo figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.6rem 0 0.2rem;
  letter-spacing: 0.2em;
}

.story__text h2 {
  font-family: var(--calligraphy);
  font-size: clamp(1.7rem, 4.2vw, 2.3rem);
  letter-spacing: 0.12em;
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.story__text p { color: var(--ink-soft); margin-bottom: 1.1rem; }

.story__text .signature {
  font-family: var(--latin);
  font-style: italic;
  color: var(--rose);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-top: 1.6rem;
}

/* ---------- 时间线 ---------- */
.timeline {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 18%, var(--bg-soft) 82%, transparent);
}

.timeline__list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--rose-soft), var(--rose));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding: 0 0 3rem 3rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--rose);
  box-shadow: 0 0 0 5px rgba(230, 57, 70, 0.12);
}

.timeline__item time {
  font-family: var(--sans);
  color: var(--rose);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.timeline__item h3 {
  font-family: var(--calligraphy);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  margin: 0.3rem 0 0.4rem;
  font-weight: 400;
}

.timeline__item p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- 关于她 ---------- */
.her__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.her__card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-top: 3px solid transparent;
  /* 三张卡片等高、内部纵向布局一致 */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.her__card:hover {
  transform: translateY(-6px);
  border-top-color: var(--rose);
  box-shadow: 0 18px 48px rgba(193, 18, 31, 0.14);
}

/* 固定图标区高度，emoji 与 SVG 占据相同纵向空间，保证标题/正文对齐 */
.her__icon {
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--rose);
  line-height: 1;
}

.her__icon svg { width: 2.2rem; height: 2.2rem; }

.her__card h3 {
  font-family: var(--calligraphy);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  font-weight: 400;
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.her__card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.9; }

/* ---------- 誓言 ---------- */
.vow__inner {
  text-align: center;
  background: linear-gradient(135deg, #fff5f2, #ffe9ec);
  border: 1px solid rgba(230, 57, 70, 0.12);
  border-radius: 28px;
  padding: 4.5rem 2rem;
  box-shadow: var(--shadow);
}

.vow__heart {
  width: 44px;
  height: 44px;
  color: var(--rose);
  margin-bottom: 1.4rem;
  animation: beat 1.6s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  12%      { transform: scale(1.14); }
  24%      { transform: scale(1); }
  36%      { transform: scale(1.1); }
}

.vow blockquote p {
  font-family: var(--calligraphy);
  font-size: clamp(1.7rem, 4.8vw, 2.4rem);
  letter-spacing: 0.2em;
  line-height: 2.1;
  font-weight: 400;
}

.vow .yujuan { font-size: 1.02em; }

.vow__note {
  margin-top: 1.8rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.3em;
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(230, 57, 70, 0.1);
  background: var(--bg-soft);
}

.footer__social { margin-bottom: 1.2rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  transition: color 0.25s ease;
}

.social-link:hover { color: var(--rose); }

.social-link svg { width: 1.35em; height: 1.35em; }

.footer__copy {
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer__days { display: block; margin-top: 0.4rem; opacity: 0.75; }

.footer__days a {
  color: var(--rose);
  text-decoration: none;
  border-bottom: 1px dashed var(--rose-soft);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer__days a:hover { color: var(--rose-deep); border-bottom-color: var(--rose-deep); }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .heart-fall, .vow__heart, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .story__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .story__photo { max-width: 420px; margin: 0 auto; }
  .her__cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .section { padding: 4.5rem 1.3rem; }
}

@media (max-width: 560px) {
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.85rem; }
  .hero__sub { letter-spacing: 0.18em; }
  .vow__inner { padding: 3.2rem 1.4rem; border-radius: 20px; }
}
