/* ── Design tokens ── */
.mw-page {
    --mw-teal: #0b769c;
    --mw-teal-light: #4da8c8;
    --mw-ink: #061f2b;
    --mw-ink-mid: #0d3545;
    --mw-text: #2a2a2a;
    --mw-text-muted: #5c5c5c;
    --mw-bg-page: #e8ebee;
    --mw-bg-section: #f0f2f4;
    --mw-bg-alt: #e2e6ea;
    --mw-border: rgba(11, 118, 156, 0.08);
    --mw-border-light: rgba(77, 168, 200, 0.25);
    --mw-radius: 0.08rem;
    --mw-radius-lg: 0.12rem;
    --mw-shadow-sm: 0 0.04rem 0.16rem rgba(6, 31, 43, 0.06);
    --mw-shadow-md: 0 0.08rem 0.32rem rgba(6, 31, 43, 0.1);
    --mw-shadow-lg: 0 0.12rem 0.48rem rgba(6, 31, 43, 0.14);
    --mw-section-pad: 0.96rem;
    --mw-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Page shell ── */
.mw-page {
    width: 10rem;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-x: clip;
    background-color: var(--mw-bg-page);
    color: var(--mw-text);
    font-family: FZLTHJW, sans-serif;
}

/* ── Hero ── */
.mw-hero {
    position: relative;
    width: 10rem;
    display: flex;
    flex-direction: column;
    color: #fff;
    overflow: hidden;
}

.mw-hero-media {
    position: relative;
    width: 10rem;
    height: 4.8rem;
    overflow: hidden;
}

.mw-hero-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(6, 31, 43, 0) 0%, rgba(6, 31, 43, 0.6) 100%);
    pointer-events: none;
}

.mw-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    transform: scale(1.02);
}

.mw-hero-waterline {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 0.013333rem;
    margin-top: -0.006667rem;
    background: linear-gradient(90deg, rgba(11, 118, 156, 0.2) 0%, rgba(77, 168, 200, 0.35) 50%, rgba(11, 118, 156, 0.2) 100%);
}

.mw-hero-panel {
    position: relative;
    z-index: 1;
    margin: -0.48rem 0.4rem 0.32rem;
    padding: 0.56rem 0.52rem 0.68rem;
    background: linear-gradient(165deg, var(--mw-ink) 0%, var(--mw-ink-mid) 100%);
    border: 1px solid rgba(77, 168, 200, 0.12);
    box-shadow: var(--mw-shadow-lg);
    box-sizing: border-box;
}

.mw-hero-inner {
    position: static;
    padding: 0;
}

.mw-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.16rem;
    margin: 0;
    font-weight: normal;
}

.mw-title-en {
    font-size: 0.48rem;
    line-height: 1.2;
    letter-spacing: 0.02rem;
    font-family: FZLTCHJW, sans-serif;
    font-weight: bold;
    color: #fff;
}

.mw-title-cn {
    font-size: 0.28rem;
    line-height: 1.2;
    font-family: FZLTHJW, sans-serif;
    font-weight: normal;
    letter-spacing: 0.02rem;
    color: rgba(255, 255, 255, 0.92);
}

.mw-hero-inner p {
    margin-top: 0.28rem;
    line-height: 0.56rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.32rem;
    font-family: FZLTHJW, sans-serif;
    text-align: justify;
    text-justify: inter-ideograph;
}

.mw-hero-inner p:first-of-type {
    margin-top: 0.56rem;
}

/* ── Sections ── */
.mw-overview,
.mw-systems,
.mw-more,
.mw-closing {
    width: 10rem;
    box-sizing: border-box;
}

.mw-overview {
    background-color: var(--mw-bg-section);
    padding: var(--mw-section-pad) 0;
}

.mw-systems {
    background-color: var(--mw-bg-alt);
    padding: var(--mw-section-pad) 0;
}

.mw-more {
    background-color: var(--mw-bg-section);
    padding: var(--mw-section-pad) 0;
    overflow-x: hidden;
    overflow-x: clip;
}

/* ── Section titles ── */
.mw-section-title {
    width: auto;
    padding: 0 0.4rem;
    margin: 0 0 0.48rem;
    background: none;
    display: block;
    box-sizing: border-box;
}

.mw-section-title-txt {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    color: var(--mw-text);
    font-family: FZLTCHJW, sans-serif !important;
}

.mw-section-title-txt--single {
    font-size: 0.4rem;
    line-height: 0.56rem;
}

.mw-section-title-en {
    font-size: 0.32rem;
    line-height: 0.44rem;
    color: var(--mw-teal);
    font-family: FZLTHJW, sans-serif !important;
    letter-spacing: 0.02rem;
}

.mw-section-title-cn {
    font-size: 0.4rem;
    line-height: 0.56rem;
    font-family: FZLTCHJW, sans-serif !important;
    color: var(--mw-text);
}

.mw-section-waterline {
    display: block;
    width: 0.8rem;
    height: 0.026667rem;
    margin-top: 0.2rem;
    background: linear-gradient(90deg, rgba(11, 118, 156, 0.45) 0%, rgba(77, 168, 200, 0.3) 70%, transparent 100%);
}

/* ── Media frame (video) ── */
.mw-media-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--mw-radius);
    overflow: hidden;
    background-color: var(--mw-ink);
    box-shadow: var(--mw-shadow-md);
    border: 1px solid var(--mw-border);
}

.mw-video-panel,
.mw-card-media {
    padding: 0 0.4rem;
}

.mw-video-panel .mw-media-frame,
.mw-card-media .mw-media-frame {
    margin: 0;
}

.mw-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: top;
    background-color: var(--mw-ink);
}

/* ── Overview intro ── */
.mw-intro {
    padding: 0.56rem 0.4rem 0;
}

.mw-intro-lead {
    font-size: 0.373333rem !important;
    line-height: 0.64rem !important;
    color: var(--mw-text);
    font-family: FZLTCHJW, sans-serif;
}

.mw-intro p,
.mw-card-body p,
.mw-closing p {
    line-height: 0.64rem;
    font-size: 0.346667rem;
    color: var(--mw-text);
    font-family: FZLTHJW, sans-serif;
    text-align: justify;
    text-justify: inter-ideograph;
}

.mw-intro p + p,
.mw-card-body p + p {
    margin-top: 0.28rem;
}

/* ── Three pillars ── */
.mw-pillars {
    margin-top: 0.56rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.24rem 0;
}

.mw-pillar {
    position: relative;
    width: 2.72rem;
    min-height: 2.24rem;
    padding: 0.4rem 0.28rem 0.4rem 0.36rem;
    background: linear-gradient(180deg, #f8fbfc 0%, #eef4f6 100%);
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius);
    box-shadow: var(--mw-shadow-sm);
    box-sizing: border-box;
    transition: box-shadow 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease);
}

.mw-pillar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28rem;
    bottom: 0.28rem;
    width: 0.04rem;
    border-radius: 0 0.02rem 0.02rem 0;
    background: linear-gradient(180deg, var(--mw-teal) 0%, var(--mw-teal-light) 100%);
}

.mw-pillar::after {
    content: "";
    position: absolute;
    top: 0.32rem;
    right: 0.28rem;
    width: 0.16rem;
    height: 0.2rem;
    border-radius: 50% 50% 50% 0;
    background: rgba(11, 118, 156, 0.12);
    transform: rotate(-45deg);
}

.mw-pillar-no,
.mw-card-no {
    color: var(--mw-teal);
    font-family: FZLTCHJW, sans-serif;
}

.mw-pillar-no {
    display: block;
    font-size: 0.453333rem;
    line-height: 1;
}

.mw-pillar strong,
.mw-slide-copy strong {
    display: block;
    margin-top: 0.24rem;
    font-family: FZLTCHJW, sans-serif;
    font-weight: normal;
    color: var(--mw-text);
}

.mw-pillar label {
    display: block;
    margin-top: 0.16rem;
    color: var(--mw-text-muted);
    line-height: 0.48rem;
    font-size: 0.293333rem;
    font-family: FZLTHJW, sans-serif;
}

@media (hover: hover) {
    .mw-pillar:hover {
        box-shadow: var(--mw-shadow-md);
        border-color: rgba(11, 118, 156, 0.18);
    }
}

/* ── System cards ── */
.mw-card-list {
    padding: 0 0.4rem;
}

.mw-card {
    margin-bottom: 0.48rem;
    background-color: #f8f9fb;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease);
}

@media (hover: hover) {
    .mw-card:hover {
        box-shadow: var(--mw-shadow-md);
        border-color: rgba(11, 118, 156, 0.18);
    }
}

.mw-card:last-child {
    margin-bottom: 0;
}

.mw-card-head {
    position: relative;
    padding: 0.48rem 0.4rem 0.4rem;
    background: linear-gradient(135deg, rgba(244, 248, 249, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-bottom: 1px solid var(--mw-border);
}

.mw-card-no {
    display: block;
    width: auto;
    font-size: 0.453333rem;
    line-height: 1;
    margin-bottom: 0.24rem;
    color: var(--mw-teal);
    font-family: FZLTCHJW, sans-serif;
}

.mw-card-head h2,
.mw-closing h2 {
    margin: 0 0 0.16rem;
    font-size: 0.453333rem;
    line-height: 0.613333rem;
    font-family: FZLTCHJW, sans-serif;
    font-weight: normal;
    color: var(--mw-text);
}

.mw-card-head p {
    margin: 0;
    color: var(--mw-teal);
    font-size: 0.306667rem;
    font-family: FZLTHJW, sans-serif;
    line-height: 0.44rem;
}

.mw-card-media {
    padding: 0.32rem 0.4rem 0;
}

.mw-card-body {
    padding: 0.32rem 0.4rem 0.52rem;
}

.mw-card-body p {
    color: var(--mw-text);
}

/* ── Links ── */
.mw-link {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
    margin-top: 0.36rem;
    padding: 0.24rem 0.4rem;
    min-height: 0.88rem;
    border: 1px solid var(--mw-teal);
    border-radius: var(--mw-radius);
    color: var(--mw-teal);
    text-decoration: none;
    font-size: 0.306667rem;
    font-family: FZLTHJW, sans-serif;
    cursor: pointer;
    transition: background-color 0.25s var(--mw-ease), color 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease), transform 0.25s var(--mw-ease);
    box-sizing: border-box;
}

.mw-link:active {
    transform: scale(0.98);
}

.mw-link::after {
    content: "";
    display: inline-block;
    width: 0.14rem;
    height: 0.14rem;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s var(--mw-ease);
}

.mw-link:hover {
    background-color: var(--mw-teal);
    color: #fff;
}

.mw-link:hover::after {
    transform: rotate(45deg) translate(0.02rem, -0.02rem);
}

.mw-link:focus-visible {
    outline: 2px solid var(--mw-teal);
    outline-offset: 2px;
}

/* ── Carousel ── */
.mw-carousel-wrap {
    position: relative;
    padding: 0 0.4rem;
}

.mw-carousel {
    padding: 0 0 0.16rem;
    overflow: hidden;
}

.mw-slide {
    display: block;
    width: 7.8rem;
    color: var(--mw-text);
    text-decoration: none;
    background-color: #f8f9fb;
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-lg);
    box-shadow: var(--mw-shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease), transform 0.25s var(--mw-ease);
}

@media (hover: hover) {
    .mw-slide:hover {
        box-shadow: var(--mw-shadow-md);
        border-color: rgba(11, 118, 156, 0.2);
    }
}

.mw-slide:active {
    transform: scale(0.995);
}

.mw-slide:focus-visible {
    outline: 2px solid var(--mw-teal);
    outline-offset: 2px;
}

.mw-slide-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--mw-bg-alt);
}

.mw-slide > img,
.mw-slide-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mw-slide-copy {
    padding: 0.36rem 0.32rem 0.44rem;
}

.mw-slide-copy strong {
    margin-top: 0;
    color: var(--mw-text);
    font-size: 0.346667rem;
    line-height: 0.48rem;
}

.mw-slide-copy span {
    display: block;
    margin-top: 0.12rem;
    color: var(--mw-text-muted);
    line-height: 0.48rem;
    font-size: 0.293333rem;
    font-family: FZLTHJW, sans-serif;
}

.mw-slide-copy em {
    display: inline-block;
    margin-top: 0.24rem;
    color: var(--mw-teal);
    font-size: 0.293333rem;
    font-style: normal;
    font-family: FZLTHJW, sans-serif;
}

.mw-carousel-pagination {
    position: static !important;
    width: 100%;
    text-align: center;
    margin-top: 0.36rem;
    padding-bottom: 0.08rem;
}

.mw-carousel-pagination .swiper-pagination-bullet {
    width: 0.12rem;
    height: 0.12rem;
    border-radius: 50%;
    background-color: #b8c2c8;
    opacity: 1;
    margin: 0 0.06rem;
    cursor: pointer;
    transition: width 0.25s var(--mw-ease), background-color 0.25s var(--mw-ease), border-radius 0.25s var(--mw-ease);
}

.mw-carousel-pagination .swiper-pagination-bullet-active {
    width: 0.4rem;
    border-radius: 0.06rem;
    background-color: var(--mw-teal);
}

.mw-carousel-pagination .swiper-pagination-bullet:focus-visible {
    outline: 2px solid var(--mw-teal);
    outline-offset: 2px;
}

.mw-carousel-prev,
.mw-carousel-next {
    position: absolute;
    top: calc(7.8rem * 10 / 16 / 2);
    z-index: 2;
    width: 0.64rem;
    height: 0.64rem;
    margin-top: 0;
    transform: translateY(-50%);
    border: 1px solid var(--mw-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--mw-shadow-sm);
    cursor: pointer;
    transition: background-color 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease), box-shadow 0.25s var(--mw-ease), transform 0.25s var(--mw-ease);
}

.mw-carousel-prev:hover,
.mw-carousel-next:hover {
    background: #fff;
    border-color: rgba(11, 118, 156, 0.25);
    box-shadow: var(--mw-shadow-md);
}

.mw-carousel-prev:active,
.mw-carousel-next:active {
    transform: translateY(-50%) scale(0.96);
}

.mw-carousel-prev:focus-visible,
.mw-carousel-next:focus-visible {
    outline: 2px solid var(--mw-teal);
    outline-offset: 2px;
}

.mw-carousel-prev {
    left: 0.16rem;
}

.mw-carousel-next {
    right: 0.16rem;
}

.mw-carousel-prev::after,
.mw-carousel-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.16rem;
    height: 0.16rem;
    margin-top: -0.08rem;
    border-top: 2px solid var(--mw-teal);
    border-right: 2px solid var(--mw-teal);
}

.mw-carousel-prev::after {
    margin-left: -0.04rem;
    transform: rotate(-135deg);
}

.mw-carousel-next::after {
    margin-left: -0.12rem;
    transform: rotate(45deg);
}

.mw-carousel-prev.swiper-button-disabled,
.mw-carousel-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* ── Closing (legacy) ── */
.mw-closing {
    padding: 0 0.4rem 0.933333rem;
}

.mw-closing-inner {
    padding: 0.666667rem 0.4rem 0.72rem;
    background: linear-gradient(160deg, #0d2e38 0%, #195060 100%);
    color: #fff;
    border-radius: var(--mw-radius-lg);
}

.mw-closing h2 {
    color: #fff;
}

.mw-closing p {
    margin: 0.266667rem 0 0;
    color: rgba(255, 255, 255, 0.82);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .mw-pillar,
    .mw-card,
    .mw-link,
    .mw-slide,
    .mw-carousel-pagination .swiper-pagination-bullet,
    .mw-carousel-prev,
    .mw-carousel-next {
        transition: none;
    }

    .mw-link:active,
    .mw-slide:active,
    .mw-carousel-prev:active,
    .mw-carousel-next:active {
        transform: none;
    }
}

/* ── Small screens ── */
@media screen and (max-width: 374px) {
    .mw-hero-media {
        height: 4.4rem;
    }

    .mw-hero-panel {
        margin-left: 0.32rem;
        margin-right: 0.32rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }

    .mw-section-title {
        padding: 0 0.32rem;
    }

    .mw-video-panel,
    .mw-card-media,
    .mw-intro,
    .mw-card-list {
        padding-left: 0.32rem;
        padding-right: 0.32rem;
    }

    .mw-card-head,
    .mw-card-body {
        padding-left: 0.32rem;
        padding-right: 0.32rem;
    }

    .mw-pillar {
        width: 100%;
        min-height: auto;
    }

    .mw-slide {
        width: 8.2rem;
    }

    .mw-carousel-wrap {
        padding: 0 0.32rem;
    }

    .mw-carousel-prev,
    .mw-carousel-next {
        top: calc(8.2rem * 10 / 16 / 2);
        display: none;
    }
}
