/* 回忆手账：页头沿用首页与旅行介绍的尺寸和配色。 */
.memories-page {
  --ink: #383e36;
  --muted: #787e73;
  --pink: #b56879;
  --green: #4e6855;
  --paper: #fbf8f2;
  --line: #e6e3d8;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.memories-page .site-header {
  background: #fbf8f2f2;
  border-color: var(--line);
}

.memories-page .site-header .brand {
  color: var(--ink);
  font-size: 1.15rem;
}

.memories-page .site-header .brand-heart {
  color: var(--pink);
  font-size: 1.7rem;
}

.memories-page .site-header .brand small {
  color: #8b8b7f;
  font-size: .6rem;
  letter-spacing: 2px;
}

.memories-page .main-nav {
  gap: clamp(18px, 2.6vw, 38px);
  font-size: .84rem;
  font-weight: 500;
}

.memories-page .main-nav a.active::after {
  height: 2px;
}

.memories-page a:focus-visible,
.memories-page button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 5px;
}

.memories-page .skip-link {
  position: fixed;
  z-index: 100;
  top: -90px;
  left: 20px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--green);
  color: white;
}

.memories-page .skip-link:focus { top: 12px; }
.memory-shell { width: min(1180px, 88%); margin-inline: auto; }
#main-content, #memory-notes { scroll-margin-top: 105px; }
.memory-kicker { color: #939a84; font: 10px/1.9 Arial, "Microsoft YaHei", sans-serif; letter-spacing: 2px; }
.memory-opening { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 38px; padding-top: 49px; }
.memory-opening-copy { padding-block: 15px 35px; }
.memory-opening h1 { font-size: clamp(35px, 4.2vw, 59px); font-weight: 500; line-height: 1.6; letter-spacing: 1px; margin-top: 23px; }
.memory-opening h1 em { position: relative; color: var(--pink); font-style: normal; }
.memory-opening h1 em::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 98%; height: 7px; border-top: 2px solid #d3a6ab; border-radius: 50%; transform: rotate(-2deg); opacity: .65; }
.memory-lead { font: 13px/2.2 "Microsoft YaHei", sans-serif; color: #87907e; margin-top: 25px; }
.memory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.memory-button { display: inline-flex; align-items: center; gap: 23px; padding: 14px 21px; background: var(--green); color: #fffdf8; border-radius: 6px; font: 12px/1.8 "Microsoft YaHei", sans-serif; transition: transform .2s, background .2s; }
.memory-button span { font-size: 18px; }
.memory-button:hover { background: #3c5342; transform: translateY(-2px); }
.memory-quiet-link { display: inline-flex; align-items: center; gap: 13px; color: #809173; border-bottom: 1px solid #c6ccb7; padding-bottom: 5px; font: 11px/1.8 "Microsoft YaHei", sans-serif; }
.memory-quiet-link:hover { color: var(--pink); border-color: var(--pink); }
.memory-whisper { display: flex; align-items: center; gap: 11px; margin-top: 27px; color: #a19684; font-size: 11px; letter-spacing: 1px; }
.memory-whisper span { color: #bd8d94; font: 29px/1 Georgia, serif; transform: rotate(-10deg); }
.memory-collage { position: relative; height: 454px; min-width: 0; }
.memory-collage-paper { position: absolute; inset: 35px 15px 38px 35px; background: radial-gradient(#c4b89f66 1px, transparent 1px) 0 0 / 15px 15px, #eee7da; border-radius: 43% 51% 42% 48%; transform: rotate(-11deg); }
.memory-route { position: absolute; width: 107%; height: 105%; left: -17px; top: -12px; color: #b9bda4; }
.memory-cover { position: absolute; top: 30px; left: 6%; width: 65%; padding: 10px 10px 0; border: 1px solid #e3dfd2; background: #fffef8; transform: rotate(-6deg); box-shadow: 0 13px 32px #5b55461a; }
.memory-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.memory-cover figcaption { text-align: center; padding: 16px 4px 19px; font-size: 11px; color: #a18a7b; letter-spacing: 1.5px; }
.memory-tape { position: absolute; z-index: 1; width: 87px; height: 25px; left: 35%; top: -12px; background: repeating-linear-gradient(-35deg, #fff8e963 0 6px, transparent 6px 7px), #d3bea2c2; clip-path: polygon(0 4%, 99% 0, 96% 25%, 100% 50%, 96% 75%, 99% 100%, 0 97%, 4% 75%, 0 50%, 4% 25%); transform: rotate(4deg); }
.memory-snapshot { position: absolute; right: 0; bottom: 20px; width: 35%; padding: 7px 7px 0; border: 1px solid #e3dfd2; background: #fffdf8; box-shadow: 0 12px 30px #5b55461a; transform: rotate(8deg); }
.memory-snapshot img { width: 100%; height: auto; aspect-ratio: .86; object-fit: cover; object-position: center 48%; }
.memory-snapshot figcaption { text-align: center; padding: 12px 2px 14px; color: #ac8b82; font-size: 9px; }
.memory-postmark { position: absolute; right: 3%; top: 9px; width: 87px; height: 87px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #fbf8f2d9; border: 1px solid #be9296; outline: 1px dashed #ccaaac; outline-offset: -6px; border-radius: 50%; color: #b5868f; transform: rotate(13deg); }
.memory-postmark span { font: 6px/1.9 Arial, sans-serif; letter-spacing: 1px; }
.memory-postmark strong { font: 33px/1.4 Georgia, serif; font-weight: 400; }
.memory-flower { position: absolute; bottom: 53px; left: 0; color: #bdb180; font-size: 35px; transform: rotate(13deg); }
.memory-handwriting { position: absolute; bottom: 0; left: 9%; color: #a28d7c; font: italic 14px/1.8 Georgia, serif; transform: rotate(-5deg); }
.memory-notes { padding: 57px 0 65px; }
.memory-heading { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 25px 0 31px; border-top: 1px solid var(--line); }
.memory-heading::before { content: "♡"; position: absolute; right: 28%; top: 33px; color: #d0ada340; font: 65px/1 Georgia, serif; transform: rotate(-15deg); }
.memory-heading h2 { font-size: clamp(27px, 3vw, 38px); font-weight: 500; margin-top: 12px; line-height: 1.8; }
.memory-heading h2 em { font-style: normal; color: var(--pink); }
.memory-heading > p { font: 11px/2 "Microsoft YaHei", sans-serif; color: #a09b86; text-align: right; padding-bottom: 8px; }
.memories-page .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 39px 35px; align-items: start; }
.memories-page .memory-card { position: relative; padding: 11px; overflow: visible; border: 1px solid #e0dfd1; border-radius: 3px; background: #fffdf7; box-shadow: 4px 5px 0 #e8e4d970; transition: transform .25s, box-shadow .25s; }
.memories-page .memory-card:nth-child(even) { margin-top: 35px; }
.memories-page .memory-card::before { content: ""; position: absolute; z-index: 2; top: -10px; left: calc(50% - 38px); width: 76px; height: 24px; background: repeating-linear-gradient(90deg, #fffaed66 0 8px, transparent 8px 9px), #cfc4a5b3; transform: rotate(-6deg); clip-path: polygon(0 4%, 100% 0, 97% 25%, 100% 50%, 96% 76%, 100% 99%, 0 100%, 3% 75%, 0 50%, 4% 25%); }
.memories-page .memory-card:nth-child(even)::before { background: repeating-linear-gradient(-35deg, #fff6eb63 0 5px, transparent 5px 6px), #d6b6a5b8; transform: rotate(7deg); }
.memories-page .memory-card:hover { transform: translateY(-5px); box-shadow: 4px 9px 0 #e8e4d970, 0 12px 30px #5b554610; }
.memory-photo { position: relative; overflow: hidden; background: #e7e8db; }
.memories-page .memory-photo img { width: 100%; height: auto; aspect-ratio: 1.52; border-radius: 1px; object-fit: cover; transition: transform .6s; }
.memory-card:hover .memory-photo img { transform: scale(1.04); }
.memory-number { position: absolute; top: 16px; left: 17px; border: 1px solid #fffcf8b3; padding: 5px 9px; background: #fbf8f2ed; color: #85896e; font: 8px/1.8 Arial, sans-serif; letter-spacing: 1.5px; transform: rotate(-3deg); }
.memory-stamp { position: absolute; right: 17px; bottom: 17px; display: flex; align-items: center; justify-content: center; flex-direction: column; width: 70px; height: 70px; border: 4px solid #fffdf1; outline: 1px solid #d5c7b14d; background: #f3e7d3ed; color: #a38373; font-size: 15px; transform: rotate(9deg); box-shadow: 2px 3px 8px #3638241a; }
.memory-stamp::before { content: ""; position: absolute; inset: 3px; border: 1px dashed #bca48b; }
.memory-stamp small { margin-top: 3px; font: 6px/1.7 Arial, sans-serif; letter-spacing: 1.4px; }
.memory-card:nth-child(even) .memory-stamp { border-radius: 50%; transform: rotate(-10deg); background: #eceddeed; color: #8d977b; }
.memory-card:nth-child(even) .memory-stamp::before { border-radius: 50%; border-color: #aeb698; }
.memories-page .memory-copy { position: relative; padding: 25px 20px 12px; background: repeating-linear-gradient(0deg, #acb3930b 0 1px, transparent 1px 28px); }
.memories-page .date-label { color: #af9b85; font: 9px/1.9 Arial, "Microsoft YaHei", sans-serif; font-weight: 400; letter-spacing: 1px; }
.memories-page .memory-copy h3 { color: #58634c; font-size: 25px; font-weight: 500; line-height: 1.7; margin: 10px 0 13px; }
.memories-page .memory-copy > p { color: #91957f; font: 12px/2 "Microsoft YaHei", sans-serif; }
.memory-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed #dbdfcc; margin-top: 22px; padding-top: 13px; color: #a8ae95; font: 8px/1.9 Arial, sans-serif; letter-spacing: 1.8px; }
.memory-heart { color: #bc9292; font: 25px/1 Georgia, serif; transform: rotate(-10deg); }
.memory-letter { position: relative; margin-bottom: 65px; text-align: center; padding: 43px 30px; background: #edf0e4; border: 1px solid #dbdfcd; border-radius: 4px; }
.memory-letter::before { content: ""; position: absolute; inset: 8px; border: 1px dashed #c9d1b9; pointer-events: none; }
.memory-letter::after { content: ""; position: absolute; top: -11px; left: calc(50% - 42px); width: 84px; height: 25px; background: repeating-linear-gradient(45deg, #fff8e956 0 6px, transparent 6px 7px), #d6c6a8ad; transform: rotate(-5deg); }
.memory-letter h2 { font-size: clamp(23px, 2.5vw, 31px); font-weight: 500; line-height: 1.8; margin: 14px 0; }
.memory-letter h2 em { color: var(--pink); font-style: normal; }
.memory-letter > p:not(.memory-kicker) { color: #949b82; font: 11px/2 "Microsoft YaHei", sans-serif; }
.memory-letter .memory-quiet-link { margin-top: 21px; }
.letter-flower { position: absolute; top: 21px; right: 26px; color: #b4ba93; font-size: 30px; transform: rotate(15deg); }
.memories-page .site-footer { background: var(--paper); border-top: 1px solid var(--line); color: #8c9281; font-size: 11px; }
.memories-page .site-footer .brand { font-size: 14px; }

@media (max-width: 1000px) {
  .memory-opening { gap: 22px; }
  .memory-opening h1 { font-size: 39px; }
  .memory-collage { height: 386px; }
  .memory-cover { width: 71%; left: 1%; }
  .memory-cover figcaption { font-size: 10px; padding-block: 12px 15px; }
  .memory-snapshot { width: 36%; bottom: 16px; }
  .memory-postmark { width: 77px; height: 77px; right: -1%; top: 0; }
  .memory-actions { gap: 18px; }
  .memory-button { gap: 16px; padding: 12px 16px; font-size: 11px; }
  .memory-quiet-link { font-size: 10px; }
  .memories-page .memory-grid { gap: 30px 24px; }
  .memories-page .memory-copy { padding-inline: 15px; }
  .memories-page .memory-copy h3 { font-size: 23px; }
}

@media (max-width: 700px) {
  .memories-page .main-nav { background: var(--paper); gap: 0; }
  .memory-opening { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .memory-opening-copy { padding-block: 5px 15px; }
  .memory-kicker { font-size: 8px; letter-spacing: 1.5px; }
  .memory-opening h1 { font-size: clamp(34px, 9vw, 47px); margin-top: 18px; }
  .memory-lead { font-size: 11px; margin-top: 21px; }
  .memory-actions { margin-top: 23px; }
  .memory-whisper { font-size: 10px; margin-top: 23px; }
  .memory-collage { width: min(420px, 100%); height: 366px; margin: 8px auto 0; }
  .memory-cover { top: 25px; left: 4%; width: 69%; }
  .memory-snapshot { bottom: 22px; }
  .memory-postmark { right: 0; top: 8px; width: 75px; height: 75px; }
  .memory-postmark span { font-size: 5.5px; }
  .memory-flower { bottom: 55px; font-size: 29px; }
  .memory-handwriting { font-size: 12px; bottom: 5px; }
  .memory-notes { padding-top: 35px; padding-bottom: 42px; }
  .memory-heading { flex-direction: column; align-items: flex-start; gap: 13px; padding: 25px 0 28px; }
  .memory-heading h2 { font-size: 27px; margin-top: 9px; }
  .memory-heading > p { text-align: left; font-size: 10px; padding: 0; }
  .memory-heading::before { right: 6px; top: 35px; font-size: 55px; }
  .memories-page .memory-grid { grid-template-columns: 1fr; gap: 30px; }
  .memories-page .memory-card:nth-child(even) { margin-top: 0; }
  .memories-page .memory-card { padding: 10px; }
  .memories-page .memory-copy { padding: 22px 13px 11px; }
  .memories-page .memory-copy h3 { font-size: 22px; }
  .memories-page .memory-copy > p { font-size: 11px; }
  .memory-stamp { width: 60px; height: 60px; font-size: 13px; right: 13px; bottom: 13px; }
  .memory-number { top: 13px; left: 13px; font-size: 7px; }
  .memory-bottom { margin-top: 18px; padding-top: 12px; font-size: 7px; }
  .memory-letter { margin-bottom: 40px; padding: 34px 22px; }
  .memory-letter h2 { font-size: 21px; }
  .memory-letter > p:not(.memory-kicker) { font-size: 10px; }
  .letter-flower { top: 15px; right: 17px; font-size: 24px; }
}

@media (max-width: 540px) {
  .memories-page .site-header { padding-inline: 5%; }
  .memories-page .site-header .brand { font-size: 1.05rem; }
}

@media (max-width: 360px) {
  .memory-collage { height: 331px; }
  .memory-cover figcaption { font-size: 9px; }
  .memory-snapshot figcaption { font-size: 8px; }
}

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

/* 城市回忆入口：新增卡片沿用 memory-card，并填写对应详情页链接。 */
.memories-page .memory-card[hidden],
.memory-pagination[hidden] {
  display: none !important;
}

.memory-pagination {
  padding-top: 58px;
  text-align: center;
}

.memory-count {
  margin: 0 0 17px;
  color: #879476;
  font: 11px/1.8 "Microsoft YaHei", sans-serif;
  letter-spacing: 1px;
}

.memory-more {
  min-width: 190px;
  min-height: 46px;
  padding: 12px 26px;
  background: #edf0e1;
  color: #526b51;
  border: 1px solid #cbd3bc;
  border-radius: 3px;
  font: 12px/1.8 "Microsoft YaHei", sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.memory-more:hover:not(:disabled) {
  background: #e2e8d3;
  border-color: #9bab8a;
}

.memory-more:focus-visible,
.memories-page .memory-card:focus-visible {
  outline: 2px solid #a97881;
  outline-offset: 6px;
}

.memory-more:disabled {
  background: transparent;
  color: #929887;
  border-color: #e1e1d5;
  cursor: default;
}

.memories-page .memory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 25px; }
.memories-page .memory-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.memories-page .memory-card:nth-child(even) { margin-top: 0; }
.memories-page .memory-card:nth-child(3n + 2) { transform: translateY(20px); }
.memories-page .memory-card:hover { transform: translateY(-5px); }
.memories-page .memory-card:nth-child(3n + 2):hover { transform: translateY(15px); }
.memories-page .memory-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 22px 13px 10px; }
.memories-page .memory-copy h3 { font-size: 25px; margin-bottom: 5px; }
.memory-card-subtitle { display: block; color: #a88c80; font-size: 11px; line-height: 1.9; margin-bottom: 12px; }
.memories-page .memory-copy > p { font-size: 11px; margin-bottom: 20px; }
.memory-bottom { margin-top: auto; letter-spacing: 1px; font: 10px/1.9 "Microsoft YaHei", sans-serif; color: #879476; }
.memory-open-arrow { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d6dcc6; border-radius: 50%; font-size: 17px; }
.memory-card:hover .memory-open-arrow { background: #edf0e1; }
.memories-page .memory-photo img { aspect-ratio: 1.24; }
.memory-stamp { width: 58px; height: 58px; font-size: 12px; bottom: 13px; right: 13px; }
.memory-number { font-size: 7px; top: 13px; left: 13px; }
@media (max-width: 950px) {
  .memories-page .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memories-page .memory-card:nth-child(3n + 2) { transform: none; }
  .memories-page .memory-card:nth-child(3n + 2):hover { transform: translateY(-5px); }
}
@media (max-width: 600px) {
  .memories-page .memory-grid { grid-template-columns: 1fr; }
  .memories-page .memory-photo img { aspect-ratio: 1.5; }
  .memories-page .memory-copy { padding: 21px 14px 10px; }
}
