/* 全局样式 */
:root {
    --primary-color: #0077cc;
    --secondary-color: #00aaff;
    --dark-color: #001a33;
    --light-color: #f8f9fa;
    --accent-color: #19d4ca;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition-normal: all 0.3s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #444;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 204, 0.2);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.title-bar {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* 导航栏 */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: transparent;
    transition: var(--transition-normal);
}

#mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(0, 26, 51, 0.95);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.nav-link {
    font-weight: 600;
    color: white !important;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    color: white;
    padding: 0.5rem;
}

/* 首页横幅 */
.masthead {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, rgba(0, 26, 51, 0.9), rgba(0, 119, 204, 0.8)), url('../image/banner.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    color: white;
}

.masthead h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.masthead .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    margin-top: 2rem;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.masthead .container {
    position: relative;
    z-index: 2;
}

/* 关于我们 */
.about-img {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
}

.tech-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 2px dashed var(--accent-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: rotate 60s linear infinite;
}

.tech-circle::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.img-container {
    position: relative;
    width: 280px;
    height: 280px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

.counter-row {
    display: flex;
    justify-content: space-between;
}

.counter-item {
    text-align: center;
    padding: 1rem;
}

.counter-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-text {
    font-weight: 600;
    color: var(--dark-color);
}

/* 业务范围 */
.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    align-self: center;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: -50%;
    left: -50%;
    transform: rotate(45deg);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon::after {
    top: 150%;
    left: 150%;
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    align-self: center;
    font-size: 1.4rem;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 0;
    text-indent: 0;
}

/* 核心优势 */
.advantages-img {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.advantages-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
    transform: scale(1.01);
}

.advantages-img:hover img {
    transform: scale(1.05);
}

.tech-dots {
    position: absolute;
    width: 160px;
    height: 160px;
    background-image: radial-gradient(var(--accent-color) 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: -50px;
    right: -50px;
    z-index: 1;
    opacity: 0.7;
}

.advantages-img::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    border: 2px dashed var(--primary-color);
    opacity: 0.5;
    z-index: 1;
}

.advantages-list {
    padding-left: 1.5rem;
}

.advantage-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

.advantage-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.advantage-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: -50%;
    left: -50%;
    transform: rotate(45deg);
    transition: var(--transition-normal);
    z-index: -1;
}

.advantage-item:hover .advantage-icon::after {
    top: 150%;
    left: 150%;
}

.advantage-content {
    flex-grow: 1;
}

.advantage-content h4 {
    margin-bottom: 0.7rem;
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.advantage-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 成功案例 */
.case-filter {
    margin-bottom: 2rem;
}

.case-filter .btn {
    margin: 0 0.3rem;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
}

.case-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-img {
    position: relative;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.case-card:hover .case-img img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 119, 204, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-link {
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.case-card:hover .case-link {
    transform: translateY(0);
    opacity: 1;
}

.case-info {
    padding: 1.5rem;
}

.case-info h4 {
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.case-info p {
    margin-bottom: 1rem;
    color: #666;
}

.badge {
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* 联系我们 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.contact-detail {
    flex-grow: 1;
}

.contact-detail h5 {
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}

/* 页脚 */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 2rem;
}

.footer-logo p {
    color: #aaa;
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 0.5rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.copyright, .icp {
    color: #aaa;
    margin-bottom: 0.3rem;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 119, 204, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 119, 204, 0.4);
}

/* 响应式样式 */
@media (max-width: 992px) {
    .masthead h1 {
        font-size: 2.8rem;
    }
    
    .masthead .lead {
        font-size: 1.2rem;
    }
    
    .counter-row {
        flex-wrap: wrap;
    }
    
    .counter-item {
        width: 50%;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .advantages-list {
        padding-left: 0;
        margin-top: 1rem;
    }
    
    .advantage-item {
        padding: 1.2rem;
    }
    
    .advantage-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .masthead {
        min-height: 500px;
    }
    
    .masthead h1 {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .advantage-item, .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .advantage-icon, .contact-icon {
        margin: 0 auto 1rem;
    }
    
    .footer-links li {
        margin: 0 0.5rem;
    }
    
    .footer-logo, .footer-links, .copyright, .icp {
        text-align: center;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card, .advantage-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon, .advantage-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    .masthead h1 {
        font-size: 1.8rem;
    }
    
    .counter-item {
        width: 100%;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
    }
    
    .hero-btns .btn {
        margin-bottom: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* 案例模态框 */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-body h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.btn-close {
    filter: brightness(0) invert(1);
}
