:root {
    --primary: #347355;
    --primary-light: #347355;
    --secondary: #347355;
    --accent: #ff3366;
    --light-bg: #f8faff;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #1a2b5f;
    --text-light: #5a6a9a;
    --border: rgba(0, 102, 255, 0.15);
    --shadow: rgba(65, 156, 106, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: rgba(248, 250, 252, 0.6);
    /*background-size: cover;*/
    /*background-position: center;*/
    /*background-attachment: fixed;*/
    /*background-repeat: no-repeat;*/
}

.swiper-container {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    position: relative;
    height: auto;
}

.swiper-slide img{
    width: 100%;
    min-height: 620px;
    display: block;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    width: 80vw;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #fff;
}

.hero-content p {
    font-size: 2rem;
    color: #fff;
}

.swiper-pagination-bullet {
    width: 16px !important;
    height: 16px !important;
    background: #fff !important;
    opacity: 0.6 !important;
}

.swiper-pagination-bullet-active {
    background: #347355 !important;
}

/*****************************************/
/* Header基础样式 */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid transparent;
}

/* 导航文字颜色控制 - 添加渐变过渡 */
.nav-menu a {
    transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.logo {
    transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hamburger {
    transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 滚动后状态 */
header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border-bottom: 1px solid rgba(52, 115, 85, 0.15) !important;
}

/* 文字颜色 */
header:not(.scrolled) .nav-menu a {
    color: rgba(255, 255, 255, 0.95) !important;
}

header.scrolled .nav-menu a {
    color: var(--text) !important;
}

header:not(.scrolled) .logo {
    color: rgba(255, 255, 255, 1) !important;
}

header.scrolled .logo {
    color: var(--text) !important;
}

header:not(.scrolled) .hamburger {
    color: rgba(255, 255, 255, 0.9) !important;
}

header.scrolled .hamburger {
    color: var(--primary) !important;
}


/*********************/

/* 导航栏容器 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--primary) !important;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.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: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

/* 内容区块 */
.section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    margin: 20px auto;
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 700px;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(37, 172, 84, 0.15);
    border-color: rgba(74, 165, 76, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(56, 152, 83, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
}

/* 解决方案 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solution-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.3);
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
}

.solution-card h3 span {
    width: 35px;
    height: 35px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.solution-card ul {
    list-style: none;
    margin-top: 15px;
}

.solution-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.solution-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* 数据统计 */
.counter-section {
    padding: 100px 20px;
    text-align: center;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.counter-item {
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.counter-item:hover {
    box-shadow: 0 12px 30px rgba(52, 115, 133, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f8fffb 100%);
    transform: scale(1.02);
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px 10px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.counter-item:hover::before {
    transform: scaleX(1);
}

.counter-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 115, 133, 0.3);
}

.counter-item h3 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.counter-item:hover h3 {
    color: #1a4730;
    transform: scale(1.05);
}

.counter-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.counter-item:hover p {
    color: var(--text);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .counter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .counter-item {
        padding: 30px 15px;
    }

    .counter-item h3 {
        font-size: 2.5rem;
    }

    .counter-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* 联系表单 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text);
}

.contact-details p {
    color: var(--text-light);
}

/* 页脚 */
footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 70px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column {
    text-align: center;
}
.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.footer-column p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-column img {
    width: 100px;
}


.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-right: 10px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    color: var(--text-light);
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* 自定义animate.css动画时长和缓动函数 */
.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fast {
    animation-duration: 0.6s;
}

.animate__slow {
    animation-duration: 1s;
}

/* 科技风格的光晕效果 */
.service-card.animate__animated,
.counter-item.animate__animated {
    position: relative;
    overflow: hidden;
}

.service-card.animate__animated::before,
.counter-item.animate__animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.8s ease;
}

.service-card.animate__animated.animate__fadeInUp::before,
.counter-item.animate__animated.animate__fadeInUp::before {
    left: 100%;
}

/* 导航栏动画优化 */
.nav-menu a.animate__animated {
    animation-duration: 0.5s;
}

/* 服务图标动画增强 */
.service-icon.animate__animated {
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 数字统计动画 */
.counter-item.animate__animated {
    animation-duration: 1.2s;
}

/* 页脚列动画 */
.footer-column.animate__animated {
    animation-duration: 0.8s;
}

/* 滚动触发动画的类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 快速动画系统 */
.animate__fast { animation-duration: 0.4s; }
.animate__faster { animation-duration: 0.3s; }
.animate__fastest { animation-duration: 0.2s; }

/* 快速延迟系统 */
.animate__delay-01s { animation-delay: 0.1s; }
.animate__delay-02s { animation-delay: 0.2s; }
.animate__delay-03s { animation-delay: 0.3s; }
.animate__delay-04s { animation-delay: 0.4s; }
.animate__delay-05s { animation-delay: 0.5s; }

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content, .contact-content {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    /* 移动端导航菜单 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }

    .nav-menu.active a {
        color: var(--text) !important;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .counter-grid {
        grid-template-columns: 1fr;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }

    .swiper-slide img{
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}
