/* ============================================
   🚪 任意门 · 哆啦A梦纪念时间轴
   主题：沉浸式哆啦A梦蓝白红风格
   字体：ZCOOL KuaiLe (标题) + Noto Sans SC (正文)
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    /* 哆啦A梦核心配色 */
    --dora-blue: #06B6D4;
    --dora-blue-dark: #0891B2;
    --dora-blue-deeper: #0E7490;
    --dora-blue-light: #22D3EE;
    --dora-blue-pale: #A5F3FC;
    --dora-white: #FFFFFF;
    --dora-red: #E53935;
    --dora-red-light: #FF6B6B;
    --dora-red-dark: #C62828;
    --dora-gold: #FFD700;
    --dora-gold-light: #FFE082;
    --dora-yellow: #FDD835;
    --dora-bg: #F0F9FF;
    --dora-bg-alt: #E0F7FA;

    /* 辅助色 */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E0E0E0;
    --gray-300: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-700: #424242;
    --gray-900: #212121;

    /* 阴影层级 */
    --shadow-xs: 0 1px 3px rgba(6, 182, 212, 0.12);
    --shadow-sm: 0 2px 8px rgba(6, 182, 212, 0.15);
    --shadow-md: 0 4px 16px rgba(6, 182, 212, 0.2);
    --shadow-lg: 0 8px 32px rgba(6, 182, 212, 0.25);
    --shadow-xl: 0 16px 48px rgba(6, 182, 212, 0.3);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* 时间轴 */
    --timeline-line: #06B6D4;
    --timeline-dot: #06B6D4;

    /* 字体 */
    --font-display: 'ZCOOL KuaiLe', cursive;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

    /* 动画时长 */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--dora-bg);
    min-height: 100vh;
    color: var(--gray-700);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 噪声纹理 overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* 选中高亮 */
::selection {
    background: var(--dora-blue);
    color: var(--dora-white);
}

/* ---- 飘浮装饰元素 ---- */
.floating-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.deco {
    position: absolute;
    font-size: 2rem;
    opacity: 0.12;
    animation: float-deco 12s var(--ease-out) infinite;
    will-change: transform;
}

.deco-bell      { top: 10%; left: 5%; animation-delay: 0s; font-size: 2.4rem; }
.deco-copter    { top: 30%; right: 8%; animation-delay: -3s; font-size: 2.8rem; }
.deco-dorayaki  { top: 55%; left: 3%; animation-delay: -6s; }
.deco-star      { top: 75%; right: 5%; animation-delay: -2s; }
.deco-bell-2    { top: 15%; right: 15%; animation-delay: -8s; font-size: 1.6rem; }
.deco-copter-2  { top: 65%; left: 8%; animation-delay: -5s; font-size: 2rem; }

@keyframes float-deco {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    25%  { transform: translateY(-20px) rotate(5deg) scale(1.05); }
    50%  { transform: translateY(0) rotate(0deg) scale(1); }
    75%  { transform: translateY(15px) rotate(-5deg) scale(0.95); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* ---- 月份导航 ---- */
.month-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240, 249, 255, 0.85);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 2px solid rgba(6, 182, 212, 0.15);
    padding: 10px 0;
    transition: box-shadow 0.3s ease;
}

.month-nav.scrolled {
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.month-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.month-nav-inner::-webkit-scrollbar {
    display: none;
}

.month-nav-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border: 2px solid var(--dora-blue);
    border-radius: 999px;
    background: transparent;
    color: var(--dora-blue-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.month-nav-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-1px);
}

.month-nav-btn.active {
    background: var(--dora-blue);
    color: var(--dora-white);
    border-color: var(--dora-blue);
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.35);
}

/* ---- Hero 区域 ---- */
.hero {
    position: relative;
    z-index: 1;
    padding: 50px 20px 40px;
    text-align: center;
    background: linear-gradient(160deg,
        var(--dora-blue-deeper) 0%,
        var(--dora-blue) 40%,
        var(--dora-blue-light) 100%
    );
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, white 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* 哆啦A梦形象 */
.hero-doraemon {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-dora-img {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.2));
    animation: levitate 3s var(--ease-out) infinite;
    transition: transform 0.3s ease;
}

.hero-dora-img:hover {
    transform: scale(1.08) rotate(-3deg);
}

.hero-dora-shadow {
    width: 80px;
    height: 14px;
    margin: -8px auto 0;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    animation: shadow-pulse 3s var(--ease-out) infinite;
}

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shadow-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    color: var(--dora-white);
    margin-bottom: 8px;
}

.hero-title-line {
    display: block;
    font-size: 3rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 4px;
}

.hero-title-sub {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
    font-family: var(--font-body);
}

.hero-counter {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 10px 0 6px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero-counter strong {
    color: var(--dora-gold-light);
    font-weight: 700;
}

.hero-quote {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 6px;
}

/* Hero 波浪分割 */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

/* ---- 主内容区 ---- */
.main-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- 时间轴 ---- */
.timeline {
    position: relative;
    padding: 40px 0 20px;
}

/* 中央时间轴线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--timeline-line) 60px,
        var(--dora-blue-light) 50%,
        var(--timeline-line) calc(100% - 60px),
        transparent 100%
    );
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* ---- 月份分组标题 ---- */
.month-group-title {
    position: relative;
    margin: 0 auto 30px;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.month-group-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: var(--dora-white);
    border: 2px solid var(--dora-blue);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--dora-blue-dark);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.month-group-label .month-emoji {
    font-size: 1.4rem;
}

/* ---- 时间轴节点 ---- */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* 隐藏月份筛选时不符合条件的条目 */
.timeline-item.filtered-out {
    display: none;
}

/* ---- 时间轴圆点 ---- */
.timeline-dot {
    position: absolute;
    top: 8px;
    width: 22px;
    height: 22px;
    background: var(--timeline-dot);
    border: 4px solid var(--dora-white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--dora-blue-light), var(--shadow-sm);
    z-index: 5;
    transition: all 0.4s var(--ease-spring);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -11px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -11px;
}

.timeline-item.visible .timeline-dot {
    box-shadow: 0 0 0 4px var(--dora-blue-light), 0 0 16px rgba(6, 182, 212, 0.3);
}

/* 特殊节点（纪念日）脉冲 */
.timeline-item.special .timeline-dot {
    width: 28px;
    height: 28px;
    top: 5px;
    background: var(--dora-red);
    box-shadow: 0 0 0 4px var(--dora-red-light), var(--shadow-md);
    animation: pulse-dot 2s var(--ease-out) infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px var(--dora-red-light), var(--shadow-md); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0.3), var(--shadow-md); }
}

/* ---- 日期标签 ---- */
.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    background: linear-gradient(135deg, var(--dora-blue), var(--dora-blue-dark));
    color: var(--dora-white);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 999px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 3;
}

.timeline-item.special .timeline-date {
    background: linear-gradient(135deg, var(--dora-red), var(--dora-red-dark));
}

/* ---- 卡片 ---- */
.timeline-card {
    background: var(--dora-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: all 0.4s var(--ease-out);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

/* 卡片顶部装饰条 */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--dora-blue), var(--dora-blue-light), var(--dora-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item.special .timeline-card::before {
    background: linear-gradient(90deg, var(--dora-red), var(--dora-red-light), var(--dora-red));
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(6, 182, 212, 0.2);
    transform: translateY(-4px);
}

.timeline-item.special .timeline-card:hover {
    border-color: rgba(229, 57, 53, 0.2);
}

/* 卡片小三角（指向时间轴） */
.timeline-card::after {
    content: '';
    position: absolute;
    top: 14px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-card::after {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--dora-white);
}

.timeline-item:nth-child(even) .timeline-card::after {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--dora-white) transparent transparent;
}

/* ---- 卡片标题 ---- */
.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dora-blue-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.timeline-item.special .timeline-title {
    color: var(--dora-red);
}

/* ---- 卡片文字 ---- */
.timeline-text {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 16px;
    white-space: pre-line;
}

/* ---- 图片网格 ---- */
.timeline-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--dora-bg);
    cursor: pointer;
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dora-bg) 0%, var(--dora-bg-alt) 100%);
    border-radius: var(--radius-sm);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.image-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.placeholder-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--dora-blue-pale);
    border-top-color: var(--dora-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.timeline-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
}

.timeline-image.loaded {
    opacity: 1;
}

.timeline-image:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-sm);
}

/* 单张图片更大 */
.image-wrapper:only-child {
    max-width: 200px;
    aspect-ratio: auto;
    height: 160px;
}

.image-wrapper:only-child .timeline-image {
    object-fit: cover;
}

/* ---- 回到顶部按钮 ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 90;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--dora-white);
    box-shadow: var(--shadow-md);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-spring);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-lg);
    background: var(--dora-blue);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 50px 20px 40px;
    background: linear-gradient(180deg, var(--dora-bg) 0%, var(--dora-blue) 100%);
    margin-top: 60px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.footer-inner {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.footer-characters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-chara {
    font-size: 2.2rem;
    display: inline-block;
    animation: footer-bounce 2s var(--ease-out) infinite;
}

.footer-chara:nth-child(2) { animation-delay: -0.7s; }
.footer-chara:nth-child(3) { animation-delay: -1.4s; }

@keyframes footer-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.footer-text {
    color: var(--dora-white);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.heart {
    display: inline-block;
    animation: heartbeat 1.5s var(--ease-out) infinite;
    color: var(--dora-red);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.footer-small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-style: italic;
}

/* ---- 灯箱 ---- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.4s var(--ease-out);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.8rem;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    width: 54px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    opacity: 0.6;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1 !important;
}

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

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 500;
}

/* ---- 空状态 ---- */
.timeline-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
}

.timeline-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

.timeline-empty-text {
    font-size: 1.05rem;
}

/* ---- 滚动条美化 ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dora-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--dora-blue), var(--dora-blue-light));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dora-blue-dark);
}

/* ============================================
   Responsive - 移动端适配
   ============================================ */

@media (max-width: 768px) {
    /* 时间轴改为左侧布局 */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 52px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-card::after,
    .timeline-item:nth-child(even) .timeline-card::after {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--dora-white) transparent transparent;
    }

    /* 月份导航横向滚动 */
    .month-nav-inner {
        gap: 6px;
    }

    .month-nav-btn {
        padding: 6px 16px;
        font-size: 0.82rem;
    }

    /* Hero 调整 */
    .hero {
        padding: 36px 16px 30px;
    }

    .hero-title-line {
        font-size: 2rem;
    }

    .hero-dora-img {
        width: 100px;
    }

    .hero-wave svg {
        height: 30px;
    }

    /* 卡片调整 */
    .timeline-card {
        padding: 18px;
    }

    .timeline-title {
        font-size: 1.05rem;
    }

    .timeline-text {
        font-size: 0.9rem;
    }

    /* 图片网格 2列 */
    .timeline-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-wrapper:only-child {
        max-width: 100%;
        height: 180px;
    }

    /* 灯箱按钮变小 */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 60px;
        font-size: 2rem;
    }

    .lightbox-prev  { left: 6px; }
    .lightbox-next  { right: 6px; }

    /* 回到顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    /* 飘浮装饰隐藏部分 */
    .deco-bell-2,
    .deco-copter-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title-line {
        font-size: 1.6rem;
    }

    .hero-title-sub {
        font-size: 1rem;
    }

    .hero-dora-img {
        width: 80px;
    }

    .timeline-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .month-nav-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    .timeline-date {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

/* 减小动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
