/* ===== 拾光集 · 记录美好的个人瞬间 ===== */
:root {
  --bg: #fbf7f1;
  --bg-alt: #f5eee3;
  --paper: #fffdfa;
  --ink: #2b2520;
  --ink-soft: #6f6359;
  --ink-mute: #9c8f83;
  --line: rgba(120, 96, 72, 0.16);
  --brand: #c9784b;
  --brand-deep: #a85b36;
  --amber: #e0a458;
  --rose: #c96b6b;
  --shadow-sm: 0 6px 20px rgba(120, 88, 56, 0.08);
  --shadow-md: 0 18px 44px rgba(120, 88, 56, 0.14);
  --shadow-lg: 0 30px 70px rgba(120, 88, 56, 0.2);
  --radius: 20px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1140px, 92vw); margin: 0 auto; }
.wrap--narrow { width: min(760px, 92vw); }

/* ===== 导航 ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 46px);
  background: rgba(251, 247, 241, 0);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, padding .35s ease;
}
.nav.is-stuck {
  background: rgba(251, 247, 241, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 6px 24px rgba(120, 88, 56, 0.09);
  padding-top: 10px; padding-bottom: 10px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); }
.nav__logo { color: var(--brand); display: grid; place-items: center; }
.nav__name { font-size: 1.22rem; font-weight: 700; letter-spacing: .12em; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  position: relative; font-size: .95rem; color: var(--ink-soft); letter-spacing: .06em;
  transition: color .25s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:hover { color: var(--brand-deep); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== 首屏 ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 120px 20px 80px; overflow: hidden;
  background: radial-gradient(130% 100% at 50% 0%, #fff4e6 0%, #fcecd9 32%, #f7e2ca 62%, #f0d6ba 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(118% 86% at 50% 42%, rgba(255,255,255,0) 44%, rgba(150,108,72,.14) 100%);
}
.hero__aurora {
  position: absolute; inset: -25%;
  background:
    radial-gradient(30% 34% at 18% 30%, rgba(226, 152, 72, 0.58), transparent 70%),
    radial-gradient(26% 30% at 84% 22%, rgba(206, 104, 104, 0.46), transparent 70%),
    radial-gradient(34% 38% at 74% 84%, rgba(208, 126, 78, 0.52), transparent 72%),
    radial-gradient(26% 30% at 8% 82%, rgba(122, 158, 200, 0.42), transparent 70%),
    radial-gradient(40% 44% at 50% 118%, rgba(198, 120, 75, 0.36), transparent 72%);
  filter: blur(26px); opacity: .92;
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}
.hero__bokeh { position: absolute; inset: 0; pointer-events: none; }
.hero__bokeh i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,240,220,.35) 60%, rgba(255,240,220,0));
  animation: floatUp linear infinite;
  opacity: 0;
}
@keyframes floatUp {
  0%   { transform: translateY(30px) scale(.6); opacity: 0; }
  15%  { opacity: .8; }
  85%  { opacity: .7; }
  100% { transform: translateY(-90px) scale(1.1); opacity: 0; }
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: clamp(.72rem, 2.4vw, .82rem); letter-spacing: .34em; text-transform: uppercase;
  color: var(--brand-deep); margin-bottom: 22px; font-weight: 600;
}
.hero__title {
  font-family: var(--serif); font-weight: 700; line-height: 1.12;
  font-size: clamp(2.6rem, 8.4vw, 5.4rem); letter-spacing: .04em;
  color: #241d18;
}
.hero__title-line { display: inline-block; }
.hero__title-line--accent {
  background: linear-gradient(120deg, var(--brand), var(--rose) 55%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: .06em;
}
.hero__sub {
  margin: 26px auto 0; max-width: 34em;
  font-size: clamp(1rem, 2.6vw, 1.2rem); color: var(--ink-soft); letter-spacing: .02em;
}
.hero__meta {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--ink-mute); letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.hero__clock { color: var(--brand-deep); font-weight: 600; }
.hero__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.hero__cta {
  margin: 40px auto 0; width: fit-content;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-size: .98rem; letter-spacing: .12em;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 34px rgba(168, 91, 54, 0.34);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hero__cta:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(168, 91, 54, 0.42); }
.hero__cta svg { transition: transform .25s ease; }
.hero__cta:hover svg { transform: translateY(3px); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid rgba(120, 88, 56, 0.35); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px;
}
.hero__scroll span { width: 4px; height: 8px; border-radius: 3px; background: var(--brand); animation: mouse 1.7s ease-in-out infinite; }
@keyframes mouse { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(12px); opacity: .3; } }

/* ===== 通用区块 ===== */
.section { padding: clamp(72px, 10vw, 132px) 0; }
.section--about { background: var(--paper); }
.section--timeline { background: var(--bg-alt); }
.section--gallery { background: var(--paper); }
.section--words {
  background: linear-gradient(160deg, #2b2420, #3b2f27 60%, #4a372c);
  color: #f7efe6;
}
.section__tag {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--brand-deep);
  font-weight: 700; margin-bottom: 14px;
}
.section--words .section__tag { color: var(--amber); }
.section__title {
  font-family: var(--serif); font-weight: 700; letter-spacing: .03em;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem); line-height: 1.28; margin-bottom: 40px;
}
.mark {
  position: relative; color: var(--brand-deep); white-space: nowrap;
}
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .34em;
  background: linear-gradient(90deg, rgba(224,164,88,.42), rgba(201,107,107,.34));
  border-radius: 4px; z-index: -1;
}

/* 关于 */
.about__lead { max-width: 46em; color: var(--ink-soft); font-size: clamp(1rem, 2.4vw, 1.12rem); }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.about__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.about__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,120,75,.4); }
.about__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--amber), var(--brand));
  box-shadow: 0 10px 24px rgba(201, 120, 75, .32);
}
.about__card:nth-child(2) .about__icon { background: linear-gradient(135deg, #9fb6d4, #6f8fb3); box-shadow: 0 10px 24px rgba(111,143,179,.3); }
.about__card:nth-child(3) .about__icon { background: linear-gradient(135deg, #e3a0a0, var(--rose)); box-shadow: 0 10px 24px rgba(201,107,107,.3); }
.about__card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; letter-spacing: .06em; }
.about__card p { color: var(--ink-soft); font-size: .96rem; }

/* 时光轴 */
.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--brand), rgba(201,107,107,.6));
  border-radius: 2px;
}
.timeline__item { position: relative; padding: 4px 0 40px 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -34px; top: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--brand); box-shadow: 0 0 0 5px rgba(201,120,75,.14);
}
.timeline__item time { font-size: .82rem; letter-spacing: .18em; color: var(--brand-deep); font-weight: 600; text-transform: uppercase; }
.timeline__item h3 { font-family: var(--serif); font-size: clamp(1.15rem, 3vw, 1.5rem); margin: 6px 0 8px; letter-spacing: .04em; }
.timeline__item p { color: var(--ink-soft); max-width: 40em; }

/* 相册 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--bg);
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease;
}
.shot:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.shot__art { aspect-ratio: 4 / 3; overflow: hidden; }
.shot__art svg { width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.shot:hover .shot__art svg { transform: scale(1.07); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(30, 22, 16, .68));
  color: #fff; display: flex; flex-direction: column; gap: 2px;
  transform: translateY(6px); opacity: .96; transition: transform .4s ease;
}
.shot:hover figcaption { transform: translateY(0); }
.shot figcaption strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .1em; }
.shot figcaption span { font-size: .82rem; opacity: .85; letter-spacing: .04em; }
/* 错落排布 */
.shot--b, .shot--e { transform: translateY(26px); }
.shot--b:hover, .shot--e:hover { transform: translateY(18px); }
.gallery__hint { margin-top: 54px; text-align: center; color: var(--ink-mute); font-size: .88rem; letter-spacing: .04em; }
.gallery__hint code { background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; color: var(--brand-deep); font-size: .86em; }

/* 心语 */
.quote { text-align: center; }
.quote__text {
  font-family: var(--serif); font-size: clamp(1.4rem, 4.4vw, 2.3rem); line-height: 1.6;
  letter-spacing: .04em; min-height: 3.2em; transition: opacity .4s ease;
}
.quote__from { display: block; margin-top: 22px; color: var(--amber); font-size: .9rem; letter-spacing: .16em; }
.quote__btn {
  margin: 34px auto 0; display: block; padding: 12px 28px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #f7efe6; border: 1px solid rgba(247,239,230,.4);
  font-size: .92rem; letter-spacing: .14em; transition: background .25s, color .25s, border-color .25s;
}
.quote__btn:hover { background: var(--amber); color: #2b2420; border-color: var(--amber); }

/* 页脚 */
.footer {
  background: #241d18; color: #cdbfb1; padding: 62px 0 40px; text-align: center;
}
.footer__brand { font-family: var(--serif); font-size: 1.5rem; color: #f4e9dc; letter-spacing: .22em; margin-bottom: 10px; }
.footer__desc { font-size: .92rem; color: #9a8b7d; letter-spacing: .06em; }
.footer__links { margin: 22px 0 14px; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: #c3b3a3;
  padding: 7px 16px; border: 1px solid rgba(205,191,177,.22); border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s;
}
.footer__links a::before { content: "◈"; color: var(--amber); font-size: .8em; }
.footer__links a:hover { color: #fff; border-color: var(--amber); background: rgba(224,164,88,.1); }
.footer__copy { font-size: .82rem; color: #7d7064; letter-spacing: .08em; margin-top: 10px; }

/* 回到顶部 */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; border: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 28px rgba(168,91,54,.36);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.totop.is-show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.totop:hover { transform: translateY(-3px) scale(1.05); }

/* 入场动画 */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--b, .shot--e { transform: none; }
  .shot--b:hover, .shot--e:hover { transform: translateY(-8px); }
}
@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: 62px 14px auto 14px; flex-direction: column; gap: 4px;
    background: rgba(255,253,250,.97); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 18px; padding: 12px;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 10px 12px; border-radius: 10px; }
  .nav__links a:hover { background: var(--bg-alt); }
  .nav__toggle { display: flex; }
  .gallery { grid-template-columns: 1fr; }
  .timeline { padding-left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
