/* =============================================================================
   童梦绘影 - 家长端H5页面样式
   温馨有活力，简洁清楚的移动端设计
   ============================================================================= */

/* 全局重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fafafa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 温馨活力的配色变量 */
:root {
    --primary-color: #ff6b9d;           /* 温馨粉色 */
    --primary-light: #ffb3d1;          /* 浅粉色 */
    --primary-dark: #e91e63;           /* 深粉色 */
    --secondary-color: #4fc3f7;        /* 活力蓝色 */
    --secondary-light: #81d4fa;        /* 浅蓝色 */
    --accent-color: #ffd54f;           /* 温暖黄色 */
    --accent-light: #fff176;           /* 浅黄色 */
    --success-color: #66bb6a;          /* 成功绿色 */
    --text-primary: #2c3e50;           /* 主文字 */
    --text-secondary: #607d8b;         /* 次要文字 */
    --text-light: #90a4ae;             /* 浅色文字 */
    --bg-white: #ffffff;               /* 纯白背景 */
    --bg-light: #fafafa;               /* 浅色背景 */
    --bg-card: #ffffff;                /* 卡片背景 */
    --border-light: #e3f2fd;           /* 浅色边框 */
    --shadow-light: 0 2px 12px rgba(255, 107, 157, 0.08);
    --shadow-medium: 0 4px 20px rgba(255, 107, 157, 0.12);
    --shadow-strong: 0 8px 30px rgba(255, 107, 157, 0.18);
    --gradient-primary: linear-gradient(135deg, #ff6b9d, #4fc3f7);
    --gradient-warm: linear-gradient(135deg, #ffd54f, #ff6b9d);
    --gradient-soft: linear-gradient(135deg, #e1f5fe, #f8bbd9);
}

/* Font Awesome 图标基础样式 */
.fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* 确保图标容器有最小尺寸 */
.feature-icon, .step-icon, .social-icon {
    min-width: 1em;
    min-height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 防止图标重复显示 - 默认隐藏after伪元素 */
.fa:after {
    display: none !important;
    position: absolute;
    left: 0;
    top: 0;
    font-family: inherit;
    font-weight: normal;
}

/* 图标备用方案 - 只在Font Awesome完全失效时显示 */
.fa {
    position: relative;
}

/* 默认隐藏备用内容 */
.fa:after {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

/* 检测Font Awesome是否加载失败的类 */
.fa-fallback .fa:before {
    display: none !important;
}

.fa-fallback .fa:after {
    display: inline !important;
    position: static;
}

/* 备用图标内容 */
.fa-fallback .fa-book:after { content: "📚"; }
.fa-fallback .fa-child:after { content: "👶"; }
.fa-fallback .fa-calendar-check-o:after { content: "📅"; }
.fa-fallback .fa-graduation-cap:after { content: "🎓"; }
.fa-fallback .fa-list-alt:after { content: "📋"; }
.fa-fallback .fa-camera:after { content: "📷"; }
.fa-fallback .fa-magic:after { content: "✨"; }
.fa-fallback .fa-gift:after { content: "🎁"; }
.fa-fallback .fa-star:after { content: "⭐"; }
.fa-fallback .fa-phone:after { content: "📞"; }
.fa-fallback .fa-envelope:after { content: "✉️"; }
.fa-fallback .fa-comments:after { content: "💬"; }
.fa-fallback .fa-play:after { content: "▶️"; }
.fa-fallback .fa-arrow-left:after { content: "←"; }
.fa-fallback .fa-arrow-right:after { content: "→"; }
.fa-fallback .fa-arrow-up:after { content: "↑"; }
.fa-fallback .fa-bars:after { content: "☰"; }
.fa-fallback .fa-times:after { content: "✕"; }
.fa-fallback .fa-search:after { content: "🔍"; }
.fa-fallback .fa-check:after { content: "✓"; }
.fa-fallback .fa-check-circle:after { content: "✅"; }
.fa-fallback .fa-lightbulb-o:after { content: "💡"; }
.fa-fallback .fa-weibo:after { content: "微"; }
.fa-fallback .fa-qq:after { content: "Q"; }

/* 容器 */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

/* 响应式容器优化 */
@media (min-width: 480px) {
    .container, .book-demo-container {
        padding: 0 16px;
    }
}

@media (min-width: 768px) {
    .container, .book-demo-container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container, .book-demo-container {
        max-width: 1200px;
        padding: 0 40px;
    }
}

@media (min-width: 1440px) {
    .container, .book-demo-container {
        max-width: 1400px;
        padding: 0 60px;
    }
}

/* 基础排版 */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px; /* 减少底部间距 */
    line-height: 1.3;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px; /* 减少底部间距 */
    line-height: 1.5;
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    min-height: 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.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;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* 特色图标 */
.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

/* =============================================================================
   头部导航
   ============================================================================= */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.menu-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: var(--primary-light);
    color: white;
}

/* 导航菜单 */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 20px;
}

.nav-menu.active {
    right: 0;
}

.menu-close {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 30px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-link {
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =============================================================================
   英雄区域
   ============================================================================= */
.hero {
    padding: 80px 0 40px;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,157,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79,195,247,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    margin-bottom: 32px; /* 减少底部间距 */
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px; /* 减少底部间距 */
    color: var(--text-primary);
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px; /* 减少底部间距 */
}

.hero-img-container {
    position: relative;
    margin-bottom: 32px; /* 减少底部间距 */
    max-width: none; /* 移除最大宽度限制 */
    overflow: visible; /* 允许内容溢出 */
    /* 突破container限制，让图片铺满屏幕宽度 */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Hero区域轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: none; /* 完全移除宽度限制 */
    margin: 0;
    border-radius: 0; /* 移除圆角，让图片完全铺满 */
    overflow: hidden;
    box-shadow: none; /* 移除阴影 */
    background: var(--bg-white);
    height: 300px; /* 设置固定高度 */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* 使用固定高度 */
    overflow: hidden;
    border-radius: 0; /* 移除圆角 */
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-img {
    position: absolute; /* 恢复绝对定位 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片完全铺满容器 */
    object-position: center; /* 居中显示 */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 0; /* 移除圆角 */
}

/* 确保第一张图片默认显示 */
.carousel-img:first-child {
    opacity: 1 !important;
    display: block !important;
}

/* 激活状态的图片显示 */
.carousel-img.active {
    opacity: 1 !important;
    z-index: 2;
    display: block !important;
}

/* 调试：临时让所有图片可见 */
.carousel-img {
    display: block !important;
}

/* 轮播指示器 */
.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
}

/* 轮播导航按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.hero-img-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    z-index: 10;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 -4px;
    text-align: center;
}

.stat-item {
    background: var(--bg-white);
    padding: 16px 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =============================================================================
   产品介绍区域
   ============================================================================= */
.product {
    padding: 40px 0; /* 减少上下间距 */
    background: var(--bg-white);
}

/* 产品介绍视频 */
.product-video-container {
    margin: 24px 0 32px 0; /* 减少上下间距 */
    position: relative;
    /* 保持在容器内，不铺满 */
    padding: 0; /* 移除内边距，让视频填满 */
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    /* 修正宽高比为2560:1440 ≈ 16:9 */
    aspect-ratio: 16/9;
    border-radius: 20px; /* 与容器圆角一致 */
    overflow: hidden;
    background: #000;
    margin: 0; /* 移除边距，让视频填满容器 */
}

.product-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 改为cover填满容器 */
    border-radius: 20px; /* 与容器圆角一致 */
    transition: all 0.3s ease;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 157, 0.7) 0%,
        rgba(255, 179, 209, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 20px; /* 与容器圆角一致 */
    backdrop-filter: blur(2px); /* 添加轻微模糊效果 */
}

.video-overlay:hover {
    opacity: 0.8;
    backdrop-filter: blur(1px);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
    border: 3px solid var(--primary-color);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    box-shadow: 0 12px 32px rgba(255, 107, 157, 0.4);
}

.play-button:hover i {
    color: white;
}

.play-button i {
    font-size: 28px;
    color: var(--primary-color);
    margin-left: 4px; /* 调整播放图标位置 */
    transition: color 0.3s ease;
}

.video-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* 视频播放时隐藏覆盖层 */
.product-video:not([poster]) + .video-overlay,
.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* 确保poster图片也能填满容器 */
.product-video::-webkit-media-controls-panel {
    background: transparent;
}

.product-video::-webkit-media-controls-play-button {
    display: none;
}

/* 视频poster样式优化 */
.product-video[poster] {
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 100%);
}

/* 视频加载时的背景 */
.product-video {
    background: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 100%);
}

/* 确保视频封面在加载前显示美观的背景 */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 100%);
    z-index: -1;
    border-radius: inherit;
}

/* 视频加载状态优化 */
.product-video:not([poster]) {
    background: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 100%);
}

/* 视频播放时的过渡效果 */
.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* 改善视频控制条的样式 */
.product-video::-webkit-media-controls-enclosure {
    border-radius: 0 0 20px 20px;
}

.product-video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 20px 20px;
}

/* 视频加载状态指示 */
.video-wrapper.loading::after {
    content: '加载中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 视频封面加载失败时的样式 */
.product-video[poster=""] {
    background: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 100%);
}

/* 确保视频在所有状态下都有合适的背景 */
.product-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffb3d1 0%, #ff6b9d 100%);
    z-index: -1;
    border-radius: inherit;
}

/* 4步骤网格布局容器 */
.steps-grid-container {
    margin: 0 auto;
    max-width: 800px;
    padding: 0 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* 保留原有滑动容器样式以防其他地方使用 */
.steps-slider-container {
    position: relative;
    margin: 0 -12px;
}

.steps-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 12px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.steps-slider::-webkit-scrollbar {
    display: none;
}

/* 新增：步骤页面容器 */
.steps-page {
    flex-shrink: 0;
    width: calc(100vw - 40px);
    max-width: calc(420px - 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    scroll-snap-align: start;
    padding: 0 4px;
}

.step-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 2px solid white;
    z-index: 2;
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-warm);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin: 20px auto 16px;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.step-card:hover .step-title {
    color: var(--primary-color);
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 4px;
}

/* 滑动指示器 */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* =============================================================================
   成长价值区域
   ============================================================================= */
.benefit {
    padding: 40px 0; /* 减少上下间距 */
    background: var(--bg-light);
}

.benefit-header {
    text-align: center;
    margin-bottom: 24px; /* 减少底部间距 */
}

/* =============================================================================
   绘本演示区域
   ============================================================================= */
.book-demo {
    padding: 40px 0; /* 减少上下间距 */
    background: var(--bg-light);
}

.book-demo-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

.book-demo-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    border: 1px solid var(--border-light);
    max-width: 900px;
    margin: 0 auto;
}

/* 浏览器头部样式 */
.browser-header {
    background: #f5f5f5;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.browser-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

.browser-address {
    flex: 1;
    max-width: 400px;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-address i {
    color: var(--text-light);
}

/* 绘本内容样式 */
.book-demo-content {
    padding: 24px;
}

.book-demo-header {
    text-align: center;
    margin-bottom: 24px;
}

.book-demo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.book-demo-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.book-video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px; /* 调整播放图标位置 */
}

.video-play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* 绘本预览样式 */
.book-preview-section {
    margin-bottom: 32px;
}

.book-preview-container {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    justify-content: center;
}

.book-page {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1; /* 设置2:1宽高比 */
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

/* 防止图片保存的保护层 */
.book-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: transparent;
    pointer-events: auto;
}

.book-page-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片填满容器 */
    object-position: center; /* 居中裁剪 */
    display: block;
    /* 防止图片被保存 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.book-page-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    z-index: 2; /* 确保文字在保护层之上 */
}

.book-page-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-page-desc {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

/* 页面导航样式 */
.page-navigation {
    margin-bottom: 32px;
}

.page-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-nav-title {
    font-weight: 600;
    color: var(--text-primary);
}

.page-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 紧凑型页码导航 */
.page-nav-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.page-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid var(--border-light);
    flex-shrink: 0; /* 防止在一行布局中被压缩 */
}

.page-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.page-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-white);
}

.page-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.page-quick-nav {
    display: flex;
    gap: 8px;
}

.quick-nav-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quick-nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 一行式页面控制布局 */
.page-controls-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 8px;
}

/* 保留原有样式以防其他地方使用 */
.page-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.page-control-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0; /* 防止按钮被压缩 */
    white-space: nowrap; /* 防止文字换行 */
}

.prev-btn {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.prev-btn:hover {
    background: var(--border-light);
}

.next-btn {
    background: var(--primary-color);
    color: white;
}

.next-btn:hover {
    background: var(--primary-dark);
}

/* 绘本信息样式 */
.book-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
}

.book-info-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.book-info-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.book-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.book-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.book-info-label {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.book-info-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
}

/* =============================================================================
   主题选择区域
   ============================================================================= */
.theme {
    padding: 40px 0; /* 减少上下间距 */
    background: var(--bg-white);
}

/* 主题横幅图片 */
.theme-banner-container {
    margin: 16px 0 24px 0; /* 减少上下间距 */
    padding: 0; /* 移除左右内边距，让图片铺满 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 突破容器限制，左右铺满 */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}

/* 主题横幅图片保护层 */
.theme-banner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.theme-banner-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 5/4; /* 保持5:4宽高比 */
    object-fit: cover; /* 保持比例裁剪 */
    object-position: center; /* 居中裁剪 */
    border-radius: 0; /* 移除圆角，因为要铺满 */
    box-shadow: none; /* 移除阴影，因为要铺满 */
    transition: all 0.3s ease;
    background: var(--bg-light); /* 加载时的背景色 */
    display: block;
    /* 图片保护 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.theme-banner-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* 图片加载状态 */
.theme-banner-img[loading] {
    opacity: 0.7;
    filter: blur(2px);
    transition: all 0.3s ease;
}

.theme-banner-img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* 图片加载错误处理 */
.theme-banner-img:not([src]),
.theme-banner-img[src=""] {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    position: relative;
}

.theme-banner-img:not([src])::before,
.theme-banner-img[src=""]::before {
    content: "🎨 绘本主题展示";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 兼容不支持aspect-ratio的浏览器 */
@supports not (aspect-ratio: 5/4) {
    .theme-banner-img {
        height: 0;
        padding-bottom: 80%; /* 5:4 = 80% */
        position: relative;
        overflow: hidden;
    }

    .theme-banner-img::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
    }
}

.theme-filters {
    margin: 0 -16px 20px; /* 减少底部间距 */
    padding: 0 16px 12px; /* 减少底部内边距 */
}

.theme-filters-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px; /* 减少底部间距 */
    flex-wrap: wrap;
}

.theme-filters-row:last-child {
    margin-bottom: 0;
}

.theme-filter-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.theme-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.theme-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 筛选按钮样式优化 */

.theme-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px; /* 减少底部间距 */
    align-items: stretch; /* 确保所有卡片高度一致 */
    padding: 0 4px;
}

.theme-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto; /* 自适应高度 */
    min-height: 260px; /* 调整最小高度适应1:1图片 */
    position: relative; /* 为保护层定位 */
}

/* 主题卡片图片保护层 */
.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: transparent;
    pointer-events: auto;
}

/* 全局图片保护 */
img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 禁用右键菜单（针对图片区域） */
.book-page, .theme-card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.theme-card-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important; /* 设置1:1正方形比例 */
    object-fit: cover !important; /* 保持比例裁剪 */
    object-position: center !important; /* 居中裁剪 */
    background: var(--bg-light);
    border-radius: 8px 8px 0 0;
    flex-shrink: 0; /* 防止图片被压缩 */
    display: block !important; /* 确保图片正确显示 */
    max-height: none !important; /* 移除任何高度限制 */
    /* 防止图片被保存 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 兼容不支持aspect-ratio的浏览器 */
@supports not (aspect-ratio: 1/1) {
    .theme-card-img {
        height: 0;
        padding-bottom: 100%; /* 1:1 = 100% */
        position: relative;
        overflow: hidden;
    }

    .theme-card-img img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* 绘本阅读器2:1比例兼容性支持 */
@supports not (aspect-ratio: 2/1) {
    .book-page {
        height: 0;
        padding-bottom: 50%; /* 2:1 = 50% */
        position: relative;
        overflow: hidden;
    }

    .book-page-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .book-page-overlay {
        position: absolute;
        inset: 0;
    }
}

.theme-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1; /* 占据剩余空间 */
    justify-content: space-between;
    position: relative;
    z-index: 2; /* 确保内容在保护层之上 */
}

.theme-card-age {
    background: var(--accent-light);
    color: #f57f17;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 6px;
    width: fit-content;
    white-space: nowrap; /* 防止年龄标签换行 */
}

.theme-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.theme-card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1; /* 占据剩余空间 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 最多显示3行 */
    -webkit-box-orient: vertical;
}

.theme-toggle-container {
    text-align: center;
    margin: 20px 0;
}

.theme-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn svg {
    transition: transform 0.3s ease;
}

.theme-expanded .theme-toggle-btn svg {
    transform: rotate(180deg);
}

/* =============================================================================
   主题推荐表格
   ============================================================================= */
.theme-recommendations {
    padding: 24px 0; /* 进一步减少上下间距 */
    background: var(--bg-light);
}

.theme-table-container {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.theme-table {
    width: 100%;
    border-collapse: collapse;
}

.theme-table th {
    background: var(--gradient-soft);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 6px; /* 减少上下内边距 */
    text-align: center;
}

.theme-table td {
    padding: 8px 6px; /* 减少上下内边距 */
    border-bottom: 1px solid var(--border-light);
    font-size: 11px;
    text-align: center;
    vertical-align: middle;
}

.theme-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 6px; /* 减少内边距让标签更紧凑 */
    border-radius: 6px; /* 相应减少圆角 */
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.age-badge {
    background: var(--accent-light);
    color: #f57f17;
    padding: 3px 6px; /* 减少内边距让标签更紧凑 */
    border-radius: 6px; /* 相应减少圆角 */
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.book-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 11px;
    line-height: 1.3;
}

.value-desc {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.3;
}

/* =============================================================================
   家长反馈区域 - 移动端优化
   ============================================================================= */
.feedback {
    padding: 32px 0; /* 减少上下间距 */
    background: var(--bg-white);
    overflow: hidden;
}

/* ===== 家长反馈滑动模块 - 重新设计 ===== */



/* 反馈轮播容器 */
.feedback-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    background: var(--bg-white);
}

/* 反馈轮播包装器 */
.feedback-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: auto;
    overflow: hidden;
}

/* 反馈幻灯片容器 */
.feedback-slides {
    position: relative;
    width: 100%;
    min-height: 450px; /* 增加基础高度 */
}

/* 反馈卡片 */
.feedback-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 450px; /* 增加基础最小高度 */
    padding: 20px 28px 60px; /* 增加底部内边距，避免被指示器遮挡 */
    box-sizing: border-box;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 16px;
    gap: 20px; /* 增加元素间距 */
}

/* 激活状态的卡片 */
.feedback-card.active {
    opacity: 1;
}

/* 引用符号 */
.feedback-quote {
    font-size: 28px;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
    margin: 0 0 4px 0;
    opacity: 0.8;
}

/* 反馈文本容器 */
.feedback-text {
    margin: 0 0 20px 0 !important; /* 增加底部间距 */
    max-width: 100%;
    text-align: center; /* 文字居中对齐 */
    padding: 0 40px; /* 左右对称内边距 */
}

/* 反馈文本段落 */
.feedback-text p {
    color: #333 !important;
    font-size: 16px !important;
    line-height: 1.8 !important; /* 增加行高提高可读性 */
    font-style: italic;
    letter-spacing: 0.2px;
    font-weight: 400;
    margin: 0 0 16px 0 !important; /* 增加段落间距 */
    text-indent: 0; /* 移除首行缩进，居中显示更美观 */
    text-align: center; /* 段落文字居中 */
}

.feedback-text p:last-child {
    margin-bottom: 0 !important;
}

/* 星级评分 */
.feedback-stars {
    display: flex;
    gap: 6px;
    justify-content: center;
    color: #ff6b6b;
    font-size: 18px;
}

/* 用户信息 */
.feedback-user {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

/* 用户头像 */
.feedback-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 用户信息文字 */
.feedback-user-info {
    text-align: left;
}

.feedback-user-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.feedback-user-desc {
    font-size: 14px;
    color: #7f8c8d;
}

/* 轮播导航按钮 */
.feedback-carousel-btn {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.feedback-carousel-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.feedback-carousel-btn.prev {
    left: -24px;
}

.feedback-carousel-btn.next {
    right: -24px;
}

/* 指示器导航 */
.feedback-carousel-dots {
    position: absolute;
    bottom: 15px; /* 调整位置，确保不遮挡内容 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.feedback-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 107, 107, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.feedback-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feedback-slides {
        min-height: 480px; /* 增加高度确保内容完整显示 */
    }

    .feedback-card {
        min-height: 400px; /* 增加最小高度 */
        padding: 20px 20px 70px; /* 增加底部内边距，避免被指示器遮挡 */
        gap: 18px;
    }

    .feedback-text {
        padding: 0 32px; /* 左右对称内边距 */
        text-align: center; /* 文字居中 */
        margin-bottom: 20px; /* 增加底部间距 */
    }

    .feedback-text p {
        font-size: 15px !important;
        line-height: 1.7 !important; /* 增加行高提高可读性 */
        letter-spacing: 0.1px;
        margin: 0 0 14px 0 !important; /* 增加段落间距 */
        text-indent: 0; /* 移除首行缩进 */
        text-align: center; /* 段落居中 */
    }

    .feedback-quote {
        font-size: 28px;
    }

    .feedback-carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        top: 58%;
    }

    .feedback-carousel-btn.prev {
        left: -22px;
    }

    .feedback-carousel-btn.next {
        right: -22px;
    }
}

@media (max-width: 480px) {
    .feedback-slides {
        min-height: 520px; /* 进一步增加高度确保内容完整显示 */
    }

    .feedback-card {
        min-height: 440px; /* 大幅增加最小高度 */
        padding: 20px 16px 80px; /* 增加内边距和底部空间，避免被指示器遮挡 */
        gap: 16px;
    }

    .feedback-quote {
        font-size: 24px;
    }

    .feedback-text {
        padding: 0 24px; /* 左右对称内边距 */
        margin-bottom: 22px; /* 增加底部间距 */
        text-align: center; /* 文字居中 */
    }

    .feedback-text p {
        font-size: 15px !important; /* 增大字体 */
        line-height: 1.8 !important; /* 进一步增加行高提高可读性 */
        letter-spacing: 0.1px;
        margin: 0 0 16px 0 !important; /* 增加段落间距 */
        text-indent: 0; /* 移除首行缩进 */
        text-align: center; /* 段落居中 */
    }

    .feedback-stars {
        font-size: 16px;
        margin: 10px 0; /* 增加上下间距 */
    }

    .feedback-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .feedback-user-name {
        font-size: 16px;
    }

    .feedback-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        top: 50%; /* 调整按钮位置 */
    }

    .feedback-carousel-btn.prev {
        left: -20px;
    }

    .feedback-carousel-btn.next {
        right: -20px;
    }

    .feedback-dot {
        width: 10px;
        height: 10px;
    }

    /* 确保指示器不会遮挡内容 */
    .feedback-carousel-dots {
        bottom: 12px; /* 调整指示器位置 */
    }
}

    .feedback-quote {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .feedback-card p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .slider-nav {
        margin-top: 24px;
        gap: 10px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
        padding: 5px;
        margin: -5px;
    }

    .feedback-nav-btn {
        width: 42px;
        height: 42px;
    }

    .feedback-nav-btn i {
        font-size: 16px;
    }

    .feedback-prev-btn {
        left: -21px;
    }

    .feedback-next-btn {
        right: -21px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .feedback-slides {
        min-height: 560px; /* 大幅增加高度 */
    }

    .feedback-card {
        min-height: 480px; /* 大幅增加高度确保内容完整显示 */
        padding: 24px 18px 90px; /* 增加内边距和底部空间 */
        gap: 18px;
    }

    .feedback-text {
        padding: 0 20px; /* 左右对称内边距，确保居中 */
        margin-bottom: 24px; /* 增加底部间距 */
        text-align: center; /* 文字居中对齐 */
    }

    .feedback-text p {
        font-size: 15px !important; /* 增大字体 */
        line-height: 1.8 !important; /* 进一步增加行高 */
        margin: 0 0 16px 0 !important; /* 增加段落间距 */
        text-indent: 0; /* 移除首行缩进，居中显示更美观 */
        text-align: center; /* 段落文字居中 */
    }

    .feedback-quote {
        font-size: 22px; /* 调整引号大小 */
    }

    .feedback-user-name {
        font-size: 15px; /* 适配小屏幕 */
    }

    .feedback-user-desc {
        font-size: 13px; /* 适配小屏幕 */
    }

    .feedback-stars {
        margin: 12px 0; /* 增加间距 */
    }

    .feedback-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 45%; /* 调整按钮位置 */
    }

    .feedback-carousel-btn.prev {
        left: -18px;
    }

    .feedback-carousel-btn.next {
        right: -18px;
    }

    /* 确保指示器位置合适 */
    .feedback-carousel-dots {
        bottom: 10px;
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* 隐藏滑动提示（当用户开始交互后） */
.feedback-content.interacted::after {
    display: none;
}

/* =============================================================================
   参与方式区域
   ============================================================================= */
.join {
    padding: 40px 0; /* 减少上下间距 */
    background: var(--bg-light);
}

/* =============================================================================
   页脚
   ============================================================================= */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 32px 0 16px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    max-width: 100%;
    padding: 0 8px; /* 添加适当的内边距 */
}

.footer-col {
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.footer-col-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #bdc3c7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 13px;
}

/* =============================================================================
   回到顶部按钮
   ============================================================================= */
.back-to-top {
    position: fixed;
    bottom: 140px; /* 调整位置，让向上按钮在分享按钮上方 */
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* =============================================================================
   动画效果
   ============================================================================= */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

    /* 小屏幕视频优化 */
    .product-video-container {
        margin: 16px 0 24px 0; /* 进一步减少间距 */
        padding: 0; /* 移除内边距 */
        border-radius: 16px;
    }

    /* 小屏幕模块间距优化 */
    .product {
        padding: 32px 0; /* 小屏幕进一步减少间距 */
    }

    .theme {
        padding: 32px 0;
    }

    .benefit {
        padding: 32px 0;
    }

    .book-demo {
        padding: 32px 0;
    }

    .theme-recommendations {
        padding: 20px 0; /* 小屏幕进一步减少间距 */
    }

    /* 小屏幕表格优化 */
    .theme-table th {
        padding: 6px 4px; /* 小屏幕进一步减少表格间距 */
        font-size: 11px;
    }

    .theme-table td {
        padding: 6px 4px; /* 小屏幕进一步减少表格间距 */
        font-size: 10px;
    }

    .theme-tag,
    .age-badge {
        padding: 2px 4px; /* 小屏幕标签更紧凑 */
        font-size: 9px;
        border-radius: 4px;
    }

    .feedback {
        padding: 24px 0;
    }

    .join {
        padding: 32px 0;
    }

    .video-wrapper {
        margin: 0; /* 移除边距 */
        border-radius: 16px; /* 与容器一致 */
    }

    .product-video {
        border-radius: 16px; /* 与容器一致 */
    }

    .play-button {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .play-button i {
        font-size: 20px;
    }

    .video-title {
        font-size: 14px;
    }

    .video-overlay {
        border-radius: 16px; /* 与小屏幕容器一致 */
    }
    
    .hero-title {
        font-size: 24px;
        padding: 0 4px;
    }

    /* Hero区域轮播图响应式优化 */
    .hero-img-container {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        margin-bottom: 24px;
    }

    .carousel-container {
        max-width: 100%;
        margin: 0; /* 移除额外边距 */
    }

    .carousel-wrapper {
        padding-bottom: 70%; /* 调整宽高比适应小屏幕 */
        border-radius: 12px;
    }

    .carousel-img {
        border-radius: 12px;
        object-fit: cover;
        object-position: center;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .carousel-btn.prev {
        left: 8px;
    }

    .carousel-btn.next {
        right: 8px;
    }

    .carousel-dots {
        bottom: 12px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .hero-img-badge {
        top: 12px;
        right: 12px;
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .section-title {
        font-size: 20px;
        padding: 0 4px;
    }
    
    .card {
        margin: 0 4px 16px 4px;
        padding: 16px;
    }
    
    .theme-cards {
        gap: 8px;
        margin: 0 -4px;
    }
    
    .theme-card-content {
        padding: 8px;
    }
}

/* 网格布局响应式优化 */
@media (max-width: 768px) {
    .steps-grid {
        gap: 16px;
    }

    .step-card {
        min-height: 180px;
        padding: 16px 12px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: -12px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin: 16px auto 12px;
    }

    .step-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .step-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .steps-grid-container {
        padding: 0 12px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
    }

    .step-card {
        min-height: 140px;
        padding: 12px 8px;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }

    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin: 8px auto 8px;
    }

    .step-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .step-desc {
        font-size: 10px;
        line-height: 1.4;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .steps-grid {
        gap: 8px;
        padding: 0 8px;
    }

    .step-card {
        min-height: 130px;
        padding: 10px 6px;
        border-radius: 12px;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin: 6px auto 6px;
    }

    .step-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .step-desc {
        font-size: 9px;
        line-height: 1.3;
    }
}

@media (min-width: 480px) {
    .steps-slider {
        gap: 16px;
        padding: 0 12px 20px;
    }

    .step-card {
        padding: 20px;
        min-height: 200px;
    }
}

/* 全部主题按钮样式 */
.theme-filter-btn[data-filter="all"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
}

.theme-filter-btn[data-filter="all"]:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #d63031 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
}

/* 隐藏的卡片动画效果 */
.theme-card.hidden-card {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 中等屏幕优化 (平板等) */
@media (max-width: 1024px) and (min-width: 769px) {
    .book-info-grid {
        gap: 20px;
    }

    .book-info-item {
        gap: 10px;
    }
}

/* 绘本演示区域响应式优化 */
@media (max-width: 768px) {
    .book-demo {
        padding: 40px 0;
    }

    .book-demo-content {
        padding: 16px;
    }

    .book-demo-title {
        font-size: 20px;
    }

    .browser-address {
        font-size: 11px;
        padding: 6px 12px;
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .book-preview-container {
        padding: 6px;
    }

    .book-page-overlay {
        padding: 12px;
    }

    .book-page-title {
        font-size: 16px;
    }

    .book-page-desc {
        font-size: 12px;
    }

    .page-nav-compact {
        gap: 12px;
    }

    .page-controls-inline {
        gap: 12px;
        padding: 0 4px;
    }

    .page-input-group {
        padding: 6px 12px;
    }

    .page-input {
        width: 50px;
        font-size: 12px;
    }

    .page-control-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .quick-nav-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .page-control-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .book-info {
        padding: 16px;
    }

    .book-info-grid {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .book-info-item {
        width: 100%;
        justify-content: space-between;
    }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
    /* 确保所有区域有足够的底部空间 */
    .section {
        padding-bottom: 40px !important;
    }

    .feedback {
        padding: 20px 0 50px; /* 增加底部内边距 */
    }

    .feedback-slides {
        min-height: 600px; /* 大幅增加高度确保最小屏幕也能完整显示 */
    }

    .feedback-card {
        min-height: 520px; /* 大幅增加高度确保足够空间 */
        padding: 28px 14px 100px; /* 进一步增加内边距和底部空间 */
    }

    .feedback-text {
        padding: 0 16px; /* 左右对称内边距 */
        margin-bottom: 28px; /* 增加底部间距 */
        text-align: center; /* 文字居中 */
    }

    .feedback-text p {
        font-size: 14px !important; /* 保持合适字体大小 */
        line-height: 1.9 !important; /* 进一步增加行高 */
        margin: 0 0 18px 0 !important; /* 增加段落间距 */
        text-indent: 0; /* 移除首行缩进 */
        text-align: center; /* 段落居中 */
    }

    .feedback-carousel-dots {
        bottom: 8px; /* 调整指示器位置 */
    }

    .feedback-user-name {
        font-size: 14px; /* 320px屏幕适配 */
    }

    .feedback-user-desc {
        font-size: 12px; /* 320px屏幕适配 */
    }

    /* Hero区域320px优化 */
    .hero {
        padding: 50px 0 25px;
    }

    .carousel-wrapper {
        padding-bottom: 60%; /* 进一步调整宽高比 */
    }


    .book-demo-content {
        padding: 12px;
    }

    .browser-controls {
        gap: 8px;
    }

    .browser-address {
        font-size: 10px;
        padding: 4px 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .page-controls-inline {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .page-control-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .page-input-group {
        order: -1; /* 将页码输入放在最上面 */
    }

    .page-controls {
        flex-direction: column;
        gap: 8px;
    }

    .book-preview-container {
        padding: 4px;
    }

    .book-page-overlay {
        padding: 8px;
    }

    .book-page-title {
        font-size: 14px;
    }

    .book-page-desc {
        font-size: 11px;
    }

    .book-info {
        padding: 12px;
    }

    .book-info-grid {
        gap: 8px;
    }

    .book-info-item {
        gap: 6px;
    }

    .book-info-label {
        font-size: 11px;
    }

    .book-info-value {
        font-size: 12px;
    }

    .theme-banner-container {
        margin: 12px 0 20px 0;
        padding: 0; /* 移除左右内边距 */
        /* 保持铺满效果 */
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }

    .theme-banner-img {
        border-radius: 0; /* 移除圆角，保持铺满效果 */
        box-shadow: none; /* 移除阴影，保持铺满效果 */
    }

    .theme-cards {
        gap: 8px;
        padding: 0 2px;
    }

    .theme-card {
        min-height: 240px; /* 超小屏幕最小高度，适应1:1图片 */
    }

    .theme-card-img {
        aspect-ratio: 1/1 !important; /* 保持1:1正方形比例 */
    }
    
    .theme-card-content {
        padding: 8px;
    }
    
    .theme-card-title {
        font-size: 12px;
        height: 28px;
    }
    
    .theme-card-desc {
        font-size: 10px;
    }
}

/* 大屏手机优化 */
@media (min-width: 414px) {
    /* 大屏幕视频优化 */
    .product-video-container {
        margin: 40px 0 48px 0;
        padding: 0; /* 移除内边距 */
        border-radius: 24px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .video-wrapper {
        margin: 0; /* 移除边距 */
        border-radius: 24px; /* 与容器一致 */
    }

    .product-video {
        border-radius: 24px; /* 与容器一致 */
    }

    .play-button {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    .play-button i {
        font-size: 36px;
    }

    .video-title {
        font-size: 20px;
    }

    .video-overlay {
        border-radius: 24px; /* 与大屏幕容器一致 */
    }

    .theme-banner-container {
        margin: 28px 0 36px 0;
        padding: 0; /* 移除左右内边距 */
        /* 保持铺满效果 */
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }

    .theme-banner-img {
        border-radius: 0; /* 移除圆角，保持铺满效果 */
        box-shadow: none; /* 移除阴影，保持铺满效果 */
        max-width: 100%; /* 改为100%以铺满 */
        margin: 0;
    }

    .theme-cards {
        gap: 16px;
        padding: 0 8px;
    }

    .theme-card {
        min-height: 280px; /* 大屏手机最小高度，适应1:1图片 */
    }

    .theme-card-img {
        aspect-ratio: 1/1 !important; /* 保持1:1正方形比例 */
    }
    
    .theme-card-content {
        padding: 12px;
    }
    
    .theme-card-title {
        font-size: 14px;
        height: 36px;
    }
    
    .theme-card-desc {
        font-size: 12px;
    }
}

/* 显示状态的主题卡片 */
.theme-card.visible-card {
    display: block;
}

/* 展开状态下显示所有卡片 */
.theme-expanded .theme-card.hidden-card {
    display: block;
    animation: fadeInUp 0.3s ease forwards;
}

/* 切换图标动画 */
.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.theme-expanded .toggle-icon {
    transform: rotate(180deg);
}

/* 卡片淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media (max-width: 375px) {
    .steps-page {
        width: calc(100vw - 32px);
        gap: 8px;
    }
    
    .step-card {
        padding: 14px;
        min-height: 160px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .step-desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .theme-cards {
        gap: 10px;
    }
    
    .theme-card-content {
        padding: 10px;
    }
    
    .theme-toggle-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {

    /* 中等屏幕视频优化 */
    .product-video-container {
        margin: 36px 0 44px 0;
        padding: 0; /* 移除内边距 */
        border-radius: 20px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .video-wrapper {
        margin: 0; /* 移除边距 */
        border-radius: 20px; /* 与容器一致 */
    }

    .play-button {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .play-button i {
        font-size: 32px;
    }

    .video-title {
        font-size: 18px;
    }

    .video-overlay {
        border-radius: 20px; /* 与中等屏幕容器一致 */
    }

    .theme-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin: 0 -8px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
        max-width: 800px;
        margin: 0 auto 24px auto;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 20px auto 0;
        text-align: center;
    }
}

/* =============================================================================
   产品展示模块样式
   ============================================================================= */

.product-showcase {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ff6b9d" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%234fc3f7" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23ffd54f" opacity="0.05"/><circle cx="10" cy="60" r="1" fill="%23ff6b9d" opacity="0.05"/><circle cx="90" cy="40" r="1" fill="%234fc3f7" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.product-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.product-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transition: all 0.4s ease;
}

/* 产品图片保护层 */
.product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.product-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.25);
}

.product-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 20px;
    /* 图片保护 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.product-image-wrapper:hover .product-showcase-img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.product-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.product-badge i {
    font-size: 16px;
    color: #ffd54f;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 20px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-highlight:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.feature-highlight:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-highlight:hover .feature-icon::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* 平板端优化 */
@media (max-width: 768px) {
    .product-showcase {
        padding: 40px 0;
    }

    .product-showcase-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-image-wrapper {
        order: -1;
        border-radius: 20px;
    }

    .product-features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature-highlight {
        padding: 18px 16px;
        border-radius: 16px;
        min-height: 110px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
    }

    .feature-content h4 {
        font-size: 16px;
    }

    .feature-content p {
        font-size: 13px;
    }
}

/* 手机端优化 */
@media (max-width: 480px) {
    .product-showcase {
        padding: 32px 0;
    }

    .product-showcase-container {
        gap: 24px;
    }

    .product-image-wrapper {
        border-radius: 16px;
    }

    .product-overlay {
        top: 12px;
        right: 12px;
    }

    .product-badge {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 16px;
    }

    .product-badge i {
        font-size: 14px;
    }

    .product-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-highlight {
        padding: 16px 14px;
        gap: 12px;
        border-radius: 14px;
        min-height: 100px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 12px;
    }

    .feature-content h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature-content p {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    /* Hero区域超小屏幕优化 */
    .hero {
        padding: 60px 0 30px; /* 减少上下内边距 */
    }

    .hero-title {
        font-size: 20px; /* 进一步减小标题字体 */
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 14px; /* 减小描述字体 */
        margin-bottom: 20px;
    }

    .hero-img-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-bottom: 20px;
    }

    .carousel-container {
        margin: 0; /* 移除额外边距 */
    }

    .carousel-wrapper {
        padding-bottom: 65%; /* 调整宽高比 */
        border-radius: 10px;
    }

    .carousel-img {
        border-radius: 10px;
    }

    .hero-img-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .hero-stats {
        gap: 6px;
        margin: 0 -6px;
    }

    .stat-item {
        padding: 12px 6px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-text {
        font-size: 11px;
    }

    .product-showcase {
        padding: 24px 0;
    }

    .feature-highlight {
        padding: 14px 12px;
        gap: 10px;
        min-height: 90px;
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .feature-content h4 {
        font-size: 14px;
    }

    .feature-content p {
        font-size: 11px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1024px) {

    /* 大屏幕下hero图片优化 */
    .hero-img-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-bottom: 40px;
    }

    .carousel-wrapper {
        padding-bottom: 50%; /* 大屏幕下调整宽高比 */
        border-radius: 20px;
    }

    .carousel-img {
        border-radius: 20px;
    }

    .product-showcase {
        padding: 80px 0;
    }

    .product-showcase-container {
        gap: 60px;
    }

    .feature-highlight {
        padding: 24px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
        border-radius: 18px;
    }

    .feature-content h4 {
        font-size: 19px;
    }

    .feature-content p {
        font-size: 15px;
    }

    /* 大屏幕页脚优化 */
    .footer-content {
        grid-template-columns: 2fr 2fr 1.5fr;
        gap: 40px;
        max-width: 1000px;
        margin: 0 auto 24px auto;
        align-items: start;
    }

    .footer-col {
        text-align: left;
    }

    .footer-col:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
        text-align: center;
        justify-self: center;
    }

    /* 大屏幕绘本演示区域优化 */
    .book-demo-card {
        max-width: 1000px;
    }

    .book-demo-content {
        padding: 32px;
    }

    .video-container {
        max-width: 800px;
        margin: 0 auto 32px auto;
    }

    .book-preview-section {
        max-width: 800px;
        margin: 0 auto 32px auto;
    }

    /* 大屏幕家长反馈区域优化 */
    .feedback-carousel-container {
        max-width: 900px;
        margin: 0 auto 40px auto;
    }

    .feedback-card {
        padding: 32px 40px 80px;
    }

    .feedback-text {
        max-width: 700px;
        margin: 0 auto 24px auto;
        padding: 0 20px;
    }

    .feedback-text p {
        font-size: 17px !important;
        line-height: 1.8 !important;
    }
}

/* 产品展示模块动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品展示模块增强效果 */
.product-showcase-container {
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.feature-highlight {
    cursor: pointer;
    user-select: none;
}

.feature-highlight:active {
    transform: translateX(8px) scale(0.98);
}

/* 产品图片增强效果 */
.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(255, 107, 157, 0.1) 0%,
        rgba(79, 195, 247, 0.1) 50%,
        rgba(255, 213, 79, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px;
    pointer-events: none;
}

.product-image-wrapper:hover::after {
    opacity: 1;
}

/* =============================================================================
   特殊效果和装饰
   ============================================================================= */

/* 轮播图容器优化 - 移除重复样式，使用上面定义的完整样式 */

/* 确保所有图片都能正确显示 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 防止图片在加载时闪烁 */
.carousel-img {
    background: #f5f5f5;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
}

.carousel-img:hover {
    transform: scale(1.02);
}

/* 确保在极小屏幕下内容不被截断 */
@media (max-width: 280px) {
    .hero {
        padding: 40px 0 20px;
    }

    .feedback-card {
        min-height: 480px; /* 增加高度 */
        padding: 24px 10px 100px; /* 增加底部空间 */
    }

    .feedback-text {
        padding: 0 12px; /* 左右对称内边距 */
        text-align: center; /* 文字居中 */
    }

    .feedback-text p {
        font-size: 13px !important; /* 增大字体 */
        line-height: 1.9 !important;
        text-indent: 0; /* 移除首行缩进 */
        text-align: center; /* 段落居中 */
        margin: 0 0 16px 0 !important;
    }

    .feedback-user-name {
        font-size: 13px; /* 280px屏幕适配 */
    }

    .feedback-user-desc {
        font-size: 11px; /* 280px屏幕适配 */
    }

    .carousel-wrapper {
        padding-bottom: 55%;
    }
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 157, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 157, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* =============================================================================
   工具类
   ============================================================================= */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* 优化滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 2px;
}

/* 分享按钮样式 */
.share-button {
    position: fixed;
    bottom: 80px; /* 调整位置，让分享按钮在向上按钮下方 */
    right: 20px; /* 与向上按钮对齐 */
    width: 48px; /* 与向上按钮大小一致 */
    height: 48px;
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px; /* 调整字体大小 */
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.5);
}

.share-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* 分享按钮响应式 */
@media (max-width: 768px) {
    .share-button {
        bottom: 70px; /* 调整移动端位置，保持在向上按钮下方 */
        right: 20px;
        width: 48px; /* 与向上按钮保持一致 */
        height: 48px;
        font-size: 18px;
    }

    .back-to-top {
        bottom: 130px; /* 调整向上按钮在移动端的位置 */
    }
}

@media (max-width: 480px) {
    .share-button {
        bottom: 65px; /* 进一步调整小屏幕位置 */
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .back-to-top {
        bottom: 120px; /* 调整向上按钮在小屏幕的位置 */
        right: 15px;
        width: 44px;
        height: 44px;
    }
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}