:root {
    --brand: #0B2A4A;
    --brand-dark: #081C33;
    --accent: #C8102E;
    --bg: #F5F7FA;
}

/* Header actions */
.cms-header-actions {
    display: none;
    align-items: center;
    gap: 22px;
}

.cms-header-phone {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.cms-header-phone:hover {
    opacity: 0.75;
}

.cms-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-header-cta:hover {
    background: #a50d26;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.28);
}

/* Hero */
.cms-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    overflow: hidden;
    background: var(--brand);
}

.cms-hero-bg {
    position: absolute;
    inset: 0;
}

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

/* Hero 轮播：复用通用 cms-carousel 结构，但铺满 hero 背景 */
.cms-hero-bg.cms-carousel {
    position: absolute;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    min-height: 0;
    background: var(--brand);
}

.cms-hero-dots {
    z-index: 3;
    bottom: 18px;
}

.cms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 22, 40, 0.95) 0%, rgba(6, 22, 40, 0.8) 45%, rgba(6, 22, 40, 0.35) 100%);
}

.cms-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px;
}

.cms-hero-content {
    max-width: 680px;
    color: #fff;
}

.cms-hero-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.cms-hero h1 {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 800;
}

.cms-hero-sub {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.cms-hero-desc {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
}

.cms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #a50d26;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    transition: background 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cms-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cms-hero-badges span {
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* Trust strip */
.cms-trust {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
}

.cms-trust-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 16px;
}

.cms-trust-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cms-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EEF4FB;
    color: var(--brand);
}

.cms-trust-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cms-trust-item h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.cms-trust-item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #6B7280;
}

/* Services */
.cms-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 16px 24px;
}

.cms-service-card {
    padding: 22px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
}

.cms-service-num {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.cms-service-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    color: #111827;
}

.cms-service-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #6B7280;
}

/* About */
.cms-about-inner {
    padding: 20px 16px;
}

.cms-about-media img {
    width: 100%;
    border-radius: 12px;
}

.cms-about-body {
    padding-top: 20px;
}

.cms-about-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.cms-about-body h2 {
    margin: 8px 0 14px;
    font-size: 24px;
    color: #111827;
}

.cms-about-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
    color: #4B5563;
}

.cms-about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.cms-about-stats div {
    padding: 14px 8px;
    border-radius: 8px;
    background: #F5F7FA;
    text-align: center;
}

.cms-about-stats strong {
    display: block;
    font-size: 22px;
    color: var(--brand);
}

.cms-about-stats span {
    font-size: 12px;
    color: #6B7280;
}

/* News */
.cms-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 16px 24px;
}

.cms-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cms-news-card:hover {
    box-shadow: 0 10px 26px rgba(11, 42, 74, 0.1);
    transform: translateY(-2px);
}

.cms-news-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EEF2F7;
}

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

.cms-news-cover--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0B2A4A 0%, #173E63 60%, #C8102E 160%);
}

.cms-news-cover--fallback span {
    font-size: 14px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
}

.cms-news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.cms-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #9CA3AF;
}

.cms-news-meta span {
    color: var(--accent);
    font-weight: 600;
}

.cms-news-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.5;
    color: #111827;
}

.cms-news-body p {
    flex: 1;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #6B7280;
}

.cms-news-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
}

/* Contact CTA */
.cms-contact-cta {
    background: var(--brand);
    color: #fff;
}

.cms-contact-cta-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px;
}

.cms-contact-cta h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.cms-contact-cta p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.cms-contact-cta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.cms-contact-cta-info a {
    color: #fff;
    font-weight: 700;
}

.cms-contact-cta .btn-primary {
    align-self: flex-start;
}

/* Article detail */
.cms-article-detail {
    padding: 32px 16px 48px;
}

.cms-article-detail-inner {
    max-width: 820px;
    margin: 0 auto;
}

.cms-article-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6B7280;
}

.cms-article-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #9CA3AF;
}

.cms-article-meta span {
    color: var(--accent);
    font-weight: 600;
}

.cms-article-detail h1 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.4;
    color: #111827;
}

.cms-article-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 12px;
}

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

.cms-article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
}

.cms-article-content h2 {
    margin: 28px 0 12px;
    font-size: 20px;
    color: #111827;
}

.cms-article-content p {
    margin: 0 0 14px;
}

.cms-article-content ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.cms-article-content li {
    margin-bottom: 8px;
}

.cms-article-cta {
    margin-top: 36px;
    padding: 24px;
    border-radius: 12px;
    background: #F5F7FA;
    text-align: center;
}

.cms-article-cta h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #111827;
}

.cms-article-cta p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6B7280;
}

/* Footer */
.cms-compliance {
    margin-top: 8px;
    font-size: 12px;
    color: #9CA3AF;
}

@media (min-width: 768px) {
    .cms-header-actions {
        display: flex;
    }

    .cms-hero {
        min-height: 600px;
    }

    .cms-hero-inner {
        padding: 96px 28px;
    }

    .cms-hero h1 {
        font-size: 48px;
    }

    .cms-hero-sub {
        font-size: 18px;
    }

    .cms-hero-desc {
        font-size: 15px;
    }

    .cms-trust-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        padding: 34px 28px;
    }

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

    .cms-about-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        padding: 28px;
    }

    .cms-about-body {
        padding-top: 0;
    }

    .cms-about-body h2 {
        font-size: 30px;
    }

    .cms-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
        padding: 10px 28px 32px;
    }

    .cms-contact-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 48px 28px;
    }

    .cms-contact-cta h2 {
        font-size: 30px;
    }

    .cms-article-detail {
        padding: 56px 28px 72px;
    }

    .cms-article-detail h1 {
        font-size: 36px;
    }

    .cms-article-content {
        font-size: 17px;
    }
}

/* 方案卡片双列排列（平板/桌面），覆盖默认 3 列 */
@media (min-width: 768px) {
    .cms-news-grid.cms-news-grid--2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cms-news-grid.cms-news-grid--2 .cms-news-card {
        flex-direction: row;
        align-items: stretch;
    }

    .cms-news-grid.cms-news-grid--2 .cms-news-cover {
        flex: none;
        width: 42%;
        aspect-ratio: auto;
    }

    .cms-news-grid.cms-news-grid--2 .cms-news-body {
        padding: 22px 24px;
    }

    .cms-news-grid.cms-news-grid--2 .cms-news-body h3 {
        font-size: 18px;
    }
}

/* Wide-screen container */
.cms-header-inner,
.cms-section,
.cms-footer-inner,
.cms-trust-inner,
.cms-hero-inner,
.cms-contact-cta-inner {
    max-width: 1680px;
}

/* Home product category showcase */
.cms-category-showcase .category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 8px 16px 24px;
}

.category-showcase-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #DCE6F2;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-showcase-card:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 26px rgba(11, 42, 74, 0.1);
    transform: translateY(-3px);
}

.category-showcase-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F2F7FF;
}

.category-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-showcase-media--placeholder {
    background: linear-gradient(135deg, #EAF4FF 0%, #F8FBFF 100%);
}

.category-showcase-placeholder {
    font-size: 42px;
    font-weight: 800;
    color: #C9DDF5;
}

.category-showcase-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.category-showcase-index {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.category-showcase-body h3 {
    margin: 6px 0 8px;
    font-size: 17px;
    line-height: 1.4;
    color: #111827;
}

.category-showcase-body p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #6B7280;
}

.category-showcase-series {
    margin-bottom: 12px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #F2F7FF;
    font-size: 12px;
    line-height: 1.5;
    color: var(--brand);
}

.category-showcase-more {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
}

.category-showcase-more span {
    font-size: 16px;
    line-height: 1;
}

@media (min-width: 768px) {
    .cms-category-showcase .category-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 10px 28px 32px;
    }

    .category-showcase-body h3 {
        font-size: 19px;
    }
}

@media (min-width: 1200px) {
    .cms-category-showcase .category-showcase-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Text marquee */
.cms-text-marquee {
    overflow: hidden;
    background: var(--brand);
    color: #fff;
}

.cms-text-marquee-track {
    display: flex;
    width: max-content;
    animation: cms-text-marquee var(--marquee-duration, 35s) linear infinite;
}

.cms-text-marquee:hover .cms-text-marquee-track {
    animation-play-state: paused;
}

.cms-text-marquee-group {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px 32px 14px 0;
    white-space: nowrap;
}

.cms-text-marquee-group span {
    font-size: 14px;
    letter-spacing: 0.04em;
}

.cms-text-marquee-dot {
    color: #ffb3c0;
    font-size: 16px;
}

@keyframes cms-text-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cms-text-marquee-track {
        animation: none;
    }

    .cms-text-marquee {
        overflow-x: auto;
    }
}

/* Partner logo marquee */
.cms-partners-section {
    overflow: hidden;
}

.cms-partners-marquee {
    position: relative;
    overflow: hidden;
    padding: 8px 0 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.cms-partners-track {
    display: flex;
    width: max-content;
    animation: cms-partners-marquee 40s linear infinite;
}

.cms-partners-marquee:hover .cms-partners-track {
    animation-play-state: paused;
}

.cms-partners-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
}

.cms-partners-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 120px;
    height: 64px;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
}

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

@keyframes cms-partners-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    .cms-partners-group {
        gap: 28px;
        padding-right: 28px;
    }

    .cms-partners-item {
        width: 180px;
        height: 90px;
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cms-partners-track {
        animation: none;
    }

    .cms-partners-marquee {
        overflow-x: auto;
    }
}
