* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #faf8f5;
    color: #333;
}

/* 卡片入场动画 */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 导航栏 ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 100vw);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    background: rgba(249, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 16px rgba(44, 95, 62, 0.12);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease,
                background 0.3s ease;
}

.main-nav.hidden {
    transform: translateX(-50%) translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

/* scenes 页的导航：更透明 */
#scenes-view ~ .main-nav,
.main-nav.scenes-mode {
    background: rgba(15, 42, 30, 0.55);
    box-shadow: none;
}

.nav-btn {
    flex: 1;
    padding: 0.45rem 0.3rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(44, 95, 62, 0.65);
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    text-align: center;
    white-space: nowrap;
}

#scenes-view ~ .main-nav .nav-btn,
.main-nav.scenes-mode .nav-btn {
    color: rgba(255, 255, 255, 0.65);
}

.nav-btn:hover {
    background: rgba(44, 95, 62, 0.08);
}

#scenes-view ~ .main-nav .nav-btn:hover,
.main-nav.scenes-mode .nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-btn.active {
    background: #2C5F3E;
    color: #fff;
    font-weight: 600;
}

#scenes-view ~ .main-nav .nav-btn.active,
.main-nav.scenes-mode .nav-btn.active {
    background: rgba(212, 175, 55, 0.85);
    color: #fff;
}

/* 导航栏和各视图的间距 */
.main-nav { padding-top: env(safe-area-inset-top, 0); }
#map, #gallery-view, #place-view, #upload-view { padding-top: 58px; }

/* ===== 视图框架 ===== */
.view {
    display: none;
    min-height: 100vh;
}

.view.active {
    display: block;
}

/* ===== 首页 Hero ===== */
#home-view {
    min-height: 100vh;
    overflow: hidden;
}

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(20, 45, 32, 0.65) 0%,
        rgba(30, 60, 42, 0.75) 40%,
        rgba(20, 45, 32, 0.88) 100%
    );
}

.home-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 480px;
    animation: homeFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes homeFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.home-badge-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.home-quote {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.85;
    font-style: italic;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.home-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.home-enter-btn {
    display: inline-block;
    padding: 0.875rem 2.8rem;
    background: linear-gradient(135deg, #D4AF37 0%, #c49a2f 50%, #b8891f 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.45);
    transition: all 0.25s ease;
}

.home-enter-btn:hover {
    background: linear-gradient(135deg, #e0bc45 0%, #d4af37 50%, #c49a2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.6);
}

.home-enter-btn:active {
    transform: scale(0.97);
}

/* ===== 飘落花瓣 ===== */
.petals-container {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(ellipse at 40% 30%, #fff8f0 0%, #f5e6e0 60%, #e8c9c0 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    animation: petalFall linear forwards;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@keyframes petalFall {
    0%   { opacity: 0;    transform: translateY(-20px) rotate(0deg) scale(0.6); }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.7; }
    100% { opacity: 0;    transform: translateY(105vh) rotate(480deg) scale(0.9); }
}

@keyframes petalBurst {
    0%   { opacity: 0.9; transform: translate(0, 0) scale(0.8) rotate(0deg); }
    100% { opacity: 0;  transform: translate(var(--tx), var(--ty)) scale(0.5) rotate(360deg); }
}

/* ===== 校友记忆打卡列表页 ===== */
#memory-view {
    background: #F9F7F2;
    padding-bottom: 2rem;
}

.memory-header {
    background: linear-gradient(160deg, #2C5F3E 0%, #1e3d2a 100%);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}

.memory-header-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
}

.memory-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.88);
}

.memory-progress-icon {
    color: #D4AF37;
    font-size: 0.65rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 打卡卡片 */
.memory-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.055);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(0, 0, 0, 0.045);
    position: relative;
}

.memory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.memory-card.lit {
    border-color: rgba(212, 168, 67, 0.3);
}

.memory-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a843, #c4912f);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.5);
}

.memory-card.lit .memory-card-badge {
    opacity: 1;
    transform: scale(1);
}

.memory-card-badge svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.memory-card-top {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.memory-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2d5a3d, #3d7a52);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.memory-card.lit .memory-card-icon {
    background: linear-gradient(135deg, #d4a843, #c4912f);
}

.memory-card-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.memory-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.memory-card-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}

.memory-card-sub {
    font-size: 0.75rem;
    color: #8a7a70;
    font-weight: 400;
}

.memory-card-body {
    padding: 0 1.25rem 0.75rem;
}

.memory-card-quote {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 0.925rem;
    color: #5a4a40;
    line-height: 1.72;
    font-style: italic;
}

.memory-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0ebe6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.memory-card-lit-date {
    font-size: 0.75rem;
    color: #b89a5a;
    display: none;
    align-items: center;
    gap: 0.3rem;
    font-style: italic;
}

.memory-card.lit .memory-card-lit-date {
    display: flex;
}

.memory-card-lit-date svg {
    width: 12px;
    height: 12px;
    color: #d4a843;
}

.memory-card-btn {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1.5px solid #2C5F3E;
    color: #2C5F3E;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.memory-card-btn:hover {
    background: #2C5F3E;
    color: #fff;
}

.memory-card.lit .memory-card-btn {
    background: #D4AF37;
    border-color: transparent;
    color: #fff;
    cursor: default;
}

/* 打卡脉冲动画 */
@keyframes checkinPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(212, 168, 67, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 168, 67, 0); }
}

.memory-card.just-lit {
    animation: checkinPulse 0.5s ease-out;
}

/* ===== 详情抽屉 (Bottom Sheet) ===== */
.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-sheet.active {
    pointer-events: all;
    opacity: 1;
}

.bottom-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.bottom-sheet.active .bottom-sheet-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0.75rem 0 2rem;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.bottom-sheet.active .bottom-sheet-content {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: #e0dbd5;
    border-radius: 2px;
    margin: 0 auto 1.25rem;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem 1.25rem;
    border-bottom: 1px solid #f0ebe6;
}

.detail-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d5a3d, #3d7a52);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.detail-icon-wrap.lit {
    background: linear-gradient(135deg, #d4a843, #c4912f);
}

.detail-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.detail-title-wrap {
    flex: 1;
}

.detail-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c1810;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.detail-sub {
    font-size: 0.8rem;
    color: #8a7a70;
}

.bottom-sheet-body {
    padding: 1.25rem 1.5rem;
}

.detail-quote {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1rem;
    color: #5a4a40;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1rem;
}

.detail-meta {
    font-size: 0.8rem;
    color: #9a8a80;
    font-style: italic;
}

.bottom-sheet-actions {
    padding: 0.75rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-checkin-btn {
    width: 100%;
    padding: 0.875rem;
    background: #2d5a3d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.05em;
}

.detail-checkin-btn:hover {
    background: #3d7a52;
}

.detail-checkin-btn.lit {
    background: linear-gradient(135deg, #d4a843, #c4912f);
    cursor: default;
}

.detail-checkin-btn.lit:hover {
    background: linear-gradient(135deg, #d4a843, #c4912f);
}

.detail-upload-btn {
    width: 100%;
    padding: 0.875rem;
    background: #fff;
    color: #2d5a3d;
    border: 1.5px solid #2d5a3d;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.detail-upload-btn:hover {
    background: #2d5a3d;
    color: #fff;
}

/* ===== 地图视图 ===== */
#map-view {
    position: relative;
}

#map {
    width: 100%;
    height: 100vh;
}

.side-panel {
    display: none;
}

.side-panel {
    width: 350px;
    background: white;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.photo-grid img:hover {
    transform: scale(1.05);
}

/* ===== 上传视图 ===== */
#upload-view {
    padding: 2rem 1rem;
}

#upload-view.view.active {
    display: block;
}

.upload-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.upload-container h2 {
    text-align: center;
    color: #2d5a3d;
    margin-bottom: 1.5rem;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0dbd5;
    border-radius: 8px;
    font-size: 1rem;
    background: #faf8f5;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a3d;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.hint {
    font-size: 0.8rem;
    color: #9a8a80;
    margin-top: 0.25rem;
}

.primary-btn {
    width: 100%;
    padding: 0.875rem;
    background: #2d5a3d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-btn:hover {
    background: #3d7a52;
}

#upload-status {
    margin-top: 1rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
}

#upload-status.success {
    background: #d4edda;
    color: #155724;
}

#upload-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* ===== 地点选择器 ===== */
.location-picker {
    position: relative;
}

.picker-input-wrap {
    position: relative;
}

.picker-input-wrap input {
    width: 100%;
    padding: 0.75rem;
    padding-right: 2rem;
    border: 1px solid #e0dbd5;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s;
}

.picker-input-wrap input:focus {
    outline: none;
    border-color: #2d5a3d;
}

.picker-clear {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.picker-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #e0dbd5;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

.picker-dropdown.open {
    display: block;
}

.picker-section {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid #f0ece6;
}

.picker-section:last-child {
    border-bottom: none;
}

.picker-section-title {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* 快捷标签 */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.quick-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: #f0ece6;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.quick-tag:hover {
    background: #2d5a3d;
    color: #fff;
}

/* 最近选择列表 */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-item {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    transition: background 0.15s;
}

.recent-item:hover {
    background: #f5f3f0;
    color: #2d5a3d;
}

/* 搜索结果 */
.picker-results {
    padding: 0.5rem 0;
}

.result-category {
    padding: 0.4rem 1rem 0.2rem;
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.result-item {
    padding: 0.55rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.15s;
}

.result-item:hover {
    background: #f5f3f0;
    color: #2d5a3d;
}

.result-item.selected {
    background: #e8f0eb;
    color: #2d5a3d;
    font-weight: 500;
}

.result-item-name {
    flex: 1;
}

.result-item-count {
    font-size: 0.75rem;
    color: #aaa;
}

/* 无结果 */
.no-result {
    padding: 1.5rem 1rem;
    text-align: center;
}

.no-result-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.no-result-tip {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.6;
}

.no-result-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.no-result-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f0ece6;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.no-result-tag:hover {
    background: #2d5a3d;
    color: #fff;
}

/* 已选中的地点标签 */
.picker-selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: #e8f0eb;
    border: 1px solid #2d5a3d;
    border-radius: 20px;
    font-size: 0.88rem;
    color: #2d5a3d;
    cursor: pointer;
}

.picker-selected-tag .tag-remove {
    font-size: 1rem;
    line-height: 1;
    margin-left: 2px;
}

/* 分类快捷入口（在无结果时显示） */
.cat-quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.cat-quick-btn {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    background: #f5f3f0;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    border: 1px solid #e0dbd5;
    transition: all 0.2s;
}

.cat-quick-btn:hover {
    background: #2d5a3d;
    color: #fff;
    border-color: #2d5a3d;
}

/* ===== 模态框 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.modal img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
}

.modal-info {
    color: white;
    text-align: center;
    margin-top: 1rem;
}

/* ===== Leaflet 定制 ===== */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    font-size: 14px;
}

.leaflet-control-layers {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.gate-marker {
    background: transparent !important;
    border: none !important;
}

.building-label {
    background: transparent !important;
    border: none !important;
}

.building-tooltip {
    background: rgba(0,0,0,0.75) !important;
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
}

.building-tooltip::before {
    border-top-color: rgba(0,0,0,0.75) !important;
}

/* ===== 建筑信息样式 ===== */
#building-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

#building-info .building-desc {
    color: #444;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

#building-info .building-year {
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

#building-info .building-alias {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px) {
    .home-title {
        font-size: 2rem;
    }

    .home-quote {
        font-size: 1.05rem;
    }

    nav {
        gap: 0.3rem;
        padding: 0.55rem 0.75rem;
    }

    .nav-btn {
        font-size: 0.68rem;
        padding: 0.45rem 0.15rem;
        letter-spacing: 0;
    }

    .memory-grid {
        padding: 1rem;
        gap: 0.875rem;
    }

    .side-panel {
        width: 100%;
        height: 40%;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    #map {
        height: 100vh;
    }
}

/* ===== 经典校园景色页 ===== */
#scenes-view {
    min-height: 100vh;
    overflow: hidden;
    background: #0f2a1e;
}

.scenes-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100vh;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: none;
}

.scenes-track::-webkit-scrollbar {
    display: none;
}

.scene-card {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.scene-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.scene-card-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 3rem 5rem;
    max-width: 380px;
    width: 100%;
    animation: sceneCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sceneCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scene-eyebrow {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(212, 175, 55, 0.8);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.scene-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.scene-copy {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.9;
    font-style: italic;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* 引导卡片 */
.scene-card-cta {
    background: linear-gradient(160deg, #1a3d2a 0%, #0f2a1e 50%, #0a1f14 100%);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(74,140,94,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(44,95,62,0.2) 0%, transparent 60%);
}

.scene-card-cta .scene-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    animation: sceneCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-ornament {
    font-size: 1.2rem;
    color: #D4AF37;
    letter-spacing: 0.5em;
    animation: ctaGlow 2s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

.cta-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cta-btn {
    margin-top: 0.5rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #D4AF37 0%, #c49a2f 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(212,175,55,0.4);
    transition: all 0.25s ease;
}

.cta-btn:hover {
    background: linear-gradient(135deg, #e0bc45 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212,175,55,0.55);
}

.cta-btn:active {
    transform: scale(0.97);
}

/* 进度指示器 */
.scenes-progress {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.scene-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scene-dot.active {
    background: #D4AF37;
    width: 20px;
    border-radius: 3px;
}

/* 滑动提示 */
.swipe-hint {
    position: fixed;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.15em;
    z-index: 10;
    animation: hintPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateX(-4px); }
    50%       { opacity: 0.7; transform: translateX(-50%) translateX(4px); }
}

/* ===== 查看图片页 ===== */
#gallery-view {
    background: #F9F7F2;
    min-height: 100vh;
    padding-bottom: 2.5rem;
}

.gallery-header {
    background: linear-gradient(160deg, #2C5F3E 0%, #1e3d2a 100%);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.gallery-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.gallery-sub {
    font-size: 0.825rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.08em;
}

/* 搜索框 */
.gallery-search-wrap {
    padding: 1.25rem 1.25rem 0;
}

.gallery-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1.5px solid rgba(44,95,62,0.15);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    box-shadow: 0 2px 12px rgba(44,95,62,0.07);
}

.search-icon {
    font-size: 1rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.gallery-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: #333;
    background: transparent;
    font-family: inherit;
}

.gallery-search input::placeholder {
    color: #aaa;
    font-size: 0.85rem;
}

/* 搜索结果 */
.gallery-search-results {
    display: none;
    padding: 0.75rem 1.25rem;
}

.search-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.9rem;
}

/* 分类区 */
.gallery-section {
    padding: 1.5rem 1.25rem 0;
}

.gallery-section-title {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 0.875rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    background: #fff;
    border: 1.5px solid rgba(44,95,62,0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 6px rgba(44,95,62,0.06);
}

.category-card:hover {
    border-color: #2C5F3E;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44,95,62,0.12);
}

.category-card:active {
    transform: scale(0.97);
}

.cat-icon {
    font-size: 1.5rem;
}

.cat-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2C5F3E;
}

.cat-count {
    font-size: 0.7rem;
    color: #aaa;
}

/* 分类地点列表 */
.category-place-list {
    display: none;
    padding: 1rem 1.25rem;
}

.place-list-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.place-list-back {
    background: none;
    border: none;
    color: #2C5F3E;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    font-family: inherit;
}

.place-list-back:hover {
    background: rgba(44,95,62,0.08);
}

.place-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.place-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.place-item-card {
    background: #fff;
    border: 1.5px solid rgba(44,95,62,0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 1px 6px rgba(44,95,62,0.06);
    text-align: left;
}

.place-item-card:hover {
    border-color: #4A8C5E;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44,95,62,0.12);
}

.place-item-thumb {
    height: 70px;
    background: linear-gradient(135deg, #c8d8c8, #a8c0a8);
    border-radius: 10px 10px 0 0;
}

.place-item-name {
    padding: 0.5rem 0.65rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-item-count {
    padding: 0 0.65rem 0.5rem;
    font-size: 0.72rem;
    color: #aaa;
}

/* 热门地点 */
#gallery-hot {
    padding: 1.5rem 0 1.5rem 1.25rem;
}

.hot-places-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 1.25rem;
    padding-bottom: 0.5rem;
}

.hot-places-track::-webkit-scrollbar {
    display: none;
}

.hot-place-card {
    flex: 0 0 130px;
    background: #fff;
    border: 1.5px solid rgba(44,95,62,0.12);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.22s ease;
    box-shadow: 0 2px 10px rgba(44,95,62,0.08);
    text-align: left;
}

.hot-place-card:hover {
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212,175,55,0.2);
}

.hot-place-thumb {
    height: 80px;
    background: linear-gradient(145deg, #4A8C5E 0%, #2C5F3E 100%);
    border-radius: 12px 12px 0 0;
}

.hot-place-name {
    padding: 0.5rem 0.65rem 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.hot-place-count {
    padding: 0 0.65rem 0.5rem;
    font-size: 0.7rem;
    color: #aaa;
}

/* ===== 具体地点照片页 ===== */
#place-view {
    background: #F9F7F2;
    min-height: 100vh;
}

.place-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(44,95,62,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.place-header-back {
    font-size: 0.85rem;
    color: #2C5F3E;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    align-self: flex-start;
}

.place-info {
    text-align: center;
}

.place-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C5F3E;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.place-photo-count {
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.05em;
}

.place-upload-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #D4AF37 0%, #c49a2f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 12px rgba(212,175,55,0.3);
    transition: all 0.22s ease;
    text-align: center;
}

.place-upload-btn:hover {
    background: linear-gradient(135deg, #e0bc45 0%, #d4af37 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212,175,55,0.4);
}

/* 瀑布流 */
.place-masonry {
    columns: 2;
    column-gap: 8px;
    padding: 8px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    animation: masonryIn 0.4s ease both;
}

@keyframes masonryIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.masonry-img {
    width: 100%;
    background: linear-gradient(145deg, #c8d8c8, #a8c0a8);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 4px 6px;
    position: relative;
}

.masonry-year {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.place-empty {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
}

.place-empty p:first-child {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 0.5rem;
}

/* ===== Leaflet 地图弹窗 ===== */
/* 重置 Leaflet 默认 popup 样式 */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(44, 95, 62, 0.18) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 100% !important;
}

.leaflet-popup-tip-container {
    display: none;
}

.leaflet-popup-close-button {
    color: #aaa !important;
    font-size: 18px !important;
    top: 8px !important;
    right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    text-align: center !important;
}

.leaflet-popup-close-button:hover {
    color: #2C5F3E !important;
}

/* 自定义弹窗内容 */
.map-popup {
    padding: 1rem 1rem 0.875rem;
    font-family: inherit;
    min-width: 240px;
}

.popup-header {
    margin-bottom: 0.5rem;
}

.popup-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2C5F3E;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.popup-year {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
}

.popup-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popup-photos {
    margin-bottom: 0.75rem;
}

.popup-photo-hint {
    display: block;
    font-size: 0.75rem;
    color: #2C5F3E;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.popup-thumbs {
    display: flex;
    gap: 6px;
}

.popup-thumb {
    flex: 1;
    height: 56px;
    background: linear-gradient(135deg, #c8d8c8, #a8c0a8);
    border-radius: 6px;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
}

.popup-btn {
    flex: 1;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    font-family: inherit;
    letter-spacing: 0.03em;
}

.popup-btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(44, 95, 62, 0.3);
    color: #2C5F3E;
}

.popup-btn-ghost:hover {
    background: rgba(44, 95, 62, 0.06);
    border-color: #2C5F3E;
}

.popup-btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #c49a2f 100%);
    color: #fff;
}

.popup-btn-gold:hover {
    background: linear-gradient(135deg, #e0bc45 0%, #d4af37 100%);
}

/* ===== 留言墙 ===== */
#messagewall-view {
    background: #f0f7f1;
    min-height: 100vh;
    padding: 0 0 60px;
    overflow-y: auto;
}

.mw-header {
    text-align: center;
    padding: 60px 24px 36px;
}

.mw-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.85rem;
    font-weight: 400;
    color: #2c5f3e;
    margin: 0 0 8px;
    letter-spacing: 0.06em;
}

.mw-sub {
    font-size: 0.82rem;
    color: #5a7a5e;
    margin: 0;
    font-family: 'EB Garamond', serif;
    font-style: italic;
}

.mw-compose {
    margin: 0 20px 44px;
    padding: 24px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(44, 95, 62, 0.08);
}

.mw-mood-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.mw-mood-label {
    font-size: 0.78rem;
    color: #5a7a5e;
    white-space: nowrap;
    font-family: 'EB Garamond', serif;
    letter-spacing: 0.04em;
}

.mw-moods {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mw-mood-tag {
    padding: 5px 12px;
    background: transparent;
    border: 1.5px solid #c5dbc5;
    color: #3d6b45;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: 'EB Garamond', serif;
    letter-spacing: 0.04em;
    border-radius: 20px;
}

.mw-mood-tag:hover {
    background: rgba(44, 95, 62, 0.08);
    border-color: #3d7a52;
}

.mw-mood-tag.active {
    background: #2c5f3e;
    color: #fff;
    border-color: #2c5f3e;
}

.mw-textarea {
    width: 100%;
    min-height: 72px;
    border: 1.5px solid #c5dbc5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    color: #2c3e28;
    resize: none;
    font-family: 'EB Garamond', serif;
    line-height: 1.8;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fafcfb;
}

.mw-textarea::placeholder {
    color: #a0b8a0;
    font-style: italic;
}

.mw-textarea:focus {
    outline: none;
    border-color: #3d7a52;
}

.mw-compose-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
    gap: 16px;
}

.mw-char-count {
    font-size: 0.7rem;
    color: #a0b8a0;
}

.mw-submit-btn {
    background: linear-gradient(135deg, #2c5f3e 0%, #3d7a52 100%);
    border: none;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'EB Garamond', serif;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 9px 24px;
    border-radius: 20px;
}

.mw-submit-btn:hover {
    background: linear-gradient(135deg, #3d7a52 0%, #4a8a62 100%);
}

.mw-success-toast {
    text-align: center;
    padding: 8px 0 20px;
    font-size: 0.85rem;
    color: #3d7a52;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.4s ease;
    pointer-events: none;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    letter-spacing: 0.03em;
}

.mw-success-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.mw-wall {
    columns: 3 140px;
    column-gap: 14px;
    padding: 0 18px;
    align-items: top;
}

.mw-card {
    break-inside: avoid;
    border-radius: 10px;
    padding: 16px 15px 18px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    cursor: default;
    transition: all 0.28s ease;
    animation: cardStick 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    box-shadow: 0 2px 8px rgba(44, 95, 62, 0.08);
}

@keyframes cardStick {
    0% { opacity: 0; transform: translateY(-14px) scale(0.95); }
    60% { opacity: 1; transform: translateY(2px) scale(1.005); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mw-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(44, 95, 62, 0.14) !important;
}

.mw-card-color-0 { background: #fff9e6; }
.mw-card-color-1 { background: #e6f4ea; }
.mw-card-color-2 { background: #e8f0fb; }
.mw-card-color-3 { background: #fce8f0; }
.mw-card-color-4 { background: #f3e8fd; }
.mw-card-color-5 { background: #e0f7f7; }
.mw-card-color-6 { background: #fff0f0; }
.mw-card-color-7 { background: #fffbe6; }
.mw-card-color-8 { background: #e6fffe; }
.mw-card-color-9 { background: #f0e6ff; }

.mw-card-mood {
    font-size: 0.68rem;
    color: #5a7a5e;
    letter-spacing: 0.1em;
    font-family: 'EB Garamond', serif;
}

.mw-card-text {
    font-size: 0.86rem;
    color: #2c3e28;
    line-height: 1.72;
    font-family: 'EB Garamond', serif;
    word-break: break-word;
}

.mw-empty {
    column-span: all;
    text-align: center;
    padding: 60px 0;
    color: #a0b8a0;
    font-size: 0.88rem;
    font-style: italic;
    font-family: 'EB Garamond', serif;
}

@media (max-width: 600px) {
    .mw-wall {
        columns: 2 120px;
        gap: 12px;
        padding: 0 14px;
    }
    .mw-compose {
        margin: 0 14px 36px;
    }
    .mw-title { font-size: 1.6rem; }
    .mw-header { padding: 48px 20px 28px; }
}

