/* ============================================
   纪念日网站 - 全局样式
   主题：天蓝奶油色 + 黄色星星
   ============================================ */

/* ============================================
   ★★★ 自定义字体加载 ★★★

   【字体包放置位置】
   在项目根目录下创建 fonts 文件夹，把你的 .ttf 字体文件放进去：
   freeing_web/
   ├── fonts/
   │   ├── MyFont.ttf            ← 全局字体（所有文字）
   │   └── AnniversaryFont.ttf   ← 纪念日框字体（只管已相守天数那个数字）
   ├── css/
   ├── images/
   └── ...

   【如何修改全局字体（最简单方式）】
   1. 把你的 TTF 文件重命名为 MyFont.ttf
   2. 放到 fonts/ 文件夹
   → 所有文字（除相遇时间时钟、纪念日框数字外）自动使用这个字体

   【如何修改纪念日框字体（最简单方式）】
   1. 把你的 TTF 文件重命名为 AnniversaryFont.ttf
   2. 放到 fonts/ 文件夹覆盖原文件
   → 纪念日框的「已相守天数」数字就会用这个字体
   （如果 fonts/ 下没有 AnniversaryFont.ttf，会自动回退到全局字体）
   ============================================ */
@font-face {
    font-family: 'MyCustomFont';
    src: url('../fonts/MyFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 纪念日框专用字体 - 只需把你的 TTF 重命名为 AnniversaryFont.ttf 放进 fonts/ */
@font-face {
    font-family: 'AnniversaryFont';
    src: url('../fonts/AnniversaryFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 情侣名字专用字体 - 只需把你的 TTF 重命名为 CoupleNames.ttf 放进 fonts/ */
@font-face {
    font-family: 'CoupleNamesFont';
    src: url('../fonts/CoupleNames.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ★ 全局自定义字体 - 把 TTF 重命名为 MyFont.ttf 放进 fonts/ 即可 ★ */
    --custom-font: 'MyCustomFont', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    /* ★ 相遇时间时钟字体（单独，不跟随全局）★ */
    --clock-font: 'Segoe UI', 'Consolas', monospace;

    /* ★ 纪念日框字体 - 把 TTF 重命名为 AnniversaryFont.ttf 放进 fonts/ 即可 ★ */
    /* 找不到该文件时会自动回退到全局字体 --custom-font */
    --anniversary-font: 'AnniversaryFont', var(--custom-font);

    /* ★ 情侣名字字体（头像下方 xxx&xxx）- 把 TTF 重命名为 CoupleNames.ttf 放进 fonts/ 即可 ★ */
    /* 找不到该文件时会自动回退到全局字体 --custom-font */
    --couple-names-font: 'CoupleNamesFont', var(--custom-font);

    /* 奶油蓝色系 - 全部去绿调，B 通道更纯 */
    --primary-blue: #3d7db8;      /* 主蓝：纯蓝不偏青 */
    --secondary-blue: #6aa3dd;    /* 副蓝：更亮更纯 */
    --primary-cyan: #2e6ea8;      /* 深蓝：校徽蓝方向 */
    --primary-white: #f2f7ff;     /* 暖白蓝 */
    --light-blue: #b3cfec;        /* 浅蓝：纯白蓝 */
    /* 纯天然奶油蓝色背景 - 更白更淡 */
    --bg-gradient-start: #a4c9ec;   /* 奶油浅天蓝（顶部，更白） */
    --bg-gradient-mid: #c9def2;     /* 奶油蓝白（中部，明显更白） */
    --bg-gradient-end: #7aa6d0;     /* 柔和纯蓝（底部，更浅） */

    --card-bg: rgba(255, 255, 255, 0.20);   /* 加深卡片背景，白字更清晰 */
    --card-border: rgba(255, 255, 255, 0.38);
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.88);
    /* 粉白渐变 - 最初版：白→粉→深粉→白 */
    --grad-white:  #ffffff;     /* 高光白 */
    --grad-pinkL:  #ffd3dd;     /* 极浅粉 */
    --grad-pink:   #ff7b98;     /* 普通粉 */
    --grad-pinkH:  #ff5f85;     /* 深粉（最初版） */
}

/* 粉白渐变工具：最初版 白→粉→深粉→白 循环 */
.text-pinkwhite {
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
}

@keyframes pinkWhiteFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--custom-font);
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    overflow-x: hidden;
}

body {
    /* 天蓝奶油色主背景 */
    background: linear-gradient(180deg,
        var(--bg-gradient-start) 0%,
        var(--bg-gradient-mid) 50%,
        var(--bg-gradient-end) 100%);
    min-height: 100vh;
    position: relative;
    /* 奶油质感光晕叠加（去绿调，用纯白和奶油黄） */
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(255, 255, 255, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 248, 225, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
}

/* ============================================
   水波动画层 - 多层 SVG 波浪叠加
   ============================================ */
.wave-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
    /* 整体轻微起伏，模拟海面呼吸感 */
    animation: waveFloat 8s ease-in-out infinite alternate;
}

.wave-bg .wave-wrapper {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 第一层 - 最前方波浪 - 蓝白色 (22s) */
.wave-bg .wave-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 60%;
    opacity: 0.4;
    animation: waveMoveX 22s linear infinite;
}
.wave-bg .wave-1 path { fill: rgba(255, 255, 255, 0.4); }

/* 第二层 - 中层波浪 - 淡蓝色 (35s 反向) */
.wave-bg .wave-2 {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 200%;
    height: 50%;
    opacity: 0.35;
    animation: waveMoveX 35s linear infinite reverse;
}
.wave-bg .wave-2 path { fill: rgba(181, 215, 232, 0.35); }

/* 第三层 - 后方波浪 - 深蓝色 (50s) */
.wave-bg .wave-3 {
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 200%;
    height: 42%;
    opacity: 0.28;
    animation: waveMoveX 50s linear infinite;
}
.wave-bg .wave-3 path { fill: rgba(107, 174, 214, 0.3); }

/* 第四层 - 上方漂动的云/水波纹 (60s 反向) */
.wave-bg .wave-4 {
    position: absolute;
    top: 2%;
    left: 0;
    width: 200%;
    height: 35%;
    opacity: 0.2;
    animation: waveMoveX 60s linear infinite reverse;
    transform: rotate(180deg);
}
.wave-bg .wave-4 path { fill: rgba(240, 248, 255, 0.35); }

/* 横向移动：SVG 宽度 200%，用 path 无缝衔接后平移 */
@keyframes waveMoveX {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 整体海面轻微上下浮动 */
@keyframes waveFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

/* 动态粒子背景画布（叠在水波上方） */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* 粒子层 z-index 高于水波，z-index 相同按 DOM 顺序叠 */
}

/* 主容器 */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
   登录页样式
   ============================================ */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #d4ecf7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 登录页标题字体跟随全局 */
    font-family: var(--custom-font);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.login-form {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--card-border);
    display: flex;
    gap: 15px;
    align-items: center;
}

.date-input-group {
    display: flex;
    gap: 18px;
}

/* 单个输入字段：输入框 + 固定在外面的「年/月/日」单位 */
.date-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-input {
    width: 70px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid var(--light-blue);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    outline: none;
    transition: all 0.3s ease;
}

.date-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.date-input:focus {
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

/* 固定在输入框外面的「年/月/日」单位字 */
.date-unit {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.date-separator {
    font-size: 1.5rem;
    color: var(--light-blue);
    align-self: center;
}

.login-btn {
    margin-top: 30px;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.login-btn-arrow {
    transition: transform 0.3s ease;
}

.login-btn:hover .login-btn-arrow {
    transform: translateX(5px);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.login-btn:active {
    transform: scale(0.95);
}

/* ============================================
   首页 - 倒计时与时钟样式
   ============================================ */
.home-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

/* 倒计时 - 大号醒目显示 */
.countdown-section {
    text-align: center;
    margin-bottom: 30px;
}

.countdown-label {
    font-size: 1.1rem;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* 双人情头：整体 column 布局（头像一行 + 名字一行居中） */
.couple-avatars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px 0 16px;
    gap: 10px;
}

/* 头像行：两头像横向紧密相连，保持原左右重合效果 */
.avatars-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #1e4d7b, #0c2a4d);
    flex-shrink: 0;
}

/* 右边头像向左偏移，与左边头像重合一点 */
.avatar-right {
    margin-left: -28px;
    /* 让右头像压在左头像上，看起来更亲密 */
    position: relative;
    z-index: 1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 情侣名字：头像正下方居中，格式 xxx&xxx，纯白不灰蒙，支持单独 TTF 字体 */
.couple-names {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    /* 纯白文字 + 深色轮廓阴影，不使用渐变避免灰蒙蒙 */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75),
                 0 0 12px rgba(61, 125, 184, 0.55);
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
    filter: none;
    white-space: nowrap;
    user-select: none;
    /* ★ 情侣名字专用字体变量，找不到 CoupleNames.ttf 时自动回退全局字体 ★ */
    font-family: var(--couple-names-font);
}

/* & 符号单独稍小一点，视觉更协调（可选微调） */
.couple-names .ampersand {
    font-size: 0.9em;
    opacity: 0.92;
    margin: 0 2px;
}

/* 大号天数翻页卡 */
.big-day-card {
    display: inline-block;
    padding: 25px 60px;
    background: linear-gradient(180deg, #0f2744 0%, #0a1a2e 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.big-day-number {
    font-size: 6rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: 5px;
    text-shadow: none;
    /* ★★★ 纪念日框字体由顶部 --anniversary-font 变量统一控制 ★★★ */
    font-family: var(--anniversary-font);
}

.big-day-word {
    font-size: 1.8rem;
    /* 纯白不灰蒙 */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
    margin-top: 12px;
    letter-spacing: 4px;
}

/* 当前时间 - 年月日时分秒完整显示 - 加深背景 */
.clock-section {
    margin-bottom: 25px;
    padding: 15px 30px;
    /* 深色半透明背景，内部文字渐变清晰不融 */
    background: rgba(10, 26, 46, 0.3);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.clock-date {
    font-size: 1rem;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.clock-time {
    font-size: 2rem;
    font-weight: bold;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    letter-spacing: 3px;
    line-height: 1.2;
    /* ★ 相遇时间时钟字体 - 单独设置，不跟随全局自定义字体 ★ */
    font-family: var(--clock-font);
    text-shadow: 0 0 20px rgba(74, 144, 184, 0.3);
}

.clock-time .sep {
    color: var(--primary-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* 移除旧的翻页卡片样式 */
.flip-clock, .flip-unit, .flip-card,
.flip-card .card, .flip-card.flipping,
@keyframes flipTop, @keyframes flipBottom {
    /* 保留占位，旧结构废弃 */
}

/* ============================================
   情话卡片样式
   ============================================ */
.love-word-card {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.2));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px 30px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.love-word-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.love-word {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    line-height: 1.8;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    font-style: italic;
}

.love-word-deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
}

.love-word-deco.left {
    top: 10px;
    left: 15px;
}

.love-word-deco.right {
    bottom: 10px;
    right: 15px;
}

/* ============================================
   图片轮播样式 - 3D层叠式
   大图居中 + 左右两张小图露边
   ============================================ */
.carousel-section {
    width: 90%;
    max-width: 700px;
    margin-bottom: 30px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
}

.carousel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #1e4d7b, #0c2a4d);
    backface-visibility: hidden;
    user-select: none;
    cursor: pointer;
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel-slide.pos-center {
    width: 68%;
    height: 100%;
    z-index: 3;
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.25);
}

.carousel-slide.pos-left {
    width: 50%;
    height: 78%;
    z-index: 2;
    transform: translateX(-58%) scale(0.92);
    opacity: 0.85;
    filter: brightness(0.72);
}

.carousel-slide.pos-right {
    width: 50%;
    height: 78%;
    z-index: 2;
    transform: translateX(58%) scale(0.92);
    opacity: 0.85;
    filter: brightness(0.72);
}

.carousel-slide.pos-hidden {
    width: 45%;
    height: 70%;
    z-index: 1;
    opacity: 0;
    transform: translateX(0) scale(0.85);
    pointer-events: none;
    visibility: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 26, 46, 0.6);
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(52, 152, 219, 0.75);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-btn.prev {
    left: -10px;
}

.carousel-btn.next {
    right: -10px;
}

.carousel-dots {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--primary-blue);
    width: 26px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
}

/* ============================================
   全部相册按钮
   ============================================ */
.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    font-size: 1.05rem;
    font-weight: 700;
    /* 强制纯白，不被渐变/透明覆盖 */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6),
                 0 0 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #3d7db8 0%, #2a68a0 100%) !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                filter 0.3s ease;
    box-shadow:
        0 6px 20px rgba(61, 125, 184, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.gallery-btn:hover {
    filter: brightness(1.15);
    box-shadow:
        0 10px 28px rgba(61, 125, 184, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.gallery-btn:active {
    transform: scale(0.92) translateY(0);
    filter: brightness(1);
}

.gallery-btn .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: 700;
}

.gallery-btn:hover .arrow {
    transform: translateX(6px);
}

/* 通用回弹动画 class - 所有按钮可复用 */
.bounce-effect {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-effect:active {
    transform: scale(0.92);
}

/* ============================================
   相册页样式
   ============================================ */
.gallery-page {
    padding: 40px 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 2.5rem;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    margin-bottom: 10px;
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    /* 强制纯白不灰蒙 */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    background: rgba(10, 26, 46, 0.3) !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-back:hover {
    background: rgba(10, 26, 46, 0.5) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    filter: brightness(1.1);
}

.gallery-back:active {
    transform: scale(0.95);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.gallery-item:active {
    transform: scale(0.97);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ============================================
   心愿清单样式
   ============================================ */
.wishlist-section {
    max-width: 600px;
    margin: 60px auto 40px;
    padding: 30px 35px;
    /* 加深卡片半透明背景，白字更清晰 */
    background: rgba(10, 26, 46, 0.28);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    position: relative;
}

.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.wishlist-title {
    font-size: 1.6rem;
    font-weight: 700;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
}

/* 问号帮助按钮 */
.wishlist-help-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    /* 纯白问号（按钮有背景，不用渐变clip） */
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.wishlist-help-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--light-blue);
    transform: scale(1.1);
}

.wishlist-help-btn:active {
    transform: scale(0.9);
}

/* 清单列表 */
.wishlist-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 单条心愿 - 纯白文字不灰蒙 */
.wishlist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(10, 26, 46, 0.18);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    background: rgba(10, 26, 46, 0.3);
    border-color: rgba(255, 255, 255, 0.35);
}

/* 复选框（仅展示，不可点击） */
.wishlist-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* 已完成状态 */
.wishlist-item.done .wishlist-checkbox {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-color: #ffd700;
}

.wishlist-item.done .wishlist-checkbox::after {
    content: '';
    width: 7px;
    height: 12px;
    border: solid #1a4a6e;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) translateY(-1px);
}

/* 心愿文字 - 纯纯白 + 强制不渐变 */
.wishlist-text {
    font-size: 1rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
}

.wishlist-item.done .wishlist-text {
    text-decoration: line-through;
    opacity: 0.55;
}

/* 心愿序号 - 纯纯白 + 强制不渐变 */
.wishlist-index {
    font-size: 0.8rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    min-width: 20px;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
}

/* ========== 修改教程弹窗 ========== */
.wishlist-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.wishlist-modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.wishlist-modal-content {
    background: linear-gradient(135deg, #2a6a8a, #1a4a6e);
    border-radius: 20px;
    padding: 35px 30px 30px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.wishlist-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白（注意：此元素同时有背景色，此处仅作用于文字颜色） */
    background-color: rgba(255, 255, 255, 0.15);
    background-image: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wishlist-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wishlist-modal-close:active {
    transform: scale(0.9);
}

.wishlist-modal-content h3 {
    font-size: 1.3rem;
    /* 粉白渐变流动文字 - 最初版 白→粉→深粉→白 */
    background: linear-gradient(90deg,
        var(--grad-white) 0%,
        var(--grad-pink)  25%,
        var(--grad-pinkH) 50%,
        var(--grad-pink)  75%,
        var(--grad-white) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 渐变文字去掉灰色阴影，避免灰蒙蒙 */
    filter: none;
    animation: pinkWhiteFlow 5s linear infinite;
    margin-bottom: 20px;
    text-align: center;
}

.wishlist-modal-body p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 6px;
}

.wishlist-modal-body code {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.82rem;
    color: #ffd700;
    font-family: 'Consolas', 'Monaco', monospace;
}

.wishlist-modal-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 0.8rem;
    color: #b5d7e8;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
}

/* 图片灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 60px rgba(52, 152, 219, 0.3);
}

/* ============================================
   音乐播放器样式（重做版 - 收缩圆圈 + 方向自适应展开）
   定位完全由 JS 用 left/top 控制，CSS 不再用 right 切换
   收缩：仅显示一个圆形专辑
   展开：向上显示歌名，横向按左右方向显示暂停/音量
   ============================================ */
.music-player {
    position: fixed;
    /* left/top/right 由 JS 设置，这里只给初始兜底，避免闪烁 */
    top: 90px;
    left: auto;
    right: 20px;
    z-index: 999;
    user-select: none;
    /* 拖拽时不要 transition，否则会跟手延迟 */
    transition: none;
}

.music-player.dragging {
    transition: none !important;
}

/* 歌曲标题：仅展开时出现，位置相对 wrapper（猫图+控制板）居中，正好在进度栏上方 */
.player-title {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;                          /* 相对 wrapper 居中，不管猫/面板在哪侧 */
    transform: translateX(-50%) translateY(4px);
    font-size: 0.78rem;
    /* 强制纯白不被渐变染 */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    padding: 5px 14px;
    background: rgba(10, 26, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
    background: rgba(10, 26, 46, 0.85) !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
    z-index: 2;
}

/* 展开：标题出现，在整个猫+控制板胶囊正上方中间 */
.music-player.expanded .player-title {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 删除按 side-right/side-left 单独偏移的旧规则（统一用 wrapper 居中） */

/* 主容器：专辑 + 控制面板 - 作为标题定位锚点 */
.player-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 999px;
}

/* 右侧：圆盘在右，控制板从圆盘左边缘向左延伸（朝屏幕中心） */
.music-player.side-right .player-wrapper {
    flex-direction: row-reverse; /* DOM[album,controls] → 视觉[controls, album] */
    justify-content: flex-end;
}

/* 左侧：圆盘在左，控制板从圆盘右边缘向右延伸（朝屏幕中心） */
.music-player.side-left .player-wrapper {
    flex-direction: row;
    justify-content: flex-start;
}

/* 猫图片容器：替代旧的圆形专辑盘，保持原尺寸定位逻辑 */
.player-album.cat-avatar {
    width: 64px;
    height: 64px;
    overflow: visible;        /* 让猫图片自然形状露出，不被圆形裁切 */
    position: relative;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-album.cat-avatar:hover {
    transform: scale(1.08);
}

.player-album.cat-avatar:active {
    transform: scale(0.92);
}

/* 两张猫图片叠放，通过 cat-toggle 类切换显示，形成表情包效果 */
.cat-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    /* 像小猫挂在边上的轻微倾斜 */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.cat-frame-2 {
    display: none;
}

/* 切换到第二帧 */
.player-album.cat-toggle .cat-frame-1 {
    display: none;
}
.player-album.cat-toggle .cat-frame-2 {
    display: block;
}

/* 图片缺失时的兜底占位：保证容器始终有尺寸、可点击、可拖动 */
.player-album.cat-missing {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6a609, #e67e22);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.player-album.cat-missing::after {
    content: '🐱';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 「音乐播放器」标签：纯纯白不灰蒙，小猫图片正下方正中（相对 player-album 父容器定位，永远居中） */
.player-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    font-size: 0.7rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(61, 125, 184, 0.6);
    pointer-events: none;
    user-select: none;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    animation: none !important;
    z-index: 1;
}

/* 左右吸附不再影响标签（标签现在相对小猫容器居中，不再需要基于侧的偏移） */
.music-player .player-label,
.music-player.side-left .player-label,
.music-player.side-right .player-label {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* 控制面板：收缩时隐藏，展开时按方向出现 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(10, 26, 46, 0.92);
    border: 1px solid rgba(52, 152, 219, 0.32);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scaleX(0);
    pointer-events: none;
    transition: opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 48px;
    border-radius: 999px;
}

/* 右侧：展开从圆盘左边缘出现 */
.music-player.side-right .player-controls {
    margin-right: -10px;
    transform-origin: right center;
    padding-right: 18px;
}

/* 左侧：展开从圆盘右边缘出现 */
.music-player.side-left .player-controls {
    margin-left: -10px;
    transform-origin: left center;
    padding-left: 18px;
}

.music-player.expanded .player-controls {
    opacity: 1;
    transform: scaleX(1);
    pointer-events: auto;
}

.player-btn {
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.player-btn:hover {
    color: var(--light-blue);
    background: rgba(52, 152, 219, 0.15);
}

.player-btn:active {
    transform: scale(0.9);
}

.player-btn svg {
    width: 20px;
    height: 20px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-slider {
    width: 72px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    /* 登录页 */
    .login-title {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    .login-form {
        padding: 25px;
        flex-direction: column;
    }

    .date-input-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .date-input {
        width: 65px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* 首页 - 倒计时 */
    .big-day-card {
        padding: 20px 40px;
    }

    .big-day-number {
        font-size: 4rem;
        letter-spacing: 3px;
    }

    /* 双人情头 - 移动端缩小 */
    .avatar {
        width: 70px;
        height: 70px;
    }
    .avatar-right {
        margin-left: -22px;
    }
    .couple-names {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .big-day-word {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    /* 首页 - 当前时间 */
    .clock-section {
        padding: 12px 20px;
    }

    .clock-date {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .clock-time {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .love-word {
        font-size: 1rem;
    }

    .love-word-card {
        padding: 20px 25px;
    }

    /* 相册 */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    /* 3D层叠轮播 - 移动端调整 */
    .carousel {
        height: 240px;
    }
    .carousel-slide.pos-center {
        width: 80%;
    }
    .carousel-slide.pos-left,
    .carousel-slide.pos-right {
        width: 58%;
        height: 75%;
    }
    .carousel-slide.pos-left  { transform: translateX(-62%) scale(0.92); }
    .carousel-slide.pos-right { transform: translateX( 62%) scale(0.92); }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .carousel-btn.prev { left: -6px; }
    .carousel-btn.next { right: -6px; }
    .carousel-dots {
        bottom: -12px;
    }

    .gallery-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    /* 音乐播放器（新结构） */
    .music-player {
        top: 10px;
    }

    .player-album.cat-avatar {
        width: 52px;
        height: 52px;
    }

    .player-controls {
        padding: 8px 12px;
        height: 44px;
        gap: 8px;
    }
    .player-btn {
        width: 30px;
        height: 30px;
    }
    .player-btn svg {
        width: 18px;
        height: 18px;
    }
    .volume-slider {
        width: 56px;
    }
    .player-title {
        font-size: 0.75rem;
        padding: 4px 10px;
        top: -30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .big-day-card {
        padding: 22px 50px;
    }
    .big-day-number {
        font-size: 5rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    /* 平板轮播尺寸 */
    .carousel {
        height: 320px;
    }
}

/* ============================================
   回弹动画基类
   ============================================ */
.bounce-effect {
    transition: transform 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-effect:hover {
    transform: scale(1.05);
}

.bounce-effect:active {
    transform: scale(0.92);
}
