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

body {
    font-family: 'Noto Sans SC', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #2196F3;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

/* 左侧logo和标题区域 */
.header-left {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 右侧导航和按钮区域 */
.header-right {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    margin-right: 12px;
}

.logo:hover {
    color: #3498db;
}

nav ul {
    list-style: none;
    display: flex;
    margin-right: 20px; /* 为登录按钮留出空间 */
}

nav ul li {
    margin-right: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

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

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

.auth-buttons button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-buttons button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.auth-buttons button:last-child {
    background-color: #e74c3c;
}

.auth-buttons button:last-child:hover {
    background-color: #c0392b;
}

/* 英雄区域样式 */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background-image: url('https://images.unsplash.com/photo-1517430816045-df4b7de11d1d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80'); /* 添加电脑/数据分析背景图 */
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    text-align: center;
    min-height: 600px; /* 确保有足够的高度 */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.75), rgba(41, 128, 185, 0.8)); /* 半透明蓝色渐变覆盖层 */
}

.hero-wrapper {
    position: relative;
    z-index: 1; /* 确保内容显示在覆盖层之上 */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 30px;
    padding: 0 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 38px; /* 原来是42px，稍微减小字体 */
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 22px; /* 原来是24px，稍微减小字体 */
    margin-bottom: 30px;
    opacity: 0.9;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 30px;
    max-width: 650px; /* 限制按钮区域的宽度 */
    gap: 15px; /* 使用gap属性统一间距 */
}

.features button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0; /* 移除margin，使用gap代替 */
}

.features button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 14px 35px;
    margin-top: 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 大图区域 */
.showcase {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 确保视频不会溢出容器 */
}

/* 
 * 视频背景相关样式
 * 注意：需要上传视频文件到 /public/videos/hero-background.mp4
 * 如视频无法显示，请检查:
 * 1. 文件路径是否正确
 * 2. 视频格式是否为mp4且兼容主流浏览器
 * 3. 服务器是否正确配置了视频MIME类型
 */
.showcase-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 视频元素样式 */
.showcase-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持视频比例的同时填充整个容器 */
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.showcase-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 1500px;
    padding: 0 20px;
}

.showcase-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.showcase-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* 下载区域样式 */
.download {
    text-align: center;
    padding: 80px 0;
    background-color: #f8f9fa;
}

.download h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.download-buttons button {
    background-color: #2ecc71;
    color: white;
    padding: 15px 30px;
    margin: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-buttons button:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.download-buttons .download-btn {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 15px 30px;
    margin: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* 去掉链接的下划线 */
}

.download-buttons .download-btn:hover {
    background-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 20px 30px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-left {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-left p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-right ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.footer-right ul li {
    margin-bottom: 10px;
    width: 50%;
}

.footer-right ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-right ul li a:hover {
    opacity: 1;
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.7;
    margin: 10px 0;
}

.language-switch button {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switch button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1300px) {
    .header-left, .header-right {
        position: static;
        transform: none;
    }
    
    .header-container {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
    
    .header-left {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    
    .header-left, .header-right {
        width: 100%;
        position: static;
        transform: none;
    }
    
    .header-right {
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-bottom: 15px;
        flex-wrap: wrap;
        margin-right: 0;
        justify-content: center;
    }
    
    nav ul li {
        margin-bottom: 10px;
    }
    
    .auth-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .auth-buttons button {
        margin: 0 5px;
    }
    
    .hero {
        padding: 60px 20px;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .showcase {
        height: 400px;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .features {
        max-width: 100%;
    }
}
