@charset "UTF-8";

/* HarmonyOS_Sans_Regular.ttf 实测只含 874 个码位、0 个中日韩字形，
   仅能渲染英文/数字，中文回退到完整的苹方字库 */
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('/static/fonts/HarmonyOS_Sans_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   华苏首届智能体大赛 · TOP10 结果页
   所有样式均以 .er2- 前缀限定在本页容器内，避免污染全站
   ========================================================================== */
.er2-page {
    background: #fff;
    color: #1b2350;
    overflow-x: hidden;
}

.er2-container {
    width: min(1333.5px, 96%);
    margin: 0 auto;
}

/* ---------- 顶部 Banner ---------- */
.er2-hero {
    position: relative;
    /* height: 600px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url("/static/images/eventRegistration2/banner.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    aspect-ratio: 1920 / 615;
    /* background-position: center top; */
}

.er2-hero-inner {
    position: absolute;
    z-index: 2;
    max-width: 560px;
    left: 17%;
    bottom: 28%;
    margin: 0;
}

.er2-hero-badge {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 35px;
    color: #002DA0;
    margin-bottom: 265px;
}

.er2-hero-title {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 2px;
    color: #141a3c;
    margin: 0 0 14px;
}

.er2-hero-sub {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #141a3c;
    margin: 0 0 20px;
}

.er2-hero-sub em {
    font-style: normal;
    background: linear-gradient(92deg, #ff4db0 0%, #b847ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.er2-hero-desc {
    font-size: 16px;
    color: #5a648f;
    margin: 0 0 34px;
}

.er2-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.er2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 55px;
    border-radius: 999px;
    font-size: 22px;
    font-weight: 400;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.er2-btn-primary {
    color: #fff;
    background: linear-gradient(45deg, #642ef4 0%, #428ffa 50%, #428ffa 100%);
    box-shadow: 0 10px 24px rgba(80, 80, 255, 0.28);
}

.er2-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(80, 80, 255, 0.36);
}

.er2-btn-arrow {
    font-style: normal;
    margin-left: 8px;
    transition: transform 0.25s ease;
}

.er2-btn-primary:hover .er2-btn-arrow {
    transform: translateX(4px);
}

.er2-btn-ghost {
    color: #000;
    background: #fff;
    border: 1px solid #e6eaff;
    box-shadow: 0 6px 18px rgba(27, 35, 80, 0.1);
    padding: 0 55px;
}

.er2-btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(27, 35, 80, 0.14);
}

/* 数据统计条 —— 在 bg-wrap 底部居中展示 */
.er2-stats {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(31, 42, 120, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 13.5px 12px;
    margin: 0 auto;
}

.er2-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 6px;
}

.er2-stat+.er2-stat {
    border-left: 1px solid #edf0fa;
}

.er2-stat-txt {
    margin-left: 30px;
}

.er2-stat img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.er2-stat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #040745;
    line-height: 1.2;
    white-space: nowrap;
}

.er2-stat b em {
    font-style: normal;
    font-size: 20px;
    font-weight: 700;
    margin-left: 3px;
    color: #040745;
}

.er2-stat span {
    display: block;
    margin-top: 4px;
    font-weight: 500;
    font-size: 14px;
    color: #40414E;
}

/* ---------- 背景容器（承载十强 / 纪念品 / 参赛者墙 / 底部标语条） ---------- */
.clear-folat {
    clear: both;
}

.er2-bg-wrap {
    position: relative;
    background-image: url("/static/images/eventRegistration2/背景.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;      /* 宽度铺满，高度按底图原始比例，避免随内容无限拉伸变形 */
    width: 100%;
    height: auto;                    /* 由内容撑起 */
    padding-top: 15px;
    padding-bottom: 15px;
}

.er2-footer-bg {
    position: relative;
    background-image: url("/static/images/eventRegistration2/底部背景.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 350px;
}

.er2-section-container {
    /* 回到文档流，让自身高度计入父容器 */
    position: relative;
    margin: 0 auto 0px;          /* 顶贴 bg-wrap 上沿 15px，底留 60px 给后续内容 */
    background: #F4F9FE;
    border-radius: 10px;
    border: 1px solid #C7DEFD;
    box-sizing: border-box;
    z-index: 2;
}

/* 容器内各 section 的背景统一透明，让 .er2-bg-wrap 的底图透出 */
.er2-section,
.er2-footer-strip {
    background: transparent !important;
}



/* ---------- 通用板块 ---------- */
.er2-section {
    padding: 50px 0 20px;
}

.er2-sec-head {
    text-align: center;
    margin-bottom: 25px;
}

.er2-sec-head h2 {
    letter-spacing: 3px;
    margin: 0 0;
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 36px;
    color: #000000;
}

.er2-sec-head p {
    margin: 0;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 20px;
    color: #5C647B;
    margin-top: 20px;
}

/* ---------- 十强席位 ---------- */
#er2-top10 {
    scroll-margin-top: 100px;
}

.er2-award-card {
    position: relative;
    overflow: hidden;
}

.er2-award-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.er2-medal {
    display: inline-flex;
    align-items: center;
    height: 26px;
    /* padding: 0 14px; */
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 30px;
    color: #9F3E18;
}

/* .er2-medal-gold {
    background: linear-gradient(96deg, #ffb63d, #ff8a3d);
} */

.er2-medal-silver {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 26px;
    color: #062FF9;
    position: absolute;
    top: 13%;
    left: 25%;
}

.er2-medal-bronze {
    background: linear-gradient(96deg, #e8a06b, #d97b4a);
}

/* 一等奖横幅 */
.er2-award-first {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1330 / 214;
    background: url("/static/images/eventRegistration2/一等奖.png") center / cover no-repeat;
    box-shadow: 0 18px 44px rgba(43, 58, 150, 0.14);
    margin-bottom: 20px;
}


.er2-award-first-txt {
    /* margin-left: 24%; */
    position: absolute;
    left: 24%;
    top: 15%;
}

.er2-award-first-txt h3 {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 30px;
    color: #02086E;
    position: absolute;
    left: -65%;
    margin-top: 15px;
    width: 400px;
}


.er2-award-span-1 {
    position: absolute;
    margin-top: 70px !important;
    display: flex;
    width: 400px;
    gap: 20px;
    left: -65%;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 20px;
    color: #02086E;
    align-items: center;
}

.await-public {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 20px;
    color: #02086E;
}

.await-obn {
    background: #EDF8FD;
    border-radius: 19px;
    border: 1px solid #C7DEFD;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 16px;
    color: #001EFB;
    padding: 8px 20px;
}

.await-obn2 {
    background: #D9E9FD;
    border-radius: 19px;
    border: 1px solid #C7DEFD;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 16px;
    color: #2B5EF6;
    position: absolute;
    position: absolute;
    bottom: 12%;
    left: 8%;
    padding: 8px 25px
}

/* 二等奖 */
.er2-award-second-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.er2-award-second {
    position: relative;
    border-radius: 12px;
    background-image: url("/static/images/eventRegistration2/二等奖.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: 0 14px 34px rgba(43, 58, 150, 0.08);
    aspect-ratio: 435 / 245;
    overflow: hidden;
}

/* 文字组 absolute 贴背景图，参考一等奖做法 */
.er2-award-second .er2-award-txt {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.er2-award-second .er2-medal {
    align-self: flex-start;
}

.er2-award-second .er2-award-txt h3 {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 20px;
    color: #02086E;
    position: absolute;
    left: 8%;
    width: 400px;
    top: 40%;
}

.er2-award-second .await-persion-public {
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 16px;
    color: #4F5F8D;
    position: absolute;
    top: 55%;
    left: 8%;
}


/* 三等奖 */
.er2-award-third-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.er2-award-third {
    border-radius: 16px;
    aspect-ratio: 188 / 245;
    box-shadow: 0 12px 26px rgba(43, 58, 150, 0.1);
}

.er2-award-third .er2-award-txt {
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.er2-award-third .er2-medal {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 20px;
    color: #0037E0;
    position: absolute;
    top: 7%;
    left: 38%;


}

.er3-award-bg {
    height: 101%;
}

.er2-award-third2 {
    aspect-ratio: 188 / 245;
}

p.zuopin-await {
    left: 10%;
    position: absolute;
    top: 25%;
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 20px;
    color: #000000;
}

p.persion-await {
    position: absolute;
    top: 38%;
    left: 10%;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 18px;
    color: #5F6481;
}

.er2-award-note {
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 19px;
    color: #788198;
    margin-top: 45px;
    text-align: center;
}

/* ---------- 纪念品发放 ---------- */
.er2-section-gift {
    background: linear-gradient(180deg, #fff 0%, #f5f8ff 14%, #f5f8ff 86%, #fff 100%);
}

/* 礼品展示（礼盒 + 01/02/03 三件单品） */
.er2-gift-products {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.er2-gift-prod {
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(43, 58, 150, 0.08);
    overflow: hidden;
}

/* 头部：左数字徽章 | 右垂直堆叠文字 */
.er2-gift-prod-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* 右侧文字组 —— h3 + p 垂直对齐 */
.er2-gift-prod-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.justify-content{
    justify-content: center;
    align-items: center;
}

.align-center{
    text-align: center;
}
.er2-gift-prod-head h3{
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 16px;
    color: #1A3C93;
}
.er2-gift-prod-info h3 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 16px;
    color: #1A3C93;
}

.er2-gift-prod-info p {
       margin: 0;
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 13px;
    color: #8A939E;
    margin-top: 4px;
}

/* 数字徽章 */
.er2-gift-prod-no {
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: #e5eefe;
    /* border: 1px solid #c7defd; */
    color: #4d61a5;
    font-size: 13px;
    font-weight: 800;
    line-height: 31px;
    text-align: center;
}

/* lead 款（大礼盒卡）隐藏编号徽章 */
.er2-gift-prod-lead .er2-gift-prod-no {
    display: none;
}

.er2-gift-prod-img {
    flex: 1;
    height: 170px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.er2-gift-prod-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.er2-gift-prod:hover .er2-gift-prod-img img {
    transform: scale(1.04);
}

/* 领取现场照片 —— 一行 4 列水平无缝无限滚动（JS 驱动） */
.er2-gift-scroller {
    overflow: hidden;
    margin-top: 16px;
}

.er2-gift-track {
    display: flex;
    gap: 10px;
    width: max-content;
    will-change: transform;
}

/* hover 暂停由 JS 控制，此处不写 CSS animation */
.er2-gift-scroller.is-paused .er2-gift-track {
    /* JS 端已停掉 RAF，留个 class 做视觉标记 */
}

/* 每张图固定宽度，由 JS 写入 --er2-gift-w，一行刚好 4 张可见
   注意：track 是 width:max-content，百分比 flex-basis 在此无法解析，必须用固定像素 */
.er2-gift-scroller .er2-gift-item {
    flex: 0 0 var(--er2-gift-w, 300px);
    width: var(--er2-gift-w, 300px);
    min-width: var(--er2-gift-w, 300px);
    max-width: var(--er2-gift-w, 300px);
}

.er2-gift-note {
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 24px;
    color: #153990;
}

.er2-gift-item {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #fff;   /* 图片未加载时也有底色，不会露出突兀空白 */
    box-shadow: 0 12px 28px rgba(43, 58, 150, 0.1);
}

/* 滚动轨道内的卡片永久可见，不参与渐显动画 */
.er2-gift-track .er2-gift-item {
    opacity: 1 !important;
    transform: none !important;
}

.er2-gift-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.er2-gift-item:hover img {
    transform: scale(1.05);
}

.er2-gift-item figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    background: rgba(20, 26, 60, 0.55);
    backdrop-filter: blur(4px);
}

/* ---------- 参赛者墙 ---------- */
.er2-wall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.er2-wall-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(43, 58, 150, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.er2-wall-item img {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.er2-wall-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(43, 58, 150, 0.14);
}

/* ---------- 底部标语条 ---------- */
.er2-footer-strip {
    position: relative;
    overflow: hidden;
    padding: 66px 0 60px;
}

.er2-strip-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.er2-strip-txt {
    position: relative;
    z-index: 1;
    text-align: center;
}

.er2-strip-txt h2 {
    margin: 0 0 12px;
    font-family: HarmonyOS Sans SC;
    font-weight: bold;
    font-size: 36px;
    color: #07197C;
}

.er2-strip-txt p {
    font-family: HarmonyOS Sans SC;
    font-weight: 500;
    font-size: 16px;
    color: #2E3352;
    margin-top: 20px;
}

/* ---------- 图片点击放大 ---------- */
.er2-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity .22s ease;
    cursor: zoom-out;
}

.er2-lightbox.is-open { opacity: 1; }
.er2-lightbox.is-leaving { opacity: 0; }

.er2-lb-mask {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 40, 0.78);
    backdrop-filter: blur(6px);
}

.er2-lb-wrap {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    transform: scale(.92);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.er2-lightbox.is-open .er2-lb-wrap { transform: scale(1); }

.er2-lb-img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: min(92vw, 1400px);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.er2-lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #141a3c;
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: transform .18s ease;
}

.er2-lb-close:hover { transform: scale(1.08) rotate(90deg); }

/* ---------- 渐显动效（仅在 JS 挂载 er2-js 后生效，JS 不可用时内容直接可见） ---------- */
.er2-page.er2-js .er2-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.er2-page.er2-js .er2-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .er2-hero-title {
        font-size: 46px;
    }

    .er2-hero-sub {
        font-size: 30px;
    }

    .er2-award-first-txt {
        margin-left: 21%;
    }

    .er2-wall-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .er2-hero {
        height: 460px;
    }

    .er2-hero-inner {
        left: 4%;
        bottom: 24%;
    }

    .er2-hero-title {
        font-size: 48px;
    }

    .er2-hero-sub {
        font-size: 28px;
    }

    .er2-stats {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 16px 22px;
    }

    .er2-stat {
        justify-content: flex-start;
        padding: 10px 0;
    }

    .er2-stat+.er2-stat {
        border-left: none;
        border-top: 1px solid #edf0fa;
    }

    .er2-award-second-grid {
        grid-template-columns: 1fr;
    }

    .er2-award-third-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .er2-gift-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .er2-gift-prod-lead {
        grid-column: span 2;
    }

    .er2-wall-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .er2-hero {
        height: 400px;
    }

    .er2-hero-inner {
        left: 5%;
        bottom: 20%;
        max-width: 90%;
    }

    .er2-hero-badge {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .er2-hero-title {
        font-size: 34px;
    }

    .er2-hero-sub {
        font-size: 22px;
    }

    .er2-hero-desc {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .er2-btn {
        height: 46px;
        padding: 0 24px;
        font-size: 15px;
    }

    .er2-stat b {
        font-size: 22px;
    }

    .er2-section {
        padding: 64px 0 10px;
    }

    .er2-sec-head h2 {
        font-size: 26px;
    }

    .er2-award-first {
        aspect-ratio: auto;
        padding: 26px 0;
    }

    .er2-award-first-txt {
        margin-left: 8%;
    }

    .er2-award-first-txt h3 {
        font-size: 20px;
    }

    .er2-award-third-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .er2-gift-products {
        grid-template-columns: 1fr;
    }

    .er2-gift-prod-lead {
        grid-column: auto;
    }

    .er2-gift-prod-img {
        height: 140px;
    }

    .er2-wall-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .er2-footer-strip {
        margin-top: 48px;
        padding: 48px 0 44px;
    }

    .er2-strip-txt h2 {
        font-size: 22px;
        letter-spacing: 3px;
    }
}



@media (min-width: 1921px) {
    .er2-container  {
        width: min(1480px, 96%);
    margin: 0 auto;}

    /* .er2-hero{
     height: 820px;
    } */
    .er2-hero-badge{
            margin-bottom: 400px;
    }
}