:root {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --primary-light: #c4b5fd;
    --accent: #f472b6;
    --accent-light: #f9a8d4;
    --bg: #0f0f1a;
    --bg-light: #1a1a2e;
    --bg-lighter: #252540;
    --text: #f0f0f5;
    --text-muted: #9898b0;
    --border: #2d2d4a;
    --success: #34d399;
    --danger: #ef4444;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg: #f8f8fc;
    --bg-light: #ffffff;
    --bg-lighter: #f0f0f7;
    --text: #1a1a2e;
    --text-muted: #6b6b80;
    --border: #e0e0ea;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    transition: background 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(167, 139, 250, 0.3);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--accent));
}

a, button, .gallery-item, .video-card, .timeline-card, .diary-card, input, textarea, select {
    cursor: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content { text-align: center; }

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    opacity: 0.6;
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
    background: rgba(244, 114, 182, 0.1);
}

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(15, 15, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

body.light-theme .navbar {
    background: rgba(248, 248, 252, 0.8);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s;
}

.logo:hover { opacity: 0.8; }

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    border-color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 24px 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 20s infinite ease-in-out;
}

.shape-1 { width: 400px; height: 400px; background: var(--primary); top: 10%; left: 10%; }
.shape-2 { width: 300px; height: 300px; background: var(--accent); top: 60%; right: 10%; animation-delay: -5s; }
.shape-3 { width: 250px; height: 250px; background: var(--primary-light); bottom: 10%; left: 30%; animation-delay: -10s; }
.shape-4 { width: 200px; height: 200px; background: var(--accent-light); top: 20%; right: 25%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-light), var(--accent-light), var(--primary));
    animation: rotate 4s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

.avatar-inner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg);
}

.avatar-emoji { font-size: 3rem; }

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-clock {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.clock-time {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.clock-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
    min-height: 2em;
}

.hero-title::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-num {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.5);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary-light);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.btn-full { width: 100%; }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
}

.title-icon { margin-right: 8px; }

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 14px auto 0;
    border-radius: 2px;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

.moments { background: var(--bg-light); }

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 40px;
}

.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-dot {
    position: absolute;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary);
    z-index: 1;
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
}

.timeline-item:nth-child(odd) .timeline-dot { right: -8px; }
.timeline-item:nth-child(even) .timeline-dot { left: -8px; }

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.timeline-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(167, 139, 250, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-tag.travel { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.timeline-tag.tech { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.timeline-tag.game { background: rgba(244, 114, 182, 0.15); color: var(--accent-light); }

.timeline-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }

.timeline-images {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mini-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.mini-img:hover { transform: scale(1.1) rotate(3deg); }

.timeline-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img { transform: scale(1.1); }

.gallery-emoji {
    font-size: 4rem;
    transition: var(--transition);
}

.gallery-item:hover .gallery-emoji { transform: scale(1.2); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay h4 { font-size: 1.1rem; margin-bottom: 4px; color: #fff; }
.gallery-overlay p { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.card-actions {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}

.card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateX(30px);
}

.gallery-item:hover .card-actions,
.video-card:hover .card-actions,
.diary-card:hover .card-actions,
.timeline-card:hover .card-actions {
    pointer-events: auto;
}

.gallery-item:hover .card-action-btn:nth-child(2),
.video-card:hover .card-action-btn:nth-child(2),
.diary-card:hover .card-action-btn:nth-child(2),
.timeline-card:hover .card-action-btn:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s;
}

.gallery-item:hover .card-action-btn:nth-child(1),
.video-card:hover .card-action-btn:nth-child(1),
.diary-card:hover .card-action-btn:nth-child(1),
.timeline-card:hover .card-action-btn:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.card-action-btn:hover {
    transform: scale(1.15) !important;
    background: var(--primary);
}

.card-action-btn.delete:hover {
    background: var(--danger);
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

.confirm-box {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal.active .confirm-box {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.confirm-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.confirm-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.videos { background: var(--bg-light); }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.video-card:hover .video-thumb::after {
    background: rgba(0,0,0,0.15);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    padding-left: 4px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.video-card:hover .play-btn {
    transform: scale(1.15);
    background: #fff;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.75);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    z-index: 1;
}

.video-info { padding: 16px 20px; }
.video-info h4 { font-size: 1rem; margin-bottom: 4px; }
.video-info p { font-size: 0.85rem; color: var(--text-muted); }

.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.diary-card {
    display: flex;
    gap: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
}

.diary-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.diary-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding-right: 20px;
    border-right: 1px solid var(--border);
}

.diary-day {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.diary-month {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.diary-content { flex: 1; }

.diary-mood {
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.diary-content h3 { font-size: 1.15rem; margin-bottom: 10px; }
.diary-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; }

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    border-color: var(--primary);
    transform: scale(1.1);
}

.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px) rotate(8deg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group textarea { resize: vertical; min-height: 120px; }

.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
}

.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-sub { font-size: 0.8rem !important; margin-top: 6px; opacity: 0.7; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(167, 139, 250, 0.5); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10004;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    position: relative;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-emoji {
    font-size: 8rem;
    display: block;
    margin-bottom: 20px;
}

.lightbox-emoji img {
    border-radius: 12px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.5);
    display: block;
    will-change: left, top, width, height;
}

.lightbox-emoji video {
    border-radius: 12px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.5);
    display: block;
    background: #000;
    max-width: 85vw;
    max-height: 70vh;
}

.lightbox-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.lightbox-content p {
    color: rgba(255,255,255,0.6);
    opacity: 0;
    transition: opacity 0.3s ease 0.25s;
}

.lightbox.active .lightbox-content h3,
.lightbox.active .lightbox-content p {
    opacity: 1;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-light);
    z-index: 1;
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h3 { font-size: 1.2rem; }

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-lighter);
    color: var(--text);
    transform: rotate(90deg);
}

.modal-body { padding: 24px; }

.modal-body .form-group { margin-bottom: 16px; }

.modal-body label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.modal-body input,
.modal-body textarea,
.modal-body select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.modal-body textarea { resize: vertical; min-height: 80px; }

.modal-body input[type="file"] {
    padding: 10px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 100%;
}

.modal-body input[type="file"]:hover {
    border-color: var(--primary);
}

.image-preview {
    margin-top: 10px;
    max-height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: none;
}

.image-preview.active { display: block; }

.image-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    background: var(--bg-light);
    border-radius: 0 0 var(--radius) var(--radius);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-line { left: 20px; }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    a, button, .gallery-item, .video-card, .timeline-card, .diary-card, input, textarea, select { cursor: pointer; }
    .cursor-dot, .cursor-ring { display: none; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg);
        flex-direction: column;
        padding: 40px 24px;
        gap: 20px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    section { padding: 70px 0; }

    .hero-meta { gap: 16px; }
    .meta-divider { display: none; }

    .diary-card { flex-direction: column; }

    .diary-date {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 12px;
        gap: 8px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn { width: 100%; max-width: 260px; }
    .modal-footer .btn { width: auto; max-width: none; }

    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
