/* ===================== 全局样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f8c8d4;
    --primary-dark: #e8a5b5;
    --accent: #d89cab;
    --cream: #fff8f5;
    --warm-white: #fefcfa;
    --gray-light: #f5f0ed;
    --text-main: #3d3a38;
    --text-sub: #7a726e;
    --text-light: #a8a09c;
    --shadow-sm: 0 2px 8px rgba(216, 156, 171, 0.08);
    --shadow-md: 0 8px 24px rgba(216, 156, 171, 0.12);
    --shadow-lg: 0 16px 48px rgba(216, 156, 171, 0.18);
    --gradient-pink: linear-gradient(135deg, #fff5f7 0%, #fce4ec 50%, #f8d7e0 100%);
    --gradient-warm: linear-gradient(180deg, #fefcfa 0%, #fff8f5 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--warm-white);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

/* ===================== 导航栏 ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(254, 252, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(254, 252, 250, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.paw-icon {
    font-size: 1.4rem;
    animation: pawWave 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pawWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-sub);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===================== 通用板块标题 ===================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.section-sub {
    color: var(--text-sub);
    font-size: 1rem;
}

/* ===================== 英雄区 ===================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-pink);
    opacity: 0.6;
    z-index: -2;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-bg::before {
    width: 400px;
    height: 400px;
    background: #f8c8d4;
    top: 10%;
    right: -100px;
    animation: floatBlob 8s ease-in-out infinite;
}

.hero-bg::after {
    width: 350px;
    height: 350px;
    background: #e0d0f0;
    bottom: 10%;
    left: -80px;
    animation: floatBlob 10s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, transparent 0%, rgba(255,248,245,0.3) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3d3a38 0%, #d89cab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-sub);
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(232, 165, 181, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(232, 165, 181, 0.45);
}

.btn-secondary {
    background: white;
    color: var(--accent);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hero-img-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    display: block;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.hero-img:hover {
    transform: scale(1.02) rotate(1deg);
}

.hero-img-frame::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: var(--gradient-pink);
    border-radius: 40px;
    z-index: 1;
    transform: rotate(3deg);
    opacity: 0.7;
}

.floating-paws .paw {
    position: absolute;
    font-size: 2rem;
    animation: floatPaw 4s ease-in-out infinite;
    z-index: 3;
}

.paw-1 { top: -10px; left: -10px; animation-delay: 0s; }
.paw-2 { bottom: 20px; right: -20px; animation-delay: 1.3s; font-size: 1.5rem !important; }
.paw-3 { top: 40%; right: -30px; animation-delay: 2.6s; font-size: 1.2rem !important; }

@keyframes floatPaw {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-12px) rotate(10deg); opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-light);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.scroll-indicator p {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* ===================== 通用板块 Padding ===================== */
.about,
.gallery,
.stats,
.diary {
    padding: 100px 0;
}

/* ===================== 关于板块 ===================== */
.about {
    background: var(--gradient-warm);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}

.about-img-bg {
    position: absolute;
    inset: -20px;
    background: var(--gradient-pink);
    border-radius: 40px;
    transform: rotate(-4deg);
    opacity: 0.6;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: rotate(2deg) scale(1.02);
}

.about-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.about-desc {
    font-size: 1.02rem;
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 32px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(248, 200, 212, 0.2);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-pink);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.info-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}

.personality h4 {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--text-main);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 16px;
    background: var(--gradient-pink);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #a86b7c;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: var(--primary);
    color: white;
}

/* ===================== 照片墙 ===================== */
.gallery {
    background: white;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 22px;
    border: 2px solid var(--gray-light);
    background: white;
    border-radius: 50px;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
}

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

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

.gallery-img-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(61, 58, 56, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-overlay p {
    color: white;
    font-weight: 500;
    transform: translateY(10px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* ===================== 趣味数据 ===================== */
.stats {
    background: var(--gradient-warm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.stat-card {
    background: white;
    padding: 36px 24px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(248, 200, 212, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-emoji {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    font-family: 'Noto Serif SC', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    display: inline-block;
}

.stat-unit {
    display: inline-block;
    font-size: 0.95rem;
    color: var(--text-sub);
    margin-left: 4px;
    margin-top: 8px;
}

.stat-label {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-sub);
    font-weight: 500;
}

.favorites {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.fav-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    margin-bottom: 28px;
    text-align: center;
}

.fav-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fav-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--cream);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.fav-item:hover {
    background: #fff0f3;
    transform: translateX(4px);
}

.fav-rank {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    width: 36px;
}

.fav-name {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.fav-bar {
    height: 8px;
    background: #f0e6e3;
    border-radius: 4px;
    overflow: hidden;
}

.fav-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.fav-emoji {
    font-size: 1.8rem;
}

/* ===================== 日常日记 ===================== */
.diary {
    background: white;
}

.diary-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, #fff0f3 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--primary-dark);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 2;
}

.diary-item {
    position: relative;
    width: 50%;
    padding: 0 32px 48px;
}

.diary-item:nth-child(odd) {
    left: 0;
    padding-right: 56px;
}

.diary-item:nth-child(even) {
    left: 50%;
    padding-left: 56px;
}

.diary-card {
    background: var(--cream);
    padding: 24px 28px;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(248, 200, 212, 0.2);
}

.diary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: white;
}

.diary-item:nth-child(odd) .diary-card {
    text-align: right;
}

.diary-date {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.diary-item:nth-child(odd) .diary-date {
    justify-content: flex-end;
}

.diary-day {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

.diary-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.diary-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
    font-family: 'Noto Serif SC', serif;
}

.diary-content {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ===================== 页脚 ===================== */
.footer {
    background: var(--gradient-pink);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '🐾 🐾 🐾';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    opacity: 0.04;
    letter-spacing: 40px;
    pointer-events: none;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    color: var(--text-main);
}

.footer-logo .paw-icon {
    font-size: 1.8rem;
}

.footer-quote {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 24px;
    font-style: italic;
}

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

.social-item {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-item:hover {
    transform: translateY(-4px) scale(1.1);
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.footer-copy {
    color: var(--text-sub);
    font-size: 0.85rem;
}

.back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===================== 灯箱 ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px;
}

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

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    opacity: 0.8;
}

/* ===================== 滚动显示动画 ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-delay {
    transition-delay: 0.2s;
}

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

/* ===================== 响应式 ===================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-name {
        font-size: 4rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-wrap {
        max-width: 420px;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6) { grid-column: span 2; }
    .gallery-item:nth-child(4) { grid-row: span 1; }

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

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(254, 252, 250, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about, .gallery, .stats, .diary {
        padding: 64px 0;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 12px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-emoji { font-size: 2.2rem; }
    .stat-number { font-size: 2.2rem; }

    .favorites {
        padding: 24px 18px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .diary-item,
    .diary-item:nth-child(odd),
    .diary-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding: 0 0 36px 56px;
    }

    .diary-item:nth-child(odd) .diary-card {
        text-align: left;
    }

    .diary-item:nth-child(odd) .diary-date {
        justify-content: flex-start;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .back-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

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

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .fav-item {
        grid-template-columns: auto 1fr;
        gap: 12px;
    }

    .fav-emoji {
        grid-column: 1 / -1;
        text-align: center;
    }
}
