/* =========================================================================
   SpeedX 首页改版新增样式
   1) 行业场景板块（仅展示，不含任何链接）
   2) 常见问答板块（details/summary 伸缩，不产生新链接）
   3) 移动端改为自然滚动（取消原站整页滚动翻页）
   色板与圆角规范完全沿用原站：底色 #1a1926 / 主色 #7960ff / 按钮 #5333ff
   卡片背景 rgba(222,223,255,.08) / 圆角 20px

   【色调衔接说明】
   原站每个板块的背景都是"暗 → 亮 → 暗"的曲线（例：bg2 顶部 rgb(9,9,22) →
   中部 rgb(28,28,46) → 底部 rgb(14,13,44)），相邻板块的接缝色差仅有 Δ3~16。
   新增板块采用同样做法：底层复用相邻板块的同一张背景图（保证材质与曲线一致），
   再叠加一层"只在上下两端着色、中间完全透明"的过渡层，两端色值直接取自
   原站真实渲染像素，使接缝色差趋近于 0。

   接缝色值取自原站线上渲染实测（1440x900 与 390x844）：
     桌面：首屏底 #02051d ｜ 为什么选择 SpeedX 顶 #070714
           安全加密底 #070616 ｜ 页脚顶 #080820
     平板：首屏底(偏蓝) #10184a ｜ 功能板块顶 #090915
           安全加密底 #161624 ｜ 页脚顶 #08081f
     手机：首屏底 #02071e ｜ 功能板块顶 #090915
           安全加密底 #1b1b2a ｜ 页脚顶 #08081f
   ========================================================================= */

/* 衔接色变量：默认按桌面端，≤1360 / ≤750 会分别覆盖 */
:root {
  --seam-hero-end: #02051d;
  --seam-feature-start: #070714;
  --seam-security-end: #070616;
  --seam-footer-start: #080820;
  --scene-bg: url("https://www.speedx.link/img/home/bg2.webp");
  --faq-bg: url("https://www.speedx.link/img/home/bg4.webp");
  --glow-rgb: 121, 96, 255;
}

/* 图片已带 width/height 占位属性（避免懒加载造成布局跳动），
   这里显式声明 height:auto，确保属性不会覆盖原站的尺寸规则 */
.logo,
.number_01,
.number_02,
.page-r {
  height: auto;
}

/* -------------------------------------------------------------------------
   英文版首屏标语溢出修复
   原站英文版 page1_t2 使用 white-space:pre 强制单行，80px 字号下整行宽约
   1506px，在 1361~1510px 的屏幕上会被左右裁切（原站线上即存在此问题）。
   这里只在"会溢出"的宽度区间按视口限制字号，1600px 及以上完全保持原样，
   单行结构与文字大小以外的样式均未改动。
   ------------------------------------------------------------------------- */
@media (min-width: 1361px) {
  html[lang^="en"] .page1_t2 {
    font-size: min(80px, 5vw);
  }
}

/* ------------------------------ 通用容器 ------------------------------ */
.sc-inner {
  width: 1360px;
  max-width: 100%;
}

.sc-head {
  max-width: 1200px;
}

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 2px;
  color: #c3b6ff;
  background: rgba(121, 96, 255, 0.14);
  border: 1px solid rgba(121, 96, 255, 0.3);
}

.sc-title {
  margin-top: 28px;
  font-size: 52px;
  line-height: 1.25;
  font-weight: 300;
  color: #ffffff;
}

.sc-title strong {
  font-weight: 700;
  color: #7960ff;
}

.sc-sub {
  margin-top: 20px;
  font-size: 20px;
  line-height: 36px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------ 行业场景 ------------------------------ */
.page-scene {
  padding: 150px 0 140px;
  background-color: #06071a;
  background-image:
    /* ① 上下两端的衔接过渡层（中间完全透明，只负责抹平接缝） */
    linear-gradient(
      180deg,
      var(--seam-hero-end) 0%,
      transparent 18%,
      transparent 82%,
      var(--seam-feature-start) 100%
    ),
    /* ② 品牌光晕（居中偏内，不触碰上下边缘，避免在中间列形成新的色带） */
    radial-gradient(1100px 460px at 50% 50%, rgba(var(--glow-rgb), 0.12), rgba(var(--glow-rgb), 0) 72%),
    /* ③ 与下方板块同源的背景图（材质与曲线一致） */
    var(--scene-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  list-style: none;
}

.scene-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  border-radius: 20px;
  background: rgba(222, 223, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.scene-card:hover {
  transform: translateY(-6px);
  background: rgba(222, 223, 255, 0.13);
  border-color: rgba(121, 96, 255, 0.45);
}

.scene-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #cbbcff;
  background: linear-gradient(135deg, rgba(121, 96, 255, 0.3), rgba(255, 77, 246, 0.16));
  border: 1px solid rgba(121, 96, 255, 0.35);
}

.scene-icon svg {
  width: 28px;
  height: 28px;
}

.scene-card h3 {
  margin-top: 22px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  color: #ffffff;
}

.scene-card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 27px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}

.scene-card .scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.scene-tag {
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  background: rgba(121, 96, 255, 0.14);
  border: 1px solid rgba(121, 96, 255, 0.28);
}

.scene-card .scene-tip {
  margin-top: 14px;
  font-size: 13px;
  line-height: 22px;
  color: rgba(255, 255, 255, 0.42);
}

.scene-note {
  max-width: 1200px;
  margin-top: 36px;
  font-size: 13px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.36);
}

/* ------------------------------ 常见问答 ------------------------------ */
.page-faq {
  padding: 150px 0 160px;
  background-color: #090a1a;
  background-image:
    linear-gradient(
      180deg,
      var(--seam-security-end) 0%,
      transparent 18%,
      transparent 84%,
      var(--seam-footer-start) 100%
    ),
    radial-gradient(1000px 520px at 50% 42%, rgba(var(--glow-rgb), 0.14), rgba(var(--glow-rgb), 0) 72%),
    var(--faq-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.faq-list {
  width: 100%;
  max-width: 100%;
  margin-top: 56px;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(222, 223, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover {
  background: rgba(222, 223, 255, 0.1);
}

.faq-item[open] {
  background: rgba(222, 223, 255, 0.11);
  border-color: rgba(121, 96, 255, 0.4);
}

.faq-q {
  display: block;
  cursor: pointer;
  list-style: none;
}

/* 问题文本用 h3 承载，既保留视觉样式，也提供语义化标题层级 */
.faq-q-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: #ffffff;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::marker {
  content: "";
}

.faq-ico {
  position: relative;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  background: #7960ff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.faq-ico::before {
  left: 0;
  top: 10px;
  width: 22px;
  height: 2px;
}

.faq-ico::after {
  left: 10px;
  top: 0;
  width: 2px;
  height: 22px;
}

.faq-item[open] .faq-ico::before {
  background: #cbbcff;
}

.faq-item[open] .faq-ico::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-a {
  max-width: 940px;
  padding: 0 32px 28px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.66);
}

.faq-more {
  margin-top: 32px;
  font-size: 14px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.45);
}

/* 锚点定位时避开固定头部 */
#usecase,
#faq {
  scroll-margin-top: 100px;
}

/* 键盘可访问性 */
.faq-q:focus-visible {
  outline: 2px solid #7960ff;
  outline-offset: -4px;
}

a:focus-visible {
  outline: 2px solid #7960ff;
  outline-offset: 2px;
}

/* =========================================================================
   响应式：<= 1360px（原站移动/平板断点）
   ========================================================================= */
@media (max-width: 1360px) {
  /* 原站在 ≤1360px 时改用手机版背景图，首屏底部会明显偏蓝，因此单独匹配接缝色 */
  :root {
    --seam-hero-end: #13164e;
    --seam-feature-start: #090915;
    /* 三个功能板块在平板区间的高度几乎一致，底部稳定在 rgb(20,20,32) */
    --seam-feature-bottom: #141420;
    --seam-security-end: #141420;
    --seam-footer-start: #08081f;
    --scene-bg: url("https://www.speedx.link/img/mobile/bg2.png");
    --faq-bg: url("https://www.speedx.link/img/mobile/bg2.png");
  }

  /* ≤1360px 时原站各功能板块的高度不足一屏，背景图在每个板块顶部重新开始，
     导致板块之间出现 Δ23~50 的色阶断层。这里在每块上下各约 14% 的边缘区域
     补一层接缝过渡，板块主体背景保持原样；如需完全恢复原站背景，删除本段即可。 */
  .page2,
  .page3,
  .page4 {
    background-color: var(--seam-feature-bottom);
    background-image:
      linear-gradient(
        180deg,
        transparent 0%,
        transparent 86%,
        var(--seam-feature-bottom) 100%
      ),
      url("https://www.speedx.link/img/mobile/bg2.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .page3,
  .page4 {
    background-image:
      linear-gradient(
        180deg,
        var(--seam-feature-bottom) 0%,
        transparent 14%,
        transparent 86%,
        var(--seam-feature-bottom) 100%
      ),
      url("https://www.speedx.link/img/mobile/bg2.png");
  }

  .sc-inner {
    padding: 0 16px;
  }

  .sc-title {
    margin-top: 20px;
    font-size: 34px;
    line-height: 1.35;
  }

  .sc-sub {
    margin-top: 14px;
    font-size: 16px;
    line-height: 28px;
  }

  .page-scene {
    padding: 64px 0 56px;
  }

  .page-faq {
    padding: 64px 0 72px;
  }

  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
  }

  .scene-card {
    padding: 26px 20px 24px;
  }

  .scene-card h3 {
    margin-top: 18px;
    font-size: 19px;
    line-height: 27px;
  }

  .faq-list {
    margin-top: 36px;
  }

  .faq-q {
    font-size: 16px;
    line-height: 26px;
  }

  .faq-q-title {
    gap: 16px;
    padding: 20px;
    font-size: 16px;
    line-height: 26px;
  }

  .faq-a {
    padding: 0 20px 22px;
    font-size: 14px;
    line-height: 26px;
  }

  /* 取消固定整屏高度，让内容自然流动（配合取消整页滚动翻页） */
  .page1,
  .page2,
  .page3,
  .page4 {
    height: auto;
    min-height: 0;
  }

  .section-content {
    height: auto;
    min-height: 0;
  }

  .page1 {
    min-height: 100vh;
    padding-bottom: 40px;
  }
}

/* =========================================================================
   响应式：<= 750px（手机端，改为自然滚动，取消原站整页翻页）
   ========================================================================= */
@media (max-width: 750px) {
  /* 手机端原站首屏按满屏比例展示手机版背景，底部回到近黑 */
  :root {
    --seam-hero-end: #02071e;
    --seam-feature-bottom: #1b1b2a;
    --seam-security-end: #1b1b2a;
  }

  html,
  body {
    overflow: auto !important;
  }

  .fullpage {
    transform: none !important;
    transition: none !important;
  }

  .section {
    position: relative;
    height: auto !important;
    overflow: visible !important;
  }

  /* 首屏仍撑满一屏，其余板块随内容自然增高 */
  .section:not(.page1) {
    min-height: 0 !important;
  }

  .page1 {
    min-height: 100vh !important;
    padding-bottom: 40px;
  }

  .section-content {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .sc-eyebrow {
    padding: 6px 14px;
    font-size: 13px;
  }

  .sc-title {
    font-size: 26px;
    line-height: 1.4;
  }

  .sc-sub {
    font-size: 14px;
    line-height: 24px;
  }

  .page-scene {
    padding: 48px 0 40px;
  }

  .page-faq {
    padding: 48px 0 56px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .scene-card {
    padding: 22px 18px;
  }

  .scene-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .scene-icon svg {
    width: 24px;
    height: 24px;
  }

  .scene-card p {
    font-size: 14px;
    line-height: 25px;
  }

  .faq-q {
    font-size: 15px;
    line-height: 24px;
  }

  .faq-q-title {
    padding: 18px 16px;
    font-size: 15px;
    line-height: 24px;
  }

  .faq-a {
    padding: 0 16px 20px;
    font-size: 14px;
    line-height: 25px;
  }
}
