/**
 * 徒步照片墙 - 酷炫样式文件
 * 沉浸式山景 +背景 时间线设计
 */

/* ==================== CSS 变量 ==================== */
:root {
    --color-bg: #0a0a0f;
    --color-bg-dark: #050508;
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-accent: #f59e0b;
    --color-text: #f3f4f6;
    --color-text-light: #9ca3af;
    --color-text-lighter: #6b7280;
    --color-white: #ffffff;
    --color-error: #ef4444;
    --color-success: #22c55e;

    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== 重置样式 ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== 酷炫动态背景 ==================== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* 星空层 */
.bg-stars {
    background:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 350px 200px, #fff, transparent),
        radial-gradient(2px 2px at 420px 50px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 500px 180px, #fff, transparent),
        radial-gradient(2px 2px at 580px 90px, rgba(255,255,255,0.9), transparent);
    background-color: #0a0a1a;
    background-size: 600px 300px;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 远山 - 使用 SVG 渐变模拟 */
.bg-mountains {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.3) 30%, rgba(15, 23, 42, 0.6) 60%, var(--color-bg) 100%),
                linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #020617 100%);
    opacity: 0.8;
}

/* 使用 CSS 绘制山脉轮廓 */
.bg-mountains::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(160deg, transparent 40%, #0f172a 40%),
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2318344f' fill-opacity='0.4' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom/cover no-repeat;
    opacity: 0.6;
}

/* 近景森林 */
.bg-forest {
    background: linear-gradient(180deg, transparent 50%, var(--color-bg-dark) 100%);
}

.bg-forest::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%230a1628' fill-opacity='0.8' d='M0,256L48,261.3C96,267,192,277,288,266.7C384,256,480,224,576,213.3C672,203,768,213,864,229.3C960,245,1056,267,1152,261.3C1248,256,1344,224,1392,208L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom/cover no-repeat;
}

/* 遮罩层 */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5, 5, 8, 0.4) 70%, rgba(5, 5, 8, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ==================== 滚动进度条 ==================== */
.scroll-progress {
    position: fixed;
    top: 60px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 101;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--color-primary);
}

/* ==================== 导航栏 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    transition: var(--transition-normal);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.05em;
}

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

.nav-link {
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::before {
    width: 80%;
}

/* ==================== 时间线导航 ==================== */
.timeline-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-line {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-primary), var(--color-accent), transparent);
    opacity: 0.3;
}

.timeline-point {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    z-index: 1;
}

.timeline-point:hover {
    background: rgba(16, 185, 129, 0.1);
}

.timeline-point.active .timeline-dot {
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    transform: scale(1.3);
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-text-lighter);
    border: 3px solid var(--color-bg);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.timeline-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.timeline-point:hover .timeline-label,
.timeline-point.active .timeline-label {
    color: var(--color-primary);
}

.timeline-count {
    font-size: 0.75rem;
    color: var(--color-text-lighter);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.timeline-point:hover .timeline-count {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== Hero 区域 ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: heroFadeIn 1s ease;
    background: linear-gradient(135deg, #fff 0%, #a7f3d0 50%, #fcd34d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.2em;
    animation: heroFadeIn 1s ease 0.2s backwards;
    color: var(--color-text-light);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: heroFadeIn 1s ease 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-lighter);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: heroFadeIn 1s ease 0.6s backwards;
}

.scroll-hint span {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* ==================== 时间线区块 ==================== */
.timeline-section {
    padding: 4rem 0;
    margin-left: 80px;
    opacity: 0;
    transform: translateY(50px);
    animation: sectionReveal 0.8s ease forwards;
}

.timeline-section:nth-child(1) { animation-delay: 0s; }
.timeline-section:nth-child(2) { animation-delay: 0.1s; }
.timeline-section:nth-child(3) { animation-delay: 0.2s; }
.timeline-section:nth-child(4) { animation-delay: 0.3s; }
.timeline-section:nth-child(5) { animation-delay: 0.4s; }

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.section-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.date-year {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.date-month {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 500;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

.section-count {
    font-size: 0.85rem;
    color: var(--color-text-lighter);
    white-space: nowrap;
}

/* ==================== 照片墙主体 ==================== */
.gallery {
    padding: 2rem;
    min-height: 50vh;
}

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

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

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    opacity: 0.3;
    color: var(--color-primary);
}

.empty-state p {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

/* ==================== 瀑布流布局 ==================== */
.masonry {
    column-count: 3;
    column-gap: 1.5rem;
}

@media (max-width: 1200px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: photoReveal 0.6s ease forwards;
}

.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.15s; }
.masonry-item:nth-child(3) { animation-delay: 0.2s; }
.masonry-item:nth-child(4) { animation-delay: 0.25s; }
.masonry-item:nth-child(5) { animation-delay: 0.3s; }
.masonry-item:nth-child(6) { animation-delay: 0.35s; }

@keyframes photoReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.masonry-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.2);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.masonry-item:hover .photo-overlay {
    opacity: 1;
}

.photo-date {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ==================== 浮动按钮 ==================== */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.fab::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition-normal);
}

.fab:hover::before {
    animation: shimmer 1s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.fab:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3);
}

.fab svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
}

/* ==================== 弹窗 ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(145deg, #1a1a24, #0f0f15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: modalSlideUp 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-lighter);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-fast);
    background: rgba(255,255,255,0.05);
}

.close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-white);
}

/* ==================== 登录页面 ==================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-box {
    background: linear-gradient(145deg, #1a1a24, #0f0f15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: loginBoxFadeIn 0.6s ease;
}

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

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

.login-icon {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.login-header h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--color-text-lighter);
    font-size: 0.9rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.login-footer a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.login-footer a:hover {
    color: var(--color-primary);
}

/* 登录表单 */
.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box .form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
    transition: var(--transition-fast);
}

.login-box .form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.login-box .form-group input::placeholder {
    color: var(--color-text-lighter);
}

.login-box .btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.login-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.login-box .btn-primary:active {
    transform: translateY(0);
}

.login-box .error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* 表单 */
.login-box {
    text-align: center;
}

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

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: rgba(255,255,255,0.05);
    color: var(--color-white);
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.form-group input::placeholder {
    color: var(--color-text-lighter);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: left;
}

.login-tip {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-lighter);
}

/* 上传表单 */
.upload-box {
    max-width: 450px;
}

.upload-area {
    border: 2px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 1rem;
    background: rgba(16, 185, 129, 0.02);
}

.upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.05);
}

.upload-area svg {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-area p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

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

.preview-container {
    margin-bottom: 1rem;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    margin: 0 auto;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

/* ==================== 灯箱 ==================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

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

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-fast);
    background: rgba(255,255,255,0.1);
    z-index: 301;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.4s ease;
}

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

.lightbox-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

#lightbox-filename {
    font-size: 0.9rem;
    color: var(--color-white);
    opacity: 0.9;
}

.btn-delete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--color-error);
    color: var(--color-white);
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-delete svg {
    width: 16px;
    height: 16px;
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-lighter);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
    background: rgba(0,0,0,0.3);
}

/* ==================== 消息提示 ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1a1a24, #0f0f15);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    z-index: 400;
    opacity: 0;
    transition: var(--transition-normal);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(34, 197, 94, 0.2);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1200px) {
    .timeline-nav {
        display: none;
    }

    .timeline-section {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .header-content {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header {
        flex-wrap: wrap;
    }

    .date-year {
        font-size: 2rem;
    }

    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .fab {
        width: 54px;
        height: 54px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .lightbox-info {
        bottom: 1rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}
