/* ============================================
   营口市慈善总会 PC 首页专属样式
   9 板块：Banner/统计/新闻/项目/公示/快捷/党建/志愿者
   主题色继承 header.css 的 :root 变量
   ============================================ */

/* ========== 通用板块 ========== */
.yk-main {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto !important;
}

.yk-section {
    padding: 15px 0;
}

/* 通知公告条与上方 Banner 间距 30px；与下方板块间距 22px（用户指定） */
.yk-main > .yk-notice-bar + .yk-section {
    margin-top: 22px;
    padding-top: 0;
}
/* 慈善项目板块距慈善资讯板块间距：减少5px（补偿标题半行距） */
.yk-main > .yk-section:nth-child(3) {
    padding-top: 10px;
}

/* ========== 通知公告条（Banner 下方：一行多条，向上定时上翻） ========== */
.yk-notice-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
    margin-top: 30px;
    padding: 0 16px;
    box-sizing: border-box;
    background: var(--white);
    border-radius: var(--radius);
}
.yk-notice-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}
.yk-notice-label i {
    font-size: 20px;
    line-height: 1;
    color: var(--primary);
}
/* 「公告」两字用红色 */
.yk-notice-label em {
    font-style: normal;
    color: var(--primary);
}
.yk-notice-label::after {
    content: '';
    width: 1px;
    height: 16px;
    margin-left: 8px;
    background: var(--border);
}
.yk-notice-viewport {
    flex: 1;
    min-width: 0;
    height: 56px;
    overflow: hidden;
}
.yk-notice-track {
    /* 不用 grid：兼容 360 等旧内核浏览器，用 flex 换行排三列 */
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.5s ease;
    -webkit-transition: -webkit-transform 0.5s ease;
}
.yk-notice-item {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: calc((100% - 32px) / 3);
    margin-right: 16px;
    height: 56px;
    min-width: 0;
    padding: 0 16px;
    box-sizing: border-box;
    text-decoration: none;
}
/* 每条信息底层的淡灰方形圆角容器（上下内缩 8px，露出白色间隔） */
.yk-notice-item::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.yk-notice-item:nth-child(3n) {
    margin-right: 0;
}
.yk-notice-title {
    position: relative;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.yk-notice-item:hover .yk-notice-title {
    color: var(--primary);
}
.yk-notice-date {
    position: relative;
    flex-shrink: 0;
    margin-left: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.yk-notice-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.yk-notice-more:hover {
    color: var(--primary);
}
.yk-notice-more i {
    font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
    .yk-notice-track {
        transition: none;
    }
}

/* 首页末板块（志愿者招募横幅）距版权区域的间距：+15px */
.yk-main > .yk-section:last-child {
    margin-bottom: 15px;
}

/* 爱心捐赠公示 + 快捷服务 双列布局 */
.yk-dual-section {
    /* 左右两块白卡 flex:1 自动等高、底部对齐 */
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 15px 0 0;
}
.yk-dual-section > .yk-section {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.yk-dual-section > .yk-section > .yk-section-header {
    margin-bottom: 15px;
}
.yk-dual-section .yk-marquee-section,
.yk-dual-section .yk-quick-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.yk-dual-section .yk-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-content: stretch;
}

/* ========== 信息展示卡片 ========== */
.yk-info-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius);
    flex: 1;                      /* 填满父 section 剩余空间（flex column 最后一个子元素） */
    min-height: 0;                /* flex item 允许收缩，内容可滚动/overflow */
    box-sizing: border-box;
}

/* 第一行：左=人民币捐款账户；右=纵向的联系方式组（两列 grid） */
.yk-info-banks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    flex: 1;                     /* 吃掉按钮上方所有剩余空间，让内部两列自然舒展 */
}
.yk-info-bank {
    display: flex;
    flex-direction: column;
    justify-content: center;     /* 内容垂直居中 */
    padding: 20px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    height: 100%;
    box-sizing: border-box;
}
.yk-info-bank-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 12px;
}
.yk-info-bank-detail {
    font-size: 14px;
    line-height: 2.0;
    color: var(--text-regular);
    white-space: pre-line;
    word-break: break-all;
}
.yk-info-contact {
    display: grid;
    grid-template-columns: 1fr;
    align-content: stretch;      /* 电话/邮箱两块平分父容器高度 */
    gap: 12px;
}
.yk-info-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    padding: 14px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    min-height: 0;               /* grid stretch 不被内容最小高度卡住 */
}
.yk-info-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
}
.yk-info-contact-icon .ph {
    font-size: 20px;
}
.yk-info-contact-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.yk-info-contact-label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-secondary);
}
.yk-info-contact-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yk-info-contact-item:hover .yk-info-contact-value {
    color: var(--primary);
}

/* 第二行：银行捐款账户（两列） */
.yk-info-banks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    transform: translateY(-3px);   /* 仅第二行上移 3px，不影响第一、三行 */
}
.yk-info-bank {
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.yk-info-bank-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 8px;
}
.yk-info-bank-detail {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-regular);
    white-space: pre-line;
    word-break: break-all;
}

/* 第三行：操作按钮（白底红字描边，不使用红色实底） */
.yk-info-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.yk-info-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: var(--primary);
    border-radius: 999px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.yk-info-action .ph {
    font-size: 20px;
}
.yk-info-action:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
}

.yk-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.yk-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-2px);
}

.yk-section-title i {
    color: var(--primary);
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    transform: translateY(2px);
}

.yk-section-more {
    color: var(--primary);
    background: rgba(185, 28, 28, 0.08);
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.yk-section-more::before {
    content: '+';
    font-size: 14px;
    font-weight: 700;
}

.yk-section-more:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== 板块1：轮播 Banner ========== */
.yk-banner-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 550px;
    min-height: 550px;
    background: #fff;   /* 广告图未取到时兜底白色容器 */
}
.yk-banner-wrap .owl-stage-outer,
.yk-banner-wrap .owl-stage {
    height: 100% !important;
}
.yk-banner-wrap .owl-stage .owl-item {
    height: 100% !important;
}

.yk-banner-slider .item {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.yk-banner-slider .item img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

/* 深色遮罩（已隐藏：与移动端头部一致，直接露出原图） */
.yk-banner-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.15) 100%);
    z-index: 2;
}

/* Banner 上的文字内容（padding 随屏宽自适应） */
.yk-banner-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 clamp(16px, 1.39vw, 20px);
    max-width: 100%;
    color: #fff;
    transform: translateY(0);   /* 数据区隐藏后回归垂直居中 */
}

.yk-banner-tag {
    display: inline-block;
    width: fit-content;
    padding: 6px 16px;
    background: rgba(185,28,28,0.9);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* 主标题：字号/间距/字距随屏宽等比自适应（1440 设计稿：72px / 24px / 4px 字距）
   字体固定数黑体（与手机端左上角站点名同款），不随用户电脑字体变化 */
.yk-banner-title {
    font-family: "Alimama ShuHeiTi", "Microsoft YaHei", "微软雅黑", sans-serif !important;
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 clamp(8px, 1.667vw, 24px);
    letter-spacing: 0.055em;   /* 4px @72px，随字号等比缩放 */
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    max-width: 100%;
}

/* 兼容 360 等旧内核：不用 flex/gap，文字居中只靠 text-align + 对称 padding，
   两侧横线绝对定位，任何引擎下左右严格对称（尺寸随屏宽等比自适应） */
.yk-banner-subtitle {
    position: relative;
    padding: 0 clamp(40px, 8.33vw, 120px);   /* 两侧各留 96px 横线 + 24px 间距 @1440 */
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;   /* 副标题固定微软雅黑 */
    font-size: clamp(14px, 2.083vw, 30px);
    font-weight: 400;
    margin: 0 0 clamp(16px, 3.33vw, 48px);
    letter-spacing: 0.1em;   /* 3px @30px，随字号等比缩放 */
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    white-space: nowrap;
    text-align: center;
    max-width: 100%;
}
/* 两侧渐隐小横线：左线由透明渐显、右线由实渐隐（与移动端 .m-hm-slogan 一致） */
.yk-banner-subtitle::before,
.yk-banner-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: clamp(32px, 6.67vw, 96px);
    height: 2px;
    transform: translateY(-50%);
}
.yk-banner-subtitle::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.55));
}
.yk-banner-subtitle::after {
    right: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.55), rgba(255,255,255,0));
}
/* 按钮：内边距 / 字号 / 圆角随屏宽等比自适应（1440 设计稿：14×36 / 16px） */
.yk-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(4px, 0.56vw, 8px);
    width: fit-content;
    padding: clamp(8px, 0.97vw, 14px) clamp(20px, 2.5vw, 36px);
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: clamp(14px, 1.111vw, 16px);
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    transform: translateY(-5px);
}
.yk-banner-btn:hover {
    background: #a01818;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(185,28,28,0.4);
}
.yk-banner-btn i { font-size: 1.125em; }   /* 18px @16px 基准，随字号等比 */

/* 小圆点 — EYOUCMS 原样式 */
.yk-banner-slider .owl-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.yk-banner-slider .owl-dot {
    width: 32px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin: 0 3px;
    display: inline-block;
    transition: all 0.3s;
}

.yk-banner-slider .owl-dot.active {
    background: #fff;
    width: 42px;
}

/* 去掉左右箭头 */
.yk-banner-slider .owl-nav { display: none !important; }

/* Banner 渐隐渐现轮播（与移动端一致，不再左滑）
   所有 slide 叠层，切换时旧图保持不透明直至新图淡入完成，全程不露出容器底色 */
.yk-banner-fade {
    position: relative;
    overflow: hidden;
}
.yk-banner-fade .item {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    z-index: 0;
    pointer-events: none;
}
.yk-banner-fade .item:first-child {
    position: relative;   /* 由首张撑起容器高度 */
}
.yk-banner-fade .item.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}
.yk-banner-fade .item.is-leaving {
    opacity: 1;
    z-index: 0;
}

/* ========== 半透明统计卡片（浮在 Banner 底部） ========== */
.yk-banner-stats {
    display: none;   /* 已隐藏：与移动端一致，Banner 只留图与主副标题 */
    position: absolute;
    bottom: 124px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1304px, calc(100% - 40px));
    max-width: 100%;
    z-index: 10;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 0 20px;
}

.yk-banner-stats .yk-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transition: all 0.3s;
}
.yk-banner-stats .yk-stat-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.16);
}

.yk-banner-stats .yk-stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), #d84545);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.yk-banner-stats .yk-stat-icon svg { width: 28px; height: 28px; fill: currentColor; }
.yk-banner-stats .yk-stat-icon i { font-size: 26px; line-height: 1; }

.yk-banner-stats .yk-stat-info { flex: 1; min-width: 0; }
.yk-banner-stats .yk-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.yk-banner-stats .yk-stat-value small {
    font-size: 13px;
    font-weight: 500;
    color: var(--pc-text-soft);
    margin-left: 2px;
}
.yk-banner-stats .yk-stat-label {
    font-size: 13px;
    color: var(--pc-text-soft);
    margin-top: 4px;
}

.yk-stat-info {
    flex: 1;
}

.yk-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.yk-stat-value small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 4px;
}

.yk-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== 板块3：头条新闻 ========== */
.yk-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.yk-news-main {
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: none;
    background: var(--white);
    min-width: 0;
}

.yk-news-image {
    display: block;
    height: 305px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
}

.yk-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: var(--radius) var(--radius) 0 0;
}

.yk-news-image:hover img {
    transform: scale(1.05);
}

.yk-news-image-placeholder {
    height: 305px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: visible;
    gap: 8px;
}

.yk-news-image-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.yk-news-image-placeholder::after {
    content: '暂无图片';
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.yk-news-body {
    padding: 6px 18px 8px;
}

.yk-news-title-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: -1px; /* 副标题与主标题间距再减 3px（原 2px） */
}

.yk-news-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0 10px;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
    height: 20px;
    margin-top: -1px;
    box-sizing: border-box;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.yk-news-title-row h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 22px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.yk-news-title-row h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    max-width: 100%;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 22px;
}

.yk-news-title-row h3 a:hover {
    color: var(--primary);
}

.yk-news-body p {
    color: var(--pc-text-soft);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.yk-news-meta {
    font-size: 12px;
    color: var(--text-secondary);
    flex-shrink: 0;
    line-height: 1;
    align-self: center;
}

/* 总会头条 · 最新 10 条同位置左右切换（始终一张卡片：封面 + 主题行 + 副标题） */
.yk-headline-viewport {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* 缩略图左右切换按钮：半透明圆形底 + 小图标，垂直居中于图片区域 */
.yk-headline-arrow {
    position: absolute;
    top: 152px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: var(--white);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s;
}

.yk-headline-arrow:hover {
    background: rgba(0, 0, 0, 0.55);
}

.yk-headline-arrow .ph {
    font-size: 20px;
    line-height: 1;
}

.yk-headline-prev {
    left: 12px;
}

.yk-headline-next {
    right: 12px;
}

.yk-headline-track {
    display: flex;
    transition: transform 0.45s ease;
}

.yk-headline-slide {
    flex: 0 0 100%;
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.yk-headline-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1px 0 4px; /* 焦点组件行上间距再减 3px（原 4px），整体上移 3px */
}

.yk-headline-dot {
    width: 16px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--border);
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}

.yk-headline-dot.is-active {
    width: 24px;
    background: var(--primary);
}

.yk-news-list {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: none;
}

.yk-news-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.yk-news-tab {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-regular);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.yk-news-tab i {
    font-size: 15px;
    color: var(--pc-text-soft);
    margin-right: 4px;
    line-height: 1;
}

.yk-news-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.yk-news-tab.active i {
    color: var(--primary);
}

.yk-news-panel {
    display: none;
}

.yk-news-panel.active {
    display: block;
}

.yk-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.yk-news-item:last-child {
    border-bottom: 0;
}

.yk-news-title-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 16px;
}

.yk-news-title-text:hover {
    color: var(--primary);
}

.yk-news-date {
    color: var(--text-secondary);
    font-size: 12px;
    flex-shrink: 0;
}

/* ========== 板块4：慈善项目 ========== */
.yk-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.yk-project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s;
    min-width: 0;
}

.yk-project-card:hover {
    transform: translateY(-6px);
    box-shadow: none;
}

.yk-project-cover {
    display: block;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
}

.yk-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: var(--radius) var(--radius) 0 0;
}

.yk-project-cover:hover img {
    transform: scale(1.08);
}

.yk-project-cover-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: visible;
    gap: 8px;
}

.yk-project-cover-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.6);
}

.yk-project-cover-placeholder::after {
    content: '暂无图片';
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.yk-project-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.yk-project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2E9E5B;   /* 进行中：绿色系（与移动端同步，用户要求） */
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.yk-project-status.ended {
    background: #94a3b8;   /* 已结束：灰色（与移动端、项目列表页同步） */
}

.yk-project-body {
    padding: 20px;
}

.yk-project-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.yk-project-body h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.yk-project-body h4 a:hover {
    color: var(--primary);
}

.yk-project-desc {
    color: var(--pc-text-soft);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    height: 42px;
    overflow: hidden;
}

.yk-project-progress {
    margin-bottom: 12px;
}

.yk-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: visible;
}

.yk-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.yk-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
}

.yk-progress-info .raised {
    color: var(--primary);
    font-weight: 600;
}

.yk-progress-info .target {
    color: var(--text-secondary);
}

.yk-project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.yk-donation-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.yk-btn-donate-sm {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.yk-btn-donate-sm:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ========== 板块5：爱心捐赠滚动公示 ========== */
.yk-marquee-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: none;
}

.yk-marquee-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.yk-marquee-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.yk-marquee-header .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    margin-right: 8px;
    animation: ykPulse 1.5s infinite;
}

@keyframes ykPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.yk-marquee-container {
    overflow: hidden;
    height: 230px;
    position: relative;
}

.yk-marquee-list {
    display: flex;
    flex-direction: column;
    animation: ykMarqueeScroll 40s linear infinite; overflow: hidden;
}

/* 鼠标悬停暂停滚动 */
.yk-marquee-container:hover .yk-marquee-list {
    animation-play-state: paused;
}

.yk-marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    height: 40px;
    white-space: nowrap;
    font-size: 14px;
}

.yk-marquee-name {
    color: var(--text-primary);
    font-weight: 500;
    flex-shrink: 0;
}

.yk-marquee-action {
    color: var(--pc-text-soft);
    flex: 1;
    overflow: visible;
    text-overflow: ellipsis;
}

.yk-marquee-amount {
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}
.yk-marquee-time {
    color: var(--text-secondary);
    font-size: 12px;
    flex-shrink: 0;
    margin-right: 8px;
}

.yk-marquee-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 14px;
}

@keyframes ykMarqueeScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ========== 板块6：四格快捷入口 ========== */
.yk-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.yk-quick-link-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: none;
}

.yk-quick-link-item:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.yk-quick-link-item:hover .yk-link-icon {
    background: var(--primary);
    color: var(--white);
}

.yk-link-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.yk-link-icon i {
    font-size: 28px;
}

.yk-link-label {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ========== 板块7：党建工作 ========== */
.yk-party-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.yk-party-card {
    display: flex;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    box-shadow: none;
    transition: all 0.3s;
}

.yk-party-card:hover {
    box-shadow: none;
}

.yk-party-date {
    flex-shrink: 0;
    text-align: center;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.yk-party-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.yk-party-month {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.yk-party-body {
    flex: 1;
}

.yk-party-body h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yk-party-body p {
    color: var(--pc-text-soft);
    font-size: 13px;
    line-height: 1.5;
    overflow: visible;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========== 板块5：信息公开 + 党建工作（两列并排） ========== */
.yk-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.yk-duo-col {
    min-width: 0;
}

/* 党建工作在两列布局下改为纵向单列 */
.yk-party-grid-stack {
    grid-template-columns: 1fr;
    gap: 12px;
}

.yk-party-grid-stack .yk-party-card {
    padding: 16px;
}

.yk-party-grid-stack .yk-party-body h4 {
    font-size: 15px;
}

.yk-party-grid-stack .yk-party-body p {
    -webkit-line-clamp: 1;
}

/* ========== 板块8：志愿活动（图配标题简介） ========== */
.yk-volunteer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.yk-vol-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 0;
}

.yk-vol-card:hover {
    transform: translateY(-6px);
    box-shadow: none;
}

.yk-vol-cover {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

.yk-vol-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: var(--radius) var(--radius) 0 0;
}

.yk-vol-card:hover .yk-vol-cover img {
    transform: scale(1.08);
}

.yk-vol-cover-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: visible;
    gap: 6px;
}

.yk-vol-cover-placeholder i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.yk-vol-cover-placeholder::after {
    content: '暂无图片';
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.yk-vol-body {
    padding: 18px 20px;
}

.yk-vol-body h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.yk-vol-card:hover .yk-vol-body h4 {
    color: var(--primary);
}

.yk-vol-body p {
    color: var(--pc-text-soft);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    height: 42px;
    overflow: visible;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 卡片底部：招募/已报居左，报名按钮居右，同一行垂直居中 */
.yk-vol-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.yk-vol-foot-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.yk-vol-recruit {
    color: var(--text-secondary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.yk-vol-recruit svg {
    display: block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 1.15em;
}

.yk-vol-signed {
    color: var(--text-secondary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

.yk-vol-signed .num {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.yk-vol-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.yk-vol-card:hover .yk-vol-join {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* ========== 文档属性标签 ========== */
.yk-flag {
    display: inline-block;
    font-size: 12px;
    line-height: 1.4;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: 500;
    vertical-align: middle;
    white-space: nowrap;
}
/* 头条 — 红色系 */
.yk-flag-head {
    color: var(--color-primary);
    background: #FEE2E2;
}
/* 推荐 — 绿色系 */
.yk-flag-recom {
    color: #15803D;
    background: #DCFCE7;
}
/* 置顶 — 蓝色系 */
.yk-flag-top {
    color: var(--color-secondary);
    background: #DBEAFE;
}
/* 外链 — 蓝色系 */
.yk-flag-jump {
    color: #1D4ED8;
    background: var(--color-secondary-bg);
}
/* 有图 — 橙色系 */
.yk-flag-pic {
    color: #C2410C;
    background: #FFEDD5;
}
/* h3 里的标签稍大一点 */
.yk-news-title-row h3 .yk-flag {
    font-size: 13px;
    padding: 3px 7px;
}

/* ========== 列表项左侧灰色小图标 ========== */
.yk-news-title-text .yk-list-arrow {
    font-size: 12px;
    color: var(--pc-text-soft);
    margin-right: 6px;
    line-height: 1;
    vertical-align: middle;
}

/* ========== 媒体查询 ========== */
/* 平板端折中布局（768px–1199px）：两列网格，非单列塌缩 */
@media (min-width: 767px) and (max-width: 1199px) {
    .yk-main,
    .yk-stats-inner {
        width: 96%;
    }

    /* 板块间距收紧 */
    .yk-section {
        padding: 15px 0;
    }
    .yk-section-title {
        font-size: 24px;
    }

    /* 板块1：Banner 等比适配，不拉伸 */
    .yk-banner-slider .item,
    .yk-banner-slider .item img {
        height: 320px;
    }

    /* 板块2：统计区两列 */
    .yk-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .yk-stat-card {
        padding: 18px;
    }
    .yk-stat-value {
        font-size: 20px;
    }

    /* 板块3：新闻两列保持，间距收紧 */
    .yk-news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .yk-news-image,
    .yk-news-image-placeholder {
        height: 200px;
    }
    .yk-headline-arrow {
        top: 100px;
    }

    /* 板块4：项目卡片两列 */
    .yk-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .yk-project-cover,
    .yk-project-cover-placeholder {
        height: 180px;
    }

    /* 板块5：捐赠公示全宽 */
    .yk-marquee-section {
        width: 100%;
    }

    /* 板块6：快捷入口两列 */
    .yk-quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 板块7：信息公开+党建两列并排保持，收紧间距 */
    .yk-duo-grid {
        gap: 16px;
    }
    .yk-party-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 板块8：志愿活动两列 */
    .yk-volunteer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* 板块9：志愿者横幅全宽 */
    .yk-volunteer-banner {
        padding: 22px 28px;
    }
    .yk-volunteer-text h3 {
        font-size: 24px;
    }
}

/* 小平板过渡（≤900px）：新闻区改单列 */
@media (max-width: 900px) {
    .yk-news-grid {
        grid-template-columns: 1fr;
    }
    .yk-volunteer-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 22px 18px;
    }
    /* 信息公开+党建两列改单列堆叠 */
    .yk-duo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    /* 志愿活动卡片两列保持 */
}

/* 手机端（≤766px）：全部单列 */
@media (max-width: 766px) {
    .yk-main {
        width: 96%;
    }
    .yk-stats-inner,
    .yk-news-grid,
    .yk-projects-grid,
    .yk-quick-links,
    .yk-party-grid,
    .yk-volunteer-banner,
    .yk-marquee-section {
        width: 100%;
    }
    .yk-banner-slider .item,
    .yk-banner-slider .item img {
        height: 220px;
    }
    .yk-stats-inner,
    .yk-projects-grid,
    .yk-quick-links {
        grid-template-columns: 1fr;
    }
    .yk-party-grid {
        grid-template-columns: 1fr;
    }
    .yk-section {
        padding: 15px 0;
    }
    .yk-section-title {
        font-size: 20px;
    }
    /* 新增板块手机端单列 */
    .yk-duo-grid,
    .yk-volunteer-grid {
        grid-template-columns: 1fr;
    }
}





/* ===== 强制 banner-stats 所有图标白色 ===== */
.yk-banner-stats .yk-stat-icon,
.yk-banner-stats .yk-stat-icon i,
.yk-banner-stats .yk-stat-icon .ph,
.yk-banner-stats .yk-stat-icon .iconfont {
    color: #fff !important;
    fill: #fff !important;
}
.yk-banner-stats .yk-stat-icon svg {
    fill: #fff !important;
    color: #fff !important;
}

/* ===== 来自 view_article.htm ===== */
.yk-detail-wrap { width: var(--container-width); margin: 40px auto 0; display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.yk-detail-main { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 48px; }
.yk-detail-breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.yk-detail-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.yk-detail-breadcrumb a:hover { color: var(--primary); }
.yk-detail-title { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 16px; }
.yk-detail-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.yk-detail-meta i { font-size: 14px; margin-right: 4px; }
.yk-detail-content { padding: 28px 0; line-height: 1.8; color: var(--text-regular); font-size: 16px; }
.yk-detail-content p { margin-bottom: 18px; }
.yk-detail-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.yk-detail-content h3 { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 28px 0 16px; }
.yk-detail-content ul, .yk-detail-content ol { padding-left: 24px; margin-bottom: 18px; }
.yk-detail-content li { margin-bottom: 8px; }
.yk-detail-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.yk-detail-content td, .yk-detail-content th { border: 1px solid var(--border); padding: 10px 14px; }
.yk-detail-content video { max-width: 100%; border-radius: 8px; }
.yk-detail-share { display: flex; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.yk-detail-share span { font-size: 14px; color: var(--text-secondary); }
.yk-share-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s; }
.yk-share-btn i { font-size: 18px; }
.yk-share-wechat { background: #07c160; color: #fff; }
.yk-share-weibo { background: #e6162d; color: #fff; }
.yk-share-qzone { background: #ffce00; color: #333; }
.yk-share-qq { background: #12b7f5; color: #fff; }
.yk-share-link { background: var(--bg); color: var(--text-regular); position: relative; }
.yk-share-link .yk-share-tip { position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.75); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
.yk-share-link .yk-share-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: rgba(0,0,0,0.75); }
.yk-share-btn svg { display: block; }
.yk-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: #fff; }
.yk-share-link:hover { color: var(--text-regular); }
.yk-detail-nav { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 0; }
.yk-detail-nav-item { flex: 1; padding: 16px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s, box-shadow 0.3s; }
.yk-detail-nav-item:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(185,28,28,0.08); }
.yk-detail-nav-item.next { text-align: right; }
.yk-detail-nav-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.yk-detail-nav-title { font-size: 15px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yk-detail-nav-title a { color: var(--text-primary); text-decoration: none; transition: color 0.3s; }
.yk-detail-nav-title a:hover { color: var(--primary); }
.yk-detail-nav-title span { color: var(--text-secondary); }
.yk-detail-sidebar { display: flex; flex-direction: column; gap: 24px; }
.yk-sidebar-block { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.yk-sidebar-block h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.yk-related-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.yk-related-item:last-child { border-bottom: 0; }
.yk-related-item a { color: var(--text-regular); font-size: 14px; text-decoration: none; transition: color 0.3s; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yk-related-item a:hover { color: var(--primary); }
.yk-related-item .date { color: var(--text-secondary); font-size: 12px; flex-shrink: 0; }
.yk-back-list { display: inline-flex; align-items: center; height: 40px; padding: 0 24px; background: var(--primary); color: var(--white) !important; border-radius: 20px; font-size: 14px; text-decoration: none; transition: all 0.3s; }
.yk-back-list:hover { background: var(--primary-hover); }
@media (max-width: 1240px) { .yk-detail-wrap { width: 96%; } }
/* 平板端折中：双栏保持，内容收紧 */
@media (min-width: 767px) and (max-width: 1199px) {
    .yk-detail-wrap { grid-template-columns: 1fr 240px; gap: 24px; }
    .yk-detail-main { padding: 28px 32px; }
    .yk-detail-title { font-size: 24px; }
    .yk-detail-content { font-size: 15px; }
}
/* 小平板过渡：侧边栏移至底部 */
@media (max-width: 900px) {
    .yk-detail-wrap { grid-template-columns: 1fr; }
    .yk-detail-sidebar { flex-direction: row; flex-wrap: wrap; }
    .yk-sidebar-block { flex: 1 1 100%; }
}
/* 手机端 */
@media (max-width: 767px) {
    .yk-detail-main { padding: 20px 16px; }
    .yk-detail-title { font-size: 20px; }
    .yk-detail-meta { gap: 12px; font-size: 13px; }
}

/* ===== 来自 view_recruit.htm（志愿活动详情页）===== */
.yk-vol-detail-wrap { width: var(--container-width); max-width: 96%; margin: 0 auto 0; }
.yk-vol-detail-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.yk-vol-detail-cover { width: 100%; height: 420px; overflow: hidden; background: var(--bg); }
.yk-vol-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yk-vol-detail-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--text-secondary); background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%); }
.yk-vol-detail-cover-empty i { font-size: 40px; color: var(--border); }
.yk-vol-detail-body { padding: 36px 48px 40px; }
.yk-vol-detail-body .yk-detail-title { margin-bottom: 18px; }
.yk-vol-detail-body .yk-detail-content { padding: 28px 0 0; }
.yk-vol-detail-body .yk-detail-content h3 { position: relative; padding-left: 16px; }
.yk-vol-detail-body .yk-detail-content h3::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 20px; background: var(--primary); border-radius: 3px; }
/* 上一条 / 返回列表 / 下一条：整站胶囊按钮风格，紧贴下方红色banner（banner自身有margin-top:30px，此处间距为0） */
.yk-vol-detail-pn { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 0; }
.yk-vol-pn-pre { display: flex; justify-content: flex-start; }
.yk-vol-pn-next { display: flex; justify-content: flex-end; }
.yk-vol-pn-back { flex-shrink: 0; }
.yk-vol-pn-pre a, .yk-vol-pn-next a { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; background: rgba(185,28,28,0.08); color: var(--primary); font-size: 14px; padding: 10px 20px; border-radius: 6px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all 0.3s; }
.yk-vol-pn-pre a:hover, .yk-vol-pn-next a:hover { background: var(--primary); color: var(--white); }
.yk-vol-pn-back a { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--white); font-size: 14px; padding: 10px 26px; border-radius: 6px; text-decoration: none; transition: all 0.3s; }
.yk-vol-pn-back a:hover { background: var(--primary-hover); color: var(--white); }
.yk-vol-pn-none { color: var(--text-secondary); font-size: 14px; padding: 10px 0; }
/* 平板端 */
@media (min-width: 767px) and (max-width: 1199px) {
    .yk-vol-detail-cover { height: 320px; }
    .yk-vol-detail-body { padding: 28px 32px 32px; }
}
/* 手机端 */
@media (max-width: 767px) {
    .yk-vol-detail-cover { height: 220px; }
    .yk-vol-detail-body { padding: 24px 16px 28px; }
    .yk-vol-detail-pn { flex-direction: column; align-items: stretch; gap: 12px; }
    .yk-vol-pn-pre, .yk-vol-pn-next { justify-content: center; }
    .yk-vol-pn-back { text-align: center; }
}

/* ===== 来自 lists_images.htm ===== */
.yk-proj-wrap { width: var(--container-width); margin: 40px auto 60px; }
.yk-proj-header { margin-bottom: 32px; }
.yk-proj-title { font-size: 28px; font-weight: 700; color: var(--text-primary); position: relative; padding-left: 16px; }
.yk-proj-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 28px; background: var(--primary); border-radius: 3px; }
.yk-proj-breadcrumb { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.yk-proj-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.yk-proj-breadcrumb a:hover { color: var(--primary); }
.yk-proj-filter { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.yk-filter-item { display: inline-flex; align-items: center; height: 36px; padding: 0 20px; background: var(--white); border: 1px solid var(--border); border-radius: 18px; font-size: 14px; color: var(--text-regular); text-decoration: none; transition: all 0.3s; }
.yk-filter-item:hover, .yk-filter-item.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.yk-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.yk-proj-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; min-width: 0; }
.yk-proj-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.yk-proj-cover { display: block; height: 220px; overflow: hidden; position: relative; }
.yk-proj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.yk-proj-card:hover .yk-proj-cover img { transform: scale(1.08); }
.yk-proj-cover-placeholder { height: 220px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); display: flex; align-items: center; justify-content: center; }
.yk-proj-cover-placeholder i { font-size: 48px; color: rgba(255,255,255,0.6); }
.yk-proj-badge { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 4px; font-size: 12px; color: var(--white); }
.yk-proj-badge.ongoing { background: var(--primary); }
.yk-proj-badge.pending { background: var(--color-warning); }
.yk-proj-badge.ended { background: #94a3b8; }
.yk-proj-body { padding: 20px; }
.yk-proj-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.yk-proj-name a { color: var(--text-primary); text-decoration: none; transition: color 0.3s; }
.yk-proj-name a:hover { color: var(--primary); }
.yk-proj-desc { color: var(--pc-text-soft); font-size: 13px; line-height: 1.6; margin-bottom: 16px; height: 42px; overflow: hidden; }
.yk-proj-progress { margin-bottom: 16px; }
.yk-proj-bar { width: 100%; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.yk-proj-fill { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%); border-radius: 4px; transition: width 1s ease; }
.yk-proj-info { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.yk-proj-info .raised { color: var(--primary); font-weight: 600; }
.yk-proj-info .target { color: var(--text-secondary); }
.yk-proj-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.yk-proj-donors { font-size: 13px; color: var(--text-secondary); }
.yk-proj-donate { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; background: var(--primary); color: var(--white) !important; border-radius: 16px; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.3s; }
.yk-proj-donate:hover { background: var(--primary-hover); transform: translateY(-1px); }
.yk-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 32px 0 8px; }
.yk-pagination a, .yk-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; color: var(--text-regular); text-decoration: none; transition: all 0.3s; }
.yk-pagination a:hover { border-color: var(--primary); color: var(--primary); }
.yk-pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }
@media (max-width: 1240px) { .yk-proj-wrap { width: 96%; } }
/* 平板端折中：两列网格 */
@media (min-width: 767px) and (max-width: 1199px) {
    .yk-proj-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .yk-proj-cover, .yk-proj-cover-placeholder { height: 180px; }
    .yk-proj-title { font-size: 24px; }
    .yk-proj-filter { gap: 8px; }
    .yk-filter-item { padding: 0 14px; font-size: 13px; }
}
/* 小平板过渡：分类筛选可横向滑动 */
@media (max-width: 900px) {
    .yk-proj-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .yk-filter-item { flex-shrink: 0; }
}
/* 手机端：单列 */
@media (max-width: 766px) { .yk-proj-grid { grid-template-columns: 1fr; } }

/* ===== 来自 view_images.htm ===== */
.yk-pd-wrap { width: var(--container-width); margin: 40px auto 0; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.yk-pd-main { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.yk-pd-cover { width: 100%; height: 400px; overflow: hidden; position: relative; }
.yk-pd-cover img { width: 100%; height: 100%; object-fit: cover; }
.yk-pd-cover-placeholder { width: 100%; height: 400px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); display: flex; align-items: center; justify-content: center; }
.yk-pd-cover-placeholder i { font-size: 80px; color: rgba(255,255,255,0.6); }
.yk-pd-badge { position: absolute; top: 16px; right: 16px; padding: 6px 16px; border-radius: 4px; font-size: 14px; color: #fff; }
.yk-pd-badge.ongoing { background: var(--color-success); }
.yk-pd-badge.pending { background: var(--color-warning); }
.yk-pd-badge.ended { background: #94a3b8; }
.yk-pd-inner { padding: 40px 48px; }
.yk-pd-breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.yk-pd-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.yk-pd-breadcrumb a:hover { color: var(--primary); }
.yk-pd-title { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1.4; margin-bottom: 16px; }
/* 项目详情标题行：状态标签置于主标题左侧（与移动端一致） */
.yk-pd-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.yk-pd-title-row .yk-pd-badge { position: static; top: auto; right: auto; flex: 0 0 auto; }
.yk-pd-title-row .yk-pd-title { flex: 1; min-width: 0; margin-bottom: 0; }
.yk-pd-meta { display: flex; gap: 24px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-secondary); }
.yk-pd-meta i { font-size: 14px; margin-right: 4px; }
/* 项目周期：开始/结束时间 */
.yk-pd-time { padding: 12px 0 0; font-size: 14px; color: var(--text-secondary); }
.yk-pd-time i { font-size: 14px; margin-right: 4px; }
.yk-pd-section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.yk-pd-section:last-child { border-bottom: 0; }
.yk-vol-sec { padding-bottom: 0; border-bottom: 0; }
.yk-pd-section-title { font-size: 20px; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; padding-left: 14px; position: relative; }
.yk-pd-section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.yk-pd-content { line-height: 1.8; color: var(--text-regular); font-size: 15px; }
.yk-pd-content p { margin-bottom: 16px; }
.yk-pd-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.yk-pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.yk-pd-stat { text-align: center; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.yk-pd-stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.yk-pd-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.yk-pd-bar-wrap { margin: 16px 0; }
.yk-pd-bar { width: 100%; height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.yk-pd-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%); border-radius: 6px; transition: width 1s ease; }
.yk-pd-bar-info { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.yk-pd-bar-info .raised { color: var(--primary); font-weight: 600; }
.yk-pd-bar-info .target { color: var(--text-secondary); }
/* 时间线 */
.yk-timeline { position: relative; padding-left: 32px; }
.yk-timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.yk-tl-item { position: relative; padding-bottom: 32px; }
.yk-tl-item:last-child { padding-bottom: 0; }
.yk-tl-dot { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; background: var(--white); border: 3px solid var(--primary); border-radius: 50%; }
.yk-tl-date { font-size: 14px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.yk-tl-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.yk-tl-content { color: var(--text-regular); font-size: 14px; line-height: 1.6; }
.yk-tl-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
/* 侧边栏 */
.yk-pd-sidebar { display: flex; flex-direction: column; gap: 24px; }
.yk-pd-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.yk-pd-card h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.yk-donate-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%); border-radius: var(--radius); padding: 32px 24px; text-align: center; color: var(--white); }
.yk-donate-box h3 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.yk-donate-box p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.yk-donate-box .stat { margin: 8px 0; }
.yk-donate-box .stat-value { font-size: 24px; font-weight: 700; }
.yk-donate-box .stat-label { font-size: 13px; opacity: 0.8; }
.yk-btn-donate-big { display: block; background: var(--white); color: var(--primary) !important; border-radius: 24px; padding: 14px 32px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.3s; margin-top: 16px; }
.yk-btn-donate-big:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
/* 志愿活动报名框：状态行 + 按钮禁用态 */
.yk-vol-signup-stat { font-size: 13px; opacity: 0.9; margin-bottom: 4px; }
.yk-btn-donate-big.is-disabled { opacity: 0.65; cursor: not-allowed; }
.yk-btn-donate-big.is-disabled:hover { transform: none; box-shadow: none; }
.yk-pd-related-item { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.yk-pd-related-item:last-child { border-bottom: 0; }
.yk-pd-related-item a { color: var(--text-regular); font-size: 14px; text-decoration: none; transition: color 0.3s; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yk-pd-related-item a:hover { color: var(--primary); }
.yk-pd-nav { display: flex; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--border); }
.yk-pd-nav-item { flex: 1; }
.yk-pd-nav-item.next { text-align: right; }
.yk-pd-nav-label { font-size: 13px; color: var(--text-secondary); }
.yk-pd-nav-title a { color: var(--text-primary); text-decoration: none; }
.yk-pd-nav-title a:hover { color: var(--primary); }
.yk-pd-nav-title span { color: var(--text-secondary); }
@media (max-width: 1240px) { .yk-pd-wrap { width: 96%; } }
/* 平板端折中：双栏保持，内容收紧 */
@media (min-width: 767px) and (max-width: 1199px) {
    .yk-pd-wrap { grid-template-columns: 1fr 260px; gap: 24px; }
    .yk-pd-cover, .yk-pd-cover-placeholder { height: 320px; }
    .yk-pd-inner { padding: 28px 32px; }
    .yk-pd-title { font-size: 24px; }
    .yk-pd-stats { gap: 16px; }
    .yk-pd-stat { padding: 16px; }
    .yk-pd-stat-value { font-size: 22px; }
    .yk-pd-section { padding: 24px 0; }
}
/* 小平板过渡：侧边栏移至底部 */
@media (max-width: 900px) {
    .yk-pd-wrap { grid-template-columns: 1fr; }
    .yk-pd-sidebar { flex-direction: row; flex-wrap: wrap; }
    .yk-donate-box { flex: 1 1 100%; }
    .yk-pd-card { flex: 1 1 100%; }
}
/* 手机端 */
@media (max-width: 767px) {
    .yk-pd-cover, .yk-pd-cover-placeholder { height: 220px; }
    .yk-pd-inner { padding: 20px 16px; }
    .yk-pd-stats { grid-template-columns: 1fr; }
}
/* 2026-10-22: 刷新 mtime 强制浏览器重拉，修复 .yk-proj-desc / .yk-marquee-action 等列表页副标题/简介 color 为 var(--pc-text-soft): #777 */

/* ========== 爱心捐赠公示：线下导入数据表（参考图01） ========== */
.yk-offdonate {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;                      /* 填满父 section 剩余空间 */
    min-height: 0;
}
.yk-offdonate-head,
.yk-offdonate-row {
    display: grid;
    grid-template-columns: minmax(0, 25fr) minmax(0, 25fr) minmax(0, 50fr);
    align-items: center;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
}
.yk-offdonate-head {
    flex-shrink: 0;
    height: 44px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--color-text-main);
    margin-bottom: 12px;
}
.yk-offdonate-row {
    min-height: 44px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 14px;
    line-height: var(--line-height-tight);
    color: var(--color-text-main);
}
/* 4 条一屏：第 4、8、12…行不画下边框 */
.yk-offdonate-row:nth-child(4n) { border-bottom: 0; }
.yk-offdonate-viewport { overflow: hidden; flex: 1; min-height: 0; }
.yk-offdonate-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, 1fr);
    grid-auto-columns: 100%;
    height: 100%;
    transition: transform 0.5s ease-out;
}
.yk-offdonate-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.yk-offdonate-dot {
    width: 16px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #ccc;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}
.yk-offdonate-dot.is-active {
    width: 24px;
    background: var(--primary);
}
.yk-offdonate-row:hover { background: var(--color-primary-bg); }
.yk-offdonate-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.yk-offdonate-amount {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}
.yk-offdonate-time { color: var(--color-text-sub); overflow: hidden; white-space: nowrap; text-overflow: clip; }
.yk-offdonate-empty {
    padding: 48px 0;
    font-size: 14px;
    text-align: center;
    color: var(--color-text-sub);
}
