﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
    padding-top: 80px; /* 为固定导航栏预留空间 */
}

/* 导航栏样式 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 999;
    transition: all 0.3s ease;
}

    nav.scrolled {
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb; /* 科技蓝，强化品牌 */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-logo i {
        font-size: 28px;
    }

.nav-links {
    display: flex;
    align-items: center;
}

    .nav-links a {
        margin: 0 15px;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s, transform 0.3s;
        position: relative;
    }

        .nav-links a:hover {
            color: #2563eb;
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #2563eb;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a.active {
            color: #2563eb;
        }

            .nav-links a.active::after {
                width: 100%;
            }

.contact-btn {
    background: #2563eb;
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    margin-left: 10px;
}

    .contact-btn:hover {
        background: #1d4ed8;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    }

    .contact-btn::after {
        display: none;
    }

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #dbeafe, #fff);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

    .page-header::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: url('https://www.black-jet.cn/images/banner-bg.jpg');
        background-size: cover;
        background-position: center;
        opacity: 0.15;
        top: 0;
        left: 0;
        z-index: 0;
    }

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
}

.page-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

/* 联系模块 */
.contact-section {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: #2563eb;
        border-radius: 2px;
    }

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

    .contact-info.visible {
        opacity: 1;
        transform: translateX(0);
    }

.contact-form-container {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease 0.2s;
}

    .contact-form-container.visible {
        opacity: 1;
        transform: translateX(0);
    }

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-icon i {
        font-size: 20px;
        color: #2563eb;
    }

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.contact-text p {
    font-size: 15px;
    color: #666;
}

.contact-map {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    background-color: #f5f5f5;
    position: relative;
}

    .contact-map::after {
        content: '地图加载中...';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #999;
    }

/* 微信公众号图片展示 */
.wechat-qrcode {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

    .wechat-qrcode img {
        width: 180px;
        height: 180px;
        margin: 0 auto 15px;
        display: block;
        border: 5px solid white;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .wechat-qrcode p {
        font-size: 16px;
        color: #333;
        font-weight: 500;
    }

/* 联系表单 */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: #333;
    }

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

    .contact-form input:focus,
    .contact-form textarea:focus,
    .contact-form select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .contact-form button:hover {
        background: #1d4ed8;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    }

.form-required {
    color: #ff4d4f;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background-color: #2563eb;
    }

.footer-col p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: #2563eb;
            padding-left: 5px;
        }

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .footer-contact i {
        color: #2563eb;
    }

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #aaa;
}

/* 在线客服悬浮按钮 */
.floating-service {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 998;
}

.service-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

    .service-toggle:hover {
        transform: scale(1.1);
        background: #1d4ed8;
    }

.service-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 20px;
    display: none;
}

    .service-panel.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .service-panel h4 {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
        color: #333;
    }

.service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

    .service-option:hover {
        background: #eff6ff;
        transform: translateX(5px);
    }

    .service-option i {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

.service-qq i {
    background: #12b7f5;
    color: white;
}

.service-phone i {
    background: #2563eb;
    color: white;
}

.service-wechat i {
    background: #7bb32e;
    color: white;
}

.service-info h5 {
    font-size: 16px;
    margin-bottom: 3px;
}

.service-info p {
    font-size: 14px;
    color: #666;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 30px;
    }

    .nav-links a {
        margin: 0 8px;
        font-size: 14px;
    }

    .contact-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .contact-container {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0;
    }

        .page-header h1 {
            font-size: 26px;
        }

        .page-header p {
            font-size: 16px;
        }

    .nav-links {
        display: none;
    }

    .service-panel {
        width: 250px;
    }
}
