/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 50%, #ffd3a5 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #2d3436;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 - 紧凑型设计 + 滚动隐藏 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 230, 207, 0.3);
    padding: 12px 0; /* 从25px减少到12px */
    position: fixed; /* 改为fixed以支持transform动画 */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(168, 230, 207, 0.1); /* 减少阴影强度 */
    transition: transform 0.3s ease-in-out; /* 添加平滑过渡动画 */
}

/* 标头隐藏状态 */
.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    text-align: center;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* 从15px减少到8px */
    margin-bottom: 0; /* 移除底部间距 */
}

.logo-emoji {
    font-size: 1.8rem; /* 从3rem减少到1.8rem */
    filter: drop-shadow(0 2px 4px rgba(168, 230, 207, 0.3));
}

.title {
    font-size: 1.5rem; /* 从2.5rem减少到1.5rem */
    font-weight: 600; /* 从700减少到600 */
    background: linear-gradient(135deg, #00b894, #55a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 0.9rem; /* 从1.1rem减少到0.9rem */
    color: #636e72;
    font-weight: 400; /* 从500减少到400 */
    margin-top: 4px; /* 添加小间距 */
    line-height: 1.3; /* 紧凑行高 */
}

/* 主内容区域 */
.main {
    padding: 40px 0;
    margin-top: 80px; /* 为固定标头预留空间 */
}

/* 使用说明 */
.instructions {
    margin-bottom: 30px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(168, 230, 207, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 桌面端详细步骤 */
.desktop-instructions {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* 移动端展开式教程 */
.mobile-instructions {
    display: none;
    flex-direction: column;
    margin-top: 20px;
}

.mobile-tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.mobile-tutorial-header:hover {
    opacity: 0.8;
}

.mobile-tutorial-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00b894, #55a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
}

.expand-icon {
    font-size: 1.1rem;
    color: #00b894;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 10px;
    display: inline-block;
}

.expand-icon.expanded {
    transform: rotate(180deg);
    color: #55a3ff;
}

.mobile-tutorial-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-tutorial-content.expanded {
    max-height: 400px;
    margin-top: 20px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-tutorial-content .step {
    margin-bottom: 12px;
    padding: 18px;
    background: rgba(168, 230, 207, 0.08);
    border-radius: 12px;
    border-left: 4px solid #00b894;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 230, 207, 0.2);
}

.mobile-tutorial-content .step:hover {
    background: rgba(168, 230, 207, 0.15);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(168, 230, 207, 0.2);
}

.mobile-tutorial-content .step:last-child {
    margin-bottom: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.1), rgba(220, 237, 193, 0.1));
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid rgba(168, 230, 207, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.3);
    border-color: rgba(168, 230, 207, 0.4);
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00b894, #55a3ff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mobile-tutorial-content .step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.step-text {
    font-weight: 500;
    color: #2d3436;
    font-size: 15px;
    flex: 1;
    line-height: 1.4;
}

/* 优惠券区域 */
.coupons-section {
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00b894, #55a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #636e72;
    font-weight: 500;
}

.coupons-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 25px;
}

/* 优惠券卡片 */
.coupon-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(168, 230, 207, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 优惠券标签 - 右上角显示 */
.coupon-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 不同标签的颜色主题 */
.coupon-tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.coupon-tag.big {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.coupon-tag.recommend {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.coupon-tag.new {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}

.coupon-tag.limited {
    background: linear-gradient(135deg, #a55eea, #8854d0);
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00b894, #55a3ff, #fd79a8);
    border-radius: 20px 20px 0 0;
}

.coupon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(168, 230, 207, 0.3);
    border-color: rgba(168, 230, 207, 0.5);
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.platform-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: 0 3px 12px rgba(168, 230, 207, 0.2);
}

.coupon-info {
    flex: 1;
}

.coupon-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 4px;
    line-height: 1.3;
}

.coupon-amount {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00b894, #55a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coupon-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    white-space: pre-line;
    /* 保持换行符 */
    word-wrap: break-word;
    /* 长文本自动换行 */
}

/* 复制区域 */
.copy-section {
    margin-top: 12px;
    width: 100%;
}

/* 混合模式样式 - 支持复制和跳转两个按钮并排显示 */
.copy-section.mixed-mode {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.copy-section.mixed-mode .action-btn {
    flex: 1;
    min-width: 120px;
    margin-top: 0;
}

/* 响应式设计：小屏幕上按钮垂直排列 */
@media (max-width: 480px) {
    .copy-section.mixed-mode {
        flex-direction: column;
    }

    .copy-section.mixed-mode .action-btn {
        width: 100%;
        min-width: auto;
    }
}

.copy-code-display {
    background: rgba(168, 230, 207, 0.1);
    border: 2px solid rgba(168, 230, 207, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: text;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-code-display:hover {
    background: rgba(168, 230, 207, 0.2);
    border-color: rgba(168, 230, 207, 0.5);
}

.copy-code-display.selected {
    background: rgba(0, 184, 148, 0.1);
    border-color: #00b894;
}

.copy-label {
    font-size: 0.8rem;
    color: #636e72;
    font-weight: 600;
    flex-shrink: 0;
}

.copy-code-text {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 1rem;
    font-weight: 400;
    color: #2d3436;
    background: white;
    padding: 3px 6px;
    border-radius: 5px;
    margin-left: 6px;
    box-shadow: 0 2px 6px rgba(168, 230, 207, 0.2);
    word-break: break-all;
    flex: 1;
    text-align: center;
}

/* 复制按钮 */
.copy-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 10px;
    margin-top: 14px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    user-select: none;
}

.copy-btn {
    background: linear-gradient(135deg, #00b894, #55a3ff);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #55a3ff, #00b894);
}

.copy-btn.qrcode-btn {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

.copy-btn.qrcode-btn:hover {
    background: linear-gradient(135deg, #fdcb6e, #fd79a8);
}

.copy-btn.link-btn {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
}

.copy-btn.link-btn:hover {
    background: linear-gradient(135deg, #a29bfe, #74b9ff);
}

.copy-btn.image-btn {
    background: linear-gradient(135deg, #e17055, #fab1a0);
}

.copy-btn.image-btn:hover {
    background: linear-gradient(135deg, #fab1a0, #e17055);
}

/**
 * 混合模式样式 - 桌面端布局优化
 * 
 * 功能说明：
 * 混合模式是一种特殊的优惠券显示模式，同时提供"复制口令"和"立即跳转"两种操作方式
 * 在桌面端采用水平并排布局，通过"或"字分隔符连接两个操作按钮
 * 
 * 布局特点：
 * 1. 水平排列：两个按钮在桌面端左右并排显示
 * 2. 紧凑间距：按钮间距优化为8px，提供更紧凑的视觉效果
 * 3. 居中对齐：整体内容在容器中居中显示
 * 4. 弹性布局：支持内容换行，适应不同屏幕宽度
 * 
 * 2025-08-04 更新：
 * - gap从10px调整为8px，减少按钮间距，界面更紧凑
 * - margin-top从14px调整为12px，与分隔符对齐优化
 */
.copy-section.mixed-mode {
    display: flex;
    /* 弹性布局，支持灵活的元素排列 */
    align-items: center;
    /* 垂直居中对齐所有子元素 */
    gap: 8px;
    /* 子元素间距8px（优化后：更紧凑的视觉效果） */
    flex-wrap: wrap;
    /* 允许内容换行，适应窄屏幕 */
    justify-content: center;
    /* 水平居中对齐整体内容 */
}

/**
 * 混合模式按钮样式 - 统一设计规范
 * 
 * 设计原则：
 * 1. 统一外观：所有按钮使用相同的基础样式和尺寸
 * 2. 功能区分：通过颜色差异区分复制和跳转功能
 * 3. 响应式设计：按钮宽度自适应，最小宽度120px
 * 4. 视觉对齐：顶部边距与分隔符保持一致
 * 
 * 2025-08-04 更新：
 * - margin-top从14px调整为12px，与整体间距优化保持一致
 */
.copy-section.mixed-mode .copy-btn {
    flex: 1;
    /* 弹性伸缩，平均分配可用空间 */
    min-width: 120px;
    /* 最小宽度120px，确保按钮可读性 */
    margin-top: 12px;
    /* 顶部边距12px（优化后：与分隔符对齐） */
    /* 统一按钮样式，都使用相同的背景色 */
    background: linear-gradient(135deg, #00b894, #55a3ff);
    /* 主色调渐变背景 */
}

.copy-section.mixed-mode .copy-btn:hover {
    background: linear-gradient(135deg, #55a3ff, #00b894);
}

.copy-section.mixed-mode .copy-btn.link-btn {
    /* 链接按钮使用不同的颜色以区分功能 */
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
}

.copy-section.mixed-mode .copy-btn.link-btn:hover {
    background: linear-gradient(135deg, #a29bfe, #74b9ff);
}

/**
 * 混合模式"或"字分隔符样式 - 现代化设计
 * 
 * 功能说明：
 * 在混合模式优惠券中，用于分隔"复制口令"和"立即跳转"两个按钮的装饰性元素
 * 采用现代化的胶囊形状设计，配合装饰性线条，提升视觉层次感
 * 
 * 设计特点：
 * 1. 胶囊形状：使用20px圆角创建现代化的胶囊外观
 * 2. 蓝色主题：与系统整体色彩方案保持一致
 * 3. 微妙阴影：增加层次感和立体效果
 * 4. 装饰线条：通过伪元素添加左右延伸的装饰线
 * 5. 平滑过渡：所有状态变化都有0.2s的过渡动画
 * 
 * 使用场景：
 * - 混合模式优惠券的按钮分隔
 * - 提供清晰的视觉引导
 * - 增强用户界面的美观性
 */
.mixed-mode-separator {
    position: relative;
    /* 相对定位，为伪元素提供定位基准 */
    display: flex;
    /* 弹性布局，便于内容居中对齐 */
    align-items: center;
    /* 垂直居中对齐文字内容 */
    justify-content: center;
    /* 水平居中对齐文字内容 */
    margin: 12px 0 0 0;
    /* 顶部边距12px，与按钮对齐（2025-08-04优化：统一间距） */
    flex-shrink: 0;
    /* 防止在弹性布局中被压缩 */
    user-select: none;
    /* 禁止用户选择文字，保持界面整洁 */

    /* 文字样式设置 */
    font-size: 12px;
    /* 小号字体，不抢夺按钮的视觉焦点 */
    font-weight: 500;
    /* 中等字重，保持清晰可读 */
    color: #74b9ff;
    /* 蓝色文字，与系统主色调一致 */

    /* 背景和边框设计 */
    background: white;
    /* 白色背景，与页面背景形成对比 */
    border: 2px solid #e3f2fd;
    /* 浅蓝色边框，呼应主题色彩 */
    border-radius: 20px;
    /* 大圆角创建胶囊形状 */
    padding: 4px 12px;
    /* 内边距：垂直4px，水平12px */

    /* 视觉效果增强 */
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.15);
    /* 微妙的蓝色阴影 */
    transition: all 0.2s ease;
    /* 所有属性变化的平滑过渡动画 */
}

/**
 * 分隔符装饰线条 - 伪元素实现
 * 
 * 功能说明：
 * 使用::before和::after伪元素在分隔符左右两侧添加装饰性线条
 * 线条采用渐变效果，从透明到浅蓝色再到透明，营造自然的视觉延伸
 * 
 * 技术实现：
 * - 使用绝对定位相对于父元素定位
 * - 通过transform: translateY(-50%)实现垂直居中
 * - 使用linear-gradient创建渐变透明效果
 * - 线条长度18px，高度1px，营造精致的装饰效果
 * - 修复白线问题：调整定位和渐变
 */
.mixed-mode-separator::before,
.mixed-mode-separator::after {
    content: '';
    /* 必需的content属性，创建伪元素 */
    position: absolute;
    /* 绝对定位，相对于父元素定位 */
    top: 50%;
    /* 定位到父元素垂直中心 */
    width: 18px;
    /* 装饰线条宽度18px，稍微缩短 */
    height: 1px;
    /* 装饰线条高度1px，创建细线效果 */
    /* 修复渐变背景：调整透明度，避免白线显示 */
    background: linear-gradient(90deg, transparent 0%, rgba(227, 242, 253, 0.6) 50%, transparent 100%);
    transform: translateY(-50%);
    /* 垂直居中对齐 */
    z-index: -1;
    /* 置于背景层，避免覆盖其他元素 */
}

/* 左侧装饰线条定位 */
.mixed-mode-separator::before {
    left: -22px;
    /* 向左偏移22px，稍微调整位置 */
}

/* 右侧装饰线条定位 */
.mixed-mode-separator::after {
    right: -22px;
    /* 向右偏移22px，稍微调整位置 */
}

/**
 * 移动端混合模式样式适配 - 优化间距和布局
 * 
 * 响应式设计说明：
 * 针对屏幕宽度小于768px的移动设备进行专门优化
 * 主要调整包括：垂直布局、紧凑间距、简化装饰元素
 * 
 * 设计原则：
 * 1. 垂直布局：按钮从水平排列改为垂直排列，适应窄屏幕
 * 2. 紧凑间距：减少各元素间距，提高屏幕空间利用率
 * 3. 简化装饰：隐藏装饰线条，保持界面简洁
 * 4. 触摸友好：确保按钮大小适合手指点击
 * 
 * 适用设备：
 * - 手机设备（iPhone、Android等）
 * - 小尺寸平板电脑
 * - 窄屏幕浏览器窗口
 */
@media (max-width: 768px) {

    /**
     * 混合模式容器 - 移动端垂直布局
     * 
     * 布局变更：
     * - flex-direction: column - 改为垂直排列
     * - gap: 2px - 进一步减少元素间距，更紧凑
     * - align-items: stretch - 按钮拉伸至全宽
     */
    .copy-section.mixed-mode {
        flex-direction: column;
        /* 垂直排列：按钮上下排列而非左右 */
        gap: 2px;
        /* 元素间距2px，进一步缩小 */
        align-items: stretch;
        /* 拉伸对齐：按钮占满容器宽度 */
    }

    /**
     * 混合模式按钮 - 移动端全宽显示
     * 
     * 尺寸调整：
     * - flex: none - 取消弹性伸缩，使用固定尺寸
     * - width: 100% - 按钮占满容器宽度
     * - margin-top: 3px - 微调间距，配合分隔符优化
     */
    .copy-section.mixed-mode .copy-btn {
        flex: none;
        /* 取消弹性伸缩，避免尺寸计算问题 */
        width: 100%;
        /* 按钮宽度100%，充分利用屏幕宽度 */
        min-width: auto;
        /* 取消最小宽度限制 */
        margin-top: 3px;
        /* 微调顶部间距为3px */
    }

    /**
     * 第一个按钮特殊处理
     * 
     * 统一间距，与其他按钮保持一致
     */
    .copy-section.mixed-mode .copy-btn:first-child {
        margin-top: 12px;
        /* 第一个按钮12px顶部间距，与PC端保持一致 */
    }

    /**
     * 移动端分隔符样式调整
     * 
     * 尺寸优化：
     * - 减少字体大小和内边距
     * - 缩小圆角半径，适应紧凑布局
     * - 隐藏装饰线条，保持简洁
     * - 调整上下间距，视觉平衡优化
     */
    .mixed-mode-separator {
        align-self: center;
        /* 水平居中对齐 */
        margin: 4px 0 2px 0;
        /* 上间距4px，下间距2px，进一步视觉平衡优化 */
        font-size: 11px;
        /* 字体大小11px，比桌面端更小 */
        padding: 3px 10px;
        /* 内边距缩小：垂直3px，水平10px */
        border-radius: 15px;
        /* 圆角半径15px，保持胶囊形状 */
        /* 注释：移动端隐藏装饰线条，避免视觉混乱 */
    }

    /**
     * 移动端隐藏装饰线条
     * 
     * 简化原因：
     * - 移动端屏幕空间有限，装饰元素可能造成视觉干扰
     * - 保持界面简洁，突出核心功能按钮
     * - 减少渲染复杂度，提升性能
     */
    .mixed-mode-separator::before,
    .mixed-mode-separator::after {
        display: none;
        /* 完全隐藏装饰线条，保持移动端简洁 */
    }
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #00b894, #00cec9);
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.copy-success {
    color: #00b894;
    font-weight: 700;
}

/* 二维码按钮 */
.qr-btn {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ffb199 0%, #ff0844 100%);
    border: none;
    border-radius: 16px;
    margin-top: 18px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(255, 161, 161, 0.12);
    text-decoration: none;
}

.qr-btn:hover {
    background: linear-gradient(90deg, #ff0844 0%, #ffb199 100%);
    box-shadow: 0 8px 24px rgba(255, 161, 161, 0.18);
}

.qr-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253, 121, 168, 0.4);
}

/* 二维码和链接跳转按钮只保留颜色，其他样式全部继承.action-btn */
.qr-btn.qrcode-btn {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
}

.qr-btn.qrcode-btn:hover {
    background: linear-gradient(135deg, #fdcb6e, #fd79a8);
}

.qr-btn.link-btn {
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
}

.qr-btn.link-btn:hover {
    background: linear-gradient(135deg, #a29bfe, #74b9ff);
}

/* 移除.qr-btn、.link-btn原有的padding、font-size、border-radius、margin-top等属性 */

/* 分类导航样式 - 响应式布局优化 */
.categories-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(168, 230, 207, 0.15);
    position: relative;
    overflow: hidden;
}

/* 电脑端：单行水平布局 */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 8px 12px;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    align-items: center;
    justify-content: flex-start;
    /* 确保按钮显示在指示器之上 */
    position: relative;
    z-index: 2;
    /* 电脑端优化：更紧凑的布局 */
    min-height: 64px;
    /* 改进的滚动体验 */
    scroll-snap-type: x mandatory;
}

.categories-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 滑动指示器 - 仅在需要时显示 */
.categories-nav::before,
.categories-nav::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    width: 12px;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.categories-nav::before {
    left: 8px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.categories-nav::after {
    right: 8px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

/* 只在移动端或内容溢出时显示指示器 */
@media (max-width: 768px) {
    .categories-nav.can-scroll-left::before {
        opacity: 1;
    }

    .categories-nav.can-scroll-right::after {
        opacity: 1;
    }
}

/* 电脑端大屏幕优化 */
@media (min-width: 1200px) {
    .categories-nav {
        padding: 24px 32px;
        margin: 25px 0;
        border-radius: 20px;
    }
    
    .categories-list {
        gap: 16px;
        padding: 12px 16px;
        justify-content: center;
        min-height: 68px;
    }
    
    .category-btn {
        min-width: 130px;
        height: 48px;
        padding: 12px 20px;
        font-size: 15px;
        border-radius: 20px;
        gap: 10px;
        max-width: 200px;
        /* 大屏幕增强视觉效果 */
        backdrop-filter: blur(15px);
        box-shadow: 0 3px 12px rgba(0, 184, 148, 0.12);
    }
    
    .category-logo {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        padding: 3px;
    }
    
    .category-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 184, 148, 0.25);
    }
    
    .category-btn.active {
        box-shadow: 0 8px 24px rgba(0, 184, 148, 0.35);
        transform: translateY(-2px);
    }
}

/* 移动端滑动指示器优化 */
@media (max-width: 768px) {
    .categories-nav::before,
    .categories-nav::after {
        width: 8px;
        top: 18px;
        bottom: 18px;
    }
    
    .categories-nav::before {
        left: 6px;
    }
    
    .categories-nav::after {
        right: 6px;
    }
}

@media (max-width: 480px) {
    .categories-nav::before,
    .categories-nav::after {
        width: 6px;
        top: 16px;
        bottom: 16px;
    }
    
    .categories-nav::before {
        left: 4px;
    }
    
    .categories-nav::after {
        right: 4px;
    }
}

/* 移动端响应式设计优化 */
@media (max-width: 768px) {
    .categories-nav {
        margin: 15px 0;
        padding: 16px;
        border-radius: 14px;
    }
    
    /* 移动端：恢复双行网格布局 */
    .categories-list {
        display: grid;
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        grid-auto-columns: minmax(130px, max-content);
        gap: 12px;
        grid-row-gap: 10px;
        grid-column-gap: 16px;
        padding: 8px 6px;
        min-height: auto;
    }
    
    .category-btn {
        min-width: 110px;
        height: 42px;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 16px;
        gap: 6px;
        /* 移动端简化视觉效果 */
        backdrop-filter: none;
        box-shadow: 0 1px 4px rgba(0, 184, 148, 0.1);
    }
    
    .category-logo {
        width: 18px;
        height: 18px;
        padding: 1px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .categories-nav {
        padding: 14px;
        border-radius: 12px;
    }
    
    .categories-list {
        grid-auto-columns: minmax(115px, max-content);
        gap: 10px;
        padding: 8px 6px;
        grid-row-gap: 8px;
        grid-column-gap: 14px;
    }
    
    .category-btn {
        min-width: 95px;
        height: 40px;
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
        border-radius: 14px;
        /* 小屏幕进一步简化 */
        border: 1px solid rgba(0, 184, 148, 0.2);
    }
    
    .category-logo {
        width: 16px;
        height: 16px;
        padding: 1px;
    }
}

/* iPhone等中等屏幕优化 */
@media (max-width: 414px) and (min-width: 361px) {
    .categories-nav {
        padding: 16px;
    }
    
    .categories-list {
        grid-auto-columns: minmax(115px, max-content);
        gap: 12px;
        padding: 10px 6px;
        grid-row-gap: 10px;
        grid-column-gap: 14px;
    }
    
    .category-btn {
        min-width: 98px;
        height: 42px;
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
        border-radius: 15px;
    }
    
    .category-logo {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 360px) {
    .categories-nav {
        padding: 14px;
    }
    
    .categories-list {
        grid-auto-columns: minmax(100px, max-content);
        gap: 10px;
        padding: 10px 6px;
        grid-row-gap: 8px;
        grid-column-gap: 12px;
    }
    
    .category-btn {
        min-width: 85px;
        height: 40px;
        padding: 6px 12px;
        font-size: 10px;
        gap: 3px;
        border-radius: 14px;
    }
    
    .category-logo {
        width: 14px;
        height: 14px;
    }
}

/* 电脑端分类按钮优化 */
.category-btn {
    background: rgba(0, 184, 148, 0.1);
    border: 2px solid rgba(0, 184, 148, 0.3);
    border-radius: 18px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
    height: 44px;
    text-align: center;
    flex-shrink: 0;
    /* 防止按钮内容溢出 */
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    /* 电脑端优化：更合理的最大宽度 */
    max-width: 180px;
    /* 改进的视觉效果 */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 184, 148, 0.2);
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.1);
    /* 滚动对齐 */
    scroll-snap-align: start;
}

/* 电脑端分类Logo优化 */
.category-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
    /* 改进的视觉效果 */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

.category-name {
    white-space: nowrap;
}

/* 电脑端分类按钮交互效果优化 */
.category-btn:hover {
    background: rgba(0, 184, 148, 0.15);
    border-color: rgba(0, 184, 148, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 184, 148, 0.2);
    backdrop-filter: blur(15px);
}

.category-btn.active {
    background: linear-gradient(135deg, #00b894, #55a3ff);
    border-color: #00b894;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
    transform: translateY(-1px);
}

.category-btn.active .category-logo {
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 1);
}

/* 二维码模态框 */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.qr-modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.qr-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #636e72;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: rgba(253, 121, 168, 0.1);
    color: #fd79a8;
}

.qr-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00b894, #55a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-modal-code {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(168, 230, 207, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-modal-code>* {
    margin: 0 auto;
}

.qr-modal-hint {
    color: #636e72;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* 小贴士区域 */
.footer-info {
    margin-bottom: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(168, 230, 207, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00b894, #55a3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 10px 0;
    color: #636e72;
    font-size: 1rem;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.info-card li::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 10px;
}

/* 底部按钮 */
.footer-buttons {
    margin-top: 30px;
}

.bottom-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.bottom-btn {
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.bottom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.bottom-btn:hover::before {
    left: 100%;
}

.bottom-btn.primary {
    background: linear-gradient(135deg, #00b894, #55a3ff);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.bottom-btn.secondary {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    box-shadow: 0 8px 25px rgba(253, 121, 168, 0.3);
}

.bottom-btn:hover {
    transform: translateY(-3px);
}

.bottom-btn.primary:hover {
    box-shadow: 0 12px 35px rgba(0, 184, 148, 0.4);
}

.bottom-btn.secondary:hover {
    box-shadow: 0 12px 35px rgba(253, 121, 168, 0.4);
}

/* 加载和状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #636e72;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 230, 207, 0.3);
    border-top: 4px solid #00b894;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error,
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #636e72;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(168, 230, 207, 0.2);
}

/* 复制提示 */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #00b894, #55a3ff);
    color: white;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* SVG图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

/* 按钮中的图标样式 */
.but .icon {
    margin-right: 0.5em;
    width: 16px;
    height: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main {
        padding: 30px 0;
        margin-top: 60px; /* 移动端减少顶部间距 */
    }

    /* 移动端标头进一步优化 */
    .header {
        padding: 8px 0; /* 移动端更小的内边距 */
    }

    .logo-section {
        gap: 6px; /* 进一步减少间距 */
    }

    .logo-emoji {
        font-size: 1.4rem; /* 移动端更小的emoji */
    }

    .title {
        font-size: 1.2rem; /* 移动端更小的标题 */
        font-weight: 600;
    }

    .subtitle {
        font-size: 0.8rem; /* 移动端更小的副标题 */
        margin-top: 2px; /* 减少间距 */
        line-height: 1.2; /* 更紧凑的行高 */
    }

    .section-title {
        font-size: 1.8rem;
    }

    .coupons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 移动端显示简化标题，隐藏详细步骤 */
    .desktop-instructions {
        display: none;
    }

    .mobile-instructions {
        display: flex;
        margin-top: 25px;
    }
    
    .mobile-tutorial-content .step {
        padding: 16px;
        margin-bottom: 10px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .step-text {
        font-size: 14px;
    }

    .step {
        justify-content: center;
        width: 100%;
    }

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

    .bottom-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 20px 0;
    }

    .coupon-card {
        padding: 20px;
    }

    .info-card {
        padding: 25px;
    }

    .title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .copy-toast {
        left: 15px;
        right: 15px;
        transform: translateY(100px);
    }

    .copy-toast.show {
        transform: translateY(0);
    }
}