/* 爱情相册的照片手账样式，仅在 album.html 加载。 */
.album-page {
  --ink: #453d40;
  --muted: #8a8281;
  --pink: #b66f82;
  --line: #e8e0d7;
  --paper: #fbf8f2;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.album-page .site-header { background: #fbf8f2f2; border-color: var(--line); }
.album-page .brand { font-size: 1.15rem; }
.album-page .brand-heart { font-size: 1.7rem; }
.album-page .brand small { font-size: .6rem; letter-spacing: 2px; }
.album-page .main-nav { gap: clamp(18px, 2.6vw, 38px); font-size: .84rem; font-weight: 500; }
.album-page .main-nav a.active::after { height: 2px; }
.album-page button { font: inherit; }
.album-page [hidden] { display: none !important; }
.album-page a:focus-visible, .album-page button:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
.album-skip { position: fixed; top: -80px; left: 20px; z-index: 150; padding: 10px 18px; background: var(--pink); color: white; border-radius: 4px; }
.album-skip:focus { top: 12px; }
.album-main { overflow: hidden; background: radial-gradient(ellipse at 80% 8%, #f0e4da73, transparent 29%), var(--paper); }
.album-shell { width: min(1180px, 88%); margin-inline: auto; }
#main-content, #photo-wall { scroll-margin-top: 105px; }
.album-kicker { display: flex; align-items: center; gap: 11px; color: #a16d79; font: 10px/1.9 Arial, "Microsoft YaHei", sans-serif; letter-spacing: 2px; }
.album-kicker::before { content: ""; width: 23px; height: 1px; background: #b8a28f; }
.album-opening { display: grid; grid-template-columns: 1fr 1.04fr; gap: 58px; align-items: center; padding: 53px 0 78px; }
.album-opening-copy { padding-block: 14px 27px; }
.album-opening h1 { margin: 25px 0 23px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.6; letter-spacing: 1px; font-weight: 500; }
.album-opening h1 em { position: relative; color: var(--pink); font-style: normal; white-space: nowrap; }
.album-opening h1 em::after { content: ""; position: absolute; bottom: -3px; left: 0; right: 0; height: 9px; border-top: 2px solid #cfa4af; border-radius: 50%; transform: rotate(-2deg); }
.album-lead { color: #8b8380; font: 13px/2.15 "Microsoft YaHei", sans-serif; }
.album-jump { display: inline-flex; align-items: center; gap: 32px; padding: 13px 22px; margin-top: 29px; color: #fffdf8; background: var(--pink); border-radius: 5px; font: 12px/1.8 "Microsoft YaHei", sans-serif; box-shadow: 0 5px 15px #b66f8212; transition: transform .2s, background .2s; }
.album-jump span { font-size: 19px; }
.album-jump:hover { background: #a05d70; transform: translateY(-2px); }
.album-opening-note { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: #958c83; font-size: 11px; }
.album-opening-note > span { color: #b9858d; font: 27px/1 Georgia, serif; transform: rotate(-12deg); }
.album-collage { position: relative; min-width: 0; height: 478px; }
.collage-wash { position: absolute; inset: 40px 20px 27px 30px; background: #ede1d7; border-radius: 50% 43% 47% 42%; transform: rotate(-12deg); }
.collage-route { position: absolute; width: 109%; height: 108%; left: -27px; top: -15px; }
.album-cover { position: absolute; left: 6px; top: 35px; width: 71%; padding: 11px 11px 0; background: #fffef9; border: 1px solid #e4ded2; box-shadow: 0 15px 38px #6c5a441c; transform: rotate(-6deg); }
.album-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.album-cover figcaption { padding: 17px 4px 20px; text-align: center; color: #988478; font-size: 11px; letter-spacing: 1.2px; }
.album-mini { position: absolute; right: 1%; bottom: 19px; width: 39%; padding: 8px 8px 0; border: 1px solid #e5decf; background: #fffef9; transform: rotate(8deg); box-shadow: 0 12px 25px #6c5a4422; }
.album-mini img { width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: 55% 35%; }
.album-mini figcaption { text-align: center; color: #9d877c; padding: 12px 0 15px; font-size: 10px; letter-spacing: 1px; }
.album-tape, .mini-tape { position: absolute; z-index: 2; left: 36%; top: -12px; width: 81px; height: 26px; background: repeating-linear-gradient(-35deg, #fffaf075 0 5px, transparent 5px 6px), #d8bd9ebf; clip-path: polygon(1% 3%, 98% 0, 95% 25%, 100% 50%, 96% 73%, 100% 98%, 0 100%, 4% 79%, 0 53%, 3% 25%); transform: rotate(-4deg); }
.mini-tape { width: 58px; height: 21px; background: #d3b2a6b5; left: 35%; transform: rotate(-6deg); }
.album-stamp { position: absolute; right: 2%; top: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 89px; height: 89px; border: 1px solid #b9848c; outline: 1px dashed #cba2a4; outline-offset: -6px; border-radius: 50%; color: #ad7381; background: #fcf6eb; transform: rotate(13deg); }
.album-stamp small { font: 6px/2 Arial, sans-serif; letter-spacing: .7px; white-space: nowrap; }
.album-stamp b { font: 30px/1.2 Georgia, serif; font-weight: 400; }
.collage-flower { position: absolute; left: -10px; bottom: 28px; color: #b6a178; font: 34px/1 Georgia, serif; }
.collage-handwriting { position: absolute; left: 9%; bottom: -9px; color: #a78b82; font: italic 13px/1.8 Georgia, serif; transform: rotate(-5deg); }
.album-gallery { position: relative; padding-top: 14px; padding-bottom: 73px; }
.album-heading { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; padding-top: 32px; border-top: 1px solid var(--line); margin-bottom: 30px; }
.album-heading h2 { margin-top: 12px; font-size: clamp(26px, 2.9vw, 37px); font-weight: 500; letter-spacing: 1px; line-height: 1.7; }
.album-heading h2 em { color: var(--pink); font-style: normal; background: linear-gradient(transparent 74%, #ead9d477 74% 95%, transparent 95%); }
.album-heading > p { color: #96897f; padding-bottom: 6px; font: 11px/2 "Microsoft YaHei", sans-serif; }
.album-camera { position: absolute; left: 49%; bottom: 0; width: 150px; height: 107px; transform: rotate(-6deg); pointer-events: none; }
.album-toolbar { padding-block: 19px; border-block: 1px solid var(--line); }
.album-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.album-filter { border: 1px solid #e5ded4; border-radius: 4px; padding: 8px 15px; color: #96877c; background: #fffdf8; font: 11px/1.8 "Microsoft YaHei", sans-serif !important; cursor: pointer; transition: background .2s, color .2s; }
.album-filter:hover { background: #f3e6e1; color: #a16676; }
.album-filter.is-active { background: var(--pink); border-color: var(--pink); color: #fffdf8; }
.album-result { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 31px; color: #a18f83; font: 10px/1.8 "Microsoft YaHei", sans-serif; }
.album-result > span { color: #a79b8b; letter-spacing: 1px; }
.album-result i { font: 16px/1 Georgia, serif; margin-left: 6px; color: #b6858a; }
.album-page .album-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: auto; gap: 37px 27px; align-items: start; background: radial-gradient(#b9af9152 .7px, transparent .7px) 0 0 / 17px 17px; }
.album-page .album-photo { --photo-accent: #ae7a83; --photo-paper: #f8efe9; --photo-tilt: -.7deg; position: relative; display: block; width: 100%; min-width: 0; padding: 11px 11px 0; border: 1px solid #e1d9cb; border-radius: 3px; overflow: visible; text-align: left; background: #fffef9; color: var(--ink); font: inherit; cursor: zoom-in; box-shadow: 3px 4px 0 #e7dfd45e, 0 7px 21px #6b544e0b; transform: rotate(var(--photo-tilt)); transition: transform .25s, box-shadow .25s; }
.album-page .album-photo:nth-child(3n+2) { --photo-accent: #7e8c70; --photo-paper: #eff2e7; --photo-tilt: .8deg; }
.album-page .album-photo:nth-child(3n) { --photo-accent: #8a9b9c; --photo-paper: #edf1ef; --photo-tilt: -.4deg; }
.album-page .album-photo.is-offset { margin-top: 29px; }
.album-page .album-photo::before { content: ""; position: absolute; z-index: 2; left: calc(50% - 32px); top: -10px; width: 65px; height: 24px; background: repeating-linear-gradient(90deg, transparent 0 9px, #fff9ef80 9px 10px), #d9b5a5ba; clip-path: polygon(1% 5%, 97% 0, 95% 20%, 100% 33%, 96% 50%, 99% 74%, 96% 97%, 3% 100%, 5% 79%, 0 62%, 4% 42%, 0 21%); transform: rotate(-7deg); pointer-events: none; }
.album-page .album-photo:nth-child(3n+2)::before { left: 25%; background: radial-gradient(#fffaf0aa 1.3px, transparent 1.3px) 0 0 / 8px 8px, #bec9a9bf; transform: rotate(6deg); }
.album-page .album-photo:nth-child(3n)::before { left: auto; right: 20px; background: repeating-linear-gradient(-35deg, transparent 0 6px, #fff8ed90 6px 7px), #d8c49bbf; transform: rotate(-5deg); }
.album-page .album-photo::after { display: none; }
.album-page .album-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; transition: none; }
.album-page .album-photo:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 15px 33px #6b544e1c; }
.album-page .album-photo:hover img { transform: none; }
.album-page .album-photo span { position: static; bottom: auto; left: auto; z-index: auto; color: inherit; font-size: inherit; letter-spacing: normal; }
.album-page .album-photo .photo-city { position: absolute; left: 24px; top: 24px; z-index: 1; padding: 4px 9px; background: #fffaf0e8; color: #796b5b; border: 1px solid #fdf8ea; box-shadow: 1px 2px 3px #3f3b3022; font: 10px/1.8 "Microsoft YaHei", sans-serif; letter-spacing: 2px; transform: rotate(-3deg); pointer-events: none; }
.album-page .album-photo .photo-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 21px 11px 23px; }
.album-page .album-photo .photo-copy { display: block; min-width: 0; flex: 1; }
.album-page .album-photo .photo-title { display: block; font-size: 16px; line-height: 1.9; font-weight: 500; color: #594951; letter-spacing: .4px; }
.album-page .album-photo .photo-place { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #ac978c; font: 9px/1.8 Arial, sans-serif; letter-spacing: 1.6px; }
.photo-place::before { content: ""; display: inline-block; width: 18px; height: 1px; background: #c7b5a0; }
.album-page .album-photo .photo-heart { display: grid; flex-shrink: 0; place-items: center; width: 35px; height: 35px; color: var(--photo-accent); border: 1px dashed #cabdaa; border-radius: 50%; background: var(--photo-paper); font: 22px/1 Georgia, serif; transform: rotate(9deg); }
.album-pagination { padding-top: 49px; text-align: center; }
.album-more { min-width: 220px; padding: 12px 24px; border: 1px solid #cfaab0; border-radius: 4px; color: #a36374; background: #fffdf8; font: 12px/1.8 "Microsoft YaHei", sans-serif !important; cursor: pointer; transition: background .2s; }
.album-more:hover:not(:disabled) { background: #f4e5e1; }
.album-more:disabled { color: #9d9485; border-color: #dedbcf; background: #f3f1e8; cursor: default; }
.album-pagination > p { margin-top: 18px; color: #af9e91; font-size: 10px; letter-spacing: 2px; }
.album-promise { padding-bottom: 65px; }
.promise-paper { position: relative; padding: 40px 25px 44px; text-align: center; background: #f1e8e0; border: 1px solid #e1d4c7; border-radius: 3px; }
.promise-paper::before { content: ""; position: absolute; inset: 9px; border: 1px dashed #d5bfae; pointer-events: none; }
.promise-paper::after { content: ""; position: absolute; left: calc(50% - 39px); top: -11px; width: 78px; height: 25px; background: #d4bf9eb5; clip-path: polygon(0 8%, 98% 0, 96% 25%, 100% 50%, 95% 73%, 100% 98%, 1% 100%, 4% 80%, 0 53%, 4% 25%); transform: rotate(-5deg); pointer-events: none; }
.promise-heart { display: block; margin-bottom: 13px; color: #b8848c; font: 30px/1.2 Georgia, serif; }
.promise-paper .album-kicker { justify-content: center; font-size: 8px; color: #a7827b; }
.promise-paper .album-kicker::before { display: none; }
.promise-paper h2 { margin: 16px 0; font-size: clamp(23px, 2.7vw, 34px); font-weight: 500; line-height: 1.9; letter-spacing: 1px; }
.promise-paper h2 em { color: var(--pink); font-style: normal; }
.promise-note { color: #99867c; font: 11px/1.9 "Microsoft YaHei", sans-serif; }
.promise-link { position: relative; display: inline-flex; gap: 20px; margin-top: 19px; padding-bottom: 5px; border-bottom: 1px solid #b99590; color: #a26676; font: 11px/1.8 "Microsoft YaHei", sans-serif; }
.promise-flower { position: absolute; top: 20px; right: 29px; color: #b5a17b; font: 29px/1 Georgia, serif; }
.album-page .site-footer { background: var(--paper); border-color: var(--line); color: #958a80; font-size: 11px; }
.album-page .site-footer .brand { font-size: 14px; }
.album-page .lightbox { z-index: 100; padding: 65px 24px 24px; background: #242023f2; backdrop-filter: blur(8px); }
.album-page .preview-frame { max-width: 100%; }
.album-page .lightbox img { width: auto; height: auto; max-width: min(90vw, 1000px); max-height: min(76vh, calc(100dvh - 155px)); margin-inline: auto; object-fit: contain; border-radius: 3px; box-shadow: 0 10px 40px #08060938; }
.preview-frame figcaption { padding: 17px 0 3px; text-align: center; color: #fff5ea; }
.preview-frame h2 { font-weight: 400; font-size: 16px; letter-spacing: 1px; }
.preview-frame p { margin-top: 6px; color: #bea9ac; font: 10px/1.8 Arial, "Microsoft YaHei", sans-serif; letter-spacing: 1.5px; }
.album-page .lightbox-close { top: 14px; right: 22px; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #b8a2a448; border-radius: 50%; font: 30px/1 Arial, sans-serif; color: #fff5ea; }
@media (max-width: 1050px) {
  .album-opening { gap: 30px; }
  .album-collage { height: 433px; }
  .album-cover { top: 41px; width: 75%; }
  .album-mini { bottom: 26px; }
  .collage-handwriting { bottom: -2px; font-size: 12px; }
  .album-camera { left: 49%; width: 125px; }
  .album-heading > p { font-size: 10px; }
  .album-page .album-grid { gap: 31px 19px; }
  .album-page .album-photo { padding: 9px 9px 0; }
  .album-page .album-photo .photo-caption { padding: 18px 8px 20px; gap: 8px; }
  .album-page .album-photo .photo-title { font-size: 14px; }
  .album-page .album-photo .photo-heart { width: 29px; height: 29px; font-size: 19px; }
}
@media (max-width: 850px) {
  .album-opening { padding-top: 40px; gap: 22px; }
  .album-opening h1 { font-size: 36px; }
  .album-lead { font-size: 12px; }
  .album-collage { height: 359px; }
  .album-cover { top: 30px; padding: 8px 8px 0; }
  .album-cover figcaption { font-size: 9px; padding-block: 13px 16px; }
  .album-mini { bottom: 18px; }
  .album-mini figcaption { font-size: 8px; padding-block: 10px 12px; }
  .album-stamp { width: 72px; height: 72px; right: -1%; }
  .album-stamp small { font-size: 5px; letter-spacing: .5px; }
  .album-stamp b { font-size: 25px; }
  .collage-handwriting { font-size: 10px; bottom: -5px; left: 6%; }
  .collage-flower { bottom: 5px; font-size: 26px; }
  .album-camera { display: none; }
  .album-page .album-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 21px; }
  .album-page .album-photo.is-offset { margin-top: 0; }
  .album-page .album-photo.is-offset-mobile { margin-top: 24px; }
  .album-page .album-photo .photo-title { font-size: 16px; }
  .album-page .album-photo .photo-caption { padding: 21px 10px; }
}
@media (max-width: 600px) {
  .album-opening { grid-template-columns: 1fr; padding: 33px 0 42px; gap: 15px; }
  .album-opening-copy { padding-bottom: 0; }
  .album-opening h1 { font-size: clamp(33px, 9vw, 42px); margin-block: 20px; }
  .album-kicker { font-size: 9px; letter-spacing: 1.5px; }
  .album-lead { font-size: 12px; }
  .album-jump { margin-top: 23px; }
  .album-opening-note { margin-top: 21px; }
  .album-collage { height: 353px; width: min(390px, 100%); margin: 6px auto 0; }
  .album-cover { width: 75%; top: 27px; left: 5px; }
  .album-mini { width: 37%; right: 0; bottom: 18px; }
  .album-stamp { right: 0; top: 8px; }
  .collage-route { width: 108%; left: -17px; }
  .album-tape { width: 62px; height: 22px; top: -10px; }
  .mini-tape { width: 44px; }
  .collage-handwriting { bottom: -2px; }
  .album-gallery { padding-top: 3px; padding-bottom: 43px; }
  .album-heading { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; margin-bottom: 21px; }
  .album-heading h2 { font-size: 27px; }
  .album-heading > p { font-size: 10px; }
  .album-toolbar { padding-block: 14px; }
  .album-filters { gap: 7px; }
  .album-filter { font-size: 10px !important; padding: 7px 12px; }
  .album-result { padding: 17px 0 26px; font-size: 9px; gap: 10px; }
  .album-result > span { font-size: 8px; letter-spacing: 0; }
  .album-result i { display: none; }
  .album-page .album-grid { gap: 26px 13px; background-size: 15px 15px; }
  .album-page .album-photo { padding: 7px 7px 0; --photo-tilt: -.5deg; }
  .album-page .album-photo.is-offset-mobile { margin-top: 18px; }
  .album-page .album-photo::before { width: 45px; height: 19px; top: -8px; left: calc(50% - 22px); }
  .album-page .album-photo .photo-city { left: 14px; top: 14px; font-size: 8px; letter-spacing: 1px; padding: 3px 6px; }
  .album-page .album-photo .photo-caption { padding: 13px 4px 16px; gap: 0; }
  .album-page .album-photo .photo-title { font-size: 12px; line-height: 1.85; letter-spacing: .1px; }
  .album-page .album-photo .photo-heart { display: none; }
  .album-page .album-photo .photo-place { margin-top: 8px; font-size: 8px; letter-spacing: 1px; gap: 7px; }
  .photo-place::before { width: 10px; }
  .album-pagination { padding-top: 35px; }
  .album-more { font-size: 11px !important; min-width: 205px; }
  .album-promise { padding-bottom: 40px; }
  .promise-paper { padding: 32px 17px 36px; }
  .promise-paper h2 { font-size: 23px; }
  .promise-paper .album-kicker { font-size: 7px; letter-spacing: 1.6px; }
  .promise-note { font-size: 10px; }
  .promise-flower { font-size: 22px; right: 21px; }
  .album-page .lightbox { padding-inline: 14px; }
  .album-page .lightbox img { max-width: 92vw; }
  .preview-frame h2 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-page *, .album-page *::before, .album-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
