/**
 * =============================================
 * 首页样式文件 index.css
 * 用途：首页专属样式，包括Hero、特性、产品展示等
 * 作者：AI开发
 * 创建日期：2026-03-06
 * =============================================
 */

/* ===================================
 * 页面容器
 * =================================== */

.page-wrapper {
    /* 最小高度确保页面占满屏幕 */
    min-height: 100vh;

    /* 背景渐变 - 从白色到浅青色 */
    background: linear-gradient(180deg, var(--current-bg) 0%, var(--current-bg2) 100%);
}

/* ===================================
 * Hero区域样式
 * =================================== */

/**
 * Hero区域容器
 * 首页主视觉区域，包含标题、按钮、数据等
 */
.hero-section {
    /* 相对定位 - 用于定位背景装饰 */
    position: relative;

    /* 内边距 - 顶部留空给状态栏 */
    padding: 40px 0 16px; /* 进一步减少底部内边距，让两个模块靠得更近 */

    /* 溢出隐藏 - 隐藏背景装饰超出部分 */
    overflow: hidden;

    /* 最小高度 - 确保视觉冲击力 */
    min-height: 500px;
}

/**
 * Hero背景装饰 - 渐变圆形
 * 营造层次感和视觉效果
 */
.hero-bg-decoration {
    /* 绝对定位 - 不影响内容布局 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* 指向事件穿透 - 不影响交互 */
    pointer-events: none;

    /* z-index - 在内容下方 */
    z-index: 0;
}

/**
 * 背景圆形 - 基础样式
 */
.hero-circle {
    /* 绝对定位 */
    position: absolute;
    border-radius: 50%;

    /* 背景渐变 - 使用主题色 */
    background: radial-gradient(circle, var(--current-light) 0%, transparent 70%);

    /* 模糊效果 - 增加柔和感 */
    filter: blur(40px);

    /* 透明度 */
    opacity: 0.6;

    /* 动画 - 缓慢浮动 */
    animation: float 6s ease-in-out infinite;
}

/**
 * 背景圆形1 - 左上角
 */
.hero-circle-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    /* 动画延迟 - 与其他圆形错开 */
    animation-delay: 0s;
}

/**
 * 背景圆形2 - 右中位置
 */
.hero-circle-2 {
    width: 300px;
    height: 300px;
    top: 30%;
    right: -100px;
    /* 动画延迟 */
    animation-delay: 2s;
    /* 透明度稍高 */
    opacity: 0.4;
}

/**
 * 背景圆形3 - 左下位置
 */
.hero-circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    /* 动画延迟 */
    animation-delay: 4s;
    /* 透明度较低 */
    opacity: 0.3;
}

/**
 * Hero浮动动画
 * @keyframes float {
    0%, 100% {
        /* 初始位置 - 原始位置 */
        transform: translateY(0);
    }
    50% {
        /* 中间位置 - 向上移动 */
        transform: translateY(-20px);
    }
}

/**
 * Hero内容容器
 */
.hero-content {
    /* 相对定位 - 确保内容在背景之上 */
    position: relative;
    z-index: 1;

    /* Flex列布局 - 垂直排列 */
    display: flex;
    flex-direction: column;

    /* 垂直居中 */
    justify-content: center;

    /* 文字居中 */
    text-align: center;
}

/**
 * Hero标题
 */
.hero-title {
    /* 字体大小 - 大标题 */
    font-size: 42px;
    line-height: 1.2;

    /* 字重 - 加粗 */
    font-weight: 800;

    /* 颜色 - 使用强调色 */
    color: var(--current-accent);

    /* 下边距 */
    margin-bottom: var(--spacing-md);

    /* 文字渐变效果 - 从主题色到浅色 */
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/**
 * Hero标题行 - 用于分行显示
 */
.hero-title-line {
    /* 块级显示 - 每行独立 */
    display: block;
}

/**
 * Hero副标题
 */
.hero-subtitle {
    /* 字体大小 - 中等 */
    font-size: var(--font-lg);
    line-height: 1.4;

    /* 颜色 - 使用主题色 */
    color: var(--current-primary);

    /* 下边距 */
    margin-bottom: var(--spacing-sm);
}

/**
 * Hero描述
 */
.hero-description {
    /* 字体大小 - 小字体 */
    font-size: var(--font-sm);
    line-height: 1.6;

    /* 颜色 - 灰色 */
    color: #666;

    /* 下边距 */
    margin-bottom: var(--spacing-lg);
}

/**
 * Hero按钮组
 */
.hero-buttons {
    /* Flex布局 - 水平排列按钮 */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 按钮之间的间距 */
    gap: var(--spacing-md);

    /* 下边距 */
    margin-bottom: var(--spacing-xl);
}

/**
 * Hero主要按钮
 */
.hero-btn-primary {
    /* 最小宽度 - 确保按钮美观 */
    min-width: 120px;
}

/**
 * Hero次要按钮
 */
.hero-btn-secondary {
    /* 最小宽度 */
    min-width: 120px;
}

/**
 * Hero数据展示区域
 */
.hero-stats {
    /* Flex布局 - 水平排列统计项 */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 统计项之间的间距 */
    gap: var(--spacing-xl);
}

/**
 * 统计项
 */
.stat-item {
    /* Flex列布局 - 垂直排列数字和标签 */
    display: flex;
    flex-direction: column;
    align-items: center;

    /* 玻璃卡片效果 */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);

    /* 内边距 */
    padding: var(--spacing-md);

    /* 宽度和高度 */
    width: 100px;
    height: 80px;

    /* Flex布局 - 居中内容 */
    justify-content: center;
}

/**
 * 统计数字
 */
.stat-number {
    /* 字体大小 - 大号数字 */
    font-size: 22px;
    line-height: 1.2;

    /* 字重 - 加粗 */
    font-weight: 800;

    /* 颜色 - 使用主题色 */
    color: var(--current-primary);

    /* 下边距 - 与标签分隔 */
    margin-bottom: 4px;
}

/**
 * 统计标签
 */
.stat-label {
    /* 字体大小 - 超小字体 */
    font-size: 11px;

    /* 颜色 - 灰色 */
    color: #999;
}

/* ===================================
 * 核心特性区域样式
 * =================================== */

/**
 * 特性区域容器
 */
.features-section {
    /* 内边距 */
    padding: var(--spacing-md) 0; /* 进一步减少顶部内边距，让两个模块靠得更近 */

    /* 向上偏移 - 让两个模块视觉上更紧密，同时Hero渐变背景完整显示 */
    margin-top: -200px; /* 向上偏移200px */
}

/**
 * 区块副标题
 */
.section-subtitle {
    /* 字体大小 - 小字体 */
    font-size: var(--font-sm);

    /* 颜色 - 灰色 */
    color: #666;

    /* 下边距 */
    margin-bottom: var(--spacing-lg);
}

/**
 * 特性网格
 */
.features-grid {
    /* 网格布局 - 2列 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    /* 网格间距 */
    gap: var(--spacing-md);
}

/**
 * 特性卡片
 */
.feature-card {
    /* Flex列布局 - 垂直排列内容 */
    display: flex;
    flex-direction: column;
    align-items: center;

    /* 内边距 */
    padding: var(--spacing-md);

    /* 最小高度 */
    min-height: 160px;

    /* 文字居中 */
    text-align: center;

    /* 背景透明度调整 - 降低透明度增强玻璃感（原75%，改为65%） */
    background: rgba(255, 255, 255, 0.65);
}

/**
 * 特性图标容器
 */
.feature-icon {
    /* 尺寸 */
    width: 64px;
    height: 64px;

    /* 圆形 */
    border-radius: 50%;

    /* 背景色 - 主题色浅色半透明 */
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.15) 0%, rgba(109, 207, 222, 0.15) 100%);

    /* Flex布局 - 居中图标 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 下边距 */
    margin-bottom: var(--spacing-sm);

    /* 字体大小 - emoji图标 */
    font-size: 32px;
}

/**
 * 特性图标SVG
 */
.feature-icon svg {
    /* 尺寸 */
    width: 32px;
    height: 32px;
}

/**
 * 特性标题
 */
.feature-title {
    /* 字体大小 - 中等 */
    font-size: var(--font-md);

    /* 字重 - 加粗 */
    font-weight: 600;

    /* 颜色 - 使用强调色 */
    color: var(--current-accent);

    /* 下边距 */
    margin-bottom: var(--spacing-xs);
}

/**
 * 特性描述
 */
.feature-description {
    /* 字体大小 - 小字体 */
    font-size: var(--font-sm);

    /* 行高 */
    line-height: 1.5;

    /* 颜色 - 灰色 */
    color: #666;
}

/* ===================================
 * 产品展示区域样式
 * =================================== */

/**
 * 产品区域容器
 */
.products-section {
    /* 内边距 */
    padding: var(--spacing-xl) 0;
}

/**
 * 产品网格
 */
.products-grid {
    /* 网格布局 - 2列 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    /* 网格间距 */
    gap: var(--spacing-md);
}

/**
 * 产品卡片
 */
.product-card {
    /* Flex列布局 - 垂直排列内容 */
    display: flex;
    flex-direction: column;

    /* 文字颜色 - 继承 */
    color: inherit;

    /* 过渡效果 */
    transition: all var(--transition-normal);

    /* 移除下划线 */
    text-decoration: none;

    /* 背景透明度调整 - 降低透明度增强玻璃感（原75%，改为65%） */
    background: rgba(255, 255, 255, 0.65);
}

/**
 * 产品图片区域
 */
.product-image {
    /* 相对定位 */
    position: relative;

    /* 宽度和高度 - 占满卡片 */
    width: 100%;
    height: 120px;

    /* 圆角 - 仅顶部 */
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;

    /* 背景渐变 */
    background: linear-gradient(135deg, var(--current-bg) 0%, var(--current-bg2) 100%);

    /* Flex布局 - 居中占位符 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 溢出隐藏 */
    overflow: hidden;
}

/**
 * 产品图片占位符
 */
.product-image-placeholder {
    /* Flex布局 - 居中图标 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 宽度和高度 */
    width: 100%;
    height: 100%;

    /* 图标颜色 - 使用主题色 */
    color: var(--current-primary);
}

/**
 * 占位符SVG
 */
.product-image-placeholder svg {
    /* 尺寸 */
    width: 48px;
    height: 48px;

    /* 透明度 */
    opacity: 0.5;
}

/**
 * 产品信息区域
 */
.product-info {
    /* Flex列布局 - 垂直排列内容 */
    display: flex;
    flex-direction: column;

    /* 内边距 */
    padding: var(--spacing-md);

    /* Flex-grow - 填充剩余空间 */
    flex: 1;
}

/**
 * 产品标题
 */
.product-title {
    /* 字体大小 - 中等 */
    font-size: var(--font-md);

    /* 字重 - 加粗 */
    font-weight: 600;

    /* 颜色 - 使用强调色 */
    color: var(--current-accent);

    /* 下边距 */
    margin-bottom: var(--spacing-xs);

    /* 文字省略 - 超出显示省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**
 * 产品描述
 */
.product-description {
    /* 字体大小 - 小字体 */
    font-size: var(--font-xs);

    /* 行高 */
    line-height: 1.4;

    /* 颜色 - 灰色 */
    color: #666;

    /* 下边距 - 与链接分隔 */
    margin-bottom: var(--spacing-sm);

    /* 文字省略 - 最多2行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/**
 * 产品链接
 */
.product-link {
    /* 字体大小 - 超小字体 */
    font-size: 11px;

    /* 颜色 - 使用主题色 */
    color: var(--current-primary);

    /* 字重 - 加粗 */
    font-weight: 600;
}

/**
 * 产品卡片hover效果
 */
.product-card:hover {
    /* 向上移动 */
    transform: translateY(-4px);

    /* 阴影增强 */
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/**
 * 查看更多产品卡片
 * 特殊样式的产品卡片
 */
.product-card-more {
    /* Flex布局 - 居中内容 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 最小高度 - 与其他卡片一致 */
    min-height: 220px;

    /* 背景渐变 - 使用主题色 */
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.1) 0%, rgba(109, 207, 222, 0.05) 100%);
}

/**
 * 查看更多内容
 */
.product-more-content {
    /* Flex列布局 - 垂直排列内容 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/**
 * 查看更多图标
 */
.product-more-icon {
    /* 尺寸 */
    width: 64px;
    height: 64px;

    /* 圆形 */
    border-radius: 50%;

    /* 背景色 - 主题色 */
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-light) 100%);

    /* Flex布局 - 居中图标 */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 下边距 */
    margin-bottom: var(--spacing-md);
}

/**
 * 查看更多图标SVG
 */
.product-more-icon svg {
    /* 颜色 - 白色 */
    fill: #fff;

    /* 尺寸 */
    width: 32px;
    height: 32px;
}

/**
 * 查看更多标题
 */
.product-more-title {
    /* 字体大小 - 中等 */
    font-size: var(--font-md);

    /* 字重 - 加粗 */
    font-weight: 600;

    /* 颜色 - 使用强调色 */
    color: var(--current-accent);

    /* 下边距 */
    margin-bottom: var(--spacing-xs);
}

/**
 * 查看更多描述
 */
.product-more-description {
    /* 字体大小 - 小字体 */
    font-size: var(--font-sm);

    /* 颜色 - 灰色 */
    color: #666;
}

/* ===================================
 * CTA区域样式
 * =================================== */

/**
 * CTA区域容器
 */
.cta-section {
    /* 内边距 */
    padding: var(--spacing-xl) 0 var(--spacing-xl);
}

/**
 * CTA卡片
 */
.cta-card {
    /* Flex列布局 - 垂直排列内容 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    /* 内边距 */
    padding: var(--spacing-xl) var(--spacing-md);

    /* 背景渐变 - 使用主题色 */
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.1) 0%, rgba(109, 207, 222, 0.05) 100%);
}

/**
 * CTA标题
 */
.cta-title {
    /* 字体大小 - 大标题 */
    font-size: 24px;

    /* 字重 - 加粗 */
    font-weight: 700;

    /* 颜色 - 使用强调色 */
    color: var(--current-accent);

    /* 下边距 */
    margin-bottom: var(--spacing-sm);
}

/**
 * CTA描述
 */
.cta-description {
    /* 字体大小 - 小字体 */
    font-size: var(--font-sm);

    /* 行高 */
    line-height: 1.6;

    /* 颜色 - 灰色 */
    color: #666;

    /* 下边距 */
    margin-bottom: var(--spacing-lg);
}

/**
 * CTA按钮组
 */
.cta-buttons {
    /* Flex布局 - 水平排列按钮 */
    display: flex;
    justify-content: center;
    align-items: center;

    /* 按钮之间的间距 */
    gap: var(--spacing-md);
}

/**
 * CTA主要按钮
 */
.cta-btn-primary {
    /* 最小宽度 */
    min-width: 100px;
}

/**
 * CTA次要按钮
 */
.cta-btn-secondary {
    /* 最小宽度 */
    min-width: 100px;
}

/* ===================================
 * 响应式适配
 * =================================== */

/**
 * 小屏设备适配（iPhone SE等）
 */
@media (max-width: 375px) {
    /* Hero标题减小 */
    .hero-title {
        font-size: 36px;
    }

    /* 特性网格改为单列 */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* 产品网格改为单列 */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* CTA按钮组改为垂直排列 */
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/**
 * 大屏设备适配（横屏、平板等）
 */
@media (min-width: 768px) {
    /* Hero区域增大 */
    .hero-section {
        padding: 60px 0 80px;
        min-height: 600px;
    }

    /* 特性网格改为3列 */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 产品网格改为3列 */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 统计项间距增大 */
    .hero-stats {
        gap: 60px;
    }
}
