﻿/* ============================================
   光影风暴 LightStorm - 主样式表
   ============================================ */

/* --- CSS 变量 --- */
:root {
    --bg-primary: #08080c;
    --bg-secondary: #0f0f15;
    --bg-card: #14141e;
    --text-primary: #e8e6e3;
    --text-secondary: #8b8a92;
    --text-muted: #5c5b66;
    --accent: #d4a574;
    --accent-glow: rgba(212, 165, 116, 0.3);
    --accent-bright: #f0c78e;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 基础重置 --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

body {
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* --- 导航栏 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 2rem;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.logo-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
    50% { filter: drop-shadow(0 0 16px var(--accent-glow)); }
}

.logo-text {
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- 英雄区域 --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: "Playfair Display", serif;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: "Playfair Display", "Noto Sans SC", serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-line:last-child {
    animation-delay: 0.4s;
}

.title-line .accent {
    color: var(--accent);
    text-shadow: 0 0 80px var(--accent-glow), 0 0 160px var(--accent-glow);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15);
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateY(3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 1;
    animation: fadeInUp 1s ease-out 1.2s both, floatDown 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes floatDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- 动画 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 通用区域标题 --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-family: "Playfair Display", serif;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: "Playfair Display", "Noto Sans SC", serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
}

.section-desc {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
}

/* --- 画廊区域 --- */
.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

/* --- 筛选栏 --- */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-btn.active {
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent);
    border-color: rgba(212, 165, 116, 0.4);
}

/* --- 画廊网格 --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    grid-auto-flow: dense;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    aspect-ratio: 4/3;
    transition: var(--transition-slow);
}

.gallery-card.tall {
    grid-row: span 2;
    aspect-ratio: 3/4;
}

.gallery-card.wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 8, 12, 0.9) 0%,
        rgba(8, 8, 12, 0.3) 40%,
        transparent 100%
    );
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-title {
    transform: translateY(0);
}

.gallery-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transform: translateY(10px);
    transition: var(--transition) 0.05s;
}

.gallery-card:hover .gallery-card-meta {
    transform: translateY(0);
}

.gallery-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    transform: translateY(10px);
    transition: var(--transition) 0.1s;
}

.gallery-card:hover .gallery-card-actions {
    transform: translateY(0);
}

.card-action-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.05);
}

.card-action-btn:hover {
    background: rgba(212, 165, 116, 0.3);
    border-color: var(--accent);
}

.card-action-btn.download-btn {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.4);
}

.card-action-btn.download-btn:hover {
    background: rgba(212, 165, 116, 0.4);
}

/* --- 加载器 --- */
.gallery-loading {
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.loader {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- 关于区域 --- */
.about-section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

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

.stat-number {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.4rem;
}

.about-visual {
    position: relative;
    height: 400px;
}

.about-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,165,116,0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: shapeFloat 6s ease-in-out infinite;
}

.about-shape2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid rgba(212,165,116,0.2);
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: shapeRotate 10s linear infinite;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.08); }
}

@keyframes shapeRotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- 页脚 --- */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   灯箱
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-wrap {
    max-width: 85vw;
    max-height: 70vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5),
                0 0 120px rgba(212,165,116,0.08);
}

.lightbox-image {
    max-width: 85vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    color: white;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 2;
    background: rgba(8,8,12,0.6);
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    color: white;
    border-color: var(--accent);
    background: rgba(212,165,116,0.15);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 1.2rem;
    padding: 0 0.5rem;
}

.lightbox-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.lightbox-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: rgba(212,165,116,0.15);
    border: 1px solid rgba(212,165,116,0.35);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-download:hover {
    background: rgba(212,165,116,0.3);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* --- 滚动揭示动画 --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        height: 200px;
        order: -1;
    }

    .gallery-card.wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.2rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 14vw, 5rem);
    }

    .gallery-section {
        padding: 4rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 0.8rem;
    }

    .gallery-card.wide,
    .gallery-card.tall {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: -45px; right: 10px; }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 55vh;
    }

    .lightbox-info {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .about-section {
        padding: 5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.78rem;
    }
}
