/* 基础样式 */
body, html {
    margin: 20px 0 0 0; /* 将上边距从 -30px 调整为 20px，整体下移 50px */
    padding: 0;
    font-family: '极光Helvetica Neue', Arial, sans-serif;
    color: white;
    scroll-behavior: smooth;
}

body.video-list-page, html.video-list-page {
    background-color: black; /* 黑色 */
}

body.story-details-page, html.story-details-page {
    background-color: black; /* 设置背景为黑色 */
}

/* 导航栏 */
.sticky-nav {
    position: fixed;
    top: 0; /* 将导航栏上移并贴合浏览器边缘 */
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7) url('images/logo1.png') no-repeat 20px center; /* 恢复导航栏背景 */
    background-size: 300px auto;
    z-index: 1000;
    padding-left: 340px;
    box-shadow: none; /* 移除阴影 */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end; /* 将导航菜单右对齐 */
    align-items: center;
}

.logo {
    display: none; /* 隐藏原有的logo元素 */
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 20px; /* 增加右边距 */
}

.nav-menu a {
    color: white; /* 恢复导航栏文字颜色为白色 */
}

.nav-menu a:hover {
    color: #e31b23; /* 悬停时使用品牌色 */
}

/* 全屏页面 */
.fullpage-section {
    min-height: calc(100vh - 80px); /* 调整高度以补偿上移的 80px（原为 50px，再上移 30px） */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
    background-color: transparent; /* 确保背景为透明 */
}

.fullpage-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 删除 background: rgba(0, 0, 0, 0.5); */
}

.section-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    color: white; /* 恢复文字颜色为白色 */
}

/* 背景图片 */
#about {
    position: relative;
    overflow: hidden;
    background-color: transparent; /* 移除背景图片 */
}

#vanta-birds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 将动态背景置于内容下方 */
}

#about .section-content {
    position: relative;
    z-index: 1; /* 确保内容在动态背景之上 */
}

#portfolio {
    position: relative;
    overflow: hidden;
    height: 100vh; /* 确保视频覆盖整个视口高度 */
}

#portfolio video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 平铺画面并居中 */
    transform: translate(-50%, -50%); /* 居中 */
    z-index: -1; /* 确保视频在背景层 */
}

#contact {
    position: relative;
    overflow: hidden;
    background-color: transparent; /* 移除灰色背景 */
}

#contact .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* 将视频置于背景层 */
}

#contact .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 删除 background: rgba(0, 极光, 0, 0.5); */
}

#contact .section-content {
    position: relative;
    z-index: 1; /* 确保内容在视频和覆盖层之上 */
}

/* 按钮样式 */
.cta-button, .portfolio-button {
    display: inline-block;
    padding: 15px 30px;
    background: #e31b23;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover, .portfolio-button:hover {
    background: #c0161d;
}

/* 作品展示链接 */
.portfolio-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* 联系方式 */
.contact-info {
    margin-top: 150px; /* 保持之前的 150px 下移 */
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 视频背景 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* 确保视频在背景层 */
}

/* 首页 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('hero-bg.jpg') center/cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 项目展示样式 */
.projects-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.8); /* 保持深色背景 */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-media video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    -webkit-transform: translateZ(0); /* 硬件加速 */
    transform: translateZ(0);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* 全屏视频页面样式 */
.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
}

.fullscreen-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 公司简介标题样式 */
#about h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white; /* 恢复文字颜色为白色 */
}

/* 小标题样式 */
#about .subtitle {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white; /* 恢复文字颜色为白色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transform: scaleX(1.1);
    display: inline-block;
}

/* 文案样式 */
#about .description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white; /* 恢复文字颜色为白色 */
}

#about .section-content {
    margin-top: -50px; /* 调整内容位置 */
}

/* 小标题样式 */
#portfolio .subtitle {
    font-size: 1.8rem; /* 加大字体 */
    font-weight: normal;
    margin-bottom: 20px; /* 调整与文案的间隔 */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white; /* 纯白颜色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 作品展示标题样式 */
#portfolio h1 {
    font-size: 3.5rem; /* 放大字号，与公司简介标题一致 */
    font-weight: bold;
    margin-bottom: 20px; /* 调整与小标题的间隔 */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
    text-align: center; /* 文本居中 */
    content: "影视案例"; /* 更改标题内容 */
}

#portfolio h2 {
    font-size: 1.8rem; /* 字号大小更改为 1.8rem */
    font-weight: normal;
    margin-bottom: 20px; /* 调整与下方内容的间隔 */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white; /* 纯白颜色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center; /* 文本居中 */
}

/* 作品展示按钮样式 */
.portfolio-button {
    display: inline-block;
    padding: 15px 30px;
    background: #e31b23; /* 红色背景 */
    color: white; /* 白色文字 */
    border: none; /* 取消白色边框 */
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px; /* 调整与上方内容的间隔 */
    content: "影视案例"; /* 更改按钮文字内容 */
}

.portfolio-button:hover {
    background: #c0161d; /* 悬停时颜色变深 */
    color: white;
    transform: translateY(-2px); /* 悬停时轻微上移 */
}

/* 新增宣传页背景图片 */
#story {
    position: relative;
    overflow: hidden;
    height: 100vh; /* 确保视频覆盖整个视口高度 */
    background-color: transparent; /* 确保背景为透明 */
}

#story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 删除 background: rgba(0, 0, 0, 0.5); */
}

#story video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1; /* 将视频置于背景层 */
}

/* 宣传页内容容器样式 */
#story .section-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    height: 100vh; /* 占满整个屏幕高度 */
    text-align: center; /* 文本居中 */
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: 0; /* 重置横向移动 */
    padding: 0 20px;
}

/* 宣传页标题样式 */
#story .section-content h1 {
    font-size: 3.5rem; /* 与作品展示板块标题字号一致 */
    font-weight: bold;
    margin-bottom: 20px; /* 调整与下方内容的间隔 */
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
    text-align: center; /* 文本居中 */
}

/* 宣传页文案样式 */
#story .description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0; /* 移除多余的边距 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center; /* 将左对齐改为居中对齐 */
}

/* 视频网格布局 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 100px; /* 增加底部内边距 */
    margin-left: 0; /* 移除之前的横向偏移 */
}

/* 视频卡片样式 */
.video-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.video-media {
    position: relative;
    padding-top: 56.25%; /* 16:9 比例 */
}

.video-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 10px 20px; /* 上下内边距调整为 10px，左右保持不变 */
    background: #8B0000; /* 背景颜色更改为深红色 */
    color: white; /* 文字颜色 */
    text-align: center; /* 文本居中 */
    height: 40px; /* 设置固定高度 */
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
}

.video-info h3 {
    font-size: 1.2em;
    line-height: 1.2; /* 调整行高 */
    margin: 0; /* 移除边距 */
    padding: 0; /* 移除内边距 */
}

.video-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 两列布局 */
        gap: 20px; /* 减少间距 */
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr; /* 单列布局 */
        gap: 15px; /* 进一步减少间距 */
    }
}

/* 视频列表页样式 */
.video-list-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto; /* 水平居中 */
    background-color: transparent; /* 确保内容区域背景透明 */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 100px; /* 增加底部内边距 */
    margin-left: 0; /* 移除之前的横向偏移 */
}

.video-item video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-item h3 {
    margin-top: 15px;
    font-size: 18px;
    text-align: center;
}

/* 返回按钮样式 */
.back-to-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.back-button {
    padding: 12px 30px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #555;
}

/* Logo 样式 */
.logo img {
    height: 50px; /* 根据实际 logo 尺寸调整 */
    width: auto;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

/* 统一板块标题样式 */
.section-title {
    font-size: 3.5rem; /* 与公司简介和作品展示标题一致 */
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* 联系我们板块样式 */
#contact .section-content {
    margin-top: 50px; /* 整体下移 50px */
}

/* 联系我们信息样式 */
.contact-info {
    margin-top: 150px; /* 保持之前的 150px 下移 */
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 全屏链接样式 */
.fullpage-section-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fullpage-section-link:hover {
    opacity: 0.9;
}

/* 公司简介内容样式 */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/2.jpg'); /* 恢复背景图片 */
    background-color: rgba(0, 0, 0, 0.5); /* 恢复灰色背景 */
    position: relative;
    padding-top: 80px;
    color: white; /* 恢复文字颜色为白色 */
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 恢复黑色半透明覆盖层 */
}

.about-section .section-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    color: white; /* 恢复文字颜色为白色 */
}

/* 底部灰色背景区块样式 */
.footer-section {
    background-color: #333; /* 灰色背景 */
    color: white; /* 白色文字 */
    text-align: center; /* 文字居中 */
    padding: 10px 0; /* 减少上下内边距 */
    position: fixed; /* 固定在页面底部 */
    bottom: 0; /* 贴合页面底部 */
    width: 100%; /* 宽度占满整个页面 */
    z-index: 1000; /* 确保在最上层 */
    height: 40px; /* 设置固定高度 */
}

/* 底部内容容器 */
.footer-content {
    display: flex; /* 使用 Flexbox 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    gap: 20px; /* 文字与图片之间的间距 */
}

/* 底部图片样式 */
.footer-image {
    height: 40px; /* 设置图片高度 */
    width: auto; /* 保持图片比例 */
}

/* 第三板块样式 */
#third-section {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    min-height: 0; /* 移除占满屏幕高度的设置 */
    text-align: center; /* 文本居中 */
    background-color: transparent; /* 移除背景颜色 */
    color: white; /* 文字颜色 */
    padding: 0; /* 移除内边距 */
}

/* 按钮样式 */
.jump-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF; /* 蓝色背景 */
    color: white; /* 白色文字 */
    text-decoration: none; /* 去掉下划线 */
    border-radius: 5px; /* 圆角 */
    font-size: 1rem;
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}

.jump-button:hover {
    background-color: #0056b3; /* 鼠标悬停时颜色变深 */
}

.story-button {
    display: inline-block;
    padding: 10px 20px;
    background: #e31b23; /* 红色背景 */
    color: white; /* 白色文字 */
    border: none; /* 取消白色边框 */
    text-decoration: none; /* 去掉下划线 */
    border-radius: 5px; /* 圆角 */
    font-size: 1rem;
    transition: all 0.3s ease; /* 添加过渡效果 */
    margin-top: 20px; /* 恢复之前的顶部间距 */
    margin-left: 0; /* 重置横向移动 */
}

.story-button:hover {
    background: #c0161d; /* 悬停时颜色变深 */
    color: white;
}

#story .section-content h2 {
    font-size: 1.8rem; /* 字号大小为 1.8rem */
    font-weight: normal;
    margin-bottom: 20px; /* 调整与下方内容的间隔 */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white; /* 纯白颜色 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center; /* 文本居中 */
}

.stats {
    font-size: 2rem; /* 设置字号为 2rem */
    text-align: center; /* 文本居中 */
    margin-top: 20px; /* 调整与上方内容的间距 */
    line-height: 1.5; /* 设置行高 */
    margin-left: -150px; /* 横向移动 -150px */
}

.stats p {
    white-space: nowrap; /* 防止内容换行 */
}

.stats p span.separator {
    padding: 0 150px; /* 增加竖线前后间距为 150px */
}

.stats p span.number {
    font-size: 1.5em; /* 增大字体大小 */
    font-weight: bold; /* 加粗字体 */
    color: red; /* 将文字颜色改为红色 */
}

.stats p span.spacer {
    margin-left: 300px; /* 增加 300px 的间隔 */
}

.case-button {
    display: inline-block;
    padding: 15px 30px;
    background: #e31b23; /* 红色背景 */
    color: white; /* 白色文字 */
    text-decoration: none; /* 去掉下划线 */
    border-radius: 5px; /* 圆角 */
    font-size: 1rem;
    transition: all 0.3s ease; /* 添加过渡效果 */
    margin-top: 20px; /* 调整与上方内容的间距 */
}

.case-button:hover {
    background: #c0161d; /* 悬停时颜色变深 */
    color: white;
    transform: translateY(-2px); /* 悬停时轻微上移 */
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* 图片之间的间距 */
    margin-top: 50px; /* 与上方内容的间距 */
    padding-bottom: 50px; /* 与下方内容的间距 */
}

.image-container img {
    max-width: 100%; /* 确保图片不超过容器宽度 */
    height: auto; /* 保持图片比例 */
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 删除 background: rgba(0, 0, 0, 0.5); */
}

.video-list-page .video-list-section {
    background-color: black; /* 设置背景为黑色 */
}

/* 故事详情页样式 */
.story-details-page {
    background-color: black; /* 设置背景为黑色 */
}

.story-details-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: white; /* 文字颜色为白色 */
    background-color: transparent; /* 确保内容区域背景透明 */
}

.story-content {
    margin-top: 20px;
    line-height: 1.8;
}

.media-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media-container img,
.media-container video {
    max-width: 100%;
    border-radius: 8px;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 图片之间的间距 */
    margin-top: 30px;
}

.image-gallery img {
    width: 100%; /* 图片宽度占满容器 */
    border-radius: 8px; /* 圆角效果 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 阴影效果 */
} 