/* ====== 全局变量定义 ====== */
:root {
    --primary: #7339AE;          /* 主题色 - 用于品牌标识和重点突出 */
    --text-primary: #272932;     /* 主要文本颜色 - 用于标题和重要内容 */
    --text-secondary: #666666;   /* 次要文本颜色 - 用于描述性文本 */
    --animation-duration: 5s;     /* 动画周期 - 控制卡片波浪动画的速度 */
    --wave-spacing: 50px;        /* 波浪间距 - 控制卡片之间的水平距离 */
    --tilt-base: 1;              /* 倾斜基准值 - 控制卡片倾斜的程度 */
}

/* ====== 全局重置样式 ====== */
* {
    margin: 0;                   /* 移除所有元素的外边距 */
    padding: 0;                  /* 移除所有元素的内边距 */
    box-sizing: border-box;      /* 使padding和border包含在元素的总宽度和高度内 */
}

/* ====== 基础页面样式 ====== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;  /* 系统字体优先 */
    color: var(--text-primary);  /* 使用主要文本颜色 */
    line-height: 1.5;           /* 行高为字体大小的1.5倍，提高可读性 */
}

/* ====== 通用容器样式 ====== */
.container {
    max-width: 1200px;          /* 内容最大宽度限制 */
    margin: 0 auto;             /* 水平居中 */
    padding: 0 20px;            /* 两侧留白，确保小屏幕下内容不贴边 */
}

/* ====== 导航栏样式 ====== */
header {
    position: sticky;          /* 使导航栏固定在顶部 */
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;    /* 背景色白色 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);  /* 底部阴影，增加层次感 */
    padding: 20px 0;           /* 上下内边距 */
    z-index: 100;              /* 确保导航栏在最上层 */
}

/* 导航栏内容布局 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式设置 */
.logo img {
    height: 52px;              /* Logo高度固定 */
}

/* 导航菜单布局 */
.nav-menu {
    display: flex;             /* 水平排列 */
    gap: 32px;                /* 菜单项间距 */
    margin-left: auto;        /* 将菜单推向右侧 */
    margin-right: 30px;       /* 与按钮组保持一定距离 */
}

/* 导航链接样式 */
.nav-menu a {
    text-decoration: none;     /* 移除下划线 */
    color: var(--text-primary);
    font-size: 16px;
    margin-right: 10px;
}

/* 导航按钮组样式 */
.nav-buttons {
    display: flex;            /* 水平排列 */
    gap: 16px;               /* 按钮间距 */
}

/* 移动端菜单按钮样式 */
.mobile-menu-toggle {
    display: none; /* 默认在桌面端隐藏 */
    flex-direction: column; /* 垂直排列三条线 */
    justify-content: space-between; /* 均匀分布三条线 */
    width: 30px; /* 按钮宽度 */
    height: 22px; /* 按钮高度 */
    cursor: pointer; /* 鼠标悬停时显示手型光标 */
    z-index: 100; /* 确保按钮位于其他元素上层 */
}

.mobile-menu-toggle span {
    display: block;
    width: 100%; /* 线条宽度占满容器 */
    height: 3px; /* 线条高度 */
    background-color: #272932; /* 线条颜色 */
    border-radius: 3px; /* 线条圆角 */
    transition: all 0.3s ease; /* 添加过渡效果，用于菜单打开/关闭动画 */
}

/* 导航容器样式 - 用于移动端折叠/展开 */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

/* ====== 按钮样式 ====== */
/* 基础按钮样式 */
.btn {
    padding: 8px 24px;        /* 内边距：上下8px，左右24px */
    border-radius: 10px;      /* 圆角 */
    text-decoration: none;    /* 移除下划线 */
    font-size: 16px;
    min-width: 120px;        /* 最小宽度，保持按钮视觉平衡 */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;  /* 所有属性变化添加过渡动画 */
}

/* 轮廓按钮样式 */
.btn-outline {
    border: none;
    /* 渐变边框效果 */
    background: 
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(142deg, #EE49FD 0%, #6157FF 100%) border-box;
    border: 1px solid transparent;
    color: #000000;
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* 轮廓按钮悬停效果 */
.btn-outline:hover {
    transform: translateY(-2px);   /* 上浮效果 */
    filter: brightness(1.1);       /* 增加亮度 */
    box-shadow: 0 5px 15px rgba(238, 73, 253, 0.2);  /* 添加阴影 */
}

/* 主按钮样式 */
.btn-primary {
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);  /* 渐变背景 */
    color: white;
    border: none;
}

/* 主按钮悬停效果 */
.btn-primary:hover {
    transform: translateY(-2px);   /* 上浮效果 */
    filter: brightness(1.1);       /* 增加亮度 */
    box-shadow: 0 5px 15px rgba(238, 73, 253, 0.4);  /* 添加阴影 */
}

/* 英雄区域样式 */
.hero {
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
}

.hero h1 {
    font-size: 65px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: #666;
    margin: 0 auto;
}

/* 业务场景样式 */
.scenarios {
    padding: 60px 0;
    background: #ffffff;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.scenario-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 340px;
    background: #272932;
}

.scenario-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(39, 41, 50, 0.9);
}

.scenario-card h3 {
    color: white;
    font-size: 20px;
    margin: 0;
}

/* 优势卡片样式 */
.benefit-card {
    background: #ffffff;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.6s ease;
    padding-top: 80px;
}

.benefit-card h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.benefit-card p {
    font-size: 18px;
    color: #666;
    }

.chart-image {
    width: 100%;
    margin-top: 60px;
}

/* 账户类型样式 */
.account-types {
    padding: 50px 0;
    text-align: left;
    padding-bottom: 100px;
    margin-top: 80px;
}

.account-types h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.account-types p {
    font-size: 18px;
    color: #666;
    }

.account-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 80px;
}

/* 账户卡片基础样式 */
.account-card {
    background: #F5F5F5;
    border-radius: 24px;
    padding: 40px;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.6s ease;
    height: 260px;
    position: relative;
    overflow: hidden;
    width: 100%; /* 使用百分比宽度而不是固定宽度 */
    max-width: 500px; /* 最大宽度限制 */
}

/* 企业账户卡片特殊样式 */
.business-card {
    background: linear-gradient(142deg, #777D98 0%, #272932 100%);
    color: white;
}

.business-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

/* 个人账户卡片特殊样式 */
.personal-card {
    background: linear-gradient(142deg, #777D98 0%, #272932 100%);
    color: white;
}

.personal-card h3 {
    font-size: 30px;
    margin-bottom: 20px;
}

/* 图片样式 */
.account-card img {
    width: 180px;
    height: 180px;
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.1;
}

/* 地区样式更新 */
.regions {
    padding: 100px 0;
    background: #272932;  /* 改为黑色背景 */
    color: white;
}

.regions h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: left;
    color: #ffffff;
}

.region-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.8;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.region-card {
    background: white;  /* 半透明白色背景 */
    border-radius: 16px;
    padding: 24px;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.6s ease;
}

.region-card.wide {
    grid-column: 1 / -1;  /* 跨越所有列 */
}

.region-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #272932;
}

.region-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
    color: #272932;
}

.api {
    background: #272932;
    margin-top: -100px;
    padding-top: 100px;
    padding-bottom: 100px;
}   

.signup {
    background: #272932;
    margin-top: -100px;
    padding-top: 100px;
    padding-bottom: 100px;
}


/* API卡片样式 */
.benefit-card.blue {
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 500px;
    }

.api-content {
    flex: 1;
}

.api-header {
    font-size: 24px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.api-title h1 {
    font-size: 48px;
    line-height: 1.2;
}

.api-image {
    flex: 1;
    text-align: right;
}

.api-image img {
    width: 100%;
    max-width: 500px;
    margin-left: -50px;
}

/* 注册卡片样式 */
.signup-card {
    background: linear-gradient(142deg, #777D98 0%, #272932 100%);
    border-radius: 24px;
    padding: 40px;
    color: white;
    text-align: center;
    margin: 40px 0;
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.6s ease;
    height: 300px;
    }

.signup-card h2 {
    font-size: 48px;
    margin-bottom: 24px;
    margin-top: 80px;
}

.signup-btn {
    background: linear-gradient(142deg, #EE49FD 0%, #6157FF 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 73, 253, 0.4);
}

/* 显示动画 */
.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
}

/* 页脚iframe样式 */
.footer-section {
    width: 100%;
    overflow: hidden;
}

.footer-section iframe {
    width: 100%;
    border: none;
    overflow: hidden;
    transition: height 0.3s ease;
}

/* 移动端适配更新 */
@media (max-width: 768px) {
    /* 头部样式调整 */
    header {
        padding: 15px 0; /* 减小头部上下内边距 */
    }
    
    /* 导航栏样式调整 */
    nav {
        padding: 0 15px; /* 减小导航栏左右内边距 */
        position: relative; /* 设置为相对定位，作为子元素的参考 */
        justify-content: space-between; /* 两端对齐，logo和菜单按钮分开 */
    }
    
    /* 移动端显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important; /* 强制显示，覆盖默认样式 */
        position: absolute; /* 绝对定位 */
        right: 15px; /* 距离右侧15px */
        top: 50%; /* 垂直居中 */
        transform: translateY(-50%); /* 精确垂直居中 */
        z-index: 100; /* 确保按钮在最上层 */
    }
    
    /* 导航容器在移动端的样式 */
    .nav-container {
        position: fixed; /* 固定定位，不随滚动而移动 */
        top: 0; /* 顶部对齐 */
        right: -100%; /* 初始位置在屏幕右侧外 */
        width: 90%; /* 增加宽度占屏幕90%，与va.css一致 */
        max-width: 350px; /* 增加最大宽度为350px，与va.css一致 */
        height: 100vh; /* 高度占满整个视口 */
        background-color: white; /* 背景色 */
        flex-direction: column; /* 垂直排列菜单项 */
        justify-content: flex-start; /* 从顶部开始排列 */
        align-items: flex-start; /* 添加左对齐，确保按钮显示正确 */
        padding: 80px 20px 20px; /* 上方留出空间放置关闭按钮 */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* 左侧阴影 */
        transition: right 0.3s ease; /* 添加右侧滑入动画 */
        overflow-y: auto; /* 内容过多时可滚动 */
        z-index: 99; /* 确保菜单在其他内容上方，但在按钮下方 */
    }
    
    /* 当菜单激活时的样式 */
    .nav-container.active {
        right: 0; /* 滑入到可见区域 */
    }
    
    /* 移动端导航菜单样式 */
    .nav-menu {
        display: flex !important; /* 确保在移动端显示 */
        flex-direction: column; /* 垂直排列菜单项 */
        width: 100%; /* 宽度占满容器 */
        margin-bottom: 30px; /* 与按钮组保持间距 */
        margin-left: 0; /* 重置桌面端的外边距 */
        margin-right: 0; /* 重置桌面端的外边距 */
    }
    
    /* 移动端导航菜单链接样式 */
    .nav-menu a {
        margin: 0; /* 移除左右间距 */
        padding: 15px 0; /* 增加可点击区域 */
        margin-bottom: 10px; /* 链接之间的间距 */
        font-size: 16px; /* 调整字体大小为16px，与va.css一致 */
        border-bottom: 1px solid #f0f0f0; /* 添加分隔线 */
        width: 100%; /* 宽度占满容器 */
        display: block; /* 设为块级元素 */
    }
    
    /* 移动端按钮组样式 */
    .nav-buttons {
        flex-direction: column; /* 垂直排列按钮 */
        width: 100%; /* 宽度占满容器 */
        display: flex !important; /* 确保在移动端显示 */
        align-items: flex-start; /* 确保左对齐 */
    }
    
    /* 移动端按钮样式 */
    .nav-buttons .btn {
        margin: 10px 0; /* 按钮之间的间距 */
        width: 100%; /* 按钮宽度占满 */
        text-align: center; /* 文字居中 */
        display: block; /* 块级显示 */
    }
    
    /* 汉堡菜单激活状态 - 第一条线变形 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px); /* 旋转并移动形成X的一部分 */
    }
    
    /* 汉堡菜单激活状态 - 第二条线隐藏 */
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0; /* 完全透明 */
    }
    
    /* 汉堡菜单激活状态 - 第三条线变形 */
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px); /* 旋转并移动形成X的另一部分 */
    }
    
    /* 菜单打开时页面遮罩 */
    body.menu-open::after {
        content: ''; /* 创建伪元素 */
        position: fixed; /* 固定定位 */
        top: 0;
        left: 0;
        width: 100%; /* 宽度占满屏幕 */
        height: 100%; /* 高度占满屏幕 */
        background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
        z-index: 98; /* 位于导航菜单下方，其他内容上方 */
    }
    
    .hero h1 {
        font-size: 36px;
    }

    .scenario-grid,
    .account-cards,
    .region-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card h2,
    .account-types h2,
    .regions h2,
    .signup-card h2 {
        font-size: 32px;
    }

    .scenario-card {
        height: 180px;
    }

    .footer-section iframe {
        width: 100%;
        min-height: 600px; /* 设置一个最小高度，防止内容被截断 */
    }

    .regions h2 {
        font-size: 32px;
        text-align: left;
        padding: 0 20px;
    }

    .region-desc {
        padding: 0 20px;
        font-size: 14px;
    }

    .region-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .region-card {
        padding: 20px;
    }

    .card-content {
        padding: 15px;
    }

    .scenario-card h3 {
        font-size: 16px;
    }

    .benefit-card.blue {
        flex-direction: column;
        height: auto;
        padding: 30px;
    }

    .api-header {
        font-size: 20px;
    }

    .api-title h1 {
        font-size: 32px;
    }

    .api-image img {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }

    .signup-card {
        height: auto;
        padding: 30px;
    }

    .signup-card h2 {
        font-size: 36px;
        margin: 20px 0;
        text-align: center;
    }

    .signup-btn {
        float: none;
        margin: 20px auto;
        display: block;
    }

    /* 账户类型部分移动端样式 */
    .account-types {
        padding: 40px 20px; /* 减小内边距 */
    }
    
    .account-types h2 {
        font-size: 28px; /* 减小标题字体 */
        margin-bottom: 15px; /* 减小下边距 */
    }
    
    .account-types p {
        font-size: 16px; /* 减小段落字体 */
        margin-bottom: 20px; /* 减小下边距 */
    }
    
    /* 账户卡片容器移动端样式 */
    .account-cards {
        grid-template-columns: 1fr;
        gap: 20px; /* 减小卡片间距 */
        margin-top: 30px; /* 减小上边距 */
    }
    
    /* 账户卡片移动端样式 */
    .account-card {
        height: auto; /* 自适应高度 */
        min-height: 180px; /* 设置最小高度 */
        padding: 25px 20px; /* 减小内边距 */
        max-width: 100%; /* 移动端占满容器宽度 */
    }
    
    .account-card h3 {
        font-size: 22px; /* 减小标题字体 */
        margin-bottom: 10px; /* 减小下边距 */
        max-width: 60%; /* 限制标题宽度，避免与图片重叠 */
    }
    
    .account-card img {
        width: 120px; /* 减小图片宽度 */
        height: 120px; /* 减小图片高度 */
        right: 10px; /* 调整右边距 */
        bottom: 10px; /* 调整下边距 */
    }
} 

/* Header iframe 样式 */
.header-section {
    width: 100%;
    height: 84px; /* 根据header的高度调整 */
    overflow: hidden;
    position: sticky; /* 添加粘性定位 */
    top: 0; /* 固定在顶部 */
    z-index: 1000; /* 确保在其他内容上方 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.header-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .header-section {
        height: 66px; /* 移动端header高度调整 */
    }
} 