/* 朋友圈风格夸夸墙 */

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

/* CSS变量 - 童趣优雅配色方案 */
:root {
    /* 主色调 - 温暖的绿色 */
    --primary-color: #1aad19;
    --primary-light: #4caf50;
    --primary-soft: #e8f5e9;
    
    /* 辅助色 - 童趣配色 */
    --secondary-color: #576b95;
    --accent-color: #ff6b35;
    --accent-pink: #ff6b9d;
    --accent-blue: #5dade2;
    --accent-yellow: #f8d568;
    --accent-purple: #b39ddb;
    
    /* 文字颜色 */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    
    /* 背景颜色 - 柔和温暖 */
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
    /* 边框和阴影 */
    --border-color: #ecf0f1;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* 圆角 - 更圆润 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --border-radius: 16px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* 过渡效果 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 朋友圈头部 - 童趣渐变背景 */
.moments-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #f9d976 100%);
    position: relative;
}

/* 可爱的云朵装饰 */
.moments-header::before,
.moments-header::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
}

.moments-header::before {
    width: 180px;
    height: 60px;
    top: 40px;
    right: 60px;
    box-shadow: 
        -80px 20px 0 -20px rgba(255, 255, 255, 0.2),
        -120px 0px 0 -30px rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.moments-header::after {
    width: 140px;
    height: 50px;
    top: 80px;
    left: 80px;
    box-shadow: 
        60px 30px 0 -15px rgba(255, 255, 255, 0.2),
        90px 10px 0 -25px rgba(255, 255, 255, 0.15);
    animation: float 8s ease-in-out infinite reverse;
}

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

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-info {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.header-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 工具栏 */
.toolbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.toolbar-content {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    margin-bottom: var(--spacing-md);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 0 var(--spacing-md);
    border: 1px solid var(--border-color);
}

.search-box i {
    color: var(--text-light);
    margin-right: var(--spacing-sm);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.filter-container {
    overflow: hidden;
}

.filter-scroll {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    color: var(--text-secondary);
}

.filter-chip:hover {
    background: #f0f0f0;
}

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

.chip-emoji {
    font-size: 0.9rem;
}

/* 统计面板 - 改为浮层覆盖式 */
.stats-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 200;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.stats-section.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.stats-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 时间线 */
.moments-timeline {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    min-height: 50vh;
}

.timeline-header {
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* 模式切换按钮 */
.view-modes {
    display: flex;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border-color);
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.mode-btn:hover {
    color: var(--primary-color);
}

.mode-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mode-btn i {
    font-size: 0.9rem;
}

.sort-dropdown {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
}

/* 动态卡片 - 支持时间轴和卡片墙模式 */
.moments-feed {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    transition: all 0.3s ease;
    min-height: 200px; /* 防止高度跳跃 */
}

/* 模式切换时的平滑过渡 */
.moments-feed.transitioning {
    pointer-events: none; /* 切换时禁用交互 */
}

.moments-feed.transitioning .moment-card {
    transition: all 0.3s ease;
}

/* 卡片墙模式 - 黑板墙面效果 */
.moments-feed.wall-mode {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    align-items: start !important;
    flex-direction: unset !important;
    padding: 30px 20px;
    margin: 20px 0;
    min-height: auto; /* 黑板模式允许自适应高度 */
    background: 
        /* 黑板纹理 */
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.01) 0%, transparent 50%),
        /* 粉笔痕迹 */
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.01) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255,255,255,0.005) 50%, transparent 100%),
        /* 基础黑板颜色 */
        linear-gradient(135deg, #1a3a1a 0%, #0f2f0f 50%, #1a3a1a 100%);
    border-radius: 12px;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.3),
        inset 0 0 100px rgba(0,0,0,0.2),
        0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
}

/* 黑板边框效果 */
.moments-feed.wall-mode::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #8B4513 0%, #A0522D 25%, #8B4513 50%, #654321 75%, #8B4513 100%);
    border-radius: 16px;
    z-index: -1;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(139,69,19,0.3);
}

/* 黑板上的粉笔字装饰 */
.moments-feed.wall-mode::after {
    content: '今日夸夸墙 ✨';
    position: absolute;
    top: -35px;
    left: 20px;
    color: rgba(255,255,255,0.7);
    font-family: '华文楷体', 'KaiTi', serif;
    font-size: 1.2rem;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.1);
    letter-spacing: 2px;
    transform: rotate(-1deg);
}

/* 卡片墙模式下的卡片样式 - 便签纸效果 */
.wall-mode .moment-card {
    break-inside: avoid;
    margin-bottom: 0 !important;
    transform: rotate(-0.5deg);
    background: 
        /* 纸张纹理 */
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,0.3) 21%, rgba(255,255,255,0.3) 34%, transparent 35%, transparent),
        linear-gradient(0deg, rgba(255,255,255,0.05) 50%, transparent 50%),
        /* 便签纸颜色 */
        linear-gradient(135deg, #fffacd 0%, #fff8dc 50%, #fffacd 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        /* 贴在黑板上的阴影 */
        0 1px 3px rgba(0,0,0,0.12),
        0 1px 2px rgba(0,0,0,0.24),
        /* 便签纸的立体感 */
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图钉效果 - 真实图钉 */
.wall-mode .moment-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: 
        radial-gradient(circle at 30% 30%, #ff4757 0%, #ff3742 50%, #c44569 100%);
    border-radius: 50%;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(255,255,255,0.3),
        inset 0 -1px 2px rgba(0,0,0,0.2);
    z-index: 10;
}

/* 图钉的针 */
.wall-mode .moment-card::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 17.5px;
    width: 1px;
    height: 6px;
    background: linear-gradient(to bottom, #666 0%, #333 100%);
    box-shadow: 0 0 1px rgba(0,0,0,0.5);
    z-index: 9;
}

/* 不同卡片的旋转角度 - 更微妙的效果 */
.wall-mode .moment-card:nth-child(2n) {
    transform: rotate(0.8deg);
}

.wall-mode .moment-card:nth-child(3n) {
    transform: rotate(-1.2deg);
}

.wall-mode .moment-card:nth-child(4n) {
    transform: rotate(1deg);
}

.wall-mode .moment-card:nth-child(5n) {
    transform: rotate(-0.8deg);
}

.wall-mode .moment-card:nth-child(6n) {
    transform: rotate(1.5deg);
}

/* 不同颜色的便签纸 */
.wall-mode .moment-card:nth-child(4n+1) {
    background: 
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,0.3) 21%, rgba(255,255,255,0.3) 34%, transparent 35%, transparent),
        linear-gradient(0deg, rgba(255,255,255,0.05) 50%, transparent 50%),
        linear-gradient(135deg, #fff2cc 0%, #ffe4b3 50%, #fff2cc 100%); /* 淡黄色 */
}

.wall-mode .moment-card:nth-child(4n+2) {
    background: 
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,0.3) 21%, rgba(255,255,255,0.3) 34%, transparent 35%, transparent),
        linear-gradient(0deg, rgba(255,255,255,0.05) 50%, transparent 50%),
        linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 50%, #e8f5e8 100%); /* 淡绿色 */
}

.wall-mode .moment-card:nth-child(4n+3) {
    background: 
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,0.3) 21%, rgba(255,255,255,0.3) 34%, transparent 35%, transparent),
        linear-gradient(0deg, rgba(255,255,255,0.05) 50%, transparent 50%),
        linear-gradient(135deg, #ffe4e6 0%, #ffd1d5 50%, #ffe4e6 100%); /* 淡粉色 */
}

.wall-mode .moment-card:nth-child(4n+4) {
    background: 
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,0.3) 21%, rgba(255,255,255,0.3) 34%, transparent 35%, transparent),
        linear-gradient(0deg, rgba(255,255,255,0.05) 50%, transparent 50%),
        linear-gradient(135deg, #e6f3ff 0%, #cce7ff 50%, #e6f3ff 100%); /* 淡蓝色 */
}

.wall-mode .moment-card:hover {
    transform: rotate(0deg) translateY(-12px) scale(1.02);
    box-shadow: 
        /* 便签纸离开黑板的阴影 */
        0 12px 25px rgba(0,0,0,0.15),
        0 5px 10px rgba(0,0,0,0.12),
        /* 便签纸本身的立体感 */
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    z-index: 10;
    border-color: rgba(255, 215, 0, 0.3);
    background: 
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(255,255,255,0.4) 21%, rgba(255,255,255,0.4) 34%, transparent 35%, transparent),
        linear-gradient(0deg, rgba(255,255,255,0.1) 50%, transparent 50%),
        linear-gradient(135deg, #fffbd0 0%, #fff9e0 50%, #fffbd0 100%);
}

/* 卡片墙模式下的头像和信息样式 */
.wall-mode .moment-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wall-mode .moment-info {
    flex: 1;
    min-width: 0;
}

.wall-mode .moment-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.wall-mode .moment-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.wall-mode .moment-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 10px;
    word-wrap: break-word;
    font-weight: 400;
}

/* 卡片墙模式下的紧凑布局 */
.wall-mode .moment-header {
    padding: 12px 16px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wall-mode .moment-content {
    padding: 0 16px 12px;
}

.wall-mode .moment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
}

.wall-mode .moment-type {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* 黑板墙模式下的分类颜色调整 */
.wall-mode .category-study { 
    background: rgba(0, 122, 255, 0.12); 
    border-color: rgba(0, 122, 255, 0.2);
    color: #0056b3;
}
.wall-mode .category-behavior { 
    background: rgba(52, 199, 89, 0.12); 
    border-color: rgba(52, 199, 89, 0.2);
    color: #28a745;
}
.wall-mode .category-sport { 
    background: rgba(255, 149, 0, 0.12); 
    border-color: rgba(255, 149, 0, 0.2);
    color: #e8890b;
}
.wall-mode .category-art { 
    background: rgba(175, 82, 222, 0.12); 
    border-color: rgba(175, 82, 222, 0.2);
    color: #8e44ad;
}
.wall-mode .category-social { 
    background: rgba(255, 45, 146, 0.12); 
    border-color: rgba(255, 45, 146, 0.2);
    color: #e91e63;
}

.wall-mode .moment-time {
    font-size: 0.7rem;
}

.wall-mode .like-action {
    font-size: 0.75rem;
    padding: 2px 6px;
}

/* 卡片墙模式下的图片样式 */
.wall-mode .moment-image {
    margin-bottom: 8px;
}

.wall-mode .moment-image img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* 卡片墙模式下的图钉位置调整 */
.wall-mode .moment-card::before {
    top: -2px;
    right: 8px;
    font-size: 0.9rem;
}

.moment-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.moment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-yellow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

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

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

.moment-header {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.moment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.moment-info {
    flex: 1;
    min-width: 0;
}

.moment-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.moment-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.moment-type {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.moment-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
}

.moment-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    word-wrap: break-word;
}

.moment-image {
    margin-bottom: var(--spacing-md);
}

.moment-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.moment-image img:hover {
    opacity: 0.95;
}

.moment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    border-top: 1px solid var(--bg-primary);
}

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

.moment-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.like-action {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px 8px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.like-action:hover {
    background: var(--bg-primary);
}

.like-action.liked {
    color: #ff6b35;
}

.like-action.liked .like-icon {
    color: #ff6b35;
}

.like-icon {
    font-size: 1rem;
    transition: all 0.2s ease;
}

.like-count {
    font-weight: 500;
}

/* 空状态 */
.empty-moments {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: var(--spacing-xl);
}

.empty-illustration {
    text-align: center;
    max-width: 300px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.6;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.empty-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.publish-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(26, 173, 25, 0.3);
    position: relative;
    overflow: hidden;
}

.publish-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.publish-btn:hover::before {
    width: 300px;
    height: 300px;
}

.publish-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(26, 173, 25, 0.4);
}

.publish-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--spacing-md);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.publish-modal,
.manage-modal {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-medium);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .publish-modal,
.modal-overlay.active .manage-modal {
    transform: scale(1);
}

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* 发布表单 */
.publish-form {
    padding: var(--spacing-lg);
}

.form-section {
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.4;
}

/* 图片上传 */
.photo-upload-area {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    gap: var(--spacing-xs);
}

.upload-placeholder:hover {
    border-color: var(--primary-color);
    background: rgba(26, 173, 25, 0.05);
    color: var(--primary-color);
}

.upload-placeholder i {
    font-size: 1.2rem;
}

.photo-preview-container {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.photo-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-photo:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-cancel {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-publish {
    background: var(--primary-color);
    color: white;
}

.btn-publish:hover {
    background: var(--primary-light);
}

/* 管理界面 */
.manage-content {
    padding: var(--spacing-lg);
}

.manage-section {
    margin-bottom: var(--spacing-xl);
}

.manage-section:last-child {
    margin-bottom: 0;
}

.manage-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.info-content {
    flex: 1;
}

.info-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-light);
}

.action-btn.warning {
    background: #ff9500;
    color: white;
}

.action-btn.warning:hover {
    background: #e6850e;
}

.action-btn.danger {
    background: #ff3b30;
    color: white;
}

.action-btn.danger:hover {
    background: #d70015;
}

.action-btn i {
    font-size: 1.2rem;
}

/* 类别颜色 - 柔和风格 */
.category-study { 
    background: rgba(0, 122, 255, 0.08); 
    border-color: rgba(0, 122, 255, 0.15);
    color: #007aff;
}
.category-behavior { 
    background: rgba(52, 199, 89, 0.08); 
    border-color: rgba(52, 199, 89, 0.15);
    color: #34c759;
}
.category-sport { 
    background: rgba(255, 149, 0, 0.08); 
    border-color: rgba(255, 149, 0, 0.15);
    color: #ff9500;
}
.category-art { 
    background: rgba(175, 82, 222, 0.08); 
    border-color: rgba(175, 82, 222, 0.15);
    color: #af52de;
}
.category-social { 
    background: rgba(255, 45, 146, 0.08); 
    border-color: rgba(255, 45, 146, 0.15);
    color: #ff2d92;
}

/* 用户菜单样式 */
.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2px;
}

.profile-login {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.user-stat {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-primary);
    border-radius: var(--border-radius);
}

.user-stat-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.user-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.user-action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.user-action-btn:hover {
    background: var(--border-color);
}

.user-action-btn.logout-btn {
    background: #ff3b30;
    color: white;
}

.user-action-btn.logout-btn:hover {
    background: #d70015;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 底部安全区域 */
.safe-area-bottom {
    height: env(safe-area-inset-bottom);
    background: var(--bg-primary);
}

/* 中等屏幕 */
@media (max-width: 1200px) {
    .moments-feed.wall-mode {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 16px !important;
        padding: 16px 0;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: var(--spacing-md);
    }
    
    .header-title {
        font-size: 1.3rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .view-modes {
        order: 2;
        justify-content: center;
    }
    
    .sort-dropdown {
        order: 1;
        align-self: flex-end;
    }
    
    /* 平板端黑板效果 */
    .moments-feed.wall-mode {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 14px !important;
        padding: 25px 15px;
        margin: 15px 0;
    }
    
    /* 平板端粉笔字 */
    .moments-feed.wall-mode::after {
        font-size: 1rem;
        top: -30px;
        left: 15px;
    }
    
    /* 移动端减少旋转角度 */
    .wall-mode .moment-card {
        transform: rotate(-0.5deg) !important;
    }
    
    .wall-mode .moment-card:nth-child(2n) {
        transform: rotate(0.5deg) !important;
    }
    
    .wall-mode .moment-card:nth-child(3n) {
        transform: rotate(-1deg) !important;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .modal-overlay {
        padding: var(--spacing-sm);
    }
    
    .publish-modal,
    .manage-modal {
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .header-avatar {
        width: 48px;
        height: 48px;
    }
    
    .avatar-icon {
        font-size: 1.5rem;
    }
    
    .filter-chip {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .moment-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .moment-content {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
    
    .moment-text {
        font-size: 0.95rem;
    }
    
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* 手机端黑板效果 */
    .moments-feed.wall-mode {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 12px !important;
        padding: 20px 12px;
        margin: 12px 0;
    }
    
    /* 手机端粉笔字 */
    .moments-feed.wall-mode::after {
        font-size: 0.9rem;
        top: -25px;
        left: 12px;
        letter-spacing: 1px;
    }
    
    /* 手机端黑板边框 */
    .moments-feed.wall-mode::before {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
    }
    
    .wall-mode .moment-card {
        transform: rotate(0deg) !important;
        border-radius: 8px;
    }
    
    .wall-mode .moment-avatar {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }
    
    .wall-mode .moment-name {
        font-size: 0.75rem;
    }
    
    .wall-mode .moment-meta {
        font-size: 0.6rem;
    }
    
    .wall-mode .moment-text {
        font-size: 0.7rem;
    }
    
    .wall-mode .moment-image img {
        max-height: 120px;
    }
}

/* ========== 通用童趣装饰样式 ========== */

/* 可爱的页面装饰元素 */
.cute-decoration {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* 浮动的星星装饰 */
.floating-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* 可爱的按钮悬停效果 */
.btn-cute {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.btn-cute::after {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.btn-cute:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 彩虹渐变边框 */
.rainbow-border {
    position: relative;
    background: white;
    border-radius: var(--radius-md);
}

.rainbow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, 
        #ff6b9d 0%, 
        #c44569 15%,
        #feca57 30%,
        #48dbfb 45%,
        #0abde3 60%,
        #00d2d3 75%,
        #ff6b9d 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rainbow-rotate 3s linear infinite;
    background-size: 200% 200%;
}

@keyframes rainbow-rotate {
    to { background-position: 200% 0; }
}

/* 脉冲动画 - 用于重要提示 */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 摇摆动画 - 可爱的交互反馈 */
.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

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

/* 弹跳动画 - 欢快的效果 */
.bounce {
    animation: bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 可爱的卡片阴影 */
.card-cute {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-smooth);
}

.card-cute:hover {
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.08),
        0 20px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

/* 数字徽章 - 可爱风格 */
.badge-cute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-color));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

/* 加载动画 - 可爱的跳动点 */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 成功/错误提示样式 - 童趣版 */
.toast-cute {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-large);
    animation: toast-slide-in 0.3s ease, toast-slide-out 0.3s ease 2.7s;
    z-index: 9999;
}

.toast-cute.success {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.toast-cute.error {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.toast-cute.info {
    background: linear-gradient(135deg, var(--accent-blue), #40a9ff);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}