﻿/* 全局样式 */
:root {
    --primary-color: #2753e2;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title .line {
    width: 70px;
    height: 3px;
    background: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* 导航栏 */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 0.7rem 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 2.6rem !important;
    font-weight: 800;
    color: #fff !important;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 40px;
    margin-right: 15px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
}

/* 首页横幅 */
.hero {
    background-color: #1a1a2e;
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
                      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px, 30px 30px;
    opacity: 0.3;
}

.tech-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.9;
}

.network-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 3;
}

/* 关于我们 */
#about {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-img-wrapper {
    position: relative;
    margin: 0 auto 160px;
    padding-right: 0px;
    margin-left: 10px;
}

.about-img-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 1px 120px rgba(0, 0, 0, 0.08);
    z-index: 2;
    margin-right: 2px;
    margin-left: 2px;
}

.img-border {
    position: absolute;
    right: 0;
    bottom: -15px;
    width: 50%;
    height: 70%;
    border: 4px solid var(--primary-color);
    z-index: 1;
    border-radius: 10px;
}

.about-content {
    padding-left: 20px;
    position: relative;
    z-index: 3;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-feature {
    padding: 25px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid #f5f5f5;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.about-feature:hover .icon-circle {
    transform: scale(1.1);
}

.icon-circle i {
    font-size: 28px;
    color: #fff;
}

.about-feature h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.about-feature p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

#about .section-title h2 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

#about .section-title .line {
    width: 100%;
    height: 10px;
    margin-bottom: 30px;
    background-color: var(--primary-color);
    position: relative;
    display: block;
    max-width: 180px;
}

/* 服务内容 */
.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(39, 83, 226, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .icon-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 成功案例 */
.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-img {
    position: relative;
    overflow: hidden;
}

.case-img img {
    transition: all 0.5s ease;
}

.case-card:hover .case-img img {
    transform: scale(1.05);
}

.case-img .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(39, 83, 226, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-card:hover .case-img .overlay {
    opacity: 1;
}

.case-content {
    padding: 1.5rem;
}

.case-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* 联系我们 */
.contact-info {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--dark-color);
    transform: translateY(-3px);
}

.contact-form {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* 页脚 */
footer {
    background: var(--dark-color);
    color: #fff;
}

footer h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

footer i {
    margin-right: 0.5rem;
}

/* 移动设备适配 */
.mobile-device .service-card {
    padding: 1.5rem;
}

.mobile-device .hero {
    padding: 120px 0 60px;
}

.mobile-device .about-feature {
    padding: 1rem;
}

.mobile-device .contact-form,
.mobile-device .contact-info {
    padding: 1.5rem;
}

.mobile-device .service-card .icon-box {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.mobile-device .service-card .icon-box i {
    font-size: 1.8rem;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .hero {
        padding: 150px 0 80px;
    }
    
    .about-img-wrapper {
        margin: 0 auto 40px;
        padding-right: 0;
    }
    
    .img-border {
        right: 15px;
        bottom: -15px;
        width: 40%;
    }
    
    .about-content {
        padding-left: 0;
    }
    
    .row.gx-4 {
        --bs-gutter-x: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .case-img .overlay {
        opacity: 1;
        background: rgba(39, 83, 226, 0.5);
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 992px) {
    .about-content {
        padding-left: 30px;
    }
} 