/* ================================================
   欢乐AI - 温暖儿童友好风格 v3
   重构版：6张轮播 + 6大功能 + 详情区
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --coral: #FF6B6B;
    --coral-dark: #e55a5a;
    --coral-light: #ffb3b3;
    --green: #4CAF84;
    --green-light: #7ECCA4;
    --cream: #FFFBF5;
    --warm-yellow: #FFF3E0;
    --white: #ffffff;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #636E72;
    --gray-700: #2D3436;
    --gray-900: #1A1A2E;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    color: var(--gray-700);
    background: #FFFBF5;
    background: linear-gradient(180deg, #FFFBF5 0%, #FFF3E0 100%);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-dark); }

/* ========== 导航栏 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,251,245,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
}
.navbar .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-logo {
    font-size: 1.35rem; font-weight: 800; color: var(--gray-900);
    letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;
}
.nav-logo img { height: 32px; }
.nav-logo span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.nav-links a { color: var(--gray-500); font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--coral); }
.nav-user { color: var(--gray-700); font-weight: 600; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-right .btn-nav-outline {
    margin-right: 0;
}
.btn-nav, .btn-nav-outline {
    padding: 8px 20px; border-radius: 20px; font-weight: 600; font-size: 0.85rem;
    transition: all var(--transition);
}
.btn-nav { background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: #fff !important; border: none; cursor: pointer; }
.btn-nav:hover { background: linear-gradient(135deg, #e55a5a, #e57a43); transform: translateY(-1px); }
.btn-nav-outline {
    border: 1.5px solid var(--gray-300); color: var(--gray-700) !important;
    background: transparent;
}
.btn-nav-outline:hover { border-color: var(--coral); color: var(--coral) !important; }

/* ========== generate.php 导航（nav-container / nav-brand / nav-menu 结构） ========== */
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 56px;
}
.nav-brand {
    font-size: 1.35rem; font-weight: 800; color: var(--gray-900);
    letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.nav-brand:hover { color: var(--gray-900); }
.nav-menu {
    display: flex; align-items: center; list-style: none; gap: 4px; margin: 0; padding: 0;
}
.nav-menu .nav-link {
    color: var(--gray-500); font-weight: 500; font-size: 0.9rem;
    padding: 8px 16px; border-radius: 20px; text-decoration: none;
    transition: all 0.2s ease;
}
.nav-menu .nav-link:hover { color: var(--coral); background: rgba(255,107,107,0.06); }
.nav-menu .nav-link.active { color: var(--coral); font-weight: 700; background: rgba(255,107,107,0.08); }
.nav-menu .nav-btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53); color: #fff !important;
    border-radius: 20px; padding: 8px 20px; font-weight: 600; font-size: 0.85rem;
}
.nav-menu .nav-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 12px rgba(255,107,107,0.3); }
.lang-switcher { margin-left: 8px; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
    border: 1.5px solid var(--gray-300); border-radius: 20px; font-size: 0.8rem;
    color: var(--gray-500); text-decoration: none; transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--coral); color: var(--coral); }

/* ========== 汉堡菜单按钮（两套导航共用） ========== */
.hamburger-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 48px; height: 48px; font-size: 24px;
    color: var(--gray-700); align-items: center; justify-content: center;
    padding: 0; border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:active { background: rgba(0,0,0,0.04); }

/* ========== 底部固定导航栏（仅移动端） ========== */
.mobile-bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: rgba(255,251,245,0.95); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(245,158,11,0.12);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}
.mobile-bottom-nav .bn-inner {
    display: flex; justify-content: space-around; align-items: center;
    max-width: 500px; margin: 0 auto;
}
.mobile-bottom-nav .bn-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: #999; font-size: 12px; font-weight: 500;
    padding: 6px 4px; min-width: 64px; transition: color 0.2s;
}
.mobile-bottom-nav .bn-item .bn-icon { font-size: 22px; line-height: 1; }
.mobile-bottom-nav .bn-item.active { color: #F59E0B; }

/* ========== 移动端导航规则 ========== */
@media (max-width: 768px) {
    /* 汉堡按钮显示 */
    .hamburger-btn { display: flex; }

    /* index.php 风格的 nav-links */
    .nav-links {
        display: none;
        position: fixed; top: 56px; left: 0; right: 0;
        background: rgba(255,250,245,0.98); backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column; gap: 0; padding: 8px 0;
        border-bottom: 1px solid rgba(245,158,11,0.1);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        z-index: 999;
    }
    .nav-links.show { display: flex; }
    .nav-links a {
        display: block; padding: 14px 24px; font-size: 15px; color: #555;
        border-radius: 0; border-bottom: 1px solid rgba(245,158,11,0.05);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.active { background: rgba(245,158,11,0.06); }

    /* generate.php 风格的 nav-menu */
    .nav-menu {
        display: none;
        position: fixed; top: 56px; left: 0; right: 0;
        background: rgba(255,251,245,0.98); backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column; gap: 0; padding: 8px 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        z-index: 999;
    }
    .nav-menu.show { display: flex; }
    .nav-menu .nav-link {
        display: block; padding: 14px 24px; border-radius: 0;
        border-bottom: 1px solid rgba(0,0,0,0.04); font-size: 15px;
    }
    .nav-menu .nav-link:last-child { border-bottom: none; }
    .nav-menu .nav-link.active { background: rgba(255,107,107,0.06); }
    .nav-menu .nav-btn-primary {
        margin: 8px 24px; text-align: center; border-radius: 22px;
    }
    .nav-menu .lang-switcher {
        padding: 10px 24px; margin: 0;
    }

    /* 底部导航显示 */
    .mobile-bottom-nav { display: block; }

    /* 页面底部留出底部导航的高度 */
    body { padding-bottom: 70px; }
}

/* generate.php 卡片网格2列（480px 断点） */
@media (max-width: 480px) {
    .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .card-grid.style-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .card-grid.scenario-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ========== Hero 轮播 ========== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-top: 56px;
}
.hero-slides {
    display: flex;
    width: 600%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    flex: 0 0 16.6667%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}
.hero-slide-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* 6张轮播渐变背景 */
.hero-slide:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); } /* 紫色 */
.hero-slide:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); } /* 粉红 */
.hero-slide:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); } /* 蓝色 */
.hero-slide:nth-child(4) { background: linear-gradient(135deg, #43e97b, #38f9d7); } /* 绿色 */
.hero-slide:nth-child(5) { background: linear-gradient(135deg, #fa709a, #fee140); } /* 橙粉 */
.hero-slide:nth-child(6) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); } /* 紫粉 */

/* 轮播控制 */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}
.slider-dots {
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition);
}
.slider-dot.active {
    background: white;
    transform: scale(1.2);
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
}
.slider-prev:hover, .slider-next:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }


/* ========== 分类按钮区（一排6个） ========== */
.cat-buttons {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}
.cat-row {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.cat-btn {
    padding: 10px 22px; border-radius: 20px; font-size: 0.9rem; font-weight: 600;
    border: 1.5px solid rgba(0,0,0,0.08);
    background: #FFFFFF;
    color: #2D3436; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    display: flex; align-items: center; gap: 6px;
}
.cat-btn:hover {
    border-color: var(--coral); color: var(--coral);
    background: #FFF5F5; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.15);
}
/* ========== 通用按钮 ========== */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 700;
    font-size: 0.95rem; cursor: pointer; border: none;
    transition: all var(--transition);
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(255,107,107,0.3); }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,107,0.4); }
.btn-outline { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(76,175,132,0.3); }
.btn-green:hover { background: #3d9b6f; }

/* ========== 分区标题 ========== */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px;
}
.section-header p { font-size: 1rem; color: var(--gray-500); }

/* ========== 六大功能卡片 ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-card.card-sm {
    transform: scale(0.85);
    transform-origin: center;
}
.feature-card.card-sm:hover {
    transform: scale(0.85) translateY(-4px);
}
.feature-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.feature-card-body {
    padding: 18px 20px;
}
.feature-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.feature-card-body p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 10px;
    line-height: 1.5;
}
.feature-card-body .card-action {
    color: var(--coral);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 卡片颜色变体 */
.feature-card.c-drawing .feature-card-img { background: linear-gradient(135deg, #FFF0E6, #FFD4B8); }
.feature-card.c-story .feature-card-img { background: linear-gradient(135deg, #E8F4FD, #B8D8F0); }
.feature-card.c-english .feature-card-img { background: linear-gradient(135deg, #FFF0E6, #FFE0B2); }
.feature-card.c-math .feature-card-img { background: linear-gradient(135deg, #E6FFE6, #B8F0B8); }
.feature-card.c-music .feature-card-img { background: linear-gradient(135deg, #F0E6FF, #D4B8F0); }
.feature-card.c-game .feature-card-img { background: linear-gradient(135deg, #E6FFE6, #B8F0B8); }


/* ========== 六大板块详情区 ========== */
.detail-sections {
    padding: 80px 0;
    background: var(--white);
}
.detail-section {
    display: flex; align-items: center; gap: 60px;
    padding: 60px 0; border-bottom: 1px solid var(--gray-200);
}
.detail-section:nth-child(even) {
    flex-direction: row-reverse;
}
.detail-text { flex: 1; }
.detail-visual {
    flex: 1; min-height: 280px; border-radius: var(--radius-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: #fff;
}
.detail-text h3 {
    font-size: 1.8rem; font-weight: 800; color: var(--gray-900);
    margin-bottom: 8px;
}
.detail-text h3 span {
    font-size: 1.2rem; color: var(--coral); margin-right: 8px;
}
.detail-text .lead {
    font-size: 1.1rem; color: var(--gray-500); margin-bottom: 24px;
    line-height: 1.7;
}
.detail-steps { display: flex; flex-direction: column; gap: 14px; }
.detail-step {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 18px; background: var(--gray-100);
    border-radius: var(--radius-sm);
}
.detail-step-num {
    flex-shrink: 0; width: 28px; height: 28px;
    border-radius: 50%; background: var(--coral);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.detail-step p { font-size: 0.95rem; color: var(--gray-700); margin: 0; }

/* 响应式：小屏变上下排列 */
@media (max-width: 768px) {
    .detail-section, .detail-section:nth-child(even) {
        flex-direction: column; gap: 24px;
    }
}
/* ========== 作品展示墙 ========== */
.works-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.work-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition);
}
.work-card:hover { transform: translateY(-2px); }
.work-card-img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    background: var(--gray-100);
}
.work-card-body { padding: 12px 14px; }
.work-card-body h4 { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); }
.work-card-body .author { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }

/* ========== 安全声明区 ========== */
.safety-bar {
    background: var(--white); border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200); padding: 32px 0;
}
.safety-grid {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.safety-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; color: var(--gray-500); font-weight: 500;
}
.safety-icon { font-size: 1.5rem; }


/* ========== FAQ ========== */
.faq-grid {
    max-width: 800px; margin: 0 auto; display: grid; gap: 12px;
}
.faq-item {
    background: var(--white); border-radius: var(--radius-sm);
    padding: 20px 24px; border: 1px solid var(--gray-200);
    cursor: pointer; transition: all var(--transition);
}
.faq-item:hover { border-color: var(--coral-light); }
.faq-item h4 { font-size: 0.95rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.faq-item p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; display: none; }
.faq-item.open p { display: block; }
.faq-item.open { border-color: var(--coral); background: #FFFBFB; }

/* ========== 会员套餐 ========== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto;
}
.pricing-card {
    background: var(--white); border-radius: var(--radius); padding: 28px 22px;
    text-align: center; border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-sm); transition: all var(--transition);
    position: relative;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* 年卡特别突出 */
.pricing-card.featured {
    border: 2px solid var(--coral);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.1), 0 8px 32px rgba(255,107,107,0.2);
    transform: scale(1.02);
    position: relative;
}
.pricing-card.featured::before {
    content: '最划算';
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
    font-size: 0.8rem; font-weight: 800;
    padding: 4px 20px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}
.pricing-card.featured .btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(255,107,107,0.4);
}

/* 月卡恢复普通样式 */
.pricing-card:nth-child(2)::before {
    content: '最受欢迎';
    background: var(--gray-400);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    font-size: 0.75rem; font-weight: 700;
    padding: 3px 16px;
    border-radius: 12px;
    z-index: 2;
}
.pricing-card:nth-child(2) .btn {
    background: var(--white);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}

.pricing-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.pricing-card .original-price {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
    margin: 8px 0 2px;
    position: relative;
}
.pricing-card .original-price::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    background: var(--coral);
    opacity: 0.5;
}
.pricing-card .price {
    font-size: 2rem; font-weight: 800; color: var(--coral); margin: 4px 0 4px;
}
.pricing-card .price .unit { font-size: 0.9rem; font-weight: 500; color: var(--gray-500); }
.pricing-card .discount-badge {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(255,107,107,0.3);
}
.pricing-card .desc { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 16px; }
.pricing-card .features { text-align: left; font-size: 0.8rem; color: var(--gray-500); margin-bottom: 20px; }
.pricing-card .features li { padding: 4px 0; list-style: none; }
.pricing-card .features li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ========== Footer ========== */
.footer {
    background: var(--gray-100); padding: 48px 0 24px;
    border-top: 1px solid var(--gray-200);
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
    max-width: 1000px; margin: 0 auto 32px;
}
.footer-brand h4 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.footer-links h5 { font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 12px; }
.footer-links a { display: block; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 6px; }
.footer-links a:hover { color: var(--coral); }
.footer-bottom {
    text-align: center; font-size: 0.78rem; color: var(--gray-400);
    border-top: 1px solid var(--gray-200); padding-top: 20px; max-width: 1000px; margin: 0 auto;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .works-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-section { grid-template-columns: 1fr; gap: 40px; }
    .detail-illustration { height: 250px; }
    .hero-slide-content h1 { font-size: 2.5rem; }
    .hero-slider { height: 450px; }
}
@media (max-width: 768px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .works-grid, .pricing-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 400px; }
    .hero-slide-content h1 { font-size: 2rem; }
    .hero-slide-content p { font-size: 1rem; }
    .detail-section { margin-bottom: 60px; }
    .detail-title { font-size: 1.5rem; }
    .detail-number { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .safety-grid { gap: 20px; flex-direction: column; align-items: center; }
    .slider-prev, .slider-next { width: 40px; height: 40px; font-size: 16px; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
}
@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 350px; }
    .hero-slide-content h1 { font-size: 1.8rem; }
    .detail-illustration { height: 200px; font-size: 3rem; }
}

/* ========== 认证页面 ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 20px 40px;
    background: linear-gradient(180deg, #FFFBF5 0%, #FFF3E0 50%, #FFE8E8 100%);
}

.auth-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    transform: translateY(-2px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

.auth-icon {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 8px;
    line-height: 1;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.auth-switch span,
.auth-switch a {
    position: relative;
    padding-bottom: 6px;
    font-weight: 600;
    color: var(--gray-400);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
}
.auth-switch a:hover { color: var(--gray-500); }
.auth-switch .active {
    color: var(--coral);
}
.auth-switch .active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--coral);
}

.auth-sub {
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}
.auth-sub a {
    color: var(--coral);
    font-weight: 600;
}

/* 消息提示 */
.msg {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.5;
}
.msg-error {
    background: #FFF0F0;
    border: 1px solid #FFD4D4;
    color: #CC5555;
}
.msg-success {
    background: #F0FFF0;
    border: 1px solid #D4FFD4;
    color: #55AA55;
}
.msg-info {
    background: #F0F4FF;
    border: 1px solid #D4DEFF;
    color: #5577CC;
}

/* 表单组 */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #E8E0E0;
    border-radius: 12px;
    background: #FAFAFA;
    font-size: 0.95rem;
    color: var(--gray-700);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-group input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
    background: #FFF;
}

/* 密码输入框 + 眼睛图标 */
.input-pwd {
    position: relative;
}
.input-pwd input {
    padding-right: 44px;
}
.icon-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    width: 22px;
    height: 22px;
    opacity: 0.45;
    transition: opacity 0.2s ease;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    color: #999;
}
.icon-eye:hover {
    opacity: 0.75;
}
.icon-eye.open {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
    color: var(--coral);
    opacity: 0.65;
}

/* 验证码输入组 */
.input-code {
    display: flex;
    gap: 8px;
}
.input-code input {
    flex: 1;
    font-size: 1.25rem;
    letter-spacing: 6px;
    text-align: center;
    font-weight: 700;
    padding: 12px 8px;
}
.input-code .btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* 全宽按钮 */
.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #FFF;
    border: none;
    box-shadow: 0 4px 16px rgba(255,107,107,0.35);
    transition: all 0.25s ease;
    cursor: pointer;
    margin-top: 8px;
}
.btn-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255,107,107,0.45);
}
.btn-block:active {
    transform: translateY(0);
}

/* 响应式 - 认证页面 */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 16px;
    }
    .auth-card h2 { font-size: 1.3rem; }
    .auth-icon { font-size: 2.8rem; }
}

/* ===== 内嵌登录/注册弹窗 ===== */
.login-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.login-modal-card {
    position: relative;
    background: #fff; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 32px 28px 28px;
    width: 90%; max-width: 420px;
    animation: scaleIn 0.25s ease;
}
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.login-modal-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 24px;
    color: #999; cursor: pointer; padding: 0; line-height: 1;
}
.login-modal-close:hover { color: #333; }
.login-modal-card h3 {
    text-align: center; margin: 0 0 20px;
    font-size: 1.3rem; color: #333; font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-tabs {
    display: flex; margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.login-tab {
    flex: 1; text-align: center; padding: 10px 0;
    background: none; border: none; cursor: pointer;
    font-size: 15px; color: #999; font-weight: 500;
    position: relative; transition: color 0.2s;
}
.login-tab.active { color: #667eea; font-weight: 600; }
.login-tab.active::after {
    content: ''; position: absolute; bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 3px; background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}
.login-form-error {
    display: none; background: #FFF0F0; color: #E53E3E;
    padding: 8px 12px; border-radius: 8px; margin-bottom: 12px;
    font-size: 13px; text-align: center;
}
.login-form-success {
    display: none; background: #F0FFF4; color: #38A169;
    padding: 8px 12px; border-radius: 8px; margin-bottom: 12px;
    font-size: 13px; text-align: center;
}
.login-form-group { margin-bottom: 14px; }
.login-form-group label {
    display: block; margin-bottom: 4px;
    font-size: 13px; color: #666; font-weight: 500;
}
.login-form-group input {
    width: 100%; padding: 10px 14px; font-size: 14px;
    border: 1.5px solid #e0e0e0; border-radius: 8px;
    outline: none; box-sizing: border-box; transition: border-color 0.2s;
    background: #fafafa;
}
.login-form-group input:focus {
    border-color: #667eea; background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.login-submit-btn {
    width: 100%; padding: 11px 0; margin-top: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.login-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.login-submit-btn:active { transform: translateY(0); }

/* ===== 更多玩法功能区 ===== */
.more-play-section {
    max-width: 680px; margin: 20px auto; padding: 0 16px;
}
.more-play-section h3 {
    text-align: center; font-size: 1.3rem; color: #333; margin-bottom: 6px; font-weight: 700;
}
.more-play-subtitle {
    text-align: center; color: #999; font-size: 13px; margin-bottom: 20px;
}
.more-play-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.more-play-card {
    position: relative; background: #f9f9fc; border-radius: 10px;
    padding: 16px 14px; cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.more-play-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.12);
}
.mp-badge {
    position: absolute; top: 8px; right: 8px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: #fff; font-size: 10px; padding: 2px 7px;
    border-radius: 8px; font-weight: 500; opacity: 0.85;
}
.mp-icon { font-size: 1.6rem; margin-bottom: 6px; }
.mp-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.mp-desc { font-size: 12px; color: #999; line-height: 1.4; }

/* 响应式 - 更多玩法 */
@media (max-width: 480px) {
    .login-modal-card { padding: 24px 18px 20px; max-width: 95%; }
    .login-modal-card h3 { font-size: 1.15rem; }
    .more-play-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .more-play-card { padding: 12px 10px; }
}


/* 语言切换按钮 */
.lang-switch {
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 14px;
    background: rgba(245,158,11,.06);
    color: var(--c-primary);
    transition: all .2s;
    margin-right: 8px;
    text-decoration: none;
}
.lang-switch:hover {
    background: rgba(245,158,11,.15);
}


/* ================================================
   移动端全面增强 v1
   触摸友好 · 内容防溢出 · iOS 防缩放 · 间距优化
   ================================================ */

/* --- 触摸友好性：所有可交互元素最低 44px --- */
@media (max-width: 768px) {
    button, .btn, .nav-link, a.btn, .cat-btn,
    .pricing-card .btn, .feature-card, .work-card,
    .faq-item, .pay-method-btn, .pay-tab,
    .slider-dot, .nav-cta, .tag, .action-btn,
    .theme-card, .scenario-card, .style-card,
    .plan-card .pl-btn, .stat-card, .more-play-card,
    .story-item, .quick-links a, .unfav-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* 纯内联链接需要单独处理 */
    .nav-links a, .nav-right .nav-link, .nav-right a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
    }
    .nav-cta {
        min-height: 44px;
        padding: 10px 20px;
    }
    /* 导航栏紧凑适配 */
    .nav-inner {
        padding: 0 12px;
        height: 52px;
    }
    .nav-right { gap: 6px; }
    .nav-logo { font-size: 16px; gap: 6px; }
    .lang-switch { padding: 6px 12px; font-size: 13px; margin-right: 6px; }
}

@media (max-width: 480px) {
    .nav-inner {
        height: 48px;
        padding: 0 10px;
    }
    .nav-logo { font-size: 14px; }
    .nav-right .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* --- 表格/宽内容横向滚动 --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4px, black calc(100% - 16px), transparent 100%);
}
.table-responsive table {
    min-width: 600px;
    white-space: nowrap;
}

/* 通用宽内容容器 */
.scroll-x {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4px, black calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4px, black calc(100% - 16px), transparent 100%);
}

/* --- iOS 输入框防缩放 --- */
@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="password"],
    input[type="search"], input[type="tel"], input[type="url"],
    input[type="number"], textarea, select {
        font-size: 16px !important;
    }
}

/* --- 移动端表单间距优化 --- */
@media (max-width: 768px) {
    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 14px; margin-bottom: 5px; }
    .form-group input, .form-group select, .form-group textarea {
        padding: 12px 14px;
        border-radius: 10px;
    }
}

/* --- 移动端内容间距优化 --- */
@media (max-width: 768px) {
    .section { padding: 40px 16px; }
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 1.5rem; }
    .container { padding: 80px 16px 40px; }
}

@media (max-width: 480px) {
    .section { padding: 32px 12px; }
    .container { padding: 72px 12px 32px; }
}

/* --- 移动端按钮全宽 --- */
@media (max-width: 480px) {
    .btn-block { width: 100%; }
    .auth-page { padding: 60px 14px 32px; }
    .hero-btns { flex-direction: column; gap: 12px; }
    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* --- FAQ 触摸优化 --- */
@media (max-width: 768px) {
    .faq-q {
        min-height: 44px;
        padding: 14px 0;
        font-size: 15px;
    }
}

/* --- 卡片网格移动端优化 --- */
@media (max-width: 480px) {
    .feature-grid, .works-grid, .pricing-grid {
        gap: 12px;
    }
    .feature-card-body { padding: 14px 16px; }
    .feature-card-body h3 { font-size: 1rem; }
    .feature-card-body p { font-size: 0.8rem; }
    .pricing-card { padding: 20px 16px; }
    .pricing-card h3 { font-size: 1rem; }
    .pricing-card .price { font-size: 1.6rem; }
}

/* --- 分类按钮移动端滚动 --- */
@media (max-width: 768px) {
    .cat-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 8px;
        gap: 8px;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4px, black calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 4px, black calc(100% - 16px), transparent 100%);
    }
    .cat-btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.82rem;
    }
}

/* --- 弹窗/登录卡移动端��配 --- */
@media (max-width: 480px) {
    .login-modal-card {
        padding: 24px 16px 20px;
        max-width: 95%;
        border-radius: 14px;
    }
    .login-modal-card h3 { font-size: 1.15rem; }
    .login-submit-btn { padding: 14px 0; font-size: 16px; }
}
