/* ======================================================
   主题变量
====================================================== */
:root{
    --wrap: 1100px;
    --content-max: 1200px;

    --brand: #2B71FF;
    --accent:#2B71FF;

    /* Hero 深蓝渐变 */
    --hero-start:#365a8d;
    --hero-end:#2e4f80;

    /* CTA 珊瑚按钮 */
    --cta-start:#ff6a6f;
    --cta-end:#ff8a90;
    --cta-shadow: rgba(255,106,111,.35);

    /* 深色底文字 */
    --hero-title:#fff;
    --hero-text:#eaf2ff;

    --text-main:#111;
    --text-muted:#6b7a90;
    --line: rgba(17,24,39,.08);
  }

  /* ======================================================
     全局基础
  ====================================================== */
  *{ box-sizing:border-box; }
  html,body{ margin:0; padding:0; }
  html,body{ overflow-x:hidden; } /* 防止 full-bleed 产生横向滚动 */

  body{
    font:16px/1.7 system-ui, Segoe UI, Arial;
    color:var(--text-main);
    background:
      radial-gradient(900px 600px at 85% 20%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
      linear-gradient(135deg, #fdfbfb 0%, #e6f0ff 42%, #f3e9ff 72%, #ffe6f3 100%) !important;
  }

  a{ color:var(--brand); text-decoration:none; }
  a:hover{ text-decoration:underline; }

  .wrap, .container{ max-width:var(--wrap); margin:0 auto; padding:0 16px; position:relative; }
  h1{ margin:0 0 16px; }

  /* ======================================================
     顶部导航（导航条蓝色 + 白字）
     默认融合；下拉后才出现蓝色玻璃+阴影
  ====================================================== */
  :root{ --header-h: 64px; }

  /* 默认：蓝色导航条（不玻璃、不阴影） */
  .site-header{
    position:fixed; top:0; left:0; right:0; height:var(--header-h);
    z-index:9999;

    background: linear-gradient(180deg, var(--hero-start) 0%, var(--hero-end) 100%);
    border-bottom:1px solid rgba(255,255,255,.10);

    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    box-shadow:none;

    transition: background .22s ease, box-shadow .22s ease, border-color .22s ease, backdrop-filter .22s ease;
  }

  /* 下拉后：蓝色玻璃 + 阴影（保持蓝色，不用白玻璃） */
  .site-header.is-scrolled{
    background: linear-gradient(
      180deg,
      rgba(54,90,141,.78) 0%,
      rgba(46,79,128,.78) 100%
    );
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom:1px solid rgba(255,255,255,.18);
    box-shadow:0 10px 26px rgba(0,0,0,.18);
  }

  .site-header .wrap{
    height:100%;
    display:flex; align-items:center; justify-content:space-between; gap:16px;
  }
  .site-header .logo{ display:inline-flex; align-items:center; gap:10px; line-height:1; }
  .site-header .logo img{
    height:28px; max-height:28px; width:auto !important; display:block; flex:0 0 auto;
  }
  .site-header .logo .text,
  .site-header .logo-text{ font-size:18px; font-weight:700; color:#fff; }

  .nav{ display:flex; gap:20px; }
  .nav a{
    color:#fff;
    font-weight:600;
    text-decoration:none;
    padding:10px 6px;
    border-radius:10px;
    transition: opacity .15s ease, background .15s ease, transform .15s ease;
  }
  .nav a:hover{
    opacity:.92;
    background: rgba(255,255,255,.10);
    transform: translateY(-1px);
  }

  /* ✅ 手机版：不显示导航（只保留Logo） */
  @media (max-width: 860px){
    .nav{ display:none !important; }
    .site-header .wrap{ justify-content:flex-start; }
  }

  /* 主体向下错让导航的高度 */
  .site-main{ padding-top: calc(var(--header-h) + 8px); }

  /* ======================================================
     HERO（full-bleed 铺满，靠顶部；深蓝渐变 + 珊瑚按钮）
     兼容：无论是否放在 .wrap/.container 内，都能铺满
  ====================================================== */
  .wa-hero{
    position:relative;

    /* —— 破版心关键：视口对齐铺满 —— */
    left:50%; right:50%;
    margin-left:-50vw; margin-right:-50vw;
    width:100vw; max-width:100vw;

    /* 上下内边距；左右基于内容最大宽度留白，保持居中视觉 */
    padding-top: 88px;
    padding-bottom: 70px;
    padding-left: max(20px, calc((100vw - var(--content-max)) / 2));
    padding-right:max(20px, calc((100vw - var(--content-max)) / 2));

    display:flex; align-items:center; justify-content:space-between; gap:40px;
    isolation:isolate; /* 让伪元素背景不影响外部 */
  }

  /* Hero 背景放在伪元素，真全幅 */
  .wa-hero::before{
    content:""; position:absolute; inset:0; z-index:-1;
    background:
      radial-gradient(1200px 700px at 85% 20%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 60%),
      linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  }

  /* Hero 文案与图片 */
  .wa-hero__content, .wa-hero__image{ flex:1; min-width:0; }

  .wa-hero h1{
    margin:0 0 10px; color:var(--hero-title); font-weight:900;
    font-size: clamp(30px, 4.6vw, 54px); line-height:1.22;
  }
  .wa-hero h1 strong{ color:#fff; }
  .wa-hero .sub-title{
    color:#fff; opacity:.95;
    font-size: clamp(18px, 2.1vw, 28px);
    font-weight:800; margin:0 0 6px;
  }
  .wa-hero p{
    color:var(--hero-text);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height:1.9; margin:12px 0 26px;
  }

  /* CTA 按钮 */
  .wa-hero__actions{ display:flex; gap:14px; flex-wrap:wrap; }
  .wa-btn{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:184px; height:56px; padding:0 26px; border:0; border-radius:999px;
    color:#fff; font-size:18px; font-weight:800; letter-spacing:.2px;
    background:linear-gradient(135deg, var(--cta-start), var(--cta-end));
    box-shadow:0 16px 36px var(--cta-shadow);
    transition:transform .14s ease, filter .18s ease, box-shadow .18s ease;
  }
  .wa-btn:hover{ transform:translateY(-2px); filter:brightness(1.05); }
  .wa-hero__guarantee{ color:rgba(255, 255, 255, 0.92); font-size:14.5px; margin-top:10px; }

  /* 右侧设备图 */
  .wa-hero__image{ text-align:right; }
  .wa-hero__image img{
    width: min(620px, 45vw); height:auto;
    filter: drop-shadow(0 24px 44px rgba(0,0,0,.28));
  }

  /* 移动端：垂直排版 */
  @media (max-width: 980px){
    .wa-hero{
      padding-top:84px; padding-bottom:40px;
      padding-left:max(16px, calc((100vw - var(--content-max)) / 2));
      padding-right:max(16px, calc((100vw - var(--content-max)) / 2));
      flex-direction:column; text-align:center;
    }
    .wa-hero__image{ text-align:center; }
    .wa-hero__image img{ width:78%; max-width:360px; }
    .wa-hero__actions{ justify-content:center; }
  }

  /* ======================================================
     下载引导段 / 通用图文段
  ====================================================== */
  :root{ --wa-green:#2b71ff; --wa-dark:#111; --wa-gray:#555; }

  .vpn-section{ padding:60px 20px; text-align:center; }
  .vpn-section .text-box{ max-width:800px; margin:0 auto; }
  .vpn-section .title{ font-size:28px; font-weight:700; color:#1f2a44; margin-bottom:18px; line-height:1.3; }
  .vpn-section .desc{ font-size:16px; color:#5f6b85; line-height:1.8; margin:0; white-space:pre-line; }

  .wa-section{
    max-width:var(--content-max); margin:80px auto; padding:0 20px;
    display:flex; align-items:center; gap:40px;
  }
  .wa-section.reverse{ flex-direction:row-reverse; }
  .wa-text{ flex:1; }
  .wa-text h2{ font-size:32px; color:var(--wa-dark); margin-bottom:16px; }
  .wa-text p{ font-size:18px; line-height:1.6; color:var(--wa-gray); margin:0; }
  .wa-text ul{ margin:16px 0; padding-left:20px; }
  .wa-text ul li{ margin-bottom:10px; font-size:17px; line-height:1.6; color:var(--wa-dark); }
  .wa-text strong{ color:var(--wa-green); }
  .wa-img{ flex:1; text-align:center; }
  .wa-img img{ max-width:100%; height:auto; border-radius:12px; }

  @media (max-width: 768px){
    .wa-section{ flex-direction:column; text-align:center; }
    .wa-section.reverse{ flex-direction:column; }
    .wa-img img{ max-width:80%; }
  }

  /* ======================================================
     Why / Features 三列
  ====================================================== */
  .why-telegram{ max-width:1100px; margin:36px auto 24px; padding:0 16px; }
  .why-title{ margin:0 0 18px; text-align:center; font-size:22px; line-height:1.4; color:#1f3147; }
  .why-title span{ color:var(--brand); }
  .features-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:28px 36px; }
  .feature-card{ text-align:center; padding:6px 8px; }
  .feature-card img{ width:140px; height:auto; display:block; margin:0 auto 8px; transition: transform .2s ease, filter .2s ease; }
  .feature-card:hover img{ transform:translateY(-4px); filter:drop-shadow(0 8px 18px rgba(26,115,232,.18)); }
  .feature-card h3{ margin:6px 0 6px; font-size:16px; font-weight:600; color:#1f3147; }
  .feature-card p{ margin:0; font-size:13px; line-height:1.6; color:#6b7a90; }

  @media (max-width: 960px){ .features-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px 24px; } }
  @media (max-width: 560px){ .features-grid{ grid-template-columns:1fr; gap:18px; } .feature-card img{ width:128px; } }

  /* ======================================================
     数据卡片（Stats）
  ====================================================== */
  .stats-section{ max-width:var(--content-max); margin:80px auto; text-align:center; padding:0 20px; }
  .stats-title{ font-size:28px; font-weight:700; margin-bottom:48px; color:#111; line-height:1.4; }
  .stats-title span{ color:var(--brand); }
  .stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
  .stat-card{ background:#f9f9f9; border-radius:16px; padding:32px 20px; box-shadow:0 2px 8px rgba(0,0,0,0.05); transition: transform .2s ease, box-shadow .2s ease; }
  .stat-card:hover{ transform:translateY(-6px); box-shadow:0 6px 16px rgba(0,0,0,0.08); }
  .stat-number{ font-size:30px; font-weight:800; color:var(--brand); margin-bottom:10px; }
  .stat-label{ font-size:16px; color:#444; }

  /* ======================================================
     横向资讯条（wa-strip）
  ====================================================== */
  .wa-strip{ background:#e9fbe3; border-radius:28px; padding:28px 18px 38px; margin:32px auto; max-width:1280px; }
  .wa-strip__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:0 6px 14px; }
  .wa-strip__title{ font-size:clamp(24px,4.5vw,40px); line-height:1.15; margin:0; color:#0f1f2e; }
  .wa-strip__desc{ margin:0; color:#334155; font-size:14.5px; max-width:720px; }
  .wa-strip__viewport{ position:relative; display:flex; align-items:center; gap:8px; padding:8px 40px; }
  .wa-strip__viewport::before,
  .wa-strip__viewport::after{ content:""; position:absolute; top:0; bottom:0; width:60px; pointer-events:none; transition:opacity .2s ease; }
  .wa-strip__viewport::before{ left:0; background:linear-gradient(90deg,#fff 45%, rgba(233,251,227,0)); opacity:0; }
  .wa-strip__viewport::after{ right:0; background:linear-gradient(-90deg,#fff 45%, rgba(233,251,227,0)); opacity:0; }
  .wa-strip__viewport.is-left::before{ opacity:1; }
  .wa-strip__viewport.is-right::after{ opacity:1; }
  .wa-carousel{ display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; -webkit-overflow-scrolling:touch; padding:6px 2px; --visible:4; }
  .wa-carousel::-webkit-scrollbar{ height:8px; }
  .wa-carousel::-webkit-scrollbar-thumb{ background:rgba(48,36,211,.35); border-radius:999px; }
  @media (max-width:1100px){ .wa-carousel{ --visible:3; } }
  @media (max-width:820px){  .wa-carousel{ --visible:2; } }
  @media (max-width:520px){  .wa-carousel{ --visible:1; } }
  .wa-item{ flex:0 0 calc((100% - (var(--visible) - 1) * 16px) / var(--visible)); min-width:240px; background:#fff; border:1px solid rgba(11,172,46,.08); border-radius:20px; padding:18px 16px; box-shadow:0 8px 20px rgba(24,155,35,.08); scroll-snap-align:start; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  .wa-item:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(16,24,40,.12); border-color:rgba(36,48,211,.55); }
  .wa-item__title{ font-size:16.5px; margin:0 0 8px; color:#0f172a; }
  .wa-item__text{ font-size:14.5px; line-height:1.72; color:#334155; margin:0; }

  /* ======================================================
     博客列表（home-latest）
  ====================================================== */
  .home-latest{ max-width:1100px; margin:26px auto 60px; padding:0 16px; }
  .home-latest h2{ margin:0 0 16px; font-size:24px; font-weight:800; color:#0f172a; }
  .post-grid{ display:grid; gap:22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .post-card{
    background:#fff;
    border:1px solid rgba(17,24,39,.08);
    border-radius:12px;
    overflow:hidden;
    height:100%;
    display:flex;
    flex-direction:column;
    box-shadow:0 4px 18px rgba(0,0,0,.04);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  .post-card:hover{ transform: translateY(-2px); border-color: rgba(43,113,255,.35); box-shadow: 0 10px 26px rgba(43,113,255,.12); }
  .post-card__cover{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
  .post-card__body{ padding:14px 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
  .post-card__meta{ color:#7a8797; font-size:13px; }
  .post-card__title{ margin:0; font-size:18px; line-height:1.5; color:#0f172a; font-weight:700; }
  .post-card__desc{ color:#333; line-height:1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

  /* ======================================================
     设备图 / 右侧浮动资讯（若你的页面仍在用）
  ====================================================== */
  .home-hero{ display:block; margin-top:10px; }
  .home-hero__left{ display:flex; flex-direction:column; align-items:center; text-align:center; max-width:500px; margin:0 auto; }
  .home-logo{ width:110px; height:110px; display:block; margin:6px auto 10px; }
  .home-title h1{ margin:0; font-size:36px; font-weight:500; color:#333; }
  .home-subtitle{ margin:6px 0 16px; font-size:16px; color:#7b8794; }

  .device-mac, .device-phones .phone{ background:none !important; box-shadow:none !important; border:none !important; }
  .device-mac img{ display:block; width:100%; max-width:400px; height:auto; margin:6px auto 8px; }
  .desktop-link{ display:flex; justify-content:center; align-items:center; gap:8px; margin:6px 0 18px; color:#2f6cd6; font-size:14px; }
  .desktop-link .icon{ width:16px; height:16px; }

  .device-phones{ display:grid; grid-template-columns: repeat(2, minmax(220px, 380px)); gap:64px; justify-content:center; align-items:start; margin:24px 0 6px; }
  .device-phones .phone img{ height:300px; width:auto; display:block; margin:0 auto; }
  .device-phones .phone figcaption{ display:flex; justify-content:center; align-items:center; gap:8px; margin-top:8px; font-size:14px; color:#2f6cd6; }
  .device-phones .phone figcaption .icon{ width:16px; height:16px; }

  .home-aside-floating{ position:absolute; top:0; right:0; width:280px; }
  .aside-box{ border-left:4px solid var(--brand); padding-left:12px; }
  .aside-title{ font-size:14px; margin:0 0 6px; color:var(--brand); }
  .aside-news{ list-style:none; margin:0; padding:0; }
  .aside-news li{ margin:6px 0 10px; }
  .aside-news .d{ font-size:11px; color:#7a8797; margin-bottom:2px; }
  .aside-news .t{ font-size:12px; color:#1a3d7a; text-decoration:none; line-height:1.4; }
  .aside-news .t:hover{ text-decoration:underline; }

  @media (max-width: 960px){
    .home-aside-floating{ position:static; width:auto; margin:0 0 16px 0; }
    .home-hero__left{ max-width:92vw; }
    .device-phones{ grid-template-columns:1fr; gap:22px; }
    .device-phones .phone img{ height:280px; }
    .home-title h1{ font-size:28px; }
    .home-logo{ width:96px; height:96px; }
  }

  /* ======================================================
     页脚
  ====================================================== */
  .site-footer{ border-top:1px solid var(--line); background:#fff; margin-top:32px; }
  .site-footer .wrap{ padding:18px 0; color:#666; }

  /* 若使用 lite footer 四列： */
  .wa-lite-footer{ background:transparent; color:#0b1320; }
  .wa-lite__inner{
    max-width:1280px; margin:0 auto; padding:48px 20px 56px;
    display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px 40px;
  }
  .wa-lite__logo{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
  .wa-lite__logo-img{ height:24px; width:auto; display:block; }
  .wa-lite__logo-text{ font-size:28px; font-weight:700; letter-spacing:.2px; }
  .wa-lite__headline{ font-size:28px; font-weight:800; margin:8px 0 6px; }
  .wa-lite__sub{ margin:0; font-size:16px; color:#6b7280; }
  .wa-lite__title{ margin:0 0 16px; font-size:22px; font-weight:800; }
  .wa-lite__list{ list-style:none; margin:0; padding:0; }
  .wa-lite__link{ display:block; padding:10px 0; font-size:20px; color:#0b1320; text-decoration:none; transition: color .15s ease, opacity .15s ease; }
  .wa-lite__link:hover{ color:var(--brand); opacity:.9; }
  @media (max-width:920px){ .wa-lite__inner{ grid-template-columns:1fr 1fr; } .wa-lite__headline{ font-size:24px; } .wa-lite__link{ font-size:18px; } }
  @media (max-width:520px){ .wa-lite__inner{ grid-template-columns:1fr; gap:28px; } }
