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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --dark-color: #2d3436;
    --light-color: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gold-color: #ffd700;
    --red-envelope: #ff4757;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 背景星星 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 60%; left: 30%; animation-delay: 1s; }
.star:nth-child(4) { top: 80%; left: 70%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 30%; left: 50%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* 粒子效果 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 2em;
    opacity: 0.3;
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 春节装饰 */
.festival-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.lantern {
    position: absolute;
    font-size: 3em;
    animation: swingLantern 3s ease-in-out infinite;
}

.lantern-left {
    top: 50px;
    left: 50px;
}

.lantern-right {
    top: 50px;
    right: 50px;
}

@keyframes swingLantern {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.firecracker {
    position: absolute;
    font-size: 2em;
    animation: firecrackPop 2s ease-in-out infinite;
}

.firecracker-left {
    top: 150px;
    left: 80px;
}

.firecracker-right {
    top: 150px;
    right: 80px;
}

@keyframes firecrackPop {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 主容器 */
.container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部 */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
}

.app-header:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
}

.title {
    font-size: 2.5em;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff6b6b 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.icon {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 小马状态区 */
.horse-status {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.horse-display {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px);
    transition: all 0.3s ease;
}

.horse-display:hover {
    transform: perspective(1000px) translateZ(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.horse-avatar {
    font-size: 8em;
    margin-bottom: 15px;
    animation: horseFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes horseFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.horse-mood {
    font-size: 3em;
    margin-bottom: 10px;
    animation: moodPulse 2s ease-in-out infinite;
}

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

.horse-name {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.horse-level {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #feca57 0%, #ff6b6b 100%);
    border-radius: 20px;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    margin-bottom: 15px;
}

.level-value {
    font-size: 1.3em;
    margin-left: 5px;
}

.horse-actions {
    margin-top: 15px;
}

.btn-feed {
    padding: 12px 25px;
    background: linear-gradient(135deg, #ff9f43 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

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

.resources {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 1.2em;
}

.resource-item {
    padding: 8px 15px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(253, 203, 110, 0.3);
}

.horse-stats {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 0.9em;
    color: #636e72;
    font-weight: 600;
}

.stat-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894 0%, #00cec9 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.5);
}

.stat-text {
    font-size: 0.9em;
    color: #2d3436;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--primary-color);
}

.fire-icon {
    display: inline-block;
    animation: fireFlicker 1s ease-in-out infinite;
}

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

/* 任务区 */
.tasks-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.section-header h2 {
    font-size: 1.5em;
    color: var(--dark-color);
}

.date-display {
    font-size: 0.9em;
    color: #636e72;
    font-weight: 600;
}

.task-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.task-input input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s;
}

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

.btn-add {
    padding: 12px 25px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-add:hover {
    transform: translateY(-2px);
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 100px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

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

.task-item.completed {
    opacity: 0.6;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.task-text {
    flex: 1;
    font-size: 1.1em;
    color: var(--dark-color);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #95a5a6;
}

.task-delete {
    padding: 5px 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.task-summary {
    text-align: center;
    font-size: 1.1em;
    color: var(--dark-color);
    font-weight: 600;
}

.progress-percent {
    color: var(--success-color);
    font-weight: 700;
}

/* 习惯追踪 */
.habits-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.habit-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

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

.habit-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.habit-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.habit-progress {
    font-size: 0.9em;
    color: #636e72;
    margin-bottom: 15px;
}

.habit-check-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.habit-check-btn:hover {
    transform: scale(1.05);
}

.habit-check-btn.checked {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.habit-delete-btn {
    margin-top: 10px;
    padding: 5px 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
}

/* 成就系统 */
.achievements-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.achievement-badge {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.achievement-badge.unlocked {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: #feca57;
    animation: badgeUnlock 0.5s ease;
}

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

.achievement-icon {
    font-size: 3em;
    margin-bottom: 10px;
    filter: grayscale(100%);
}

.achievement-badge.unlocked .achievement-icon {
    filter: grayscale(0%);
}

.achievement-name {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--dark-color);
}

/* 激励区 */
.motivation-section {
    margin-bottom: 30px;
}

.motivation-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
}

.motivation-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.motivation-text {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.6;
}

/* 数据统计 */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.stat-card-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 2em;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 0.9em;
    color: #636e72;
    font-weight: 600;
}

/* 按钮 */
.btn-primary, .btn-secondary, .btn-action {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
}

.btn-action {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover, .btn-secondary:hover, .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    font-size: 1.5em;
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #95a5a6;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-body input, .modal-body select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 奖励弹窗 */
.reward-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

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

.reward-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: rewardBounce 0.5s ease;
}

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

.reward-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: rewardSpin 1s ease;
}

@keyframes rewardSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reward-title {
    font-size: 2em;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.reward-message {
    font-size: 1.3em;
    color: var(--dark-color);
    margin-bottom: 25px;
}

/* 页脚 */
.app-footer {
    text-align: center;
    padding: 20px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== 新功能样式 ========== */

/* 快捷功能区 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    transform: perspective(1000px);
}

.action-card:hover {
    transform: perspective(1000px) translateY(-5px) rotateX(5deg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.action-icon {
    font-size: 3em;
    margin-bottom: 10px;
    animation: iconBounce 2s ease-in-out infinite;
}

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

.action-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.action-desc {
    font-size: 0.9em;
    color: #636e72;
    font-weight: 600;
}

/* 马厩系统 */
.stable-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.stable-horse-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
    position: relative;
}

.stable-horse-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stable-horse-card.active {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: var(--gold-color);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.stable-horse-avatar {
    font-size: 4em;
    margin-bottom: 10px;
    animation: horseFloat 3s ease-in-out infinite;
}

.stable-horse-name {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stable-horse-level {
    font-size: 0.9em;
    color: #636e72;
    margin-bottom: 5px;
}

.stable-horse-mood {
    font-size: 2em;
    margin-bottom: 10px;
}

.btn-switch-horse {
    padding: 8px 15px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.btn-switch-horse:hover {
    transform: scale(1.05);
}

.active-badge {
    padding: 5px 15px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
}

/* 数据可视化图表 */
.chart-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chart-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    overflow-x: auto;
}

#chartCanvas {
    max-width: 100%;
    height: auto;
}

/* 3D卡片效果增强 */
.tasks-section, .habits-section, .achievements-section, .motivation-section, .stats-section {
    transform: perspective(1000px);
    transition: all 0.3s ease;
}

.tasks-section:hover, .habits-section:hover, .achievements-section:hover, .stats-section:hover {
    transform: perspective(1000px) translateZ(5px);
}

/* 增强的glassmorphism效果 */
.horse-display, .horse-stats, .tasks-section, .habits-section, .achievements-section, .stable-section, .chart-section, .stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* 马蹄印动画效果 */
@keyframes hoofprint {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(1.5) rotate(180deg);
    }
}

/* 红包奖励动画 */
@keyframes redEnvelopeDrop {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 1;
    }
}

/* 胡萝卜收集动画 */
@keyframes carrotCollect {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

/* 番茄钟脉冲效果 */
@keyframes pomodoroPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 107, 107, 0);
    }
}

.action-card:nth-child(2):hover {
    animation: pomodoroPulse 1.5s infinite;
}

/* 春联装饰效果 */
.app-header::before,
.app-header::after {
    content: '🎋';
    position: absolute;
    font-size: 3em;
    opacity: 0.3;
    animation: swingLantern 3s ease-in-out infinite;
}

.app-header::before {
    left: 20px;
    top: 20px;
}

.app-header::after {
    right: 20px;
    top: 20px;
}

/* 十二生肖元素 */
.zodiac-decoration {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2em;
    opacity: 0.2;
    animation: zodiacRotate 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes zodiacRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 粒子光效 */
.particle-glow {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 215, 0, 1) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: particleGlow 3s ease-in-out infinite;
}

@keyframes particleGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .horse-status {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 1.8em;
    }

    .horse-avatar {
        font-size: 5em;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .habits-grid, .achievements-grid, .stats-grid, .stable-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .lantern, .firecracker {
        font-size: 2em;
    }

    .lantern-left, .firecracker-left {
        left: 20px;
    }

    .lantern-right, .firecracker-right {
        right: 20px;
    }

    .app-header::before,
    .app-header::after {
        font-size: 2em;
    }
}
