/* Core theme styles extracted from style.css for easier maintenance. */

/* ================================
   基础重置与变量
   ================================ */
:root {
    --primary-color: #ff5162;
    --primary-hover: #e63e4e;
    --secondary-color: #6c757d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --page-shell-max-width: 1100px;
    --page-shell-gutter: clamp(1rem, 2.8vw, 2rem);
    --page-hero-panel-max-width: 700px;
    --page-stack-gap: 1.75rem;
    --page-stack-gap-tight: 1.1rem;
    --page-panel-radius: 24px;
    --page-card-radius: 22px;
    --page-panel-shadow: 0 16px 34px rgba(255, 81, 98, 0.08);
    --page-card-shadow: 0 14px 32px rgba(24, 14, 22, 0.07);
    --page-card-shadow-hover: 0 18px 40px rgba(24, 14, 22, 0.12);
    --page-chip-min-height: 42px;
    --page-chip-font-size: 0.88rem;
    --page-waterfall-gap: 1rem;
    --page-blessing-card-min-width: 210px;
    --page-notes-card-min-width: 280px;
    --editorial-surface-base: linear-gradient(180deg, rgba(255, 246, 248, 0.96), rgba(255, 255, 255, 0.98));
    --editorial-surface-muted: var(--editorial-surface-base);
    --editorial-surface-hover: linear-gradient(180deg, rgba(255, 239, 243, 0.98), rgba(255, 249, 250, 0.98));
    --editorial-surface-active: linear-gradient(180deg, rgba(255, 235, 240, 0.98), rgba(255, 245, 247, 1));
    --editorial-border-subtle: rgba(255, 81, 98, 0.12);
    --editorial-border-strong: rgba(255, 81, 98, 0.18);
    --editorial-accent-wash: rgba(255, 81, 98, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --editorial-surface-base: linear-gradient(180deg, rgba(41, 35, 43, 0.96), rgba(28, 24, 31, 0.98));
    --editorial-surface-muted: rgba(36, 32, 41, 0.92);
    --editorial-surface-hover: rgba(255, 81, 98, 0.12);
    --editorial-surface-active: linear-gradient(180deg, rgba(79, 54, 63, 0.98), rgba(58, 39, 47, 0.98));
    --editorial-border-subtle: rgba(255, 255, 255, 0.08);
    --editorial-border-strong: rgba(255, 143, 155, 0.22);
    --editorial-accent-wash: rgba(255, 81, 98, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ================================
   主题切换按钮
   ================================ */
.theme-toggle {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 1rem);
    right: max(1rem, calc(env(safe-area-inset-right, 0px) + 1rem));
    z-index: 140;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(206, 184, 190, 0.22);
    border-radius: 14px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 60%),
        linear-gradient(180deg, rgba(255, 251, 252, 0.62), rgba(255, 247, 248, 0.4));
    box-shadow:
        0 10px 24px rgba(24, 14, 22, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px) saturate(112%);
    -webkit-backdrop-filter: blur(12px) saturate(112%);
    color: rgba(74, 50, 57, 0.8);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 164, 171, 0.26);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.38), transparent 60%),
        linear-gradient(180deg, rgba(255, 251, 252, 0.7), rgba(255, 246, 248, 0.48));
    box-shadow:
        0 14px 28px rgba(24, 14, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.theme-toggle:focus-visible {
    outline: none;
    border-color: rgba(255, 81, 98, 0.32);
    box-shadow:
        0 0 0 3px rgba(255, 81, 98, 0.14),
        0 14px 28px rgba(24, 14, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.theme-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
    transform: translateY(1px);
    pointer-events: none;
}

body.admin-bar .theme-toggle {
    top: calc(env(safe-area-inset-top, 0px) + 3rem);
}

html[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 56%),
        linear-gradient(180deg, rgba(38, 33, 41, 0.86), rgba(28, 24, 31, 0.8));
    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    color: rgba(255, 229, 234, 0.9);
}

html[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(255, 143, 155, 0.16);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 56%),
        linear-gradient(180deg, rgba(46, 38, 47, 0.9), rgba(32, 27, 35, 0.84));
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ================================
   导航栏
   ================================ */
.navbar-brave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brave > .container {
    width: min(calc(100% - (var(--page-shell-gutter) * 2)), var(--page-shell-max-width));
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.navbar-brave.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    animation: slideDown 0.3s ease;
}

.navbar-brave.scrolled .navbar-brand,
.navbar-brave.scrolled .nav-link {
    color: var(--text-color) !important;
}

.navbar-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.16rem;
    max-width: min(72vw, 22rem);
    margin-right: 1rem;
    line-height: 1;
    color: #fff !important;
}

.navbar-brand-title {
    display: block;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.navbar-brand-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.navbar-brave.is-home-nav .navbar-brand {
    position: relative;
    width: fit-content;
    padding: 0.52rem 0.78rem 0.56rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 56%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow:
        0 16px 32px rgba(24, 14, 22, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.navbar-brave.is-home-nav .navbar-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 58%);
    pointer-events: none;
}

.navbar-brave.is-home-nav .navbar-brand-title,
.navbar-brave.is-home-nav .navbar-brand-subtitle {
    position: relative;
    z-index: 1;
}

.navbar-brave.is-home-nav .navbar-brand-title {
    font-size: 1.04rem;
    letter-spacing: 0.04em;
}

.navbar-brave.is-home-nav .navbar-brand-subtitle {
    padding-left: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
}

.navbar-brave.is-home-nav .navbar-brand-subtitle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.42rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.36);
}

.navbar-brave.is-inner-nav .navbar-brand {
    padding: 0.3rem 0;
}

.navbar-brave.scrolled .navbar-brand {
    position: relative;
    width: fit-content;
    padding: 0.52rem 0.78rem 0.56rem;
    color: var(--text-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    box-shadow:
        0 10px 22px rgba(24, 14, 22, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.navbar-brave.scrolled .navbar-brand-subtitle {
    color: var(--text-muted);
}

.navbar-brave.scrolled.is-home-nav .navbar-brand-subtitle::before {
    background: rgba(110, 98, 105, 0.26);
}

.navbar-brave .navbar-collapse {
    flex-grow: 0;
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-nav > li > a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
}

.navbar-nav > li.current-menu-item > a,
.navbar-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.navbar-brave.scrolled .navbar-nav > li > a {
    color: var(--text-color);
}

.navbar-brave.scrolled .navbar-nav > li.current-menu-item > a,
.navbar-brave.scrolled .navbar-nav > li > a:hover {
    background: rgba(255, 81, 98, 0.08);
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-brave.no-primary-menu .navbar-toggler,
.navbar-brave.no-primary-menu .navbar-collapse {
    display: none !important;
}

@media (max-width: 991px) {
    .navbar-brave.has-primary-menu .container {
        align-items: flex-start;
    }

    .navbar-brave.has-primary-menu .navbar-collapse {
        width: 100%;
        margin-top: 0.72rem;
        padding: 0.75rem 0.95rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        background: rgba(42, 31, 39, 0.44);
        box-shadow: 0 16px 32px rgba(24, 14, 22, 0.18);
        backdrop-filter: blur(18px);
    }

    .navbar-brave.scrolled.has-primary-menu .navbar-collapse {
        border-color: rgba(0, 0, 0, 0.06);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 28px rgba(24, 14, 22, 0.08);
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 0;
    }

    .navbar-nav > li + li > a {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-brave.scrolled .navbar-nav > li + li > a {
        border-top-color: rgba(0, 0, 0, 0.06);
    }

    .navbar-nav > li > a,
    .navbar-nav > li.current-menu-item > a,
    .navbar-nav > li > a:hover {
        display: block;
        padding: 0.58rem 0;
        border-radius: 0;
        background: transparent;
    }
}

@media (max-width: 768px) {
    .navbar-brave {
        padding: 0.88rem 0;
    }

    .theme-toggle {
        top: calc(env(safe-area-inset-top, 0px) + 4.9rem);
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .navbar-brand {
        max-width: min(78vw, 16rem);
        margin-right: 0.75rem;
    }

    .navbar-brand-title {
        font-size: 1.02rem;
    }

    .navbar-brand-subtitle {
        font-size: 0.68rem;
    }

    .navbar-brave.is-home-nav .navbar-brand {
        padding: 0.44rem 0.68rem 0.5rem;
        border-radius: 18px;
    }

    .navbar-brave.scrolled .navbar-brand {
        padding: 0.44rem 0.68rem 0.5rem;
        border-radius: 18px;
    }

    .navbar-brave.is-home-nav .navbar-brand-title {
        font-size: 1rem;
    }

    .navbar-brave.is-home-nav .navbar-brand-subtitle {
        padding-left: 0.68rem;
        font-size: 0.64rem;
    }

    .navbar-brave.is-home-nav .navbar-brand-subtitle::before {
        width: 0.34rem;
    }

    .navbar-brave.is-inner-nav .navbar-brand-subtitle {
        display: none;
    }
}

@media (max-width: 768px) {
    body.admin-bar .theme-toggle {
        top: calc(env(safe-area-inset-top, 0px) + 6.6rem);
    }
}


        html[data-theme="dark"] .navbar-brave.scrolled .navbar-brand {
        border-color: var(--editorial-border-subtle);
        background:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 58%),
            var(--editorial-surface-base);
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .navbar-brave.scrolled .navbar-brand,
    html[data-theme="dark"] .navbar-brave.scrolled .nav-link {
        color: #f7eef1 !important;
    }

        html[data-theme="dark"] .navbar-brave.scrolled .navbar-brand-subtitle {
        color: rgba(242, 230, 234, 0.68);
    }


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ================================
   Hero 区域
   ================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 27vh;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVQImU3IMREAIAgAwJfNkQCEsH8cijjpMf6vnXlQaIiJFx+omEBfmqIEZLe2jzcAAAAASUVORK5CYII=");
    opacity: 0.3;
}

.lover-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 540px;
}

.lover-connector {
    position: absolute;
    top: 39%;
    left: 50%;
    width: clamp(156px, 28vw, 248px);
    height: 42px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.98;
}

.lover-connector-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lover-connector-base,
.lover-connector-pulse {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lover-connector-base {
    stroke: rgba(255, 230, 237, 0.34);
    stroke-width: 1.9;
    filter: drop-shadow(0 0 8px rgba(255, 184, 202, 0.1));
}

.lover-connector-pulse {
    stroke: url(#lover-connector-gradient);
    stroke-width: 2.15;
    stroke-dasharray: 34 320;
    stroke-dashoffset: 286;
    filter: drop-shadow(0 0 10px rgba(255, 239, 245, 0.34));
    animation: lover-heartline-flow 3.2s linear infinite;
}

.lover-connector-dot {
    fill: #fffafc;
    opacity: 0.95;
}

.lover-item,
.heart-container {
    position: relative;
}

.lover-item {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}

.heart-container {
    top: -10px;
    z-index: 3;
}

.lover-avatar {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    background: transparent;
    box-shadow: 0 10px 24px rgba(61, 25, 35, 0.22);
}

.avatar-wrapper {
    position: relative;
    display: inline-flex;
    padding: 16px;
    isolation: isolate;
    --comet-radius: 39px;
}

.avatar-wrapper::before,
.avatar-wrapper::after {
    content: none;
}

.stars-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    animation: avatar-orbit-rotate 16s linear infinite;
}

.lover-item:last-child .stars-orbit {
    animation-duration: 18.2s;
    animation-delay: -5.2s;
}

.orbit-star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--size, 3px) * 1.65);
    height: calc(var(--size, 3px) * 1.65);
    opacity: var(--alpha, 0.6);
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(calc(var(--orbit-radius, var(--comet-radius)) * -1));
    border-radius: 0;
    clip-path: polygon(50% 0%, 60% 28%, 86% 14%, 72% 40%, 100% 50%, 72% 60%, 86% 86%, 60% 72%, 50% 100%, 40% 72%, 14% 86%, 28% 60%, 0% 50%, 28% 40%, 14% 14%, 40% 28%);
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 252, 0.98) 34%, rgba(255, 214, 228, 0.88) 58%, rgba(255, 214, 228, 0) 78%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 239, 246, 0.8) 52%, rgba(255, 214, 228, 0.24) 100%);
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.68),
        0 0 28px rgba(255, 196, 214, 0.3);
    filter: drop-shadow(0 0 6px rgba(255, 250, 252, 0.76));
    animation: orbit-star-shimmer 3.4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.orbit-star::before,
.orbit-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 251, 253, 0.98), rgba(255, 255, 255, 0));
    border-radius: 999px;
    opacity: 0.92;
    box-shadow: 0 0 10px rgba(255, 246, 250, 0.56);
}

.orbit-star::before {
    width: 1.35px;
    height: calc(var(--size, 3px) * 5.2);
}

.orbit-star::after {
    width: calc(var(--size, 3px) * 5.2);
    height: 1.35px;
}

.orbit-star:nth-child(1) {
    --angle: 8deg;
    --orbit-radius: calc(var(--comet-radius) - 4px);
    --size: 1.5px;
    --alpha: 0.18;
    --delay: 0s;
}

.orbit-star:nth-child(2) {
    --angle: 18deg;
    --orbit-radius: calc(var(--comet-radius) - 3px);
    --size: 1.8px;
    --alpha: 0.26;
    --delay: 0.08s;
}

.orbit-star:nth-child(3) {
    --angle: 31deg;
    --orbit-radius: calc(var(--comet-radius) - 3px);
    --size: 2.1px;
    --alpha: 0.36;
    --delay: 0.16s;
}

.orbit-star:nth-child(4) {
    --angle: 47deg;
    --orbit-radius: calc(var(--comet-radius) - 2px);
    --size: 2.5px;
    --alpha: 0.46;
    --delay: 0.26s;
}

.orbit-star:nth-child(5) {
    --angle: 66deg;
    --orbit-radius: calc(var(--comet-radius) - 1px);
    --size: 2.9px;
    --alpha: 0.56;
    --delay: 0.38s;
}

.orbit-star:nth-child(6) {
    --angle: 88deg;
    --orbit-radius: var(--comet-radius);
    --size: 3.3px;
    --alpha: 0.66;
    --delay: 0.52s;
}

.orbit-star:nth-child(7) {
    --angle: 112deg;
    --orbit-radius: calc(var(--comet-radius) + 1px);
    --size: 3.7px;
    --alpha: 0.76;
    --delay: 0.68s;
}

.orbit-star:nth-child(8) {
    --angle: 132deg;
    --orbit-radius: calc(var(--comet-radius) + 2px);
    --size: 4.2px;
    --alpha: 0.84;
    --delay: 0.86s;
}

.orbit-star:nth-child(9) {
    --angle: 147deg;
    --orbit-radius: calc(var(--comet-radius) + 3px);
    --size: 4.7px;
    --alpha: 0.91;
    --delay: 1.06s;
}

.orbit-star:nth-child(10) {
    --angle: 157deg;
    --orbit-radius: calc(var(--comet-radius) + 4px);
    --size: 5.1px;
    --alpha: 0.96;
    --delay: 1.28s;
}

.orbit-star:nth-child(11) {
    --angle: 164deg;
    --orbit-radius: calc(var(--comet-radius) + 4px);
    --size: 5.5px;
    --alpha: 0.99;
    --delay: 1.52s;
}

@keyframes avatar-orbit-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit-star-shimmer {
    0%,
    100% {
        opacity: calc(var(--alpha, 0.6) * 0.66);
        filter: brightness(1.04) drop-shadow(0 0 4px rgba(255, 248, 252, 0.58));
    }

    42% {
        opacity: var(--alpha, 0.6);
        filter: brightness(1.4) drop-shadow(0 0 8px rgba(255, 244, 250, 0.92));
    }

    72% {
        opacity: calc(var(--alpha, 0.6) * 0.9);
        filter: brightness(1.14) drop-shadow(0 0 5px rgba(255, 244, 250, 0.66));
    }
}

@keyframes lover-heartline-flow {
    from {
        stroke-dashoffset: 286;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.lover-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.heart-container {
    --heart-size: 21px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--heart-size) * 3.5);
    height: calc(var(--heart-size) * 3.2);
    padding: 0;
    flex-shrink: 0;
}

.heart-container::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 214, 0.28) 0%, rgba(255, 170, 194, 0.12) 48%, rgba(255, 170, 194, 0) 76%);
    filter: blur(12px);
    animation: heart-aura 3s ease-in-out infinite;
}

.heart-container::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 35%;
    width: calc(var(--heart-size) * 0.7);
    height: calc(var(--heart-size) * 1.15);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.08) 100%);
    opacity: 0.5;
    transform: rotate(26deg);
    filter: blur(0.2px);
    z-index: 2;
    pointer-events: none;
}

.heart {
    display: inline-block;
    width: var(--heart-size);
    height: var(--heart-size);
    position: relative;
    z-index: 1;
    transform: rotate(-45deg);
    border-radius: 5px 0 0 0;
    background: linear-gradient(180deg, rgba(255, 248, 251, 0.92) 0%, rgba(255, 206, 221, 0.72) 42%, rgba(255, 150, 175, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow:
        0 12px 24px rgba(255, 143, 171, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        inset 0 -4px 10px rgba(184, 84, 110, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: heart-float 5.2s ease-in-out infinite, heartbeat 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.heart::before,
.heart::after {
    content: '';
    width: var(--heart-size);
    height: var(--heart-size);
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 250, 252, 0.94) 0%, rgba(255, 208, 223, 0.74) 46%, rgba(255, 150, 175, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.54),
        inset 0 -4px 10px rgba(184, 84, 110, 0.1);
}

.heart::before {
    top: calc(var(--heart-size) * -0.5);
    left: -1px;
}

.heart::after {
    top: -1px;
    left: calc(var(--heart-size) * 0.5 - 1px);
}

@keyframes heartbeat {
    0%,
    100% {
        transform: rotate(-45deg) scale(0.98);
    }

    20% {
        transform: rotate(-45deg) scale(1.05);
    }

    36% {
        transform: rotate(-45deg) scale(1);
    }

    58% {
        transform: rotate(-45deg) scale(1.09);
    }

    74% {
        transform: rotate(-45deg) scale(1.01);
    }
}

@keyframes heart-float {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -3px;
    }
}

@keyframes heart-aura {
    0%,
    100% {
        opacity: 0.32;
        transform: scale(0.92);
    }

    42% {
        opacity: 0.68;
        transform: scale(1.06);
    }

    68% {
        opacity: 0.42;
        transform: scale(0.98);
    }
}

/* 波浪 */
.waves-area {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2.5rem;
    z-index: 1;
}

.waves-svg {
    width: 100%;
    height: 100%;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
    fill: hsla(0, 0%, 100%, .7);
}

.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
    fill: hsla(0, 0%, 100%, .5);
}

.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
    fill: hsla(0, 0%, 100%, .3);
}

.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
    fill: #fff;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* ================================
   计时器区域
   ================================ */
.timer-section {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.timer-title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.timer-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timer-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 2ch;
}

/* 纪念日 */
.anniversary-section {
    padding: 1.5rem 1rem;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.anniversary-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
}

.anniversary-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.anniversary-scroll::-webkit-scrollbar {
    display: none;
}

.anniversary-card {
    flex: 0 0 auto;
    width: 140px;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius);
    text-align: center;
    scroll-snap-align: start;
}

.anniversary-card.countdown {
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
}

.anniversary-card.countup {
    background: linear-gradient(135deg, #fce4ec 0%, #f5f5f5 100%);
}

.anniversary-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.anniversary-days {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
}

.anniversary-days span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.anniversary-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ================================
   入口卡片
   ================================ */
.entry-section {
    padding: 2rem 1rem;
    background: var(--bg-color);
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    max-width: 760px;
    margin: 0 auto;
}

.entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0.75rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.entry-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-hover);
}

.entry-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ffebee 0%, #f3e5f5 100%);
}

.entry-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color);
}

.entry-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ================================
   内容区域通用
   ================================ */
.content-section {
    padding: 1.5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-shell {
    width: min(calc(100% - (var(--page-shell-gutter) * 2)), var(--page-shell-max-width));
    margin: 0 auto;
}

.page-shell-narrow {
    width: min(calc(100% - (var(--page-shell-gutter) * 2)), var(--page-hero-panel-max-width));
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ================================
   内容筛选面板
   ================================ */
.content-filter-shell {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-bottom: var(--page-stack-gap);
    padding: 0.96rem 1.15rem;
    border: 1px solid rgba(255, 81, 98, 0.1);
    border-radius: var(--page-panel-radius);
    background: linear-gradient(180deg, rgba(255, 247, 249, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow:
        0 14px 30px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    overflow: visible;
    z-index: 10;
}

.content-filter-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 180px;
    max-width: 320px;
}

.content-filter-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 81, 98, 0.08);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content-filter-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.content-filter-actions {
    flex: 1 1 420px;
    min-width: 0;
}

.moments-filter-shell {
    margin-bottom: 0.95rem;
}

.moments-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.filter-group {
    position: relative;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--page-chip-min-height);
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 999px;
    background: var(--editorial-surface-base);
    color: rgba(120, 86, 92, 0.94);
    font-size: var(--page-chip-font-size);
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
    background: var(--editorial-surface-hover);
    border-color: rgba(255, 81, 98, 0.22);
    color: var(--primary-color);
    box-shadow:
        0 10px 20px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--editorial-surface-active);
    border-color: rgba(255, 81, 98, 0.18);
    color: var(--primary-color);
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.filter-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--page-chip-min-height);
    padding: 0.55rem 1rem 0.55rem 1.15rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 999px;
    background: var(--editorial-surface-base);
    color: rgba(120, 86, 92, 0.94);
    font-size: var(--page-chip-font-size);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-dropdown-toggle:hover {
    background: var(--editorial-surface-hover);
    border-color: rgba(255, 81, 98, 0.22);
    color: var(--primary-color);
    box-shadow:
        0 10px 20px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.filter-dropdown-toggle.has-value {
    background: var(--editorial-surface-active);
    border-color: rgba(255, 81, 98, 0.18);
    color: var(--primary-color);
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.filter-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.filter-dropdown-toggle.is-open::after {
    transform: rotate(180deg);
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 120px;
    max-height: 240px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(24, 14, 22, 0.12);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.filter-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-option:hover {
    background: rgba(255, 81, 98, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.filter-option.active {
    background: var(--editorial-accent-wash);
    color: var(--primary-color);
    font-weight: 600;
}

/* ================================
   时间轴（点点滴滴）- 新设计
   ================================ */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.timeline-wrapper + .pagination {
    margin-top: 0.96rem;
}

.timeline {
    position: relative;
    width: 100%;
    padding-left: 0;
}

/* 时间轴卡片 */
.timeline-card {
    margin-bottom: var(--page-stack-gap-tight);
    position: relative;
}

.timeline-card:last-child {
    margin-bottom: 0;
}

.timeline-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.timeline-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.timeline-card-inner {
    background: var(--card-bg);
    border-radius: var(--page-card-radius);
    box-shadow: var(--page-card-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 81, 98, 0.08);
}

.timeline-card-link:hover .timeline-card-inner {
    transform: translateY(-3px);
    box-shadow: var(--page-card-shadow-hover);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 81, 98, 0.08);
    background: linear-gradient(180deg, rgba(255, 248, 250, 0.72), rgba(255, 255, 255, 0));
}

.timeline-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 0.5rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 16px;
    background: var(--editorial-surface-base);
    color: var(--primary-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.date-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.7rem;
    opacity: 0.72;
    margin-top: 0.1rem;
}

.timeline-card-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.timeline-card-title {
    font-size: 1.06rem;
    font-weight: 700;
    color: rgba(42, 28, 34, 0.98);
    margin: 0;
    line-height: 1.35;
    letter-spacing: 0.015em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 作者信息 - 标题栏版 */
.timeline-card-header .timeline-card-author {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-shrink: 0;
    margin-left: 0.2rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255, 81, 98, 0.08);
}

.timeline-card-header .author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 81, 98, 0.08);
}

.timeline-card-header .author-name {
    font-size: 0.76rem;
    color: rgba(132, 108, 114, 0.88);
    letter-spacing: 0.02em;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-card-body {
    padding: 1rem 1.25rem;
}

.timeline-card-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.timeline-card-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.timeline-card-media {
    position: relative;
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.timeline-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-card-link:hover .timeline-card-image {
    transform: scale(1.05);
}

.timeline-card-excerpt p {
    margin: 0 0 0.5rem 0;
}

.timeline-card-excerpt p:last-child {
    margin-bottom: 0;
}

/* 底部元信息：心情和位置 */
.timeline-card-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.timeline-card-mood {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 81, 98, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
}

.timeline-card-mood .mood-emoji {
    font-size: 1rem;
}

.timeline-card-mood .mood-text {
    font-size: 0.8rem;
}

.timeline-card-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 81, 98, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
}

.location-icon {
    font-size: 0.9rem;
}

.timeline-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px dashed var(--border-color);
    text-align: right;
}

.view-detail {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.timeline-card-link:hover .view-detail {
    color: #e63e4e;
}

/* 空状态 */
.timeline-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    border: 1px solid rgba(255, 81, 98, 0.08);
    border-radius: var(--page-card-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--page-card-shadow);
}

.timeline-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.timeline-empty-text {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
}

/* ================================
   年份导航
   ================================ */
.year-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0;
    margin-bottom: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.year-nav::-webkit-scrollbar {
    display: none;
}

.year-nav-item {
    flex: 0 0 auto;
    min-height: var(--page-chip-min-height);
    padding: 0.55rem 1.1rem;
    background: var(--editorial-surface-base);
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 999px;
    font-size: var(--page-chip-font-size);
    font-weight: 600;
    color: rgba(120, 86, 92, 0.94);
    text-decoration: none;
    scroll-snap-align: start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.year-nav-item:hover {
    background: var(--editorial-surface-hover);
    border-color: rgba(255, 81, 98, 0.22);
    color: var(--primary-color);
    box-shadow:
        0 10px 20px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.year-nav-item.active {
    background: var(--editorial-surface-active);
    border-color: rgba(255, 81, 98, 0.18);
    color: var(--primary-color);
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


        html[data-theme="dark"] .content-filter-shell {
        background: rgba(27, 24, 31, 0.9);
        border-color: var(--editorial-border-subtle);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    }

        html[data-theme="dark"] .content-filter-kicker {
        background: rgba(255, 81, 98, 0.14);
        color: #ff8f9b;
    }

        html[data-theme="dark"] .content-filter-meta {
        color: #a8a1ad;
    }

        html[data-theme="dark"] .filter-btn,
    html[data-theme="dark"] .filter-dropdown-toggle,
    html[data-theme="dark"] .year-nav-item {
        background: var(--editorial-surface-muted);
        border-color: var(--editorial-border-subtle);
        color: #c1bac6;
    }

        html[data-theme="dark"] .filter-btn:hover,
    html[data-theme="dark"] .filter-dropdown-toggle:hover,
    html[data-theme="dark"] .year-nav-item:hover {
        background: var(--editorial-accent-wash);
        border-color: rgba(255, 81, 98, 0.32);
        color: #ff8f9b;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
    }

        html[data-theme="dark"] .filter-btn.active,
    html[data-theme="dark"] .filter-dropdown-toggle.has-value,
    html[data-theme="dark"] .year-nav-item.active {
        background: var(--editorial-surface-active);
        border-color: var(--editorial-border-strong);
        color: #ffe5ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

        html[data-theme="dark"] .year-badge,
    html[data-theme="dark"] .timeline-card-date {
        border-color: var(--editorial-border-subtle);
        background: var(--editorial-surface-base);
        color: #ff8f9b;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .timeline-card-header {
        background: rgba(31, 28, 35, 0.86);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

        html[data-theme="dark"] .year-badge::before {
        content: none;
    }

        html[data-theme="dark"] .date-month {
        color: rgba(242, 230, 234, 0.72);
        opacity: 1;
    }

        html[data-theme="dark"] .filter-dropdown {
        background: rgba(27, 24, 31, 0.96);
        border-color: var(--editorial-border-subtle);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    }

        html[data-theme="dark"] .filter-option {
        color: #d7d1db;
    }

        html[data-theme="dark"] .filter-option:hover {
        background: var(--editorial-accent-wash);
        color: #ff8f9b;
    }

        html[data-theme="dark"] .filter-option.active {
        background: rgba(255, 81, 98, 0.16);
        color: #ff8f9b;
    }

        html[data-theme="dark"] .timeline-empty {
        background: #1e1e1e;
        border-color: var(--editorial-border-subtle);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    }

        html[data-theme="dark"] .timeline-empty-text {
        color: #f3f3f3;
    }


/* ================================
   年份分组
   ================================ */
.year-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
    margin-bottom: 0;
}

.year-group:last-child {
    margin-bottom: 0;
}

.year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.16rem 0.78rem;
    border: 1px solid var(--editorial-border-subtle);
    background: var(--editorial-surface-base);
    color: var(--primary-color);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-left: 0;
    margin-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.year-badge::before {
    content: none;
}

/* ================================
   恋爱清单
   ================================ */

/* ================================
   随笔说说
   ================================ */
.notes-stream {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.note-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.note-mood {
    font-size: 1.25rem;
}

.note-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.note-images {
    display: grid;
    gap: 0.25rem;
}

.note-images.count-1 {
    grid-template-columns: 1fr;
}

.note-images.count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.note-images.count-3,
.note-images.count-6,
.note-images.count-9 {
    grid-template-columns: repeat(3, 1fr);
}

.note-images.count-4,
.note-images.count-8 {
    grid-template-columns: repeat(2, 1fr);
}

.note-images.count-5,
.note-images.count-7 {
    grid-template-columns: repeat(3, 1fr);
}

.note-image {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
}

.note-images.count-1 .note-image {
    aspect-ratio: 16/9;
}

/* ================================
   祝福板（评论）
   ================================ */
.comments-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.comment-count {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.comment-count strong {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.btn-submit {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 81, 98, 0.18);
    background: var(--editorial-surface-active);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    border-color: rgba(255, 81, 98, 0.24);
    background: linear-gradient(180deg, rgba(255, 229, 235, 1), rgba(255, 242, 245, 1));
    color: var(--primary-color);
    box-shadow:
        0 12px 24px rgba(255, 81, 98, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ================================
   页脚
   ================================ */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.14rem;
    padding: 0.98rem 1rem 0.9rem;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--border-color);
    margin-top: 0.82rem;
}

body:not(.home):not(.front-page) .footer {
    margin-top: 0.66rem;
}

.footer-nav {
    width: min(100%, 980px);
    padding: 0;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.18rem 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.footer-nav-item + .footer-nav-item::before {
    content: '|';
    margin: 0 0.24rem 0 0.08rem;
    color: rgba(168, 144, 149, 0.34);
    font-size: 0.62rem;
    line-height: 1;
    transform: translateY(-1px);
}

.footer-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.04rem 0;
    color: rgba(120, 86, 92, 0.72);
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.34;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -0.18rem;
    left: 0;
    height: 1px;
    background: rgba(255, 81, 98, 0.28);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease, background 0.24s ease;
}

.footer-nav-link:hover {
    color: var(--primary-color);
}

.footer-nav-link:hover::after {
    transform: scaleX(1);
}

.footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-stats {
    line-height: 1.2;
    margin-top: 0.02rem;
}

.footer-signoff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.1rem 0.36rem;
    margin-top: 0.02rem;
    line-height: 1.3;
}

.footer-slogan {
    color: rgba(108, 78, 84, 0.8);
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.footer-signoff-copyright {
    display: inline-flex;
    align-items: center;
    gap: 0.14rem;
    font-size: 0.7rem;
    color: rgba(136, 108, 115, 0.62);
    white-space: nowrap;
}

.footer a {
    color: inherit;
}

.footer-signoff-copyright a:hover {
    color: var(--primary-color);
}

html[data-theme="dark"] .footer-nav-link {
    color: rgba(242, 230, 234, 0.72);
    text-shadow: none;
}

html[data-theme="dark"] .footer-nav-item + .footer-nav-item::before {
    color: rgba(255, 214, 221, 0.2);
}

html[data-theme="dark"] .footer-nav-link::after {
    background: rgba(255, 143, 155, 0.34);
}

html[data-theme="dark"] .footer-nav-link:hover {
    color: #ff8f9b;
}

html[data-theme="dark"] .footer-slogan {
    color: rgba(244, 234, 238, 0.76);
}

html[data-theme="dark"] .footer-signoff-copyright {
    color: rgba(226, 212, 217, 0.52);
}

@media (max-width: 640px) {
    .footer {
        gap: 0.18rem;
        padding: 0.9rem 0.82rem 0.82rem;
        margin-top: 0.78rem;
    }

    body:not(.home):not(.front-page) .footer {
        margin-top: 0.62rem;
    }

    .footer-nav-list {
        gap: 0.14rem 0.08rem;
    }

    .footer-nav-link {
        font-size: 0.66rem;
        letter-spacing: 0.02em;
    }

    .footer-nav-item + .footer-nav-item::before {
        margin: 0 0.18rem 0 0.06rem;
        font-size: 0.58rem;
    }

    .footer-signoff {
        gap: 0.08rem 0.28rem;
    }

    .footer-slogan,
    .footer-signoff-copyright {
        font-size: 0.66rem;
    }
}

#main > .content-section:last-child {
    padding-bottom: 0.62rem;
}

/* ================================
   返回顶部
   ================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:active {
    transform: scale(0.9);
}

/* ================================
   PhotoSwipe 自定义
   ================================ */
.pswp__bg {
    background: rgba(0, 0, 0, 0.9);
}

.pswp__counter {
    font-family: inherit;
}

/* ================================
   平板适配
   ================================ */
@media (min-width: 576px) {
    .hero-section {
        height: 30vh;
    }
    
    .lover-avatar {
        width: 80px;
        height: 80px;
    }

    .avatar-wrapper {
        padding: 18px;
        --comet-radius: 49px;
    }

    .heart-container {
        top: -11px;
        --heart-size: 25px;
    }
    
    .entry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================
   PC 适配
   ================================ */
@media (min-width: 992px) {
    .hero-section {
        height: 33vh;
        min-height: 280px;
    }
    
    .lover-avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-wrapper {
        padding: 20px;
        --comet-radius: 59px;
    }

    .heart-container {
        top: -13px;
        --heart-size: 29px;
    }
    
    .waves-area {
        height: 3.5rem;
    }
    
    .content-section {
        padding: 2rem;
    }

    .moments-filter-shell {
        width: 100%;
        margin-left: 0;
    }
    
    .timeline {
        padding-left: 0;
    }

    .entry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* 时间轴移动端适配 */
@media (max-width: 575px) {
    .content-section {
        padding: 1rem 0.75rem;
    }

    .timeline-wrapper + .pagination {
        margin-top: 0.9rem;
    }

    .page-hero-section + .content-section {
        padding-right: 0;
        padding-left: 0;
    }

    .moments-filter-shell {
        width: auto;
        margin-left: 0;
        margin-bottom: 0.8rem;
    }
    
    .timeline-wrapper {
        gap: 0.8rem;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline-card {
        margin-bottom: 1.25rem;
    }
    
    .timeline-card:last-child {
        margin-bottom: 0;
    }
    
    .timeline-card-inner {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid var(--border-color);
    }
    
    .timeline-card-header {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .timeline-card-date {
        min-width: 48px;
        padding: 0.5rem 0.4rem;
    }
    
    .date-day {
        font-size: 1.2rem;
    }
    
    .date-month {
        font-size: 0.7rem;
    }
    
    .timeline-card-title {
        font-size: 0.96rem;
        line-height: 1.32;
    }
    
    .timeline-card-content {
        gap: 0.75rem;
    }
    
    .timeline-card-media {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    
    .timeline-card-footer-meta {
        gap: 0.5rem;
    }
    
    .timeline-card-mood,
    .timeline-card-location {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .timeline-card-mood .mood-emoji {
        font-size: 0.9rem;
    }
    
    .timeline-card-header .timeline-card-author {
        gap: 0.36rem;
        margin-left: 0.1rem;
        padding-left: 0.65rem;
    }

    .timeline-card-header .author-avatar {
        width: 24px;
        height: 24px;
    }
    
    .timeline-card-header .author-name {
        font-size: 0.72rem;
        max-width: 60px;
    }
    
    .timeline-card-body {
        padding: 0.875rem 1rem;
    }
    
    .timeline-card-excerpt {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .timeline-card-footer {
        padding: 0.75rem 1rem;
    }
    
    .view-detail {
        font-size: 0.85rem;
    }

    .content-filter-shell {
        padding: 0.95rem 1rem;
        border-radius: 24px;
    }

    .content-filter-heading {
        min-width: 100%;
        max-width: none;
    }

    .content-filter-actions {
        flex-basis: 100%;
    }

    .moments-filter-controls {
        gap: 0.5rem;
    }

    .filter-btn,
    .filter-dropdown-toggle {
        padding: 0.46rem 0.88rem;
        font-size: 0.84rem;
    }
    
    /* 年份导航移动端 */
    .year-nav {
        gap: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .year-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.84rem;
    }
    
    .year-badge {
        min-height: 28px;
        font-size: 0.72rem;
        padding: 0.14rem 0.72rem;
        margin-bottom: 0;
    }
    
    .year-group {
        gap: 0.8rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .year-group:last-child {
        margin-bottom: 0;
    }
}


        html[data-theme="dark"] .year-badge {
        border-color: var(--editorial-border-subtle);
        background: var(--editorial-surface-base);
        color: #ff8f9b;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }


/* ================================
   点滴详情页
   ================================ */
.moment-article {
    max-width: 800px;
    margin: 0 auto;
}

.moment-header {
    margin-bottom: 2rem;
}

.moment-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.moment-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    flex: 1;
    text-align: center;
    margin: 0;
}

.moment-date-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), #ff6b7a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 2rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.moment-date-tag .date-sep {
    opacity: 0.7;
}

.moment-summary {
    background: linear-gradient(135deg, rgba(255, 81, 98, 0.05), rgba(255, 107, 122, 0.08));
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.moment-summary p {
    margin: 0;
}

.moment-summary p + p {
    margin-top: 0.75rem;
}

.moment-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.moment-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.moment-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.moment-content p {
    margin-bottom: 1rem;
}

.moment-content p:last-child {
    margin-bottom: 0;
}

.moment-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.moment-meta {
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.moment-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.moment-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    min-width: 80px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: rgba(255, 81, 98, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
}

.meta-icon {
    font-size: 0.9rem;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.meta-link {
    font-size: 0.95rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.meta-link:hover {
    text-decoration: underline;
}

.moment-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.moment-navigation .nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-prev,
.nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 81, 98, 0.1);
}

.nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.nav-title {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-back {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ff6b7a);
    color: #fff;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 81, 98, 0.3);
}

.nav-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 98, 0.4);
    color: #fff;
}

.nav-placeholder {
    flex: 1;
}

/* 点滴详情页移动端 */
@media (max-width: 575px) {
    .moment-article {
        padding-top: 0.5rem;
    }
    
    .moment-header {
        margin-bottom: 1.5rem;
    }
    
    .moment-header-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .moment-title {
        font-size: 1.15rem;
        text-align: left;
        order: 2;
    }
    
    .moment-date-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
        order: 1;
        align-self: flex-start;
    }
    
    .moment-title {
        font-size: 1.15rem;
    }
    
    .moment-summary {
        padding: 1rem;
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .moment-featured-image {
        margin-bottom: 1.25rem;
        border-radius: var(--radius);
    }
    
    .moment-content {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .moment-meta {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .moment-meta-row {
        gap: 0.5rem;
    }
    
    .meta-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .meta-label {
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .meta-value,
    .meta-link {
        font-size: 0.9rem;
    }
    
    .moment-navigation {
        padding-top: 1.25rem;
    }
    
    .moment-navigation .nav-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .nav-prev,
    .nav-next {
        order: 2;
        flex: 1 1 45%;
        padding: 0.875rem;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
    
    .nav-title {
        font-size: 0.85rem;
    }
    
    .nav-back {
        order: 1;
        flex: 1 1 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-placeholder {
        display: none;
    }
}

/* ================================
   动画
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ================================
   工具类
   ================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.hidden {
    display: none !important;
}

/* ================================
   祝福留言页面样式
   ================================ */

.blessing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.blessing-count {
    font-size: 1rem;
    color: var(--text-muted);
}

.blessing-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.blessing-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ff6b7a);
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 81, 98, 0.3);
}

.blessing-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 81, 98, 0.4);
}

.blessing-toggle-btn.active {
    background: linear-gradient(135deg, #666, #888);
}

.toggle-icon {
    font-size: 1.2rem;
}

/* 展开式表单 */
.blessing-form-wrapper {
    margin-bottom: 2rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blessing-form-inner {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.blessing-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
}

.blessing-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blessing-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.blessing-form .form-group:last-child {
    margin-bottom: 1rem;
}

.blessing-form input,
.blessing-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blessing-form input:focus,
.blessing-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 81, 98, 0.1);
}

.blessing-filter-shell {
    margin-bottom: 0.82rem;
}

.blessing-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* 瀑布流布局 */
.blessing-waterfall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--page-waterfall-gap);
    align-items: start;
    padding: 0;
}

@media (max-width: 960px) {
    .blessing-waterfall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 祝福卡片 */
.blessing-card {
    position: relative;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(255, 249, 251, 0.96) 0%, rgba(255, 255, 255, 0.98) 26%, var(--card-bg) 100%);
    border: 1px solid rgba(255, 81, 98, 0.08);
    border-radius: var(--page-card-radius);
    padding: 1.18rem;
    box-shadow: var(--page-card-shadow);
    transition: all 0.3s ease;
}

.blessing-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 96px;
    background:
        radial-gradient(circle at top right, rgba(255, 143, 171, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(255, 221, 232, 0.9), rgba(255, 246, 250, 0));
    pointer-events: none;
}

.blessing-card::after {
    content: '❤';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 111, 155, 0.28);
    pointer-events: none;
}

.blessing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--page-card-shadow-hover);
}

.blessing-card-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.68rem;
    margin: -0.06rem -0.06rem 0.82rem;
    padding: 0.82rem 0.92rem;
    border: 1px solid rgba(255, 143, 171, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 248, 251, 0.95), rgba(255, 238, 245, 0.88));
}

.blessing-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.96);
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.18),
        0 0 0 6px rgba(255, 255, 255, 0.36);
    background: linear-gradient(135deg, #fff8fb 0%, #ffe7ef 100%);
}

.blessing-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    min-width: 0;
}

.blessing-author {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text-color);
}

.blessing-time {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
}

.blessing-content {
    position: relative;
    z-index: 1;
    padding: 0 0.12rem 0.08rem 1.05rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    word-wrap: break-word;
}

.blessing-content::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.28rem;
    font-size: 2rem;
    line-height: 1;
    color: rgba(255, 81, 98, 0.2);
}

.blessing-content p {
    margin: 0 0 0.5rem;
}

.blessing-content p:last-child {
    margin-bottom: 0;
}

/* 加载更多 */
.blessing-load-more {
    text-align: center;
    margin-top: 2rem;
    padding: 0;
}

.btn-load-more {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 81, 98, 0.18);
    background: var(--editorial-surface-active);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-load-more:hover {
    border-color: rgba(255, 81, 98, 0.24);
    background: linear-gradient(180deg, rgba(255, 229, 235, 1), rgba(255, 242, 245, 1));
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow:
        0 12px 24px rgba(255, 81, 98, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 空状态 */
.blessing-empty {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3.4rem 2rem 3.1rem;
    background: linear-gradient(180deg, rgba(255, 247, 249, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid var(--editorial-border-subtle);
    border-radius: var(--page-card-radius);
    box-shadow:
        0 16px 34px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.empty-icon {
    font-size: 3.6rem;
    margin-bottom: 1.05rem;
    opacity: 0.72;
}

.empty-text {
    max-width: 26rem;
    margin: 0 auto;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.01em;
    color: var(--text-color);
}

/* 响应式 */
@media (max-width: 640px) {
    .blessing-waterfall {
        grid-template-columns: 1fr;
    }

    .blessing-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .blessing-toggle-btn {
        justify-content: center;
    }
    
    .blessing-form .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blessing-card {
        padding: 1rem;
    }

    .blessing-filter-bar {
        gap: 0.68rem;
    }
}

/* ================================
   祝福表单区域
   ================================ */

.blessing-form-section {
    margin-top: var(--page-stack-gap);
    padding: 0;
}

.blessing-form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.form-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.blessing-form-box {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--page-card-radius);
    padding: 1.5rem;
    box-shadow: var(--page-card-shadow);
    border: 1px solid var(--border-color);
}

.blessing-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blessing-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.blessing-form .form-input,
.blessing-form .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.blessing-form .form-input:focus,
.blessing-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 81, 98, 0.1);
}

.blessing-form .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.notice-icon {
    font-size: 1rem;
}

.notice-text {
    font-size: 0.85rem;
    color: #856404;
}

.form-submit {
    text-align: center;
}

.btn-submit-blessing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    border: 1px solid rgba(255, 81, 98, 0.18);
    background: var(--editorial-surface-active);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.btn-submit-blessing:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 81, 98, 0.24);
    background: linear-gradient(180deg, rgba(255, 229, 235, 1), rgba(255, 242, 245, 1));
    box-shadow:
        0 12px 24px rgba(255, 81, 98, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-submit-blessing .btn-icon {
    font-size: 1.1rem;
}

.blessing-closed {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 640px) {
    .blessing-form-section {
        margin-top: 1.5rem;
    }
    
    .blessing-form-box {
        padding: 1rem;
    }
    
    .blessing-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-title {
        font-size: 1.1rem;
    }
}

/* ================================
   祝福留言深色模式
   ================================ */

        html[data-theme="dark"] .blessing-card {
        background: linear-gradient(180deg, rgba(45, 37, 41, 0.95) 0%, rgba(30, 30, 30, 0.98) 26%, #1e1e1e 100%);
        border-color: var(--editorial-border-subtle);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    }

        html[data-theme="dark"] .blessing-card::before {
        background:
            radial-gradient(circle at top right, rgba(255, 111, 155, 0.2), transparent 58%),
            linear-gradient(135deg, rgba(92, 48, 64, 0.65), rgba(30, 30, 30, 0));
    }

        html[data-theme="dark"] .blessing-card::after {
        color: rgba(255, 143, 171, 0.2);
    }
    
        html[data-theme="dark"] .blessing-card:hover {
        box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
    }
    
        html[data-theme="dark"] .blessing-card-header {
        border-color: var(--editorial-border-subtle);
        background: linear-gradient(135deg, rgba(48, 45, 47, 0.96), rgba(37, 37, 37, 0.92));
    }

        html[data-theme="dark"] .blessing-avatar {
        border-color: rgba(255, 255, 255, 0.16);
        box-shadow:
            0 10px 22px rgba(0, 0, 0, 0.35),
            0 0 0 6px rgba(255, 255, 255, 0.04);
        background: linear-gradient(135deg, #2b2b2b 0%, #353535 100%);
    }
    
        html[data-theme="dark"] .blessing-author {
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .blessing-time {
        color: rgba(242, 230, 234, 0.66);
    }
    
        html[data-theme="dark"] .blessing-content {
        color: #ccc;
    }

        html[data-theme="dark"] .blessing-content::before {
        color: rgba(255, 143, 171, 0.16);
    }
    
        html[data-theme="dark"] .blessing-form-box {
        background: #1e1e1e;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }

        html[data-theme="dark"] .blessing-empty {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .blessing-empty .empty-text {
        color: #f3f3f3;
    }
    
        html[data-theme="dark"] .blessing-form-header .form-title {
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .blessing-form .form-input,
    html[data-theme="dark"] .blessing-form .form-textarea {
        background: #2a2a2a;
        border-color: #333;
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .blessing-form .form-input::placeholder,
    html[data-theme="dark"] .blessing-form .form-textarea::placeholder {
        color: #666;
    }
    
        html[data-theme="dark"] .form-notice {
        background: rgba(255, 193, 7, 0.15);
    }
    
        html[data-theme="dark"] .notice-text {
        color: #ffc107;
    }
    
        html[data-theme="dark"] .blessing-empty .empty-text {
        color: #f3edf5;
    }
    
        html[data-theme="dark"] .btn-load-more {
        border-color: var(--editorial-border-strong);
        color: #ffe5ea;
        background: var(--editorial-surface-active);
    }
    
        html[data-theme="dark"] .btn-load-more:hover {
        border-color: rgba(255, 143, 155, 0.28);
        background: linear-gradient(180deg, rgba(91, 63, 72, 0.98), rgba(66, 45, 53, 0.98));
        color: #ffeef1;
    }
    
    /* ================================
       首页深色模式
       ================================ */
    
    /* 纪念日区域 */
        html[data-theme="dark"] .anniversary-section {
        background: #1a1a1a;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
        html[data-theme="dark"] .anniversary-title {
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .anniversary-card {
        background: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
        html[data-theme="dark"] .anniversary-card.countdown {
        background: linear-gradient(135deg, #1a2a3a 0%, #1e1e1e 100%);
    }
    
        html[data-theme="dark"] .anniversary-card.countup {
        background: linear-gradient(135deg, #2a1a2a 0%, #1e1e1e 100%);
    }
    
        html[data-theme="dark"] .anniversary-name {
        color: #888;
    }
    
        html[data-theme="dark"] .anniversary-days {
        color: #ff6b7a;
    }
    
        html[data-theme="dark"] .anniversary-date {
        color: #666;
    }
    
    /* 入口卡片 */
        html[data-theme="dark"] .entry-card {
        background: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
        html[data-theme="dark"] .entry-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        transform: translateY(-2px);
    }
    
        html[data-theme="dark"] .entry-title {
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .entry-desc {
        color: #888;
    }
    
    /* ================================
       计时器深色模式
       ================================ */
        html[data-theme="dark"] .timer-section {
        background: linear-gradient(135deg, #2a1f1f 0%, #1a1a1a 100%);
    }
    
        html[data-theme="dark"] .timer-title {
        color: #888;
    }
    
        html[data-theme="dark"] .timer-number {
        color: #ff6b7a;
    }
    
    /* ================================
       天气深色模式
       ================================ */
        html[data-theme="dark"] .weather-section {
        background: #1a1a1a !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }
    
        html[data-theme="dark"] .weather-section-title {
        color: #e0e0e0 !important;
    }


/* ================================
   页面Hero区域
   ================================ */
.page-hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 272px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center top, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(70, 36, 51, 0.14), rgba(34, 22, 34, 0.46));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: min(calc(100% - (var(--page-shell-gutter) * 2)), var(--page-shell-max-width));
    margin: 0 auto;
    padding: 1.85rem 0 2.85rem;
}

.page-hero-panel {
    width: min(100%, var(--page-hero-panel-max-width));
    max-width: none;
    margin: 0 auto;
    padding: 0.98rem clamp(1rem, 2vw, 1.6rem) 1.02rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045));
    box-shadow: 0 16px 30px rgba(24, 14, 22, 0.13);
    backdrop-filter: blur(14px);
}

.page-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    padding: 0.3rem 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero-title {
    font-size: clamp(1.8rem, 3.3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    margin: 0 0 0.34rem;
}

.page-hero-desc {
    margin: 0 auto;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.91rem;
    line-height: 1.62;
}

/* 页面Hero波浪 */
.page-hero-section .waves-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

/* 页面内容区调整 */
.page-hero-section + .content-section,
.page-hero-section + .love-list-section {
    padding-top: 1.5rem;
}

.page-hero-section + .content-section {
    max-width: none;
    margin: 0;
    padding-right: 0;
    padding-left: 0;
}


        html[data-theme="dark"] .page-hero-overlay {
        background:
            radial-gradient(circle at center top, rgba(255, 255, 255, 0.08), transparent 34%),
            linear-gradient(180deg, rgba(20, 18, 28, 0.18), rgba(8, 8, 10, 0.56));
    }

        html[data-theme="dark"] .page-hero-panel {
        border-color: var(--editorial-border-subtle);
        background: linear-gradient(180deg, rgba(38, 35, 44, 0.52), rgba(24, 23, 28, 0.28));
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
    }

        html[data-theme="dark"] .page-hero-kicker {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--editorial-border-subtle);
    }

        html[data-theme="dark"] .hero-section .parallax > use:nth-child(1),
    html[data-theme="dark"] .page-hero-section .parallax > use:nth-child(1) {
        fill: rgba(48, 40, 50, 0.72);
    }

        html[data-theme="dark"] .hero-section .parallax > use:nth-child(2),
    html[data-theme="dark"] .page-hero-section .parallax > use:nth-child(2) {
        fill: rgba(38, 33, 41, 0.82);
    }

        html[data-theme="dark"] .hero-section .parallax > use:nth-child(3),
    html[data-theme="dark"] .page-hero-section .parallax > use:nth-child(3) {
        fill: rgba(28, 24, 31, 0.9);
    }

        html[data-theme="dark"] .hero-section .parallax > use:nth-child(4),
    html[data-theme="dark"] .page-hero-section .parallax > use:nth-child(4) {
        fill: #1c1920;
    }


/* 移动端适配 */
@media (max-width: 768px) {
    .page-hero-section {
        min-height: 228px;
    }

    .page-hero-content {
        padding: 3.35rem 0 2.55rem;
    }

    .page-hero-panel {
        padding: 0.92rem 0.9rem 0.96rem;
    }
    
    .page-hero-title {
        font-size: 1.68rem;
    }

    .page-hero-desc {
        font-size: 0.89rem;
        max-width: 27rem;
    }
}
