/* ====================================================================
   全站样式 · 响应式自适应全机型（手机 / 平板 / PC / 大屏 / 横屏）
   断点体系：
   - 迷你屏  < 360px   （iPhone SE 竖屏、小屏安卓）
   - 手机    < 768px   （主流手机竖屏）
   - 平板    768~1023px（iPad 竖屏、安卓平板）
   - 桌面    >= 1024px （PC、iPad 横屏）
   - 大屏    >= 1440px （宽屏显示器，内容区放大）
   核心策略：clamp() 流式字号 + rem 基准 + 安全区适配 + 触屏优化
   ==================================================================== */

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    /* 移动端固定 16px 基准，PC 端随视口轻微缩放，保证小笔记本到大屏都协调 */
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
@media (min-width: 1440px) {
    html { font-size: 17px; }
}
@media (min-width: 1920px) {
    html { font-size: 18px; }
}
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 刘海屏 / 底部横条安全区 */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overflow-x: hidden;
    word-break: break-word;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1440px) {
    .container { max-width: 1280px; }
}

/* ===== 顶部导航 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.logo-box { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.logo-box img { width: 30px; height: 30px; border-radius: 6px; }
.logo-box span {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: #555; transition: color 0.2s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: #ff5757; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-vip {
    background: linear-gradient(135deg, #ff7e5f, #ff5757);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255,87,87,0.3);
    white-space: nowrap;
}
.btn-vip img { width: 20px; height: 20px; vertical-align: middle; margin-right: 4px; }
/* 顶部「小程序」图标按钮：圆形 32×32，放在登录按钮前 */
.btn-miniapp {
    width: 32px; height: 32px;
    padding: 0;
    border: none; background: transparent;
    cursor: pointer; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-miniapp:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.btn-miniapp img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.btn-login, .btn-register { font-size: 14px; color: #555; white-space: nowrap; }
.btn-register { color: #ff5757; font-weight: 500; }
.user-info { display: flex; align-items: center; gap: 8px; }
.user-info img { width: 28px; height: 28px; border-radius: 50%; }
.user-info span { white-space: nowrap; }

/* —— 移动端抽屉导航（< 768px 生效）—— */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    border-radius: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.25s;
}

/* ===== Banner 主视觉 ===== */
.banner {
    position: relative;
    min-height: clamp(440px, 60vh, 560px);
    background: url('images/ref2/home-banner-bg.png') center/cover no-repeat;
    padding: clamp(36px, 6vw, 60px) 20px clamp(28px, 4vw, 40px);
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0.95) 100%);
}
.banner-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-align: center; }
.banner-title {
    font-size: clamp(24px, 5.2vw, 42px);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 14px;
    letter-spacing: 1px;
    line-height: 1.35;
}
.banner-title span { color: #1a1a1a; }
.banner-title em {
    font-style: normal;
    color: #fff;
    background: linear-gradient(135deg, #7ed957, #4caf50);
    padding: 4px 18px;
    border-radius: 30px;
    margin-left: 8px;
    box-shadow: 0 4px 14px rgba(76,175,80,0.35);
    display: inline-block;
}
.banner-info {
    font-size: clamp(13px, 2.5vw, 15px);
    color: #666;
    margin-bottom: clamp(24px, 5vw, 36px);
    padding: 0 8px;
}

/* 核心卖点胶囊 */
.hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(18px, 3.5vw, 26px);
}
.hero-chips .chip {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 500;
    color: #333;
    transition: transform 0.25s, box-shadow 0.25s;
}
@media (hover: hover) and (pointer: fine) {
    .hero-chips .chip:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.09); }
}

/* 平台图标跑马灯 */
.platforms-wrap { overflow: hidden; margin: 0 -20px clamp(24px, 5vw, 40px); padding: 20px 0; }
.platforms-track { display: flex; gap: 24px; animation: marquee 25s linear infinite; width: max-content; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.platform {
    flex: 0 0 auto;
    width: clamp(52px, 12vw, 72px);
    height: clamp(52px, 12vw, 72px);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.platform img { width: 78%; height: 78%; object-fit: contain; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
    .platform:hover { transform: translateY(-4px) scale(1.05); }
}

/* 减少动效偏好（系统级无障碍） */
@media (prefers-reduced-motion: reduce) {
    .platforms-track { animation: none; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== 滚动渐入动效（common.js IntersectionObserver 驱动） ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* 解析输入区 */
.parse-area { max-width: 720px; margin: 0 auto; }
.parse-input-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    padding: 6px 6px 6px 24px;
    border: 1px solid rgba(0,0,0,0.04);
}
.search-ico {
    width: 18px; height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') center/contain no-repeat;
    flex: 0 0 18px;
}
.parse-input-box input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 16px; /* >=16px 防止 iOS Safari 聚焦缩放 */
    background: transparent;
}

/* 粘贴按钮（输入框内、解析按钮左侧）：浅绿幽灵款 + 剪贴板图标 */
.paste-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: linear-gradient(135deg, #f0fdf4, #e6f9ee);
    color: #16a34a;
    border-radius: 50px;
    padding: 9px 15px;
    font-size: 13.5px;
    font-weight: 500;
    transition: transform .15s, box-shadow .2s, background .2s;
}
.paste-btn::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2316a34a" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/></svg>') center/contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
    .paste-btn:hover { box-shadow: 0 3px 12px rgba(34, 197, 94, 0.25); transform: translateY(-1px); }
}
.paste-btn:active { transform: scale(0.96); }
.parse-btn {
    background: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background-image: url('images/ref2/btn-bg.png');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.parse-btn:hover { opacity: 0.92; }
.parse-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.parse-btn-text { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.parse-tip { margin-top: 14px; font-size: 13px; color: #999; }
.parse-contact {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.25);
}

/* ===== 解析结果 ===== */
.parse-result { padding: 30px 0; background: #f8f9fb; }
.result-card {
    background: #fff;
    border-radius: 16px;
    padding: clamp(16px, 3vw, 24px);
    display: flex;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.result-cover {
    position: relative;
    width: 220px;
    flex: 0 0 220px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 9/16;
}
.result-cover img { width: 100%; height: 100%; object-fit: cover; }
.result-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.result-info { flex: 1; min-width: 0; }
.result-info h3 { font-size: 18px; margin-bottom: 8px; word-break: break-all; }
.result-meta { color: #888; font-size: 13px; margin-bottom: 20px; word-break: break-all; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #ff7e5f, #ff5757); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,87,87,0.4); }
.btn-ghost { background: #f0f0f0; color: #555; }
.btn-ghost:hover { background: #e0e0e0; }
.result-link input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fb;
}

/* ===== 通用板块 ===== */
section { padding: clamp(40px, 7vw, 60px) 0; }
.section-title { font-size: clamp(20px, 4vw, 28px); font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: #888; margin-bottom: clamp(24px, 5vw, 40px); font-size: 14px; padding: 0 12px; }

/* ===== 三步引导（参考站风格：圆点+连接线+大演示区+点击切换） ===== */
.steps-section { background: #fff; padding-bottom: 60px; }
.text-hl {
    /* 「三步」用绿色高亮背景，像荧光笔涂色效果 */
    background: linear-gradient(180deg, transparent 62%, #b9f06a 62%, #b9f06a 92%, transparent 92%);
    padding: 0 4px;
    font-weight: 700;
}
.steps-nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 720px;
    margin: 36px auto 0;
    gap: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s;
    padding: 0 24px;
    user-select: none;
}
.step-item:hover { transform: translateY(-2px); }
.step-dot {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    transition: all 0.3s;
    border: 3px solid transparent;
}
.step-label {
    font-size: 15px; color: #666; font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
.step-item.active .step-dot {
    background: #67c23a;  /* 绿色高亮，与参考站一致 */
    color: #fff;
    border-color: rgba(103,194,58,0.15);
    box-shadow: 0 4px 14px rgba(103,194,58,0.35);
    transform: scale(1.05);
}
.step-item.active .step-label { color: #67c23a; font-weight: 700; }
.step-line {
    flex: 1;
    height: 2px;
    background: #ececec;
    margin: 23px -10px 0;  /* 与圆点垂直居中线对齐 */
}
.steps-stage {
    margin-top: 32px;
    background: #f8f9fb;
    border-radius: 16px;
    padding: 24px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-pane { display: none; width: 100%; }
.step-pane.active { display: block; animation: stepPaneIn 0.35s ease; }
@keyframes stepPaneIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-media {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    cursor: zoom-in;
    aspect-ratio: 16/9;
}
.step-media video {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.step-media.step-illus {
    background: #fff;
    padding: 30px;
    aspect-ratio: 16/9;
    display: flex; align-items: center; justify-content: center;
}
.step-media.step-illus svg { width: 100%; max-width: 480px; height: auto; }
.step-zoom-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.step-media:hover .step-zoom-hint { opacity: 1; }

/* ===== 全屏放大遮罩（点击/ESC 关闭） ===== */
.zoom-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 30px;
    animation: zoomIn 0.25s ease;
}
@keyframes zoomIn { from { opacity: 0; } to { opacity: 1; } }
.zoom-close {
    position: absolute;
    top: 16px; right: 28px;
    color: #fff;
    font-size: 44px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    user-select: none;
    font-weight: 300;
    transition: color 0.2s;
}
.zoom-close:hover { color: #ccc; }
.zoom-content {
    max-width: 95vw; max-height: 90vh;
    display: flex; align-items: center; justify-content: center;
}
.zoom-content video {
    max-width: 100%; max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
}
.zoom-content svg {
    max-width: 90vw; max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}

/* ===== 为什么选择我们 ===== */
.why-section { background: #f8f9fb; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { background: #fff; border-radius: 12px; padding: 28px 24px; transition: all 0.3s; border: 1px solid transparent; }
@media (hover: hover) and (pointer: fine) {
    .why-item:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); border-color: rgba(103,194,58,0.35); }
}
/* 图标化卖点：圆角底座 + emoji 图标，替代原来的大数字 */
.why-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    font-size: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fbe6, #e2f5d8);
    margin-bottom: 14px;
}
.why-item h4 { font-size: 16px; margin-bottom: 8px; }
.why-item p { color: #888; font-size: 13px; line-height: 1.6; }

/* ===== 会员套餐 ===== */
.plans-section { background: #fff; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.plan-card {
    position: relative;
    background: #f8f9fb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}
@media (hover: hover) and (pointer: fine) {
    .plan-card:hover { border-color: #ff5757; transform: translateY(-4px); }
}
.plan-badge {
    position: absolute;
    top: -10px; right: 16px;
    background: linear-gradient(135deg, #ff7e5f, #ff5757);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}
.plan-name { font-size: 18px; margin-bottom: 12px; }
.plan-price { color: #ff5757; margin-bottom: 6px; }
.price-symbol { font-size: 18px; }
.price-num { font-size: 36px; font-weight: 900; }
.plan-duration { color: #888; font-size: 13px; margin-bottom: 20px; }
.plan-benefits { margin-bottom: 24px; }
.plan-benefits li { padding: 6px 0; color: #555; font-size: 14px; }
.plan-btn { display: block; background: #1a1a1a; color: #fff; padding: 12px; border-radius: 50px; font-weight: 500; transition: all 0.2s; }
.plan-btn:hover { background: #ff5757; }

/* ===== 常见问题 ===== */
.faq-section { background: #f8f9fb; }
.faq-list {
    max-width: 1000px;
    margin: 0 auto;
    columns: 2;          /* PC 双列瀑布式，缩短页面长度 */
    column-gap: 20px;
}
@media (max-width: 767px) {
    .faq-list { columns: 1; }
}
.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    break-inside: avoid;   /* 防止跨列截断 */
}
.faq-item { background: #fff; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
    padding: 18px 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.faq-arrow { color: #999; font-size: 20px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: #ff5757; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s; color: #666; font-size: 14px; }
.faq-item.open .faq-a { padding: 0 24px 18px; max-height: 400px; }

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-title { font-size: 18px; text-align: center; margin-bottom: 16px; }
.modal-btn { display: block; width: 100%; background: linear-gradient(135deg, #ff7e5f, #ff5757); color: #fff; padding: 12px; border-radius: 8px; margin-top: 20px; font-weight: 500; }
.modal-close { position: absolute; top: 8px; right: 14px; font-size: 24px; color: #999; cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal-close:hover { color: #333; }

/* 小程序二维码弹窗（独立于 .modal-box，复用 modal-mask 全屏遮罩） */
.miniapp-box { position: relative; max-width: 340px; text-align: center; padding: 28px 24px 22px; }
.miniapp-title { font-size: 16px; font-weight: 500; color: #333; margin-bottom: 18px; }
.miniapp-qrcode-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: 8px; background: #fff;
    border-radius: 8px;
}
.miniapp-qrcode-img { width: 220px; height: 220px; display: block; }
.miniapp-tip { font-size: 13px; color: #999; margin-top: 14px; }
@media (max-width: 480px) {
    .miniapp-qrcode-img { width: 180px; height: 180px; }
}
.announce-content { color: #555; font-size: 14px; line-height: 1.8; }

/* ===== 客服悬浮 ===== */
.float-service {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 99;
}
.float-btn {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500;
    text-align: center; line-height: 1.2;
    box-shadow: 0 4px 14px rgba(74,144,226,0.4);
    cursor: pointer;
    user-select: none;
}
.float-qrcode {
    position: absolute;
    right: 56px;
    bottom: 0;
    width: 140px; height: 140px;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
}
.float-qrcode img { width: 100%; height: 100%; object-fit: contain; }
.float-service.open .float-qrcode { display: block; }
@media (hover: hover) and (pointer: fine) {
    .float-service:hover .float-qrcode { display: block; }
}
@media (max-width: 767px) {
    .float-qrcode {
        right: 56px;
        width: min(140px, calc(100vw - 90px));
    }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    display: none;
    max-width: 80vw;
    text-align: center;
    font-style: normal;
    font-size: 14px;
    word-break: break-all;
}

/* ===== 子页面通用组件（登录/注册/卡密/订单/套餐/个人中心）===== */
.card {
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    max-width: 640px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}
.card h2, .card h3 { color: #1a1a1a; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 8px; font-weight: 500; }
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px; /* >=16px 防止 iOS 聚焦缩放 */
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input:focus { border-color: #ff5757; box-shadow: 0 0 0 3px rgba(255,87,87,0.1); }
.form-tip { font-size: 12px; color: #999; text-align: center; margin-top: 12px; }
.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff7e5f, #ff5757);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.btn-block:hover { opacity: 0.92; box-shadow: 0 4px 14px rgba(255,87,87,0.4); }
.btn-block:disabled { opacity: 0.6; cursor: not-allowed; }
.form-group .btn { flex: 0 0 auto; background: #f5f5f5; color: #555; white-space: nowrap; }
.form-group .btn:hover { background: #eee; }

/* 复选框行（避开 form-group 内 input width:100% 的拉伸） */
.checkbox-line { margin-bottom: 18px; }
.checkbox-line label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #555; font-weight: 500; cursor: pointer; }
.checkbox-line input[type="checkbox"] { width: 16px; height: 16px; margin: 0; cursor: pointer; }

/* 解析结果 - 内嵌视频预览（走代理 inline；失败自动退回封面图） */
#resultPreview { margin-top: 16px; }
#resultPreview .result-video {
    display: block;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
#resultPreview .result-video-poster {
    display: block;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
/* 封面包裹层 + 居中播放角标（避免 iOS Safari 自带的画中画缩略图） */
#resultPreview .result-poster-wrap {
    position: relative;
    display: inline-block;
    max-width: 420px;
    width: 100%;
}
#resultPreview .result-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    border-radius: 24px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;        /* 点击穿透到 wrap 自身 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    letter-spacing: 0.5px;
}
#resultPreview .result-poster-wrap:hover .result-play-badge {
    background: rgba(255, 68, 68, .85);
    transform: translate(-50%, -50%) scale(1.05);
    transition: all .2s ease;
}

/* 解析结果 - 资源列表（视频/图集/实况图 分离展示） */
.result-resources { margin-top: 16px; }
.result-resources .res-section { margin-top: 16px; }
.result-resources .res-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.result-resources .res-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.result-resources .res-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
    line-height: 1.2;
    white-space: nowrap;
}
.result-resources .res-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.result-resources .res-btn-green { background: #52c41a; }
.result-resources .res-btn-blue { background: #1890ff; }
.result-resources .res-btn-blue.res-btn-video { background: #096dd9; }
.result-resources .res-live-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fafafa;
    width: 130px;
}
.result-resources .res-thumb {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
    cursor: pointer;
}
.result-resources .res-live-btns {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.result-resources .res-live-btns .res-btn {
    padding: 6px 10px;
    font-size: 12px;
}

/* 视频内嵌播放器（解析结果区） */
.result-player { margin-top: 16px; }
.result-player .player-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.6;
}
.result-player .player-tip b { color: #ff4d4f; }

/* 图集解析结果：图片网格 */
.gallery-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-pics a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.gallery-pics img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform .2s; }
.gallery-pics a:hover img { transform: scale(1.04); }

/* 会员套餐选择（recharge 页） */
.plan-list { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0; }
.plan-item {
    flex: 1 1 30%;
    min-width: 160px;
    background: #fafafa;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.plan-item:hover { border-color: #ffb3b3; }
.plan-item.active { border-color: #ff5757; background: #fff5f5; box-shadow: 0 4px 16px rgba(255,87,87,0.15); }
.plan-item h3 { font-size: 16px; color: #1a1a1a; margin-bottom: 8px; }
.plan-item .price { font-size: 28px; font-weight: 900; color: #ff5757; margin-bottom: 6px; }
.plan-item .price small { font-size: 14px; font-weight: 500; }
.plan-item .benefit { font-size: 12px; color: #999; }

/* 个人中心 */
.profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e5f, #ff5757);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    flex-shrink: 0;
}
.profile-info { min-width: 0; }
.profile-info h2 { font-size: 18px; word-break: break-all; }
.profile-info p { font-size: 13px; color: #999; }
.stats { display: flex; gap: 14px; margin-bottom: 24px; }
.stat { flex: 1; background: #fafafa; border-radius: 12px; padding: 16px 12px; text-align: center; min-width: 0; }
.stat .num { font-size: 20px; font-weight: 700; color: #1a1a1a; word-break: break-all; }
.stat .label { font-size: 12px; color: #999; margin-top: 4px; }
.menu-list { border-top: 1px solid #f0f0f0; }
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
    transition: background 0.2s;
}
.menu-item:hover { background: #fafafa; }
.menu-item span { color: #ccc; }

/* 订单表格（PC 常规表格 / 手机转卡片） */
.card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.card th, .card td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.card th { color: #999; font-weight: 500; font-size: 13px; white-space: nowrap; }
.card td { color: #333; word-break: break-all; }

/* 支付弹窗（recharge 用）*/
.qrcode-box {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    width: min(224px, 80vw);
    margin: 16px auto;
    text-align: center;
}
.qrcode-box img { width: 100%; aspect-ratio: 1/1; height: auto; object-fit: contain; }
.countdown { text-align: center; font-size: 13px; color: #999; margin-bottom: 12px; }
.modal {
    background: #fff;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    max-width: 420px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal h3 { margin-bottom: 12px; text-align: center; }

/* 弹窗默认隐藏（重要：modal-mask 默认 flex，会常驻显示）*/
#pay-modal { display: none; }

/* ====================================================================
   响应式适配 · 分断点精调
   ==================================================================== */

/* ===== 平板（768px ~ 1023px：iPad 竖屏 / 安卓平板）===== */
@media (min-width: 768px) and (max-width: 1023px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 12px 24px; }
    .nav { gap: 20px; }
    .why-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .result-cover { width: 180px; flex-basis: 180px; }
    .plan-item { flex: 1 1 40%; }
}

/* ===== 手机（< 768px）：抽屉导航 + 单列布局 ===== */
@media (max-width: 767px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 10px 16px; }

    /* 抽屉导航启用 */
    .nav-toggle { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(78vw, 300px);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(72px + env(safe-area-inset-top)) 16px 24px;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 99;
        box-shadow: -4px 0 24px rgba(0,0,0,0.08);
        overflow-y: auto;
    }
    .nav.open { transform: translateX(0); }
    .nav a {
        padding: 14px 12px;
        font-size: 16px;
        border-bottom: 1px solid #f5f5f5;
    }
    .nav a.active { color: #ff5757; background: #fff5f5; border-radius: 8px; }
    .nav-mask.show {
        display: block;
        opacity: 1;
    }

    .nav-actions { gap: 8px; }
    .btn-vip { padding: 6px 12px; font-size: 12px; }
    .user-info span { display: none; } /* 小屏只显示头像，避免挤压 */

    .steps-grid { grid-template-columns: 1fr; gap: 14px; }
    .why-grid { grid-template-columns: 1fr; gap: 14px; }
    .why-item { padding: 22px 18px; }

    /* 三步引导：移动端紧凑布局（圆点缩小、文字缩小） */
    .steps-nav { max-width: 100%; }
    .step-item { padding: 0 6px; gap: 8px; }
    .step-dot { width: 38px; height: 38px; font-size: 15px; }
    .step-label { font-size: 12px; }
    .step-line { margin: 18px -6px 0; }
    .steps-stage { margin-top: 20px; padding: 12px; min-height: 220px; border-radius: 12px; }

    .plans-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
    .plan-card { padding: 24px 14px; }

    /* 解析结果卡片：竖排，封面等比缩放 */
    .result-card { flex-direction: column; gap: 16px; }
    .result-cover { width: 100%; flex: none; aspect-ratio: 16/9; max-height: 46vh; margin: 0 auto; }
    .result-actions { gap: 10px; }
    .result-actions .btn { flex: 1 1 auto; min-width: 130px; padding: 11px 16px; }

    /* 解析输入框：小屏换行布局（输入一行 + 按钮一行）*/
    .parse-input-box { flex-wrap: wrap; padding: 6px; border-radius: 16px; }
    .parse-input-box input { flex: 1 1 calc(100% - 40px); padding: 12px 8px 12px 16px; }
    .paste-btn { order: 2; flex: 0 0 auto; margin-left: 6px; padding: 9px 16px; font-size: 13.5px; border-radius: 12px; }
    .parse-btn { order: 3; flex: 1 1 auto; padding: 13px; justify-content: center; font-size: 16px; border-radius: 12px; }
    .search-ico { display: none; } /* 换行布局下图标意义不大，隐藏保干净 */

    /* FAQ 手机端触控热区加大 */
    .faq-q { padding: 16px 16px; font-size: 15px; }
    .faq-a { padding: 0 16px; font-size: 13px; }
    .faq-item.open .faq-a { padding: 0 16px 16px; }

    /* 表格转卡片 */
    .card table, .card tbody, .card tr, .card td { display: block; width: 100%; }
    .card thead { display: none; }
    .card table { border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; }
    .card tr { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
    .card tr:last-child { border-bottom: none; }
    .card tr:last-child td:last-child { border-bottom: none; }
    .card td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 6px 0;
        border-bottom: 1px dashed #f0f0f0;
        text-align: right;
        font-size: 13px;
    }
    .card td:last-child { border-bottom: none; }
    .card td::before {
        content: attr(data-label);
        color: #999;
        font-size: 12px;
        flex-shrink: 0;
        text-align: left;
    }

    /* 个人中心 */
    .stats { flex-wrap: wrap; }
    .stat { flex: 1 1 30%; }

    /* 套餐选择（recharge）*/
    .plan-item { flex: 1 1 45%; min-width: 0; }

    /* 登录等窄卡片呼吸空间 */
    .card { margin: 20px auto; }

    section { padding: 36px 0; }
}

/* ===== 迷你屏（< 360px：iPhone SE / 小屏安卓）===== */
@media (max-width: 359px) {
    .banner-title { font-size: 22px; }
    .banner-title em { padding: 3px 10px; margin-left: 4px; font-size: 0.85em; }
    .stat { flex: 1 1 100%; }
    .plan-item { flex: 1 1 100%; }
    .result-actions .btn { min-width: 0; flex-basis: 100%; }
    .logo-box span { max-width: 40vw; }
    .btn-vip { padding: 5px 8px; font-size: 11px; }
    .card { padding: 18px 14px; }
}

/* ===== 手机横屏（高度 < 500px 且是横置视口）===== */
@media (max-height: 500px) and (orientation: landscape) {
    .nav { padding-top: 60px; }
    .banner { min-height: auto; padding: 28px 20px; }
    .section-sub { margin-bottom: 20px; }
}

/* ===== 超小屏 / 折叠屏外屏等极端场景兜底 ===== */
@media (max-width: 320px) {
    html { font-size: 15px; }
}

/* ===== 触屏设备：去掉 hover 残留 ===== */
@media (hover: none) {
    .plan-btn:hover { background: #1a1a1a; }
    .btn-primary:hover { transform: none; box-shadow: none; }
    .btn-ghost:hover { background: #f0f0f0; }
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1a1a1a;
    color: #999;
    padding: 40px 20px 20px;
    margin-top: 40px;
    /* 底部安全区（iPhone 横条） */
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo img { width: 30px; height: 30px; border-radius: 6px; }
.footer-logo span { color: #fff; font-weight: 700; }
.site-footer p { font-size: 13px; line-height: 1.6; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { font-size: 13px; line-height: 2; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 12px; }

@media (max-width: 767px) {
    .footer-grid { flex-direction: column; gap: 24px; }
    .footer-grid > div { width: 100%; }
    /* 手机端两列链接并排，节省纵向空间 */
    .footer-grid > div:nth-child(n+2) { width: calc(50% - 12px); }
    .footer-grid { flex-direction: row; }
    .site-footer ul { line-height: 1.9; }
}

/* ===== 算数人机验证 ===== */
.captcha-wrap { margin-bottom: 18px; user-select: none; -webkit-user-select: none; }
.captcha-math {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f6f9ff, #eef3ff);
    border: 1px solid #d6e0f5;
    border-radius: 10px;
    box-sizing: border-box;
}
.captcha-math-eq {
    font-size: 22px;
    font-weight: 700;
    color: #2a3f6b;
    font-family: 'Consolas', 'Menlo', monospace;
    white-space: nowrap;
    letter-spacing: 1px;
}
.captcha-math-eq-sep {
    font-size: 22px;
    font-weight: 700;
    color: #2a3f6b;
    font-family: 'Consolas', 'Menlo', monospace;
}
.captcha-math-input {
    width: 64px;
    height: 38px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border: 1.5px solid #4caf50;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #2a3f6b;
    font-family: 'Consolas', 'Menlo', monospace;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.captcha-math-input:focus { border-color: #43a047; box-shadow: 0 0 0 3px rgba(76,175,80,0.18); }
.captcha-math-input:disabled { background: #f5f5f5; color: #999; border-color: #ddd; }
.captcha-math-btn {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #7ed957, #4caf50);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.05s;
    -webkit-tap-highlight-color: transparent;
}
.captcha-math-btn:hover:not(:disabled) { opacity: 0.92; }
.captcha-math-btn:active:not(:disabled) { transform: scale(0.97); }
.captcha-math-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.captcha-math.verified { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-color: #a5d6a7; }
.captcha-math.verified .captcha-math-btn { background: linear-gradient(135deg, #66bb6a, #43a047); }
.captcha-math.verified .captcha-math-btn::after { content: ' ✓'; }
.captcha-hint {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    cursor: default;
}
.captcha-hint.ok { color: #4caf50; font-weight: 500; }
.captcha-refresh {
    text-align: right;
    font-size: 12px;
    color: #4caf50;
    cursor: pointer;
    margin-top: 6px;
    user-select: none;
}
.captcha-refresh:hover { text-decoration: underline; }
@media (max-width: 767px) {
    .captcha-math-eq, .captcha-math-eq-sep { font-size: 18px; }
    .captcha-math-input { width: 56px; height: 40px; font-size: 16px; }
    .captcha-math-btn { height: 40px; padding: 0 14px; }
}


/* ===== 打印样式（顺带优化，不影响屏幕）===== */
@media print {
    .site-header, .float-service, footer { display: none !important; }
}
