:root {
    --brand: #3388ff;
    --brand-dark: #125ab3;
    --bg: #f4f5f7;
    --text: #333;
    --muted: #999;
    --line: #f0f0f0;
    --radius: 8px;
    --header-h: 56px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

/* Header */
.cms-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.cms-header-inner {
    height: var(--header-h);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cms-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cms-logo img {
    height: 34px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.cms-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cms-nav {
    display: none;
    align-items: center;
    gap: 28px;
}

.cms-nav a {
    position: relative;
    padding: 8px 2px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.cms-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.cms-nav a:hover,
.cms-nav a.active {
    color: var(--brand);
}

.cms-nav a:hover::after,
.cms-nav a.active::after {
    width: 100%;
}

.cms-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: none;
    border: 0;
    cursor: pointer;
}

.cms-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .cms-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .cms-menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .cms-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.cms-mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

body.nav-open .cms-mobile-nav {
    display: block;
}

.cms-mobile-nav a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.cms-mobile-nav a.active {
    color: var(--brand);
}

.cms-mobile-nav a:last-child {
    border-bottom: 0;
}

.cms-header-spacer {
    height: var(--header-h);
}

/* Sections */
.cms-section {
    margin: 10px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}

.cms-section--flush {
    margin: 10px 0;
    background: transparent;
    border-radius: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 8px;
}

.section-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: none;
    font-size: 13px;
    color: var(--muted);
}

.section-more span {
    font-size: 18px;
    line-height: 1;
}

.section-sub {
    padding: 0 16px 8px;
    font-size: 13px;
    color: var(--muted);
}

/* Carousel */
.cms-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1418 / 532;
    min-height: 120px;
    background: #eef2f7;
    overflow: hidden;
}

.cms-carousel-track {
    position: absolute;
    inset: 0;
}

.cms-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cms-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.cms-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.cms-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.cms-dot.is-active {
    width: 16px;
    border-radius: 4px;
    background: #fff;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 12px 18px;
}

.product-card {
    min-width: 0;
}

.product-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f8fa;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #333;
}

.product-card-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: #8a919f;
}

/* Company */
.company-intro,
.company-detail {
    padding: 18px 16px;
}

.company-intro-media img,
.company-detail-media img {
    width: 100%;
    border-radius: 8px;
}

.company-intro-body h2,
.company-detail .section-head h2 {
    margin: 16px 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.company-intro-body p,
.company-detail-body p {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}

.btn-outline {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    border: 1px solid var(--brand);
    border-radius: 4px;
    font-size: 14px;
    color: var(--brand);
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* Partners */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 8px 12px 18px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Banners */
.cms-banner {
    width: 100%;
    height: auto;
}

/* Inner page banner */
.page-banner {
    position: relative;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(10, 32, 74, 0.5), rgba(10, 32, 74, 0.35));
}

.page-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 16px;
}

.page-banner-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.page-banner-subtitle {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.92;
}

/* Articles */
.article-list {
    padding: 8px 16px 18px;
}

.article-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.article-item:last-child {
    border-bottom: 0;
}

.article-img {
    flex: none;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    background: #f7f8fa;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    min-width: 0;
}

.article-body h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
}

.article-body time {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

/* Contact */
.contact-section {
    padding-bottom: 18px;
}

.contact-grid {
    padding: 0 16px;
}

.contact-map img {
    width: 100%;
    border-radius: 8px;
}

.contact-info {
    margin-top: 16px;
}

.contact-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
    border-bottom: 0;
}

.contact-ico {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    fill: var(--brand);
}

.contact-row span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.contact-row p {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.contact-row a {
    color: var(--brand);
    font-weight: 600;
}

.contact-actions {
    padding-top: 16px;
}

/* QA */
.qa-list {
    padding: 0 16px 18px;
}

.qa-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.qa-item summary {
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.qa-answer {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* Forms */
.cms-form {
    padding: 0 16px 20px;
}

.cms-form label {
    display: block;
    margin-bottom: 12px;
}

.cms-form label span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #666;
}

.cms-form label span i {
    font-style: normal;
    color: #e02020;
    margin-left: 2px;
}

.cms-form input,
.cms-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.cms-form input:focus,
.cms-form textarea:focus {
    border-color: var(--brand);
}

.cms-form button {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.cms-form-msg {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Certificates */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 16px 18px;
}

.cert-item img {
    width: 100%;
    border-radius: 6px;
}

.multi-text {
    padding: 0 16px 8px;
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}

/* Footer */
.cms-footer {
    margin-top: 10px;
    padding: 32px 16px 0;
    background: #0B2A4A;
    color: rgba(255, 255, 255, 0.8);
}

.cms-footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.cms-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
}

.cms-footer-logo img {
    height: 32px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.cms-footer-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.cms-footer-tagline {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.cms-footer-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.45);
}

.cms-footer-col h4 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.cms-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cms-footer-nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.cms-footer-nav a:hover {
    color: #fff;
}

.cms-footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cms-footer-contact li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.cms-footer-contact li > span {
    flex: 0 0 60px;
    color: rgba(255, 255, 255, 0.45);
}

.cms-footer-contact a {
    color: #fff;
    font-weight: 600;
}

.cms-footer-map a {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
}

.cms-footer-map a:hover {
    color: #fff;
}

.cms-footer-bottom {
    margin-top: 26px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.cms-copyright,
.cms-icp {
    margin: 0;
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.5);
}

.cms-icp a {
    color: rgba(255, 255, 255, 0.5);
}

.cms-icp a:hover {
    color: #fff;
}

/* Floating call */
.cms-float-call {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 24px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(51, 136, 255, 0.35);
}

.cms-float-call svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Desktop */
@media (min-width: 768px) {
    :root {
        --header-h: 72px;
    }

    .cms-header-inner {
        padding: 0 28px;
    }

    .cms-logo img {
        height: 48px;
        max-width: 360px;
    }

    .cms-logo-text {
        font-size: 20px;
    }

    .cms-nav {
        display: flex;
        gap: 38px;
    }

    .cms-nav a {
        font-size: 15px;
    }

    .cms-menu-toggle {
        display: none;
    }

    .cms-mobile-nav {
        display: none !important;
    }

    .cms-section,
    .cms-section--flush {
        max-width: 1200px;
        margin: 20px auto;
    }

    .cms-section {
        border-radius: 10px;
    }

    .page-banner {
        min-height: 300px;
    }

    .page-banner-inner {
        padding: 68px 28px;
    }

    .page-banner-title {
        font-size: 36px;
    }

    .page-banner-subtitle {
        font-size: 15px;
    }

    .section-head {
        padding: 26px 28px 10px;
    }

    .section-head h2 {
        font-size: 26px;
    }

    .section-sub {
        padding: 0 28px 10px;
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 10px 28px 28px;
    }

    .product-card h3 {
        font-size: 15px;
    }

    .partner-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 10px 28px 28px;
    }

    .company-intro {
        padding: 28px;
    }

    .company-intro-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
    }

    .company-intro-body h2 {
        margin-top: 0;
        font-size: 26px;
    }

    .company-detail {
        padding: 0 28px 28px;
    }

    .company-detail-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .company-detail .section-head {
        padding-left: 0;
        padding-right: 0;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 32px;
        padding: 0 28px 28px;
        align-items: start;
    }

    .contact-info {
        margin-top: 0;
    }

    .article-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 28px;
        padding: 10px 28px 28px;
    }

    .cms-form {
        max-width: 640px;
        margin: 0 auto;
        padding: 0 28px 28px;
    }

    .cert-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 10px 28px 28px;
    }

    .cms-footer {
        padding: 40px 28px 0;
    }

    .cms-footer-cols {
        grid-template-columns: 1.6fr 1fr 1.4fr;
        gap: 48px;
    }

    .cms-footer-inner {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Contact without map image */
.contact-grid--no-map {
    display: block;
}

@media (min-width: 768px) {
    .contact-grid--no-map {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Product categories */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 8px;
}

.category-chips a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    background: #f2f7ff;
    color: var(--brand);
    font-size: 13px;
}

.category-chips a:hover {
    background: var(--brand);
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 16px 20px;
}

.category-card {
    display: block;
    padding: 18px 16px;
    border: 1px solid #e8eef7;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(51, 136, 255, 0.12);
    transform: translateY(-2px);
}

.category-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.category-card h3 {
    margin: 12px 0 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}

.category-arrow {
    font-size: 13px;
    color: var(--muted);
}

.category-empty {
    padding: 24px 16px 32px;
    text-align: center;
}

.category-empty p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

@media (min-width: 768px) {
    .category-chips {
        padding: 0 28px 12px;
    }

    .category-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
        padding: 10px 28px 28px;
    }

    .category-card {
        padding: 24px 20px;
    }

    .category-card h3 {
        font-size: 18px;
    }
}

/* Narrow desktop: keep the nav airy without crowding the actions */
@media (min-width: 768px) and (max-width: 1120px) {
    .cms-nav {
        gap: 20px;
    }

    .cms-nav a {
        font-size: 14px;
    }
}

/* Product card image placeholder (products without photos yet) */
.product-card-img--empty .product-card-img-empty-text {
    font-size: 13px;
    color: #b0b8c4;
    letter-spacing: 2px;
}
