/* ============================================================
   Telegram 中文指南 — 红色高端主题 v2
   中俄双语切换 / 全响应式 / QQ支持条内嵌Hero
   ============================================================ */

:root {
    --red-900: #B71C1C;
    --red-700: #D32F2F;
    --red-500: #E53935;
    --red-400: #EF5350;
    --red-300: #FF5252;
    --red-100: #FFCDD2;
    --red-50:  #FFF5F5;
    --red-25:  #FFFAFA;
    --ink:     #3E2723;
    --ink-2:   #6D4C41;
    --ink-3:   #8D6E63;
    --gold:    #FFB300;
    --green:   #43A047;
    --grad:    linear-gradient(135deg, #D32F2F 0%, #E53935 50%, #FF5252 100%);
    --grad-soft: linear-gradient(135deg, #FFF5F5 0%, #FFE3E3 100%);
    --shadow:  0 4px 24px rgba(229, 57, 53, .12);
    --shadow-lg: 0 12px 48px rgba(229, 57, 53, .18);
    --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--red-25);
    color: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
}

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

[hidden] { display: none !important; }

/* ---------- Hero 内 QQ 支持条 ---------- */
.qqbar {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 10px 16px;
    background: rgba(255,255,255,.13);
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
}
.qqbar-text {
    font-size: 14.5px; font-weight: 700; color: #fff;
    display: flex; align-items: center;
}
.qqbar-text b { color: #FFE082; }
.qqbar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.qq-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.96);
    color: var(--red-700);
    border: none; border-radius: 999px;
    padding: 7px 16px;
    font-size: 14px; font-weight: 800; letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.18);
    transition: transform .25s, box-shadow .25s, background .25s;
    white-space: nowrap;
}
.qq-chip:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.24); }
.qq-chip.copied { background: linear-gradient(135deg, #43A047, #66BB6A); color: #fff; }
.qq-chip svg { display: block; }

/* ---------- 导航 ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(229,57,53,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    box-shadow: 0 4px 12px rgba(229,57,53,.35);
}
.logo-text { font-size: 17px; font-weight: 800; color: var(--red-700); letter-spacing: .5px; }
.logo-text small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
    display: block; padding: 8px 14px; border-radius: 10px;
    text-decoration: none; color: var(--ink-2);
    font-size: 14.5px; font-weight: 600;
    transition: all .2s;
    white-space: nowrap;
}
.nav-links a:hover { background: var(--red-50); color: var(--red-700); }
.nav-links a.active { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(229,57,53,.3); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
    border: 2px solid var(--red-100);
    background: #fff; color: var(--red-700);
    border-radius: 999px; padding: 6px 14px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--red-400); box-shadow: var(--shadow); }

.menu-btn {
    display: none;
    width: 40px; height: 40px; border-radius: 10px;
    border: none; background: var(--red-50); color: var(--red-700);
    font-size: 20px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--grad);
    color: #fff;
    padding: 56px 0 88px;
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.hero::before { width: 320px; height: 320px; top: -120px; right: -60px; animation: float 7s ease-in-out infinite; }
.hero::after { width: 240px; height: 240px; bottom: -100px; left: -40px; animation: float 7s ease-in-out 2s infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-18px)} }

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: 44px; font-weight: 900; letter-spacing: 1px; margin-bottom: 16px; text-shadow: 0 2px 14px rgba(0,0,0,.18); white-space: nowrap; }
.hero p { font-size: 17px; opacity: .94; max-width: 660px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 999px;
    font-size: 15px; font-weight: 800;
    text-decoration: none; cursor: pointer; border: none;
    transition: transform .25s, box-shadow .25s;
    white-space: nowrap;
}
.btn svg { display: block; }
.btn-white { background: #fff; color: var(--red-700); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-3px); }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, #fff 0%, var(--red-50) 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-tag {
    display: inline-block; padding: 4px 16px; border-radius: 999px;
    background: var(--red-50); color: var(--red-700);
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px;
    margin-bottom: 14px; text-transform: uppercase;
}
.section-head h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; line-height: 1.3; }
.section-head p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--red-100);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--grad);
    transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red-300); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 58px; height: 58px; border-radius: 16px;
    background: var(--grad-soft);
    border: 1px solid var(--red-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 27px; margin-bottom: 18px;
}
.card h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--red-700); font-weight: 800; font-size: 14px; text-decoration: none; }
.card-link:hover { gap: 10px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; }
.step {
    counter-increment: step;
    display: flex; gap: 20px; align-items: flex-start;
    background: #fff; border: 1px solid var(--red-100);
    border-radius: var(--radius); padding: 24px 26px;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.step::before {
    content: counter(step);
    flex-shrink: 0;
    width: 46px; height: 46px; border-radius: 14px;
    background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 900;
    box-shadow: 0 6px 16px rgba(229,57,53,.35);
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step code {
    background: var(--red-50); border: 1px solid var(--red-100);
    padding: 2px 8px; border-radius: 6px;
    font-size: 13px; color: var(--red-700);
}

/* ---------- FAQ 折叠 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: #fff; border: 1px solid var(--red-100);
    border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow);
}
.faq-q {
    width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 18px 22px;
    font-size: 15.5px; font-weight: 800; color: var(--ink);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .arrow { transition: transform .3s; color: var(--red-500); flex-shrink: 0; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-2); }
.faq-item.open .faq-a { max-height: 460px; }

/* ---------- CTA 大区块 ---------- */
.cta-band {
    background: var(--grad);
    border-radius: 26px;
    color: #fff; text-align: center;
    padding: 56px 26px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.cta-band::before { width: 220px; height: 220px; top: -90px; left: -50px; }
.cta-band::after { width: 260px; height: 260px; bottom: -120px; right: -60px; }
.cta-band h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; position: relative; z-index: 1; line-height: 1.3; }
.cta-band p { opacity: .94; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-band .hero-cta { position: relative; z-index: 1; }
.cta-band .btn-white { padding: 13px 26px; }

/* ---------- QQ 群大卡片区 ---------- */
.qq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.qq-card {
    background: #fff; border: 2px solid var(--red-100);
    border-radius: 22px; padding: 34px 28px; text-align: center;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    position: relative; overflow: hidden;
}
.qq-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: var(--grad);
}
.qq-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--red-300); }
.qq-num-big { font-size: 34px; font-weight: 900; color: var(--red-700); letter-spacing: 1px; margin: 10px 0 4px; white-space: nowrap; }
.qq-card .role { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 20px; }
.qq-copy-big {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad); color: #fff; border: none;
    padding: 12px 28px; border-radius: 999px;
    font-size: 15px; font-weight: 800; cursor: pointer;
    box-shadow: 0 8px 22px rgba(229,57,53,.35);
    transition: transform .25s, box-shadow .25s;
    white-space: nowrap;
}
.qq-copy-big:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(229,57,53,.45); }
.qq-copy-big.copied { background: linear-gradient(135deg, #43A047, #66BB6A); }
.qq-copy-big svg { display: block; }

/* ---------- 页脚 ---------- */
.footer {
    background: #2B1414;
    color: rgba(255,255,255,.72);
    padding: 52px 0 30px;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer p, .footer a { font-size: 13.5px; color: rgba(255,255,255,.65); text-decoration: none; }
.footer a:hover { color: #FF8A80; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.disclaimer {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 22px;
    font-size: 11.5px; line-height: 1.9;
    color: rgba(255,255,255,.4);
}
.copy-right { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 20px; }

/* ---------- 页面小 Hero（内页） ---------- */
.page-hero {
    background: var(--grad); color: #fff;
    padding: 44px 0 52px; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; top: -70px; right: -30px;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.page-hero .qqbar { margin-bottom: 26px; }
.page-hero h1 { font-size: 32px; font-weight: 900; position: relative; z-index: 1; white-space: nowrap; }
.page-hero p { opacity: .92; margin-top: 8px; font-size: 15.5px; position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; opacity: .85; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- 出现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
    .menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute; top: 64px; left: 0; right: 0;
        background: #fff;
        flex-direction: column; align-items: stretch;
        padding: 12px; gap: 4px;
        box-shadow: 0 16px 32px rgba(0,0,0,.12);
        border-top: 1px solid var(--red-50);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 14px; }
    .grid-3, .grid-2, .qq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero { padding: 40px 0 64px; }
    .hero h1 { font-size: 26px; letter-spacing: 0; white-space: normal; }
    .hero p { font-size: 14.5px; }

    /* QQ 支持条：手机端纵向排列 */
    .qqbar { flex-direction: column; padding: 14px; gap: 10px; }
    .qqbar-text { font-size: 13px; text-align: center; line-height: 1.6; }
    .qqbar-btns { width: 100%; }
    .qqbar-btns .qq-chip { flex: 1; justify-content: center; }

    /* CTA 按钮：全宽单行 */
    .hero-cta { flex-direction: column; align-items: stretch; width: 100%; padding: 0 6px; }
    .hero-cta .btn { width: 100%; font-size: 14.5px; padding: 13px 12px; }

    /* 标题字号压缩保证一行 */
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 34px; }
    .section-head h2 { font-size: 21px; letter-spacing: 0; }
    .section-head p { font-size: 14px; }
    .page-hero h1 { font-size: 23px; letter-spacing: 0; white-space: normal; }
    .page-hero p { font-size: 14px; }
    .cta-band { padding: 42px 18px; }
    .cta-band h2 { font-size: 20px; }
    .cta-band p { font-size: 14px; }
    .cta-band .btn-white { padding: 13px 12px; font-size: 14.5px; }

    .step { padding: 18px; gap: 14px; }
    .step::before { width: 38px; height: 38px; font-size: 16px; border-radius: 12px; }
    .step h3 { font-size: 15.5px; }
    .step p { font-size: 13.5px; }
    .qq-num-big { font-size: 28px; }
    .logo-text small { display: none; }
}

/* ---------- v2.1 补丁：复制图标在群号后 + 手机端Logo防换行 ---------- */
.logo-text { white-space: nowrap; }
@media (max-width: 640px) {
    .logo-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 10px; }
    .logo-text { font-size: 14px; letter-spacing: 0; }
    .nav-inner { height: 56px; gap: 8px; }
    .nav-links { top: 56px; }
}

/* ---------- v2.2 补丁：QQ群按钮加大凸显 + QQ图标 ---------- */
.qq-chip {
    padding: 10px 22px;
    font-size: 15.5px;
    font-weight: 900;
    letter-spacing: .5px;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.qq-chip:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.qq-ico { width: 20px; height: 20px; object-fit: contain; display: block; border-radius: 5px; }
@media (max-width: 640px) {
    .qq-chip { font-size: 14.5px; padding: 9px 14px; }
    .qq-ico { width: 18px; height: 18px; }
}

/* ---------- v3 补丁：APK 下载按钮 + 流程截图 ---------- */

/* 下载按钮（白色胶囊，红色文字，适配红色 Hero） */
.btn-download {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--red-700);
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 15px 34px;
    font-size: 17px; font-weight: 900;
    text-decoration: none; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: transform .25s, box-shadow .25s;
    white-space: nowrap;
    margin-bottom: 22px;
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.btn-download > span:last-child { display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.btn-download small { font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: center; }
.btn-download .dl-icon { font-size: 22px; }

/* 登录流程截图 */
.step-img { margin: 14px 0 2px; text-align: center; }
.step-img img {
    max-width: 340px; width: 100%;
    border-radius: 14px;
    border: 1px solid var(--red-100);
    box-shadow: var(--shadow);
    display: block; margin: 0 auto;
}
.step-img .cap { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; font-weight: 600; }
.step-img.noimg img { display: none; }
.step-img.noimg {
    padding: 26px 10px;
    border: 1.5px dashed var(--red-100);
    border-radius: 14px;
    background: var(--grad-soft);
}
.step-img.noimg .cap::before { content: '🖼 此处上传截图 '; }

/* 步骤内的提醒卡（复用现有 tip 结构，红色主题适配） */
.tip-box {
    max-width: 860px; margin: 26px auto 0;
    background: var(--grad-soft);
    border: 2px dashed var(--red-100);
    border-radius: 18px; padding: 22px 26px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.tip-box .tip-text { font-size: 15px; font-weight: 800; color: var(--ink); }
.tip-box .qqbar-btns { margin-left: auto; }

@media (max-width: 640px) {
    .btn-download { font-size: 14.5px; padding: 12px 20px; margin-bottom: 16px; }
    .tip-box { flex-direction: column; text-align: center; }
    .tip-box .qqbar-btns { margin-left: 0; width: 100%; }
    .tip-box .qq-chip { flex: 1; justify-content: center; }
}

.hero .qqbar { margin-bottom: 0; margin-top: 26px; }

/* ---------- v4 补丁：成功案例板块 + 图片灯箱 ---------- */

/* 案例网格：电脑 4 列 / 手机 2 列 */
.anli-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.anli-item {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--red-100);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    aspect-ratio: 3 / 4;          /* 统一裁剪比例, 不管原图长短都整齐 */
    background: var(--red-50);
    transition: transform .3s, box-shadow .3s;
}
.anli-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.anli-item img {
    width: 100%; height: 100%;
    object-fit: cover;             /*  cover 自动裁剪居中, 不变形 */
    display: block;
    transition: transform .35s;
}
.anli-item:hover img { transform: scale(1.06); }

/* 灯箱（点击看原图） */
.anli-modal {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.9);
    align-items: center; justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.anli-modal.show { display: flex; }
.anli-modal img {
    max-width: 92%; max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
    cursor: default;
}
.anli-close {
    position: absolute; top: 14px; right: 24px;
    color: #fff; font-size: 40px; line-height: 1;
    cursor: pointer; opacity: .85;
}
.anli-close:hover { opacity: 1; }

@media (max-width: 640px) {
    .anli-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}