:root {
  --cream: #f4ecde;
  --cream-deep: #e9dcc8;
  --paper: #fffdf8;
  --paper-warm: #faf3e7;
  --ink: #4b3523;
  --muted: #8a7767;
  --sage: #81905f;
  --sage-dark: #607044;
  --sage-soft: #dce3cc;
  --peach: #dc9e80;
  --peach-soft: #f0d1bf;
  --blue: #a7bfd2;
  --blue-soft: #dce8ee;
  --yellow: #e5b044;
  --danger: #b85f55;
  --line: rgba(82, 61, 43, .17);
  --shadow: 0 22px 48px rgba(82, 59, 39, .14), 0 3px 8px rgba(82, 59, 39, .08);
  --shadow-soft: 0 12px 25px rgba(82, 59, 39, .11);
  --hand: "STKaiti", "KaiTi", "楷体", "FangSong", serif;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; overflow-x: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-texture { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .68; background-image: radial-gradient(circle at 20% 35%, rgba(80,58,39,.06) 0 .8px,transparent .9px), radial-gradient(circle at 70% 65%,rgba(80,58,39,.04) 0 .7px,transparent .8px), repeating-linear-gradient(96deg,rgba(255,255,255,.11) 0 1px,transparent 1px 5px); background-size: 12px 13px,17px 18px,100% 8px; }
.page-texture::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0,rgba(255,255,255,.66),transparent 60%), linear-gradient(90deg,rgba(210,191,166,.12),transparent 14%,transparent 86%,rgba(210,191,166,.12)); }
.floating-doodle { position: fixed; z-index: -1; pointer-events: none; color: rgba(118,132,88,.25); font-family: var(--hand); }
.doodle-star { top: 7%; left: 2.3vw; font-size: clamp(2rem,4vw,4rem); transform: rotate(-12deg); color: rgba(220,160,43,.58); }
.doodle-paw { right: 2vw; top: 17%; font-size: 1.2rem; letter-spacing: .35em; transform: rotate(11deg); opacity: .6; }

.site-header { width: min(1480px,calc(100% - 64px)); min-height: 112px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; position: relative; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--hand); font-weight: 700; white-space: nowrap; transform: rotate(-.6deg); }
.brand-sketch { width: 58px; height: 48px; display: grid; place-items: center; transform: rotate(-8deg); }
.brand-sketch svg { width: 50px; height: 50px; stroke-width: 1.45; }
.brand-name { position: relative; font-size: clamp(1.45rem,2.2vw,2.2rem); letter-spacing: .12em; }
.brand-name small { font-size: .62em; font-weight: 600; margin-left: .28em; }
.brand-name::after { content: ""; position: absolute; left: 18%; right: -4%; bottom: -5px; height: 7px; border-radius: 50%; border-top: 3px solid rgba(220,144,120,.52); transform: rotate(-1deg); }
.tiny-paw { font-size: .8rem; opacity: .65; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: clamp(12px,2vw,36px); }
.site-nav a { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 5px; text-decoration: none; font-family: var(--hand); font-size: 1.05rem; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 5px; border-top: 3px solid var(--sage); border-radius: 50%; transform: scaleX(0) rotate(-2deg); transition: transform .22s ease; }
.site-nav a:hover::after,.site-nav a.active::after { transform: scaleX(1) rotate(-2deg); }
.site-nav a.active { color: var(--sage-dark); }
.owner-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.menu-toggle { display: none; border: 0; background: transparent; font-family: var(--hand); }

.page-shell { width: min(1480px,calc(100% - 64px)); margin: 10px auto 50px; }
.page-view { animation: page-in .35s ease both; }
.page-view:not(.active) { display: none; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.paper-card { position: relative; border: 1px solid rgba(92,69,48,.14); border-radius: 28px; background: rgba(255,253,248,.94); box-shadow: var(--shadow); }
.paper-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .28; background-image: radial-gradient(circle at 25% 30%,rgba(100,76,52,.08) 0 .65px,transparent .75px),repeating-linear-gradient(88deg,transparent 0 4px,rgba(120,90,60,.025) 4px 5px); background-size: 11px 13px,100% 6px; }
.tape { position: absolute; z-index: 4; width: 130px; height: 34px; opacity: .82; background: var(--sage); clip-path: polygon(3% 10%,98% 0,95% 93%,0 100%); box-shadow: 0 2px 5px rgba(65,50,37,.1); }
.tape::after { content: ""; position: absolute; inset: 0; opacity: .38; background-image: radial-gradient(#fff 0 .7px,transparent .8px); background-size: 5px 5px; }
.tape-green { background: #8c9a6b; }
.tape-peach { background: #dda484; }
.tape-blue { background: #a9bfd2; }
.tape.small { width: 95px; height: 27px; }

.hero { min-height: 505px; display: grid; grid-template-columns: .92fr 1.58fr; overflow: visible; }
.hero-tape { top: -20px; left: -23px; transform: rotate(-19deg); width: 145px; height: 45px; }
.hero-copy { position: relative; z-index: 2; padding: clamp(65px,7vw,112px) clamp(32px,5vw,82px) 60px; display: flex; flex-direction: column; justify-content: center; }
.hand-star { position: absolute; left: 10%; top: 15%; color: var(--yellow); font-size: 2.6rem; transform: rotate(-12deg); }
.eyebrow,.section-kicker { margin: 0; color: var(--sage-dark); font-size: .7rem; font-weight: 800; letter-spacing: .2em; }
.hero h1 { margin: 4px 0 0; font-family: var(--hand); font-size: clamp(3rem,4.4vw,5rem); font-weight: 700; line-height: 1.16; letter-spacing: .04em; white-space: nowrap; }
.scribble-line { width: 88%; height: 12px; margin: 1px 0 20px; border-top: 4px solid var(--sage); border-radius: 50%; transform: rotate(-1.5deg); }
.hero-subtitle { margin: 0; font-family: var(--hand); font-size: clamp(1.15rem,1.6vw,1.6rem); letter-spacing: .08em; }
.hero-signature { display: flex; align-items: center; gap: 10px; margin-top: 35px; color: var(--muted); font-size: .72rem; }
.hero-signature i { width: 4px; height: 4px; border-radius: 50%; background: var(--peach); }
.hero-photo { position: relative; z-index: 2; min-height: 505px; overflow: hidden; border-radius: 0 28px 28px 0; clip-path: polygon(2% 1%,100% 0,100% 100%,0 99%); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(255,253,248,.42),transparent 14%),linear-gradient(0deg,rgba(78,55,36,.13),transparent 32%); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; min-height: 505px; object-fit: cover; object-position: 52% 50%; filter: saturate(.88) sepia(.06) contrast(.96); }
.film-edge { position: absolute; z-index: 3; right: 14px; top: 28px; bottom: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.film-edge i { width: 17px; height: 25px; border-radius: 6px; background: rgba(80,55,35,.55); box-shadow: 0 0 0 2px rgba(255,245,224,.18); }
.flower-sticker { position: absolute; z-index: 7; left: 23px; bottom: 15px; color: #f3f0d4; font-size: 3.6rem; line-height: .8; text-shadow: 0 2px 0 #c9a979,0 5px 8px rgba(70,50,35,.18); transform: rotate(-10deg); }
.flower-sticker small { display: inline-block; margin-left: -15px; font-size: .62em; transform: rotate(22deg); }
.paw-sticker { position: absolute; z-index: 7; right: -13px; bottom: -12px; width: 88px; height: 82px; display: grid; place-items: center; border-radius: 9px 17px 8px 15px; background: #eee5d7; font-size: 2rem; transform: rotate(4deg); box-shadow: var(--shadow-soft); }

.portal-grid { display: grid; grid-template-columns: .95fr 1.35fr .95fr 1.05fr; gap: 20px; margin-top: 24px; align-items: stretch; }
.portal-card { position: relative; min-width: 0; min-height: 440px; padding: 27px 24px 52px; overflow: hidden; border: 1px solid rgba(91,69,49,.16); border-radius: 23px; color: var(--ink); background: rgba(255,253,248,.94); box-shadow: var(--shadow-soft); text-decoration: none; transition: transform .25s ease,box-shadow .25s ease; }
.portal-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(circle,rgba(88,65,44,.12) 0 .7px,transparent .8px); background-size: 12px 14px; }
.portal-card:hover { z-index: 4; transform: translateY(-8px) rotate(-.25deg); box-shadow: 0 26px 45px rgba(82,59,39,.18); }
.portal-card:focus-visible { outline: 4px solid rgba(129,144,95,.28); outline-offset: 4px; }
.portal-heading { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; }
.portal-heading > span { font-size: 1.4rem; }
.portal-heading h2 { margin: 0; font-family: var(--hand); font-size: 1.65rem; letter-spacing: .04em; }
.portal-heading small { margin-left: auto; color: var(--muted); }
.portal-action { position: absolute; z-index: 5; left: 24px; bottom: 18px; display: flex; align-items: center; gap: 7px; color: var(--sage-dark); font-size: .76rem; font-weight: 700; }
.portal-action svg { transition: transform .2s; }
.portal-card:hover .portal-action svg { transform: translateX(5px); }

.notes-portal { background: #fffaf0; }
.paper-stack { position: absolute; left: 25px; right: 30px; top: 100px; bottom: 58px; }
.paper-stack i { position: absolute; inset: 7px 3px; background: #dfb58f; transform: rotate(-3deg); box-shadow: var(--shadow-soft); }
.paper-stack i + i { background: #a9af82; transform: rotate(2deg); }
.portal-note { position: relative; z-index: 3; min-height: 268px; margin: 32px 0 0; padding: 75px 28px 34px 42px; background: #fcf7e9; box-shadow: 0 8px 18px rgba(70,50,34,.15); transform: rotate(-.7deg); background-image: repeating-linear-gradient(transparent 0 36px,rgba(117,142,160,.17) 37px 38px); }
.portal-note::after { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: rgba(218,133,112,.48); }
.portal-note p { margin: 0; font-family: var(--hand); font-size: 1.12rem; line-height: 2.1; }
.portal-note small { position: absolute; right: 18px; bottom: 13px; color: var(--muted); font-size: .66rem; }
.torn-holes { position: absolute; left: 7px; top: 0; bottom: 0; width: 15px; background: radial-gradient(circle,#e7dccb 0 4px,transparent 4.5px) center top/14px 30px repeat-y; }

.gallery-portal { background: #fdf9f0; }
.mini-polaroids { position: relative; z-index: 3; height: 315px; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-polaroids i { position: relative; border: 8px solid #fff; border-bottom-width: 25px; background-image: linear-gradient(145deg,rgba(185,215,231,.2),rgba(129,153,109,.2)),url("./assets/hero-lakeside.png"); background-size: cover; box-shadow: 0 6px 12px rgba(72,52,36,.15); transform: rotate(-1deg); }
.mini-polaroids i:nth-child(1){background-position:8% 55%}.mini-polaroids i:nth-child(2){background-position:48% 44%;transform:rotate(1deg)}.mini-polaroids i:nth-child(3){background-position:72% 50%;transform:rotate(.6deg)}.mini-polaroids i:nth-child(4){background-position:96% 67%;transform:rotate(-.6deg)}
.mini-polaroids i::before { content: ""; position: absolute; width: 44px; height: 13px; left: 50%; top: -12px; transform: translateX(-50%) rotate(1deg); background: rgba(222,197,156,.68); }

.guestbook-portal { background: #fffaf1; }
.portal-message { position: relative; z-index: 3; height: 255px; margin-top: 24px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.portal-message p { margin: 0 0 45px; color: #a39487; font-family: var(--hand); }
.portal-message span { display: block; height: 1px; margin-top: 27px; border-top: 1px dashed rgba(82,61,43,.17); }
.portal-button { position: relative; z-index: 4; width: fit-content; margin: 20px auto 0; padding: 10px 24px; border-radius: 99px; color: #fff; background: var(--sage); font-family: var(--hand); box-shadow: 0 5px 10px rgba(96,112,68,.2); }

.music-portal { background: #eaf1f5; }
.music-portal > .tape { top: -10px; right: -16px; transform: rotate(38deg); }
.mini-player { position: relative; z-index: 3; height: 315px; margin-top: 24px; }
.mini-cover { position: absolute; z-index: 3; left: 50%; top: 24px; width: 63%; aspect-ratio: 1; transform: translateX(-62%); border: 8px solid #fff; border-radius: 13px; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 3rem; background: linear-gradient(145deg,#bdd8e8,#f1dcae 52%,#9eb88a); box-shadow: 0 10px 20px rgba(62,50,40,.17); }
.mini-vinyl { position: absolute; z-index: 2; top: 51px; right: 7%; width: 54%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle,#20231f 0 6px,#373a35 7px 9px); box-shadow: 0 8px 15px rgba(0,0,0,.19); }
.mini-vinyl::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: var(--peach); border: 5px solid #d8b36e; }
.mini-player p { position: absolute; left: 0; right: 0; bottom: 42px; margin: 0; text-align: center; font-family: var(--hand); font-size: 1.05rem; }
.mini-play-circle { position: absolute; left: 50%; bottom: -4px; width: 45px; height: 45px; transform: translateX(-50%); display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); }

.section-view { min-height: 72vh; }
.view-header { min-height: 210px; padding: 36px 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; }
.view-header::before { content: ""; position: absolute; right: -40px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(220,227,204,.45); }
.back-home { position: relative; z-index: 3; display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: .78rem; text-decoration: none; border-bottom: 1px dashed currentColor; }
.view-header h1 { position: relative; z-index: 2; margin: 3px 0 2px; font-family: var(--hand); font-size: clamp(2.8rem,5vw,5.2rem); line-height: 1.05; }
.view-header p:not(.section-kicker) { position: relative; z-index: 2; margin: 8px 0 0; color: var(--muted); }
.view-icon { position: relative; z-index: 2; font-size: clamp(4rem,8vw,7rem); filter: drop-shadow(0 8px 7px rgba(70,50,35,.12)); transform: rotate(8deg); }
.expanded-card { min-height: 520px; margin-top: 24px; padding: 48px; }
.pin { position: absolute; z-index: 5; width: 22px; height: 22px; left: 50%; top: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#f9e4ae 0 22%,#ad8048 55%,#75502e 100%); box-shadow: 0 5px 8px rgba(67,48,33,.2); }

.notes-wall { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.note-item { position: relative; min-height: 220px; padding: 38px 28px 28px 43px; border: 1px solid rgba(95,78,62,.13); background: #fff8e8; box-shadow: 0 9px 19px rgba(75,56,39,.1); transform: rotate(-.5deg); background-image: repeating-linear-gradient(transparent 0 36px,rgba(118,145,164,.14) 37px 38px); }
.note-item:nth-child(3n+2) { transform: rotate(.7deg); background-color: #f5f2e2; }
.note-item:nth-child(3n) { transform: rotate(-.2deg); background-color: #f7eadf; }
.note-item::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: rgba(226,159,127,.55); }
.note-item p { margin: 0 0 20px; white-space: pre-wrap; font-family: var(--hand); font-size: 1.05rem; line-height: 2.25; }
.note-meta { position: absolute; left: 42px; right: 20px; bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .72rem; }
.comment-link { border: 0; padding: 3px 0; background: transparent; color: var(--sage-dark); cursor: pointer; border-bottom: 1px dashed currentColor; }
.note-mood { position: absolute; right: 14px; top: 11px; font-size: 1.25rem; }

.gallery-heading::before { background: rgba(220,232,238,.55); }
.film-count { position: relative; z-index: 3; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; border: 2px dashed rgba(82,61,43,.28); font-family: var(--hand); font-size: 1.25rem; transform: rotate(7deg); }
.gallery-board > .tape { top: -16px; left: 8%; transform: rotate(-4deg); }
.gallery-wall { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 24px; }
.photo-card { position: relative; margin: 0; padding: 11px 11px 42px; border: 0; background: #fff; box-shadow: 0 10px 22px rgba(62,49,37,.16); transform: rotate(-.7deg); cursor: pointer; text-align: left; transition: transform .2s,box-shadow .2s; }
.photo-card:nth-child(4n+2){transform:rotate(.8deg)}.photo-card:nth-child(4n+3){transform:rotate(-.2deg)}.photo-card:nth-child(4n){transform:rotate(.35deg)}
.photo-card:hover { z-index: 4; transform: translateY(-7px) rotate(0); box-shadow: 0 19px 30px rgba(62,49,37,.2); }
.photo-card::before { content: ""; position: absolute; z-index: 2; width: 52px; height: 15px; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: rgba(221,197,158,.66); }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--blue-soft); }
.photo-card figcaption { position: absolute; left: 14px; right: 14px; bottom: 8px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--hand); font-size: .92rem; }
.photo-card figcaption small { color: var(--muted); font-family: var(--sans); font-size: .64rem; }

.guestbook-layout { display: grid; grid-template-columns: minmax(320px,.85fr) minmax(0,1.15fr); gap: 24px; margin-top: 24px; }
.message-paper,.message-wall { min-height: 560px; padding: 42px; }
.message-paper > .tape { top: -13px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.message-paper h2,.message-wall h2,.local-player-heading h2,.netease-card h2,.netease-empty h2 { position: relative; z-index: 2; margin: 0 0 23px; font-family: var(--hand); font-size: 1.8rem; }
.message-form { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 15px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--ink); font-size: .86rem; font-weight: 700; }
input,textarea { width: 100%; border: 1px solid rgba(91,71,53,.23); border-radius: 14px; background: rgba(255,255,255,.76); padding: 11px 13px; color: var(--ink); outline: none; transition: border-color .2s,box-shadow .2s; font-weight: 400; }
textarea { resize: vertical; }
input:focus,textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(127,145,97,.13); }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.form-footer small,.form-hint,.form-message { color: var(--muted); font-size: .73rem; }
.honeypot { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
.guestbook-list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-height: 460px; overflow: auto; padding: 4px; }
.guestbook-item,.comment-item { position: relative; min-height: 125px; padding: 20px; border-left: 3px solid var(--peach); border-radius: 5px 16px 16px 5px; background: #fff8e8; box-shadow: 0 5px 12px rgba(70,52,37,.08); }
.guestbook-item:nth-child(even){background:#eef1e3;transform:rotate(.5deg)}
.guestbook-item p,.comment-item p { margin: 9px 0; white-space: pre-wrap; }
.guestbook-item header,.comment-item header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .72rem; }
.guestbook-item strong,.comment-item strong { color: var(--ink); }

.music-heading::before { background: rgba(220,232,238,.68); }
.netease-card { min-height: 500px; margin-top: 24px; padding: 38px; display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 30px; align-items: center; background: linear-gradient(125deg,rgba(255,253,248,.96),rgba(235,242,246,.96)); }
.netease-copy { position: relative; z-index: 2; }
.source-chip { display: inline-flex; margin-bottom: 14px; padding: 5px 11px; border-radius: 99px; color: #fff; background: #d94a48; font-size: .72rem; font-weight: 700; }
.netease-copy p { color: var(--muted); }
.netease-card iframe { position: relative; z-index: 2; width: 100%; height: 455px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line),0 8px 20px rgba(70,52,37,.08); }
.netease-empty { min-height: 170px; margin-top: 24px; padding: 34px 45px; display: flex; align-items: center; gap: 28px; }
.netease-empty > span { font-size: 3.2rem; color: var(--blue); }
.netease-empty h2 { margin-bottom: 2px; }
.netease-empty p { margin: 0; color: var(--muted); }
.local-music-card { min-height: 520px; margin-top: 24px; padding: 42px 50px; overflow: hidden; }
.local-music-card > .tape { right: -10px; top: -5px; transform: rotate(35deg); }
.local-player-heading { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.local-player-heading h2 { margin: 2px 0 0; }
.local-player-heading > small { color: var(--muted); }
.player { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(230px,330px) 1fr; gap: 60px; align-items: center; min-height: 330px; max-width: 980px; margin: 18px auto 0; }
.record-wrap { position: relative; width: min(300px,100%); aspect-ratio: 1; margin: auto; }
.album-cover { position: absolute; z-index: 2; left: 0; top: 10%; width: 78%; aspect-ratio: 1; border: 10px solid #fff; border-radius: 15px; background: linear-gradient(145deg,#c9dce7 0 42%,#e9c8a9 43% 57%,#9baa83 58% 100%); box-shadow: 0 12px 25px rgba(60,50,40,.18); overflow: hidden; }
.album-cover span { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 4rem; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.vinyl { position: absolute; width: 72%; aspect-ratio: 1; right: 0; top: 14%; border-radius: 50%; background: repeating-radial-gradient(circle,#1f2320 0 6px,#313430 7px 9px); box-shadow: 0 10px 18px rgba(0,0,0,.2); }
.vinyl::after { content: ""; position: absolute; inset: 39%; border-radius: 50%; background: var(--peach); border: 6px solid #d9b16d; }
.player-main h3 { margin: 5px 0 0; font-family: var(--hand); font-size: 2.2rem; line-height: 1.2; }
.player-main > p:not(.track-label) { margin: 4px 0 28px; color: var(--muted); }
.track-label { margin: 0; color: var(--sage-dark); font-size: .66rem; font-weight: 800; letter-spacing: .18em; }
.progress-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: .68rem; color: var(--muted); }
input[type="range"] { appearance: none; height: 4px; border: 0; padding: 0; background: linear-gradient(to right,var(--sage) var(--progress,0%),#d3d6cc var(--progress,0%)); border-radius: 99px; box-shadow: none; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--sage); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.player-controls { display: flex; align-items: center; gap: 11px; justify-content: center; margin-top: 23px; }
.play-button { width: 64px; height: 64px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sage); cursor: pointer; box-shadow: 0 8px 18px rgba(95,112,70,.26); }
.play-button svg { width: 28px; height: 28px; }
.playlist { position: relative; z-index: 2; list-style: none; max-width: 980px; margin: 10px auto 0; padding: 15px 0 0; display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow: auto; border-top: 1px dashed var(--line); }
.playlist li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-size: .84rem; }
.playlist li:hover,.playlist li.active { background: rgba(127,145,97,.13); }
.playlist-index,.playlist small { color: var(--muted); }

.empty-state { position: relative; z-index: 2; min-height: 350px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-state > span { color: var(--sage); font-size: 3rem; }
.empty-state p { margin: 8px 0 0; color: var(--ink); font-family: var(--hand); font-size: 1.35rem; }
.empty-state small { margin-top: 3px; }
.photo-empty { min-height: 440px; }
.empty-polaroid { width: 190px; height: 155px; border: 11px solid #fff; border-bottom-width: 31px; display: grid; place-items: center; background: linear-gradient(155deg,var(--blue-soft),var(--sage-soft)); box-shadow: 0 9px 22px rgba(70,53,37,.14); transform: rotate(-4deg); }
.empty-polaroid svg { width: 60px; height: 60px; color: rgba(74,56,41,.45); }

.button { border: 0; border-radius: 999px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .18s,box-shadow .18s,opacity .18s; }
.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.primary { color: #fff; background: var(--sage); box-shadow: 0 6px 12px rgba(95,112,70,.22); }
.button.primary:hover { background: var(--sage-dark); }
.button.secondary { background: #fffaf0; border: 1px solid var(--line); color: var(--ink); }
.button.danger { color: #fff; background: var(--danger); }
.button.full { width: 100%; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.58); cursor: pointer; }
.icon-button:hover { background: #fff; transform: translateY(-1px); }

.site-footer { width: min(700px,calc(100% - 48px)); margin: 0 auto 38px; text-align: center; color: var(--muted); }
.site-footer span { color: var(--peach); font-size: 1.5rem; }
.site-footer p { margin: 1px 0; font-family: var(--hand); font-size: 1.08rem; }
.site-footer a { font-size: .72rem; text-decoration: none; border-bottom: 1px dashed currentColor; }

.modal { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 20px; background: transparent; color: var(--ink); }
.modal::backdrop { background: rgba(51,42,35,.58); backdrop-filter: blur(5px); }
.modal[open] { display: grid; place-items: center; }
.modal-card { position: relative; width: min(480px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px; border: 1px solid rgba(91,71,53,.18); border-radius: 26px; background: var(--paper); box-shadow: 0 30px 80px rgba(45,34,27,.32); }
.modal-card.wide { width: min(720px,100%); }
.modal-card > h2 { margin: 4px 0 8px; font-family: var(--hand); font-size: 2rem; }
.modal-card > label { margin-top: 13px; }
.modal-close { position: absolute; top: 15px; right: 15px; z-index: 4; }
.modal-badge { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 18px; color: var(--sage-dark); background: var(--sage-soft); transform: rotate(-4deg); }
.modal-badge svg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.form-message { min-height: 1.2em; margin: 10px 0; color: var(--danger); }
.comments-list { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow: auto; margin: 18px 0; }
.compact { padding-top: 16px; border-top: 1px dashed var(--line); }
.photo-modal-card { width: min(1150px,100%); display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.55fr); gap: 30px; align-items: center; }
.photo-modal-card > img { width: 100%; max-height: 78vh; object-fit: contain; background: #eee5d8; border: 12px solid #fff; box-shadow: 0 10px 26px rgba(65,51,39,.16); }
.lightbox-copy h2 { margin: 4px 0 8px; font-family: var(--hand); font-size: 2rem; }
.photo-meta { color: var(--muted); font-size: .76rem; }

.admin-panel { width: min(1180px,100%); padding: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 30px 20px; border-bottom: 1px solid var(--line); }
.admin-header h2 { margin: 2px 0; font-family: var(--hand); font-size: 2rem; }
.admin-header p { margin: 0; }
.admin-header-actions { display: flex; align-items: center; gap: 9px; }
.admin-tabs { display: flex; gap: 7px; padding: 12px 25px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs button { border: 0; border-radius: 99px; background: transparent; padding: 8px 13px; white-space: nowrap; cursor: pointer; }
.admin-tabs button.active { color: #fff; background: var(--sage); }
.admin-section { display: none; grid-template-columns: minmax(310px,.82fr) minmax(0,1.18fr); gap: 26px; padding: 28px; }
.admin-section.active { display: grid; }
.admin-form-stack { display: flex; flex-direction: column; gap: 15px; }
.admin-form { display: flex; flex-direction: column; gap: 13px; align-self: start; padding: 20px; border-radius: 20px; background: var(--paper-warm); border: 1px solid var(--line); }
.netease-settings-form { background: #eef2e6; }
.form-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.form-title h3 { margin: 0; font-family: var(--hand); font-size: 1.35rem; }
.text-button { border: 0; border-bottom: 1px dashed currentColor; background: transparent; color: var(--muted); padding: 0; cursor: pointer; font-size: .75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.check-label { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; }
.check-label input { width: auto; accent-color: var(--sage); }
.file-drop { position: relative; min-height: 128px; display: grid; place-items: center; align-content: center; text-align: center; gap: 4px; border: 2px dashed rgba(127,145,97,.45); border-radius: 17px; background: rgba(223,229,207,.35); cursor: pointer; }
.file-drop svg { width: 30px; height: 30px; color: var(--sage-dark); }
.file-drop small { color: var(--muted); font-weight: 400; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop.compact-drop { min-height: 82px; grid-template-columns: auto 1fr; text-align: left; padding: 14px; }
.file-drop.compact-drop small { grid-column: 2; }
.upload-preview { width: 100%; max-height: 220px; object-fit: contain; border: 8px solid #fff; background: #eee5d8; box-shadow: var(--shadow-soft); }
.admin-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: 650px; overflow: auto; padding-right: 4px; }
.admin-item { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.admin-item-media { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--blue-soft); font-size: 1.5rem; }
.admin-item h4 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item p { margin: 2px 0 0; color: var(--muted); font-size: .74rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.admin-item-actions { display: flex; gap: 5px; }
.admin-item-actions .icon-button { width: 34px; height: 34px; }
.status-chip { display: inline-block; width: fit-content; margin-top: 4px; padding: 2px 7px; border-radius: 99px; background: var(--sage-soft); color: var(--sage-dark); font-size: .64rem; }
.status-chip.pending { background: #f5e4b7; color: #82682c; }
.status-chip.rejected { background: #efcfcb; color: #944c45; }
.moderation-toolbar { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.moderation-toolbar p { margin: 0; color: var(--muted); }
#adminComments .admin-list { grid-column: 1/-1; }
#pendingBadge:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 99px; background: #f1d08b; color: #594419; font-size: .65rem; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { max-width: min(390px,calc(100vw - 40px)); padding: 12px 16px; color: #fff; background: #4f463e; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.23); animation: toast-in .25s ease; }
.toast.success { background: var(--sage-dark); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1200px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .site-nav { position: absolute; top: 88px; right: 0; display: none; width: min(330px,calc(100vw - 48px)); padding: 14px; flex-direction: column; align-items: stretch; gap: 2px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 13px; }
  .menu-toggle { display: block; justify-self: end; cursor: pointer; }
  .owner-actions { grid-column: 3; grid-row: 1; justify-self: end; }
  .hero { grid-template-columns: .9fr 1.25fr; }
  .portal-grid { grid-template-columns: 1fr 1.2fr; }
  .portal-card { min-height: 420px; }
  .notes-wall { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-wall { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .site-header,.page-shell { width: min(100% - 28px,720px); }
  .site-header { min-height: 82px; gap: 9px; }
  .brand-sketch { width: 40px; height: 38px; }
  .brand-sketch svg { width: 38px; height: 38px; }
  .brand-name { font-size: 1.2rem; letter-spacing: .05em; }
  .tiny-paw { display: none; }
  .owner-actions .button { font-size: 0; width: 42px; padding: 0; }
  .owner-actions .button svg { margin: 0; }
  .page-shell { margin-top: 8px; }
  .hero { min-height: 650px; grid-template-columns: 1fr; overflow: hidden; }
  .hero-copy { padding: 60px 30px 30px; min-height: 300px; }
  .hero h1 { white-space: normal; font-size: clamp(2.65rem,10.3vw,4.2rem); letter-spacing: .02em; overflow-wrap: anywhere; }
  .hero h1 span { display: block; }
  .hero-photo { min-height: 330px; border-radius: 0 0 28px 28px; clip-path: polygon(0 4%,100% 0,100% 100%,0 100%); }
  .hero-photo img { min-height: 330px; object-position: 62% 50%; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 405px; }
  .view-header { min-height: 190px; padding: 30px 26px; }
  .view-icon { font-size: 3.7rem; }
  .expanded-card { padding: 35px 22px; }
  .notes-wall,.gallery-wall { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
  .guestbook-layout { grid-template-columns: 1fr; }
  .message-paper,.message-wall { min-height: 0; padding: 30px 22px; }
  .guestbook-list { max-height: none; }
  .netease-card { grid-template-columns: 1fr; padding: 28px 20px; }
  .netease-card iframe { height: 455px; }
  .local-music-card { padding: 35px 22px; }
  .player { grid-template-columns: 180px 1fr; gap: 25px; }
  .album-cover { border-width: 6px; }
  .player-main h3 { font-size: 1.55rem; }
  .modal { padding: 10px; }
  .modal-card { padding: 28px 20px; max-height: calc(100vh - 20px); }
  .photo-modal-card { grid-template-columns: 1fr; }
  .photo-modal-card > img { max-height: 50vh; }
  .admin-header { padding: 22px 20px 16px; align-items: flex-start; }
  .admin-header-actions .button { font-size: 0; width: 42px; padding: 0; }
  .admin-section,.admin-section.active { grid-template-columns: 1fr; padding: 18px; }
  .admin-list { max-height: none; }
}

@media (max-width: 500px) {
  .brand-name small { display: none; }
  .hero-copy { min-height: 280px; padding-inline: 22px; }
  .hero-photo,.hero-photo img { min-height: 260px; }
  .hero-signature { gap: 6px; font-size: .65rem; }
  .portal-card { padding-inline: 20px; }
  .notes-wall,.gallery-wall,.guestbook-list { grid-template-columns: 1fr; }
  .photo-card { max-width: 360px; width: 100%; margin-inline: auto; }
  .view-header { align-items: flex-end; }
  .view-icon { font-size: 2.8rem; }
  .view-header h1 { font-size: 2.7rem; }
  .netease-empty { padding: 26px 20px; }
  .player { grid-template-columns: 1fr; text-align: center; }
  .record-wrap { width: 190px; }
  .progress-wrap { text-align: left; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-footer .button { align-self: stretch; }
  .form-row { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 48px 1fr; }
  .admin-item-media { width: 48px; height: 48px; }
  .admin-item-actions { grid-column: 1/-1; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; animation-duration: .01ms!important; }
}
