/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --gold: #d4af37;
    --text-light: #f5f5f5;
    --text-gray: #b0b0b0;
    --border-color: #4a4a4a;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Jost', sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== 导航栏 ==================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-transparent {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8), transparent);
}

.nav-solid {
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

/* ==================== 首页英雄区 ==================== */
.hero-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
}

.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero-divider {
    width: 100px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto 30px;
    animation: expandWidth 1s ease 0.3s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.7s both;
}

.btn-primary:hover {
    background-color: var(--gold);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 12px;
    letter-spacing: 2px;
    animation: fadeIn 1s ease 1s both;
}

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

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

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

/* ==================== 作品集页面 ==================== */
.gallery-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.title-divider {
    width: 80px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 30px;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--gold);
    color: var(--primary-bg);
    border-color: var(--gold);
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-item.hidden {
    display: none;
}

/* ==================== 灯箱 ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border: 2px solid var(--gold);
}

.lightbox-caption {
    text-align: center;
    margin-top: 20px;
}

.lightbox-caption h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: transparent;
    color: var(--gold);
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-gray);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ==================== 关于页面 ==================== */
.about-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.about-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid var(--gold);
}

.image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--gold);
    pointer-events: none;
}

.about-text {
    padding-top: 20px;
}

.about-intro {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 30px;
    font-weight: 300;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.philosophy {
    margin: 50px 0;
    padding: 40px;
    background-color: var(--secondary-bg);
    border-left: 3px solid var(--gold);
}

.philosophy h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.philosophy blockquote {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--gold);
}

.contact-link svg {
    color: var(--gold);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .filter-buttons {
        flex-wrap: wrap;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 5px 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        right: 10px;
    }
}
