/* ============== AISS 2026 · 平台培训 题图列表页 样式 ============== */
/* 设计约定：
   1. 页头 Hero 与页脚沿用首页深蓝风格；
   2. 主体内容区（main.content-main）为白色背景；
   3. 主色调强调色为紫色（主标题 / 下划线 / 分页当前页 / 日期图标）。 */

:root {
    --bg-deep:        #073a8a;       /* 深蓝主背景 */
    --bg-mid:         #0d4caa;       /* 中蓝 */
    --bg-hero:        #0849b0;       /* Hero 区蓝 */
    --color-white:    #ffffff;
    --color-gray:     rgba(255,255,255,0.75);
    --color-gray-2:   rgba(255,255,255,0.55);

    /* 主体强调紫 */
    --color-purple:       #7b5ce6;
    --color-purple-deep:  #6a4fd4;
    --color-purple-soft: #f3efff;
    /* 列表标题 / 日期 / 分页当前页 紫色（设计稿色值） */
    --color-text-purple: #791cb5;

    /* 白底区域文字色 */
    --text-title:    #1f2a44;         /* 卡片标题深藏青 */
    --text-body:     #5a6474;         /* 摘要正文灰 */
    --text-light:    #8a93a5;         /* 日期浅灰 */

    /* 白底区域卡片 */
    --card-bg:       #f7f9fd;
    --card-bd:       #e4e9f5;
    --card-bd-hover: #c9b8f5;

    /* 版心内容宽度 1200px（左右内边距 40px × 2 计入容器宽度） */
    --max-w:          1280px;
    --pad-x:          40px;          /* PC 端左右内边距 */
}

body {
    /* 页面基础蓝色渐变（窄屏下背景图只铺上部，下部由此渐变延续；末端色与背景图底部一致）
       body 自身无宽度上限，页面头部 / 白色主体 / 页脚三层背景随视口宽度无限水平延展 */
    background: linear-gradient(180deg, #0849b0 0%, #05309b 45%, #0c378d 100%);
    min-height: 100vh;
}

.page-wrap {
    /* 通栏全屏背景容器：不限制最大宽度（width:100% 与 100vw 效果一致，
       且可避免 100vw 在出现纵向滚动条时产生横向滚动条的问题）。
       min-height + flex 让内容不足一屏时白色主体自动撑开、页脚贴底，
       消除页脚下方多余的蓝色空白 */
    width: 100%;
    min-height: 100vh;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 整页纯背景图（与首页一致，仅页头区域露出） */
    background: url("../pic/bg_full.png") top center no-repeat;
    background-size: 100% 100%;
}

/* ====================== 头部 Banner（外层通栏 + 内层定宽居中） ====================== */
.hero {
    position: relative;
    flex: 0 0 auto;
    text-align: center;
}
.hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 46px var(--pad-x) 40px;
}

/* 顶部双实验室 Logo */
.hero__top {
    margin-bottom: 34px;
}
.hero__top-inner {
    display: inline-block;
}
.tsinghua-labs-img {
    width: 560px;
    max-width: 100%;
    height: auto;
}

/* Hero 主区 */
.hero__main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 0;
}

.hero__aiss {
    flex-shrink: 0;
}
.aiss-logo-img {
    width: 230px;
    height: auto;
}

.hero__title {
    text-align: left;
    color: var(--color-white);
}
.hero__title-en {
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    margin-bottom: 8px;
    font-weight: 500;
}
.hero__title-cn {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 0 18px rgba(92,255,92,0.25);
}
.hero__title-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 0;
}
.hero__title-line {
    flex: 1;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
}
.hero__title-date {
    font-size: 18px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    margin: 0;
}

/* 面包屑位置：位置:首页-平台培训（右对齐） */
.hero__crumbs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    text-align: right;
}
.crumbs-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    /* 位置图标（白色定位 Pin，SVG 内联） */
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.crumbs-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* ====================== 主体内容区（白色通栏 + 内层定宽居中） ====================== */
.content-main {
    background: #ffffff;
    margin-top: 6px;
    padding: 42px 0 64px;
    /* 内容不足一屏时自动撑开白色区域，页脚贴底 */
    flex: 1 0 auto;
}

/* 平台培训 主标题（左对齐） */
.section-head {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.section-title {
    display: inline-block;
    position: relative;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.3;
    padding-bottom: 12px;
    /* 文字渐变色：#3b13a6 → #761cb4（WebKit 渐变文字，不支持时回退纯色） */
    color: #3b13a6;
    background: linear-gradient(to right, #3b13a6 0%, #761cb4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* 紫色渐变下划线：#791cb5 → #2b079f（与文字宽度对齐） */
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #791cb5 0%, #2b079f 100%);
}

/* ====================== 培训列表 ====================== */
.training-list {
    max-width: var(--max-w);
    margin: 36px auto 0;
    padding: 0 var(--pad-x);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 单条列表项（白底浅灰卡片） */
.list-item {
    background: var(--card-bg);
    border: 1px solid var(--card-bd);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 42, 68, 0.10);
    border-color: var(--card-bd-hover);
}
.list-item__link {
    display: flex;
    align-items: stretch;
    gap: 26px;
    padding: 22px;
}

/* 左侧缩略图（300 x 201，与原图等比） */
.list-item__thumb {
    width: 300px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #e9edf6;
}
.list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧内容 */
.list-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.list-item__titlerow {
    display: block;
}
.list-item__title {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.55;
    letter-spacing: 0.5px;
    /* 超出两行省略，保持卡片高度一致 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 第一条列表（文字海报型）标题紫色 */
.list-item__title--purple {
    color: var(--color-text-purple);
}
.list-item__desc {
    margin-top: 12px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.85;
    letter-spacing: 0.5px;
    /* 超出三行省略 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 日期行：位于简述正下方、左对齐，前置时间图标 */
.list-item__meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}
.meta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    /* 时间图标（紫色时钟 #9b56c8，SVG 内联） */
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm.5-13h-1.5v6.1l4.9 2.8.8-1.3-4.2-2.4z' fill='%239b56c8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.list-item__date {
    font-size: 14px;
    color: var(--color-text-purple);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ====================== 分页器 ====================== */
.pagination {
    max-width: var(--max-w);
    margin: 54px auto 0;
    padding: 0 var(--pad-x) 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.page-btn {
    display: inline-block;
    min-width: 42px;
    height: 38px;
    line-height: 34px;
    padding: 0 14px;
    box-sizing: border-box;
    text-align: center;
    color: #4a5468;
    font-size: 15px;
    letter-spacing: 1px;
    background: #ffffff;
    border: 1px solid #d6dcea;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.page-btn:hover {
    background: var(--color-purple-soft);
    border-color: var(--color-purple);
    color: var(--color-purple-deep);
}
.page-btn--num {
    font-weight: 600;
}
/* 当前页高亮（紫色） */
.page-btn.is-current {
    background: var(--color-text-purple);
    border-color: var(--color-text-purple);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(121,28,181,0.35);
}
.page-ellipsis {
    color: #9aa3b5;
    font-size: 16px;
    letter-spacing: 2px;
}
.page-total {
    margin-left: 18px;
    font-size: 15px;
    color: #6b7280;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ====================== Footer（外层通栏背景 + 内层定宽居中） ====================== */
.footer {
    /* 页脚自带通栏背景，高度紧贴版权文字内容，不依赖背景图拉伸 */
    flex: 0 0 auto;
    background: #0c378d;
    border-top: 1px solid rgba(92,255,92,0.15);
    margin-top: 0;
}
.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 30px var(--pad-x);
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
}
.footer-org {
    margin-bottom: 6px;
}

/* ====================== 响应式 ====================== */

/* 平板横屏 1199 ~ 769 */
@media screen and (max-width: 1199px) {
    :root {
        --pad-x: 30px;
    }
    .hero__inner {
        padding: 36px var(--pad-x) 32px;
    }
    .tsinghua-labs-img {
        width: 480px;
    }
    .aiss-logo-img {
        width: 190px;
    }
    .hero__main {
        gap: 34px;
    }
    .hero__title-cn {
        font-size: 36px;
    }
    .hero__title-en {
        font-size: 17px;
    }
    .crumbs-text {
        font-size: 14px;
    }
    .section-title {
        font-size: 25px;
    }
    .list-item__link {
        gap: 22px;
        padding: 18px 20px;
    }
    .list-item__thumb {
        width: 250px;
    }
    .list-item__title {
        font-size: 19px;
    }
    .list-item__desc {
        font-size: 14px;
    }
}

/* 平板竖屏 768 ~ 481 */
@media screen and (max-width: 768px) {
    :root {
        --pad-x: 20px;
    }
    /* 窄屏下页面变高，背景改为按宽度缩放、只铺上部，下部由 body 渐变延续 */
    .page-wrap {
        background-size: 100% auto;
    }
    .hero__inner {
        padding: 28px var(--pad-x) 26px;
    }
    .hero__top {
        margin-bottom: 22px;
    }
    .tsinghua-labs-img {
        width: 90%;
    }
    .hero__main {
        flex-direction: column;
        gap: 20px;
    }
    .hero__title {
        text-align: center;
    }
    .hero__title-cn {
        font-size: 28px;
        letter-spacing: 2px;
    }
    .hero__title-en {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .hero__title-meta {
        flex-direction: column;
        gap: 0;
    }
    .hero__title-line {
        width: 70%;
        margin: 6px auto 10px;
    }
    .hero__title-date {
        font-size: 14px;
        text-align: center;
    }
    /* 面包屑跟随标题居中 */
    .hero__crumbs {
        justify-content: center;
        margin-top: 10px;
    }
    .section-title {
        font-size: 23px;
        letter-spacing: 2.5px;
    }
    .content-main {
        padding: 30px 0 48px;
    }
    .training-list {
        margin-top: 24px;
        gap: 18px;
    }
    /* 列表项改纵向：缩略图在上，内容在下 */
    .list-item__link {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }
    .list-item__thumb {
        width: 100%;
    }
    .list-item__thumb img {
        /* 缩略图铺满后按 3:2 展示 */
        aspect-ratio: 3 / 2;
    }
    .list-item__title {
        font-size: 18px;
        -webkit-line-clamp: 3;
    }
    .list-item__desc {
        font-size: 13.5px;
        margin-top: 10px;
        -webkit-line-clamp: 4;
    }
    .list-item__meta {
        margin-top: 10px;
    }
    .list-item__date {
        font-size: 13px;
    }
    /* 分页器整体换行收紧 */
    .pagination {
        gap: 8px;
        margin-top: 40px;
    }
    .page-btn {
        min-width: 38px;
        height: 34px;
        line-height: 30px;
        padding: 0 10px;
        font-size: 14px;
    }
    .page-total {
        margin-left: 0;
        width: 100%;
        text-align: center;
        font-size: 13px;
    }
}

/* 手机 < 480 */
@media screen and (max-width: 480px) {
    :root {
        --pad-x: 14px;
    }
    .hero__title-cn {
        font-size: 22px;
    }
    .hero__title-en {
        font-size: 12px;
    }
    .aiss-logo-img {
        width: 150px;
    }
    .crumbs-text {
        font-size: 13px;
    }
    .section-title {
        font-size: 21px;
    }
    .list-item__title {
        font-size: 16.5px;
    }
    .list-item__desc {
        font-size: 12.5px;
    }
    .list-item__date {
        font-size: 12px;
    }
    .meta-icon {
        width: 12px;
        height: 12px;
    }
    .page-btn {
        min-width: 34px;
        height: 32px;
        line-height: 28px;
        padding: 0 8px;
        font-size: 13px;
    }
    .footer__inner {
        font-size: 12px;
    }
}

/* 给所有 data-hotspot 添加调试样式（可选，与首页保持同一机制） */
/*[data-hotspot] {
    transition: outline-color 0.2s ease;
}
[data-hotspot]:hover {
    outline: 1px dashed rgba(123,92,230,0.5);
    outline-offset: 4px;
    cursor: pointer;
}
*/