/* =========================================
   Teyvat 3.0 UI - style.css
   高级动画优化版
   ========================================= */

:root {
    /* 核心配色升级：霓虹蓝青色系 */
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --accent-color: #ff5858;
    
    /* 背景与界面颜色 */
    --dark-bg: #0f1014;
    --medium-bg: #1a1b20;
    --light-text: #f0f0f5;
    --medium-text: #a0a0a5;
    
    /* 视觉效果变量 */
    --card-bg: rgba(30, 32, 38, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --neon-glow: 0 0 10px rgba(0, 242, 254, 0.5);
    --text-glow: 0 0 15px rgba(79, 172, 254, 0.3);
    
    /* 基础设置 */
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --box-shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.2);
    --box-shadow-lifted: 0 15px 35px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --accent-glow: 0 0 15px rgba(80, 227, 194, 0.3);
    --rgb-primary: 79, 172, 254;
    --rgb-secondary: 0, 242, 254;
}

/* ==========================================
   高级动画效果
   ========================================== */

/* 粒子背景容器 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* 鼠标跟随光标效果 - 优化后：更精致的微光 */
.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    /* 多重径向渐变：中心明亮，边缘柔和 */
    background: radial-gradient(circle at center, 
                rgba(79, 172, 254, 0.3) 0%, 
                rgba(79, 172, 254, 0.1) 30%, 
                transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
    /* 增加混合模式，让光效更自然 */
    mix-blend-mode: screen;
    filter: blur(5px);
}

/* 光晕中心亮点 */
.cursor-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px 2px var(--secondary-color);
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    transition: width 0.1s ease-out;
}

/* 渐变动画背景 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 波浪动画 */
@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.8);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* 悬浮动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 脉冲发光 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(79, 172, 254, 0.5),
                    0 0 10px rgba(79, 172, 254, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 172, 254, 0.8),
                    0 0 30px rgba(79, 172, 254, 0.5),
                    0 0 40px rgba(0, 242, 254, 0.3);
    }
}

/* 旋转光圈 */
@keyframes rotate-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 闪烁效果 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 打字机光标闪烁 */
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 为按钮添加相对定位以支持波纹效果 */
.go-btn, .btn-primary-gradient {
    position: relative;
    overflow: hidden;
}

/* 闪光扫过效果 */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 添加微妙的呼吸灯效果到重要元素 */
@keyframes breathe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 为特定元素添加微光效果 */
.sparkle {
    position: relative;
    overflow: hidden;
}

.sparkle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg);
    /* 动态渐变背景 */
    background: linear-gradient(135deg, 
        #0f1014 0%, 
        #1a1428 25%, 
        #0f1014 50%, 
        #14161f 75%, 
        #0f1014 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--medium-text);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* 背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 242, 254, 0.03) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg); 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color); 
}

body.home-page {
    padding-top: 0;
}

body.inner-page {
    padding-top: 76px;
}

@media (max-width: 991.98px) {
    body.inner-page {
        padding-top: 68px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--light-text);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    transition: var(--transition-fast);
}
a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.heading-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
.heading-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    border-radius: 2px;
    box-shadow: var(--neon-glow);
    animation: gradientShift 3s ease infinite, expandLine 2s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}
.heading-section.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}
.heading-section.text-right h2::after {
    left: auto;
    right: 0;
}
.heading-section .subheading {
    font-size: 0.9rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
}

/* 动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    transition-delay: var(--delay, 0s);
}
.fade-in {
    opacity: 0;
    transition: opacity 1s var(--transition-smooth);
    transition-delay: var(--delay, 0s);
}
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
[data-reveal-delay], [style*="--delay"] {
    transition-delay: var(--delay, 0s) !important;
}

/* 增强加载器 */
#ftco-loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1428 50%, var(--dark-bg) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}
#ftco-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
#ftco-loader::after {
    content: '提瓦特';
    color: var(--light-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease infinite;
}
.circular {
    animation: rotate 2s linear infinite;
    height: 60px;
    width: 60px;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
}
.path {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite, pulse-stroke 2s ease-in-out infinite;
    stroke-linecap: round;
    stroke: var(--primary-color);
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
    100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}
@keyframes pulse-stroke {
    0%, 100% { stroke: var(--primary-color); }
    50% { stroke: var(--secondary-color); }
}

/* 导航栏 - 毛玻璃升级 */
.ftco-navbar-light {
    background: transparent !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1030;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ftco-navbar-light .navbar-brand img {
    transition: transform var(--transition-smooth);
    height: 38px;
    width: auto;
}
.ftco-navbar-light .navbar-brand:hover img {
    transform: scale(1.1) rotate(-5deg);
}

.ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    font-size: 0.95rem;
    padding: 10px 15px;
    color: var(--light-text);
    font-weight: 500;
    position: relative;
    opacity: 0.8;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}
/* 添加下划线动画 */
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
    opacity: 1;
    color: var(--secondary-color);
    text-shadow: var(--neon-glow);
}
.ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover::after,
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link::after {
    width: 80%;
}
.ftco-navbar-light .navbar-nav > .nav-item.active > .nav-link {
    opacity: 1;
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: var(--neon-glow);
}

.ftco-navbar-light .navbar-toggler {
    border: none;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .1em;
}
.ftco-navbar-light .navbar-toggler:focus {
    outline: none;
}
.ftco-navbar-light .navbar-toggler .oi {
   font-size: 24px;
}

/* 导航栏滚动状态 */
.ftco-navbar-light.scrolled, .ftco-navbar-light.nav-fixed-top {
    position: fixed;
    background: rgba(15, 16, 20, 0.85) !important;
    padding: 10px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .ftco-navbar-light {
        background: rgba(15, 16, 20, 0.95) !important;
        position: fixed;
        padding: 10px 0;
        backdrop-filter: blur(10px);
    }
    .ftco-navbar-light .navbar-collapse {
        background: rgba(30, 32, 38, 0.9);
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--border-radius);
        border: var(--glass-border);
    }
    .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .ftco-navbar-light .navbar-nav > .nav-item:last-child > .nav-link {
        border-bottom: none;
    }
}

/* 按钮升级 - 霓虹流光 */
.go-btn, .btn-primary-gradient {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse-glow 3s ease-in-out infinite;
}
.go-btn::before, .btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
/* 闪光效果 */
.go-btn::after, .btn-primary-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}
.go-btn:hover::before, .btn-primary-gradient:hover::before {
    opacity: 1;
}
.go-btn:hover, .btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.8),
                0 0 60px rgba(79, 172, 254, 0.4);
    color: #000;
    background-position: 100% 100%;
}
.go-btn:active, .btn-primary-gradient:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary-outline {
    display: inline-block;
    padding: 10px 25px;
    color: var(--secondary-color) !important;
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.btn-secondary-outline:hover {
    background-color: var(--secondary-color);
    color: #000 !important;
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

/* Hero 区域 */
.hero-wrap {
    height: 100vh;
    min-height: 750px;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-wrap::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 16, 20, 0.3), rgba(15, 16, 20, 0.95));
    z-index: 1;
    animation: pulse-overlay 8s ease-in-out infinite;
}

@keyframes pulse-overlay {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.hero-wrap .container {
    position: relative;
    z-index: 2;
}

/* Hero装饰光效 */
.hero-wrap::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
    filter: blur(60px);
}

.hero-text {
    color: var(--light-text);
    max-width: 700px;
}
.hero-text .subheading {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.hero-text h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    /* 流动渐变文字 */
    background: linear-gradient(45deg, #fff, var(--primary-color), var(--secondary-color), #fff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards,
               gradientShift 6s ease infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}
.hero-text h1 span {
    background: -webkit-linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--medium-text);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

/* About Section - 质感提升 */
.about-section {
    background-color: transparent;
    position: relative;
    padding: 120px 0;
}
.about-section .img {
    min-height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lifted);
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    /* 关键修复：只过渡透明度，不要过渡 all 或 transform */
    transition: opacity 1s var(--transition-smooth), box-shadow 0.5s ease;
    transition-delay: var(--delay, 0s);
    border: var(--glass-border);
    overflow: hidden;
    /* 开启渲染优化 */
    will-change: transform;
}
/* 图片悬停光晕效果 */
.about-section .img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.about-section .img:hover::before {
    opacity: 1;
    animation: float 3s ease-in-out infinite;
}
.about-section .img:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(79, 172, 254, 0.3);
}

.about-content .heading-section {
    margin-bottom: 40px;
}

/* Services List Items */
.services-wrap {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s var(--transition-smooth);
    transition-delay: var(--delay, 0s);
}
.services-wrap .icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
    box-shadow: inset 0 0 20px rgba(79, 172, 254, 0.2);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}
/* 图标旋转光圈 */
.services-wrap .icon::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 180deg,
        var(--primary-color) 180deg 360deg
    );
    border-radius: 50%;
    animation: rotate-ring 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.services-wrap:hover .icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: rotate(360deg) scale(1.15);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.8),
                0 0 60px rgba(79, 172, 254, 0.4);
    border-color: transparent;
}
.services-wrap:hover .icon::before {
    opacity: 0.5;
}
.services-wrap .icon span {
    font-size: 24px;
}
.services-wrap .media-body.order-md-first {
    padding-right: 25px;
    padding-left: 0;
    text-align: right;
}
.services-wrap .icon + .media-body.order-md-first{
    margin-right: 0;
    margin-left: 25px;
}

.services-wrap h3.heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light-text);
}
.services-wrap p {
    font-size: 0.95rem;
    color: var(--medium-text);
    margin-bottom: 0;
}

.services-wrap.reveal-visible {
    opacity: 1;
    transform: translateX(0);
}
.about-section .img.reveal-visible {
    opacity: 1;
    transform: scale(1);
}

/* 图片浮动动画 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.about-content img.img-fluid {
    margin-top: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-subtle);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.5s ease;
    border: var(--glass-border);
    position: relative;
}
.about-content img.img-fluid.reveal-visible {
    opacity: 1;
    animation: float 6s ease-in-out infinite;
}
.about-content img.img-fluid:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(79, 172, 254, 0.3);
}

/* Services Grid Section */
.services-section {
    padding: 100px 0;
    background-color: #0b0c10; /* 深色背景区分 */
}
.services-section .heading-section {
    text-align: center;
    margin-bottom: 60px;
}

.block-6 {
    background: var(--glass-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: all 0.5s var(--transition-smooth);
    transition-delay: var(--delay, 0s);
    box-shadow: var(--box-shadow-subtle);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.block-6:hover {
    transform: translateY(-15px) rotateX(0deg) scale(1.02);
    background: rgba(255,255,255,0.1);
    border-color: rgba(79, 172, 254, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4),
                0 0 20px rgba(79, 172, 254, 0.3);
}
/* 为卡片添加发光边框动画 */
.block-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--primary-color));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 4s ease infinite;
}
.block-6:hover::before {
    opacity: 1;
}
.block-6 .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px auto;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-smooth);
}
.block-6:hover .icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--neon-glow);
}
.block-6 .icon span {
    font-size: 30px;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}
.block-6:hover .icon span {
    color: #000;
}

.block-6 h3.heading {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-text);
}
.block-6 p {
    font-size: 0.9rem;
    color: var(--medium-text);
    flex-grow: 1;
}
.block-6.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Counter Section */
.counter-section {
    padding: 120px 0;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    position: relative;
    color: var(--light-text);
    text-align: center;
}
.counter-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 16, 20, 0.9);
    z-index: 1;
}
.counter-section .container {
    position: relative;
    z-index: 2;
}

.block-18 {
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
    transition-delay: var(--delay, 0s);
}
.block-18.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.block-18 .text .number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 15px rgba(0, 242, 254, 0.3));
    transition: transform 0.3s ease;
}
.block-18:hover .text .number {
    transform: scale(1.1);
}
.block-18 .text span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Inner Pages Hero */
.hero-wrap-2 {
    height: 450px;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    overflow: hidden;
}
.hero-wrap-2 .overlay {
    /* 可以在html中添加overlay div或者直接这里用伪元素 */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15,16,20,0.2), var(--dark-bg));
    z-index: 1;
}
.hero-wrap-2 .container {
    position: relative;
    z-index: 2;
}
.hero-wrap-2 .text-bread h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.hero-wrap-2 .text-bread .breadcrumbs {
    font-size: 1.1rem;
    color: var(--secondary-color);
    opacity: 0; transform: translateY(20px);
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Main Content Section */
.main-content-section h2 {
    margin-top: 0 !important;
    font-size: 2.2rem;
}
.main-content-section p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    color: var(--medium-text);
}
.main-content-section p a {
    font-weight: 500;
    border-bottom: 1px dashed rgba(var(--rgb-primary), 0.5);
    transition: border-bottom-color var(--transition-fast);
}
.main-content-section p a:hover {
    color: var(--secondary-color);
    border-bottom-color: rgba(var(--rgb-secondary), 0.8);
}

/* Server Info Box (Start.html) */
.server-info-box {
    background: rgba(20, 20, 25, 0.9);
    padding: 40px 35px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    border: 1px solid rgba(80, 227, 194, 0.3);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.server-info-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    animation: shimmer 3s infinite;
}
.server-info-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.server-info-box:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--box-shadow-lifted), var(--accent-glow);
    border-color: rgba(79, 172, 254, 0.6);
}
.server-info-box:hover::after {
    width: 300px;
    height: 300px;
}

.server-info-box h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.server-address {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: #0a0a0c;
    padding: 20px 25px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px dashed rgba(80, 227, 194, 0.4);
    user-select: all;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
/* 复制提示 */
.server-address::before {
    content: '点击复制';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(79, 172, 254, 0.9);
    color: #000;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.7rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}
.server-address:hover::before {
    top: -35px;
    opacity: 1;
}
/* 发光边框动画 */
.server-address::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(79, 172, 254, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}
.server-address:hover {
    background: rgba(80, 227, 194, 0.1);
    border-color: var(--secondary-color);
    border-style: solid;
    text-shadow: 0 0 10px rgba(80, 227, 194, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.5),
                inset 0 0 20px rgba(79, 172, 254, 0.1);
}
.server-address:hover::after {
    left: 100%;
}
.server-address:active {
    transform: scale(0.98);
}

.download-client-link {
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Footer */
.ftco-footer {
    background-color: #050507;
    padding: 80px 0 40px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.ftco-footer .ftco-footer-widget h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--light-text);
    letter-spacing: 0.5px;
}
.ftco-footer .footer-logo img {
    height: 45px;
    margin-bottom: 20px;
    opacity: 0.8;
}
.ftco-footer p {
    margin-bottom: 15px;
}
.ftco-footer p small {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.3);
}

.ftco-footer ul.list-unstyled li {
    margin-bottom: 10px;
}
.ftco-footer ul.list-unstyled li a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}
.ftco-footer ul.list-unstyled li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.ftco-footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    margin-top: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 波浪装饰元素 */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-decoration svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-decoration .shape-fill {
    fill: var(--dark-bg);
}

/* 响应式适配 */
@media (max-width: 991.98px) {
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 1.1rem; }
    .about-section .img { margin-bottom: 40px; min-height: 300px; }
    .about-content .heading-section { text-align: center; }
    .about-content .heading-section h2::after { left: 50%; right: auto; transform: translateX(-50%); }
    .services-wrap { justify-content: center; text-align: center; flex-direction: column; align-items: center;}
    .services-wrap .icon { margin-right: 0; margin-bottom: 20px; }
    .services-wrap .media-body.order-md-first { padding-right: 0; text-align: center;}
    .services-wrap .icon + .media-body.order-md-first { margin-left: 0; }
    .about-content img.img-fluid { margin-left: auto; margin-right: auto; display: block;}
    .counter-section .heading-section { text-align: center; }
    .ftco-footer { text-align: center; }
    .ftco-footer .ftco-footer-widget { margin-bottom: 40px; }
    .ftco-footer ul.list-unstyled { display: inline-block; }
    
    /* 移动端禁用某些动画以提升性能 */
    .cursor-glow { display: none; }
    body::before { animation: none; }
    .hero-wrap::before { display: none; }
}

@media (max-width: 767.98px) {
    .section-padding { padding: 60px 0; }
    .hero-wrap { min-height: 600px; }
    .hero-text h1 { font-size: 2.5rem; }
    .heading-section h2 { font-size: 2rem; }
    .block-18 .text .number { font-size: 2.5rem; }
    .counter-section { padding: 80px 0; background-attachment: scroll; }
    .go-btn { padding: 12px 30px; }
    .hero-wrap-2 { height: 350px; padding-bottom: 40px; }
    .hero-wrap-2 .text-bread h1 { font-size: 2rem; }
    .hero-wrap-2 .text-bread .breadcrumbs { font-size: 0.9rem; }
    .main-content-section h2 { font-size: 1.8rem; }
    .main-content-section p { font-size: 1rem; }
    .server-address { font-size: 1.2rem; padding: 15px; }
    
    /* 移动端简化动画 */
    .block-6:hover { transform: translateY(-5px) scale(1.01); }
    .services-wrap .icon { animation: none; }
    .go-btn::after, .btn-primary-gradient::after { display: none; }
}

/* 减弱动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}