@charset "UTF-8";
@font-face {
    font-family: "PhetsarathOT";
    src: url("https://www.kunming.cn/ztalbum/statics/font/PhetsarathOT.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Myanmar";
    src: url("https://www.kunming.cn/ztalbum/statics/font/Myanmar3.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
    --red: #C50D0D;
    --deep-red: #8c1417;
    --cream: linear-gradient(90deg, #f6f5f4 0%, #fcfaf1 100%);
    --title-red: #990000;
    --desc-red: #b4553f;
    --tag-red: #C81414;
    --desc-grey: #A19981;
    --page-background: #fff;
}

* {
    box-sizing: border-box;
}
#top, #top * {
    box-sizing: content-box;
}

html {
    width: 100%;
    min-height: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--title-red);
    background: var(--page-background);
    font: 400 16px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
}

h1,
h2,
h3 {
    font-size: inherit;
    font-weight: 700;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
    border: 0;
}

button {
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
}

.mobile-only {
    display: none;
}

/* ============ PC ============ */
.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

/* 顶部主视觉：1920 x 974 */
.banner {
    width: 100%;
    line-height: 0;
}

.banner img {
    width: 100%;
    height: auto;
}

/* 轮播区：背景 1920 x 735，向上压住主视觉 450px（23.4375% 画布宽） */
.carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: -23.4375%;
    aspect-ratio: 3840 / 1470;
    background: url(./image/swiper_wrapper_bg.png) no-repeat center top / cover;
}

/* 相框：1119 x 606；背景按原图比例铺满，不拉伸（原图 1119x627，上下各裁约 10.5px 阴影） */
.frame {
    position: relative;
    width: 58.28125%;
    aspect-ratio: 1119 / 606;
    background: url(./image/swiper_box_bg.png) no-repeat center / cover;
    /* 切换时避免高度抖动 */
    flex: 0 0 auto;
}

/* 轮播卡片：793 x 550，居中于相框内；padding 21.5px 按相框宽换算为 1.9214% */
.frame__inner {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: 70.8667%;
    aspect-ratio: 793 / 550;
    padding: 1.9214%;
    overflow: hidden;
    background: linear-gradient(180deg, #e1cb754d 0%, #fffbf1bf 74%);
    transform: translate(-50%, -50%);
}

.carousel-swiper {
    width: 100%;
    overflow: hidden;
}

/* Swiper 未加载/未初始化时只显示第一条，避免所有条目纵向堆叠 */
.carousel-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: block;
}

.carousel-swiper:not(.swiper-initialized) .swiper-slide ~ .swiper-slide {
    display: none;
}

/* 仅一条内容时隐藏无意义的控制 */
.is-single .frame__nav,
.is-single .frame__pager {
    display: none;
}

.slide {
    display: block;
}

/* 轮播图片：750 x 422 */
.slide__pic {
    display: block;
    width: 100%;
    aspect-ratio: 750 / 422;
    overflow: hidden;
    background: #2b0a09;
}

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

/* 图片说明文字 */
.slide__cap {
    display: -webkit-box;
    margin-top: 1.6%;
    overflow: hidden;
    color: #990000;
    font-family: "Times New Roman", Georgia, "Songti SC", serif;
    font-size: clamp(13px, 1.25vw, 24px);
    font-weight: 700;
    line-height: normal;
    text-align: justify;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.frame__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 1.4%;
    font-size: 0;
}

.frame__pager .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    opacity: 1;
    background: #c9a89c;
    transition: background-color .2s ease, transform .2s ease;
}

.frame__pager .swiper-pagination-bullet-active {
    background: var(--red);
    transform: scale(1.15);
}

/* 左右切换按钮：距轮播卡片(793x550)边缘 30px，垂直居中于卡片
   下称百分比均以相框宽 1119 为基准：
   卡片左内缩 163px = 14.5666%，间距 30px = 2.6810%，按钮宽 26px = 2.3235% */
.frame__nav {
    position: absolute;
    top: 50%;
    width: 2.3235%;
    aspect-ratio: 52 / 218;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: .9;
    transition: opacity .2s ease, transform .2s ease;
}

.frame__nav:hover,
.frame__nav:focus-visible {
    opacity: 1;
}

.frame__nav--prev {
    left: calc(14.5666% - 2.6810% - 2.3235%);
    background-image: url(./image/left.png);
}

.frame__nav--next {
    right: calc(14.5666% - 2.6810% - 2.3235%);
    background-image: url(./image/right.png);
}

.frame__nav--prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.frame__nav--next:hover {
    transform: translateY(-50%) translateX(2px);
}

/* 栏目标题：装饰线 1200 x 29，标题图 248 x 63 */
.section-title {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 62.5%;
    aspect-ratio: 1200 / 29;
}

.section-title__line {
    position: absolute;
    inset: 0;
    background: url(./image/title_bg.png) no-repeat center bottom / contain;
}

/* 248 / 1200 = 20.6667%，高度按图比例自动为 63 */
.section-title img {
    position: relative;
    width: 20.6667%;
    height: auto;
}

/* 多语种报道 */
.reports {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 1100px;
    max-width: calc(100% - 40px);
    margin: 31px auto 0;
    padding-bottom: 69px;
}

.report {
    position: relative;
    display: flex;
    gap: 25px;
    padding: 38px;
    background: var(--cream);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(140, 20, 23, .12);
    transition: box-shadow .25s ease, transform .25s ease;
}

.report:hover {
    box-shadow: 0 8px 22px rgba(140, 20, 23, .22);
    transform: translateY(-2px);
}

/* 缩略图：276 x 155；align-self 防止被 flex 拉伸覆盖比例 */
.report__thumb {
    flex: 0 0 276px;
    align-self: flex-start;
    width: 276px;
    max-width: 40%;
    height: auto;
    aspect-ratio: 276 / 155;
    object-fit: cover;
    border-radius: 2px;
    background: #2b0a09;
}

.report__body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.report > .report__more {
    position: absolute;
    top: 38px;
    right: 38px;
    z-index: 1;
    line-height: 1.6;
}

.report__main {
    display: flex;
    flex: 1 1 auto;
    gap: inherit;
    min-width: 0;
}

.report__image {
    flex: 0 0 276px;
    align-self: flex-start;
    width: 276px;
    max-width: 40%;
}

.report__image .report__thumb {
    width: 100%;
    max-width: 100%;
}

.report__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.report__header .report__tag {
    max-width: calc(50% - 6px);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.report__content {
    display: block;
}

.report__tag {
    display: inline-block;
    padding: 6px 15px;
    color: #FFF3C1;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: var(--tag-red);
    border-radius: 4px;
}

.report__more {
    text-transform: none;
}

.report__more:lang(lo) {
    font-family: "PhetsarathOT", "Microsoft YaHei", sans-serif;
}

.report__more:lang(my) {
    font-family: "Myanmar", "Microsoft YaHei", sans-serif;
}

.report__title {
    margin-top: 10px;
    color: var(--title-red);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.36;
}

.report__desc {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--desc-grey);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.report--red {
    background: var(--red);
}

.report--red .report__tag {
    color: var(--red-tag);
    background: #FFFAD6;
}

.report--red .report__title {
    color: #fff;
}

.report--red .report__desc {
    color: #f6dcd3;
}

/* 老挝语 */
[lang="lo"] {
    font-family: "PhetsarathOT", "Microsoft YaHei", sans-serif;
}

/* 缅甸语 */
[lang="my"] {
    font-family: "Myanmar", "Microsoft YaHei", sans-serif;
    line-height: 1.9;
}

@media (prefers-reduced-motion: reduce) {
    .report,
    .carousel-swiper .swiper-wrapper {
        transition: none !important;
    }
}

/* ============ 移动端 ============ */
@media (max-width: 750px) {
    .tts {
        display: none;
    }
    .pc-only {
        display: none !important;
    }

    .container_m.mobile-only {
        display: block;
        width: 100%;
        min-width: 320px;
        min-height: 100vh;
        overflow: hidden;
        background: #fff;
    }

    .banner_m {
        width: 100%;
        line-height: 0;
    }

    .banner_m img {
        width: 100%;
        height: auto;
    }

    .carousel_m {
        position: relative;
        /* 仅压住主视觉底部的浅色过渡区，不遮挡主题文字 */
        margin-top: -38%;
        padding: 0 16px;
    }

    .frame_m {
        position: relative;
        width: 100%;
    }

    /* 移动端不显示相框图形，卡片按内容自适应高度，避免多语种文字被裁切 */
    .frame_m__inner {
        position: static;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 12px;
        overflow: hidden;
        background: linear-gradient(180deg, #e1cb754d 0%, #fffbf1bf 74%);
        border-radius: 10px;
        box-shadow: 0 3px 8px rgba(140, 20, 23, .12);
        transform: none;
    }

    .frame_m .slide__cap {
        min-height: 2.9em;
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.45;
        text-align: left;
        overflow-wrap: anywhere;
    }

    /* 分页与箭头共用独立控制行，避免遮挡图片和说明文字。 */
    .frame_m .frame__pager {
        width: auto;
        /* min-height: 44px; */
        gap: 2px;
        margin: 8px 44px;
    }

    .frame_m .frame__pager .swiper-pagination-bullet {
        position: relative;
        flex: 0 0 28px;
        width: 28px;
        /* height: 44px; */
        background: transparent;
        border-radius: 0;
        transform: none;
    }

    .frame_m .frame__pager .swiper-pagination-bullet::after {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 7px;
        height: 7px;
        content: "";
        background: #c9a89c;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

    .frame_m .frame__pager .swiper-pagination-bullet-active::after {
        background: var(--red);
        transform: translate(-50%, -50%) scale(1.15);
    }

    .frame_m .frame__nav {
        display: none;
        top: auto;
        bottom: 12px;
        z-index: 1;
        width: 44px;
        height: 44px;
        aspect-ratio: auto;
        background-size: 8px 34px;
        opacity: 1;
        transform: none;
        touch-action: manipulation;
    }

    .frame_m .frame__nav--prev {
        left: 12px;
    }

    .frame_m .frame__nav--next {
        right: 12px;
    }

    .section-title_m {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: clamp(56px, 14vw, 80px);
        margin: 24px auto 0;
    }

    .section-title_m__line {
        position: absolute;
        inset: 0;
        background: url(./image/title_bg.png) no-repeat center / auto clamp(18px, 5.2vw, 28px);
    }

    .section-title_m img {
        position: relative;
        width: clamp(170px, 40vw, 280px);
        max-width: 80%;
        height: auto;
        top: -10px;
    }

    .reports_m {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px 16px 40px;
    }

    .report_m {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        background: var(--cream);
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(140, 20, 23, .12);
    }

    .report_m__thumb {
        flex: 0 0 auto;
        align-self: flex-start;
        width: 100%;
        height: auto;
        aspect-ratio: 276 / 155;
        object-fit: cover;
        border-radius: 4px;
        background: #2b0a09;
    }

    .report_m__body {
        flex: 1 1 auto;
        min-width: 0;
        padding-bottom: 36px;
    }

    .report_m .report__main {
        flex-direction: column;
    }

    .report_m__content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }

    .report_m__title {
        display: -webkit-box;
        margin-top: 0;
        padding-left: 0;
        overflow: hidden;
        color: var(--title-red);
        font-family: var(--font-serif);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow-wrap: anywhere;
    }

    .report_m__desc {
        display: -webkit-box;
        margin-top: 6px;
        overflow: hidden;
        color: var(--desc-red);
        font-family: var(--font-serif);
        font-size: 14px;
        line-height: 1.5;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow-wrap: anywhere;
    }

    .report_m__title:lang(lo),
    .report_m__desc:lang(lo) {
        font-family: "PhetsarathOT", "Microsoft YaHei", sans-serif;
        line-height: 1.7;
    }

    .report_m__title:lang(my),
    .report_m__desc:lang(my) {
        font-family: "Myanmar", "Microsoft YaHei", sans-serif;
        line-height: 1.9;
    }

    .report_m--red {
        background: var(--red);
    }

    .report_m--red .report__tag {
        color: var(--red);
        background: var(--cream);
    }

    .report_m--red .report_m__title {
        color: #fff;
    }

    .report_m--red .report_m__desc {
        color: #f6dcd3;
    }

    .report_m .report__tag {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 1;
        max-width: calc(100% - 40px);
        padding: 3px 8px;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .report_m .report__more {
        position: absolute;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: auto;
        max-width: calc(100% - 24px);
    }
}
