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

/* ===== 模态框样式 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-closing {
    animation: fadeOut 0.3s ease forwards;
}

.modal-closing .modal-content {
    animation: slideOut 0.3s ease forwards;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.close-btn:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

/* 大按钮样式 */
.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 2rem;
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 感恩日记欢迎弹窗样式 */
#gratitude-welcome-modal .modal-content {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 20px;
    max-width: 600px;
    border: 1px solid rgba(255, 154, 158, 0.3);
}

#gratitude-welcome-modal .modal-body {
    padding: 2.5rem;
}

/* ===== 心愿墙样式已移除 ===== */
}

.sky-wish-wall {
    position: relative;
    min-height: 200px;
    z-index: 5;
}

/* 背景装饰 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* 云朵装饰 */
.cloud {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(3px);
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
}

.cloud-1:before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-1:after {
    width: 50px;
    height: 50px;
    top: -20px;
    left: 45px;
}

.cloud-2 {
    width: 80px;
    height: 30px;
    top: 40%;
    right: 15%;
    animation: float 15s infinite ease-in-out reverse;
}

.cloud-2:before {
    width: 45px;
    height: 45px;
    top: -25px;
    left: 10px;
}

.cloud-2:after {
    width: 40px;
    height: 40px;
    top: -15px;
    left: 35px;
}

.cloud-3 {
    width: 60px;
    height: 25px;
    bottom: 20%;
    left: 30%;
    animation: float 18s infinite ease-in-out 2s;
}

.cloud-3:before {
    width: 35px;
    height: 35px;
    top: -20px;
    left: 5px;
}

.cloud-3:after {
    width: 30px;
    height: 30px;
    top: -10px;
    left: 25px;
}

/* 气球装饰 */
.balloon {
    position: absolute;
    width: 40px;
    height: 50px;
    border-radius: 50%;
    animation: float-up 30s infinite ease-in-out;
}

.balloon:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
}

.balloon-1 {
    background: linear-gradient(135deg, #FF5E62, #FF9966);
    top: 70%;
    left: 20%;
    animation-delay: 0s;
}

.balloon-2 {
    background: linear-gradient(135deg, #56CCF2, #2F80ED);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.balloon-3 {
    background: linear-gradient(135deg, #FFDD00, #FBB034);
    top: 75%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

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

/* 心愿气球样式已移除 */

/* 气球相关样式已移除 */

/* 气球内容已移除 */
/* 气球悬停效果已移除 */

/* 气球动画已移除 */

/* 旧心愿墙样式已移除 */

/* 旧心愿墙按钮样式已移除 */

/* 旧心愿墙状态和动画样式已移除 */

/* 旧心愿墙更新样式已移除 */

/* 颜色选择器样式 */
.color-picker {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-picker label {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.color-picker input[type="radio"]:checked + label {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

/* 动画效果 */
@keyframes wishAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

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

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

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

@keyframes wishAdded {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wishUpdated {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(102, 126, 234, 0);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(102, 126, 234, 0);
    }
}

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

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

:root {
    /* 主色调 */
    --primary-color: #ff9a9e;
    --primary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --secondary-color: #667eea;
    --accent-color: #f093fb;
    
    /* 中性色 */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --body-bg: linear-gradient(180deg, #4a90e2 0%, #87ceeb 100%);
    
    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-title: 'Ma Shan Zheng', cursive;
    
    /* 间距 */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 夜间模式 */
[data-theme="dark"] {
    /* 夜间主色调 */
    --primary-color: #ff6b9d;
    --primary-gradient: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    --secondary-color: #4834d4;
    --accent-color: #be2edd;
    
    /* 夜间中性色 */
    --text-dark: #e2e8f0;
    --text-light: #a0aec0;
    --text-muted: #718096;
    --white: #2d3748;
    --light-bg: #4a5568;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --body-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--body-bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: var(--transition);
}

/* ===== 导航栏样式 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: heartbeat 2s ease-in-out infinite;
}

.logo h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

/* 禁用状态的导航按钮 */
.nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: rgba(var(--text-light-rgb, 108, 117, 125), 0.5);
}

.nav-btn.disabled:hover {
    background: transparent;
    color: rgba(var(--text-light-rgb, 108, 117, 125), 0.5);
    transform: none;
}

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

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    transition: var(--transition);
}

[data-theme="dark"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #ffd700;
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    transform: rotate(90deg) scale(1.1);
}

.settings-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

/* 浮动设置按钮样式 */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.floating-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.floating-btn i {
    transition: var(--transition);
}

.floating-btn:hover i {
    transform: rotate(180deg);
}

/* 夜间模式下的浮动按钮 */
[data-theme="dark"] .floating-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .floating-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    transform: scale(1.1);
}

.user-btn.logged-in {
    background: var(--primary-gradient);
    color: white;
}

.user-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

/* ===== 主内容区域 ===== */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 150px);
    padding: 2rem;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* ===== 主页样式 ===== */
.welcome-hero {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 0 1.5rem;
}

.hero-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    text-align: center;
}

/* 每日感恩记录展示区 */
.daily-gratitude-showcase {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.daily-gratitude-showcase h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.gratitude-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.gratitude-entry-placeholder {
    border: 2px dashed var(--primary-color-light);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.gratitude-entry-placeholder:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entry-date-placeholder {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.entry-content-placeholder {
    color: var(--text-light);
    font-size: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.archive-link {
    text-align: center;
    margin-top: 1rem;
}

.archive-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-link a:hover {
    color: var(--primary-color-dark);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.6);
}

.stats-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* ===== 感恩利益卡片样式 ===== */
.gratitude-benefits-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fef7f0 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 154, 158, 0.2);
}

.benefits-header {
    text-align: center;
    margin-bottom: 2rem;
}

.benefits-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.benefits-header h3 i {
    margin-right: 0.5rem;
}

.core-values {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.core-values p {
    margin: 0.8rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.core-values i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.benefits-section {
    margin-bottom: 2rem;
}

.benefits-section h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefits-section h4 i {
    margin-right: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.benefit-item {
    background: white;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.benefit-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.benefit-text strong {
    color: var(--text-dark);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.benefit-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.gratitude-quotes {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.gratitude-quotes h4 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.gratitude-quotes h4 i {
    margin-right: 0.5rem;
}

.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quotes-list blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    border-left: 3px solid var(--accent-color);
}

.quotes-list blockquote::before {
    content: '"';
    font-size: 2rem;
    color: var(--accent-color);
    position: absolute;
    left: 0.5rem;
    top: -0.2rem;
    font-weight: bold;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .gratitude-benefits-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .benefits-header h3 {
        font-size: 1.5rem;
    }
    
    .benefits-section h4 {
        font-size: 1.2rem;
    }
}

/* ===== 写日记页面样式 ===== */
.write-container {
    max-width: 800px;
    margin: 0 auto;
}

.write-header {
    text-align: center;
    margin-bottom: 2rem;
}

.write-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.current-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.journal-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

.form-group textarea {
    min-height: 150px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
}

.btn-accent.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-premium {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #ffb347, #ffa500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-premium.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.vip-feature-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.vip-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.vip-feature-list i {
    color: #28a745;
    font-size: 0.8rem;
}

/* ===== 时光轴样式 ===== */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-header {
    text-align: center;
    margin-bottom: 2rem;
}

.timeline-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.timeline-controls input,
.timeline-controls select {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-entries {
    position: relative;
}

.timeline-entries::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.entry-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.entry-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.entry-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    flex: 1;
    max-width: 45%;
    cursor: pointer;
    transition: var(--transition);
}

.entry-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.entry-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.entry-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.entry-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.entry-tag {
    padding: 0.25rem 0.75rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    color: white;
    padding: 3rem;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== 动画效果 ===== */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

@keyframes bloom {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        margin-top: 140px;
        padding: 1rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-entries::before {
        left: 2rem;
    }
    
    .entry-item {
        flex-direction: row !important;
        margin-left: 3rem;
    }
    
    .entry-content {
        max-width: 100%;
    }
}

/* ===== 日历样式 ===== */
.calendar-container {
    max-width: 900px;
    margin: 0 auto;
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.month-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.month-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#calendar-month-year {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    min-width: 200px;
}

.calendar-grid {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

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

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--text-light);
    padding: 1rem 0;
    font-size: 0.9rem;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.calendar-day:hover {
    background: var(--light-bg);
    transform: scale(1.05);
}

.calendar-day.today {
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
}

.calendar-day.has-entry {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 50%;
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-color.has-entry {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.legend-color.today {
    background: var(--primary-gradient);
}

/* ===== 统计页面样式 ===== */
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container h2 {
    color: white;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stat-card-large {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.stat-card-large:hover {
    transform: translateY(-5px);
}

.stat-card-large h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.mood-stats,
.category-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mood-item,
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mood-item:hover,
.category-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.mood-label,
.category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.mood-count,
.category-count {
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.monthly-trend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.trend-month {
    text-align: center;
    padding: 1rem 0.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.trend-month:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.trend-month-name {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.trend-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 重复的模态框样式已移除，使用上方统一的样式定义 */

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    animation: slideInUp 0.3s ease-out;
}

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

.modal-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--light-bg);
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.entry-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.entry-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-date,
.entry-mood,
.entry-category {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.entry-date {
    background: var(--light-bg);
    color: var(--text-dark);
}

.entry-mood {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.entry-category {
    background: var(--primary-gradient);
    color: white;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    border-top: 1px solid var(--light-bg);
    gap: 1rem;
}

/* ===== 提示消息样式 ===== */
.toast {
    position: fixed;
    top: 120px;
    right: 2rem;
    background: white;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    z-index: 3000;
    transform: translateX(400px);
    transition: var(--transition);
    max-width: 300px;
    word-wrap: break-word;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #28a745;
}

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

.toast.info {
    border-left: 4px solid #17a2b8;
}

/* ===== 页脚样式 ===== */
footer {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== 其他动画效果 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: #ff7b7f;
}

/* ===== 设置面板样式 ===== */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 2000;
    overflow-y: auto;
}

.settings-panel.active {
    right: 0;
}

.settings-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--primary-gradient);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.settings-header h3 i {
    margin-right: 0.5rem;
}

.settings-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.settings-body {
    flex: 1;
    padding: 0;
}

.settings-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-bg);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin: 0 0 1.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.setting-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* 切换开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 12px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: var(--primary-gradient);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 时间输入框 */
.time-input {
    padding: 0.5rem;
    border: 2px solid var(--light-bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
}

.time-input:focus {
    outline: none;
    border-color: var(--primary-color);
}



/* 按钮组 */
.button-group {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary.small,
.btn-primary.small,
.btn-danger.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-secondary.small {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary.small:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

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

.btn-danger.small {
    background: #dc3545;
    color: white;
}

.btn-danger.small:hover {
    background: #c82333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-panel {
        width: 100vw;
        right: -100vw;
    }
    
    .settings-panel.active {
        right: 0;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .button-group {
        width: 100%;
        justify-content: stretch;
    }
    
    .button-group button {
        flex: 1;
    }
    

}

/* ===== 心愿墙样式 ===== */
.wish-wall-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.wish-wall-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wish-wall-header h3 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    font-family: var(--font-title);
}

.wish-wall-header h3 i {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}

.wish-wall-header p {
    color: var(--text-light);
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* 添加心愿按钮样式已移除 */

/* 心愿墙和心愿卡片样式已移除 */

/* 心愿卡片颜色样式已移除 */

/* 心愿卡片头部和标题样式已移除 */

/* 心愿描述和元数据样式已移除 */

/* 心愿分类样式已移除 */

/* 心愿日期样式已移除 */

/* 心愿空状态样式已移除 */
}

.wish-empty-state p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.8;
}

/* ===== 心愿表单样式 ===== */
.wish-form {
    max-width: 100%;
}

.wish-form .form-group {
    margin-bottom: 1.5rem;
}

.wish-form textarea {
    min-height: 120px;
    resize: vertical;
}

.color-picker {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.color-option:hover,
.color-picker input[type="radio"]:checked + .color-option {
    border-color: var(--text-dark);
    transform: scale(1.1);
}

.color-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.color-picker input[type="radio"]:checked + .color-option::after {
    opacity: 1;
    background: white;
}

.color-pink {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
}

.color-purple {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.color-blue {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.color-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.color-yellow {
    background: linear-gradient(135deg, #eab308, #ca8a04);
}

.color-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* ===== 成功按钮样式 ===== */
.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
}

/* ===== 心愿动画效果 ===== */
@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

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

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

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

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

/* ===== 响应式设计补充 ===== */
@media (max-width: 768px) {
    .wish-wall-section {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
    
    .wish-wall-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .wish-wall-header h3 {
        font-size: 1.6rem;
    }
    
    .wish-wall-header p {
        font-size: 1rem;
    }
    
    .add-wish-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .wish-wall {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .wish-card {
        transform: none !important;
        padding: 1.5rem;
    }
    
    .wish-card:hover {
        transform: translateY(-5px) scale(1.02) !important;
    }
    
    .wish-title {
        font-size: 1.2rem;
    }
    
    .wish-description {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    
    .wish-empty-state {
        padding: 2.5rem 1.5rem;
    }
    
    .wish-empty-state i {
        font-size: 3rem;
    }
    
    .wish-empty-state p {
        font-size: 1.1rem;
    }
    
    .color-picker {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .color-option {
        width: 35px;
        height: 35px;
    }
}

/* ===== 用户菜单样式 ===== */
.user-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 280px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    z-index: 2000;
    transform: scale(0) translateY(-20px);
    transform-origin: top right;
    opacity: 0;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.user-menu-content {
    padding: 0;
}

.user-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.user-info {
    flex: 1;
}

.username {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

.user-actions {
    padding: 0.5rem 0;
}

.user-action-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

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

.user-action-btn i {
    width: 16px;
    text-align: center;
}

/* ===== 认证表单样式 ===== */
.auth-form {
    max-width: 400px;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem;
}

.toggle-password:hover {
    color: var(--text-dark);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--light-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--light-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.strength-weak {
    background: #ff4757;
}

.strength-fill.strength-medium {
    background: #ffa726;
}

.strength-fill.strength-strong {
    background: #2ed573;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.strength-tips {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 表单提示文字 */
.field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* 注册介绍文字 */
.register-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.register-intro p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* 用户按钮状态 */
.user-btn.logged-in {
    background: var(--success-color);
    color: white;
}

.user-btn.logged-in:hover {
    background: #27ae60;
}

/* 忘记密码链接 */
.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* 隐私政策内容 */
.privacy-content {
    padding-right: 1rem;
    line-height: 1.6;
}

.privacy-content h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* 新用户引导样式 */
.modal.new-user-guide .modal-content {
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.guide-content {
    text-align: left;
    line-height: 1.6;
}

.guide-content p {
    margin: 1rem 0;
    color: var(--text-dark);
}

.guide-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.guide-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-bg);
}

.guide-actions .btn-primary,
.guide-actions .btn-secondary {
    flex: 1;
    max-width: 150px;
}

/* 用户头像显示 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-right: 0.5rem;
}

/* 模态框大小变体 */
.modal-content.large {
    max-width: 700px;
    max-height: 85vh;
}

.modal-content.large .modal-body {
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

/* 自定义滚动条 - 隐藏滚动条但保持滚动功能 */
.modal-content.large .modal-body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.modal-content.large .modal-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 表单验证样式 */
.form-group.error input {
    border-color: #ff4757;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2);
}

.form-group.success input {
    border-color: #2ed573;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.2);
}

.form-error {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* ===== 首页简洁样式 ===== */
.welcome-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-content {
    text-align: center;
    margin-bottom: 3rem;
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* 首页统计区域优化 */
.stats-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.stat-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 心愿墙预览 */
.wish-wall-preview {
    min-height: 120px;
    margin-bottom: 1rem;
}

.wish-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--text-muted);
    text-align: center;
}

.wish-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.wish-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

.add-wish-btn.compact {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-wish-btn.compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* 心愿墙预览卡片 */
.wish-card-mini {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.wish-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.wish-card-mini.fulfilled {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.wish-card-mini.color-purple {
    border-left: 4px solid #8e44ad;
}

.wish-card-mini.color-blue {
    border-left: 4px solid #3498db;
}

.wish-card-mini.color-green {
    border-left: 4px solid #2ecc71;
}

.wish-card-mini.color-orange {
    border-left: 4px solid #f39c12;
}

.wish-card-mini.color-red {
    border-left: 4px solid #e74c3c;
}

.wish-card-mini.color-pink {
    border-left: 4px solid #e91e63;
}

.wish-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wish-mini-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    flex: 1;
    margin-right: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wish-mini-priority {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wish-mini-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--light-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
}
.gratitude-philosophy {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.philosophy-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.philosophy-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.philosophy-card p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.practice-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    padding: 2.5rem;
    margin: 3rem 0;
    text-align: center;
}

.practice-guide h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.practice-guide > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.practice-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.practice-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.practice-list li:before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-size: 1rem;
}

.practice-note {
    margin-top: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-invitation {
    background: var(--light-bg);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.app-invitation h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.app-invitation > p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.invitation-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.feature-item span:last-child {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.start-journey-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    margin-top: 2rem;
}

.start-journey-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.start-journey-btn i {
    margin-right: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gratitude-philosophy {
        margin: 2rem auto;
        padding: 0 0.5rem;
    }
    
    .philosophy-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .philosophy-card {
        padding: 1.5rem;
    }
    
    .practice-guide {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .app-invitation {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .invitation-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* ===== 隐私政策样式 ===== */
.privacy-content {
    line-height: 1.6;
    color: var(--text-dark);
    padding-right: 0.5rem;
}

.privacy-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 0.75rem;
}

.privacy-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.privacy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.update-date {
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-bg);
}

@media (max-width: 480px) {
    .wish-wall-header {
        padding: 1rem;
    }
    
    .wish-wall-header h3 {
        font-size: 1.4rem;
    }
    
    .wish-card {
        padding: 1.2rem;
    }
    
    .wish-title {
        font-size: 1.1rem;
    }
    
    .add-wish-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* 移动端浮动按钮优化 */
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* 设置面板移动端优化 */
    .settings-panel {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        left: 0;
        top: 0;
    }
    
    .settings-content {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        padding: 1rem;
    }
}

/* ===== 日历搜索区域样式 ===== */
.calendar-search-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 154, 158, 0.2);
    box-shadow: 0 8px 32px rgba(255, 154, 158, 0.1);
    transition: var(--transition);
}

.calendar-search-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 154, 158, 0.15);
}

.search-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.search-header h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-wrapper {
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--background);
    border: 2px solid var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 154, 158, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 1rem 1rem 1rem 2.5rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

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

.clear-search-btn {
    position: absolute;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 154, 158, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.clear-search-btn:hover {
    background: rgba(255, 154, 158, 0.2);
    transform: scale(1.1);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 154, 158, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-select,
.date-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-bg);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.filter-select:focus,
.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

.custom-date {
    grid-column: 1 / -1;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.date-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.search-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-btn,
.reset-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.search-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 154, 158, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

.reset-btn {
    background: rgba(108, 117, 125, 0.1);
    color: var(--text-light);
    border: 1px solid var(--light-bg);
}

.reset-btn:hover {
    background: rgba(108, 117, 125, 0.15);
    color: var(--text-dark);
    transform: translateY(-1px);
}

/* 搜索结果区域 */
.search-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 154, 158, 0.2);
    animation: slideInUp 0.3s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light-bg);
}

.results-header h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(255, 154, 158, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.results-content {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--light-bg);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 154, 158, 0.1);
}

.result-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.result-actions button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-actions .btn-edit {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.result-actions .btn-edit:hover {
    background-color: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

.result-actions .btn-delete {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.result-actions .btn-delete:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.result-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
}

.result-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.result-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.result-mood,
.result-category {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 154, 158, 0.1);
    color: var(--primary-color);
}

.result-content {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.search-empty-state i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.search-empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* 搜索栏响应式设计 */
@media (max-width: 768px) {
    .calendar-search-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-btn,
    .reset-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .date-range-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date-separator {
        order: -1;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-header {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .result-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .search-header h4 {
        font-size: 1.1rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.875rem 0.875rem 0.875rem 2.25rem;
    }
    
    .search-icon {
        left: 0.75rem;
        font-size: 0.9rem;
    }
    
    .clear-search-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}



/* ===== 用户中心美化样式 ===== */
.user-center-section {
    margin-bottom: 2rem;
}

.user-info-card {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.05) 0%, rgba(250, 208, 196, 0.05) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 154, 158, 0.1);
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.08);
    transition: all 0.3s ease;
}

.user-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 154, 158, 0.12);
}

.user-info-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar-container {
    position: relative;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

.avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

/* 头像选择弹窗样式 */
.avatar-selector-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.avatar-selector-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.avatar-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-gradient);
    color: white;
}

.avatar-selector-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.avatar-selector-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.avatar-selector-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.avatar-selector-body {
    padding: 20px;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.avatar-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
}

.avatar-option img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.avatar-option .upload-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.avatar-option.custom-upload:hover .upload-placeholder {
    background: var(--primary-color);
    color: white;
}

.avatar-option span {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .avatar-selector-content {
        width: 95%;
        margin: 10px;
    }
    
    .avatar-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .avatar-option {
        padding: 10px;
    }
    
    .avatar-option img,
    .avatar-option .upload-placeholder {
        width: 50px;
        height: 50px;
    }
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-overlay i {
    color: white;
    font-size: 18px;
}

/* 右键菜单样式 */
.context-menu {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 154, 158, 0.2);
    min-width: 160px;
    z-index: 10000;
    overflow: hidden;
    animation: contextMenuShow 0.2s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes contextMenuShow {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.context-menu-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 154, 158, 0.1);
    font-size: 14px;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1) 0%, rgba(250, 208, 196, 0.1) 100%);
    color: var(--primary-color);
}

.context-menu-item i {
    width: 16px;
    color: #666;
    font-size: 14px;
    transition: color 0.2s ease;
}

.context-menu-item:hover i {
    color: var(--primary-color);
}

.context-menu-item span {
    font-size: 14px;
    color: #333;
    transition: color 0.2s ease;
}

.context-menu-item:hover span {
    color: var(--primary-color);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.user-details {
    flex: 1;
}

.username {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.user-stats {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.user-auth-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn i {
    font-size: 1rem;
}

.auth-btn span {
    font-weight: 600;
}

.btn-primary.auth-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

.btn-primary.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

.btn-secondary.auth-btn {
    background: rgba(255, 154, 158, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 154, 158, 0.3);
}

.btn-secondary.auth-btn:hover {
    background: rgba(255, 154, 158, 0.2);
    transform: translateY(-1px);
}

.btn-accent.auth-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-accent.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

@media (max-width: 480px) {
    .user-auth-actions {
        flex-direction: column;
    }
    
    .auth-btn {
        min-width: 100%;
    }
    
    .avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .username {
        font-size: 1.1rem;
    }
}

.user-actions {
    padding: 0.5rem 0;
}

.user-action-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

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

.user-action-btn i {
    width: 16px;
    text-align: center;
}

/* 注册表单增强样式 */
.register-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.field-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--light-bg);
    border-radius: 2px;
    overflow: hidden;
    transition: var(--transition);
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
    width: 25%;
    background: #dc3545;
}

.password-strength.medium .password-strength-bar {
    width: 50%;
    background: #ffc107;
}

.password-strength.good .password-strength-bar {
    width: 75%;
    background: #17a2b8;
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: #28a745;
}

/* 认证表单优化 */
.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group:last-child {
    margin-bottom: 1rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-menu {
        right: 10px;
        min-width: 260px;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .user-btn {
        width: 40px;
        height: 40px;
        margin-left: 0.25rem;
    }
    
    .theme-toggle-btn {
        width: 40px;
        height: 40px;
    }
}

/* ===== 视觉反馈动画 ===== */
@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes successPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}



@keyframes flashEffect {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}



/* ===== 用户按钮与菜单的覆盖性简化样式 ===== */
/* 确保导航容器有相对定位 */
.nav-container { 
    position: relative; 
}

/* 简化的用户按钮 */
.user-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--text-dark) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin-left: 0.5rem !important;
}

.user-btn:hover {
    color: var(--primary-color) !important;
    transform: scale(1.05) !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}


    border-radius: 50% !important;
    background: var(--primary-gradient) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(255, 154, 158, 0.3) !important;
}

.username {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-bottom: 0.25rem !important;
}

.user-stats {
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
}

.user-actions {
    padding: 0.5rem 0 !important;
}

.user-action-btn {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.875rem !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem !important;
    text-align: left !important;
}

.user-action-btn:hover {
    background: linear-gradient(90deg, rgba(255, 154, 158, 0.08), rgba(102, 126, 234, 0.08)) !important;
    color: var(--primary-color) !important;
    padding-left: 2rem !important;
}

.user-action-btn i {
    width: 16px !important;
    text-align: center !important;
    color: var(--primary-color) !important;
    opacity: 0.85 !important;
}

@media (max-width: 768px) {
    .user-menu {
        right: 0 !important;
        min-width: 260px !important;
    }
}

/* 紧凑化登录模态框（覆盖性样式） */
#login-modal .modal-content {
    max-width: 440px !important;
    width: calc(100% - 2rem) !important;
    max-height: 72vh !important;
    overflow: unset !important;
}

#login-modal .modal-header,
#login-modal .modal-footer {
    padding: 0.875rem 1rem !important;
}

#login-modal .modal-body {
    padding: 1rem !important;
}

/* 认证表单更紧凑（仅登录） */
#login-modal .auth-form { max-width: 100% !important; }
#login-modal .auth-form .form-group { margin-bottom: 0.875rem !important; }
#login-modal .form-group label { margin-bottom: 0.4rem !important; font-size: 0.95rem !important; }
#login-modal .form-group input,
#login-modal .form-group select { padding: 0.7rem 0.9rem !important; font-size: 0.95rem !important; }
#login-modal .password-input input { padding-right: 2.25rem !important; }
#login-modal .toggle-password { right: 0.5rem !important; }

#login-modal .modal-footer .btn-primary,
#login-modal .modal-footer .btn-secondary { padding: 0.6rem 1.2rem !important; font-size: 0.95rem !important; border-radius: 10px !important; }

/* 紧凑化注册模态框（覆盖性样式） */
#register-modal .modal-content { 
    max-width: 480px !important; 
    width: calc(100% - 2rem) !important; 
    max-height: 85vh !important; 
    overflow-y: auto !important;
    margin: auto !important;
}
#register-modal .modal-header,
#register-modal .modal-footer { padding: 0.875rem 1rem !important; }
#register-modal .modal-body { padding: 1rem !important; }
#register-modal .auth-form { max-width: 100% !important; }
#register-modal .auth-form .form-group { margin-bottom: 0.875rem !important; }
#register-modal .form-group label { margin-bottom: 0.4rem !important; font-size: 0.95rem !important; }
#register-modal .form-group input,
#register-modal .form-group select { padding: 0.7rem 0.9rem !important; font-size: 0.95rem !important; }
#register-modal .password-input input { padding-right: 2.25rem !important; }
#register-modal .toggle-password { right: 0.5rem !important; }
#register-modal .modal-footer .btn-primary,
#register-modal .modal-footer .btn-secondary { padding: 0.6rem 1.2rem !important; font-size: 0.95rem !important; border-radius: 10px !important; }

@media (max-width: 480px) {
  /* 手机端侧边滑入式登录 */
  #login-modal, #register-modal {
    background-color: transparent !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    pointer-events: none !important;
  }
  
  #login-modal .modal-content, #register-modal .modal-content {
    width: 85vw !important;
    max-width: 320px !important;
    height: 100vh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 20px 0 0 20px !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-out !important;
    pointer-events: all !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
  }
  
  #login-modal.show .modal-content, #register-modal.show .modal-content {
    transform: translateX(0) !important;
  }
  
  /* 紧凑化表单内容 */
  #login-modal .modal-header, #register-modal .modal-header {
    padding: 1rem !important;
    font-size: 1rem !important;
  }
  
  #login-modal .modal-body, #register-modal .modal-body {
    padding: 1rem !important;
    overflow-y: auto !important;
  }
  
  #login-modal .form-group, #register-modal .form-group {
    margin-bottom: 1rem !important;
  }
  
  #login-modal .form-group input, #register-modal .form-group input {
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
  }
  
  #login-modal .modal-footer, #register-modal .modal-footer {
    padding: 1rem !important;
    gap: 0.5rem !important;
  }
  
  #login-modal .btn-primary, #login-modal .btn-secondary,
  #register-modal .btn-primary, #register-modal .btn-secondary {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
}