/**
 * =============================================
 * 商务合作页样式文件 cooperation.css
 * 用途：商务合作页专属样式，包括横向滑动卡片、联系信息
 * 作者：AI开发
 * 创建日期：2026-03-06
 * =============================================
 */

/* ==================== 页面容器 ==================== */
/**
 * .page-wrapper - 页面主容器
 * min-height: 100vh - 最小高度占满视口
 * background: 渐变背景，使用CSS变量实现主题色
 */
.page-wrapper {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--current-bg) 0%, var(--current-bg2) 100%);
}

/* ==================== 页面头部 ==================== */
/**
 * .page-header - 页面标题区域
 * padding: 内边距（上下32px和24px）
 * text-align: 文字居中对齐
 */
.page-header {
    padding: 32px 0 0px;
    text-align: center;
}

/**
 * .page-title - 页面主标题动画
 */
.animate-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--current-accent);
    margin-bottom: 0px;
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    opacity: 0;
    transform: translateY(20px);

    animation: fadeInUp 0.6s ease forwards;
}

/**
 * .page-subtitle - 页面副标题动画
 */
.animate-subtitle {
    font-size: var(--font-sm);
    line-height: 1.6;
    color: #666;
    margin-bottom: 6px;
    margin-top: -5px;

    opacity: 0;
    transform: translateY(20px);

    animation: fadeInUp 0.6s ease 0.2s forwards;
}

/**
 * 淡入上浮动画
 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 横向滑动卡片区域 ==================== */
/**
 * .cooperation-swiper-section - 横向滑动卡片外层容器
 * padding: 上下内边距
 * overflow: hidden - 隐藏溢出内容
 */
.cooperation-swiper-section {
    padding: 0px 0 32px;
    overflow:：visible;
}

/**
 * .swiper-container - 滑动容器
 * position: relative - 相对定位，作为子元素的定位参考
 * min-height: 800px - 最小高度，确保有足够空间显示卡片
 * width: 100% - 宽度占满父容器
 * touch-action: pan-y - 允许垂直滑动，水平滑动交给JS处理
 */
.swiper-container {
    position: relative;
    min-height: 550px;
    width: 100%;
    touch-action: pan-y;
}

/* ==================== 合作卡片 ==================== */
/**
 * .cooperation-card - 单个合作卡片
 * position: absolute - 绝对定位，所有卡片重叠在一起
 * width: calc(100% - 32px) - 宽度减去左右各16px的边距
 * display: none - 默认隐藏
 * opacity: 0 - 透明度为0
 * transition: 透明度和位移动画，使用缓动函数
 * background: 半透明白色背景
 * backdrop-filter: 毛玻璃效果，模糊背景
 * border: 白色边框
 * box-shadow: 阴影效果
 * transform: 初始向右偏移50px
 */
.cooperation-card {
    position: absolute;
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    padding: 28px 24px;
    display: none;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateX(50px);
}

/**
 * .cooperation-card.active - 激活状态的卡片
 * display: block - 显示卡片
 * opacity: 1 - 完全不透明
 * transform: translateX(0) - 回到原位
 * box-shadow: 阴影加深，突出显示
 */
.cooperation-card.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* ==================== 卡片进入动画 ==================== */
/**
 * .cooperation-card.slide-in-left - 从左侧滑入的动画类
 * animation: 使用slideInLeft动画，持续时间0.6s
 */
.cooperation-card.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/**
 * .cooperation-card.slide-in-right - 从右侧滑入的动画类
 * animation: 使用slideInRight动画，持续时间0.6s
 */
.cooperation-card.slide-in-right {
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/**
 * @keyframes slideInLeft - 从左侧滑入的关键帧动画
 * 0%: 透明，向右偏移100px
 * 100%: 完全显示，回到原位
 */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/**
 * @keyframes slideInRight - 从右侧滑入的关键帧动画
 * 0%: 透明，向左偏移100px
 * 100%: 完全显示，回到原位
 */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 卡片头部 ==================== */
/**
 * .card-header - 卡片头部区域
 * text-align: center - 文字居中
 * margin-bottom: 与内容区域的间距
 * padding-bottom: 底部内边距
 * border-bottom: 底部分隔线
 */
.card-header {
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/**
 * .card-icon - 卡片图标
 * font-size: 图标大小（使用emoji或字体图标）
 * margin-bottom: 与标题的间距
 */
.card-icon {
    font-size: 56px;
    margin-bottom: 0px;
}

/**
 * .card-title - 卡片标题
 * font-size: 标题字体大小
 * font-weight: 700 - 粗体
 * color: 使用主题强调色
 */
.card-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--current-accent);
    margin-bottom: 6px;
    margin-top: 0;
}

/**
 * .card-badge - 卡片徽章标签
 * display: inline-block - 行内块元素
 * padding: 内边距
 * border-radius: 20px - 圆角
 * background: 渐变背景，使用主题色
 * color: #fff - 白色文字
 */
.card-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-light) 100%);
    color: #fff;
}

/**
 * .card-badge.premium - 高级徽章样式
 * background: 橙色渐变
 */
.card-badge.premium {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
}

/* ==================== 卡片内容 ==================== */
/**
 * .card-content - 卡片内容区域
 * display: flex - Flexbox布局
 * flex-direction: column - 垂直排列
 * gap: 16px - 子元素间距
 * margin-bottom: 与底部的间距
 */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/**
 * .info-item - 单个信息项（如加盟价格、条件等）
 * display: flex - Flexbox布局
 * flex-direction: column - 垂直排列标签和值
 * padding: 内边距
 * background: 半透明白色背景
 * border-radius: 圆角
 */
.info-item {
    display: flex;
    flex-direction: column;
    padding:6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

/**
 * .info-label - 信息项标签（如"加盟价格"）
 * font-size: 小字体
 * color: 灰色
 * margin-bottom: 与值的间距
 * font-weight: 500 - 中等粗细
 */
.info-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
}

/**
 * .info-value - 信息项值
 * font-size: 中等字体
 * color: 深灰色
 * line-height: 行高，提升可读性
 */
.info-value {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

/**
 * .info-value.highlight - 高亮信息值（如"免费"）
 * font-size: 大字体，突出显示
 * font-weight: 700 - 粗体
 * color: 使用主题色
 */
.info-value.highlight {
    font-size: 22px;
    font-weight: 700;
    color: var(--current-primary);
}

/* ==================== 卡片底部 ==================== */
/**
 * .card-footer - 卡片底部区域
 * text-align: center - 内容居中
 */
.card-footer {
    text-align: center;
}

/**
 * .card-btn - 卡片按钮
 * width: 100% - 宽度占满
 * max-width: 200px - 最大宽度限制
 */
.card-btn {
    width: 100%;
    max-width: 200px;
}

/* ==================== 滑动指示器 ==================== */
/**
 * .swiper-pagination - 滑动指示器容器
 * display: flex - Flexbox布局
 * justify-content: center - 居中对齐
 * gap: 12px - 指示点间距
 * margin-top: 与卡片的间距
 */
.swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0px;  /* 增加间距，从24px改为48px */
    margin-bottom: 12px;
}

/**
 * .pagination-dot - 单个指示点
 * width/height: 12px - 尺寸
 * border-radius: 50% - 圆形
 * background: 使用主题色，让用户明显看到有多个点
 * cursor: pointer - 鼠标悬停显示手型
 * transition: 动画过渡效果
 */
.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--current-primary);
    cursor: pointer;
    transition: all 0.3s;
}

/**
 * .pagination-dot:hover - 悬停状态
 * 放大效果，提示可点击
 */
.pagination-dot:hover {
    transform: scale(1.15);
}

/**
 * .pagination-dot.active - 激活状态的指示点
 * transform: scale(1.5) - 放大1.5倍，比未激活的更大
 */
.pagination-dot.active {
    transform: scale(1.5);
}

/* ==================== 联系区域 ==================== */
/**
 * .contact-section - 联系信息区域
 * padding: 上下内边距
 */
.contact-section {
    padding: 24px 0 40px;
}

/**
 * .section-subtitle - 区域副标题
 * font-size: 小字体
 * color: 灰色
 */
.section-subtitle {
    font-size: var(--font-sm);
    color: #666;
    margin-bottom: 24px;
    margin-top: -8px;
}

/**
 * .contact-grid - 联系卡片网格
 * display: grid - 网格布局
 * gap: 卡片间距
 */
.contact-grid {
    display: grid;
    gap: 16px;
}

/**
 * .contact-card - 单个联系卡片
 * padding: 内边距
 * background: 半透明白色背景
 * backdrop-filter: 毛玻璃效果
 * border: 白色边框
 * box-shadow: 阴影
 * display: flex - Flexbox布局
 * align-items: center - 垂直居中
 * gap: 16px - 子元素间距
 * transition: 悬停动画过渡
 */
.contact-card {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
}

/**
 * .contact-card:hover - 卡片悬停状态
 * background: 背景变亮
 * transform: 向上移动2px
 * box-shadow: 阴影加深
 */
.contact-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/**
 * .contact-icon - 联系图标容器
 * width/height: 56px - 尺寸
 * min-width: 56px - 防止压缩
 * border-radius: 50% - 圆形
 * background: 半透明渐变背景
 * display: flex - Flexbox布局
 * align-items/justify-content: center - 居中对齐
 * font-size: 图标大小
 */
.contact-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.1) 0%, rgba(109, 207, 222, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/**
 * .contact-info - 联系信息文本容器
 * flex: 1 - 占据剩余空间
 */
.contact-info {
    flex: 1;
}

/**
 * .contact-label - 联系标签（如"电话"）
 * font-size: 14px - 小字体
 * color: 灰色
 * margin-bottom: 与值的间距
 */
.contact-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
}

/**
 * .contact-value - 联系方式值（如电话号码）
 * font-size: 18px - 中等字体
 * color: 使用主题强调色
 * font-weight: 600 - 半粗体
 * text-decoration: none - 无下划线
 * transition: 颜色过渡动画
 */
.contact-value {
    font-size: 18px;
    color: var(--current-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/**
 * .contact-value:hover - 联系方式悬停状态
 * color: 变为主题色
 */
.contact-value:hover {
    color: var(--current-primary);
}

/**
 * .contact-value-desc - 联系方式描述文字
 * font-size: 14px - 小字体
 * color: 灰色
 * line-height: 行高
 */
.contact-value-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

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

/**
 * @media (max-width: 375px) - 小屏幕适配（iPhone SE等）
 * 调整卡片内边距、图标大小、字体大小
 */
@media (max-width: 375px) {
    /* 减小卡片内边距 */
    .cooperation-card {
        padding: 24px 20px;
    }

    /* 减小图标尺寸 */
    .card-icon {
        font-size: 48px;
    }

    /* 减小标题字体 */
    .card-title {
        font-size: 22px;
    }

    /* 减小高亮值字体 */
    .info-value.highlight {
        font-size: 20px;
    }

    /* 减小联系卡片内边距 */
    .contact-card {
        padding: 20px 16px;
    }
}

/**
 * @media (min-width: 768px) - 平板和桌面适配
 * 限制容器宽度，调整布局为三列
 */
@media (min-width: 768px) {
    /* 限制滑动容器最大宽度并居中 */
    .swiper-container {
        max-width: 600px;
        margin: 0 auto;
    }

    /* 卡片宽度占满容器 */
    .cooperation-card {
        width: 100%;
        left: 0;
        right: 0;
    }

    /* 联系卡片改为三列布局 */
    .contact-grid {
        max-width: 700px;
        margin: 0 auto;
        grid-template-columns: repeat(3, 1fr);
    }

    /* 联系卡片垂直排列并居中 */
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}
