/* 仿 xyezy9 首页形态：分组分类面板 / 统计卡 / 板块 / 封面 16:9 适配（配色跟随 Helen 浅色+琥珀黄） */

/* ============ 分组分类面板（全站导航） ============ */
.xy-nav-panel{max-width:1280px;margin:18px auto 0;padding:0 15px}
.xy-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.xy-group{margin:0;padding:16px 18px;list-style:none;border:1px solid #e7e7e7;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.xy-group h3{margin:0 0 12px;font-size:15px;font-weight:700;color:#222;line-height:1.3}
.xy-list{display:flex;flex-wrap:wrap;gap:9px;margin:0;padding:0;list-style:none}
.xy-list li{margin:0;padding:0;list-style:none}
.xy-chip{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid #e3e3e3;background:#f7f7f7;color:#444 !important;font-size:13px;line-height:1.2;transition:all .2s ease}
.xy-chip:hover{background:linear-gradient(90deg,#ffb400,#ffce5c);border-color:transparent;color:#fff !important;transform:translateY(-1px)}
.xy-chip.is-active{background:linear-gradient(90deg,#ffb400,#ffce5c);border-color:transparent;color:#fff !important;font-weight:700}

/* ============ 统计卡 ============ */
.xy-stats-row{display:flex;gap:10px;margin-bottom:16px}
.xy-stats{display:inline-flex;gap:10px;vertical-align:middle}
.xy-stat-card{display:inline-flex;flex-direction:column;justify-content:center;min-width:96px;padding:6px 14px;border:1px solid #eee;border-radius:10px;background:#fafafa;line-height:1.35;text-align:center}
.xy-stat-card .xy-stat-label{font-size:12px;color:#999}
.xy-stat-card strong{font-size:18px;color:#ffb400;font-weight:700}
.xy-stat-card:hover{border-color:#ffb400}
.xy-stat-card:hover strong{color:#ff9d00}

/* ============ 板块标题 ============ */
.xy-sec .tv-hd{border-bottom:2px solid #ffb400;height:44px;margin-top:26px}
.xy-sec .tv-hd h2{font-size:20px;line-height:44px;font-weight:700;color:#222}
.xy-sec .tv-hd .imore{padding:7px 0;height:30px}

/* ============ 视频板块网格 ============ */
.xy-sec .videos-list{margin:0;padding:0;list-style:none}
.xy-sec .videos-list::after{content:"";display:table;clear:both}
.xy-sec .thumb-block{float:left;width:25%;padding:0 0 18px 20px;list-style:none;margin:0}
.xy-sec:first-of-type .thumb-block:nth-child(n+9){display:none}

/* ============ 封面统一 16:9 适配（核心） ============ */
.xy-sec .post-thumbnail{position:relative;display:block;width:100%;aspect-ratio:16/9;height:auto;max-height:none;overflow:hidden;border-radius:6px;background:#f0f0f0}
.xy-sec .post-thumbnail img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;min-height:0;object-fit:cover;object-position:center center;border-radius:6px}
.xy-sec .entry-header{padding-top:7px}
.xy-sec .entry-header span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.4}
.xy-sec .entry-header a{color:#333}
.xy-sec .entry-header a:hover{color:#ffb400}

/* AI 剧情区：3:4 竖图、桌面 6 列（xyezy9 同款） */
.xy-sec-ai{--xy-ai-ratio:3/4}
.xy-sec-ai .post-thumbnail{aspect-ratio:var(--xy-ai-ratio)}
.xy-sec-ai .thumb-block{width:16.6667%}
.xy-sec-ai:first-of-type .thumb-block:nth-child(n+7){display:none}
.xy-sec-ai:first-of-type .thumb-block:nth-child(n+7):nth-child(-n+12){display:block}

/* ============ 响应式 ============ */
@media only screen and (max-width:1024px){
    .xy-sec .thumb-block{width:33.3333%}
    .xy-sec-ai .thumb-block{width:25%}
    .xy-groups{grid-template-columns:1fr}
}
@media only screen and (max-width:640px){
    .xy-nav-panel{margin-top:12px;padding:0 12px}
    .xy-group{padding:14px 12px}
    .xy-chip{min-height:32px;padding:0 12px;font-size:12px}
    .xy-list{gap:7px}
    .xy-sec .thumb-block,.xy-sec-ai .thumb-block{width:50%;padding-left:10px}
    .xy-sec-ai .thumb-block{width:33.3333%}
    .xy-sec:first-of-type .thumb-block:nth-child(n+7){display:block}
    .xy-sec:first-of-type .thumb-block:nth-child(n+9){display:none}
    .xy-sec-ai:first-of-type .thumb-block:nth-child(n+7){display:none}
    .xy-stats{display:none}
}

/* xy-type2: 分类页卡片仿首页板块——封面16:9、手机两列（分类页不加载 q2.css，故同步到全站加载的 xy_home.css） */
.tv-list.xy-type2{margin-left:0;margin-right:0}
.tv-list.xy-type2 li{float:left;width:25%;padding:0 5px 16px;margin:0}
.tv-list.xy-type2 .v-pic{position:relative;overflow:hidden;height:auto !important;aspect-ratio:16/9;min-height:0;border-radius:6px;background:#f0f0f0}
.tv-list.xy-type2 .v-pic img{position:absolute;inset:0;width:100% !important;height:100% !important;min-height:0 !important;object-fit:cover;object-position:center;border-radius:6px}
.tv-list.xy-type2 .v-txt{padding-top:7px}
.tv-list.xy-type2 .s-des{display:none}
.tv-list.xy-type2 .v-tit{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.4}
.tv-list.xy-type2 .v-tit a{color:#333}
.tv-list.xy-type2 .v-tit a:hover{color:#ffb400}
@media only screen and (max-width:1024px){.tv-list.xy-type2 li{width:33.3333%}}
@media only screen and (max-width:640px){.tv-list.xy-type2 li{width:50%;padding:0 5px 12px}.tv-list.xy-type2 .v-tit{font-size:13px}}
