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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #9c27b0;
    --accent-color: #7b1fa2;
    --text-color: #ffffff;
    --bg-color: #e0f2fe;
    --card-bg: rgba(255, 255, 255, 0.8);
    --hover-color: #0ea5e9;
    --transition: all 0.3s ease;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 背景效果 */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.9;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, rgba(224, 242, 254, 0.9) 100%);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.logo-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -5px;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #0369a1;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--hover-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    color: #0369a1;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--hover-color);
}

/* 媒体查询 - 移动设备 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }
}

/* 移动端菜单样式 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(144, 202, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-link {
    display: block;
    padding: 15px 20px;
    color: #0369a1;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: left 0.3s ease;
}

.mobile-link:active::before {
    left: 0;
}

.mobile-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--hover-color);
    padding-left: 25px;
}

/* 联系图标样式 */
.contact-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
    vertical-align: middle;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    color: var(--hover-color);
    transform: scale(1.1);
}

/* 首屏样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 50px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 3s ease-in-out infinite;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    color: #0369a1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 200% auto;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    position: relative;
}

.tech-pattern {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 70%);
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite;
}

/* 功能介绍样式 */
.features {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    opacity: 1;
}

.feature-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: rgba(224, 242, 254, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #0369a1;
}

.feature-card p {
    color: rgba(0, 0, 0, 0.7);
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin-bottom: 50px;
    position: relative;
}

.company-pattern {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.5;
    animation: pulse 5s ease-in-out infinite;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #0369a1;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(0, 0, 0, 0.7);
}

.about-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.about-point {
    display: flex;
    align-items: flex-start;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.about-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-point i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    width: 100%;
    max-width: 350px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

.contact-item p {
    margin: 0;
    color: rgba(0, 0, 0, 0.7);
}

.contact-item a {
    color: #0369a1;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--hover-color);
}

/* 页脚样式 */
.footer {
    padding: 40px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-column {
    margin: 0 20px;
}

.legal-info {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.legal-info h3 {
    color: #0369a1;
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.legal-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.legal-info-content ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.legal-info-content li {
    margin: 10px 0;
}

.legal-info-content a {
    color: #0369a1;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.legal-info-content a:hover {
    color: var(--hover-color);
}

.legal-info-content a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.legal-info-content a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px; /* 添加底部30px内边距 */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #0369a1;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    
    .footer-column {
        /* 移动设备上默认添加可见类的样式，防止JS检测失败 */
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important; /* 禁用过渡效果确保立即显示 */
    }
}



@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .features h2,
    .about h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .feature-card,
    .about-point,
    .contact-item {
        padding: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* 元素动画类 */
.feature-card {
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.about-point {
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateX(-20px);
}

.about-point.visible {
    opacity: 1;
    transform: translateX(0);
    animation: slideInLeft 0.6s ease-out forwards;
}

.contact-item {
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.contact-item.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-column {
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateY(20px);
}

.footer-column.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.hero-content.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    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.6s ease-out, height 0.6s ease-out;
}

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