@import url(common.css);

/* =====================================================================
   历年成绩二级页 · 追加组件样式（仅引用 :root 既有令牌，零新增色值/字体）
   类前缀：.tpage-* / .tsecnav / .tg-head / .rlist / .rrow / .rmodal-*
   ===================================================================== */

/* ---------- ① 页眉引导区 .tpage-hero（照抄名师页 L1146-1153 白底基座） ---------- */
.tpage-hero {
    position: relative;
    background: var(--color-white);
    padding-block: var(--space-6) var(--space-7);
}

.tpage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-yellow-teacher);
    pointer-events: none;
}

.tpage-hero .container {
    position: relative;
    z-index: 1;
}

.tpage-hero .eyebrow {
    margin-bottom: var(--space-3);
}

.tpage-hero h1.h1 {
    margin-bottom: var(--space-3);
}

.tpage-hero .lead {
    max-width: 720px;
    margin-top: var(--space-2);
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

@media(min-width:1024px) {
    .tpage-hero {
        padding-block: var(--space-7) var(--space-7);
    }
}

/* ---------- ② 分类筛选条 .tsecnav（照抄名师页 L1156-1163 · pill 由锚点改筛选按钮） ---------- */

.tsecnav__pill.icon01{
    background: url(../img/lncj_ico01.png) no-repeat left center;
}
.tsecnav__pill.icon02{
    background: url(../img/lncj_ico02.png) no-repeat left center;
}
.tsecnav__pill.icon03{
    background: url(../img/lncj_ico03.png) no-repeat left center;
}
.tsecnav__pill.icon01:hover, .tsecnav__pill.icon01.is-active{
    background: url(../img/lncj_ico01_h.png) no-repeat left center;
}
.tsecnav__pill.icon02:hover, .tsecnav__pill.icon02.is-active{
    background: url(../img/lncj_ico02_h.png) no-repeat left center;
}
.tsecnav__pill.icon03:hover, .tsecnav__pill.icon03.is-active{
    background: url(../img/lncj_ico03_h.png) no-repeat left center ;
}



/* =====================================================================
   成绩页覆盖段 ③-⑥ —— 分类筛选计数角标 / 届别分组 / 捷报行卡 / 详情弹窗内容槽
   （新增类 .rlist/.rrow/.rg-sec/.rlist__empty/.rmodal-*；仅引用既有令牌）
   ===================================================================== */

/* ---------- ②′ 计数角标（pill 内 · 激活态反转为墨黑底黄字） ---------- */
.tsecnav__badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--color-bg-soft);
    color: var(--color-text-secondary);
    font-family: var(--font-number);
    font-weight: 800;
    font-size: .72rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background .18s ease, color .18s ease;
}

.tsecnav__pill.is-active .tsecnav__badge {
    background: var(--color-ink);
    color: var(--color-brand-yellow);
}

/* 移动端 <768：pill 条横向滚动、不换行、隐藏滚动条；按钮不压缩 */
@media(max-width:767px) {


    .tsecnav .container::-webkit-scrollbar {
        display: none;
    }

    /* .tsecnav__pill {
        flex: 0 0 auto;
        width: 100%;
    } */
}

/* ---------- ③ 届别分组 .rg-sec（视觉 = 名师页 .tg-sec 同款） ---------- */
.rlist{
    margin-top: 30px;
}
.rg-sec {
    background: var(--color-white);
    padding-block: var(--space-6);
}

section.rg-sec[id] {
    scroll-margin-top: 150px;
}

/* 避让吸顶 pill 条 */
.rlist[id] {
    scroll-margin-top: 150px;
}

/* #sec-list 同规则：横幅 CTA / 导航锚点 */
@media(min-width:1024px) {
    .rg-sec {
        padding-block: var(--space-8);
    }
}

/* 首组与吸顶 pill 条紧凑 */
.rlist>.rg-sec:first-child {
    padding-top: var(--space-3);
}

@media(max-width:1023px) {
    section.rg-sec[id] {
        scroll-margin-top: 64px;
    }

    .rlist[id] {
        scroll-margin-top: 64px;
    }
}

/* 筛选后整届为空：隐藏该组（由 JS 加 .is-empty） */
.rg-sec.is-empty {
    display: none;
}

/* 组头：.tg-head 复用名师页语感，限宽 960 居中与行卡同宽 */
.tg-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin: 0 auto var(--space-5);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
    max-width: 960px;
}

.tg-head__titles {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.tg-head__titles h2.h2 {
    margin: 0;
}

.tg-head__count {
    font-family: var(--font-number);
    color: var(--color-text-secondary);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: .02em;
    padding-bottom: 4px;
}

/* 空态行：某筛选下所有组均 0 条时显示（JS 控制 .is-show） */
.rlist__empty {
    display: none;
    max-width: 960px;
    margin: var(--space-2) auto var(--space-6);
    padding: var(--space-7) var(--space-5);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: .9375rem;
    background: var(--color-bg-soft);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-card);
}

.rlist__empty.is-show {
    display: block;
}

/* ---------- ④ 捷报行卡 .rlist__rows / .rrow（单列限宽 960 居中 · 独立圆角卡 + 卡间距） ---------- */
.rlist__rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    /*max-width: 960px;*/
    margin-inline: auto;
    min-width: 0;
}

@media(min-width:1024px) {
    .rlist__rows {
        gap: var(--space-4);
    }
}

.rrow {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto 18px;
    /* tag / title / date / arrow */
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 20px;
    text-align: left;
    cursor: pointer;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-sm);
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.rrow:hover {
    background: var(--color-bg-soft);
    border-color: var(--color-brand-yellow);
}

.rrow:focus-visible {
    outline: 3px solid rgba(30, 64, 175, .35);
    outline-offset: 2px;
}

/* 左学院短名 pill：浅蓝底深蓝字（同 .tcard__role 视觉） */
.rrow__tag {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-brand-blue-deep);
    background: var(--color-brand-blue-light);
}

/* 非院校类（联考/校考）用中性灰字灰描边 */
.rrow__tag--alt {
    color: var(--color-text-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

/* 主标题：2 行截断；title 属性全量兜底 */
.rrow__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--color-text-heading);
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s ease;
}

@media(min-width:768px) {
    .rrow__title {
        font-size: 1rem;
    }
}

/* 右日期：.num 灰字（secondary 达 AA 4.83:1） */
.rrow__date {
    font-family: var(--font-number);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: right;
}

/* 右箭头：灰 → 墨黑 hover 右移 3px（禁用橙红） */
.rrow__arrow {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    justify-self: end;
    color: var(--color-text-secondary);
    transition: color .18s ease, transform .18s ease;
}

.rrow__arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rrow:hover .rrow__arrow {
    color: var(--color-ink);
    transform: translateX(3px);
}

/* 移动 <768：两行结构 —— 行1 pill+日期+箭头，行2 标题(2行) */
@media(max-width:767px) {
    .rrow {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "tag date arrow" "title title title";
        gap: 8px 10px;
        padding: 12px 14px;
    }

    .rrow__tag {
        grid-area: tag;
        padding: 2px 10px;
        font-size: .75rem;
    }

    .rrow__title {
        grid-area: title;
        font-size: .9375rem;
        line-height: 1.55;
        -webkit-line-clamp: 2;
    }

    .rrow__date {
        grid-area: date;
        font-size: .75rem;
    }

    .rrow__arrow {
        grid-area: arrow;
        width: 20px;
        height: 20px;
    }
}

@media(max-width:360px) {
    .rrow {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "tag date" "title title" "arrow arrow";
    }
}

/* ---------- ⑥ CTA 收口 .tpage-cta（中性浅灰卡 · 黄主按钮点缀） ---------- */
.tpage-cta {
    padding-block: var(--space-5) var(--space-8);
}

@media(min-width:1024px) {
    .tpage-cta {
        padding-block: var(--space-6) var(--space-9);
    }
}

.tpage-cta__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4) var(--space-5);
    background: var(--color-bg-soft);
    border-radius: var(--radius-card);
    padding: var(--space-5) var(--space-6);
}

@media(min-width:1024px) {
    .tpage-cta__card {
        padding: var(--space-6) var(--space-7);
    }
}

.tpage-cta__card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-heading);
    font-size: 1.375rem;
    line-height: 1.3;
}

.tpage-cta__card p {
    margin-top: var(--space-2);
    color: var(--color-text-primary);
    font-size: .9375rem;
}

.tpage-cta__card .btn {
    flex: 0 0 auto;
}

/* ---------- ①′ 顶部黄柔光横幅（.tpage-hero restyle → 覆盖段，source order 胜出） ---------- */
.tpage-hero--banner {
    background: var(--color-white);
    padding-block: var(--space-5) var(--space-4);
}

.tpage-hero--banner::before {
    display: none;
}

/* 关掉全宽 overlay，避免白边二次泛黄 */
.tpage-hero--banner .container {
    background: var(--color-bg-yellow-soft);
    /* #FFF8C5 · 全页唯一黄柔光大块 */
    border-radius: var(--radius-card);
    /* 14px 容器内圆角横幅 */
    padding: var(--space-6) var(--space-5);
    /* 移动 32/24 */
}

.tpage-hero--banner .container>* {
    max-width: 680px;
}

/* 横幅内文案列宽（默认左对齐） */
.tpage-hero--banner .eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-brand-yellow-text);
}

.tpage-hero--banner h1.h1 {
    margin-bottom: var(--space-3);
    color: var(--color-text-heading);
}

.tpage-hero--banner .lead {
    color: var(--color-text-primary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* 黄柔光底上提深一档，AA 更稳 */
.tpage-hero--banner .btn {
    margin-top: var(--space-4);
}

/* 可选 CTA 与 lead 间距 */
@media(min-width:768px) {
    .tpage-hero--banner .container {
        padding: var(--space-6) var(--space-7);
    }

    /* 32/56 */
}

/* ---------- ⑦ 站内弹窗 .tmodal（白底圆角卡） + 成绩内容槽 ---------- */
.tmodal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(10, 10, 10, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tmodal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tmodal__panel {
    width: min(720px, 92vw);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-card);
    transform: translateY(8px) scale(.98);
    transition: transform .2s ease;
}

.tmodal.is-open .tmodal__panel {
    transform: none;
}

.tmodal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.tmodal__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.2;
}

.tmodal__meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.tmodal__note {
    font-size: .75rem;
    color: var(--color-text-secondary);
}

.tmodal__close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: var(--color-ink);
    display: grid;
    place-items: center;
    transition: background .18s ease;
}

.tmodal__close:hover {
    background: var(--color-border);
}

.tmodal__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.tmodal__body {
    padding: var(--space-6);
    overflow-y: auto;
    color: var(--color-text-primary);
    font-size: .9375rem;
    line-height: 1.85;
}

.tmodal__body p+p {
    margin-top: var(--space-3);
}

@media(max-width:767px) {
    .tmodal__top {
        padding: var(--space-4);
    }

    .tmodal__body {
        padding: var(--space-4);
    }

    .tmodal__name {
        font-size: 1.25rem;
    }
}

/* 成绩弹窗内容槽 */
.rmodal__date {
    font-family: var(--font-number);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}

.rmodal__note {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    font-size: .8125rem;
    color: var(--color-text-tertiary);
}

/* 图片扩展位：占位虚线灰块；接入真实 <img> 后去虚线即可 */
.rmodal__media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-card-sm);
    background: var(--color-bg-soft);
    border: 1px dashed var(--color-border);
    display: grid;
    place-items: center;
    color: var(--color-text-tertiary);
    font-size: .8125rem;
    margin-bottom: var(--space-4);
}


/* —— ② 视频介绍条（对应参考页 banner 后 #videoIntroduction 左主视频 + 右相关视频 · 复用首页 .vid-ph 视频占位 L171-199，播放 = 等效占位 is-playing 视觉） —— */
.listpage__video-intro {
    background: var(--color-bg);
    padding-block: var(--space-6) var(--space-5);
}

.listpage__video-intro .section-head {
    margin-bottom: var(--space-5);
    max-width: 760px;
}

.listpage__video-intro .section-head .eyebrow {
    margin-bottom: var(--space-3);
}

.listpage__video-intro .section-head .h1 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.listpage__video-intro .section-head .lead {
    font-size: .875rem;
    margin-top: var(--space-2);
}

.listpage__video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: start;
}

@media(min-width:1024px) {
    .listpage__video-grid {
        grid-template-columns: 1.7fr 1fr;
        gap: var(--space-6);
    }
}

.listpage__video-main {
    min-width: 0;
}

.listpage__video-stage {
    position: relative;
    aspect-ratio: 16/7;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.listpage__video-stage .vid-ph {
    height: 100%;
}

.listpage__video-stage .vid-ph__bg {
    transition: transform .5s ease;
}

.listpage__video-stage:hover .vid-ph__bg {
    transform: scale(1.04);
}

.listpage__video-stage:hover .vid-ph__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.listpage__video-cap {
    margin-top: var(--space-2);
}

.listpage__video-cap h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-text-heading);
    margin-bottom: 2px;
}

.listpage__video-cap .small {
    color: var(--color-text-secondary);
    font-size: .8125rem;
}

.listpage__video-rail {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.listpage__video-item {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-sm);
    padding: 8px 10px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
    text-decoration: none;
}

.listpage__video-item:hover {
    transform: translateX(3px);
    border-color: var(--color-brand-yellow);
    box-shadow: var(--shadow-card);
}

.listpage__video-item .vid-ph {
    flex: 0 0 auto;
    width: 118px;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
}

.listpage__video-item .vid-ph__play {
    width: 28px;
    height: 28px;
}

.listpage__video-item .vid-ph__play svg {
    width: 11px;
    height: 11px;
    margin-left: 2px;
}

.listpage__video-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.listpage__video-copy .listpage__video-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .875rem;
    color: var(--color-text-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listpage__video-copy .micro {
    color: var(--color-text-secondary);
    font-size: .7rem;
}
/* =====================================================================
   视频占位体系（.vid-ph）— 全站统一：黄底墨黑三角播放钮
   ===================================================================== */
.vid-ph {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-dark-ink);
}

.vid-ph__bg {
    position: absolute;
    inset: 0;
    background: var(--color-dark-blue);
    transition: transform .6s ease;
}

.vid-ph--ink .vid-ph__bg {
    background: var(--color-dark-ink);
}

.vid-ph--cool .vid-ph__bg {
    background: var(--color-brand-blue);
}

.vid-ph--deep .vid-ph__bg {
    background: var(--color-brand-blue-deep);
}

.vid-ph--warm .vid-ph__bg {
    background: var(--color-brand-yellow);
}

.vid-ph__grid {
    position: absolute;
    inset: 0;
    opacity: .10;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 44px 44px;
}

.vid-ph__shimmer {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, .18), transparent 60%);
    transition: opacity .4s ease;
}

.vid-ph.is-playing .vid-ph__shimmer {
    opacity: 1;
    animation: kenburns 9s ease-in-out infinite alternate;
}

.vid-ph.is-playing .vid-ph__bg {
    animation: kenburns 12s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-2%, -2%);
    }
}

/* 播放钮：黄底墨黑三角（暖黄底改白底墨黑三角，避免同色边界消失） */
.vid-ph__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-brand-yellow);
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, background .2s ease;
    box-shadow: var(--shadow-card);
    z-index: 2;
}

.vid-ph__play svg {
    width: 20px;
    height: 20px;
    fill: var(--color-on-yellow);
    margin-left: 3px;
}

.vid-ph.is-playing .vid-ph__play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
}

.vid-ph--warm .vid-ph__play {
    background: var(--color-white);
}

.vid-ph--warm .vid-ph__play svg {
    fill: var(--color-ink);
}

.vid-ph__pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 10, 10, .7);
    color: #fff;
    font-size: .6875rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    z-index: 3;
    letter-spacing: .02em;
}

.vid-ph__tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    z-index: 3;
    opacity: .9;
    background: rgba(10, 10, 10, .6);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

/* 视频卡（4.2） */
.vcard {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    cursor: pointer;
}

.vcard:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--color-brand-yellow);
}

.vcard__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.vcard__media .vid-ph__bg {
    transition: transform .4s ease;
}

.vcard:hover .vid-ph__bg {
    transform: scale(1.04);
}

.vcard:hover .vid-ph__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.vcard__body {
    padding: 12px 16px;
}

.vcard__body h4 {
    margin-bottom: 4px;
}

.vcard__body .small {
    color: var(--color-text-secondary);
}


@media(max-width:767px) {
    .rmodal__date {
        font-size: .75rem;
    }
}