﻿
* {
    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; /* 主题色修改为#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; /* 主题色修改为#2563eb */
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #2563eb; /* 主题色修改为#2563eb */
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-links a.active {
            color: #2563eb; /* 主题色修改为#2563eb */
        }

            .nav-links a.active::after {
                width: 100%;
            }

.contact-btn {
    background: #2563eb; /* 主题色修改为#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;
    }


.case-header {
    background: linear-gradient(135deg, #dbeafe, #fff); /* 浅色变体 */
    padding: 60px 0;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

    .case-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;
    }

.case-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.case-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
}

.case-header p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}


.filter-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.filter-tag {
    padding: 8px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .filter-tag.active {
        background: #2563eb; /* 主题色修改为#2563eb */
        color: white;
        border-color: #2563eb; /* 主题色修改为#2563eb */
    }

    .filter-tag:hover:not(.active) {
        border-color: #2563eb; /* 主题色修改为#2563eb */
        color: #2563eb; /* 主题色修改为#2563eb */
    }

/* 案例列表 */
.cases-section {
    max-width: 1200px;
    margin: 0 auto 120px;
    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: #2563eb; /* 主题色修改为#2563eb */
        border-radius: 2px;
    }

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.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-category {
    display: inline-block;
    padding: 3px 10px;
    background-color: #dbeafe; /* 浅色变体 */
    color: #2563eb; /* 主题色修改为#2563eb */
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.case-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .page-btn:hover:not(.active):not(.disabled) {
        border-color: #2563eb; /* 主题色修改为#2563eb */
        color: #2563eb; /* 主题色修改为#2563eb */
    }

    .page-btn.active {
        background: #2563eb; /* 主题色修改为#2563eb */
        color: white;
        border-color: #2563eb; /* 主题色修改为#2563eb */
    }

    .page-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.page-prev, .page-next {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

/* 页脚 */
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; /* 主题色修改为#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; /* 主题色修改为#2563eb */
            padding-left: 5px;
        }

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

    .footer-contact i {
        color: #2563eb; /* 主题色修改为#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; /* 主题色修改为#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: #dbeafe; /* 浅色变体 */
        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; /* 主题色修改为#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 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) {
    .case-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;
    }

    .cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .case-header {
        padding: 40px 0;
    }

        .case-header h1 {
            font-size: 26px;
        }

        .case-header p {
            font-size: 16px;
        }

    .nav-links {
        display: none;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

a {
    text-decoration: none;
}

/* 针对案例卡片中的链接单独设置（可选，增强针对性） */
.case-card a {
    text-decoration: none;
    color: inherit; /* 继承父元素颜色，避免链接默认蓝色 */
    display: block; /* 让链接充满卡片区域，点击任意位置可跳转 */
}

/* 可选：添加hover效果（保持无下划线，可自定义其他样式） */
a:hover {
    text-decoration: none; /* 确保 hover 状态也无下划线 */
    /* 可添加其他交互样式，如颜色变化 */
    color: #2563eb; /* 与网站主题色呼应 */
}


