/* ===== 全局重置与变量 ===== */

/* 通用隐藏类：用于 JS 动态控制显隐，优先级稳定 */
.hidden {
    display: none !important;
}

:root {
    --primary: #1677ff;
    --primary-light: #4096ff;
    --primary-dark: #0958d9;
    --primary-bg: #e6f4ff;
    --bg: #f0f5ff;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(22, 119, 255, 0.06);
    --shadow: 0 4px 12px rgba(22, 119, 255, 0.08);
    --shadow-lg: 0 8px 30px rgba(22, 119, 255, 0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 反劫持：防止页面整体被标记为媒体页 */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* ===== 主内容区 ===== */
.main {
    flex: 1;
    padding: 40px 0;
}

/* ===== 欢迎区域 ===== */
.welcome-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.welcome-card {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 560px;
    width: 100%;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.welcome-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 24px auto 0;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== 选择标签 ===== */
.selection-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.tag svg {
    width: 14px;
    height: 14px;
}

/* ===== 教程卡片 ===== */
.tutorial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.main-tutorial {
    border-top: 4px solid var(--primary);
}

.side-tutorial {
    border-top: 4px solid #52c41a;
}

.tutorial-header {
    padding: 24px 28px 0;
}

.tutorial-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.badge-secondary {
    background: #f6ffed;
    color: #52c41a;
}

.tutorial-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.tutorial-title-sm {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.video-wrapper {
    margin: 20px 28px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* 反劫持：添加变换/层级/合成属性，让浏览器识别为页面普通元素而非独立媒体层 */
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* 禁止长按呼出系统菜单 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.video-wrapper::before {
    /* 反劫持：在视频层上叠加 0 透明度遮罩，干扰部分浏览器的视频识别算法 */
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    z-index: 2;
}

.video-wrapper video {
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    /* 反劫持：强制内联播放相关样式 */
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* iOS Safari 专用：内联显示 */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* 禁止长按系统菜单、保存视频等 */
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

/* 反劫持：全屏伪类下仍保持竖屏正常比例（部分浏览器劫持全屏会忽略这些，但可提供降级） */
.video-wrapper video:fullscreen,
.video-wrapper video:-webkit-full-screen,
.video-wrapper video:-moz-full-screen,
.video-wrapper video:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}

/* 强制竖屏场景下视频保持竖版容器内居中 */
@media (orientation: portrait) {
    .video-wrapper video {
        max-height: 65vh;
    }
}

/* ============ 视频封面占位 + 观看按钮（替代直接嵌入 video） ============ */
.video-cover {
    margin: 20px 28px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    width: calc(100% - 56px);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    min-height: 180px;
    cursor: pointer;
    -webkit-touch-callout: none;
    user-select: none;
}

.video-cover-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-cover-bg.cover-primary {
    background:
        radial-gradient(circle at 30% 30%, rgba(22, 119, 255, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(64, 150, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0958d9 0%, #1677ff 40%, #4096ff 100%);
}

.video-cover-bg.cover-secondary {
    background:
        radial-gradient(circle at 30% 30%, rgba(82, 196, 26, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(135, 200, 60, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #389e0d 0%, #52c41a 40%, #95de64 100%);
}

.video-cover-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
    background-size: 32px 32px;
    background-position: 0 0, 0 16px, 16px -16px, -16px 0px;
    opacity: 0.7;
}

.video-cover-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 12px;
    padding: 16px;
}

.play-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(255,255,255,0.15);
    transition: transform var(--transition), box-shadow var(--transition);
}

.video-cover:active .play-icon-wrap {
    transform: scale(0.92);
}

.play-icon-wrap svg {
    width: 36px;
    height: 36px;
    margin-left: 4px;
}

.video-cover-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.btn-watch {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary);
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.btn-watch-secondary {
    color: #389e0d;
}

.btn-watch:active {
    transform: translateX(-50%) scale(0.95);
}

/* ============ 全屏视频播放弹窗 ============ */
.video-player-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.video-player-modal.active {
    display: flex;
}

.video-player-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.video-player-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    animation: videoModalIn 0.35s var(--ease);
}

@keyframes videoModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.video-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg, #0a0a0a 0%, #161616 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.video-player-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #f5f5f5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 12px;
    flex: 1;
    min-width: 0;
}

.video-player-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.video-player-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.video-player-close:active {
    transform: scale(0.9);
}

.video-player-close svg {
    width: 18px;
    height: 18px;
}

.video-player-body {
    background: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-touch-callout: none;
}

.video-player-body video {
    width: 100%;
    height: auto;
    max-height: calc(92vh - 62px);
    object-fit: contain;
    display: block;
    background: #000;
    position: relative;
    z-index: 1;
}

/* 移动端：视频弹窗占满屏幕，圆角缩小 */
@media (max-width: 640px) {
    .video-player-modal {
        padding: 0;
    }
    .video-player-container {
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .video-player-body video {
        max-height: calc(100vh - 62px);
    }
    .video-cover {
        width: calc(100% - 32px);
        margin: 16px;
        min-height: 160px;
    }
    .play-icon-wrap {
        width: 60px;
        height: 60px;
    }
    .play-icon-wrap svg {
        width: 30px;
        height: 30px;
    }
    .btn-watch {
        padding: 9px 16px;
        font-size: 13px;
    }
}

.tutorial-desc {
    padding: 0 28px 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 简洁版教程布局：去掉卡片，仅标题 + 按钮（节省空间） ===== */
.tutorial-section-simple {
    padding: 20px 16px 40px;
    max-width: 640px;
    margin: 0 auto;
}

.simple-block {
    margin-top: 22px;
}

.simple-title {
    margin: 10px 4px 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.simple-desc {
    margin: 0 4px 16px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.simple-hint {
    margin: 10px 6px 0;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.85;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 14px;
    color: var(--text-secondary);
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.divider-text span {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 2px;
}

/* ========= 大视频按钮（核心按键） ========= */
.big-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.big-video-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, transparent 50%);
    pointer-events: none;
}

.big-video-btn::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    pointer-events: none;
    transition: transform var(--transition), background var(--transition);
}

.big-video-btn:active {
    transform: scale(0.985);
    filter: brightness(0.92);
}
.big-video-btn:active::after {
    transform: translateY(-50%) scale(1.25);
    background: rgba(255,255,255,0.32);
}

.big-video-btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.big-video-btn span {
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* 主按钮：蓝色渐变（登录教程） */
.big-video-btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    box-shadow: 0 10px 28px rgba(22, 119, 255, 0.32), 0 2px 6px rgba(22, 119, 255, 0.18);
}

/* 次按钮：绿色渐变（添加好友） */
.big-video-btn-secondary {
    background: linear-gradient(135deg, #389e0d 0%, #52c41a 50%, #95de64 100%);
    box-shadow: 0 10px 28px rgba(82, 196, 26, 0.28), 0 2px 6px rgba(82, 196, 26, 0.16);
}

/* 移动端：按钮加大字号、更紧凑 */
@media (max-width: 480px) {
    .tutorial-section-simple {
        padding: 14px 12px 32px;
    }
    .simple-title {
        font-size: 18px;
    }
    .simple-block {
        margin-top: 18px;
    }
    .big-video-btn {
        padding: 15px 18px;
        font-size: 15px;
        border-radius: 12px;
    }
    .big-video-btn::after {
        width: 24px;
        height: 24px;
        right: 14px;
    }
}

/* ===== 农场控制台：醒目跳转链接按钮（突出显眼） ===== */
.tutorial-section-combo {
    padding: 16px 14px 40px;
    max-width: 680px;
    margin: 0 auto;
}

.farm-console-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 22px;
    margin-bottom: 22px;
    border-radius: 18px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    letter-spacing: 2px;
    box-sizing: border-box;
    box-shadow:
        0 14px 32px rgba(217, 119, 6, 0.28),
        0 4px 10px rgba(217, 119, 6, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.12);
    background:
        linear-gradient(135deg, #b45309 0%, #d97706 28%, #f59e0b 55%, #fbbf24 100%);
    border: 2px solid rgba(255,255,255,0.4);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.farm-console-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
    pointer-events: none;
}

.farm-console-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 120%, rgba(255, 255, 255, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 82% -20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%);
    pointer-events: none;
}

.farm-console-btn:hover {
    filter: brightness(1.04);
    box-shadow:
        0 16px 40px rgba(217, 119, 6, 0.34),
        0 4px 10px rgba(217, 119, 6, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -2px 0 rgba(0,0,0,0.12);
}

.farm-console-btn:active {
    transform: scale(0.985);
    filter: brightness(0.92);
}

.farm-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(120, 53, 15, 0.35);
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 14px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.farm-label {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    padding: 0 12px;
    text-shadow: 0 2px 6px rgba(120, 53, 15, 0.45);
    letter-spacing: 3px;
}

.farm-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: rgba(120, 53, 15, 0.9);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(120, 53, 15, 0.25);
    transition: transform 0.25s var(--ease);
}

.farm-console-btn:active .farm-arrow {
    transform: translateX(4px);
}

/* ===== QQ售后群：跳转链接按钮（控制台下方，蓝紫渐变区分） ===== */
.qq-group-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: 16px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-sizing: border-box;
    box-shadow:
        0 12px 28px rgba(88, 28, 135, 0.28),
        0 4px 10px rgba(88, 28, 135, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.28),
        inset 0 -2px 0 rgba(0,0,0,0.1);
    background:
        linear-gradient(135deg, #4c1d95 0%, #6d28d9 30%, #7c3aed 60%, #a78bfa 100%);
    border: 2px solid rgba(255,255,255,0.35);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.qq-group-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.32), transparent);
    pointer-events: none;
}

.qq-group-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 130%, rgba(255,255,255,0.2) 0%, transparent 45%),
        radial-gradient(circle at 85% -30%, rgba(196, 181, 253, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.qq-group-btn:hover {
    filter: brightness(1.05);
}
.qq-group-btn:active {
    transform: scale(0.985);
    filter: brightness(0.92);
}

.qq-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(76, 29, 149, 0.4);
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 13px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

.qq-label {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 0 12px;
    text-shadow: 0 2px 6px rgba(76, 29, 149, 0.5);
    letter-spacing: 2.5px;
}

.qq-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px 9px;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow:
        0 4px 12px rgba(244, 63, 94, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.3);
    animation: badgeBreathe 2.4s ease-in-out infinite;
}

@keyframes badgeBreathe {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50%      { transform: scale(1.08); filter: brightness(1.2); }
}

/* ===== 安卓QQ登录：卡片内次级「工具下载」跳转按钮 ===== */
.tool-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    background:
        linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 75%, #2dd4bf 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 22px rgba(13, 148, 136, 0.25),
        0 2px 6px rgba(13, 148, 136, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1.5px 0 rgba(0,0,0,0.08);
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.tool-download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.tool-download-btn:active {
    transform: scale(0.985);
    filter: brightness(0.92);
}

.tool-download-btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    padding: 7px;
    border-radius: 10px;
    background: rgba(13, 92, 84, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    box-sizing: content-box;
}

.tool-download-btn span {
    position: relative;
    z-index: 1;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    flex: 1;
    padding-right: 8px;
}

.tool-download-btn small {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(13, 92, 84, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

@media (max-width: 480px) {
    .tool-download-btn {
        padding: 11px 14px;
        gap: 10px;
    }
    .tool-download-btn svg {
        width: 20px;
        height: 20px;
        padding: 6px;
    }
    .tool-download-btn span {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .tool-download-btn small {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ===== 主教程卡片内按钮：卡片内边距统一 ===== */
.tutorial-card.card-with-btn {
    padding-bottom: 10px;
}

.card-inner {
    padding: 8px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-inner .simple-desc {
    margin: 0;
    padding: 0;
}

/* 小屏适配：农场控制台按钮缩小 */
@media (max-width: 480px) {
    .tutorial-section-combo {
        padding: 12px 10px 32px;
    }
    .farm-console-btn {
        padding: 15px 16px;
        margin-bottom: 18px;
        border-radius: 15px;
    }
    .farm-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }
    .farm-label {
        font-size: 17px;
        letter-spacing: 2px;
        padding: 0 8px;
    }
    .farm-arrow {
        width: 32px;
        height: 32px;
    }
    .qq-group-btn {
        padding: 14px 14px;
        margin-bottom: 18px;
        border-radius: 14px;
    }
    .qq-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }
    .qq-label {
        font-size: 15px;
        letter-spacing: 2px;
        padding: 0 6px;
    }
    .qq-badge {
        padding: 3px 7px;
        font-size: 10px;
    }
    .card-inner {
        padding: 4px 16px 18px;
        gap: 12px;
    }
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    transform: translateY(20px) scale(0.96);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 32px 32px 0;
    text-align: center;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.modal-body {
    padding: 28px 32px 32px;
}

/* ===== 选择卡片 ===== */
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.choice-card:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.choice-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choice-icon svg {
    width: 32px;
    height: 32px;
}

.android-icon {
    background: #e6f7e6;
    color: #3ddc84;
}

.ios-icon {
    background: #f0f5ff;
    color: var(--primary);
}

.qq-icon {
    background: #e6f4ff;
    color: #12b7f5;
}

.wechat-icon {
    background: #f0f9eb;
    color: #07c160;
}

.choice-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.choice-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
    .welcome-card {
        padding: 40px 24px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-header,
    .tutorial-desc {
        padding-left: 20px;
        padding-right: 20px;
    }

    .video-wrapper {
        margin: 16px 20px;
    }

    .modal-header {
        padding: 24px 24px 0;
    }

    .modal-body {
        padding: 20px 24px 24px;
    }
}
