/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-background: #f3f4f6;
    --border-color: #e5e7eb;
    --gradient-start: #2563eb;
    --gradient-end: #1e40af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 80px;
}

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

/* 导航栏样式 */
.navbar {
    background: var(--background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

.btn-primary {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* 首页横幅样式 */
.hero {
    /* background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('./bgs/bg-1.jpg'); */
    background-image: url('./bgs/bg-1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    color: white;
    padding: 100px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(45deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)); */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 行业解决方案样式 */
.industries {
    padding: 100px 0;
    background: var(--light-background);
}

.industries h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-color);
}

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

.industry-card {
    background: var(--background);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.industry-card:hover {
    transform: translateY(-10px);
}

.industry-card:hover::before {
    transform: scaleX(1);
}

.industry-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.industry-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.industry-card p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.learn-more:hover {
    gap: 12px;
}

/* 服务流程样式 */
.process {
    padding: 60px 0;
    background: var(--background);
}

.process h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.process-step p {
    color: var(--light-text);
}

/* 数据统计样式 */
.statistics {
    padding: 50px 0;
    background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 页脚样式 */
.footer {
    background: var(--text-color);
    color: white;
    padding: 20px 0 10px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 2.7rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--background);
        padding: 20px;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

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

    .process-steps::before {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    max-width: 1200px;
    margin: 10px auto 0 auto;
    padding-bottom: 40px;
}

.carousel-track {
    position: relative;
    min-height: 420px;
}

.carousel .service-card {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    transition: opacity 0.5s;
    z-index: 1;
}

.carousel .service-card[style*="display: block"] {
    display: block;
    position: relative;
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 99, 235, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

.carousel-btn:hover {
    background: rgba(30, 64, 175, 0.9);
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.carousel-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots .dot.active {
    background: var(--primary-color);
}

.service-image i {
    font-size: 5.5rem;
    color: var(--primary-color);
}

.service-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .carousel {
        max-width: 99vw;
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .carousel-track {
        min-height: 480px;
    }
}


/* 自定义下拉菜单样式 */
.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-left: 0;
    background: #f4f7fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    min-width: 220px;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
    padding-left: 0;
}

.custom-dropdown-menu li {
    padding: 6px 12px;
    white-space: nowrap;
}

.custom-dropdown-menu li a {
    color: #222;
    text-decoration: none;
    display: block;
    font-weight: 300;
    font-size: 14px;
}

.custom-dropdown-menu li:hover {
    background: #e6eef7;
}

.nav-dropdown {
    position: relative;
    padding: 0;
    margin: 0;
}

/* 鼠标移入显示下拉菜单 */
.nav-dropdown:hover .custom-dropdown-menu {
    display: block;
}

@media (max-width: 1024px) {
    /* .service-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
}

@media (max-width: 768px) {
    /* .service-grid {
        grid-template-columns: 1fr;
    } */

        /* .advantage-grid {
            grid-template-columns: 1fr;
        } */
}