/* 通用样式 */
:root {
    --primary-bg-color: #050505;
    --accent-color: #CCA43B;
    --text-color: #F0F0F0;
    --light-text-color: #CCCCCC;
    --font-serif: 'Source Han Serif SC', '思源宋体', serif;
    --font-sans: 'Source Han Sans SC', '思源黑体', sans-serif;
}

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

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--primary-bg-color);
    line-height: 1.6;
    overflow-x: hidden; /* 防止横向滚动条 */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E0C06A; /* 鼠标悬停时的亮金色 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--accent-color);
    margin-bottom: 1em;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 3em;
    background: rgba(0, 0, 0, 0.7); /* 半透明背景 */
    backdrop-filter: blur(5px); /* 毛玻璃效果 */
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar .logo {
    font-family: var(--font-serif);
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
}

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

.navbar nav ul li {
    margin-left: 2.5em;
}

.navbar nav ul li a {
    font-size: 1.1em;
    padding: 0.5em 0;
    position: relative;
    color: var(--light-text-color);
}

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

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
    width: 100%;
}
.navbar nav ul li a:hover,
.navbar nav ul li a.active {
    color: var(--accent-color);
}


/* 全屏滚动容器 */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* 启用滚动吸附 */
}

.full-screen-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start; /* 吸附到容器顶部 */
    background-color: var(--primary-bg-color);
    overflow: hidden; /* 确保内容不溢出 */
}

/* Hero Section */
.hero-section {
    flex-direction: column;
    color: var(--text-color);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* 使视频变暗，突出文字 */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2em;
    background: rgba(0, 0, 0, 0.3); /* 轻微背景，增加文字可读性 */
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.company-logo {
    font-size: 5em;
    font-family: var(--font-serif);
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    text-shadow: 0 0 15px rgba(204, 164, 59, 0.7);
    margin-bottom: 0.2em;
}

.slogan {
    font-size: 1.5em;
    font-family: var(--font-sans);
    color: var(--light-text-color);
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down-arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: arrow-anim 1.5s infinite;
}
.scroll-down-arrow span:nth-child(2) { animation-delay: -0.2s; }
.scroll-down-arrow span:nth-child(3) { animation-delay: -0.4s; }


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}
@keyframes arrow-anim {
    0% { opacity: 0; transform: rotate(45deg) translate(-10px, -10px); }
    50% { opacity: 1; transform: rotate(45deg) translate(0, 0); }
    100% { opacity: 0; transform: rotate(45deg) translate(10px, 10px); }
}


/* About Section */
.about-section {
    background-color: var(--primary-bg-color);
    padding: 5em;
}

.about-content {
    display: flex;
    max-width: 1200px;
    margin: auto;
    gap: 4em;
    align-items: center;
}

.about-image {
    flex: 2;
    min-width: 400px; /* 最小宽度 */
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: grayscale(80%) brightness(0.8); /* 黑白电影质感 */
    transition: filter 0.5s ease;
}
.about-image img:hover {
    filter: grayscale(0%) brightness(1); /* 鼠标悬停时恢复色彩 */
}


.about-text {
    flex: 3;
    font-size: 1.1em;
    color: var(--light-text-color);
}

.about-text h2 {
    font-size: 3em;
    margin-bottom: 0.8em;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(204, 164, 59, 0.4);
}

.about-text p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* Works Section */
.works-section {
    flex-direction: column;
    padding: 5em 0;
    background-color: #111; /* 稍亮的背景，与黑色形成对比 */
}

.works-section h2 {
    font-size: 3.5em;
    margin-bottom: 1.5em;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(204, 164, 59, 0.4);
}

.works-gallery {
    display: flex;
    overflow-x: auto; /* 允许横向滚动 */
    padding-bottom: 2em; /* 留出滚动条空间 */
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
    scroll-snap-type: x proximity; /* 横向滚动吸附，非强制 */
    gap: 3em;
    padding: 0 5vw; /* 左右留白 */
    justify-content: flex-start; /* 左对齐 */
}

.works-gallery::-webkit-scrollbar {
    height: 8px;
}
.works-gallery::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}
.works-gallery::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.work-card {
    flex: 0 0 auto; /* 不收缩，不放大，保持原始宽度 */
    width: 300px; /* 卡片宽度 */
    height: 450px; /* 卡片高度 */
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center; /* 卡片居中吸附 */
}

.work-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

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

.work-card:hover img {
    transform: scale(1.05); /* 鼠标悬停时图片略微放大 */
}

.work-card h3 {
    position: absolute;
    bottom: 50px;
    left: 20px;
    color: var(--text-color);
    font-size: 1.6em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    z-index: 2;
}
.work-card p {
    position: absolute;
    bottom: 25px;
    left: 20px;
    color: var(--light-text-color);
    font-size: 0.9em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 2;
}


.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

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

.card-overlay a {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.8em 1.5em;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.card-overlay a:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg-color);
    box-shadow: 0 0 15px var(--accent-color);
}


/* Contact Section */
.contact-section {
    flex-direction: column;
    padding: 5em;
    background: linear-gradient(135deg, var(--primary-bg-color) 0%, #1a1a1a 100%); /* 渐变背景 */
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: auto;
    padding-bottom: 3em;
}

.contact-content h2 {
    font-size: 3.5em;
    margin-bottom: 1.5em;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(204, 164, 59, 0.4);
}

.contact-info p {
    font-size: 1.2em;
    margin-bottom: 0.8em;
    color: var(--light-text-color);
}
.contact-info a {
    font-weight: bold;
    color: var(--accent-color);
}

.social-media {
    margin-top: 2em;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}

.social-media img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    filter: brightness(0.8);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-media img:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(204, 164, 59, 0.5);
}

footer {
    width: 100%;
    text-align: center;
    padding-top: 2em;
    border-top: 1px solid rgba(204, 164, 59, 0.2);
    font-size: 0.9em;
    color: var(--light-text-color);
}
footer p {
    margin-bottom: 0.5em;
}
footer a {
    color: var(--light-text-color);
}
footer a:hover {
    color: var(--accent-color);
}


/* 响应式设计 */
@media (max-width: 1024px) {
    .navbar {
        padding: 1em 2em;
    }
    .navbar nav ul li {
        margin-left: 1.5em;
    }
    .company-logo {
        font-size: 3.5em;
    }
    .slogan {
        font-size: 1.2em;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2em;
        padding: 0 2em;
    }
    .about-image {
        min-width: unset;
        width: 80%;
    }
    .about-text h2, .works-section h2, .contact-content h2 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1em 1em;
    }
    .navbar .logo {
        font-size: 1.5em;
    }
    .navbar nav ul li {
        margin-left: 1em;
    }
    .navbar nav ul li a {
        font-size: 0.9em;
    }

    .company-logo {
        font-size: 2.5em;
    }
    .slogan {
        font-size: 1em;
    }
    .hero-content {
        padding: 1em;
    }

    .about-section, .works-section, .contact-section {
        padding: 3em 1em;
    }
    .about-text h2, .works-section h2, .contact-content h2 {
        font-size: 2em;
    }
    .about-text p {
        font-size: 1em;
    }

    .works-gallery {
        padding: 0 1em;
        gap: 1.5em;
    }
    .work-card {
        width: 250px;
        height: 375px;
    }
    .work-card h3 {
        font-size: 1.4em;
    }
    .work-card p {
        font-size: 0.8em;
    }

    .contact-info p {
        font-size: 1em;
    }
    .social-media img {
        width: 35px;
        height: 35px;
    }
    footer {
        font-size: 0.8em;
    }
}