﻿
:root {
    --theme-color: #2563eb;
    --theme-color-light: #dbeafe;
    --theme-color-dark: #1d4ed8;
    --theme-shadow: rgba(37, 99, 235, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
    scroll-behavior: smooth;
}
/* 导航栏：突出科技感，固定顶部 */
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: var(--theme-color); /* 科技蓝，强化品牌 */
    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: var(--theme-color);
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--theme-color);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

.contact-btn {
    background: var(--theme-color);
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    margin-left: 10px;
}

    .contact-btn:hover {
        background: var(--theme-color-dark);
        box-shadow: 0 4px 10px var(--theme-shadow);
    }

    .contact-btn::after {
        display: none;
    }
/* 首屏：大幅标题+动画，直接传递“软件定制开发” */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--theme-color-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

    .hero::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;
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 25px;
    opacity: 0; /* 初始隐藏，JS 控制入场动画 */
    transform: translateY(40px);
    animation: fadeUp 0.8s forwards;
    line-height: 1.3;
}

.hero p {
    font-size: 20px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s 0.3s forwards;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--theme-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s 0.6s forwards;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px var(--theme-shadow);
        background: var(--theme-color-dark);
    }
/* 服务模块 */
.services-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
}

.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: var(--theme-color);
        border-radius: 2px;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .service-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--theme-color-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--theme-color);
    transform: scale(1.1);
}

.service-icon i {
    font-size: 30px;
    color: var(--theme-color);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}
/* 案例模块：简洁卡片+悬停动画 */
.cases-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
    background-color: white;
    padding: 60px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

    .case-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .case-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .case-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .case-card:hover img {
        transform: scale(1.05);
    }

.case-info {
    padding: 25px;
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.case-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}
/* 解决方案模块 */
.solutions-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    background: linear-gradient(145deg, #f5f5f5, #ffffff);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .solution-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .solution-card:hover {
        transform: translateY(-5px);
        border-color: var(--theme-color);
        box-shadow: 0 8px 20px var(--theme-shadow);
    }

    .solution-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #333;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .solution-card h3 i {
            color: var(--theme-color);
        }

    .solution-card p {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
    }
/* 关于我们模块（优化版） */
.about-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

    .about-image.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .about-image .image-wrapper {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .about-image img {
        width: 100%;
        border-radius: 10px;
    }

    .about-image .image-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.7));
        padding: 30px 20px 20px;
        color: white;
    }

.overlay-content {
    display: flex;
    justify-content: space-around;
}

    .overlay-content .year,
    .overlay-content .clients {
        font-size: 16px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .overlay-content i {
        color: var(--theme-color);
    }

.about-content {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease 0.2s;
}

    .about-content.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .about-content .section-tag {
        display: inline-block;
        padding: 5px 15px;
        background-color: var(--theme-color-light);
        color: var(--theme-color);
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .about-content h3 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #333;
    }

.about-description {
    margin-bottom: 30px;
}

.about-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .about-feature i {
        color: var(--theme-color);
        margin-top: 4px;
    }

    .about-feature span {
        font-size: 15px;
        color: #555;
    }

.about-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-color);
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

    .about-more:hover {
        color: var(--theme-color-dark);
        transform: translateX(5px);
    }
/* 资讯模块：简约列表+分隔线 */
.news-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 20px;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    padding: 25px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

    .news-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item:hover {
        background: #f9f9f9;
        transform: translateX(10px);
    }

    .news-item a {
        text-decoration: none;
        color: #333;
        font-size: 18px;
        font-weight: 500;
        display: block;
        margin-bottom: 10px;
        transition: color 0.3s;
    }

        .news-item a:hover {
            color: var(--theme-color);
        }

    .news-item span {
        display: inline-block;
        font-size: 14px;
        color: #999;
        margin-right: 20px;
    }

.news-meta {
    display: flex;
    align-items: center;
}

    .news-meta i {
        color: var(--theme-color);
        margin-right: 5px;
    }
/* 联系模块：简洁表单+地图 */
.contact-section {
    max-width: 1200px;
    margin: 120px auto;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.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: var(--theme-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-icon i {
        font-size: 20px;
        color: var(--theme-color);
    }

.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;
}

/* 新增微信公众号图片展示样式 */
.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%;
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--theme-color);
            box-shadow: 0 0 0 3px var(--theme-shadow);
        }

    .contact-form textarea {
        height: 150px;
        resize: vertical;
    }

    .contact-form button {
        width: 100%;
        padding: 15px;
        background: var(--theme-color);
        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: var(--theme-color-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px var(--theme-shadow);
        }
/* 页脚 */
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: var(--theme-color);
    }

.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: var(--theme-color);
            padding-left: 5px;
        }

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .footer-contact i {
        color: var(--theme-color);
    }

.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: var(--theme-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px var(--theme-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

    .service-toggle:hover {
        transform: scale(1.1);
        background: var(--theme-color-dark);
    }

.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: #f0f9f6;
        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: var(--theme-color);
    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;
}
/* 微信公众号图片容器样式 */
.wechat-image-container {
    text-align: center;
    padding: 10px 0;
}

    .wechat-image-container img {
        width: 100%;
        max-width: 220px;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        margin: 10px 0;
    }
/* 动画效果 */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 30px;
    }

    .nav-links a {
        margin: 0 8px;
        font-size: 14px;
    }

    .contact-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .about-section {
        gap: 30px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-extra {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .service-panel {
        width: 250px;
    }
}

