/* style.css */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #0a2463 0%, #1e3a8a 100%);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden; /* 防止水平滚动条 */
    line-height: 1.6;
}

/* 背景装饰元素 */
.bg-pattern {
    position: fixed; /* 固定背景，滚动时不移动 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.trace-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0a2463; /* 深蓝色背景（与原背景协调） */
    color: #ffffff; /* 白色文字 */
    text-decoration: none; /* 去掉下划线 */
    border-radius: 6px; /* 圆角 */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease; /* 过渡动画 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 浅色边框增强层次感 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
}

.trace-link:hover {
    background-color: #1e3a8a; /* hover时稍浅的蓝色 */
    color: #ffffff;
    transform: translateY(-2px); /* 轻微上移 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 增强阴影 */
    border-color: rgba(255, 255, 255, 0.3); /* 边框稍亮 */
}

.trace-link:active {
    transform: translateY(0); /* 点击时复位 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 恢复阴影 */
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
    filter: blur(50px);
    animation: float 8s infinite ease-in-out;
    z-index: 0;
}

.element1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.element2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.element3 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(10deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* 通用容器样式 */
.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    width: 90%;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative; /* 为了 z-index 生效 */
}

/* 为主要内容板块增加底部外边距，创造间距 */
.section {
    margin-bottom: 60px;
}
/* 最后一个板块不需要下边距 */
.section:last-of-type {
    margin-bottom: 0;
}

/* 通用的区块标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

/* 标题样式 */
.logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(15, 23, 42, 0.8); /* 深色半透明背景 */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100; /* 确保在最上层 */
}

.navbar .logo h1 {
    font-size: 24px;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block; /* 让 a 标签也能正常使用 padding */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn:hover::before {
    left: 100%;
}

/* 边框按钮样式 */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
    box-shadow: none;
}
.btn-outline::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

/* 加载动画 */
.loader {
    display: none;
    justify-content: center;
    margin-top: 20px;
}

.loader.active {
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #3b82f6;
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 特性卡片样式 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-<|card|>:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-<|card|>:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: #3b82f6;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 服务行业样式 */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}
.industry-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 10px;
    transition: all 0.3s ease;
    cursor: default;
}
.industry-card i {
    font-size: 28px;
    color: #3b82f6;
    margin-bottom: 10px;
    display: block;
}
.industry-card span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}
.industry-<|card|>:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-5px);
}

/* 开放合作样式 */
.cooperation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.cooperation-point {
    text-align: center;
    padding: 30px;
}
.cooperation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cooperation-icon i {
    font-size: 32px;
    color: #3b82f6;
}
.cooperation-point h3 {
    font-size: 22px;
    margin-bottom: 15px;
}
.cooperation-point p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 系统截图样式 */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screenshot-item img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* 行动召唤区域 */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(23, 37, 84, 0.8));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M50,5 L95,50 L50,95 L5,50 Z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* 页脚样式 */
.footer {
    background: rgba(15, 23, 42, 0.9);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 40px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #3b82f6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.7);
}

.social-icon:hover svg {
    fill: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 内容区域通用样式 */
.content-wrapper {
    padding-top: 120px; /* 为固定导航栏留出空间 */
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* 为不同元素设置不同的动画延迟，创造层次感 */
.hero-section { animation-delay: 0.2s; }
.features-section { animation-delay: 0.4s; }
.industries-section { animation-delay: 0.5s; }
.cooperation-section { animation-delay: 0.6s; }
.screenshots-section { animation-delay: 0.7s; }
.cta-section { animation-delay: 0.8s; }

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 50px 30px;
    }
    .section {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* 在移动设备上隐藏导航链接，可根据需要添加汉堡菜单 */
    }
    .container {
        padding: 40px 20px;
        margin: 20px auto;
    }
    .section {
        margin-bottom: 40px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 26px;
    }
    .features-grid,
    .cooperation-content {
        grid-template-columns: 1fr;
    }
    .industries-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    .industry-card {
        padding: 20px 5px;
    }
    .industry-card i {
        font-size: 24px;
    }
}

/* 为锚点目标元素添加顶部滚动边距，以防止被固定导航栏遮挡 */
#home,
#features,
#industries,
#cooperation,
#screenshots,
#cta {
    scroll-margin-top: 100px; /* 数值应略大于导航栏的高度 */
}