
:root {
    --primary-color: #2563eb;
    --primary-color: #024785;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-item { position: relative; }
.navbar-nav .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0.1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 1em;
    border-right: 1px dashed rgba(30, 64, 175, 0.55);
}

.navbar .nav-link {
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    background: var(--secondary-color);
    color: #fff !important;
    border-radius: 0;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.7), rgba(30, 64, 175, 0.5));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.services-section {
    padding: 2.6rem 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #00427d;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
    background: var(--bs-white); /* 浅蓝背景 */
    border: 2px solid #00427d;
    border-radius: 4px;
    padding: 0.6rem 1.6rem; /* 增加左右内边距，提升气质 */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.section-title {
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #e7e7e7;
    border-radius: 3px;
}

.section-title::before {
    bottom: -8px;
    opacity: 0;
}

.section-title::after {
    bottom: -16px;
    opacity: 0.65;
}

.service-card {
    background: white;
    padding: 1.9rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e3e3e3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 44px rgba(243, 180, 51, 0.25);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    background-color: #f2be45;
    border-color: #d1d5db;
    color: #ffffff;
}

a.service-card-link { text-decoration: none; color: inherit; display: block; }
a.service-card-link:hover { text-decoration: none; }
a.service-card-link .service-card { transition: transform .18s ease, box-shadow .18s ease; }
a.service-card-link:hover .service-card {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(17,24,39,0.12);
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: #64748b;
    line-height: 1.8;
}

.about-section {
    padding: 3rem 0;
    background: white;
}

.about-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 4px;
    padding: 1.2rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.about-content h3 {
    color:#f2be45;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 4px;
    background: var(--primary-color);
    background:#f2be45;
    border-radius: 2px;
}

.about-content p {
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.highlight-box {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.highlight-box strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.projects-section {
    padding: 3rem 0;
    background: var(--light-color);
}
.projects-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(/img/images/photo2.jpg) center / cover;
    opacity: 0.1;
}
.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.9), transparent);
    background: linear-gradient(to top, rgba(146, 125, 22, 0.5), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(37, 99, 235, 0.95), rgba(30, 64, 175, 0.7));
}

.project-card-link { display: block; text-decoration: none; color: inherit; }
.project-card-link:focus .project-card,
.project-card-link:hover .project-card { transform: translateY(-3px) scale(1.01); box-shadow: 0 8px 16px rgba(0,0,0,0.12); }

.project-info h5 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.tech-section {
    padding: 3.5rem 0;
    background: white;
}

.tech-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 0.75rem;
    cursor: pointer;
}

.tech-card:hover {
    transform: none;
    background: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
}
.tech-card:hover h4,
.tech-card:hover p,
.tech-card:hover i {
    color: #fff;
}

.tech-card i {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
}

.tech-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--dark-color);
    grid-column: 2;
    grid-row: 1;
}

.tech-card p {
    margin: 0.25rem 0 0;
    grid-column: 2;
    grid-row: 2;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tech-image {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
/* 技术优势区块：统一左右列高度，并为右侧容器加背景与内边距 */
.tech-section .row.align-items-center { align-items: stretch; }
.tech-section .col-lg-6[data-aos="fade-left"] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 12px;
    padding: 1rem;
}

.clients-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.certs-section {
    padding: 4rem 0 3rem;
    background: var(--light-color);
}

.certs-section .thumbs {
    align-items: center;
}

.cert-thumb {
    max-width: 100%;
    height: auto;
    border: 1px solid #cfe0ff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-radius: 12px;
    cursor: pointer;
}

.cert-modal .swiper {
    width: 100%;
    height: 70vh;
}

.cert-modal .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-modal .swiper-slide img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
}

.cert-modal .swiper-slide::before {
    content: none !important;
    display: none !important;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/photo-bg.jpg') center/cover;
    opacity: 0.1;
}



.clients-section {
    color: white;
}

.client-logo {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.cta-btn {
    padding: 1rem 3rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footera {
    display: inline;
}


footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}
.fa-chevron-up {
    padding: 17px;
}

#backToTop:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }

    .tech-card {
        margin-bottom: 1.5rem;
    }
}
.contact-info h5 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

#contactModal .modal-dialog { max-width: 540px; }

#contactModal .modal-content {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}

#contactModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-bottom: none;
}

#contactModal .modal-body {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

#contactModal .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 0.5rem;
}

#contactModal .contact-info i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(204px, 1fr));
    gap: 12px;
    justify-items: center;
}
.client-logo {
    width: 204px;
    height: 124px;
    background-image: url('../img/customer.jpg');
    background-repeat: no-repeat;
    background-size: 1099px 553px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
}
.client-logo:hover, .client-logo:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0,0,0,0.16), 0 0 0 3px rgba(37,99,235,0.18);
    border-color: #93c5fd;
    filter: saturate(1.08) contrast(1.05);
}

.logo-r1c1 { background-position: -7px   -7px; }
.logo-r1c2 { background-position: -230px -7px; }
.logo-r1c3 { background-position: -453px -7px; }
.logo-r1c4 { background-position: -676px -7px; }
.logo-r1c5 { background-position: -895px -7px; }

.logo-r2c1 { background-position: -7px   -150px; }
.logo-r2c2 { background-position: -230px -150px; }
.logo-r2c3 { background-position: -453px -150px; }
.logo-r2c4 { background-position: -676px -150px; }
.logo-r2c5 { background-position: -895px -150px; }

.logo-r3c1 { background-position: -7px   -293px; }
.logo-r3c2 { background-position: -230px -293px; }
.logo-r3c3 { background-position: -453px -293px; }
.logo-r3c4 { background-position: -676px -293px; }
.logo-r3c5 { background-position: -895px -293px; }

.logo-r4c1 { background-position: -7px   -429px; }
.logo-r4c2 { background-position: -230px -429px; }
.logo-r4c3 { background-position: -453px -429px; }
.logo-r4c4 { background-position: -676px -429px; }
.logo-r4c5 { background-position: -895px -429px; }

.clients-section .row {
    display: grid !important;
    grid-template-columns: repeat(5, 214px);
    gap: 32px;
    justify-content: center;
}
.clients-section .row > div {
    margin: 0 !important;
    padding: 0 !important;
}

.client-logo {
    cursor: pointer;
    will-change: transform, box-shadow, filter;
}
.client-logo:hover, .client-logo:focus {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 18px 36px rgba(0,0,0,0.18), 0 0 0 3px rgba(59,130,246,0.28);
    border-color: #60a5fa;
    filter: saturate(1.12) contrast(1.08);
}

.tech-card { border-radius: 0 !important; box-shadow: none; }
.tech-section .row.align-items-center { align-items: stretch !important; }
.tech-image { width: 100%; height: 100%; border-radius: 0 !important; display: block; }
/* Utility: remove underline for specific link */
.no-underline,
.no-underline:hover,
.no-underline:focus,
.no-underline:visited {
  text-decoration: none !important;
}

/* News Section */
.news-section { padding: 3rem 0; background: var(--light-color); }
.news-tabs { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 1.5rem; }
.news-tab-btn { border: 1px solid #e5e7eb; background: #fff; color: #0b1437; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.news-tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 4px 12px rgba(2,71,133,0.25); }
.news-more { margin-left: 8px; font-size: .9rem; color: var(--primary-color); text-decoration: none; }
.news-grid { margin-top: .5rem; }
.news-card { display: grid ; grid-template-columns: 1fr 88px; align-items: start; gap: 16px; background: #fff; border: 1px solid var(--bs-white); border-radius: 4px; padding: 20px; text-decoration: none; color: inherit; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);}
.news-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,0.12); transform: translateY(-2px); background: var(--secondary-color); }
.news-card:hover .news-body h5, .news-card:hover .news-body p { color: #fff; }
.news-thumb { display: none; }
.news-body h5 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; color: var(--dark-color); }
.news-body p { margin: 0; color: #64748b; }
.news-date { display: flex ; flex-direction: column; align-items: center; justify-content: center; background: #eceff3; color: var(--primary-color); border-radius: 8px; padding: 10px 6px; }
.news-date span { font-weight: 700; letter-spacing: 0.5px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

@media (max-width: 768px) {
  .news-card { grid-template-columns: 1fr; }
  .news-date { flex-direction: row; gap: 8px; }
}
