/* 全局样式 */
:root {
    --primary-black: #1a1a1a;
    --primary-white: #ffffff;
    --primary-gray: #f0f0f0;
    --accent-blue: #2c3e50;
    --accent-gold: #d4af37;
    --text-gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--primary-black);
    background-color: var(--primary-white);
    line-height: 1.6;
}

/* 导航栏样式 */
nav {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-white);
}

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

nav a {
    color: var(--primary-white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

nav a:hover {
    color: var(--accent-gold);
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-gold);
}

nav a.active::after {
    width: 100%;
}

/* 首页样式 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.4)),
                url('https://hpi-hub.tos-cn-beijing.volces.com/static/batch_17/1757473976872-3861.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-white);
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

/* 页面内容容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    min-height: calc(100vh - 80px);
}

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--primary-black);
    letter-spacing: 2px;
}

/* 风尚辑网格布局 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--primary-white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    font-weight: 500;
}

.gallery-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 型录瀑布流布局 */
.lookbook-grid {
    display: columns;
    column-gap: 2rem;
    column-count: 3;
    margin-bottom: 3rem;
}

.lookbook-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lookbook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.lookbook-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.lookbook-item:hover img {
    transform: scale(1.05);
}

/* 匠心页面 */
.craftsmanship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.craftsmanship-item {
    text-align: center;
    background-color: var(--primary-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.craftsmanship-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.craftsmanship-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.craftsmanship-item:hover img {
    transform: scale(1.05);
}

.craftsmanship-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-black);
    font-weight: 500;
}

.craftsmanship-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-black);
    color: var(--text-gray);
    margin-top: 4rem;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 5rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

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

    .gallery-item img {
        height: 300px;
    }

    .lookbook-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }

    .craftsmanship-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .craftsmanship-item img {
        width: 200px;
        height: 200px;
    }
}

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

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .lookbook-grid {
        column-count: 1;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}