:root {
    --primary-color: #E62129;
    --secondary-color: #FFA400;
    --primary-light: #FF4D4D;
    --secondary-light: #FFB833;
    --text-color: #333;
    --light-bg: #FFF9F0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏固定定位 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.95);  /* 半透明白色背景 */
    backdrop-filter: blur(10px);  /* 毛玻璃效果 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);  /* 微妙的边框 */
    transition: background-color 0.3s ease;  /* 平滑过渡 */
}

/* 滚动时的样式 */
nav.scrolled {
    background: rgba(255, 255, 255, 0.98);  /* 滚动时略微增加不透明度 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);  /* 添加阴影 */
}

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

.logo img {
    height: 30px;
    width: auto;
}

.logo span {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 164, 0, 0.1);  /* 使用品牌色的淡色版本 */
    color: var(--primary-color);
}

/* 主要内容样式 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e1f2173;
    /* background: linear-gradient(135deg, 
        rgba(230, 33, 41, 0.35), 
        rgba(255, 164, 0, 0.15)); */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 2.0rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.vision {
    position: relative;
    min-height: 100vh;
    padding: 4rem 5%;
    background: var(--light-bg);
    color: var(--text-color);
}

/* 内容包装器 */
.vision-content-wrapper {
    position: relative;
}

.vision h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vision-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 新增团队理念突出显示样式 */
.vision-highlight {
    background: linear-gradient(135deg, 
        var(--primary-color), 
        var(--secondary-color));
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem auto 4rem;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.highlight-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vision-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    border-left: 4px solid var(--primary-color);
}

.vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 新增详细说明部分样式 */
.vision-detail {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vision-detail h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    background: var(--light-bg);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.detail-item:hover {
    transform: translateY(5px);
    border-left: 4px solid var(--primary-color);
    
}

.detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 2.0rem;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
    }
    
    .highlight-text {
        font-size: 1.4rem;
    }
    
    .vision-highlight {
        padding: 2rem;
        margin: 1rem auto 3rem;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .vision-detail {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .vision {
        min-height: 100vh;
    }
    
    .logo img {
        height: 24px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    .hero-logo img {
        max-width: 120px;
    }
}

/* 页脚样式优化 */
footer {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, 
        #E62129,  /* logo的红色 */
        #FFA400   /* logo的橙色 */
    );
    color: white;
    padding: 0 5%;
}

footer p {
    margin: 0;
    font-weight: 500;  /* 稍微加粗一点文字 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);  /* 添加细微文字阴影 */
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .hero-logo img {
        max-width: 120px;
    }
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 5%;
}

.dropdown-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dropdown-links a:last-child {
    border-bottom: none;
}

.dropdown-links a:hover {
    color: var(--primary-color);
    background: var(--light-bg);
}

/* 菜单按钮样式 */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.menu-button span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* 菜单按钮动画 */
.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .menu-button {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }

    /* 为了补偿固定定位的header高度 */
    main {
        padding-top: 60px;
    }
}

/* 下拉菜单默认隐藏 */
.dropdown-menu {
    display: none;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 只在移动端隐藏导航链接 */
    }

    .menu-button {
        display: flex; /* 只在移动端显示菜单按钮 */
    }

    .dropdown-menu {
        display: block; /* 在移动端显示下拉菜单容器 */
    }
}

/* 下载区域样式优化 */
.download-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #1E2A4A 0%, #2C3E67 100%);  /* 更深沉的蓝色渐变 */
    position: relative;
    overflow: hidden;
}

/* 更新背景装饰效果 */
.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.download-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;  /* 增加间距 */
    align-items: center;
}

.download-text h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.download-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* 优化功能特点样式 */
.download-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 1.3rem;
}

/* 优化下载按钮样式 */
.download-buttons {
    display: flex;
    gap: 1.5rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.download-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.download-btn:hover::before {
    opacity: 1;
}

.btn-icon, .btn-text {
    position: relative;
    z-index: 2;
}

.download-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 2.2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.large-text {
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* 优化APP预览图区域 */
.download-image {
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.download-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;  /* 添加圆角 */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* 优化二维码样式 */
.qr-code {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(to right, #FFA400, #E62129) border-box;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform-origin: center;
}

.qr-code:hover {
    transform: scale(1.5);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

.qr-code img {
    width: 120px;
    height: 120px;
    margin-bottom: 0.8rem;
    filter: none;
}

.qr-code span {
    display: block;
    font-size: 1rem;
    color: #1E2A4A;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-section {
        padding: 4rem 5%;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .download-text h2 {
        font-size: 2.2rem;
    }

    .download-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .qr-code {
        position: static;
        margin-top: 2rem;
        display: inline-block;
    }

    .download-image {
        padding: 2rem;
    }
    
    .download-image img {
        border-radius: 16px;  /* 移动端稍微减小圆角 */
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 调整锚点位置，防止被固定导航栏遮挡 */
#download {
    scroll-margin-top: 80px;  /* 根据导航栏高度调整 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    nav, footer {
        height: 60px;
    }
}

@media screen and (max-width: 768px) {
  .qr-code {
    display: none;
  }
}

/* 添加渐入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 初始状态设置 */
.hero-logo img,
.hero-content h1,
.hero-content p {
    opacity: 0;
}

/* 添加动画类 */
.fade-in {
    animation: fadeInUp 1s ease forwards;
}

/* 视频包装容器样式 */
.video-wrapper {
    /* max-width: 800px; 设置最大宽度 */
    /* margin: 2rem auto; 上下间距，居中对齐 */
    border-radius: 12px; /* 添加圆角 */
    overflow: hidden; /* 隐藏溢出部分 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
    background: rgba(255, 255, 255, 0.1); /* 添加背景色 */
    position: relative; /* 使子元素绝对定位 */
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 100%; /* 使视频容器宽度为100% */
    height: 0; /* 高度为0，使用padding-bottom来控制比例 */
    padding-bottom: 56.25%; /* 16:9比例 */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 视频宽度为100% */
    height: 100%; /* 视频高度为100% */
    object-fit: cover; /* 保持视频比例 */
    border-radius: 12px; /* 添加圆角 */
}

/* 新增的包装容器样式 */
.intro-wrapper {
    display: flex; /* 使用flex布局 */
    align-items: flex-start; /* 垂直对齐 */
    gap: 2rem; /* 添加间距 */
}

/* 视频和选择部分的样式 */
.video-wrapper {
    flex: 5; /* 视频部分占据5份 */
}

.why-choose {
    flex: 2; /* 选择部分占据3份 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-wrapper {
        flex-direction: column; /* 在小屏幕上竖排 */
    }

    .video-wrapper {
        flex: none; /* 取消flex属性 */
        width: 100%; /* 视频宽度为100% */
    }

    .why-choose {
        flex: none; /* 取消flex属性 */
        width: 100%; /* 选择部分宽度为100% */
    }
}