/* 才不是你的小麦 - AI女友相册 主样式 */

/* CSS变量定义 */
:root {
    /* 小麦主题配色 */
    --wheat-gold: #F4D03F;
    --wheat-gold-light: #F9E79F;
    --wheat-gold-dark: #D4AC0D;
    --sakura-pink: #FFB7C5;
    --sakura-pink-light: #FADBD8;
    --lavender: #E6E6FA;
    --mint-green: #98FF98;
    --sunshine-yellow: #FFFACD;
    --sky-blue: #87CEEB;
    --tech-blue: #00D9FF;
    
    /* 中性色 */
    --white: #FFFFFF;
    --cream: #FFF8F0;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* 渐变 */
    --gradient-wheat: linear-gradient(135deg, #F4D03F 0%, #F9E79F 50%, #FFB7C5 100%);
    --gradient-sunset: linear-gradient(135deg, #FFB7C5 0%, #F4D03F 50%, #87CEEB 100%);
    --gradient-dream: linear-gradient(135deg, #E6E6FA 0%, #FFB7C5 50%, #F9E79F 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(244, 208, 63, 0.4);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体 */
    --font-primary: 'Nunito', sans-serif;
    --font-display: 'ZCOOL KuaiLe', cursive;
}

/* 基础重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--cream);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 粒子背景容器 */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 特效画布 */
#effect-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(244, 208, 63, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* 桌面端隐藏收起/展开按钮 */
.navbar-toggle-btn {
    display: none;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--wheat-gold-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wheat-gold);
}

.logo i {
    font-size: 1.8rem;
    color: var(--wheat-gold);
    animation: wheatSway 3s ease-in-out infinite;
}

.slogan {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: var(--white);
    color: var(--wheat-gold-dark);
}

.nav-btn.active {
    background: var(--gradient-wheat);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-600);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--gradient-wheat);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.action-btn.logged-in {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.action-btn.hidden {
    display: none !important;
}

/* AI女友欢迎语 */
.ai-welcome {
    position: fixed;
    top: 90px;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 999;
    animation: slideInRight 0.5s ease;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-wheat);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    animation: pulse 2s ease-in-out infinite;
    overflow: hidden;
}

.ai-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-message {
    max-width: 250px;
}

.ai-message p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* 主内容区 */
.main-content {
    position: relative;
    z-index: 10;
    padding: 100px 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* 每日语录 */
.daily-quote {
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244, 208, 63, 0.3);
}

.daily-quote i {
    color: var(--wheat-gold);
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.daily-quote span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gray-700);
}

/* 统计栏 */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.stat-item i {
    font-size: 1.2rem;
    color: var(--wheat-gold);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* 视图容器 */
.view-container {
    position: relative;
}

.view {
    display: none;
    animation: fadeIn 0.5s ease;
}

.view.active {
    display: block;
}

/* 按天视图 - 时间轴 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.day-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.day-date {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.day-date .date-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-wheat);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.day-date .date-icon .month {
    font-size: 0.7rem;
    text-transform: uppercase;
}

.day-date .date-icon .day {
    font-size: 1.2rem;
    font-weight: 800;
}

.day-date .date-full {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.day-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--sakura-pink-light);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.day-count i {
    color: var(--sakura-pink);
}

.day-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* 时间线视图中的照片网格 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

/* 按周视图 */
.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.week-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

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

.week-header {
    padding: 1rem 1.5rem;
    background: var(--gradient-wheat);
    color: var(--white);
}

.week-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.week-header span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.week-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem;
}

.week-photos img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.week-photos img:hover {
    transform: scale(1.05);
}

.week-title {
    font-size: 1.1rem;
    color: var(--wheat-gold);
    margin-bottom: 0.25rem;
    padding: 1rem 1rem 0;
}

.week-date {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

.week-count {
    display: block;
    padding: 0 1rem 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* 排行榜样式 */
.ranking-header {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(244, 208, 63, 0.1), rgba(255, 183, 197, 0.1));
    border-radius: var(--radius-lg);
}

.ranking-header h2 {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 2rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.ranking-header h2 i {
    color: #FF6B6B;
    margin-right: 0.5rem;
}

.ranking-header p {
    color: var(--gray-600);
    font-size: 1rem;
}

.ranking-photos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 1rem;
}

@media (max-width: 1400px) {
    .ranking-photos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .ranking-photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .ranking-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.ranking-photo-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.ranking-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 前三名特殊样式 */
.rank-1 .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
}

.rank-other .rank-badge {
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.ranking-photo-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ranking-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.ranking-photo-card:hover .ranking-photo-image img {
    transform: scale(1.05);
}

.ranking-photo-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ranking-likes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF6B6B;
    font-weight: 700;
    font-size: 1.1rem;
}

.ranking-likes i {
    font-size: 1.2rem;
}

.ranking-date {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* 按月视图 */
.month-calendar {
    background: linear-gradient(135deg, #fff9f0 0%, #ffecd2 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.month-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--wheat-light);
    transition: var(--transition-normal);
}

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

.month-title {
    font-size: 1.35rem;
    color: var(--wheat-gold);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--wheat-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.month-title::before {
    content: '📅';
    font-size: 1.2rem;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.month-count {
    display: block;
    text-align: right;
    color: var(--gray-600);
    font-size: 0.9rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--wheat-light);
}

.month-photo {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.month-photo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--wheat-gold);
}

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

.month-count {
    display: block;
    text-align: right;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.month-header h2 {
    font-size: 1.5rem;
    color: var(--gray-800);
}

.month-nav {
    display: flex;
    gap: 0.5rem;
}

.month-nav button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.month-nav button:hover {
    background: var(--wheat-gold);
    color: var(--white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    padding: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--wheat-gold-light);
}

.calendar-day.has-photos {
    background: var(--sakura-pink-light);
}

.calendar-day .day-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.calendar-day .photo-indicator {
    position: absolute;
    bottom: 4px;
    display: flex;
    gap: 2px;
}

.calendar-day .photo-indicator span {
    width: 4px;
    height: 4px;
    background: var(--wheat-gold);
    border-radius: var(--radius-full);
}

/* 照片卡片 */
.photo-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--gray-200);
    transition: var(--transition-normal);
}

.photo-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-card .photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 0.75rem;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-card .photo-actions {
    display: flex;
    gap: 0.5rem;
}

.photo-card .photo-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
}

.photo-card .photo-actions button:hover {
    background: var(--wheat-gold);
    color: var(--white);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.modal-header h3 i {
    color: var(--wheat-gold);
}

.close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.close-btn:hover {
    background: var(--sakura-pink);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* 上传模态框 */
.upload-modal {
    width: 600px;
}

.upload-area {
    border: 3px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.upload-area:hover {
    border-color: var(--wheat-gold);
    background: var(--wheat-gold-light);
}

.upload-area.dragover {
    border-color: var(--wheat-gold);
    background: var(--wheat-gold-light);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: var(--wheat-gold);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.upload-preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255,0,0,0.8);
    color: var(--white);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.75rem;
}

.upload-progress {
    margin-top: 1.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-wheat);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* 特效选择模态框 */
.effect-modal {
    width: 700px;
}

.effect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.effect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

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

.effect-card.active {
    border-color: var(--wheat-gold);
    background: var(--wheat-gold-light);
}

.effect-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.effect-preview.dream-preview { background: linear-gradient(135deg, #E6E6FA, #FFB7C5); }
.effect-preview.retro-preview { background: linear-gradient(135deg, #8B4513, #D2691E); }
.effect-preview.starry-preview { background: linear-gradient(135deg, #191970, #4169E1); }
.effect-preview.sakura-preview { background: linear-gradient(135deg, #FFB7C5, #FFC0CB); }
.effect-preview.bubble-preview { background: linear-gradient(135deg, #87CEEB, #98FF98); }
.effect-preview.wheat-preview { background: linear-gradient(135deg, #F4D03F, #F9E79F); }
.effect-preview.ai-preview { background: linear-gradient(135deg, #00D9FF, #00CED1); }

.effect-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* 个人介绍页 */
.profile-view {
    animation: fadeIn 0.5s ease;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff9f0 0%, #ffecd2 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--wheat-light);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--wheat-gold);
    box-shadow: var(--shadow-lg);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 2rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified-badge {
    color: var(--wheat-gold);
    font-size: 1.2rem;
}

.profile-tag {
    color: var(--wheat-gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.profile-bio {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--wheat-gold);
}

.profile-stat .stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.profile-content {
    margin-bottom: 2rem;
}

.profile-content h2 {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-content h2 i {
    color: var(--wheat-gold);
}

.profile-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.style-tag {
    background: linear-gradient(135deg, var(--wheat-light) 0%, #fff 100%);
    color: var(--wheat-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--wheat-gold);
    transition: var(--transition-fast);
}

.style-tag:hover {
    background: var(--wheat-gold);
    color: var(--white);
    transform: translateY(-2px);
}

.back-to-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--wheat-gold) 0%, var(--wheat-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.back-to-gallery:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 图片详情模态框 */
.photo-modal {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.photo-viewer {
    display: flex;
    height: 100%;
    background: var(--gray-900);
}

.photo-viewer img {
    flex: 1;
    object-fit: contain;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    max-height: 100%;
}

.photo-info {
    width: 320px;
    padding: 2rem;
    background: linear-gradient(180deg, #fff9f0 0%, #ffecd2 100%);
    display: flex;
    flex-direction: column;
    border-left: 3px solid var(--wheat-gold);
}

.photo-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    word-break: break-all;
    line-height: 1.5;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed var(--wheat-gold);
}

.photo-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-info p::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    color: var(--wheat-gold);
}

.photo-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    justify-content: center;
}

.photo-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 80px;
}

.photo-action:hover {
    background: var(--wheat-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.photo-action:active {
    transform: translateY(0);
}

.photo-action i {
    font-size: 1.1rem;
}

.photo-action.liked {
    background: var(--sakura-pink);
    color: var(--white);
}

.photo-action.favorited {
    background: var(--wheat-gold);
    color: var(--white);
}

/* 幻灯片模式 */
.slideshow-mode {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--gray-900);
    z-index: 3000;
}

.slideshow-mode.active {
    display: flex;
}

.slideshow-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slideshow-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.slideshow-overlay {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.slideshow-controls {
    display: flex;
    gap: 1rem;
}

.slideshow-controls button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.slideshow-controls button:hover {
    background: var(--wheat-gold);
}

.slideshow-info {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.8;
}

.slideshow-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.slideshow-close:hover {
    background: var(--sakura-pink);
}

/* 音乐播放器 */
.music-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
    max-width: 350px;
    min-width: 280px;
}

.music-player-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.music-player.hidden {
    transform: translateY(150%);
}

.music-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.music-info i {
    color: var(--wheat-gold);
    font-size: 1.2rem;
}

.music-controls {
    display: flex;
    gap: 0.5rem;
}

.music-controls button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
}

.music-controls button:hover {
    background: var(--wheat-gold);
    color: var(--white);
}

.music-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-volume input {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    outline: none;
}

.music-volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--wheat-gold);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.music-playlist {
    max-height: 120px;
    overflow-y: auto;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.5rem;
    font-size: 0.85rem;
}

.music-playlist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.music-playlist-item:hover {
    background: rgba(0,0,0,0.05);
}

.music-playlist-item.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--wheat-gold);
}

.music-playlist-item i {
    font-size: 0.8rem;
    color: var(--wheat-gold);
}

.music-playlist-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 隐藏 audio 元素 */
#audio-player {
    display: none;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.wheat-loader {
    font-size: 4rem;
    color: var(--wheat-gold);
    margin-bottom: 1rem;
    animation: wheatSway 1.5s ease-in-out infinite;
}

.loading-content p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gray-600);
}

/* Toast提示 */
.toast-container {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--mint-green);
}

.toast.error {
    border-left: 4px solid #FF6B6B;
}

.toast.info {
    border-left: 4px solid var(--sky-blue);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i { color: var(--mint-green); }
.toast.error i { color: #FF6B6B; }
.toast.info i { color: var(--sky-blue); }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-wheat);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* 动画关键帧 */
@keyframes wheatSway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-btn span {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .main-content {
        padding-top: 140px;
    }
    
    .ai-welcome {
        display: none;
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .effect-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .photo-viewer {
        flex-direction: column;
    }
    
    .photo-info {
        width: 100%;
    }
    
    .music-player {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .day-photos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .week-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
}
