/* 统一头部和尾部样式 - 维普股份 */

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

/* 移除表单元素的默认焦点样式 */
input:focus, textarea:focus, select:focus, button:focus {
    outline: none;
    box-shadow: none;
}

/* 移除表单验证失败的默认红色边框 */
input:invalid, textarea:invalid, select:invalid {
    box-shadow: none;
    border-color: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========== 动画关键帧定义 ========== */

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* 渐变流光动画 */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

/* 旋转动画 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 缩放动画 */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 脉冲光环动画 */
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 波浪动画 */
@keyframes wave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 打字机光标动画 */
@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #60a5fa; }
}

/* ========== 统一头部样式 ========== */

/* 顶部信息栏 */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    background-size: 400% 400%;
    animation: shimmer 8s ease infinite;
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.header-top-left,
.header-top-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-top a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.header-top a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #c4b5fd);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top a:hover {
    color: #60a5fa;
    text-decoration: none;
}

.header-top a:hover::after {
    width: 100%;
}

/* 导航栏 */
.nav-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    margin-top: 44px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bar.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    padding: 8px 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    transition: padding 0.3s ease;
}

.nav-bar.scrolled .nav-content {
    padding: 10px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.logo:hover::before {
    width: 200px;
    height: 100px;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-img {
    width: 190px;
    height: 52px;
    object-fit: contain;
    transition: width 0.3s ease;
}

.nav-bar.scrolled .logo-img {
    width: 170px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 2px;
    transition: font-size 0.3s ease;
}

.nav-bar.scrolled .logo-text {
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: #374151;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 50%;
}

.nav-links a:hover::after {
    left: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1e3a5f;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mobile-menu-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: rotate(90deg);
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #3b82f6 100%);
    background-size: 200% 200%;
    animation: shimmer 10s ease infinite;
    padding: 150px 30px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.2) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

/* 添加动态星星效果 */
.page-header .stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-header .star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.page-header h1 {
    font-size: 46px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out;
}

.page-header p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 0.5s both;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
    transform: translateX(5px);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

/* ========== 统一尾部样式 ========== */

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 80px 30px 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}



/* 尾部背景装饰 */
.footer::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding-bottom: 30px;
    position: relative;
    z-index: 1;
    border-bottom: none;
}

.footer-brand {
    grid-column: span 1;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 24px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 260px;
    animation: fadeIn 0.6s ease-out;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.45);
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a span {
    position: relative;
    z-index: 1;
}

.footer-section {
    animation: fadeIn 0.6s ease-out backwards;
}

.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }
.footer-section:nth-child(4) { animation-delay: 0.3s; }

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    position: relative;
    padding-left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
    animation: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 14px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.footer-section a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
    padding-left: 12px;
    transform: translateX(5px);
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.footer-contact p:hover {
    color: #93c5fd;
}

.footer-contact p:first-of-type {
    margin-top: 24px;
}

/* 底部版权栏 */
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom > span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #60a5fa;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* ========== 全局动画效果类 ========== */

/* 淡入动画类 */
.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fadeIn-delay-1 { animation-delay: 0.2s; }
.animate-fadeIn-delay-2 { animation-delay: 0.4s; }
.animate-fadeIn-delay-3 { animation-delay: 0.6s; }

/* 缩放动画类 */
.animate-scaleIn {
    animation: scaleIn 0.6s ease-out forwards;
}

/* 浮动动画类 */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* 脉冲动画类 */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 旋转动画类 */
.animate-rotate {
    animation: rotate 10s linear infinite;
}

/* 滑入动画类 */
.animate-slideUp {
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slideLeft {
    animation: slideLeft 0.6s ease-out forwards;
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slideRight {
    animation: slideRight 0.6s ease-out forwards;
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 弹跳动画类 */
.animate-bounce {
    animation: bounce 0.6s ease-out forwards;
}

@keyframes bounce {
    0% { opacity: 0; transform: translateY(30px); }
    60% { transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 悬停上浮效果 */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-hover:hover::before {
    left: 150%;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.18);
}

/* 按钮悬停效果 */
.btn-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-hover:hover::before {
    width: 300px;
    height: 300px;
}

/* ========== 响应式设计 ========== */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* 头部响应式 */
    .header-top {
        flex-direction: column;
        gap: 10px;
        padding: 8px 20px;
    }
    
    .header-top-left,
    .header-top-right {
        gap: 16px;
    }
    
    .nav-bar {
        margin-top: 70px;
    }
    
    .nav-content {
        padding: 12px 20px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
        flex-direction: column;
        gap: 4px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* 页面标题响应式 */
    .page-header {
        padding: 140px 20px 70px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    /* 尾部响应式 */
    .footer {
        padding: 60px 20px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-section h3 {
        padding-left: 0;
        justify-content: center;
    }
    
    .footer-section h3::before {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 110px;
    }
    
    .logo-img {
        width: 150px;
        height: 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
}

/* ========== 滚动条美化 ========== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}

/* ========== 选择文本样式 ========== */

::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #1e3a5f;
}

/* ========== AI科技元素样式 ========== */

/* AI网格背景 */
.ai-grid-bg {
    position: relative;
    overflow: hidden;
}

.ai-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

/* AI粒子效果 */
.ai-particles {
    position: relative;
    overflow: hidden;
}

.ai-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.ai-particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.ai-particle:nth-child(2) { top: 20%; left: 80%; animation-delay: 1s; }
.ai-particle:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.ai-particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 3s; }
.ai-particle:nth-child(5) { top: 40%; left: 50%; animation-delay: 4s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 1; }
    50% { transform: translateY(-10px) translateX(-10px); opacity: 0.8; }
    75% { transform: translateY(-30px) translateX(5px); opacity: 0.9; }
}

/* AI发光效果 */
.ai-glow {
    position: relative;
}

.ai-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

/* AI数据流动效果 */
.ai-data-flow {
    position: relative;
    overflow: hidden;
}

.ai-data-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* AI霓虹效果 */
.ai-neon {
    text-shadow: 
        0 0 5px #3b82f6,
        0 0 10px #3b82f6,
        0 0 20px #3b82f6,
        0 0 40px #8b5cf6;
}

.ai-neon-border {
    box-shadow: 
        0 0 5px rgba(59, 130, 246, 0.5),
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

/* AI渐变文字 */
.ai-gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #a855f7, #3b82f6);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* AI芯片纹理 */
.ai-chip-bg {
    background: 
        radial-gradient(circle at 2px 2px, rgba(59, 130, 246, 0.1) 1px, transparent 0),
        radial-gradient(circle at 16px 16px, rgba(59, 130, 246, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
}

/* AI六边形装饰 */
.ai-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* AI扫描线效果 */
.ai-scan-line {
    position: relative;
    overflow: hidden;
}

.ai-scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* AI边框动画 */
.ai-border-animate {
    position: relative;
}

.ai-border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    animation: borderRotate 3s linear infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ========== AI自定义图标 ========== */

/* AI大脑图标 */
.icon-ai::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.icon-ai::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 25%;
    width: 15%;
    height: 15%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 30px 0 0 rgba(255, 255, 255, 0.8), 15px 20px 0 rgba(255, 255, 255, 0.6);
}

/* AI芯片图标 */
.icon-chip::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 50%, #1e3a5f 100%);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.icon-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 数据图标 */
.icon-data::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.icon-data::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    right: 20%;
    height: 15%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow: 0 25px 0 rgba(255, 255, 255, 0.7), 0 50px 0 rgba(255, 255, 255, 0.5);
}

/* 网络图标 */
.icon-network::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.icon-network::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

/* 机器人图标 */
.icon-robot::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.icon-robot::after {
    content: '';
    position: absolute;
    top: 35%;
    left: 25%;
    width: 18%;
    height: 18%;
    background: #1e3a5f;
    border-radius: 50%;
    box-shadow: 32px 0 0 #1e3a5f;
}

/* 云图标 */
.icon-cloud::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50px 50px 0 0;
    position: relative;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.icon-cloud::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 15%;
    width: 35%;
    height: 40%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50% 50% 0 0;
    box-shadow: 45px 0 0 linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* 齿轮图标 */
.icon-gear::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.icon-gear::after {
    content: '';
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 40%;
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    border-radius: 4px;
    box-shadow: 0 60px 0 linear-gradient(135deg, #a855f7 0%, #3b82f6 100%), 
                -45px 25px 0 linear-gradient(135deg, #a855f7 0%, #3b82f6 100%),
                45px 25px 0 linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
}

/* 大脑图标 */
.icon-brain::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
}

.icon-brain::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 40px 0 0 rgba(255, 255, 255, 0.3), 
                20px 30px 0 rgba(255, 255, 255, 0.2),
                -10px 20px 0 rgba(255, 255, 255, 0.2);
}

/* 用户图标 */
.icon-users::before {
    content: '';
    display: inline-block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.icon-users::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 30%;
    width: 40%;
    height: 30%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-bottom: none;
}

/* ========== 加载动画 ========== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 返回顶部按钮 ========== */

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 20vh;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease,
                background 0.3s ease;
    z-index: 1100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20vh;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}