:root {
    --primary-color: #3a506b;
    --secondary-color: #5bc0be;
    --accent-color: #f25f5c;
    --light-bg: #f8f9fa;
    --dark-text: #2b2d42;
    --light-text: #edf2f4;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 优雅的导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

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

nav ul li {
    margin-left: 40px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

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

/* 精美的介绍区域 */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 80, 107, 0.9), rgba(91, 192, 190, 0.8));
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    color: var(--light-text);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.5s forwards;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text);
    font-size: 14px;
    letter-spacing: 2px;
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 1s 1s forwards;
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    margin: 15px auto 0;
}

/* 产品展示区 */
.gallery-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.7s forwards;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-header p {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.9s;
}

.gallery-item:nth-child(2) {
    animation-delay: 1s;
}

.gallery-item:nth-child(3) {
    animation-delay: 1.1s;
}

.gallery-item:nth-child(4) {
    animation-delay: 1.2s;
}

.gallery-item:nth-child(5) {
    animation-delay: 1.3s;
}

.gallery-item:nth-child(6) {
    animation-delay: 1.4s;
}

.gallery-item:nth-child(7) {
    animation-delay: 1.5s;
}

.gallery-item:nth-child(8) {
    animation-delay: 1.6s;
}

.gallery-item:nth-child(9) {
    animation-delay: 1.7s;
}

.gallery-item:nth-child(10) {
    animation-delay: 1.8s;
}

.gallery-item:nth-child(11) {
    animation-delay: 1.9s;
}

.gallery-item:nth-child(12) {
    animation-delay: 2s;
}

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

.gallery-image {
    height: 380px;
    overflow: hidden;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
    transform: translateY(100%);
    transition: var(--transition);
}

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

.gallery-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-caption p {
    font-size: 15px;
    opacity: 0.9;
}

/* 页脚设计 */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-col p {
    margin-bottom: 15px;
    opacity: 0.8;
    font-size: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 15px;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 48px;
    }

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

    .gallery-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 20px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 15px;
    }

    .hero {
        min-height: 600px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .gallery-image {
        height: 280px;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 0 10px 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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