/* ==========================================================================
   Senflare Link 官网样式
========================================================================== */

/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 字体：阿里普惠体文件已移除，走系统字体栈（PingFang SC / Microsoft YaHei 等） */

body {
    font-family: 'Inter Variable', 'Noto Sans SC Variable', 'Source Han Sans SC', '思源黑体', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-1, var(--white));
    color: var(--text-1, var(--gray-800));
    line-height: 1.6;
    overflow-x: hidden;
}

/* 官网特有的颜色变量 */
:root {
    --landing-rgb: 22, 119, 255;   /* 默认跟随主题色 #1677ff，选过主题色后由 JS 覆盖 */
    --orange: var(--color-primary);
    --orange-light: var(--color-primary-light);
    --orange-dark: var(--color-primary-dark);
    --orange-bg: rgba(var(--landing-rgb), 0.08);
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #f0f0f0;
    --gray-200: #eeeeee;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
}

/* ==================== 顶部导航栏 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    background: color-mix(in srgb, var(--bg-1, #fff) 92%, transparent);
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(var(--landing-rgb), 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;   /* 全局引用 SenflareUI 后 .header 变为 flex，内层须撑满否则收缩贴左 */
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;   /* 图标与品牌名间距 */
    text-decoration: none;
}

.logo-text {
    font-size: 17.5px;   /* 对齐后台 1.25rem×14px 根字号的实际渲染值（本页根字号 16px） */
    font-weight: 700;
    line-height: 1;
    color: #212121;
}

/* 覆盖 common.css 中为侧边栏设置的 display: none */
.header .logo-text {
    display: inline !important;
}

.logo-text span {
    color: var(--color-primary);
}


.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(var(--landing-rgb), 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    box-shadow: 0 3px 12px rgba(var(--landing-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(var(--landing-rgb), 0.4);
    color: white;
}

.btn-lg {
    height: 40px;   /* 显式覆盖全局引用的 SenflareUI .btn 固定高度(36px)，否则加高无效 */
    padding: 0 1.9rem;
    font-size: 0.95rem;
}

/* ==================== 首屏横幅 - 科技风格 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 50%, var(--gray-100) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* 科技网格 */
.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--landing-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--landing-rgb), 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* 光晕效果 */
.cyber-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cyber-glow-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(var(--landing-rgb), 0.18) 0%, transparent 70%);
    animation: glowPulse 6s ease-in-out infinite;
}

.cyber-glow-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: 10%;
    background: radial-gradient(circle, rgba(var(--landing-rgb), 0.12) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 全球网络效果 */
.network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

@keyframes blink {
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.6;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.hero-title .typewriter {
    display: inline;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 3px solid var(--color-primary);
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    50% { border-color: transparent; }
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Hero 指标 */
.hero-metrics {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 2;
}

.hero-metrics strong {
    color: var(--orange);
    font-weight: 700;
}

.hero-metrics-sep {
    color: var(--gray-300);
}

/* ==================== 通用区块样式 ====================
   间距刻度：卡片网格 .75rem / 标题-内容与区块内组件 1.5rem / 区块缝 5rem（缝由上一区块 padding-bottom 供给，下一区块 padding-top 置 0） */
.section {
    padding: 5rem 2rem;
}

.section + .section {
    padding-top: 0;
}

/* ==================== 动画效果 ==================== */

/* Hero 入场动画：标题/描述/按钮/指标逐级浮现 */
.hero-title {
    animation: heroFadeIn 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-desc {
    animation: heroFadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    animation: heroFadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-metrics {
    animation: heroFadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float1 {
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
}

@keyframes float2 {
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -15px);
    }
}

/* 脉冲动画（已停用：hover 缩放会让按钮文字跟着放大） */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes flowArrow {
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

@keyframes iconPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes ipPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 计数器动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-30px, 30px);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }
}

/* ==================== 延迟测试卡片 ==================== */
:root {
    --latency-49: #22c55e;
    --latency-149: #84cc16;
    --latency-299: #faab41;
    --latency-999: #f97316;
    --latency-1000: #ef4444;
    --latency-fail: #ef4444;
}

@keyframes latencyPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 900px) {
    .header-inner {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-metrics-sep {
        display: none;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 0.25rem;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .section + .section {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.1rem 1.5rem;
    }

    .header .logo-text { font-size: 17px; }
    .header .brand-lite { display: none; }   /* 移动端隐藏 Lite 角标 */


    .hero {
        padding: 5.5rem 1.5rem 3rem;
        min-height: auto;   /* 移动端取消强制全屏，避免首屏底部大片留白 */
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.35;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .hero-actions .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .hero-metrics {
        font-size: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 1rem 1rem;
    }

    .header .logo-text { font-size: 16px; }

    .hero {
        padding: 6.5rem 1rem 4.5rem;   /* 加高靠内边距，不用 min-height 避免变回全屏 */
    }

    .hero-title {
        font-size: 1.5rem;
        margin-top: 2.75rem;
        margin-bottom: 3rem;
        line-height: 1.6;
    }

    .hero-title .typewriter {
        font-size: 1.5rem;
    }

    .hero-actions .btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }

    .hero-desc {
        font-size: 0.8rem;
    }

    .hero-metrics {
        gap: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .cyber-grid {
        display: none;
    }

    .section {
        padding: 2.5rem 1rem;
    }

    .section + .section {
        padding-top: 0;
    }
}
/* ==================== Senflare Link Lite 追加：品牌角标（同 login 页 .brand-lite，缩小版） ==================== */
.brand-lite {
    display: inline-block;
    vertical-align: 8px;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .3px;
    line-height: 1.5;
}

.logo-text .brand-lite { color: #fff; }

/* ==================== 页面主体区块（功能/数据/协议/步骤/CTA/页脚） ====================
   全部走主题变量：--color-primary 系（跟随调色盘）+ --text-、--bg-、--border- 系（明暗双主题），
   玻璃拟态卡片 + 光斑氛围，与后台 SenflareUI 同一设计语言 */

.section-inner { max-width: 1800px; margin: 0 auto; }   /* 内容列宽 */
section[id] { scroll-margin-top: 64px; }   /* 锚点落点让开固定头部，标题不被遮挡 */

/* ---------- 区块标题（与 .sec-head 统一样式） ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--text-color);
    letter-spacing: .5px; margin-bottom: .85rem;
}
.section-subtitle { font-size: .95rem; color: var(--text-muted); }

/* 卡片顶部主题色渐变线：hover 时点亮 */

/* ---------- 数据统计横带 ---------- */
/* ==================== 营销版区块（每区独立视觉语言） ==================== */

/* ---- 接入兼容：客户端芯片墙 ---- */
.compat-chip {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: .55rem; row-gap: .1rem; padding: .7rem .9rem; border-radius: 14px;
  width: 13.5rem;   /* 卡片等宽，文字超宽省略号截断 */
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  text-align: left;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.compat-chip:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-border, rgba(var(--landing-rgb), .3));
  box-shadow: 0 8px 22px rgba(var(--landing-rgb), .12);
}
.compat-chip img { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.compat-chip b { grid-column: 2; font-size: .76rem; font-weight: 700; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compat-chip small { grid-column: 2; font-size: .66rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==================== 企业架构配套恢复（导航/眉标/角标/页脚列） ==================== */
.nav-links { display: flex; gap: 1.5rem; margin: 0 auto; }
.nav-links a {
  font-size: .88rem; color: var(--text-muted); text-decoration: none;
  letter-spacing: .3px; transition: color .2s ease; position: relative;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a::after {
  content: ''; position: absolute; left: -8px; right: -8px; bottom: -6px;
  height: 12px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--landing-rgb), .55) 0%, transparent 70%);
  filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { opacity: 1; }
.nav-links a.active { color: var(--color-primary); }

/* 移动端：汉堡按钮 + 头部下拉导航面板 */
.nav-toggle { display: none; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ic-close { display: none; }
.header.nav-open .nav-toggle .ic-menu { display: none; }
.header.nav-open .nav-toggle .ic-close { display: block; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: .4rem 1.2rem;
    background: color-mix(in srgb, var(--bg-1, #fff) 96%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: .4rem 0; font-size: .9rem; }
  .nav-links a::after { display: none; }
}
@media (max-width: 400px) { .header-right .header-icon-btn:nth-child(3) { display: none; } }   /* 窄屏隐藏 GitHub，防拥挤 */

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: .7rem;
}

.footer-cols {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .logo-text { font-size: 1.15rem; }
.footer-brand .logo-text { color: var(--text-color); }
.footer-brand .logo-text span { color: var(--color-primary); }
.footer-brand p { font-size: .8rem; color: var(--text-muted); margin-top: .6rem; max-width: 300px; }
.footer-col h4 { font-size: .82rem; font-weight: 700; color: var(--text-color); letter-spacing: 1px; margin-bottom: .8rem; }
.footer-col a {
  display: block; font-size: .82rem; color: var(--text-muted);
  text-decoration: none; padding: .22rem 0; transition: color .2s ease;
}
.footer-col a:hover { color: var(--color-primary); }
@media (max-width: 768px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---- 为什么选它：牛逼卡 ---- */

/* ---- 常见问题：FAQ 手风琴 ---- */
.faq-list { max-width: 760px; margin: 1.5rem auto 0; }
.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px; margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item.open { border-color: var(--color-primary-border, rgba(var(--landing-rgb), .3)); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 1.2rem;
  background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: inherit;
}
.faq-q span { font-size: .92rem; font-weight: 500; color: var(--text-color); letter-spacing: .2px; }
.faq-q svg {
  width: 16px; height: 16px; flex-shrink: 0; color: var(--text-muted);
  transition: transform .3s ease, color .3s ease;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--color-primary); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p {
  padding: 0 1.2rem 1.1rem;
  font-size: .82rem; color: var(--text-muted); line-height: 1.75;
}
/* ==================== 页面节奏：暗色数据带 / Bento / 协议分组 / CTA ==================== */

/* ---- 能力 Bento（等宽 2×2 + 数据可视化） ---- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.5rem 0 0; }
.bento-cell {
  position: relative; overflow: hidden;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 1.25rem 1.2rem 1.1rem; min-height: 170px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* ---- 智能路由卡：三级选路图（占满整行，左侧文案右侧链路） ---- */
/* 无边框无背景的透明卡：只承载选路图 */
.bento-cell.route-cell {
  grid-column: 1 / -1; min-height: 0; border: none;
  background: none; box-shadow: none;
}
.bento-cell.route-cell:hover { transform: none; box-shadow: none; border-color: transparent; }
.bento-cell.route-cell::before, .bento-cell.route-cell::after { display: none; }
/* 标题区居中的特性标签组 */
.route-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.route-tags span {
  font-size: .64rem; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(var(--landing-rgb), .08); border: 1px solid rgba(var(--landing-rgb), .22);
  color: var(--text-muted);
}
.vis-route { display: flex; flex-direction: column; gap: .85rem; }
.route-track { display: flex; align-items: stretch; justify-content: center; gap: 0; }
.route-link {
  position: relative; flex: 0 0 46px; align-self: center; height: 2px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 45%, transparent) 0 7px, transparent 7px 14px);
  background-size: 14px 2px;
  animation: routeMarch 1.3s linear infinite;
}
@keyframes routeMarch { to { background-position: 14px 0; } }
.route-link::after {
  content: ""; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 8px rgba(var(--landing-rgb), .55);
  animation: routeFlow 2.4s linear infinite;
}
.route-link:nth-of-type(4)::after { animation-delay: .8s; }
.route-link:nth-of-type(6)::after { animation-delay: 1.6s; }
@keyframes routeFlow {
  0% { left: -3px; opacity: 0; } 10% { opacity: 1; }
  82% { left: calc(100% - 3px); opacity: 1; } 92%, 100% { left: calc(100% - 3px); opacity: 0; }
}
/* 选路节点：大尺寸横排卡（左圆徽 + 右文字），充足留白 */
.route-node {
  position: relative; display: flex; align-items: center; gap: .85rem;
  flex-shrink: 0; width: 210px; padding: 1.1rem 1.2rem; border-radius: 16px;
  background: transparent; border: 1px solid var(--border-color);
  transition: border-color .2s ease;
}
.route-node:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.rn-num svg { width: 18px; height: 18px; }
.route-node small { font-size: .68rem; color: var(--text-muted); white-space: nowrap; }
.rn-num {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--color-primary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.rn-num.n1 {
  color: #fff; background: var(--color-success, #22c55e);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-success, #22c55e) 40%, transparent);
}
.rn-num.n2 {
  color: #fff; background: var(--color-primary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.rn-num.n3 {
  color: #fff; background: var(--color-warning, #f59e0b);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-warning, #f59e0b) 40%, transparent);
}
.rn-text { display: flex; flex-direction: column; gap: .25rem; }
.route-node b { font-size: .85rem; font-weight: 700; color: var(--text-color); white-space: nowrap; letter-spacing: .3px; }
.route-node small { font-size: .64rem; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .route-node small { display: none; }
  .route-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .route-link { display: none; }
  .route-node { width: auto; }
  .route-node b { white-space: normal; }
}

/* 接入兼容：芯片墙不限制宽度，铺满区块 */
#compatibility .section-inner { max-width: none; }

/* ---- 协议分组条 ---- */
.proto-groups {
  margin-top: 1.5rem; padding: 1.5rem 1.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1rem 1.6rem;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}
.proto-group { display: flex; align-items: center; gap: .75rem; }
.proto-note {
  max-width: 760px; margin: 1.5rem auto 0; text-align: center;
  font-size: .85rem; line-height: 1.7; color: var(--text-muted);
}
.proto-note b { color: var(--color-primary); font-weight: 700; }
.proto-sep { width: 1px; height: 22px; background: var(--border-color); }
.proto-label { font-size: .74rem; font-weight: 700; color: var(--color-primary); letter-spacing: 1px; white-space: nowrap; }
@media (max-width: 768px) {
  .proto-groups { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .proto-sep { width: 100%; height: 1px; }
}

/* ==================== 动画层：吸引眼的动效 ==================== */

/* 打字机渐变流光 */
.hero-title .typewriter {
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light), var(--color-primary), var(--color-primary-dark));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--color-primary);
  animation: shimmer 6s linear infinite;
  text-shadow: none;
}
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }

/* 区块组件滚动级联入场/出场：进场线内收导航条高度（顶）与 10%（底），露出可视区才播入场；
   退场线为完整视口，元素完全离屏后才静默复位——屏幕内内容永不淡出，复位保证再进场重播；
   入场沿 --enter-x/--enter-y 向量归位，四向等距 40px 同速（默认自下方，组件加 .from-left / .from-right / .from-top 改向）；
   进/出统一 1.0s 同曲线：进场 revealIn 关键帧每次进场完整重播，退场走隐藏态 transition 从当前值平滑收回（中途离场不跳变）；
   同批进入的组件由 JS 写入 --enter-delay 级联；跑马灯以整体 .compat-marquee 参与，内部芯片不参与（芯片持续横滚会反复横穿视口） */
html.js .reveal :is(.sec-head, .section-head, .bento-cell, .compat-marquee, .gn-card, .faq-item, .cmp-row, .proto-group, .speed-left, .speed-rows):not(.in-view) {
  opacity: 0;
  transform: translate(var(--enter-x, 0px), var(--enter-y, 40px));
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1);
}
html.js .reveal :is(.sec-head, .section-head, .bento-cell, .compat-marquee, .gn-card, .faq-item, .cmp-row, .proto-group, .speed-left, .speed-rows).in-view {
  animation: revealIn 1s cubic-bezier(.22, 1, .36, 1) backwards;
  animation-delay: var(--enter-delay, 0s);
}
.from-left  { --enter-x: -40px; --enter-y: 0px; }
.from-right { --enter-x: 40px;  --enter-y: 0px; }
.from-top   { --enter-x: 0px;   --enter-y: -40px; }
@keyframes revealIn { from { opacity: 0; transform: translate(var(--enter-x, 0px), var(--enter-y, 40px)); } to { opacity: 1; transform: none; } }

/* Bento：3D 倾斜（JS 驱动）+ 流光描边 */
.bento { perspective: 1000px; }
.bento-cell {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out, border-color .3s ease, box-shadow .3s ease;
}

/* 协议芯片（分组条内） */
.proto-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.proto-chip {
  font-size: .75rem; font-weight: 600; color: var(--text-2);
  padding: 3px 11px; border-radius: 20px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  transition: all .2s ease;
}
.proto-chip:hover { color: var(--color-primary); border-color: var(--color-primary-border, rgba(var(--landing-rgb), .3)); }

/* ---- 页脚：纯黑底（明暗主题一致） ---- */
.footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span:not(.brand-lite) { color: var(--color-primary); }
.footer-brand .logo-text .brand-lite { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, .55); }
.footer-col h4 { color: #fff; }
.footer-col a { color: rgba(255, 255, 255, .55); }
.footer-col a:hover { color: var(--color-primary); }
/* 页脚版权条：SenflareUI 的 .copyright 按后台版式写成 64px 定高，此处按落地页黑底页脚覆写 */
.footer .copyright {
  height: auto; line-height: 1.7; padding: 0; margin-top: 0;
  border-top: none;
  font-size: .78rem; color: rgba(255, 255, 255, .35);
}

/* ==================== 下方区域精修 ==================== */


/* 接入兼容：无缝跑马灯（双排，第二排反向） */
.compat-marquee {
  display: flex; flex-direction: column; gap: .75rem;
  overflow: hidden; max-width: 100%;
  padding: .9rem 0; margin: .6rem 0 -.9rem;   /* 留出 hover 上浮与投影空间，负边距抵消布局位移 */
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.compat-track { display: flex; gap: .75rem; width: max-content; animation: compatScroll 32s linear infinite; }
.compat-track-rev { animation-direction: reverse; }   /* 第二排反向滚动 */
.compat-marquee:hover .compat-track { animation-play-state: paused; }
@keyframes compatScroll { to { transform: translateX(calc(-50% - .4rem)); } }
.compat-chip { flex-shrink: 0; }

/* FAQ 尾部联系引导：上下间距对称（#about 让出底部 padding，缝由 margin 单侧供给） */
.faq-more { text-align: center; margin: 1.5rem 0; font-size: .82rem; color: var(--text-muted); }
.faq-more a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }
#about { padding-bottom: 0; }

/* 页脚升级 */
.footer { position: relative; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: .55;
}
.footer-bottom {
  max-width: 1120px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; align-items: center;
  font-size: .75rem; color: rgba(255, 255, 255, .35);
}

/* ---- 自建对比表（编辑排版风） ---- */
.cmp-table { max-width: 1120px; margin: 1.5rem auto 0; border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.cmp-row {
  display: grid; grid-template-columns: .9fr 1.3fr 1.3fr;
  gap: 1rem; padding: 1.05rem 1.4rem; align-items: center;
}
.cmp-row + .cmp-row { border-top: 1px solid var(--border-color); }
.cmp-head { background: rgba(var(--landing-rgb), .06); padding-block: .85rem; }
.cmp-head b { font-size: .92rem; font-weight: 800; color: var(--color-primary); letter-spacing: .3px; }
.cmp-k { font-size: .82rem; font-weight: 700; color: var(--text-2); }
.cmp-lite { font-size: .8rem; font-weight: 600; color: var(--color-primary); }
.cmp-std { font-size: .8rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr; gap: .25rem; padding: .9rem 1.1rem; }
  .cmp-head { display: none; }
}

/* 页脚品牌显示与上间距（.logo-text 被 SenflareUI 默认隐藏，此处放开） */
.footer-brand .logo-text { display: inline !important; }
.footer { padding: 3.5rem 3rem 1.5rem; }
@media (max-width: 900px) { .footer { padding: 3.5rem 2rem 1.5rem; } }
@media (max-width: 600px) { .footer { padding: 3.5rem 1.5rem 1.5rem; } }

/* ==================== Bento 动画细节打磨 ==================== */

/* 倾斜联动轻微缩放（与 JS 倾斜共存，hover 微放大） */
.bento-cell { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); }
.bento-cell:hover { --sc: 1.015; }

/* ---- 回到顶部按钮 ---- */
.back-top {
  position: fixed; right: 1.4rem; bottom: 1.6rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border: none; color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(var(--landing-rgb), .35);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, box-shadow .3s ease, filter .2s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(var(--landing-rgb), .5);
}
.back-top svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .back-top { right: .9rem; bottom: 1.1rem; } }

/* ---- 全球节点网络 / 真实测速：版式移植，标题样式同参考设计，配色走主题变量 ---- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto; }
.sec-tag {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: .7rem;
}
.sec-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: var(--text-color); margin-bottom: .85rem;
}
.sec-head h2 em, .section-title em {
  font-style: normal;
  background: var(--gradient-primary-horizontal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head p { color: var(--text-muted); font-size: .95rem; }

/* 双行 16 卡：列数由 JS 按容器宽度自适应（--gn-cols），恒定两行，整体随容器居中 */
.gn-grid { display: grid; grid-template-columns: repeat(var(--gn-cols, 8), minmax(0, 1fr)); gap: .75rem; margin-top: 1.5rem; }
.gn-card.gn-hidden { display: none; }
.gn-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 12px; padding: .9rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gn-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary-border, rgba(var(--landing-rgb), .4));
  box-shadow: 0 8px 22px rgba(var(--landing-rgb), .12);
}
.gn-flag-img { width: 42px; height: 30px; object-fit: cover; border-radius: 4px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
/* 名称+延迟行居左；字体用主题中文优先栈，数字等宽 */
.gn-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gn-card b {
  font-family: 'Noto Sans SC Variable', 'Source Han Sans SC', '思源黑体', 'PingFang SC', 'Inter Variable', sans-serif;
  font-size: .76rem; line-height: 1.2; font-weight: 700; letter-spacing: .3px; text-align: left;
  color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.ping-line {
  display: flex; align-items: center; gap: 4px; width: 100%;
  font-family: 'Noto Sans SC Variable', 'Source Han Sans SC', '思源黑体', 'PingFang SC', 'Inter Variable', sans-serif;
  font-size: .64rem; line-height: 1.2; font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.ping-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--border-color); overflow: hidden; }
.ping-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok, #22c55e); }
.ping-ms { color: var(--ok, #22c55e); font-weight: 700; }


.speed-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  margin-top: 5rem;   /* 80px：与路由图拉开，两个独立组件（路由图下边距为 0，缝由本侧单方供给） */
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 20px; padding: 2.5rem;
}
.speed-left h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-color); margin-bottom: .7rem; }
.speed-left p { color: var(--text-muted); font-size: .92rem; margin-bottom: 1.5rem; }
.speed-rows { display: flex; flex-direction: column; gap: 1rem; }
.speed-row .meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-muted); margin-bottom: .5rem; }
.speed-row .meta b { color: var(--text-color); font-variant-numeric: tabular-nums; }
.speed-row .bar { height: 10px; border-radius: 5px; background: var(--border-color); overflow: hidden; }
.speed-row .bar i {
  display: block; height: 100%; width: var(--w, 96%); border-radius: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 55%, #fff), var(--color-primary));
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
}
/* 测速条随 .speed-rows 进出场展开/收回：进视口从 0 长到 data-w（JS 写入 --w），离场收回，复进场重播 */
html.js .speed-rows:not(.in-view) .bar i { width: 0; }
@media (max-width: 900px) {
  .speed-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.8rem; }
}

/* ==================== 页面动效补充 ==================== */

/* ---- 环境光斑：固定层缓慢浮动，z-index -1 踩在画布底色之上、内容之下 ---- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-orbs i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(var(--landing-rgb), .13), transparent 70%);
  filter: blur(60px);
}
.bg-orbs i:nth-child(1) { width: 46vmax; height: 46vmax; top: -12vmax; left: -10vmax; animation: orbDrift 26s ease-in-out infinite alternate; }
.bg-orbs i:nth-child(2) { width: 38vmax; height: 38vmax; top: 30%; right: -14vmax; animation: orbDrift 34s ease-in-out infinite alternate-reverse; }
.bg-orbs i:nth-child(3) { width: 30vmax; height: 30vmax; bottom: -10vmax; left: 24%; animation: orbDrift 30s ease-in-out infinite alternate; }
@keyframes orbDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vmax, 4vmax) scale(1.15); } }

/* ---- 滚动条：覆盖 SenflareUI 中性灰样式，主题色滑块位置即滚动进度 ----
   与 SenflareUI 逐条同特异性对位覆写（本文件后加载必胜），明暗主题各一条 */
html { scrollbar-width: thin; scrollbar-color: var(--color-primary) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark)) padding-box;
}
::-webkit-scrollbar-thumb:hover { filter: brightness(1.15); }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-primary)) padding-box;
}

/* ---- 对比表行 hover 提亮 ---- */
.cmp-row:not(.cmp-head) { transition: background-color .25s ease; }
.cmp-row:not(.cmp-head):hover { background-color: rgba(var(--landing-rgb), .05); }

/* ---- 开场遮罩：光斑背景 + 品牌逐字打字（正中停位，感知约 1.2s 打完，圆点随即跟上）→ 圆点在图标自身中心点显形并匀速长大成品牌标（品牌名同步右移让位，1.6s 落位）→ 停 0.2s 后扫光，遮罩淡出（3.0s 消失），生长与位移匀速 ---- */
.page-veil {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1, #fff);
  animation: veilOut .25s linear 2.75s forwards;
  pointer-events: none;
}
.page-veil .logo-text {
  display: inline;   /* SenflareUI 默认隐藏 .logo-text（特异性 0,1,0），此处以更高特异性放开（flex 子项块状化，transform 生效） */
  font-size: 1.3rem; color: var(--text-1, #212121);
  animation: veilTextShift .2s linear 1.4s both;   /* 打字期间品牌名正中停位（左移半个「图标+间距」），圆点在图标中心生长时同速右移落位（对齐 logoIn 的 33.33% 生长起点） */
}
.page-veil .logo-text span:not(.brand-lite):not(.ch) { color: var(--color-primary); }   /* .ch 单字一律继承父级色（Senflare 深色 / Link 主色 / Lite 白字） */
/* 打字机：单字占位防跳版，扫过式显形（缓出滑入落位防拖影，60ms 步进连续左→右），initVeilTypewriter 拆分并加 .typed 门控 */
.page-veil .logo-text:not(.typed) { opacity: 0; }
.page-veil .logo-text .ch {
  display: inline-block; white-space: pre; opacity: 0; color: inherit;   /* 压过 .logo-text span 的主色，Lite 白字/Link 主色随父级 */
  animation: veilChar 1s cubic-bezier(.22, 1, .36, 1) var(--ch-delay, 0ms) both;
}
/* Lite 勋章整体当一个字母排在字流队尾，与单字同曲线同节奏滑入落位（蓝底+白字牌面保持完整） */
.page-veil .logo-text .brand-lite {
  opacity: 0;
  animation: veilChar 1s cubic-bezier(.22, 1, .36, 1) var(--el-delay, 0ms) both;
}
@keyframes veilChar {
  from { opacity: 0; transform: translateX(10em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
/* 品牌名整体位移：打字期间正中停位（左移半个「图标+间距」），与图标生长同时长同线性缓动（只动 transform，不碰 opacity，避免压掉打字机显形） */
@keyframes veilTextShift {
  from { transform: translateX(calc((28px + .6rem) / -2)); }
  to { transform: none; }
}
/* 图标长完（1.6s）停 0.2s，一道竖直光线匀速从左到右扫过品牌一次即熄灭，不跟随元素高度；0.9s ≈ 打字机 60ms/字节奏扫过整行宽度 */
.veil-brand {
  position: relative; line-height: 1;
  display: flex; align-items: center; gap: .6rem;   /* 容器 shrink-wrap 无剩余空间，无需 justify-content */
}
.veil-brand::after {
  content: ''; position: absolute; top: -30%; height: 160%; width: 2px; left: 0;
  background: linear-gradient(180deg, transparent, rgba(var(--landing-rgb), .85), transparent);
  filter: blur(1px); opacity: 0;
  animation: sweepLine .9s linear 1.8s both;
}
@keyframes sweepLine {
  0% { left: 0; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.veil-logo-box { position: relative; z-index: 1; }   /* 图标压在品牌名上层；圆点固定在图标自身中心点（槽位中点）显形长大，不随品牌名偏移 */
/* 图标圆点化生长：前 100ms 显形为一枚正圆小点（rx 48 = 96 视箱一半），随后匀速长大、圆角同步收成品牌圆角方（rx 22），闪电随整体长出 */
.veil-logo {
  opacity: 0;
  animation: logoIn .3s linear 1.3s both;
}
@keyframes logoIn {
  0% { opacity: 0; transform: scale(.08); }
  33.33% { opacity: 1; transform: scale(.08); }   /* 前 100ms 显形为圆点再生长 */
  100% { opacity: 1; transform: none; }   /* opacity/transform 终点必须显式声明，缺失会被补成底层值（opacity:0）导致途中淡出 */
}
.veil-logo rect {
  animation: shapeIn .3s linear 1.3s both;   /* rx 与放大同轨：全圆 → 品牌圆角，不支持 CSS rx 的浏览器静默回退为圆角方生长 */
}
@keyframes shapeIn {
  0%, 33.33% { rx: 48px; }
  100% { rx: 22px; }
}
@keyframes veilOut { to { opacity: 0; visibility: hidden; } }

/* ---- 无障碍：偏好减弱动效时关闭入场与漂浮动画 ---- */
@media (prefers-reduced-motion: reduce) {
  .bg-orbs { display: none; }
  .page-veil { display: none; }
  .hero-title, .hero-desc, .hero-actions, .hero-metrics { animation: none; opacity: 1; }
  html.js .reveal :is(.sec-head, .section-head, .bento-cell, .compat-marquee, .gn-card, .faq-item, .cmp-row, .proto-group, .speed-left, .speed-rows):not(.in-view) { animation: none; transition: none; opacity: 1; transform: none; }
  html.js .reveal :is(.sec-head, .section-head, .bento-cell, .compat-marquee, .gn-card, .faq-item, .cmp-row, .proto-group, .speed-left, .speed-rows).in-view { animation: none; }
  html.js .speed-rows .bar i { transition: none; }
}
