/* style.css */
:root {
    --primary-color: #8A9B6E;  /* 莫兰迪绿 */
    --secondary-color: #B8A29A;  /* 陶土色 */
    --accent-color: #6E7B8A;  /* 灰蓝色 */
    --bg-color: #F5F1E6;  /* 米白背景 */
    --text-color: #4A4A48;
    --font-main: 'Quicksand', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: var(--bg-color);
    min-height: 100vh;
    margin: 0;
}

.blur-bg {
    position: fixed;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(15deg, var(--secondary-color) 0%, var(--bg-color) 100%);
    filter: blur(30px);
    opacity: 0.4;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* 标题区样式 */
.timeline-header {
    border-bottom: 2px solid rgba(var(--primary-color), 0.2);
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.title-group h1 {
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin: 0;
    position: relative;
}

.timeline-progress {
    height: 3px;
    background: rgba(var(--primary-color), 0.1);
    margin-top: 1rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 100%;
    background: var(--primary-color);
    animation: progress-grow 2s ease-out;
}

/* 输入面板 */
.input-panel {
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
}

.mood-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mood-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(var(--accent-color), 0.1);
    border: 1px solid rgba(var(--accent-color), 0.2);
}

.mood-option.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.memory-input {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 1px solid rgba(var(--accent-color), 0.3);
    border-radius: 8px;
    resize: vertical;
    font-family: var(--font-main);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.memory-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

/* 上传区域 */
.upload-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.upload-box {
    border: 2px dashed rgba(var(--accent-color), 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color), 0.05);
}

.cloud-icon {
    width: 48px;
    height: 48px;
    fill: rgba(var(--accent-color), 0.5);
}

.save-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #76885D;
    transform: translateY(-2px);
}

.capsule-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 记忆墙布局 */
.memory-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memory-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.photo-item {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.photo-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

@keyframes progress-grow {
    from { width: 0; }
    to { width: 40%; }
}