/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f5f7; color: #222; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Header ── */
.site-header { background: #1a1f36; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; height: 56px; gap: 32px; }
.site-logo { font-size: 1.3rem; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: .5px; }
.site-logo:hover { color: #f0b429; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link { padding: 6px 14px; border-radius: 4px; color: #c8cfe0; font-size: .92rem; transition: background .15s, color .15s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: #fff; }

/* ── 二级下拉菜单 ── */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 140px; background: #252b4a; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.3); padding: 4px 0; z-index: 200; }
.nav-item:hover .nav-dropdown { display: block; }
.dropdown-link { display: block; padding: 8px 16px; color: #c8cfe0; font-size: .88rem; white-space: nowrap; transition: background .12s, color .12s; }
.dropdown-link:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Main Layout ── */
.main-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; padding: 20px 16px; }
@media (max-width: 900px) { .main-layout { grid-template-columns: 1fr; } }

/* ── Panel Base ── */
.panel { background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; }
.panel-title { font-size: 1rem; font-weight: 600; color: #1a1f36; display: flex; align-items: center; gap: 8px; }
.panel-title::before { content: ''; display: inline-block; width: 4px; height: 16px; background: #e63946; border-radius: 2px; }

/* ── Match List ── */
.match-list { padding: 4px 0; }

/* 横排赛程行 */
.match-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: #fafbff; }

/* 左列：赛事信息 */
.match-comp {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 100px;
  max-width: 100px;
  padding-right: 12px;
  /* border-right: 1px solid #eee; */
  flex-shrink: 0;
}
.comp-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.comp-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.comp-name { font-size: .75rem; color: #555; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-time { font-size: .8rem; color: #e63946; font-weight: 600; white-space: nowrap; }

/* 中间：对阵 + 比分 */
.match-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.match-home {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.match-away {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}
.m-name {
  font-size: .88rem;
  font-weight: 600;
  color: #1a1f36;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.match-home .m-name { text-align: right; }
.match-away .m-name { text-align: left; }
.m-logo {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fafafa;
  flex-shrink: 0;
}
.m-score {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1f36;
  min-width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* 中央状态块（比赛状态 / 经过时间） */
.match-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 52px;
  flex-shrink: 0;
}
.m-status {
  font-size: .72rem;
  font-weight: 600;
  color: #e63946;
  white-space: nowrap;
}
.m-elapsed { font-size: .68rem; color: #e63946; }
/* 无状态时显示 VS */
.m-status:empty + .m-elapsed:empty::before {
  content: 'VS';
  font-size: .75rem;
  font-weight: 700;
  color: #aaa;
}

/* 右列：直播按钮 */
.m-live-btn {
  flex-shrink: 0;
  padding: 5px 13px;
  background: #22a85a;
  color: #fff;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.m-live-btn:hover { background: #1a9050; color: #fff; }

/* 移动端适配 */
@media (max-width: 600px) {
  .match-comp { min-width: 72px; max-width: 72px; }
  .m-name { max-width: 60px; font-size: .8rem; }
  .m-score { font-size: 1rem; }
  .match-mid { min-width: 40px; }
  .m-live-btn { padding: 4px 9px; font-size: .75rem; }
}

/* ── Right Column ── */
.right-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ── Hot Competitions ── */
.hot-comp-list { padding: 4px 0; }
.hot-comp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.hot-comp-item:last-child { border-bottom: none; }
.hot-comp-item:hover { background: #fafbff; }
.hot-comp-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.hot-comp-name { flex: 1; font-size: .9rem; font-weight: 600; color: #1a1f36; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hot-comp-type {
  font-size: .72rem; color: #fff; font-weight: 600; padding: 1px 7px;
  border-radius: 10px; background: #e63946; flex-shrink: 0; white-space: nowrap;
}

/* ── Article List ── */
.article-list { padding: 8px 0; }
.article-card { padding: 12px 18px; border-bottom: 1px solid #f5f5f5; }
.article-card:last-child { border-bottom: none; }
.article-card:hover { background: #fafbff; }
.article-title { display: block; font-size: .93rem; font-weight: 600; color: #1a1f36; line-height: 1.4; margin-bottom: 4px; }
.article-title:hover { color: #e63946; }
.article-info { margin-bottom: 4px; }
.article-date { font-size: .78rem; color: #aaa; }
.article-summary { font-size: .83rem; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Article List Page ── */
.art-list-panel .panel-title { font-size: 1.05rem; }
.art-list { padding: 8px 0; }
.art-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid #f5f5f5;
  transition: background .1s;
}
.art-card:last-child { border-bottom: none; }
.art-card:hover { background: #fafbff; }
.art-card-cover-wrap { flex-shrink: 0; width: 110px; height: 74px; border-radius: 6px; overflow: hidden; background: #f0f0f0; }
.art-card-cover { width: 110px; height: 74px; object-fit: cover; display: block; }
.art-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.art-card-title {
  font-size: .95rem; font-weight: 600; color: #1a1f36; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-card-title:hover { color: #e63946; }
.art-card-summary {
  font-size: .83rem; color: #666; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.art-card-date { font-size: .76rem; color: #bbb; }

/* ── Sidebar Matches (article list & detail pages) ── */
.sidebar-match-panel .panel-head { border-bottom-color: #f0f0f0; }
.sidebar-match-list { padding: 4px 0; }
.sidebar-match-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 16px; border-bottom: 1px solid #f5f5f5;
  transition: background .1s; text-decoration: none;
}
.sidebar-match-row:last-child { border-bottom: none; }
.sidebar-match-row:hover { background: #fafbff; }
.sm-comp { display: flex; align-items: center; gap: 5px; }
.sm-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.sm-comp-name { font-size: .72rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-teams { display: flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; color: #1a1f36; }
.sm-team { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sm-teams .sm-team:first-child { text-align: right; }
.sm-teams .sm-team:last-child { text-align: left; }
.sm-vs { color: #aaa; font-size: .75rem; font-weight: 400; flex-shrink: 0; }
.sm-time { font-size: .75rem; color: #e63946; font-weight: 600; }

/* ── Article Detail Page ── */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 20px 16px; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.art-detail { padding: 24px 28px; }
.art-detail-hd { margin-bottom: 14px; }
.art-detail-title { font-size: 1.45rem; font-weight: 700; color: #1a1f36; line-height: 1.4; margin-bottom: 10px; }
.art-detail-meta { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: #aaa; }
.meta-author:not(:empty)::before { content: '作者：'; }
.art-detail-cover-wrap { margin-bottom: 18px; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.art-detail-cover { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.art-detail-body {
  font-size: .95rem; color: #333; line-height: 1.85;
  word-break: break-word; overflow-wrap: break-word;
}
.art-detail-body img { max-width: 100%; border-radius: 4px; }
.art-detail-body p { margin-bottom: .9em; }
.art-detail-body h2, .art-detail-body h3 { margin: 1.2em 0 .5em; color: #1a1f36; }
.art-detail-body ul, .art-detail-body ol { padding-left: 1.4em; margin-bottom: .9em; }
.art-detail-body blockquote {
  margin: 1em 0; padding: 10px 16px;
  border-left: 3px solid #e63946; background: #fafafa; color: #555;
  border-radius: 0 4px 4px 0;
}

/* Tags */
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.tag-item {
  display: inline-block; padding: 3px 12px;
  background: #f0f2f7; color: #555; font-size: .8rem;
  border-radius: 20px; transition: background .15s, color .15s;
}
.tag-item:hover { background: #e63946; color: #fff; }

/* Related Articles */
.related-panel .panel-head { border-bottom-color: #f0f0f0; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px 18px; }
@media (max-width: 600px) { .related-list { grid-template-columns: 1fr 1fr; } }
.related-card { display: flex; flex-direction: column; gap: 6px; }
.related-cover-wrap { border-radius: 6px; overflow: hidden; background: #f0f0f0; aspect-ratio: 16/9; }
.related-cover { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.related-cover-wrap:hover .related-cover { transform: scale(1.04); }
.related-body { display: flex; flex-direction: column; gap: 3px; }
.related-title {
  font-size: .85rem; font-weight: 600; color: #1a1f36; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-title:hover { color: #e63946; }
.related-date { font-size: .74rem; color: #bbb; }

@media (max-width: 600px) {
  .art-card-cover-wrap { width: 84px; height: 56px; }
  .art-card-cover { width: 84px; height: 56px; }
  .art-detail { padding: 16px; }
  .art-detail-title { font-size: 1.2rem; }
  .related-list { grid-template-columns: 1fr 1fr; }
}

/* ── Footer ── */
.site-footer { background: #1a1f36; color: #8090b0; margin-top: 20px; padding: 20px 0; }
.friend-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; }
.links-label { color: #c8cfe0; white-space: nowrap; }
.site-footer a { color: #8090b0; padding: 2px 6px; border-radius: 3px; transition: color .15s; font-size: .85rem; }
.site-footer a:hover { color: #f0b429; }
.copyright { font-size: .8rem; color: #5a6a8a; text-align: center; }
