:root {
  --paper: #eee7d8;
  --paper-light: #f7f1e6;
  --ink: #173b34;
  --ink-soft: #496058;
  --red: #a3392d;
  --red-dark: #7d2b23;
  --gold: #b38b4d;
  --line: rgba(23, 59, 52, .2);
  --shadow: 0 28px 70px rgba(36, 27, 18, .18);
  --serif: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.paper-noise { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .28; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }

.site-header { position: absolute; z-index: 15; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(24px, 5vw, 80px); border-bottom: 1px solid rgba(247, 241, 230, .2); color: var(--paper-light); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { filter: drop-shadow(0 5px 12px rgba(0,0,0,.2)); }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-family: var(--serif); font-size: 21px; letter-spacing: .18em; }
.brand small { margin-top: 6px; opacity: .7; font-size: 9px; letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 13px; }
nav a { position: relative; opacity: .82; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .25s ease; }
nav a:hover::after { right: 0; }
.nav-login, .member-button { border: 1px solid rgba(255,255,255,.5); padding: 9px 18px; background: transparent; cursor: pointer; }
.menu-button { display: none; background: none; border: 0; color: inherit; }

.hero { min-height: 100svh; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); color: var(--paper-light); background: radial-gradient(circle at 14% 18%, rgba(87,124,104,.36), transparent 32%), linear-gradient(125deg, #112f2a 0%, #173d35 48%, #0b2925 100%); }
.hero::before { content: "1982"; position: absolute; left: -2vw; bottom: -16vh; font-family: Georgia, serif; font-size: clamp(220px, 34vw, 560px); line-height: .8; color: rgba(255,255,255,.026); letter-spacing: -.09em; }
.hero-copy { align-self: center; z-index: 2; max-width: 820px; padding: 150px 5vw 100px 8vw; }
.eyebrow, .section-index { margin: 0 0 26px; font-family: Georgia, serif; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; }
.eyebrow { color: #c4a46c; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6.3vw, 104px); line-height: 1.03; font-weight: 600; letter-spacing: -.06em; }
.hero h1 span { font-size: .66em; font-weight: 400; color: #decfb4; letter-spacing: .02em; }
.hero-lead { max-width: 660px; margin: 36px 0; color: rgba(247,241,230,.76); font-family: var(--serif); font-size: clamp(16px, 1.4vw, 21px); letter-spacing: .04em; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.primary-button, .light-button, .outline-button { border: 0; padding: 14px 23px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { background: var(--red); color: #fff9ed; box-shadow: 0 12px 28px rgba(76,15,10,.22); }
.primary-button:hover, .light-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(76,15,10,.3); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-link { font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; }
.text-link span { margin-left: 8px; color: #c4a46c; }
.privacy-note { margin: 20px 0 0; font-size: 11px; color: rgba(247,241,230,.55); }
.privacy-note span { color: #b69051; font-size: 7px; margin-right: 7px; }

.hero-album { position: relative; min-height: 720px; border-left: 1px solid rgba(255,255,255,.12); background: radial-gradient(circle at center, rgba(205,181,127,.09), transparent 50%); }
.orbit { position: absolute; inset: 16% 7%; border: 1px solid rgba(241,222,184,.12); border-radius: 50%; transform: rotate(-15deg); }
.orbit-two { inset: 28% -18%; transform: rotate(21deg); }
.memory-card { position: absolute; margin: 0; width: clamp(170px, 16vw, 250px); padding: 10px 10px 18px; background: #e9dfcc; color: #263b35; box-shadow: 0 24px 70px rgba(0,0,0,.42); transform: rotate(-7deg); }
.memory-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 30px rgba(71,45,22,.12); pointer-events: none; }
.memory-card p { margin: 10px 7px 0; font: italic 18px Georgia, serif; }
.memory-card small { display: block; margin: 2px 7px 0; font-size: 10px; color: #6f746e; letter-spacing: .08em; }
.photo-visual { display: block; aspect-ratio: 4/4.6; position: relative; overflow: hidden; filter: sepia(.28) contrast(.9); }
.baby-photo { background: linear-gradient(155deg, #9dafaa, #d8c9a9 50%, #726f5d); }
.baby-photo::before, .now-photo::before { content: ""; position: absolute; border-radius: 50% 50% 42% 42%; background: #ddc5a1; width: 33%; aspect-ratio: .85; left: 34%; top: 15%; box-shadow: 0 55px 0 24px #e2d6bd; }
.baby-photo i, .now-photo i { position: absolute; width: 90%; height: 30%; background: rgba(48,65,57,.55); border-radius: 50%; bottom: -10%; left: 5%; }
.now-photo { background: linear-gradient(150deg, #536e66, #d0b98d 54%, #924e3c); }
.now-photo::before { background: #cda887; top: 17%; box-shadow: 0 55px 0 27px #435a52; }
.card-1982 { left: 8%; top: 21%; }
.card-now { right: 5%; bottom: 12%; transform: rotate(8deg); }
.hero-mark { position: absolute; width: clamp(85px, 9vw, 140px); height: auto; left: 48%; top: 45%; transform: translate(-50%,-50%) rotate(8deg); filter: drop-shadow(0 16px 26px rgba(0,0,0,.35)); }
.album-caption { position: absolute; right: 7%; top: 24%; color: rgba(247,241,230,.56); font-family: var(--serif); font-size: 13px; line-height: 2; writing-mode: vertical-rl; letter-spacing: .14em; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-size: 9px; letter-spacing: .2em; color: rgba(255,255,255,.45); }
.scroll-cue span { display: block; width: 1px; height: 35px; margin: 10px auto -25px; background: linear-gradient(#be9e63, transparent); }

.manifesto { display: grid; grid-template-columns: .6fr 1.5fr .85fr; gap: 5vw; padding: 130px 8vw; background: var(--paper-light); }
.section-index { color: var(--red); }
.manifesto blockquote { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 58px); line-height: 1.5; letter-spacing: -.03em; }
.manifesto-copy { border-top: 1px solid var(--line); padding-top: 24px; color: var(--ink-soft); font-size: 14px; }
.manifesto-copy p:first-child { margin-top: 0; }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr) .8fr; padding: 0 8vw 100px; background: var(--paper-light); }
.numbers article { padding: 30px 4vw 30px 0; border-top: 1px solid var(--line); }
.numbers strong { display: block; font: 64px/1 Georgia, serif; color: var(--red); }
.numbers span { font-size: 11px; letter-spacing: .12em; }
.numbers > p { margin: 0; padding: 30px 0 0 3vw; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--serif); font-size: 14px; }

.gallery-section { padding: 120px 8vw 140px; background: #d8ccba; }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 8vw; margin-bottom: 65px; }
.section-heading h2, .timeline-title h2 { margin: 0; font: 500 clamp(48px, 6vw, 90px)/1.08 var(--serif); letter-spacing: -.06em; }
.gallery-intro { max-width: 390px; padding-bottom: 10px; color: var(--ink-soft); }
.gallery-intro p { margin: 0 0 22px; }
.outline-button { border: 1px solid var(--ink); background: transparent; }
.outline-button:hover { color: var(--paper-light); background: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; gap: 32px; }
.photo-card { grid-column: span 4; margin: 0; padding: 12px 12px 16px; background: #f2eadb; box-shadow: 0 15px 35px rgba(50,39,27,.16); transform: rotate(-1deg); transition: transform .25s ease, box-shadow .25s ease; }
.photo-card:nth-child(even) { transform: rotate(1.4deg) translateY(45px); }
.photo-card:hover { transform: rotate(0) translateY(-8px); box-shadow: var(--shadow); }
.photo-card.wide { grid-column: span 4; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #b4a990; filter: saturate(.82); }
.photo-card.tall img, .photo-card.tall .placeholder-art { aspect-ratio: 4/5; }
.photo-card footer { display: flex; justify-content: space-between; gap: 15px; padding: 12px 6px 0; }
.photo-card footer b { font-family: var(--serif); font-size: 16px; }
.photo-card footer small { color: #877d6c; }
.photo-card .photo-story { margin: 5px 6px 0; color: #70685b; font-size: 12px; }
.placeholder-art { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; overflow: hidden; color: rgba(255,255,255,.85); font: 20px/1.8 var(--serif); text-align: center; }
.placeholder-art::before, .placeholder-art::after { content: ""; position: absolute; border-radius: 50%; }
.placeholder-art span { position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.art-one { background: linear-gradient(150deg, #3c6357, #b99f72); }
.art-one::before { width: 55%; aspect-ratio: 1; background: rgba(236,208,157,.6); top: 15%; left: 22%; }
.art-one::after { width: 120%; height: 45%; background: #344b42; bottom: -25%; }
.art-two { background: linear-gradient(145deg, #9c493b, #d0a968 54%, #4a5f53); }
.art-two::before { width: 65%; height: 35%; border-radius: 0; border: 2px solid rgba(255,255,255,.3); transform: rotate(-9deg); }
.art-three { background: linear-gradient(135deg, #31534b, #82917d 45%, #c18b5b); }
.art-three::before { width: 80%; height: 1px; background: rgba(255,255,255,.5); box-shadow: 0 18px rgba(255,255,255,.25), 0 -18px rgba(255,255,255,.25); }
.empty-gallery { text-align: center; padding: 30px; }

.timeline-section { display: grid; grid-template-columns: .9fr 1.8fr; gap: 6vw; padding: 130px 8vw; background: var(--ink); color: var(--paper-light); }
.timeline-title { position: sticky; top: 70px; align-self: start; }
.timeline-title .section-index { color: #c8a56a; }
.timeline-track { border-left: 1px solid rgba(255,255,255,.18); }
.timeline-track article { position: relative; display: grid; grid-template-columns: 110px 1fr; padding: 15px 0 65px 50px; opacity: .55; }
.timeline-track article::before { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid #d9bd87; border-radius: 50%; background: var(--ink); left: -5px; top: 25px; }
.timeline-track article.active { opacity: 1; }
.timeline-track article.active::before { background: var(--red); box-shadow: 0 0 0 8px rgba(163,57,45,.24); }
.timeline-track time { font: 28px Georgia, serif; color: #d7bc87; }
.timeline-track b { font: 26px var(--serif); }
.timeline-track p { grid-column: 2; margin: 10px 0; color: rgba(255,255,255,.58); }

.join-section { text-align: center; padding: 120px 20px; color: #fff7e8; background: var(--red); }
.join-section img { filter: saturate(.85) drop-shadow(0 15px 30px rgba(59,14,10,.3)); margin-bottom: 25px; }
.join-section .section-index { color: #e2c397; }
.join-section h2 { margin: 0; font: 500 clamp(42px, 5vw, 76px)/1.2 var(--serif); }
.join-section > p:not(.section-index) { max-width: 660px; margin: 28px auto; color: rgba(255,247,232,.72); }
.light-button { background: #f5ead7; color: var(--red-dark); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 20px; padding: 55px 8vw; color: #cabfa9; background: #0d2925; font-size: 12px; }
.footer-brand { display: grid; }
.footer-brand b { color: #f1e7d5; font: 25px var(--serif); letter-spacing: .16em; }
.site-footer > p { text-align: center; margin: 0; }
.site-footer > div:last-child { text-align: right; }
.site-footer a { margin-left: 22px; }

dialog { color: var(--ink); border: 0; padding: 0; background: var(--paper-light); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,22,19,.78); backdrop-filter: blur(8px); }
.auth-dialog { width: min(480px, calc(100vw - 28px)); padding: 46px; max-height: 90vh; overflow: auto; }
.wide-dialog { width: min(760px, calc(100vw - 28px)); }
.dialog-close { position: absolute; right: 18px; top: 12px; border: 0; background: none; font: 30px var(--serif); cursor: pointer; opacity: .55; }
.dialog-heading { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 25px; }
.dialog-heading span, .dashboard-heading span { color: var(--red); font: 9px Georgia, serif; letter-spacing: .24em; }
.dialog-heading h2, .dashboard-heading h2 { margin: 7px 0; font: 38px var(--serif); }
.dialog-heading p { margin: 0; color: var(--ink-soft); font-size: 13px; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
label small { color: #817b6f; font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid rgba(23,59,52,.28); border-radius: 0; padding: 11px 12px; color: var(--ink); background: rgba(255,255,255,.38); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 2px rgba(163,57,45,.1); }
.form-grid, .document-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop { min-height: 110px; place-content: center; text-align: center; padding: 20px; border: 1px dashed rgba(23,59,52,.4); background: rgba(213,199,173,.22); cursor: pointer; }
.file-drop input { border: 0; padding: 8px 0 0; font-size: 10px; background: none; }
.feature-drop { min-height: 130px; }
.consent { display: flex; grid-template-columns: 20px 1fr; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 5px; }
.full { width: 100%; }
.switch-dialog { border: 0; background: none; color: var(--red); cursor: pointer; font-size: 12px; }
.form-message { min-height: 20px; margin: 0; color: var(--red); font-size: 12px; }
.form-message.success { color: #2c6b55; }
.dashboard-dialog { width: min(1000px, calc(100vw - 28px)); min-height: 500px; max-height: 92vh; overflow: auto; padding: 50px; }
.dashboard-heading { margin-bottom: 25px; }
.status-card { padding: 24px; border-left: 4px solid var(--gold); background: #e8ddca; }
.status-card.approved { border-color: #32745d; }
.status-card.rejected { border-color: var(--red); }
.status-card h3 { margin: 0 0 7px; font: 25px var(--serif); }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.admin-section { margin: 30px 0; }
.admin-section h3 { font: 28px var(--serif); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.review-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-card p { margin: 2px 0; color: var(--ink-soft); font-size: 12px; }
.review-actions { display: flex; gap: 8px; }
.review-actions button { border: 1px solid var(--ink); background: transparent; padding: 8px 12px; cursor: pointer; }
.review-actions .approve { background: var(--ink); color: white; }
.identity-viewer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
.identity-viewer img { width: 100%; max-height: 280px; object-fit: contain; background: #cabfae; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 12px 20px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { animation: reveal .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-album.reveal { animation-delay: .18s; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .site-header { padding: 18px 22px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 80px; right: 18px; left: 18px; padding: 24px; flex-direction: column; align-items: stretch; color: var(--ink); background: var(--paper-light); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-copy { padding: 140px 24px 30px; }
  .hero-album { min-height: 520px; border-left: 0; }
  .card-1982 { left: 8%; top: 8%; }
  .card-now { right: 8%; bottom: 7%; }
  .hero-mark { top: 44%; }
  .manifesto { grid-template-columns: 1fr; padding: 85px 24px; }
  .manifesto blockquote br { display: none; }
  .numbers { grid-template-columns: repeat(3, 1fr); padding: 0 24px 75px; }
  .numbers > p { display: none; }
  .numbers strong { font-size: 45px; }
  .gallery-section { padding: 85px 24px; }
  .section-heading { grid-template-columns: 1fr; }
  .gallery-grid { gap: 18px; }
  .photo-card, .photo-card.wide { grid-column: span 6; }
  .timeline-section { grid-template-columns: 1fr; padding: 85px 24px; }
  .timeline-title { position: static; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer > div:last-child { text-align: center; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 45px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-album { min-height: 440px; }
  .memory-card { width: 155px; }
  .album-caption { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .numbers article:nth-child(3) { grid-column: 1/-1; }
  .section-heading h2, .timeline-title h2 { font-size: 48px; }
  .photo-card, .photo-card.wide { grid-column: 1/-1; }
  .photo-card:nth-child(even) { transform: rotate(1deg); }
  .timeline-track article { grid-template-columns: 80px 1fr; padding-left: 25px; }
  .auth-dialog, .dashboard-dialog { padding: 38px 20px 25px; }
  .form-grid, .document-grid, .identity-viewer { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 1fr; }
}
