/* Full Screen Scrolling */

/* Section-specific Backgrounds and Effects - V2 (Enhanced Tech Feel) */

/* Home Section - Digital Constellation */
#home {
    background-color: #000428;
    background-image: linear-gradient(135deg, #000428 0%, #004e92 100%);
    position: relative;
    overflow: hidden;
}

#home::before,
#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1.5px);
    background-size: 50px 50px;
    animation: stars-animation 20s linear infinite;
}

#home::after {
    background-size: 100px 100px;
    animation: stars-animation 40s linear infinite reverse;
}

@keyframes stars-animation {
    from {
        transform: translate(0, 0);
    }

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

/* Solutions Section - Hexagon Grid */
#solutions {
    background-color: #1a1a1a;
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.05) 1px, transparent 1px),
        linear-gradient(60deg, rgba(0, 191, 255, 0.05) 1px, transparent 1px),
        linear-gradient(120deg, rgba(0, 191, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 69px;
    position: relative;
}

/* Tech Section - Data Stream */
#tech {
    background-color: #0a0a0a;
    position: relative;
    overflow: hidden;
}

#tech::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: repeating-linear-gradient(45deg,
        transparent,
        transparent 10px,
        rgba(0, 255, 255, 0.05) 10px,
        rgba(0, 255, 255, 0.05) 20px);
    animation: data-stream-animation 10s linear infinite;
}

@keyframes data-stream-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Services & About Section - Noise Texture */
#services,
#about {
    position: relative;
    background-color: #111;
}

#services::after,
#about::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="10" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
    opacity: 0.03;
    pointer-events: none;
}


/* 统一卡片高度 */
#solutions .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

#solutions .col-md-6 {
    display: flex;
    flex-direction: column;
}

/* 美化后的解决方案卡片样式 */
.solution-card {
    height: 100%;
    /* 确保卡片填满父容器高度 */
    padding: 30px;
    /* 增加内边距 */
    border-radius: 12px;
    /* 圆角 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* 更柔和、半透明的边框 */
    background: rgba(30, 30, 30, 0.5);
    /* 半透明背景 */
    backdrop-filter: blur(10px);
    /* 背景模糊效果 */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 更流畅的缓动动画 */
    overflow: hidden;
    /* 隐藏溢出内容，确保圆角效果 */
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* 基础阴影 */
}

.solution-card .card-icon {
    font-size: 3rem;
    /* 增大图标大小 */
    margin-bottom: 20px;
    /* 增加图标与标题间距 */
    color: #64B6FF;
    /* 图标颜色 */
}

.solution-card h4 {
    margin-bottom: 10px;
    /* 调整标题与描述间距 */
    font-weight: 600;
}

.solution-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.solution-card:hover {
    border-color: rgba(100, 182, 255, 0.5);
    /* 悬停时半透明的蓝色边框 */
    transform: translateY(-15px);
    /* 更大的上浮距离 */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(100, 182, 255, 0.2);
    /* 叠加发光阴影 */
    background: rgba(40, 40, 40, 0.6);
    /* 悬停时略微加深背景 */
}

/* 图标悬停特效 */
.solution-card .card-icon i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.solution-card:hover .card-icon i {
    transform: scale(1.2) rotate(15deg);
    color: #64FFDA;
    /* 悬停时图标变为高亮色 */
}

/* 技术优势卡片样式 */
.tech-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
}

.tech-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover-bg);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--accent-glow);
}

.tech-card i {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.tech-card:hover i {
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

/* 允许内容区域文本选择 */
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
span,
div[class*="content"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.section {
    min-height: 100vh;
    /* 确保每个section占据整个视口高度 */
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.section>.container {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* 导航栏固定在顶部 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    /* 确保导航栏在最上层 */
}

/* 内容区域添加顶部内边距，防止被导航栏遮挡 */
body {
    margin: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
    min-height: 100vh;
}

/* 第一屏特殊处理 */
#hero {
    scroll-margin-top: 0;
    margin-top: 0;
    padding-top: 0;
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 确保其他section正确偏移 */
.section:not(#hero) {
    scroll-margin-top: 76px;
    padding-top: 76px;
}

:root {
    --primary-color: #0F172A;
    --secondary-color: #1E293B;
    --accent-color: #00E6C3;
    --accent-glow: 0 0 15px rgba(0, 230, 195, 0.6);
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --gradient-1: #0F172A;
    --gradient-2: #1E293B;
    --gradient-3: #334155;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-hover-bg: rgba(30, 41, 59, 0.7);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(ellipse at bottom, var(--gradient-1) 0%, var(--gradient-2) 70%, var(--gradient-3) 100%);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 230, 195, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Grid Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.navbar {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: bold;
    color: var(--accent-color) !important;
    font-size: 1.4rem;
    padding: 0.8rem 0;
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}



.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* 确保内容在导航栏下方 */
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(100, 255, 218, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 70% 30%, rgba(100, 100, 255, 0.1) 0%, transparent 30%);
    z-index: -1;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {

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

    25% {
        transform: translate(10px, 10px) rotate(1deg);
    }

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

    75% {
        transform: translate(-10px, 10px) rotate(-1deg);
    }
}

.hero h1 {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--accent-color), #64B6FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #64FFDA, #64B6FF);
    transform: scaleX(0);
    transform-origin: right;
    animation: revealLine 1.5s ease forwards;
    animation-delay: 0.5s;
}

@keyframes revealLine {
    from {
        transform: scaleX(0);
        transform-origin: right;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background: rgba(17, 34, 64, 0.2);
}

.section-title {
    color: var(--accent-color);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: shine 3s infinite;
}

.section-title::before {
    width: 100%;
    opacity: 0.3;
}

.section-title::after {
    width: 40%;
    max-width: 200px;
    height: 1px;
    bottom: -5px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.service-card,
.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 230, 195, 0.2);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-card::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    background: var(--card-hover-bg);
    box-shadow: 0 15px 35px -10px rgba(0, 230, 195, 0.3);
}

.service-card:hover::before,
.feature-card:hover::before {
    transform: translateY(0);
}

/* "关于我们" section 样式 */
#about {
    position: relative;
    /* 为页脚的绝对定位提供参考 */
    min-height: 100vh;
    /* 确保section至少占满一屏 */
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
}

#about>.container {
    text-align: center;
    /* 确保容器内文本居中 */
    padding-bottom: 100px;
    /* 为页脚预留空间，具体高度可根据页脚内容调整 */
}

/* 确保row内容也居中 */
#about .row {
    justify-content: center;
}

/* 页脚样式 */
#about footer {
    position: absolute;
    /* 绝对定位 */
    bottom: 0;
    /* 定位在底部 */
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(10, 14, 23, 0.5);
    /* 可选：为页脚添加背景色 */
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    /* 可选：为页脚添加顶部边框 */
}

.service-card .icon,
.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00E6C3, #6366F1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.service-card:hover .icon,
.feature-card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

.service-icon,
.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.progress-bar {
    background-color: var(--accent-color);
}

.contact-form .form-control {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--text-color);
}

.contact-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(100, 255, 218, 0.25);
}

footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(0, 230, 195, 0.2);
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: var(--text-color);
}

.theme-toggle:hover {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #52e0c4;
    border-color: #52e0c4;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 230, 195, 0.1);
    border: 1px solid rgba(0, 230, 195, 0.1);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.1);
    background: rgba(0, 230, 195, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 230, 195, 0.4);
}

/* 联系我们部分样式 */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 230, 195, 0.1) 0%, transparent 40%);
    z-index: -1;
    opacity: 0.6;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(0, 230, 195, 0.15);
    border-radius: 16px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

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

.contact-method:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-method:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-method:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-method:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 230, 195, 0.15), transparent);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.contact-method::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent,
        rgba(0, 230, 195, 0.1),
        transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    z-index: -1;
    opacity: 0;
}

.contact-method:hover::after {
    animation: shine 1.5s infinite;
    opacity: 1;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-50%) translateY(-50%);
    }

    100% {
        transform: rotate(45deg) translateX(50%) translateY(50%);
    }
}

.contact-method:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px -10px rgba(0, 230, 195, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.contact-method:hover .icon {
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 15px rgba(0, 230, 195, 0.5);
}

.contact-method .content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-method:hover .content {
    transform: scale(1.03);
}

.contact-method h5 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.contact-method h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.contact-method:hover h5::after {
    width: 100%;
}

.contact-method:hover::before {
    transform: translateY(0);
}

.contact-method .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 230, 195, 0.3);
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(0, 230, 195, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 230, 195, 0.7);
    }

    100% {
        text-shadow: 0 0 5px rgba(0, 230, 195, 0.3);
    }
}

.contact-method:hover .icon {
    transform: scale(1.2) rotate(5deg);
    animation: glow 2s infinite;
}

.contact-method .content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-method h5 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-method p {
    color: var(--text-muted);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.contact-method:hover p {
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title::after {
        max-width: 300px;
    }
}