/* ==========================================================================
   Senflare Link 官网 - 主题橙风格
   版本: 3.0.1 | 更新: 2025-12-31
========================================================================== */

:root {
    --orange: #FF6901;
    --orange-light: #FF8534;
    --orange-dark: #E55D00;
    --orange-bg: rgba(255, 105, 1, 0.08);
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-800: #424242;
    --gray-900: #212121;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../assets/fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Alibaba PuHuiTi", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== 顶部导航栏 ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(255, 105, 1, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-text span {
    color: var(--orange);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--orange);
}

.nav .btn {
    margin-left: 1rem;
}

.nav .btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    border: none;
    box-shadow: 0 3px 12px rgba(255, 105, 1, 0.3);
}

.nav .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(255, 105, 1, 0.4);
    color: white;
}

.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 {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    box-shadow: 0 3px 12px rgba(255, 105, 1, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(255, 105, 1, 0.4);
    color: white;
}

.btn-lg {
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
}

.btn-white {
    background: white;
    color: var(--orange);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-1px);
}

.btn-ghost-white {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.25);
}



/* ==================== 首屏横幅 - 科技风格 ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f5f5f5 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* 科技网格 */
.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 105, 1, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 105, 1, 0.06) 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(255, 105, 1, 0.12) 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(229, 93, 0, 0.08) 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;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--orange-bg);
    color: var(--orange);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 81, 0, 0.15);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    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(--orange), var(--orange-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-right: 3px solid var(--orange);
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { border-color: var(--orange); }
    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-trust {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hero-trust strong {
    color: var(--orange);
    font-weight: 700;
}

.hero-trust-sep {
    color: var(--gray-300);
    margin: 0 0.5rem;
}

/* 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);
}

/* ==================== 通用区块样式 ==================== */
.section {
    padding: 5rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header-left {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-title span {
    color: var(--orange);
}

.section-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    max-width: 500px;
    line-height: 1.7;
}


/* ==================== 功能特性 ==================== */
.features-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.features-section::before,
.features-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 1, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.features-section::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.features-section::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 1, 0.1);
    border-color: var(--orange);
}

.feature-content {
    flex: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--orange-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s;
    order: 1;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    transform: scale(1.05);
}

.feature-card:hover .feature-icon span {
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.2rem;
}

.feature-desc {
    font-size: 0.72rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ==================== 术语解释 ==================== */
.glossary-section {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.glossary-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -120px;
    left: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 1, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.glossary-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
}

.glossary-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glossary-item h4::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--orange);
    border-radius: 2px;
}

.glossary-item p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ==================== 工作原理 ==================== */
.how-section {
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.how-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    top: -100px;
    right: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 1, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.how-layout {
    max-width: 600px;
}

.how-lead {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.how-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.how-step-num {
    width: 36px;
    height: 36px;
    background: var(--orange-bg);
    color: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.how-step-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.how-step-content p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ==================== 网络检测 ==================== */
.network-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.network-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    top: -100px;
    left: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 1, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.network-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
    text-align: center;
}

.network-card:hover {
    box-shadow: 0 10px 30px rgba(255, 105, 1, 0.1);
    transform: translateY(-3px);
    border-color: var(--orange);
}

.network-title {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-bottom: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-ip {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.network-loc {
    font-size: 0.75rem;
    color: var(--gray-600);
}


/* ==================== 为什么选择我们 ==================== */
.why-us-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 105, 1, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.why-us-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    transition: all 0.3s;
}

.why-us-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 105, 1, 0.1);
}

.why-us-num {
    display: inline;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.5rem;
    line-height: 1;
}

.why-us-card h4 {
    display: inline;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0;
}

.why-us-card-header {
    margin-bottom: 0.75rem;
}

.why-us-card p {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .why-us-card {
        padding: 1.25rem 1rem;
    }
    
    .why-us-num {
        font-size: 1rem;
    }
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 2.5rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
}

.footer-brand {
    text-align: left;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-logo-text span {
    color: var(--orange);
}

.footer-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    width: 100%;
    text-align: center;
}

/* ==================== 动画效果 ==================== */
/* 滚动进入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 延迟动画 */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Hero 入场动画 */
.hero-content {
    animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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;
}

/* 背景形状浮动动画 */
.hero-shape-1 {
    animation: float1 8s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -15px);
    }
}

/* 脉冲动画 */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-primary:hover {
    animation: pulse 0.6s ease;
}

/* 数据流动画 */
.tech-flow-arrow {
    animation: flowArrow 1.5s ease-in-out infinite;
}

@keyframes flowArrow {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

/* 图标旋转动画 */
.feature-card:hover .feature-icon {
    animation: iconPop 0.4s ease;
}

@keyframes iconPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.05);
    }
}

/* 网络检测卡片加载动画 */
.network-card .network-ip {
    transition: color 0.3s ease;
}

@keyframes ipPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.network-ip.loading {
    animation: ipPulse 1s ease-in-out infinite;
}

/* 计数器动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 渐变背景动画 */
.tech-section::before {
    animation: gradientMove 15s ease-in-out infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 30px);
    }
}

/* ==================== 提示消息 ==================== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.3s ease;
}

.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@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);
    }
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 105, 1, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 1, 0.45);
}

/* ==================== 延迟测试卡片 ==================== */
:root {
    --latency-49: #22c55e;
    --latency-149: #84cc16;
    --latency-299: #faab41;
    --latency-999: #f97316;
    --latency-1000: #ef4444;
    --latency-fail: #ef4444;
}

.latency-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.latency-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.latency-card:hover {
    box-shadow: 0 8px 24px rgba(255, 105, 1, 0.1);
    transform: translateY(-2px);
    border-color: var(--orange);
}

.latency-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.latency-card-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.latency-card-icon svg {
    width: 100%;
    height: 100%;
}

.latency-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
}

.latency-value {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--latency-149);
}

.latency-card-region {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.latency-card-region-domestic {
    background: rgba(255, 105, 1, 0.1);
    color: var(--orange);
}

.latency-card-region-international {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.latency-card-content {
    margin-top: 0.5rem;
}

.latency-bars {
    display: flex;
    gap: 3px;
    height: 6px;
    align-items: flex-end;
}

.latency-bar {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    background: var(--gray-200);
    transition: background-color 0.3s;
}

.latency-bar.loading {
    animation: latencyPulse 1s ease-in-out infinite;
    background: rgba(250, 171, 65, 0.4);
}

@keyframes latencyPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@media (max-width: 900px) {
    .latency-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .latency-card {
        padding: 0.85rem;
    }

    .latency-card-title {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .latency-card-icon {
        width: 18px;
        height: 18px;
    }

    .latency-card-name {
        font-size: 0.8rem;
    }

    .latency-value {
        font-size: 0.7rem;
    }

    .latency-card-region {
        font-size: 0.6rem;
        padding: 1px 5px;
    }
}

@media (max-width: 600px) {
    .latency-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .latency-card {
        padding: 0.65rem;
        border-radius: 8px;
    }

    .latency-card-title {
        gap: 0.35rem;
        margin-bottom: 0.4rem;
    }

    .latency-card-icon {
        width: 16px;
        height: 16px;
    }

    .latency-card-name {
        font-size: 0.72rem;
    }

    .latency-value {
        font-size: 0.65rem;
    }

    .latency-card-region {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .latency-card-content {
        margin-top: 0.35rem;
    }

    .latency-bars {
        height: 4px;
        gap: 2px;
    }
}

@media (max-width: 400px) {
    .latency-cards {
        gap: 0.5rem;
    }

    .latency-card {
        padding: 0.5rem;
    }

    .latency-card-icon {
        width: 14px;
        height: 14px;
    }

    .latency-card-name {
        font-size: 0.65rem;
    }

    .latency-value {
        font-size: 0.6rem;
    }

    .latency-card-region {
        font-size: 0.5rem;
    }
}

/* ==================== 移动端导航 ==================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 遮罩层 */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}

/* ==================== 响应式适配 ==================== */
@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;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .glossary-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .network-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 3.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .nav-toggle {
        display: flex;
        padding: 6px;
    }

    .nav-toggle span {
        width: 18px;
        height: 1.5px;
    }

    .nav {
        position: fixed;
        top: 54px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }

    .nav.open {
        max-height: 360px;
    }

    .nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.9rem 1.25rem;
        border-bottom: 1px solid var(--gray-200);
        font-size: 0.85rem;
        text-align: left;
        margin: 0;
        width: 100%;
    }

    .nav a:last-of-type:not(.nav-btn-hide) {
        border-bottom: none;
    }

    .nav .nav-btn-hide {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.35;
        margin-top: 2rem;
    }

    .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;
    }

    .hero-metrics-sep {
        display: none;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem 0.75rem;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 1rem 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav {
        top: 50px;
    }

    .nav a {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .hero {
        padding: 5.5rem 1rem 2.5rem;
        min-height: 65vh;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-top: 1.75rem;
        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-title {
        font-size: 1.35rem;
    }

    .section-desc {
        font-size: 0.85rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .feature-card {
        padding: 0.85rem;
    }

    .network-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .network-card {
        padding: 1rem;
    }

    .how-layout {
        max-width: 100%;
    }

    .how-lead {
        font-size: 0.85rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem 0.6rem;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-sep {
        display: inline;
    }
}