/* ============================================================
   咕噜 薯饼的喵星球 — 主样式表
   配色：温暖奶油 + 橙色点缀
   ============================================================ */

/* --- CSS 变量 --- */
:root {
    --bg: #FFF8F0;
    --bg-warm: #FFF0E0;
    --accent: #FF8C42;
    --accent-dark: #E0702A;
    --accent-light: #FFB380;
    --text: #4A3728;
    --text-light: #8B7355;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.10);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
    --max-width: 1100px;
    --nav-height: 64px;
}

/* --- 基础重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
                 "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 区块标题 --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-light);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 140, 66, 0.1);
    transform: translateY(-2px);
}

.nav-sep {
    color: var(--accent-light);
    font-size: 0.9rem;
    opacity: 0.5;
    user-select: none;
    display: flex;
    align-items: center;
}

/* 导航栏猫爪装饰 */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 10%, transparent 12%,
        var(--accent) 25%, transparent 27%,
        var(--accent) 40%, transparent 42%,
        var(--accent) 55%, transparent 57%,
        var(--accent) 70%, transparent 72%,
        var(--accent) 85%, transparent 87%,
        transparent 100%
    );
    opacity: 0.7;
    animation: pawWalk 3s linear infinite;
}

@keyframes pawWalk {
    0% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ============================================================
   Hero 首页大图区
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #FFE0B2 0%, #FFCC80 25%, #F8BBD0 50%, #FFE0B2 75%, #FFAB91 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    overflow: hidden;
}

@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 浮动装饰 */
.hero::before {
    content: '🐟 🐾 🧶 🐱 🐟 🐾 🧶 🐱 🐟 🐾 🧶 🐱 🐟 🐾 🧶 🐱 🐟 🐾';
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 3;
    animation: floatDecorations 40s linear infinite;
    pointer-events: none;
}

@keyframes floatDecorations {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(5deg); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    animation: bounce 2s ease infinite;
}

.hero-avatar {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-avatar:hover {
    transform: scale(1.08);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 两头像之间的小爱心 */
.hero-avatars-heart {
    font-size: 1.8rem;
    animation: heartPulse 1.2s ease infinite;
    z-index: 3;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(1); }
    70% { transform: scale(1.2); }
}

/* 头像闪光装饰 */
.avatar-sparkle {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    animation: sparkleFloat 2s ease infinite;
    z-index: 2;
}

.avatar-sparkle--tl { top: -4px;  left: -2px;  animation-delay: 0s; }
.avatar-sparkle--tr { top: -4px;  right: -2px;  animation-delay: 0.6s; }
.avatar-sparkle--bl { bottom: -2px; left: -2px;  animation-delay: 1.2s; }
.avatar-sparkle--br { bottom: -2px; right: -2px; animation-delay: 1.8s; }

@keyframes sparkleFloat {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

/* 浮动装饰 */
.hero-float {
    position: absolute;
    font-size: 2rem;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    animation: floatAround 8s ease-in-out infinite;
}

.hero-float--1 { top: 15%; left: 10%; animation-delay: 0s; font-size: 2.5rem; }
.hero-float--2 { top: 20%; right: 12%; animation-delay: 1.2s; font-size: 2rem; }
.hero-float--3 { top: 50%; left: 8%; animation-delay: 2.4s; font-size: 2.2rem; }
.hero-float--4 { top: 55%; right: 10%; animation-delay: 3.6s; font-size: 1.8rem; }
.hero-float--5 { top: 30%; left: 50%; animation-delay: 4.8s; font-size: 2rem; }
.hero-float--6 { top: 70%; left: 15%; animation-delay: 6s; font-size: 2.3rem; }
.hero-float--7 { top: 12%; right: 25%; animation-delay: 7.2s; font-size: 1.9rem; }
.hero-float--8 { top: 75%; right: 18%; animation-delay: 3s; font-size: 2.1rem; }

@keyframes floatAround {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-20px) translateX(15px) rotate(10deg); }
    50% { transform: translateY(-10px) translateX(-10px) rotate(-5deg); }
    75% { transform: translateY(-25px) translateX(-15px) rotate(8deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(255,255,255,0.6);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
}

.hero-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

/* 向下滚动提示 */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.scroll-arrow {
    animation: scrollBounce 1.5s ease infinite;
    font-size: 1.2rem;
    margin-top: 4px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ============================================================
   关于猫咪
   ============================================================ */
.about {
    background: var(--white);
}

/* 猫咪分组 */
.about-cat {
    margin-bottom: 48px;
}

.about-cat:last-child {
    margin-bottom: 0;
}

.about-cat-header {
    margin-bottom: 20px;
}

.about-cat-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-head-avatar {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    border: 2px solid var(--accent-light);
    flex-shrink: 0;
}

.gender-icon {
    font-size: 1rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gender-girl {
    background: #FDE2E7;
    color: #D4687C;
}

.gender-boy {
    background: #D6EAF8;
    color: #4A90C4;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-card {
    background: var(--bg);
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.about-card--wide {
    grid-column: span 1;
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-card h3 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.about-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* 故事区 */
.about-story {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF0E0, #FFE8D0);
    padding: 36px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.about-story h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.about-story p {
    color: var(--text-light);
    margin-bottom: 12px;
    text-indent: 2em;
}

/* ============================================================
   相册 — 轮播图
   ============================================================ */
.gallery {
    position: relative;
    overflow: hidden;
}

/* 相册背景装饰 */
.gallery::before {
    content: '🐾';
    position: absolute;
    top: 30px;
    left: 5%;
    font-size: 3rem;
    opacity: 0.1;
    transform: rotate(-20deg);
    pointer-events: none;
    animation: pawFloat 4s ease-in-out infinite;
}

.gallery::after {
    content: '🐾';
    position: absolute;
    bottom: 60px;
    right: 5%;
    font-size: 2.5rem;
    opacity: 0.1;
    transform: rotate(15deg);
    pointer-events: none;
    animation: pawFloat 4s ease-in-out 2s infinite;
}

@keyframes pawFloat {
    0%, 100% { transform: rotate(-20deg) translateY(0); }
    50% { transform: rotate(-20deg) translateY(-15px); }
}

/* 相册浮动小装饰 */
.gallery-decor {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    font-size: 1.8rem;
    opacity: 0.18;
    animation: decorDrift 7s ease-in-out infinite;
}

.gallery-decor--1 { top: 15%; left: 3%; animation-delay: 0s; font-size: 2.2rem; }
.gallery-decor--2 { top: 25%; right: 4%; animation-delay: 1.5s; font-size: 1.6rem; }
.gallery-decor--3 { bottom: 20%; left: 5%; animation-delay: 3s; font-size: 2rem; }
.gallery-decor--4 { bottom: 30%; right: 3%; animation-delay: 4.5s; font-size: 1.8rem; }

@keyframes decorDrift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(10deg); }
    66% { transform: translateY(6px) rotate(-8deg); }
}

/* 猫咪走过挂件 */
.cat-walk {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 32px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.22;
}

.cat-walk__paw {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0;
    animation: catStep 6s ease-in-out infinite;
}

.cat-walk__paw--1 { left: 10%;  animation-delay: 0s; }
.cat-walk__paw--2 { left: 24%;  animation-delay: 0.8s; }
.cat-walk__paw--3 { left: 38%;  animation-delay: 1.6s; }
.cat-walk__paw--4 { left: 52%;  animation-delay: 2.4s; }
.cat-walk__paw--5 { left: 66%;  animation-delay: 3.2s; }

.cat-walk__cat {
    left: 78%;
    font-size: 1.8rem;
    animation: catStep 6s ease-in-out 4s infinite;
}

@keyframes catStep {
    0%, 100% { opacity: 0; transform: translateY(0); }
    10% { opacity: 1; transform: translateY(-4px); }
    25% { opacity: 0; transform: translateY(0); }
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

/* 轮播四角装饰 */
.carousel::before,
.carousel::after {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    font-size: 1.6rem;
    opacity: 0.3;
    animation: cornerBounce 3s ease-in-out infinite;
}

.carousel::before {
    content: '🧶';
    top: -8px;
    left: 8px;
    animation-delay: 0s;
}

.carousel::after {
    content: '🐟';
    bottom: 44px;
    right: 8px;
    animation-delay: 1.5s;
}

@keyframes cornerBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 4px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
    aspect-ratio: 4 / 3;
    background: var(--bg);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--card-shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    color: var(--accent);
}

.carousel-btn--prev { left: -8px; }
.carousel-btn--next { right: -8px; }

/* 圆点指示器 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-light);
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 6px;
}

.diary-photo {
    width: 100%;
    max-width: 360px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
}

/* 占位卡片（保留备用） */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gallery-placeholder span {
    font-size: 4rem;
}

.gallery-placeholder small {
    font-size: 1rem;
    color: rgba(0,0,0,0.45);
    font-weight: 500;
}

/* ============================================================
   猫咪日记
   ============================================================ */
.diary {
    background: var(--white);
}

.diary-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.diary-card {
    background: var(--bg);
    padding: 36px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.diary-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.diary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 40px;
    background: var(--accent);
    border-radius: 0 0 4px 0;
}

.diary-date {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.diary-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text);
}

.diary-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.diary-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
    text-indent: 2em;
}

.diary-photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.diary-photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFE0B2, #FFCC80);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.4);
    text-align: center;
    padding: 12px;
}

/* 日记视频 */
.diary-video {
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.diary-video video {
    width: 100%;
    display: block;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 768px) {
    .diary-video video {
        max-height: 300px;
    }
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 6px;
}

.footer-joke {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-icp {
    margin-top: 8px;
    font-size: 0.75rem;
}

.footer-icp a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-icp a:hover {
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   图片灯箱
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius);
    overflow: hidden;
    animation: zoomIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* 保留占位卡片灯箱样式 */
.lightbox-content .gallery-placeholder {
    width: 500px;
    height: 380px;
}

.lightbox-content .gallery-placeholder span {
    font-size: 8rem;
}

.lightbox-content .gallery-placeholder small {
    font-size: 1.5rem;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 500px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 36px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent-light);
    transform: rotate(90deg);
}

/* ============================================================
   回到顶部按钮
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.4);
}

/* ============================================================
   动画
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   响应式设计
   ============================================================ */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* 导航 */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 248, 240, 0.98);
        backdrop-filter: blur(10px);
        padding: 16px 24px;
        gap: 4px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-sep {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-avatars {
        gap: 16px;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .hero-avatars-heart {
        font-size: 1.3rem;
    }

    .avatar-sparkle {
        font-size: 0.9rem;
    }

    .hero-float {
        font-size: 1.4rem !important;
    }

    /* 关于 */
    .about-cat-header h3 {
        font-size: 1.3rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .about-card {
        padding: 20px 14px;
    }

    .about-card p {
        font-size: 0.95rem;
    }

    .about-story {
        padding: 24px;
    }

    /* 相册 */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* 日记 */
    .diary-card {
        padding: 24px;
    }

    .diary-title {
        font-size: 1.2rem;
    }

    /* 灯箱 */
    .lightbox-content .gallery-placeholder {
        width: 85vw;
        height: 260px;
    }

    .lightbox-content .gallery-placeholder span {
        font-size: 5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-icon {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-placeholder span {
        font-size: 3rem;
    }
}
