@charset "utf-8";

:root {
    --primary: #1d448b;
    --primary-dark: #0364c1;
    --accent: #049dd7;
    --text: #1d1d1d;
    --text-muted: #666;
    --bg: #ffffff;
    --bg-light: #f2f5f5;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --max-width: 1260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }
img { border: 0; max-width: 100%; }
ul, li { list-style: none; }
.clear { clear: both; }

/* Header */
.headerBox {
    background: #fff;
    height: 100px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header {
    width: var(--max-width);
    max-width: 100%;
    margin: 0 auto;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header .logo img { width: 220px; cursor: pointer; }

.navs { height: 100px; line-height: 100px; }
.navs ul { display: flex; }
.navs ul li a {
    padding: 0 16px;
    display: inline-block;
    font-size: 18px;
    transition: all 0.3s;
}
.navs ul li a:hover,
.navs ul li.active a {
    height: 100px;
    text-decoration: none;
    color: #fff;
    background: var(--primary-dark);
    line-height: 100px;
}
.navs ul li.active a { color: var(--accent); background: transparent; font-weight: bold; }
.navs ul li.active a:hover { color: #fff; background: var(--primary-dark); }

.menuWap { display: none; }
.zhezhaoText {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 0;
    height: 100%;
    cursor: pointer;
    background: rgba(0,0,0,0.2);
    z-index: 99;
}

/* Banner */
.banner-hero {
    width: 100%;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0a2d5c 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
}

.banner-hero img.banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: var(--max-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    color: #fff;
}

.banner-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    max-width: 640px;
    margin-bottom: 30px;
    opacity: 0.92;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    border: 2px solid var(--accent);
}
.btn-primary:hover {
    background: #0388b8;
    text-decoration: none;
    color: #fff;
}
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    margin-left: 12px;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    text-decoration: none;
}

/* Page layout */
.pageLocationBox {
    width: 100%;
    background: #fff;
    height: 50px;
    line-height: 50px;
    margin-top: 100px;
    border-bottom: 1px solid #eee;
}
.pageLocation {
    width: var(--max-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    color: #aaa;
}
.pageLocation a { color: var(--accent); }

main.page-main {
    width: var(--max-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 20px 60px;
    min-height: 500px;
}

.section-block {
    width: var(--max-width);
    max-width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 16px;
}

.titleType {
    font-size: 24px;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 89, 139, 0.2);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

/* Services grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.capability-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.capability-card:hover { transform: translateY(-4px); }
.capability-card .icon {
    width: 64px;
    height: 64px;
    background: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary);
}
.capability-card .icon img{
    widht:50px;
    height:50px;
}
.capability-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.capability-card p { font-size: 13px; color: var(--text-muted); }

/* Service list */
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}
.service-item:hover {
    background: #e8f0fa;
    border-left-color: var(--accent);
}
.service-item .num {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-right: 16px;
    opacity: 0.5;
    min-width: 40px;
}
.service-item h3 { font-size: 16px; margin-bottom: 4px; }
.service-item p { font-size: 13px; color: var(--text-muted); }
.service-item a { display: block; width: 100%; }
.service-item a:hover { text-decoration: none; }

/* Grid cards (cases, blog, hardware) */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
a.grid-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
a.grid-card:hover { text-decoration: none; }

.grid-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.grid-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}
.grid-card:hover img { transform: scale(1.05); }
.grid-card-body { padding: 16px; }
.grid-card-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.grid-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Blog text list */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
a.blog-list-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
a.blog-list-item:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.blog-list-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}
.blog-list-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.grid-card-body .tag {
    display: inline-block;
    font-size: 11px;
    background: #e8f0fa;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 8px;
}

/* Solutions on homepage */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.solution-card {
    background: #fff;
    padding: 28px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}
.solution-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 12px; }
.solution-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.solution-card a { color: var(--accent); font-weight: bold; font-size: 14px; }

/* FAQ */
.faq-section { background: var(--bg-light); }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
    background: #fff;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after { content: "+"; font-size: 20px; color: var(--accent); }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    padding: 0 24px 18px;
    max-height: 300px;
}

/* About company */
.aboutCompany-content {
    width: 100%;
    min-height: 400px;
    display: flex;
}
.companyImg {
    width: 50%;
    flex-shrink: 0;
}
.companyImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.companyIntro {
    width: 50%;
    color: #fff;
    background: var(--primary);
    padding: 50px 40px;
    display: flex;
    align-items: center;
}
.intro-title { font-size: 24px; font-style: italic; margin-bottom: 16px; }
.intro-content { font-size: 16px; line-height: 1.7; margin-bottom: 20px; }

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.contact-info h2 { color: var(--primary); margin-bottom: 20px; font-size: 22px; }
.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}
.contact-detail strong { display: block; margin-bottom: 4px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s;
}
.social-links a:hover { background: #e8f0fa; text-decoration: none; }

.contact-form-wrap {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.contact-form-wrap h2 { color: var(--primary); margin-bottom: 20px; font-size: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 6px; color: #333; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-submit:hover { background: var(--primary); }

/* Detail page */
.detail-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.detail-gallery img {
    width: 100%;
    height: 232px;
    object-fit: contain;
    background: #f7f8fa;
    border-radius: 8px;
    padding:0 6px;
    box-sizing: border-box;
    border: 1px solid #eee;
}
.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.detail-cta {
    margin-top: 24px;
    padding: 20px 24px;
    background: #e8f0fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}
.detail-cta h3 { margin-top: 0; }
.detail-cta p { margin-bottom: 0; }
.detail-content h2 { font-size: 22px; color: var(--primary); margin: 24px 0 12px; }
.detail-content h3 { font-size: 17px; color: var(--primary-dark); margin: 20px 0 10px; }
.detail-content p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; text-align: justify; }
.detail-content a { color: var(--primary-dark); text-decoration: underline; }
.module-list { margin: 12px 0 20px; }
.module-row {
    margin-bottom: 14px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.8;
    background: #f7f8fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}
.module-row .module-title {
    display: inline-block;
    min-width: 180px;
    color: var(--primary-dark);
    font-weight: 600;
    margin-right: 12px;
}
.detail-content ul { margin: 12px 0 16px 24px; list-style: disc; }
.detail-content ul li { list-style: disc; white-space: normal; margin-bottom: 6px; font-size: 15px; }
.advantage-list { list-style: none; margin-left: 0; padding-left: 0; }
.advantage-list li {
    list-style: none;
    margin-bottom: 16px;
    padding-left: 0;
    font-size: 15px;
    line-height: 1.8;
}
.advantage-list li strong {
    display: block;
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 6px;
}
.req-comm-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 12px 0 30px;
}
.req-comm-gallery figure {
    margin: 0;
}
.req-comm-gallery img {
    width: 90%;
    height: auto;
    display: block;
}
.req-comm-gallery figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}
.detail-specs table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.detail-specs th, .detail-specs td {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    text-align: left;
}
.detail-specs th { background: #f7f8fa; }
.detail-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}
.detail-nav a { color: var(--primary-dark); }

/* Footer */
footer {
    background: var(--primary);
    color: #ccc;
    padding: 40px 0;
    margin-top: 40px;
}
.footerBox {
    width: var(--max-width);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-l { width: 25%; font-size: 14px; }
.footer-m { width: 40%; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-m a { color: #ccc; font-size: 13px; width: 48%; }
.footer-m a:hover { color: #fff; }
.footer-r { width: 30%; font-size: 13px; }
.footer-r h3 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer-r div { margin-bottom: 8px; line-height: 1.5; }

/* WhatsApp floating button */
.side-bar {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}
.side-bar a { display: block; }
.side-bar img { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Responsive */
@media (max-width: 992px) {
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .service-list { grid-template-columns: repeat(2, 1fr); }
    .grid-3x3 { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .headerBox { height: 60px; }
    .header { height: 60px; width: 100%; }
    .header .logo img { width: 130px; }
    .banner-hero { margin-top: 60px; min-height: 360px; }
    .banner-content h1 { font-size: 28px; }
    .banner-content p { font-size: 15px; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    .pageLocationBox { margin-top: 60px; height: 36px; line-height: 36px; }
    .section-title { font-size: 26px; }
    .capabilities-grid,
    .service-list,
    .grid-3x3,
    .solutions-grid { grid-template-columns: 1fr; }
    .aboutCompany-content { flex-direction: column; }
    .companyImg { width: 100%; height: 200px; }
    .companyIntro { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .detail-gallery { grid-template-columns: 1fr; }
    .req-comm-gallery { grid-template-columns: 1fr; }
    .footer-l, .footer-m, .footer-r { width: 100%; text-align: center; }
    .footer-m { display: none; }

    .navs {
        position: fixed;
        top: 0;
        right: -220px;
        height: 100%;
        width: 220px;
        z-index: 9999;
        background: #fff;
        transition: right 0.45s;
        overflow-y: auto;
        line-height: normal;
    }
    .navs.open { right: 0; }
    .navs ul { display: block; }
    .navs ul li { border-bottom: 1px solid #f0f0f0; }
    .navs ul li a {
        display: block;
        padding: 14px 20px;
        height: auto;
        line-height: normal;
        font-size: 16px;
    }
    .navs ul li a:hover { background: var(--accent); color: #fff; }
    .menuWap { display: block; }
    .menuWap .menu {
        position: fixed;
        right: 20px;
        top: 15px;
        z-index: 990;
        cursor: pointer;
    }
    .menuWap .menu img { width: 28px; }
}
