/* =========================================================
   基础变量与页面基调
   主色：低饱和暖褐、米白、少量灰粉与鼠尾草绿
   ========================================================= */
:root {
  --bg: #f4eee5;
  --bg-deep: #ece3d7;
  --paper: #fbf7f1;
  --paper-soft: rgba(255, 251, 245, 0.76);
  --paper-solid: #fffaf4;
  --ink: #41362e;
  --ink-soft: #6d5e52;
  --muted: #79695d;
  --accent: #87634f;
  --accent-deep: #745341;
  --blush: #dcc0b1;
  --blush-soft: #ead8cd;
  --sage: #aeb6a5;
  --line: rgba(103, 78, 60, 0.16);
  --line-strong: rgba(103, 78, 60, 0.28);
  --shadow: 0 24px 70px rgba(89, 65, 49, 0.11);
  --shadow-soft: 0 15px 40px rgba(89, 65, 49, 0.07);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong", "Noto Serif CJK SC", SimSun, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --number: "Iowan Old Style", "Baskerville", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(230, 207, 192, 0.42), transparent 28rem),
    radial-gradient(circle at 93% 28%, rgba(196, 203, 187, 0.26), transparent 25rem),
    linear-gradient(145deg, #f8f3eb 0%, var(--bg) 45%, #f1e9de 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--ink);
  background: var(--blush-soft);
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 4px;
}

/* 极轻微的纸感颗粒，不使用外部纹理资源 */
.paper-grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  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='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -2;
  border: 1px solid rgba(125, 96, 76, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  width: 48vw;
  height: 48vw;
  top: -28vw;
  right: -15vw;
}

.ambient-two {
  width: 34vw;
  height: 34vw;
  bottom: -22vw;
  left: -14vw;
}

.section-wrap,
.site-header {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

/* =========================================================
   访问密码页
   ========================================================= */
.password-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: auto;
  padding: 40px 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 250, 244, 0.98) 0, rgba(250, 244, 235, 0.94) 34%, rgba(232, 220, 207, 0.9) 100%),
    var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.password-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.password-screen::before,
.password-screen::after {
  content: "";
  position: absolute;
  width: min(52vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(106, 80, 62, 0.1);
  border-radius: 50%;
}

.password-screen::before {
  top: -24%;
  left: -12%;
}

.password-screen::after {
  right: -18%;
  bottom: -32%;
}

.password-decoration span {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  opacity: 0.48;
}

.password-decoration span:nth-child(1) {
  top: 18%;
  left: 17%;
}

.password-decoration span:nth-child(2) {
  top: 24%;
  right: 16%;
  width: 7px;
  height: 7px;
}

.password-decoration span:nth-child(3) {
  right: 20%;
  bottom: 17%;
  width: 12px;
  height: 12px;
}

.password-card {
  position: relative;
  width: min(100%, 550px);
  padding: 54px 58px 42px;
  text-align: center;
  background: rgba(255, 251, 245, 0.82);
  border: 1px solid rgba(120, 91, 70, 0.15);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(91, 66, 48, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.password-emblem {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  color: var(--accent);
  border: 1px solid rgba(123, 91, 69, 0.24);
  border-radius: 50%;
}

.password-emblem svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.password-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 7vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.password-intro {
  margin: 20px 0 34px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.9;
}

.password-form {
  text-align: left;
}

.password-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.password-field {
  display: flex;
  padding: 6px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.password-field:focus-within {
  border-color: rgba(117, 82, 62, 0.44);
  box-shadow: 0 0 0 4px rgba(157, 120, 97, 0.08);
}

.password-field input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.password-field input::placeholder {
  color: #807164;
  letter-spacing: 0;
}

.password-field button {
  flex: 0 0 auto;
  padding: 10px 20px;
  color: #fffaf4;
  background: var(--accent-deep);
  border: 0;
  border-radius: 11px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.password-field button:hover {
  background: #634536;
}

.password-field button:active {
  transform: scale(0.98);
}

.password-message {
  min-height: 26px;
  margin: 9px 2px 0;
  color: #9b564c;
  font-size: 0.8rem;
}

.password-form.is-error .password-field {
  border-color: rgba(155, 86, 76, 0.48);
  animation: gentle-shake 0.34s ease;
}

.password-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.password-note span {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

@keyframes gentle-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

/* =========================================================
   进入后的页头与整体容器
   ========================================================= */
.site-shell {
  position: relative;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.site-shell.is-visible {
  opacity: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding-top: 13px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent-deep);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  color: var(--ink-soft);
  background: rgba(255, 251, 245, 0.52);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.music-toggle:hover {
  color: var(--ink);
  background: rgba(255, 251, 245, 0.82);
  border-color: var(--line-strong);
}

.music-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.music-bars {
  display: none;
  align-items: center;
  gap: 2px;
  width: 13px;
  height: 13px;
}

.music-toggle.is-playing .music-icon {
  display: none;
}

.music-toggle.is-playing .music-bars {
  display: flex;
}

.music-bars i {
  width: 2px;
  height: 5px;
  background: var(--accent);
  border-radius: 2px;
  animation: music-wave 1.2s ease-in-out infinite;
}

.music-bars i:nth-child(2) {
  height: 11px;
  animation-delay: 0.16s;
}

.music-bars i:nth-child(3) {
  height: 8px;
  animation-delay: 0.32s;
}

@keyframes music-wave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

/* =========================================================
   首屏与在一起倒计时
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  min-height: calc(100svh - 96px);
  padding-top: 56px;
  padding-bottom: 100px;
}

.hero-copy {
  position: relative;
  padding-left: clamp(0px, 3vw, 30px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--line-strong) 13%, var(--line-strong) 80%, transparent);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-eyebrow span {
  display: block;
  width: 38px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(4rem, 8.4vw, 7.7rem);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.99;
}

.hero h1 em {
  color: var(--accent-deep);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  max-width: 31rem;
  margin: 30px 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 2;
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-date-label {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.hero-date time {
  font-family: var(--number);
  letter-spacing: 0.05em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 0.94rem;
  text-decoration: none;
}

.text-link svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  transition: transform 0.3s ease;
}

.text-link:hover svg {
  transform: translateX(5px);
}

.countdown-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.91), rgba(246, 236, 226, 0.8));
  border: 1px solid rgba(118, 88, 68, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.countdown-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  top: -105px;
  right: -80px;
  background: rgba(210, 181, 161, 0.22);
  border-radius: 50%;
  filter: blur(2px);
}

.countdown-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11px;
  border: 1px solid rgba(119, 89, 68, 0.09);
  border-radius: 26px;
  pointer-events: none;
}

.countdown-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.card-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.countdown-date {
  margin: 0;
  font-family: var(--number);
  font-size: 0.86rem;
  letter-spacing: 0.07em;
}

.countdown-copy {
  margin: 50px 0 25px;
}

.countdown-copy p {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2.3vw, 1.75rem);
  letter-spacing: 0.06em;
}

.countdown-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.time-grid {
  display: grid;
  grid-template-columns: 1.35fr auto 0.86fr auto 0.86fr auto 0.86fr;
  align-items: start;
  gap: clamp(6px, 1.3vw, 13px);
}

.time-unit {
  min-width: 0;
}

.time-unit strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--number);
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.time-unit span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.time-unit b {
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
}

.time-separator {
  padding-top: 5px;
  color: rgba(117, 83, 63, 0.32);
  font-family: var(--number);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  animation: soft-blink 2s ease-in-out infinite;
}

@keyframes soft-blink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.75; }
}

.countdown-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 45px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.countdown-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.79rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(148, 160, 137, 0.33);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(148, 160, 137, 0.3); }
  60%, 100% { box-shadow: 0 0 0 8px rgba(148, 160, 137, 0); }
}

.card-flower {
  position: absolute;
  z-index: -1;
  width: 65px;
  height: 65px;
  border: 1px solid rgba(134, 100, 78, 0.12);
  border-radius: 50% 4% 50% 50%;
  transform: rotate(35deg);
}

.card-flower-one {
  right: -24px;
  bottom: 42px;
}

.card-flower-two {
  right: 11px;
  bottom: 3px;
  width: 38px;
  height: 38px;
  opacity: 0.65;
}

/* =========================================================
   section 标题与纪念日列表
   ========================================================= */
.content-section {
  padding-top: 108px;
  padding-bottom: 90px;
  scroll-margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.section-heading > p {
  max-width: 23rem;
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.9;
  text-align: right;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.milestone-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 152px;
  padding: 27px 30px;
  overflow: hidden;
  background: rgba(255, 251, 245, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.milestone-card::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -45px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(129, 95, 72, 0.09);
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.milestone-card:hover {
  z-index: 1;
  background: rgba(255, 251, 245, 0.85);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.milestone-card:hover::after {
  transform: scale(1.08);
}

.milestone-index {
  align-self: start;
  padding-top: 2px;
  color: #b7a697;
  font-family: var(--number);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

.milestone-copy h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.38rem);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.milestone-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.7;
}

.milestone-status {
  min-width: 90px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.milestone-status .status-prefix {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.milestone-status strong {
  color: var(--accent-deep);
  font-family: var(--number);
  font-size: 1.83rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.milestone-status .status-unit {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.milestone-status strong.today {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.milestone-date {
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--number);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.milestone-card.is-past .milestone-index {
  color: var(--sage);
}

/* =========================================================
   相册与照片排版
   ========================================================= */
.gallery-section {
  padding-top: 100px;
  padding-bottom: 110px;
  scroll-margin-top: 24px;
}

.gallery-heading {
  margin-bottom: 34px;
}

.gallery-tip {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gallery-tip span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.92rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 206px;
  gap: 17px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
  border: 0;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}

.gallery-item:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
  grid-column: span 5;
}

.gallery-item:nth-child(4) {
  grid-column: span 5;
}

.gallery-item:nth-child(5) {
  grid-column: span 4;
}

.gallery-item:nth-child(6) {
  grid-column: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 46px 22px 20px;
  color: #fffdf9;
  background: linear-gradient(transparent, rgba(43, 31, 24, 0.68));
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.gallery-overlay strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.gallery-overlay small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 253, 249, 0.86);
  font-family: var(--number);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.gallery-overlay .expand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.86rem;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: brightness(0.95);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:focus-visible {
  outline-offset: 3px;
}

.gallery-item.is-gallery-hidden {
  display: none;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.gallery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 18px;
  color: var(--accent-deep);
  background: rgba(255, 251, 245, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gallery-toggle:hover {
  background: rgba(255, 251, 245, 0.94);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.gallery-toggle-line {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* =========================================================
   日常小事、每日短句与未来信箱
   ========================================================= */
.little-things-section {
  padding-top: 95px;
  padding-bottom: 50px;
  scroll-margin-top: 24px;
}

.little-things-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.keepsake-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 3.7vw, 38px);
  background: rgba(255, 251, 245, 0.63);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(89, 65, 49, 0.045);
}

.keepsake-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -55px;
  bottom: -80px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(118, 87, 67, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.keepsake-card > * {
  position: relative;
  z-index: 1;
}

.keywords-card {
  grid-column: span 5;
  background:
    radial-gradient(circle at 90% 4%, rgba(214, 184, 164, 0.24), transparent 13rem),
    rgba(255, 251, 245, 0.68);
}

.daily-love-card {
  position: relative;
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  color: #fffaf4;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 245, 233, 0.16), transparent 15rem),
    linear-gradient(145deg, #765544, #9b7560);
  border: 1px solid rgba(91, 62, 45, 0.18);
  border-radius: var(--radius-lg);
}

.daily-love-card .eyebrow {
  color: rgba(255, 250, 244, 0.72);
}

.daily-love-date {
  margin: 0;
  color: rgba(255, 250, 244, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.daily-love-card blockquote {
  max-width: 35rem;
  margin: 35px 0 30px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.9vw, 2.15rem);
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.daily-love-sign {
  margin: 0;
  color: rgba(255, 250, 244, 0.75);
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.11em;
}

.daily-love-flower {
  position: absolute;
  right: 24px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 250, 244, 0.12);
  border-radius: 50% 0 50% 50%;
  transform: rotate(28deg);
}

.wishes-card {
  grid-column: span 7;
}

.wishes-heading {
  align-items: flex-start;
}

.keepsake-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
}

.keepsake-heading .eyebrow {
  margin-bottom: 9px;
}

.keepsake-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.keepsake-heading > p,
.keepsake-intro {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.79rem;
  line-height: 1.8;
}

.keepsake-heading > p {
  max-width: 12rem;
  margin: 0;
  text-align: right;
}

.keepsake-intro {
  margin: 12px 0 21px;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}

.keyword-item {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(255, 252, 247, 0.58);
  border: 1px solid rgba(111, 81, 61, 0.1);
  border-radius: 12px;
}

.keyword-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.04em;
}

.keyword-item strong {
  display: block;
  overflow: hidden;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wish-progress {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--accent-deep);
  background: rgba(233, 218, 205, 0.67);
  border-radius: 999px;
  font-family: var(--number);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
}

.wish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.wish-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  color: var(--ink-soft);
  background: rgba(255, 252, 247, 0.48);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wish-item:hover {
  background: rgba(255, 252, 247, 0.87);
  border-color: var(--line);
}

.wish-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wish-check {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  border: 1px solid rgba(108, 80, 61, 0.36);
  border-radius: 50%;
}

.wish-item input:focus-visible + .wish-check {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.wish-item input:checked + .wish-check {
  background: var(--accent);
  border-color: var(--accent);
}

.wish-item input:checked + .wish-check::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 4px;
  height: 7px;
  border: solid #fffaf4;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.wish-item:has(input:checked) .wish-text {
  color: #a19387;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.random-memory-card {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
}

.random-heading {
  align-items: flex-start;
}

.random-memory-view {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 23px 0 15px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
  border: 0;
  border-radius: 17px;
  cursor: zoom-in;
}

.random-memory-view img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.random-memory-view:hover img {
  transform: scale(1.025);
}

.random-memory-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 36px 16px 14px;
  color: #fffaf4;
  background: linear-gradient(transparent, rgba(46, 32, 24, 0.68));
  font-family: var(--serif);
  font-size: 0.84rem;
  text-align: left;
}

.soft-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  padding: 10px 13px;
  color: var(--accent-deep);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 0.79rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.soft-action-button:hover {
  background: rgba(255, 252, 247, 0.82);
  border-color: var(--line-strong);
}

.soft-action-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.mailbox-card {
  grid-column: span 12;
  margin-top: 2px;
  background:
    radial-gradient(circle at 8% 10%, rgba(214, 190, 174, 0.23), transparent 18rem),
    rgba(255, 251, 245, 0.67);
}

.mailbox-heading {
  margin-bottom: 27px;
}

.mailbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mailbox-envelope {
  position: relative;
  overflow: hidden;
  padding: 23px;
  background:
    linear-gradient(145deg, rgba(255, 252, 247, 0.91), rgba(238, 224, 212, 0.77));
  border: 1px solid rgba(112, 82, 62, 0.14);
  border-radius: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.mailbox-envelope::before {
  content: "";
  position: absolute;
  top: -85px;
  right: -35px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(121, 89, 67, 0.08);
  border-radius: 50%;
}

.mailbox-envelope.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.envelope-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.envelope-seal {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--accent-deep);
  border: 1px solid rgba(112, 80, 59, 0.27);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.72rem;
}

.envelope-date {
  color: var(--muted);
  font-family: var(--number);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.mailbox-envelope h4 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.mailbox-envelope > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.8;
}

.mailbox-letter {
  margin: 5px 0 19px;
  padding: 16px 17px;
  background: rgba(255, 253, 248, 0.67);
  border-left: 1px solid var(--line-strong);
  animation: letter-open 0.35s ease both;
}

.mailbox-letter p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.82rem;
  line-height: 1.9;
}

.mailbox-letter p:last-child {
  margin-bottom: 0;
}

.mailbox-open {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  color: var(--accent-deep);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mailbox-open:hover {
  background: rgba(255, 252, 247, 0.8);
  border-color: var(--line-strong);
}

@keyframes letter-open {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   情话信纸
   ========================================================= */
.letter-section {
  padding-top: 70px;
  padding-bottom: 130px;
}

.letter-paper {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(46px, 7vw, 82px) clamp(28px, 9vw, 118px);
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(125deg, rgba(253, 248, 241, 0.96), rgba(241, 227, 214, 0.83));
  border: 1px solid rgba(120, 88, 67, 0.15);
  border-radius: 3px 44px 3px 44px;
  box-shadow: var(--shadow-soft);
}

.letter-paper::before,
.letter-paper::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(126, 92, 69, 0.1);
  border-radius: 50%;
}

.letter-paper::before {
  top: -78px;
  left: -58px;
}

.letter-paper::after {
  right: -65px;
  bottom: -82px;
}

.letter-quote {
  position: absolute;
  top: 8px;
  left: 30px;
  color: rgba(126, 93, 71, 0.15);
  font-family: Georgia, serif;
  font-size: 9rem;
  line-height: 1;
}

.letter-seal {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 24px;
  color: var(--accent);
  border: 1px solid rgba(130, 96, 72, 0.24);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.letter-paper h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.letter-body {
  max-width: 660px;
  margin-inline: auto;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 2.15;
}

.letter-body p {
  margin: 0 0 18px;
  white-space: pre-line;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-signature {
  margin: 30px 0 0;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

.letter-rule {
  display: block;
  width: 42px;
  height: 1px;
  margin: 32px auto 0;
  background: var(--line-strong);
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  padding: 50px 24px 55px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
  color: var(--muted);
}

.footer-heart {
  display: block;
  margin-bottom: 11px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-inner p {
  margin: 4px 0;
  font-family: var(--serif);
  font-size: 0.79rem;
  letter-spacing: 0.04em;
}

.footer-inner .disclaimer {
  margin-top: 15px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.footer-inner a {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  text-decoration: none;
}

/* =========================================================
   相册放大层
   ========================================================= */
.lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 34, 27, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1080px);
  max-height: calc(100svh - 56px);
  padding: 16px;
  background: rgba(47, 36, 29, 0.75);
  border: 1px solid rgba(255, 250, 244, 0.14);
  border-radius: 24px;
  box-shadow: 0 35px 100px rgba(22, 15, 11, 0.35);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.28s ease;
}

.lightbox.is-open .lightbox-panel {
  transform: translateY(0) scale(1);
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - 160px);
  border-radius: 15px;
  object-fit: contain;
}

.lightbox-close,
.lightbox-arrow {
  display: grid;
  place-items: center;
  padding: 0;
  color: #fffaf4;
  background: rgba(47, 36, 29, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(47, 36, 29, 0.74);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-close {
  position: absolute;
  z-index: 3;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
}

.lightbox-close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.lightbox-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}

.lightbox-arrow svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 7px 3px;
  color: #f9f2e9;
}

.lightbox-meta p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lightbox-meta span {
  flex: 0 0 auto;
  color: rgba(249, 242, 233, 0.6);
  font-family: var(--number);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}

/* =========================================================
   提示消息、无脚本提示
   ========================================================= */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 36px);
  margin: 0;
  padding: 11px 19px;
  color: #fffaf4;
  background: rgba(63, 49, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(55, 39, 29, 0.18);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-message {
  position: fixed;
  z-index: 400;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 14px;
  color: var(--ink);
  background: var(--paper-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

/* =========================================================
   入场与舒缓滚动动画
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   响应式：平板
   ========================================================= */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 8vw, 6rem);
  }

  .milestone-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
  }

  .milestone-status {
    grid-column: 2;
    min-width: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .milestone-status .status-prefix {
    display: inline;
    margin-right: 5px;
  }

  .milestone-date {
    display: inline-block;
    margin: 0 0 0 8px;
  }

  .gallery-grid {
    grid-auto-rows: 180px;
  }

  .keywords-card,
  .random-memory-card {
    grid-column: span 6;
  }

  .daily-love-card,
  .wishes-card {
    grid-column: span 6;
  }
}

/* =========================================================
   响应式：手机与窄屏
   ========================================================= */
@media (max-width: 760px) {
  .section-wrap,
  .site-header {
    width: min(100% - 36px, 620px);
  }

  .site-header {
    min-height: 80px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: 0;
    padding-top: 54px;
    padding-bottom: 74px;
  }

  .hero-copy {
    padding-left: 22px;
  }

  .hero h1 {
    font-size: clamp(3.85rem, 15vw, 6rem);
  }

  .hero-subtitle {
    margin: 24px 0;
    font-size: 0.98rem;
  }

  .countdown-card {
    max-width: 580px;
    margin-inline: auto;
  }

  .time-grid {
    gap: 6px;
  }

  .time-unit strong {
    font-size: clamp(1.86rem, 8.2vw, 2.9rem);
  }

  .time-unit span {
    font-size: 0.51rem;
    letter-spacing: 0;
  }

  .content-section,
  .gallery-section,
  .little-things-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .section-heading > p {
    display: none;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .milestone-card {
    min-height: 142px;
    padding: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(170px, 42vw);
    gap: 12px;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 2;
  }

  .gallery-overlay {
    padding: 35px 13px 13px;
    opacity: 1;
    transform: none;
  }

  .gallery-overlay strong {
    font-size: 0.84rem;
  }

  .gallery-overlay small {
    display: none;
  }

  .gallery-overlay .expand-mark {
    width: 25px;
    height: 25px;
    font-size: 0.72rem;
  }

  .gallery-actions {
    margin-top: 23px;
  }

  .little-things-grid {
    grid-template-columns: 1fr;
  }

  .keywords-card,
  .daily-love-card,
  .wishes-card,
  .random-memory-card,
  .mailbox-card {
    grid-column: 1;
  }

  .keepsake-heading {
    align-items: flex-start;
  }

  .keepsake-heading > p {
    display: none;
  }

  .daily-love-card {
    min-height: 290px;
  }

  .mailbox-grid {
    grid-template-columns: 1fr;
  }

  .letter-section {
    padding-top: 30px;
    padding-bottom: 100px;
  }

  .letter-paper {
    border-radius: 2px 28px 2px 28px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-panel {
    max-height: calc(100svh - 28px);
    padding: 10px;
    border-radius: 18px;
  }

  .lightbox-stage img {
    max-height: calc(100svh - 145px);
    border-radius: 11px;
  }

  .lightbox-close {
    top: -8px;
    right: -5px;
    width: 38px;
    height: 38px;
  }

  .lightbox-arrow {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }
}

@media (max-width: 520px) {
  .password-screen {
    padding: 20px 16px;
  }

  .password-card {
    padding: 40px 22px 30px;
    border-radius: 24px;
  }

  .password-field {
    display: block;
    padding: 7px;
  }

  .password-field input {
    width: 100%;
  }

  .password-field button {
    width: 100%;
    margin-top: 5px;
  }

  .brand-copy small {
    display: none;
  }

  .music-toggle {
    padding: 8px 11px;
  }

  .hero-copy {
    padding-left: 18px;
  }

  .hero-date {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 26px;
  }

  .countdown-card {
    padding: 28px 20px 24px;
    border-radius: 26px;
  }

  .countdown-card::after {
    inset: 8px;
    border-radius: 21px;
  }

  .countdown-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .countdown-copy {
    margin: 35px 0 20px;
  }

  .time-grid {
    grid-template-columns: 1.25fr auto 0.9fr auto 0.9fr auto 0.9fr;
  }

  .time-unit strong {
    font-size: clamp(1.62rem, 8.4vw, 2.3rem);
  }

  .time-unit span {
    font-size: 0.46rem;
  }

  .time-unit b {
    font-size: 0.63rem;
  }

  .countdown-footer {
    margin-top: 32px;
  }

  .milestone-card {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 19px;
  }

  .milestone-status {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
  }

  .milestone-status .status-prefix {
    margin-right: 2px;
  }

  .milestone-date {
    margin-left: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }

  .little-things-section {
    padding-top: 20px;
  }

  .keepsake-card,
  .daily-love-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .keyword-grid,
  .wish-list {
    grid-template-columns: 1fr;
  }

  .keepsake-heading h3 {
    font-size: 1.25rem;
  }

  .daily-love-card blockquote {
    margin: 28px 0 24px;
    font-size: 1.35rem;
  }

  .random-memory-view img {
    aspect-ratio: 5 / 4;
  }

  .mailbox-envelope {
    padding: 20px;
  }

  .letter-paper {
    padding-inline: 22px;
  }

  .letter-quote {
    left: 14px;
    font-size: 6rem;
  }

  .lightbox-meta {
    padding-inline: 2px;
  }

  .lightbox-meta p {
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* 尊重系统的“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
