/* ---------------------------- */
/* 基础重置与变量定义 - 纯白主题 */
/* ---------------------------- */
:root {
    --primary: #6366f1; /* 主色调-靛蓝 */
    --primary-light: #8b5cf6;
    --secondary: #06b6d4; /* 辅助色-青蓝 */
    
    --bg-main: #ffffff;    /* 全局纯白背景 */
    --bg-light: #f9fafb;   /* 浅灰背景（用于区分区块） */
    --bg-card: #ffffff;    /* 卡片白色 */
    --bg-dark: #1e293b;    /* 仅用于少数强调区 */
    
    --text-main: #111827;  /* 主要文字-黑色 */
    --text-secondary: #334155; /* 次要文字-深灰 */
    --text-light: #64748b; /* 说明文字-浅灰 */

    --gradient-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #10b981);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 20px rgba(99, 102, 241, 0.1);
    --shadow-lg: 0 10px 50px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 全局通用类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    background-color: var(--bg-main);
}

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.w-100 {
    width: 100%;
}

.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------------------- */
/* 粒子背景 - 适配白色主题 */
/* ---------------------------- */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ---------------------------- */
/* 导航栏 Navbar - 纯白毛玻璃 */
/* ---------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85); /* 白色半透明 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main); /* LOGO黑色 */
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
}

.logo-icon {
    font-size: 24px;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-secondary); /* 导航文字深灰 */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary); /* 悬停变主色 */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: 100%;
}

.btn-login {
    background: var(--bg-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* ---------------------------- */
/* 按钮 Button */
/* ---------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

/* 液态按钮效果 */
.btn-primary::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: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-3px);
}

/* ---------------------------- */
/* 英雄区 Hero - 白色主题渐变 */
/* ---------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    position: relative;
    padding-top: 80px;
    background-color: var(--bg-light);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* 轮播图叠加层改为白色渐变，适配白色主题 */
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.slide-1 {
    background-image: url('https://picsum.photos/id/1/1920/1080');
}

.slide-2 {
    background-image: url('https://picsum.photos/id/2/1920/1080');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

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

.sub-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-main);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.swiper-pagination {
    position: absolute;
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* ---------------------------- */
/* 板块标题 Section Header */
/* ---------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 16px;
}

/* ---------------------------- */
/* 服务板块 Services - 白色卡片 */
/* ---------------------------- */
.services {
    background-color: var(--bg-main);
}

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

.service-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* 3D 悬浮效果 */
.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.bg-purple { background: var(--gradient-purple); }
.bg-blue { background: var(--gradient-blue); }
.bg-cyan { background: var(--gradient-cyan); }

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.service-card:hover .card-link {
    gap: 10px;
}

/* ---------------------------- */
/* 核心优势 Features */
/* ---------------------------- */
.features {
    background-color: var(--bg-light);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-img {
    position: relative;
}

.features-img::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: var(--gradient-blue);
    opacity: 0.1;
    z-index: -1;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.feature-info p {
    color: var(--text-light);
    font-size: 15px;
}

/* ---------------------------- */
/* 联系我们 Contact - 白色玻璃感 */
/* ---------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: var(--gradient-blue);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-item i {
    color: white;
    font-size: 18px;
    margin-top: 3px;
}

.contact-form {
    padding: 50px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: var(--bg-light);
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form textarea {
    resize: none;
}

/* ---------------------------- */
/* 页脚 Footer - 浅灰白 */
/* ---------------------------- */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-brand p {
    color: var(--text-light);
    margin: 20px 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* ---------------------------- */
/* 响应式设计 */
/* ---------------------------- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 38px;
    }
    .services-grid {
        gap: 20px;
    }
    .features-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    .hero-content {
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .contact-info, .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 30px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
}