/*
 * @file product.css
 * @description 范米花儿的网站模版，Trae搭建，仅供学习使用
 * @author 范米花儿
 * @copyright 范米花儿
 */

/* 字体定义 */
@font-face {
    font-family: 'AlimamaShuHeiTi-Bold';
    src: url('assets/fonts/AlimamaShuHeiTi-Bold.ttf') format('truetype');
}

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

/* 基础样式设置 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1D2129;
}

p {
    color: #4E5969;
}

/* 页面头部样式 */
.header {
    position: relative;
    color: #1D2129;
    padding: 1rem 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 背景视频容器 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 导航栏样式 */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 70px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(197, 214, 255, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22, 93, 255, 0.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    fill: #165DFF;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1D2129;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #1D2129;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    color: #165DFF;
    text-decoration: underline;
}

.nav-menu a.active {
    color: #165DFF;
    text-decoration: none;
}

/* 登录按钮样式 */
.nav-menu .login-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: transparent;
    color: #165DFF !important;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #165DFF;
    transition: all 0.3s;
}

.nav-menu .login-button:hover {
    background-color: #165DFF;
    color: #ffffff !important;
    text-decoration: none !important;
}

.nav-menu .login-button:hover svg {
    transform: translateX(4px);
}

/* 主标语区域样式 */
.hero-section {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 2rem 5%;
}

.hero-title {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 4rem;
    margin-top: 120px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0);
}

.hero-section p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0);
    color: #4E5969;
}

/* 行动按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1rem 2rem;
    background-color: #165DFF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0E42D2;
    transform: translateY(-2px);
}

.cta-button:hover svg {
    transform: translateX(4px);
}

/* 内容区域通用样式 */
section {
    padding: 5rem 5%;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #165DFF;
}

/* 特性展示区域样式 */
.features-section {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(22, 93, 255, 0.03), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    text-align: center;
}

/* 区块标题样式 */
.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.section-title h2 {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 40px;
    margin-bottom: 12px;
    color: #1D2129;
    position: relative;  /* 添加相对定位 */
}

.section-title h2 .highlight {
    color: #165DFF;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;  /* 添加底部内边距 */
    z-index: 1;  /* 确保文字在装饰线之上 */
}

.section-title h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;  /* 增加高度使效果更明显 */
    background: rgba(22, 93, 255, 0.1);
    z-index: -1;
    border-radius: 4px;
}

.section-title p {
    font-size: 16px;
    color: #4E5969;
    text-align: center;  /* 确保描述文字居中 */
}

/* 特性标签页样式 */
.feature-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-item {
    flex: 0 1 auto;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    transition: fill 0.3s ease;
    fill: #165DFF;
}

/* 标签页交互效果 */
.tab-item:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.tab-item:hover .tab-icon {
    fill: #165DFF;
}

.tab-item.active {
    background-color: #165DFF;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.2);
}

.tab-item.active .tab-icon {
    fill: #ffffff;
}

.tab-item.active span,
.tab-item.active p {
    color: #fff;
}

.tab-item span {
    font-size: 18px;
    font-weight: 500;
    color: #1D2129;
    margin-bottom: 8px;
}

.tab-item p {
    font-size: 14px;
    color: #4E5969;
    margin: 0;
}

/* 特性预览区域样式 */
.feature-preview {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: linear-gradient(180deg, rgba(22, 93, 255, 0.08), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(22, 93, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(22, 93, 255, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.feature-preview:hover {
    transform: translateY(-10px);
}

.feature-content-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

/* 特性信息展示样式 */
.feature-info {
    flex: 0 0 100%;
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;  /* 改为顶部对齐 */
    gap: 40px;
}

/* 文本内容区域样式 */
.feature-info .text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;  /* 增加内容间距 */
}

/* 特性亮点区域样式 */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;  /* 添加左对齐 */
}

.feature-highlights h3 {
    font-size: 14px;
    color: #4E5969;
    margin: 0;
    text-align: left;
    font-weight: normal;  /* 确保文字不加粗 */
}

.highlight-items {
    display: flex;
    gap: 24px;
    justify-content: flex-start;  /* 添加左对齐 */
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-icon {
    width: 20px;
    height: 20px;
    fill: #165DFF;
}

.highlight-item span {
    font-size: 14px;
    color: #1D2129;
}

/* 特性行动按钮样式 */
.feature-cta {
    display: inline-flex;  /* 保持不变 */
    align-items: center;   /* 保持不变 */
    gap: 8px;             /* 保持不变 */
    padding: 12px 24px;   /* 保持不变 */
    background: linear-gradient(90deg, #165DFF, #0E42D2);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 80px;
    width: fit-content;    /* 添加这行，使按钮宽度适应内容 */
    white-space: nowrap;   /* 添加这行，防止文本换行 */
}

.feature-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.feature-cta .arrow-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.feature-cta:hover .arrow-icon {
    transform: translateX(4px);
}

/* 调整图片容器样式以适配新的布局 */
.feature-info img {
    width: 45%;  /* 稍微减小图片宽度 */
    margin-top: 24px;  /* 增加顶部间距 */
}

/* 激活状态下显示特性信息 */
.feature-info.active {
    display: flex;
}

/* 文本内容区域样式 */
.feature-info .text-content {
    /* 允许文本内容区域自适应伸缩 */
    flex: 1;
}

/* 特性展示图片样式 */
.feature-info img {
    /* 设置图片宽度为容器的50%，保持宽高比 */
    width: 50%;
    height: auto;
    /* 添加圆角和阴影效果增强视觉层次 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 特性信息激活状态的过渡动画效果 */
.feature-info.active {
    opacity: 1;
    transform: translateX(0);
}

/* 特性标题样式 */
.feature-info h2 {
    font-family: 'AlimamaShuHeiTi-Bold', sans-serif;
    font-size: 32px;
    color: #1D2129;
    margin-bottom: -16px;
    text-align: left;
}

/* 特性描述文本样式 */
.feature-info p {
    /* 设置段落文本的大小、颜色和行高 */
    font-size: 16px;
    color: #4E5969;
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: left;
}

/* 特性导航按钮容器样式 - 控制按钮的定位和布局 */
.feature-nav-buttons {
    /* 绝对定位并垂直居中 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    /* 使用flex布局实现两端对齐 */
    display: flex;
    justify-content: space-between;
    padding: 0px;
    /* 默认禁用鼠标事件，避免干扰内容区域的交互 */
    pointer-events: none;
    z-index: 2;
}

/* 导航按钮样式 - 定义单个按钮的外观和交互效果 */
.feature-nav-button {
    /* 设置按钮的尺寸和圆形外观 */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* 半透明白色背景配合浅色边框 */
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #E5E6EB;
    /* 使用flex布局居中对齐按钮内容 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* 添加过渡动画效果 */
    transition: all 0.3s ease;
    /* 启用鼠标事件响应 */
    pointer-events: auto;
    color: #1D2129;
}

/* 导航按钮悬停效果 */
.feature-nav-button:hover {
    /* 悬停时改变背景色、边框色和文字颜色 */
    background-color: #165DFF;
    border-color: #165DFF;
    color: #ffffff;
    /* 添加轻微放大效果增强交互感 */
    transform: scale(1.1);
}

/* 特性网格布局样式 - 使用网格布局展示特性卡片 */
.features-grid {
    max-width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

/* 特性卡片样式 - 定义特性展示卡片的基础外观 */
.feature-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid #E5E6EB;
}

/* 特性卡片底部边框处理 */
.feature-card:last-child {
    border-bottom: none;
}

/* 特性内容区域样式 */
.feature-content {
    flex: 1;
    padding-right: 2rem;
}

/* 特性图标样式 */
.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

/* 特性图标SVG样式 */
.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: #165DFF;
}

/* 特性卡片标题样式 */
.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1D2129;
}

/* 特性卡片描述文本样式 */
.feature-card p {
    font-size: 1rem;
    color: #4E5969;
    margin-bottom: 0;
}

/* 特性图片容器样式 */
.feature-image {
    flex: 1;
    max-width: 35%;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    overflow: hidden;
}

/* 特性图片样式 */
.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 数据集成区域样式 */
.data-integration {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-top: 60px;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(to top, #F7F8FA, #EFF4FF);
}

/* 数据集成内容区域样式 */
.data-integration-content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

/* 移除原有的内部容器样式 */
.data-integration .section-title,
.data-integration .data-sources-wall,
.data-integration .data-flow,
.data-integration .action-button {
    padding: 0;
}

/* 数据源展示墙 - 创建水平滚动的数据源展示区域 */
.data-sources-wall {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    background: #ffffff;
    border-radius: 12px;
}

/* 数据源容器 - 使用flex布局和动画效果展示数据源图标 */
.data-sources-container {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
}

/* 基础滚动动画 - 定义简单的水平滚动效果 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 数据源项目样式 - 设置单个数据源的布局和间距 */
.data-source-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    min-width: 120px;
}

/* 数据源图标样式 - 统一图标尺寸 */
.data-source-item img {
    width: 48px;
    height: 48px;
}

/* 数据源名称样式 - 设置文字大小和颜色 */
.source-name {
    font-size: 14px;
    color: #4E5969;
}

/* 精确滚动动画 - 根据数据源数量计算滚动距离 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 9 - 20px * 9));
    }
}

/* 数据流程展示 - 使用flex布局展示流程步骤 */
.data-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
}

/* 流程步骤样式 - 设置单个步骤的垂直布局 */
.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 步骤图标容器 - 创建圆形图标背景 */
.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
    transition: all 0.3s ease;  /* 添加过渡效果 */
}

/* 添加悬停效果 */
.step-icon:hover {
    transform: translateY(-5px);  /* 向上移动 5px */
    box-shadow: 0 8px 16px rgba(22, 93, 255, 0.2);  /* 增强阴影效果 */
}

/* 步骤图标SVG - 设置图标大小和颜色 */
.step-icon svg {
    width: 32px;
    height: 32px;
    fill: #165DFF;
    transition: all 0.3s ease;  /* 添加过渡效果 */
}

/* 图标悬停时的颜色变化 */
.step-icon:hover svg {
    fill: #0E42D2;  /* 悬停时图标颜色加深 */
}

/* 步骤标题样式 - 设置文字大小和颜色 */
.flow-step h3 {
    font-size: 18px;
    color: #1D2129;
    margin: 0;
}

/* 流程箭头样式 - 设置箭头的视觉效果 */
.flow-arrow {
    font-size: 24px;
    color: #165DFF;
    font-weight: bold;
}

/* 操作按钮样式 - 设置按钮的位置和对齐方式 */
.action-button {
    text-align: center;
    margin-top: 40px;
}

.action-button .feature-cta {
    margin: 0 auto;
}

/* 精品模版展示区域样式 */
.templates-showcase {
    padding: 60px 0;
    background: #ffffff;
}

/* 模版分类导航 */
.template-categories {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 40px 0;
}

.category-item {
    font-size: 16px;
    color: #4E5969;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-item:hover {
    color: #165DFF;
}

.category-item.active {
    color: #165DFF;
    background: rgba(22, 93, 255, 0.1);
}

/* 模版网格布局 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 24px;
    margin-bottom: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.template-grid[style*="display: none"] {
    opacity: 0;
}

/* 模版卡片样式 */
.template-card {
    background:#ffffff;
    border: 1px solid #165cff1a;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.15);
    background: linear-gradient(180deg, rgba(22, 92, 255, 0.173), #ffffff);  /* 添加渐变背景 */
    border: 1px solid #165DFF;
}

/* 添加新的模版预览图样式 */
.template-preview {
    width: 100%;
    height: 180px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 添加图片悬停效果 */
.template-card:hover .template-preview img {
    transform: scale(1.05);
}

/* 模版信息 */
.template-info h3 {
    font-size: 18px;
    color: #1D2129;
    margin: 0 0 8px 0;
}

.template-info p {
    font-size: 14px;
    color: #4E5969;
    margin: 0 0 16px 0;
}

/* 模版特性标签 */
.template-features {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;  /* 添加这行实现水平居中 */
}

.feature-tag {
    font-size: 12px;
    color: #165DFF;
    background: rgba(22, 93, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* 模版按钮 */
.template-cta {
    display: inline-block;
    color: #165DFF;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.template-cta:hover {
    transform: translateX(4px);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .template-categories {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* 页脚样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(197, 214, 255, 0.3));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    text-align: center;
    z-index: 100;
}

.footer p {
    margin: 0;
    color: #4E5969;
}

/* 为底部内容添加边距，避免被固定footer遮挡 */
.main-content {
    padding-bottom: 60px;
}

/* 响应式布局样式 - 针对移动设备的样式调整 */
@media (max-width: 768px) {
    /* 特性展示区域响应式调整 */
    .feature-info {
        flex-direction: column;
        gap: 24px;
    }

    .feature-info img {
        width: 100%;
        margin-top: 0;
        order: 1;
    }

    .feature-info .text-content {
        width: 100%;
        order: 2;
    }

    /* 导航容器响应式调整 - 改为垂直布局以适应小屏幕 */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 5%;
    }

    /* 导航菜单响应式调整 - 优化移动端显示效果和间距 */
    .nav-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* 特性展示区域移动端优化 */
    .features-grid {
        max-width: 100%;
        padding: 0 1rem;
    }

    .feature-card {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .feature-content {
        padding-right: 0;
    }

    .feature-image {
        max-width: 100%;
        margin-top: 1rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        white-space: normal;
        line-height: 1.4;
    }

    .feature-card p {
        font-size: 0.875rem;
        line-height: 1.6;
        white-space: normal;
    }

    /* 主标题响应式调整 - 减小字体大小以适应移动端显示 */
    .hero-section h1 {
        font-size: 2rem;
    }

    /* 主标题描述文本响应式调整 - 优化移动端文本大小 */
    .hero-section p {
        font-size: 1rem;
    }

    /* 内容区域响应式调整 - 减小内边距以优化移动端空间利用 */
    section {
        padding: 3rem 5%;
    }

    /* 二级标题响应式调整 - 调整字体大小以保持移动端的视觉层次 */
    h2 {
        font-size: 2rem;
    }
}