@charset "utf-8";
/* ============================================================
   zt2630 廉洁视频 列表页
   按设计稿画布 1680 × 3355 还原：整页各图层按设计坐标绝对定位
   1em = 100 设计px（PC 端随宽度等比缩放）
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background-color: #f7efea;
    -webkit-text-size-adjust: 100%;
}

img {
    border: 0;
    display: block;
}

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

/* ---------------- 页面容器（设计稿 1680 × 3355） ---------------- */
.page {
    position: relative;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    font-size: 100px;
    /* 1em = 100 设计px */
}

/* 撑起画布高度（3406 / 1680，较设计稿 3355 加长 51，用于拉开列表与底图的间距）；
   用伪元素使百分比相对 .page 自身宽度计算 */
.page::before {
    content: "";
    display: block;
    padding-top: 202.7381%;
}

@media (max-width: 1680px) {
    .page {
        font-size: 5.952381vw;
    }
}

/* 各图层统一绝对定位，坐标即设计稿坐标 */
.page>* {
    position: absolute;
}

/* ---------------- 整页背景（设计稿 y 565 ~ 3356） ---------------- */
.bg {
    left: 0;
    top: 5.65em;
    width: 16.8em;
    z-index: 1;
}

/* ---------------- 头部（设计稿 y 0 ~ 944，底部渐隐羽化） ---------------- */
.header {
    left: 0;
    top: 0;
    width: 16.8em;
    line-height: 0;
    z-index: 4;
}

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

/* ---------------- 文字介绍（设计稿 bbox 168,693,1540,1245） ---------------- */
.intro {
    left: 1.68em;
    top: 6.93em;
    width: 13.72em;
    z-index: 3;
}

/* ---------------- 列表区（设计稿 y 1281 ~ 3027，内部布局不变） ---------------- */
.list-wrap {
    left: 0;
    top: 12.81em;
    width: 16.8em;
    height: 17.46em;
    z-index: 5;
}

.list-inner {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

/* ---------------- 列表标题栏 ---------------- */
.banner {
    position: absolute;
    left: 1.37em;
    width: 13.81em;
    height: 0.52em;
    display: flex;
    align-items: center;
}

.banner.b1 {
    top: 0;
}

.banner.b2 {
    top: 9.36em;
}

.banner img {
    height: 0.52em;
    width: auto;
    flex: 0 0 auto;
}

.banner .deco-l {
    width: 5.22em;
}

.banner .deco-r {
    width: 5.24em;
}

.banner h2 {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 0.44em;
    line-height: 1;
    font-weight: bold;
    color: #ef6a2a;
    white-space: nowrap;
    overflow: hidden;
}

/* ---------------- 稿件卡片列表 ---------------- */
.cards {
    position: absolute;
    left: 1.37em;
    width: 13.81em;
    display: flex;
    flex-wrap: wrap;
    /* 行间距 20px（0.2em），列间距 83px */
    gap: 0.2em 0.83em;
}

.cards.c1 {
    top: 0.97em;
}

.cards.c2 {
    top: 10.39em;
}

.card {
    width: 4.05em;
    transition: transform 0.3s ease;
}

/* 鼠标滑入微微放大 */
.card:hover {
    transform: scale(1.03);
}

.card .cover {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 61.4815%;
    /* 249 / 405 */
    overflow: hidden;
    /* 封面圆角，随布局等比缩放（1680 宽下 = 10px） */
    border-radius: 0.1em;
}

.card .cover img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .card-title {
    height: 0.82em;
    /* 收窄左右内边距，把标题可用宽度放到 405 - 2x5 = 395px */
    padding: 0 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.card .card-title span {
    /* 单行容下 16 个中文字符（16 x 24px = 384px <= 395px）；
       如《分明的边界》石油工程技术研究院 */
    font-size: 0.24em;
    line-height: 1.25;
    font-weight: bold;
    color: #1f1f1f;
    /* PC 端白色描边：用 text-shadow 描边，兼容性最好，
       不会像 -webkit-text-stroke 那样在部分浏览器上盖住字身（见下方说明） */
    text-shadow:
        -0.05em -0.05em 0 #fff,
        0 -0.05em 0 #fff,
        0.05em -0.05em 0 #fff,
        -0.05em 0 0 #fff,
        0.05em 0 0 #fff,
        -0.05em 0.05em 0 #fff,
        0 0.05em 0 #fff,
        0.05em 0.05em 0 #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ---------------- 更多按钮 ---------------- */
.more {
    position: absolute;
    left: 13.89em;
    width: 1.3em;
    display: block;
    transition: transform 0.3s ease;
}

/* 鼠标滑入微微放大 */
.more:hover {
    transform: scale(1.05);
}

.more.m1 {
    top: 7.95em;
}

.more.m2 {
    top: 17.4em;
}

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

/* ---------------- 底部装饰（完整图层裁掉画布外部分，设计稿 x 0~1680, y 2773~3356） ---------------- */
/* 与列表部分重合：层级低于列表，列表内容压在其上；
   较设计稿再下移 0.5em（50 设计px），拉开列表与底图的视觉间距 */
.footer {
    left: 0;
    top: 28.23em;
    width: 16.8em;
    z-index: 2;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 768px) {
    body {
        background-color: #f7efea;
    }

    /* 移动端取消设计稿画布的固定比例，各图层恢复文档流 */
    .page {
        font-size: 16px;
    }

    .page::before {
        display: none;
    }

    .page>* {
        position: static;
    }

    /* 整页背景图在移动端不铺（用页面底色），避免等比拉伸失真 */
    .bg {
        display: none;
    }

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

    .header img {
        width: 100%;
    }

    /* 按设计稿上移，覆盖头部底部的渐隐羽化区（重叠 251/1680 ≈ 14.94% 宽度） */
    .intro {
        width: 88%;
        margin: -14.94% auto 0;
    }

    .list-wrap {
        width: 100%;
        height: auto;
    }

    .list-inner {
        position: static;
        padding: 0.5rem 0 1.2rem;
    }

    .banner,
    .cards,
    .more {
        position: static;
        left: auto;
        width: auto;
        top: auto;
    }

    .banner {
        margin: 0.6rem 4% 0.8rem;
        height: auto;
    }

    .banner img {
        height: 1rem;
        width: auto;
    }

    .banner .deco-l,
    .banner .deco-r {
        width: 4.2rem;
    }

    .banner h2 {
        font-size: 1.4rem;
    }

    .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin: 0 4%;
    }

    .card {
        width: calc(50% - 0.35rem);
    }

    .card .card-title {
        height: auto;
        min-height: 2.5rem;
        padding: 0.35rem 0.3rem;
        background: linear-gradient(180deg, #f2b6b0 0%, #f4c0ba 100%);
    }

    .card .card-title span {
        font-size: 0.8rem;
        line-height: 1.3;
        /* 移动端不加粗、不加描边 */
        font-weight: normal;
        text-shadow: none;
    }

    .more {
        text-align: right;
        margin: 0.7rem 4% 0;
    }

    .more img {
        width: 4rem;
        margin-left: auto;
    }

    .footer {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .banner .deco-l,
    .banner .deco-r {
        width: 3.2rem;
    }

    .banner h2 {
        font-size: 1.4rem;
    }

    .card .card-title span {
        font-size: 0.75rem;
    }
}
