/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0a0a0f;
    --surface: #14141c;
    --surface-2: #1c1c28;
    --text: #e8e8f0;
    --text-dim: #8888a0;
    --accent: #6c5ce7;
    --accent-2: #a29bfe;
    --accent-grad: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Serif SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { font-size: 1.3rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 0.95rem; color: var(--text-dim); font-weight: 500;
    transition: var(--transition); position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent-grad);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
}
.menu-toggle span {
    width: 24px; height: 2px; background: var(--text);
    transition: var(--transition); border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(108,92,231,0.15), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(162,155,254,0.1), transparent 50%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 10, 15, 0.3);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-greeting {
    color: var(--accent-2); font-size: 1rem; margin-bottom: 16px;
    opacity: 0; animation: fadeIn 1s 0.2s forwards;
}
.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700; margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #a29bfe);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    opacity: 0; animation: fadeIn 1s 0.4s forwards;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dim); margin-bottom: 40px;
    opacity: 0; animation: fadeIn 1s 0.6s forwards;
}
.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    opacity: 0; animation: fadeIn 1s 0.8s forwards;
}
.btn {
    padding: 14px 32px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(108,92,231,0.4); }
.btn-outline { border: 2px solid rgba(255,255,255,0.2); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-2); background: rgba(162,155,254,0.1); }
.scroll-hint {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    text-align: center; color: var(--text-dim); font-size: 0.8rem;
}
.scroll-line {
    width: 1px; height: 40px; margin: 8px auto 0;
    background: linear-gradient(to bottom, var(--text-dim), transparent);
    animation: scrollDown 2s infinite;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== 通用 Section ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    color: var(--accent-2); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
    margin-bottom: 12px;
}
.section-desc { color: var(--text-dim); font-size: 1rem; }

/* ===== 摄影展示 ===== */
.gallery-section { padding: 100px 0; background: var(--bg); }
.filter-bar {
    display: flex; justify-content: center; gap: 12px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 20px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--surface); color: var(--text-dim);
    font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.filter-btn.active { background: var(--accent-grad); color: #fff; border-color: transparent; }

.masonry {
    columns: 3; column-gap: 20px;
}
.photo-item {
    break-inside: avoid; margin-bottom: 20px;
    border-radius: var(--radius); overflow: hidden;
    background: var(--surface); cursor: pointer;
    transition: var(--transition); position: relative;
}
.photo-item:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.photo-item.hidden { display: none; }
.photo-img {
    width: 100%; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; position: relative; overflow: hidden;
}
.photo-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 50%);
    opacity: 0; transition: var(--transition);
}
.photo-item:hover .photo-img::after { opacity: 1; }
.photo-emoji { z-index: 1; }
.photo-info { padding: 16px; }
.photo-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.photo-info p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; }
.photo-tag {
    display: inline-block; font-size: 0.75rem;
    padding: 2px 10px; border-radius: 50px;
    background: rgba(108,92,231,0.15); color: var(--accent-2);
}
.gallery-note, .music-note {
    text-align: center; color: var(--text-dim);
    font-size: 0.85rem; margin-top: 32px;
}

/* ===== 音乐板块 ===== */
.music-section { padding: 100px 0; background: var(--surface); }
.music-layout {
    display: grid; grid-template-columns: 360px 1fr;
    gap: 32px; align-items: start;
}
.player-card {
    background: var(--surface-2); border-radius: 16px;
    padding: 32px; text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 100px;
}
.player-cover {
    width: 200px; height: 200px; margin: 0 auto 24px;
    position: relative;
}
.cover-ring {
    position: absolute; inset: -10px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 8s linear infinite;
}
.cover-ring.paused { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.cover-img {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; background: var(--accent-grad);
}
.cover-img.playing { animation: pulse 2s ease infinite; }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.player-info { margin-bottom: 24px; }
.player-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.player-info p { color: var(--text-dim); font-size: 0.9rem; }
.player-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 24px; margin-bottom: 24px;
}
.control-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--text-dim);
    transition: var(--transition); padding: 8px;
}
.control-btn:hover { color: var(--text); }
.play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-grad); color: #fff;
    font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
}
.play-btn:hover { transform: scale(1.08); color: #fff; }
.player-progress {}
.progress-bar {
    height: 4px; background: rgba(255,255,255,0.1);
    border-radius: 50px; cursor: pointer; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%; background: var(--accent-grad);
    transition: width 0.3s linear;
}
.progress-time {
    display: flex; justify-content: space-between;
    margin-top: 8px; font-size: 0.75rem; color: var(--text-dim);
}

.playlist { background: var(--surface-2); border-radius: 16px; padding: 24px; border: 1px solid rgba(255,255,255,0.05); }
.playlist-title { font-size: 1.1rem; margin-bottom: 16px; }
.track-list { display: flex; flex-direction: column; gap: 4px; }
.track-item {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 16px; border-radius: 8px;
    cursor: pointer; transition: var(--transition);
}
.track-item:hover { background: rgba(255,255,255,0.04); }
.track-item.active { background: rgba(108,92,231,0.12); }
.track-num { font-size: 0.85rem; color: var(--text-dim); width: 24px; }
.track-cover {
    width: 44px; height: 44px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
}
.track-info { flex: 1; min-width: 0; }
.track-info h4 { font-size: 0.95rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-info p { font-size: 0.8rem; color: var(--text-dim); }
.track-duration { font-size: 0.8rem; color: var(--text-dim); }
.track-equalizer { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.track-equalizer span {
    width: 3px; background: var(--accent-2); border-radius: 2px;
    animation: equalizer 0.8s ease infinite alternate;
}
.track-equalizer span:nth-child(2) { animation-delay: 0.2s; }
.track-equalizer span:nth-child(3) { animation-delay: 0.4s; }
.track-item.active .track-equalizer { display: flex; }
.track-item.active .track-duration { display: none; }
@keyframes equalizer {
    to { height: 16px; }
    from { height: 4px; }
}

/* ===== 关于 ===== */
.about-section { padding: 100px 0; background: var(--bg); }
.about-content { max-width: 640px; margin: 0 auto; text-align: center; }
.about-text { margin-bottom: 40px; }
.about-text p {
    font-size: 1.1rem; line-height: 2; margin-bottom: 16px; color: var(--text-dim);
}
.about-contact { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-link {
    padding: 10px 24px; border-radius: 50px;
    background: var(--surface); border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem; transition: var(--transition);
}
.contact-link:hover { border-color: var(--accent-2); background: rgba(162,155,254,0.1); }

/* ===== 页脚 ===== */
.footer { padding: 40px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer p { color: var(--text-dim); font-size: 0.85rem; }

/* ===== 灯箱 ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-content {
    max-width: 80vw; max-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    font-size: 10rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: none; border: none;
    color: #fff; cursor: pointer; font-size: 2rem;
    opacity: 0.6; transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 50;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-grad); color: #fff;
    border: none; cursor: pointer; font-size: 1.2rem;
    opacity: 0; transform: scale(0); transition: var(--transition);
}
.back-to-top.show { opacity: 1; transform: scale(1); }
.back-to-top:hover { transform: scale(1.1); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .masonry { columns: 2; }
    .music-layout { grid-template-columns: 1fr; }
    .player-card { position: relative; top: 0; }
}
@media (max-width: 600px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 16px 24px; gap: 16px; }
    .nav-links.open { display: flex; }
    .menu-toggle { display: flex; }
    .masonry { columns: 1; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }
    .player-cover { width: 160px; height: 160px; }
}
