@charset "utf-8";

/* 全省新时代文明实践（所）站长风采展示 —— 专题页
   设计稿基准宽度 1920px：头图区所有元素按 vw 等比缩放，
   与 cover 背景图严格同步；内容面板宽 1400px 居中 */

.page-sf {
    background: #e4f0f7;
}

.page-sf,
.page-sf * {
    box-sizing: border-box;
}

/* ---------- 头图 ---------- */
.sf-hero {
    position: relative;
    height: 35.4167vw;
    overflow: hidden;
}

.sf-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/hero-bg.jpg?v=20261201) no-repeat center bottom;
    background-size: cover;
    background-color: #1a6fc4;
}

.sf-dec {
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: 1;
}

/* 飘散的蒲公英种子 */
.sf-seeds {
    top: 10.5208vw;
    right: 8.4896vw;
    width: 64.0104vw;
}

/* 右上角小蒲公英 */
.sf-dan-sm {
    top: 4.9479vw;
    right: 34.1667vw;
    width: 4.9479vw;
}

/* 右侧大蒲公英 */
.sf-dan-r {
    top: 7.5521vw;
    right: -2.3958vw;
    width: 26.0938vw;
    z-index: 2;
}

/* 2026 */
.sf-year {
    top: 9.1667vw;
    left: 50%;
    width: 24.6354vw;
    margin-left: -12.9688vw;
    z-index: 3;
}

/* 标题 */
.sf-title {
    position: absolute;
    top: 16.25vw;
    left: 50%;
    z-index: 4;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin-left: -0.6771vw;
    font-size: 5vw;
    line-height: 6.0417vw;
    font-weight: 700;
    color: #fff;
    text-align: center;
    letter-spacing: 0;
    white-space: nowrap;
}

/* logo */
.sf-logo {
    position: absolute;
    top: 2.7604vw;
    left: 3.8021vw;
    z-index: 5;
    display: block;
    width: 7.4479vw;
}

.sf-logo img {
    display: block;
    width: 100%;
}

/* 返回首页：与 logo 顶部平齐，落在 logo 右侧空位 */
.sf-back {
    position: absolute;
    top: 2.7604vw;
    left: 12.7604vw;
    z-index: 6;
    display: -webkit-inline-box;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    height: 26px;
    padding: 0 13px 0 10px;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 13px;
    background: rgba(9, 58, 102, 0.3);
    -webkit-transition: background 0.2s, border-color 0.2s;
    transition: background 0.2s, border-color 0.2s;
}

.sf-back-ico {
    width: 11px;
    height: 11px;
    margin-right: 5px;
    -webkit-transition: -webkit-transform 0.2s;
    transition: transform 0.2s;
}

.sf-back span {
    white-space: nowrap;
}

.sf-back:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(9, 58, 102, 0.52);
}

.sf-back:hover .sf-back-ico {
    -webkit-transform: translateX(-2px);
    transform: translateX(-2px);
}

/* ---------- 内容区 ---------- */
.sf-main {
    position: relative;
    z-index: 6;
}

.sf-panel {
    width: 1400px;
    max-width: calc(100% - 40px);
    margin: -35px auto 0;
    padding: 29px 26px 62px;
    background: #fff;
}

.sf-list-wrap {
    min-height: 360px;
}

.sf-list {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 32px;
}

.sf-item {
    overflow: hidden;
}

.sf-item > a {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: start;
    align-items: flex-start;
}

/* 点击后等待视频地址返回时的过渡态 */
.sf-item > a.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.sf-thumb {
    position: relative;
    width: 295px;
    height: 165px;
    -webkit-box-flex: 0;
    flex: 0 0 295px;
    border-radius: 10px;
    overflow: hidden;
    background: #d8e6f0;
    box-shadow: 0 3px 8px rgba(23, 74, 124, 0.1);
}

.sf-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-info {
    -webkit-box-flex: 1;
    flex: 1;
    min-width: 0;
    margin-left: 19px;
    padding-top: 8px;
}

.sf-name {
    height: 60px;
    font-size: 22px;
    line-height: 30px;
    color: #333;
    font-weight: 500;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.sf-item > a:hover .sf-name {
    color: #1a6fc4;
}

.sf-meta {
    margin-top: 16px;
}

/* 行高按 22 走，单位允许换到第二行 */
.sf-meta-row {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: start;
    align-items: flex-start;
    font-size: 16px;
    line-height: 22px;
    color: #666;
}

.sf-meta-row + .sf-meta-row {
    margin-top: 10px;
}

.sf-meta-row .sf-ico {
    display: block;
    width: 15px;
    height: auto;
    margin: 4px 10px 0 0;
    -webkit-box-flex: 0;
    flex: 0 0 15px;
}

.sf-meta-row > span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* 来源单位：最多两行，超出再省略 */
.sf-meta-row > .sf-org {
    display: -webkit-box;
    display: -ms-flexbox;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* 空状态 */
.sf-empty {
    padding: 80px 0;
    text-align: center;
}

.sf-empty img {
    display: inline-block;
    max-width: 100%;
}

/* 视频弹窗（点击卡片直接播放） */
.sf-video-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.24s, visibility 0.24s;
    transition: opacity 0.24s, visibility 0.24s;
}

.sf-video-mask.on {
    opacity: 1;
    visibility: visible;
}

.sf-video-box {
    position: relative;
    width: 1200px;
    max-width: 88vw;
    line-height: 0;
}

.sf-video-box video {
    display: block;
    width: 100%;
    max-height: 86vh;
    background: #000;
}

.sf-video-close {
    position: absolute;
    top: -46px;
    right: 0;
    display: block;
    width: 36px;
    height: 36px;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    -webkit-transition: background 0.2s, -webkit-transform 0.2s;
    transition: background 0.2s, transform 0.2s;
}

.sf-video-close:hover {
    background: rgba(255, 255, 255, 0.32);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sf-video-close svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* 弹窗打开时锁住页面滚动 */
html.sf-video-open,
html.sf-video-open body {
    overflow: hidden;
}

/* 极窄屏兜底：卡片改为单列 */
@media screen and (max-width: 900px) {
    .sf-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
