* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 默认回退（与 theme/2 经典橙蓝一致，实际配色由 theme/N.css 覆盖） */
:root {
  --primary: #ff7b2c;
  --primary-soft: #ffede3;
  --primary-muted: #c2410c;
  --header-bg: #0a1f2e;
  --header-text: #eef2f5;
  --footer-text: #9aaebf;
  --body-bg: #f5f7fa;
  --text: #1e2a3e;
  --text-muted: #6c7a89;
  --card-bg: #ffffff;
  --border: #f0f2f5;
  --hover-bg: #fafcff;
  --upcoming: #ffedd5;
  --upcoming-text: #b45309;
  --upcoming-border: #fdba74;
  --live: #e53e3e;
  --live-shadow:#ff4d4d;
  --live-glow: rgba(229, 62, 62, 0.55);
  --live-text: #ffffff;
  --ended: #94a3b8;
  --match-time: #f97316;
  --surface: #f0f2f5;
  --surface-2: #e2e8f0;
  --link: #3a6b92;
  --tag-bg: #f1f5f9;
  --tag-text: #2c3e66;
  --meta: #8a9bb0;
  --logo-color: #ff9f5a;
  --logo-sub-color: #ffffff;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-size: inherit;
  font-weight: inherit;
}

/* 闈㈠寘灞?*/
.breadcrumb {
  margin: 16px 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* 鍐呴〉鏍囬 */
.page-head {
  margin-bottom: 20px;
}

.page-head h1 {
  font-size: 1.5rem;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  margin-bottom: 8px;
}

.page-head p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 鍒嗛〉 */
#pages, .fenye ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 20px 0;
}

#pages a, .fenye ul li a {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  display: block;
  font-size: 13px;
  padding: 6px 12px;
}

#pages a:hover, .fenye ul li a:hover,
.fenye ul li.active a {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.empty-tip {
  color: var(--text-muted);
  padding: 40px 20px;
  text-align: center;
}

/* 瑙嗛 */
.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 16px;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zhibo_btn a {
  background: var(--live);
  color: #fff;
  display: inline-block;
  font-weight: 600;
  margin: 6px;
  padding: 10px 20px;
  border-radius: 30px;
}

.stream-sources__bar {
  background: #000 !important;
  border: 1px solid #000 !important;
  border-radius: 16px !important;
  padding: 12px !important;
}

.src-pill.is-recommended {
  background: var(--live, var(--primary)) !important;
  border-color: var(--live, var(--primary)) !important;
  color: #fff !important;
}
.header {
  background: var(--header-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--logo-color);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.logo span {
  color: var(--logo-sub-color);
  font-weight: normal;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.2rem;
}

.nav-links li a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  transition: 0.2s;
  font-size: 1rem;
}

.nav-links li a:hover,
.nav-links li.active a {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  background: #fff;
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 24px;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 12px 0;
  }
  .nav-links.is-open { display: flex;gap:20px;align-items: center; }
  .nav-bar { gap: 10px; }
}

.footer {
  background: var(--header-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 28px 0;
  margin-top: 20px;
  font-size: 0.8rem;
  line-height: 1.8;
}

.footer a {
  color: var(--footer-text);
}

.footer a:hover {
  color: var(--primary);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin: 0 0 16px 0;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.section-more {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.section-more:hover {
  text-decoration: underline;
}

.badge-new {
  background: #ff7b2c20;
  color: var(--primary-muted);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.65rem;
  margin-left: 8px;
  font-weight: 500;
}

.main-layout {
  display: flex;
  gap: 30px;
  margin: 20px 0 30px;
}

.left-content {
  flex: 2;
  min-width: 0;
}

.right-sidebar {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }
}

/* 璧涗簨鍒楄〃 */
.matches-list {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  flex-wrap: wrap;
  gap: 12px;
  color: inherit;
  /* cursor: pointer; */
}

.match-status-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.match-row:hover {
  background: var(--hover-bg);
}

.match-row:last-child {
  border-bottom: none;
}

.match-time-col {
  min-width: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.right-sidebar .match-timea{
  width: 100%;
  justify-content: space-between;
}
.right-sidebar .match-row{
  justify-content: center;
}
.right-sidebar .match-status-col{
  width: 100%;
  text-align: center;
}
.right-sidebar .match-league-col{justify-content: flex-end;}
.match-timea{
  display: flex;
}
.match-league-col {
  min-width: 110px;
  display: flex;
  align-items: center;
  gap: 6px;
  
}

.league-icon {
  font-size: 1rem;
  display: flex;
}

.league-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.league-name:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.match-teams-col {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 280px;
}

.team-home-wrapper,
.team-away-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.team-home-wrapper {
  justify-content: flex-end;
}

.team-away-wrapper {
  justify-content: flex-start;
}

.team-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface);
  flex-shrink: 0;
}

.team-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.vs-middle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ended);
  background: var(--tag-bg);
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.match-status-col {
  min-width: 100px;
  text-align: right;
}

.live-btn {
  background: var(--live);
  color: var(--live-text, #ffffff);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 30px;
  display: inline-block;
  border: 1px solid var(--live-border, rgba(255, 255, 255, 0.25));
  /* box-shadow: 0 3px 14px var(--live-shadow); */
  animation: pulse 1.2s infinite;
  letter-spacing: 0.02em;
}

.upcoming-btn {
  background: var(--upcoming);
  color: var(--upcoming-text);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 30px;
  display: inline-block;
  border: 1px solid var(--upcoming-border);
  box-shadow: none;
}

.ended-btn {
  background: var(--ended);
  color: var(--ended-text, #ffffff);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
    background: var(--live);
  }
  50% {
    opacity: 1;
    background: var(--live-shadow);
    box-shadow: 0 0 4px var(--live-shadow);
  }
}

@media (max-width: 850px) {
  .match-league-col{
    justify-content: flex-end;
  }
  .match-row {
    flex-direction: column;
    align-items: stretch;
  }
  .match-timea{
    justify-content: space-between;
  }
  .match-teams-col {
    justify-content: space-between;
  }
  .match-status-col {
    text-align: left;
    margin-top: 4px;
    margin: 0 auto;
  }
  .team-name {
    max-width: 100px;
  }
}

/* 渚ф爮 */
.sidebar-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 14px 18px 8px;
  border-bottom: 1px solid var(--border);
}

.card-header .section-title {
  font-size: 1.2rem;
  margin: 0;
  border-left-width: 3px;
}

.news-with-img {
  padding: 0 0 8px;
}

.news-img-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  color: inherit;
}

.news-img-item:hover {
  background: var(--hover-bg);
}

.news-thumb {
  width: 85px;
  height: 65px;
  border-radius: 10px;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: hidden;
}

.news-thumb img {
  width: 85px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 0.65rem;
  color: var(--meta);
  display: flex;
  gap: 12px;
}

.card-footer-link {
  padding: 12px 16px 16px;
  text-align: right;
}
/* 鏂伴椈鍒楄〃椤碉紙浠?.news-list 瀹瑰櫒鍐呯敓鏁堬紝渚ф爮鏍峰紡涓嶅彉锛?*/
.news-list {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.news-list .news-img-item:last-child {
  border-bottom: none;
}

.news-list .news-img-item {
  padding: 16px 20px;
}

.news-list .news-thumb {
  width: 120px;
  height: 90px;
}

.news-list .news-thumb img {
  width: 120px;
  height: 90px;
}

.news-list .news-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.news-list .news-desc {
  font-size: 0.85rem;
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}

.news-list .news-desc p {
  margin: 0;
}

.news-list .news-meta {
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .news-list .news-img-item {
    flex-direction: column;
    align-items: stretch;
  }

  .news-list .news-thumb,
  .news-list .news-thumb img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}
.media-list {
  padding: 8px 0;
}

.media-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  color: inherit;
}

.media-item:hover {
  background: var(--hover-bg);
}

.media-icon-box {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.media-info {
  flex: 1;
  min-width: 0;
}

.media-title-long {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.media-date {
  font-size: 0.65rem;
  color: var(--meta);
  margin-top: 6px;
}

.hot-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.league-tag {
  background: var(--tag-bg);
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--tag-text);
  transition: 0.1s;
}

.league-tag:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
}

.friend-links a {
  color: var(--link);
  font-size: 0.8rem;
}

.friend-links a:hover {
  color: var(--primary);
}

/* 鏂囩珷椤?*/
.article-box {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.article-box h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-body {
  line-height: 1.9;
  font-size: 15px;
}

.article-body p {
  margin-bottom: 14px;
  text-indent: 2em;
}

.article-body img {
  margin: 16px auto;
  border-radius: 10px;
}

.article-nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-nav p + p {
  margin-top: 8px;
}

/* 鍒楄〃 feed */
.feed-list {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background 0.2s;
}

.feed-item:hover {
  background: var(--hover-bg);
  color: var(--primary);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feed-item time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feed-arrow {
  color: var(--primary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* 鏍囩浜?*/
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

/* 鐩存挱璇︽儏 */
.live-detail {
  margin: 20px 0 30px;
}

.live-player-box {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  margin-top:20px;
  /* min-height: 200px; */
}

.live-scoreboard {
  background: var(--card-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* flex-wrap: wrap; */
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.live-team {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.live-team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.live-team a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.live-center {
  text-align: center;
}

.live-status-tag {
  background: var(--live);
  border-radius: 20px;
  color: #fff;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 4px 12px;
}

.live-vs {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 6px 0;
}

.live-desc-box {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.live-desc-title h1{display: inline;}
.live-desc-box h1 {
  /* font-size: 1.3rem; */
  font-weight: 700;
  margin-bottom: 16px;
}

.live-facts {
  list-style: none;
  margin-bottom: 16px;
}

.live-facts li {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.live-facts b {
  color: var(--text-muted);
  margin-right: 8px;
}

.live-desc-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.live-tags a {
  color: var(--primary);
  margin-right: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
