/* 导入谷歌字体 - Noto Serif SC（古籍风格中文字体） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 300;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #333;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 10px;
}

.btn:hover {
    background-color: #555;
    transform: translateY(-3px);
}

/* 添加边框按钮样式 */
.btn-outline {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 50px;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* 首页透明导航栏样式 */
.transparent-header {
    background-color: transparent;
    box-shadow: none;
}

.transparent-header .logo h1 {
    color: #fff;
}

.transparent-header nav ul li a {
    color: #fff;
}

.transparent-header nav ul li a::after {
    background-color: #fff;
}

.transparent-header .mobile-menu-btn span {
    background-color: #fff;
}

/* 移动端透明导航栏下的菜单样式 */
.transparent-header nav.active {
    background-color: rgba(0, 0, 0, 0.8);
}

.transparent-header nav.active ul li a {
    color: #fff;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
    transition: color 0.3s ease;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease, background-color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: #000;
    /* 移除默认背景图像，只在视频无法播放时使用备用背景 */
    background-image: none;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;  /* 防止视频溢出 */
}

/* 添加半透明覆盖层 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 黑色半透明覆盖 */
    z-index: 1; /* 确保在视频上层，但在内容下层 */
}

.hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2; /* 确保容器在视频上层 */
    position: relative;
}

/* 视频背景样式 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 调整z-index确保在内容之下 */
    overflow: hidden;
}

.video-tvc {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 1; /* 默认显示视频 */
    transition: opacity 1s ease;
}

.slide-inner--image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0; /* 调整z-index确保在内容之下 */
    opacity: 0;  /* 默认隐藏背景图，只在视频无法播放时显示 */
    transition: opacity 0.5s ease;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 3;  /* 增加z-index确保内容显示在最上层 */
    width: 100%;  /* 添加宽度确保居中控制 */
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* 增加文字阴影提高可读性 */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* 增加文字阴影提高可读性 */
}

/* 关于我们 */
.about {
    padding: 50px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

/* 服务领域 */
.services {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 2.5rem;
    color: #333;
}

.service-item h3 {
    margin-bottom: 15px;
    font-weight: 400;
}

.service-item p {
    color: #666;
}

/* 成功案例 */
.cases {
    padding: 100px 0;
    background-color: #fff;
}

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

.case-item {
    position: relative;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.case-overlay h3 {
    margin-bottom: 10px;
    font-weight: 400;
}

.case-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 下载中心 */
.download {
    padding: 100px 0;
    background-color: #f9f9f9;
}

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

.download-item {
    background-color: #fff;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.download-icon {
    margin-bottom: 20px;
}

.download-icon i {
    font-size: 2.5rem;
    color: #333;
}

.download-item h3 {
    margin-bottom: 15px;
    font-weight: 400;
}

.download-item p {
    color: #666;
    margin-bottom: 20px;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: #333;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #333;
}

.social-links a:hover {
    color: #555;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

/* 页脚 */
footer {
    padding: 30px 0;
    background-color: #333;
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 0.9rem;
}

.footer-links a {
    color: #fff;
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ccc;
}

/* iframe页脚 */
#footer-frame {
    border: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .transparent-header {
        background-color: transparent;
        box-shadow: none;
    }
    
    .logo-icon {
        width: 25px;
        height: 25px;
        margin-right: 8px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    nav.active {
        height: auto;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    nav ul li a {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .cases-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
    
    .logo h1 {
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* 添加更小分辨率的适配 */
@media (max-width: 400px) {
    .logo-icon {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }
    
    .logo h1 {
        font-size: 0.8rem;
    }
} 