/* ========================================
   我的生活角落 - 主题样式
   莫兰迪色系 + 温馨手账风格
   ======================================== */

/* CSS 变量 - 浅色模式 */
:root {
    --bg-primary: #FBF7F0;
    --bg-secondary: #F5EFE6;
    --bg-card: #FFFCF7;
    --bg-card-alt: #FDF8F0;

    --text-primary: #4A4A4A;
    --text-secondary: #6B6B6B;
    --text-muted: #9B9B9B;

    --accent-green: #A8D5BA;
    --accent-green-dark: #7CB89A;
    --accent-terracotta: #E8A87C;
    --accent-terracotta-dark: #D4885A;
    --accent-yellow: #F4D35E;
    --accent-pink: #F4B6C2;
    --accent-blue: #B8C9E5;
    --accent-purple: #C5B8E8;

    --border-color: #E8DFD4;
    --border-light: #F0EAE0;

    --shadow-sm: 0 2px 8px rgba(180, 160, 130, 0.1);
    --shadow-md: 0 4px 16px rgba(180, 160, 130, 0.15);
    --shadow-lg: 0 8px 24px rgba(180, 160, 130, 0.18);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-serif: 'Songti SC', 'SimSun', 'STSong', 'FangSong', 'KaiTi', Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Source Han Sans CN', 'Segoe UI', sans-serif;
    --font-hand: 'KaiTi', 'STKaiti', 'Kaiti SC', '楷体', 'Ma Shan Zheng', cursive;
}

/* 深色模式 */
body.dark-mode {
    --bg-primary: #2D2D2D;
    --bg-secondary: #363636;
    --bg-card: #3A3A3A;
    --bg-card-alt: #404040;

    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;

    --border-color: #4A4A4A;
    --border-light: #404040;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(168, 213, 186, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(232, 168, 124, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

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

/* 点击特效 */
#click-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.click-effect {
    position: absolute;
    font-size: 20px;
    animation: floatUp 1s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.5);
    }
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(251, 247, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

body.dark-mode .navbar {
    background: rgba(45, 45, 45, 0.85);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-light);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-green-dark);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   通用区块
   ======================================== */
.section {
    padding: 100px 0 60px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 15px;
    font-family: var(--font-hand);
    font-size: 18px;
}

/* 淡入动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   关于我
   ======================================== */
.about-section {
    padding-top: 140px;
}

.about-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.about-wrapper::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 213, 186, 0.2), transparent 70%);
    border-radius: 50%;
}

.about-left {
    flex-shrink: 0;
}

.avatar-frame {
    position: relative;
    width: 180px;
    height: 180px;
}

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-terracotta));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-card);
    position: relative;
    z-index: 2;
}

.avatar-emoji {
    font-size: 72px;
}

.avatar-decoration {
    position: absolute;
    font-size: 24px;
    color: var(--accent-terracotta);
    animation: float 3s ease-in-out infinite;
}

.deco-1 {
    top: 5px;
    right: 10px;
    color: var(--accent-pink);
    animation-delay: 0s;
}

.deco-2 {
    bottom: 20px;
    left: -5px;
    color: var(--accent-green-dark);
    animation-delay: 1s;
}

.deco-3 {
    top: 40px;
    left: -10px;
    color: var(--accent-yellow);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.about-right {
    flex: 1;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-subtitle {
    color: var(--accent-terracotta-dark);
    font-family: var(--font-hand);
    font-size: 20px;
    margin-bottom: 16px;
}

.about-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: default;
}

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

.icon-emoji {
    font-size: 22px;
}

.icon-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 信息卡片行 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.card-date {
    font-size: 13px;
    color: var(--text-muted);
}

.weather-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.weather-icon-big {
    font-size: 48px;
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.weather-condition {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 14px;
}

.weather-city {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.weather-humidity {
    font-size: 12px;
    color: var(--accent-green-dark);
    margin-top: 8px;
}

.weather-loading {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.lunar-content {
    text-align: center;
}

.lunar-date {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lunar-ganzhi {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.lunar-yiji {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 14px;
}

.lunar-yiji .yi {
    color: var(--accent-green-dark);
}

.lunar-yiji .ji {
    color: var(--accent-terracotta-dark);
}

.daily-quote {
    font-family: var(--font-hand);
    font-size: 17px;
    color: var(--accent-terracotta-dark);
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

/* ========================================
   生活碎片
   ======================================== */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
}

.moment-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.4s ease;
}

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

.moment-card:nth-child(3n+1) {
    grid-row: span 2;
    grid-auto-rows: 300px;
}

.moment-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moment-emoji {
    font-size: 64px;
    transition: transform 0.4s ease;
}

.moment-card:hover .moment-emoji {
    transform: scale(1.2);
}

.moment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 36px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: white;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.moment-card:hover .moment-overlay {
    opacity: 1;
    transform: translateY(0);
}

.moment-date,
.moment-place {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.moment-caption {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    font-family: var(--font-hand);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   我的小爱好
   ======================================== */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.hobby-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

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

.hobby-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hobby-emoji {
    font-size: 28px;
}

.hobby-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.hobby-percent {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1.5s ease;
    width: 0;
}

.hobby-card.visible .progress-fill {
    width: var(--progress);
}

.hobby-desc {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-hand);
    font-size: 15px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.tag {
    padding: 8px 18px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 14px;
    cursor: default;
    transition: all 0.3s ease;
    font-family: var(--font-hand);
}

.tag:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

.tag-lg {
    font-size: 18px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(168, 213, 186, 0.3), rgba(232, 168, 124, 0.3));
}

.tag-md {
    font-size: 16px;
    background: rgba(244, 211, 94, 0.25);
}

/* ========================================
   时间轴
   ======================================== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-green), var(--accent-terracotta));
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--bg-card);
    border: 3px solid var(--accent-green-dark);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--accent-green);
}

.timeline-content {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    transform: rotate(45deg);
    border-left: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-size: 13px;
    color: var(--accent-terracotta-dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-family: var(--font-hand);
    font-size: 15px;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   心情板
   ======================================== */
.mood-selector {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 32px;
    text-align: center;
}

.mood-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
}

.mood-btn:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: var(--mood-color);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--mood-color) 40%, transparent);
    background: color-mix(in srgb, var(--mood-color) 15%, var(--bg-secondary));
}

.mood-btn:active {
    transform: translateY(-2px) scale(1);
}

.mood-btn.selected {
    border-color: var(--mood-color);
    background: color-mix(in srgb, var(--mood-color) 25%, var(--bg-secondary));
}

.mood-emoji {
    font-size: 36px;
    transition: transform 0.3s ease;
}

.mood-btn:hover .mood-emoji {
    transform: scale(1.2);
}

.mood-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-hand);
    font-size: 16px;
}

.mood-submit-hint {
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-hand);
    font-size: 17px;
    min-height: 24px;
}

.mood-submit-hint.success {
    color: var(--accent-green-dark);
}

/* 心情统计 */
.mood-stats {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-total {
    font-size: 13px;
    color: var(--text-muted);
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-bar-label .emoji {
    font-size: 18px;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
}

.stat-bar-count {
    min-width: 40px;
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
}

/* 心情气泡墙 */
.mood-wall {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wall-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.wall-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.mood-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.mood-bubbles::-webkit-scrollbar {
    width: 6px;
}

.mood-bubbles::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.mood-bubbles::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.mood-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 30px;
    background: var(--bubble-bg);
    color: var(--text-primary);
    font-size: 13px;
    position: relative;
    animation: bubblePop 0.4s ease-out;
    cursor: default;
    transition: all 0.3s ease;
}

.mood-bubble:hover {
    transform: scale(1.05);
}

.mood-bubble .bubble-emoji {
    font-size: 20px;
}

.mood-bubble .bubble-time {
    font-size: 11px;
    opacity: 0;
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.mood-bubble:hover .bubble-time {
    opacity: 0.9;
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.mood-loading {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
}

.mood-empty {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-size: 14px;
    font-family: var(--font-hand);
    font-size: 18px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    padding: 32px;
    border-top: 1px dashed var(--border-color);
}

.footer-quote {
    font-family: var(--font-hand);
    font-size: 22px;
    color: var(--accent-terracotta-dark);
    margin-bottom: 16px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   回到顶部
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--accent-green);
    color: white;
    transform: translateY(-4px);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 70px 0 40px;
    }

    .section-title {
        font-size: 26px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .about-section {
        padding-top: 110px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 32px 24px;
    }

    .about-icons {
        justify-content: center;
    }

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

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

    .moment-emoji {
        font-size: 48px;
    }

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

    .mood-selector {
        padding: 24px 16px;
    }

    .mood-options {
        gap: 10px;
    }

    .mood-btn {
        padding: 12px 16px;
        min-width: 70px;
    }

    .mood-emoji {
        font-size: 28px;
    }

    .mood-stats,
    .mood-wall {
        padding: 20px;
    }

    .timeline {
        padding-left: 0;
    }

    .timeline-item {
        padding-left: 52px;
    }

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

@media (max-width: 480px) {
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .moment-card:nth-child(3n+1) {
        grid-row: span 1;
    }

    .avatar-frame,
    .avatar {
        width: 140px;
        height: 140px;
    }

    .avatar-emoji {
        font-size: 56px;
    }

    .about-title {
        font-size: 22px;
    }

    .mood-options {
        gap: 8px;
    }

    .mood-btn {
        padding: 10px 12px;
        min-width: 60px;
    }

    .mood-emoji {
        font-size: 24px;
    }

    .mood-label {
        font-size: 12px;
    }
}
