/* ===== ycnh 动态化追加样式（不覆盖原模板规则） v=20261017h ===== */

/* 比赛行内链接沿用原文字颜色 */
.match-comp .comp-info a.comp-name { color: inherit; text-decoration: none; }
.match-comp .comp-info a.comp-name:hover { color: #e63946; }
.match-body .m-name a { color: inherit; text-decoration: none; }
.match-body .m-name a:hover { color: #e63946; }

/* 列表二级导航（融入页面底色，宽度与下方容器一致，带 panel-title 标题） */
.ycnh-subnav .container { display:flex; flex-wrap:wrap; padding:12px 16px 4px; gap:6px 4px; }
.ycnh-subnav-title { flex:0 0 100%; margin:0 0 6px; font-size:1rem; }
.ycnh-subnav a { display:inline-block; padding:5px 14px; font-size:.85rem; color:#555; background:#fff; border-radius:16px; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,.05); transition:all .15s; }
.ycnh-subnav a:hover { color:#e63946; }
.ycnh-subnav a.on { background:#e63946; color:#fff; }

/* 日期分组头 */
.ycnh-date-head { display:block !important; width:100%; padding:8px 16px !important; background:#f0f3fa; color:#1a1f36; font-size:.85rem; font-weight:700; border-bottom:1px solid #e6e9f2; cursor:default; }
.ycnh-date-head:hover { background:#f0f3fa; }

/* 空态 / 隐藏 */
.ycnh-empty { padding:24px 16px; text-align:center; color:#999; font-size:.88rem; }
.ycnh-off, .ycnh-hide { display:none !important; }

/* 赛前按钮态：绿色（赛中保持原 .m-live-btn 红色） */
.m-live-btn.ycnh-wait { background:#10b981 !important; color:#fff !important; }
.m-live-btn.ycnh-wait:hover { background:#0ea372 !important; color:#fff !important; }

/* 详情页对阵区状态文字 */
.match_gray { color:#94a3b8 !important; }
.match_blue { color:#3b82f6 !important; }
.match_green { color:#10b981 !important; }
.ycnh-live-red { color:#e63946 !important; font-weight:700; }

/* 单栏详情容器 */
.ycnh-single-layout { display:block; padding:20px 16px; }
.ycnh-single-layout > .panel + .panel { margin-top:20px; }
.ycnh-hero-center-status { display:inline-block; margin:0 8px; font-size:18px; }

/* 信号区别名 */
.ycnh-signal-title { margin:0; }

/* 赛事介绍页 prenext */
.ycnh-prenext { background:#fff; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,.08); padding:14px 18px; font-size:.88rem; line-height:2; }
.ycnh-prenext a { color:#1a1f36; }
.ycnh-prenext a:hover { color:#e63946; }

/* 面包屑 */
.ycnh-crumb { font-size:.82rem; color:#888; padding:12px 16px 0; }
.ycnh-crumb a { color:#888; }
.ycnh-crumb a:hover { color:#e63946; }

/* 正文防溢出 */
.ycnh-content, .art-detail-body { word-wrap:break-word; overflow:hidden; }
.ycnh-content img, .art-detail-body img { max-width:100%; height:auto; }
.ycnh-content video, .art-detail-body video { max-width:100%; }
.ycnh-content table, .art-detail-body table { max-width:100%; }

/* 文章/录像标签 */
.art-tags a, .ycnh-tags a { display:inline-block; margin:0 6px 6px 0; padding:3px 10px; background:#f5f6fa; color:#555; border-radius:4px; font-size:.8rem; text-decoration:none; }
.art-tags a:hover, .ycnh-tags a:hover { background:#e63946; color:#fff; }

/* 分页（eyou pagelist 输出裸 li） */
.ycnh-fenye { text-align:center; padding:16px 0 8px; }
.ycnh-fenye li { display:inline-block; }
.ycnh-fenye li a { display:inline-block; padding:5px 11px; margin:0 2px; border:1px solid #e3e5ec; border-radius:4px; color:#1a1f36; font-size:.82rem; text-decoration:none; }
.ycnh-fenye li a:hover { border-color:#e63946; color:#e63946; }
.ycnh-fenye li a.active { background:#e63946; border-color:#e63946; color:#fff; }

/* 侧栏友链 */
.ycnh-flink-list { padding:12px 18px !important; display:flex; flex-wrap:wrap; gap:6px; }
.ycnh-flink-list a { color:#888; font-size:.82rem; }
.ycnh-flink-list a:hover { color:#e63946; }
.ycnh-flink a { color:#8090b0; }

/* 回到顶部/底部 */
#totop, #tobottom { display:none; position:fixed; right:14px; width:42px; height:42px; line-height:42px; text-align:center; background:rgba(26,31,54,.82); color:#fff; border-radius:50%; z-index:998; cursor:pointer; font-size:20px; user-select:none; }
#totop { bottom:96px; }
#tobottom { bottom:46px; }

/* 移动端吸底导航 */
.footer2 { display:none; }
@media (max-width: 768px) {
  body { padding-bottom:60px; }
  .footer2 { display:flex; position:fixed; left:0; right:0; bottom:0; height:56px; background:#fff; border-top:1px solid #eee; z-index:997; box-shadow:0 -1px 6px rgba(0,0,0,.08); }
  .footer2 a { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:11px; color:#666; text-decoration:none; gap:2px; }
  .footer2 a i { width:24px; height:24px; background-size:contain; background-repeat:no-repeat; background-position:center; }
  .footer2 a.index i { background-image:url(../images/shouye-dq.png); }
  .footer2 a.icozq i { background-image:url(../images/zq-dq.png); }
  .footer2 a.icolq i { background-image:url(../images/lq-dq.png); }
  .footer2 a.icolx i { background-image:url(../images/lx-dq.png); }
  .footer2 a.icoxs i { background-image:url(../images/xs-dq.png); }
  #totop, #tobottom { width:36px; height:36px; line-height:36px; font-size:16px; }
}

/* 顶栏下拉增强：悬停链接本身也展开（与原 .nav-item:hover 规则等价，纯新增） */
.nav-item > .nav-link:hover ~ .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display:block; }

/* ===== 移动端汉堡 + 手风琴菜单（PC 默认隐藏，≤768px 启用） ===== */
.ycnh-m-toggle { display:none; }
.ycnh-m-panel { display:none; }
@media (max-width: 768px) {
  .site-header { overflow:visible; }
  .header-inner { gap:12px; }
  .site-nav { display:none; }
  .ycnh-m-toggle { display:flex; flex-direction:column; justify-content:center; gap:5px; width:40px; height:40px; margin-left:auto; padding:8px; background:transparent; border:0; cursor:pointer; }
  .ycnh-m-toggle span { display:block; width:100%; height:2px; background:#fff; border-radius:2px; transition:transform .25s, opacity .25s; }
  .ycnh-m-toggle.on span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .ycnh-m-toggle.on span:nth-child(2) { opacity:0; }
  .ycnh-m-toggle.on span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .ycnh-m-panel { position:absolute; top:100%; left:0; right:0; z-index:998; background:#f4f5f7; max-height:70vh; overflow-y:auto; }
  .ycnh-m-panel.open { display:block; }
  .ycnh-m-inner { padding-top:12px; padding-bottom:16px; }
  .ycnh-m-title { margin-bottom:10px; font-size:1rem; }
  /* 首页：热门赛事胶囊（与列表二级导航同款） */
  .ycnh-m-hot { display:flex; flex-wrap:wrap; gap:8px 8px; }
  .ycnh-m-hot a { display:inline-block; padding:6px 15px; font-size:.85rem; color:#555; background:#fff; border-radius:16px; text-decoration:none; box-shadow:0 1px 3px rgba(0,0,0,.05); transition:color .15s; }
  .ycnh-m-hot a:active { color:#e63946; }
  /* 内页：栏目导航手风琴 */
  .ycnh-m-list { list-style:none; margin:0; padding:0; }
  .ycnh-m-li { border-bottom:1px solid #e6e8ef; }
  .ycnh-m-link { display:flex; align-items:center; width:100%; padding:13px 0; font-size:15px; font-weight:600; color:#1a1f36; text-decoration:none; }
  .ycnh-m-li.active > .ycnh-m-link,
  .ycnh-m-li.active > .ycnh-m-parent { color:#e63946; }
  .ycnh-m-parent { display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
  .ycnh-m-parent > .ycnh-m-link { flex:1; }
  .ycnh-m-plus { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:34px; height:34px; margin-left:10px; font-size:20px; font-weight:400; font-style:normal; line-height:1; color:#9aa1b5; cursor:pointer; user-select:none; -webkit-user-select:none; }
  .ycnh-m-has-sub.open > .ycnh-m-parent .ycnh-m-plus { color:#e63946; font-size:0; }
  .ycnh-m-has-sub.open > .ycnh-m-parent .ycnh-m-plus::before { content:'-'; font-size:24px; }
  .ycnh-m-sub { display:none; list-style:none; margin:0; padding:0; }
  .ycnh-m-has-sub.open > .ycnh-m-sub { display:block; }
  .ycnh-m-sub li a { display:block; padding:11px 0 11px 16px; font-size:14px; color:#555e76; text-decoration:none; border-top:1px solid #e6e8ef; }
  .ycnh-m-sub li a:active { color:#e63946; }
}

/* ===== 移动端比赛行紧凑化：消除空比分占位，队名不与状态按钮重叠 ===== */
@media (max-width: 600px) {
  .match-row { padding:8px 10px; gap:8px; }
  .match-comp { min-width:58px; max-width:58px; padding-right:6px; gap:4px; }
  .match-body { gap:4px; }
  .match-home, .match-away { gap:4px; }
  .m-score:empty { display:none; }
  .m-name { max-width:60px; overflow:hidden; font-size:.78rem; }
  .m-logo { width:24px; height:24px; }
  .m-live-btn { padding:4px 10px; font-size:.72rem; }
}
