/*
Theme Name: 3体育
Theme URI: https://3sports.com
Author: 3Sports Team
Description: 专业的体育资讯与数据分析平台主题
Version: 1.33.0
Text Domain: 3sports
*/

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f3f4f6;
  color: #1e293b;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

input {
  font-family: inherit;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-narrow {
  max-width: 768px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Header - Navigation Bar Refactor
   强制白色字体 + 高对比度布局
   ============================================ */

/* 导航栏容器 - 主题绿背景 */
.site-header {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Logo 样式 - 紧凑间距 */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 2rem;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.9;
}

.site-logo svg {
  width: 32px;
  height: 32px;
  color: #f59e0b;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

/* Desktop Nav - 强制白色文字 */
.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
  }

  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* 压缩间距 - space-x-5 */
  }

  .main-nav > ul > li {
    position: relative;
  }

  /* 主导航链接 - 强制纯白色 + 优化字号 */
  .main-nav > ul > li > a,
  .main-nav > ul > li > a:link,
  .main-nav > ul > li > a:visited {
    display: inline-block;
    padding: 0.625rem 0.875rem;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    border-radius: 4px;
  }

  /* Hover 状态 - 浅绿色文字 + 微妙背景 */
  .main-nav > ul > li > a:hover {
    color: #d1fae5 !important; /* text-emerald-200 */
    background-color: rgba(255, 255, 255, 0.08);
  }

  .main-nav > ul > li > a:active {
    background-color: rgba(255, 255, 255, 0.12);
  }

  /* Active/Current 状态 - 加粗 + 精致背景 */
  .main-nav > ul > li.current-menu-item > a,
  .main-nav > ul > li.current-menu-ancestor > a,
  .main-nav > ul > li.current-page-item > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    background-color: rgba(255, 255, 255, 0.15);
  }

  /* Dropdown 下拉菜单 */
  .main-nav .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #f59e0b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    padding: 0.5rem 0;
  }

  .main-nav > ul > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* 下拉菜单链接 - 白色背景上的深色文字 */
  .main-nav .sub-menu a,
  .main-nav .sub-menu a:link,
  .main-nav .sub-menu a:visited {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b !important; /* 深色文字 */
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .main-nav .sub-menu a:hover {
    background-color: #f0fdf4;
    color: #059669 !important;
    padding-left: 1.25rem; /* 悬停时右移效果 */
  }

  /* 下拉菜单中的当前项 */
  .main-nav .sub-menu li.current-menu-item a {
    background-color: #dcfce7;
    color: #059669 !important;
    font-weight: 600 !important;
  }
}

/* Search Toggle Button - PC端搜索按钮 */
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .search-toggle {
    display: flex;
  }
}

.search-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

/* Search Panel - 搜索面板 */
.search-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 280px;
  z-index: 100;
  animation: searchFadeIn 0.2s ease;
}

.search-panel.active {
  display: block;
}

@keyframes searchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-panel form {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.search-panel input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1e293b;
  background: transparent;
}

.search-panel input::placeholder {
  color: #94a3b8;
}

.search-panel button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #16a34a !important;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-panel button:hover {
  color: #047857 !important;
  transform: scale(1.1);
}

/* Old header-search styles - deprecated */

/* Header Actions - 右侧元素容器 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

/* Mobile Menu Toggle - 汉堡菜单按钮 */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav - 移动端导航 - 深绿背景 + 白色文字 */
.mobile-nav {
  display: none;
  background: linear-gradient(180deg, #065f46 0%, #047857 100%);
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端导航所有元素白色文字 */
.mobile-nav,
.mobile-nav *,
.mobile-nav a,
.mobile-nav a:link,
.mobile-nav a:visited,
.mobile-nav ul,
.mobile-nav ul li,
.mobile-nav ul li a,
.mobile-nav ul li a:link,
.mobile-nav ul li a:visited,
.mobile-nav .menu-item,
.mobile-nav .menu-item a,
.mobile-nav .menu-item a:link,
.mobile-nav .menu-item a:visited,
.mobile-nav .page_item,
.mobile-nav .page_item a,
.mobile-nav .page_item a:link,
.mobile-nav .page_item a:visited {
  color: #ffffff !important;
}

.mobile-nav a,
.mobile-nav a:link,
.mobile-nav a:visited {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ecfdf5 !important;
  transform: translateX(4px);
}

.mobile-nav .sub-menu {
  padding-left: 0;
  margin-top: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  margin-left: 1rem;
}

.mobile-nav .sub-menu a {
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  color: rgba(236, 253, 245, 0.9) !important; /* text-emerald-100 半透明 */
}

.mobile-nav .sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

/* 移动端当前项高亮 */
.mobile-nav li.current-menu-item > a,
.mobile-nav li.current-page-item > a {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 600 !important;
}

/* ============================================
   Main Content Layout
   ============================================ */
.main-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr 400px;
  }
}

/* ============================================
   News Card - Featured
   ============================================ */
.news-featured {
  display: block;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.news-featured .image-wrapper {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-featured .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-featured .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
}

.news-featured .image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
}

@media (min-width: 768px) {
  .news-featured .image-content {
    padding: 1.5rem;
  }
}

.news-featured .badge {
  display: inline-block;
  background-color: #16a34a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.news-featured .tag-badge {
  display: inline-block;
  background-color: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.25rem;
}

.news-featured h2 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .news-featured h2 {
    font-size: 1.875rem;
  }
}

.news-featured .summary {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-featured .summary {
    font-size: 1rem;
  }
}

/* ============================================
   News Card - List
   ============================================ */
.news-list-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin: 0 -1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  overflow: hidden;
  width: 100%;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item:hover {
  background-color: rgba(249, 250, 251, 0.5);
  border-radius: 8px;
}

.news-list-item .thumb {
  width: 128px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
}

@media (min-width: 768px) {
  .news-list-item .thumb {
    width: 192px;
  }
}

.news-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-list-item:hover .thumb img {
  transform: scale(1.05);
}

.news-list-item .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.news-list-item .content h3,
.news-list-item .content p {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-list-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .news-list-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
}

.news-list-item:hover h3 {
  color: #16a34a;
}

.news-list-item .excerpt {
  display: none;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .news-list-item .excerpt {
    display: -webkit-box;
  }
}

.news-list-item .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.news-list-item .meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-list-item .meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.news-list-item .meta-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}

.news-list-item .meta-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}

.news-list-item .hot-tag {
  display: inline-flex;
  align-items: center;
  color: #ef4444;
  font-weight: 500;
}

.news-list-item .hot-tag svg {
  width: 12px;
  height: 12px;
  margin-right: 2px;
}

.news-list-item .cat-tag {
  background-color: #f3f4f6;
  color: #6b7280;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.news-list-item .cat-tag:hover {
  background-color: #e5e7eb;
}

.news-list-item .meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-list-item .meta-item {
  display: flex;
  align-items: center;
}

.news-list-item .meta-item svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

/* ============================================
   Tabs
   ============================================ */
.tabs-wrapper {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.25rem 1rem 0;
}

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: #1f2937;
}

.tab-button.active {
  color: #16a34a;
  border-bottom-color: #16a34a;
}

/* ============================================
   Sidebar Widgets
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.widget-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.widget-title svg {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.widget-title.hot svg {
  color: #ef4444;
}

.widget-title svg {
  color: #16a34a;
}

/* Hot News List */
.hot-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hot-news-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hot-news-num {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 2px;
  background-color: #e5e7eb;
  color: #6b7280;
}

.hot-news-item:nth-child(-n+3) .hot-news-num {
  background-color: #ef4444;
  color: #fff;
}

.hot-news-item a {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-news-item a:hover {
  color: #16a34a;
}

/* Transfer News */
.transfer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transfer-item {
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #f3f4f6;
}

.transfer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.transfer-item a {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
}

.transfer-item a:hover {
  color: #16a34a;
}

.transfer-tag {
  display: inline;
  font-size: 0.625rem;
  font-weight: 500;
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  padding: 0.125rem 0.25rem;
  border-radius: 4px;
  margin-right: 0.25rem;
}

.widget-more {
  text-align: right;
  margin-top: 0.75rem;
}

.widget-more a {
  font-size: 0.75rem;
  color: #9ca3af;
}

.widget-more a:hover {
  color: #16a34a;
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tag-cloud a:hover {
  background-color: #16a34a;
  color: #fff;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: #1e293b;
  color: #9ca3af;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 4px solid #16a34a;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid #16a34a;
}

.footer-section p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #16a34a;
}

.footer-links .sub-link {
  color: #6b7280;
}

.footer-sitemap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-sitemap-link {
  display: flex;
  align-items: center;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.footer-sitemap-link:hover {
  color: #059669;
  transform: translateX(4px);
}

.footer-sitemap-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  color: #4b5563;
  transition: color 0.3s ease;
}

.footer-sitemap-link:hover .footer-sitemap-icon {
  color: #059669;
}

/* Legacy support for old footer-sitemap a selector */
.footer-sitemap a {
  display: flex;
  align-items: center;
  color: #9ca3af;
}

.footer-sitemap a:hover {
  color: #16a34a;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom .copyright {
  font-size: 0.75rem;
  max-width: 600px;
}

.footer-bottom .copyright p {
  margin-bottom: 0.5rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.footer-legal a {
  color: #9ca3af;
}

/* Enhanced rounded tag style for legal links */
.footer-legal-tag {
  padding: 0.375rem 0.75rem;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 9999px;
  color: #d1d5db;
  transition: all 0.3s ease;
}

.footer-legal-tag:hover {
  background-color: #064e3b;
  border-color: #059669;
  color: #34d399;
}

.footer-legal a:hover {
  color: #fff;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  display: flex;
  align-items: center;
  color: #6b7280;
}

.breadcrumbs a:hover {
  color: #16a34a;
}

.breadcrumbs a svg {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
}

.breadcrumbs .separator svg {
  width: 16px;
  height: 16px;
}

.breadcrumbs .sep {
  margin: 0 0.25rem;
  color: #d1d5db;
}

.breadcrumbs .current {
  color: #1e293b;
  font-weight: 500;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  border-color: #16a34a;
  color: #16a34a;
}

.pagination .current {
  background-color: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.pagination .dots {
  border-color: transparent;
}

/* ============================================
   Content Area
   ============================================ */
.content-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  overflow: hidden;
}

.content-card .inner {
  padding: 1.25rem;
}

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ============================================
   强制颜色对比度 - 修复白底白字问题
   ============================================ */

/* 强制 body 背景色 - 确保白色卡片浮起效果 */
body {
    background-color: #f8fafc !important;
}

/* 强制导航文字颜色 - 更新为白色文字模式 */
/* 注意: 导航栏链接已在文件末尾设置为白色 */
/* 这里只处理非导航栏区域的特定链接类 */
.nav-link,
a.category-item,
.category-label {
    color: #0f172a !important; /* text-slate-900 深色 */
    font-weight: 600 !important;
}

/* 排除导航栏内的链接 - 深色文字不应用于头部导航 */
.site-header .nav-link,
.site-header a.category-item,
.site-header .category-label {
    color: #ffffff !important;
}

/* 导航悬停效果 - 仅非导航栏 */
.nav-link:hover,
a.category-item:hover,
.category-label:hover {
    color: #10b981 !important; /* 主题绿 */
}

/* 下拉菜单文字颜色 - 保持白色背景上的深色文字 */
.sub-menu a,
.main-nav .sub-menu a,
.mobile-nav .sub-menu a {
    color: #1e293b !important;
}

.sub-menu a:hover,
.main-nav .sub-menu a:hover {
    color: #059669 !important;
}

/* 移动端导航文字保持白色 */
.mobile-nav a,
.mobile-nav a:link,
.mobile-nav a:visited {
    color: #ffffff !important;
}

/* 分类标签强制样式 - 文章卡片中的分类标签 */
.cat-tag,
.news-list-item .cat-tag,
span[class*="category"],
.category-badge {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.cat-tag:hover,
.news-list-item .cat-tag:hover {
    background-color: #e2e8f0 !important;
    color: #10b981 !important;
}

/* 分页组件强制样式 */
.pagination a,
.pagination span,
nav[aria-label="分页导航"] a {
    color: #475569 !important; /* text-slate-600 */
}

.pagination .current,
nav[aria-label="分页导航"] .bg-emerald-500 {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* 标签云强制样式 */
.tag-cloud a,
.sidebar a[href*="/tag/"] {
    color: #475569 !important;
}

.tag-cloud a:hover,
.sidebar a[href*="/tag/"]:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* 侧边栏组件强制样式 */
.hot-news-item a,
.transfer-item a {
    color: #1e293b !important;
}

.hot-news-item a:hover,
.transfer-item a:hover {
    color: #10b981 !important;
}

/* 元数据强制样式 */
.news-list-item .meta,
.news-list-item .meta-left,
.news-list-item .meta-right {
    color: #94a3b8 !important; /* text-slate-400 */
}

.news-list-item .hot-tag {
    color: #ef4444 !important;
}

/* 文章标题强制样式 */
.news-list-item h3,
.news-featured h2,
.text-slate-900 {
    color: #0f172a !important;
}

.news-list-item:hover h3 {
    color: #10b981 !important;
}

/* 文章摘要强制样式 */
.news-list-item .excerpt,
.news-featured .summary,
.text-slate-600 {
    color: #475569 !important;
}

/* 白色卡片容器强制样式 */
.bg-white,
.widget,
.content-card {
    background-color: #ffffff !important;
}

/* 确保 Tailwind 类正确应用 */
.text-slate-900,
[class*="text-slate-900"] {
    color: #0f172a !important;
}

.text-slate-600,
[class*="text-slate-600"] {
    color: #475569 !important;
}

.text-slate-400,
[class*="text-slate-400"] {
    color: #94a3b8 !important;
}

.bg-slate-50,
[class*="bg-slate-50"] {
    background-color: #f8fafc !important;
}

.bg-emerald-500,
[class*="bg-emerald-500"] {
    background-color: #10b981 !important;
}

/* ============================================
   导航栏白色文字 - 最终覆盖（放在文件末尾确保最高优先级）
   ============================================ */

/* 桌面端主导航 - 强制白色文字 */
.site-header .main-nav .menu-item a,
.site-header .main-nav .nav-menu a,
.site-header .nav-menu .menu-item a,
.main-nav .menu-item > a,
.main-nav .nav-menu > .menu-item > a {
    color: #ffffff !important;
}

.site-header .main-nav .menu-item a:hover,
.site-header .main-nav .nav-menu a:hover,
.site-header .nav-menu .menu-item a:hover,
.main-nav .menu-item > a:hover,
.main-nav .nav-menu > .menu-item > a:hover {
    color: #ecfdf5 !important; /* text-emerald-50 */
}

/* 下拉菜单 - 白色背景上的深色文字（保持不变） */
.site-header .main-nav .sub-menu a,
.site-header .sub-menu .menu-item a,
.main-nav .sub-menu a,
.main-nav .sub-menu .menu-item a {
    color: #1e293b !important;
}

.site-header .main-nav .sub-menu a:hover,
.site-header .sub-menu .menu-item a:hover,
.main-nav .sub-menu a:hover,
.main-nav .sub-menu .menu-item a:hover {
    color: #059669 !important;
}

/* 移动端导航 - 白色文字 */
.mobile-nav .menu-item a,
.mobile-nav .nav-menu a,
.mobile-nav a {
    color: #ffffff !important;
}

.mobile-nav .menu-item a:hover,
.mobile-nav .nav-menu a:hover,
.mobile-nav a:hover {
    color: #ecfdf5 !important;
}

/* Logo 白色文字 */
.site-logo,
.site-logo span {
    color: #ffffff !important;
}

/* ===== 单篇文章排版优化 ===== */
.single-article-shell {
    overflow-wrap: anywhere;
}

.single-article-title {
    font-size: 30px;
    line-height: 1.24;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
}

.single-article-meta {
    font-size: 13px;
    line-height: 1.5;
}

.single-article-body {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.9;
    color: #1f2937;
}

.single-article-cover {
    max-width: 600px;
    margin: 0 auto 28px;
}

.single-article-cover img,
.single-article-body .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.single-article-body .entry-content p {
    margin-bottom: 20px;
    font-size: inherit;
    line-height: inherit;
}

.single-article-body .entry-content p:last-child {
    margin-bottom: 0;
}

.single-article-body .entry-content h1,
.single-article-body .entry-content h2,
.single-article-body .entry-content h3,
.single-article-body .entry-content h4 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
}

.single-article-body .entry-content h3 {
    font-size: 1em !important;
}

.single-article-body .entry-content ul,
.single-article-body .entry-content ol {
    margin: 0 0 20px;
    padding-left: 1.35em;
}

.single-article-body .entry-content li {
    margin-bottom: 10px;
    line-height: 1.95;
}

.single-article-body .entry-content blockquote {
    margin: 24px 0;
    padding: 14px 18px;
    border-left: 4px solid #10b981;
    border-radius: 0 12px 12px 0;
    background: #f0fdf4;
    color: #334155;
}

.single-article-body .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .single-article-title {
        font-size: 28px;
    }

    .single-article-meta {
        font-size: 14px;
    }

    .single-article-body {
        font-size: 16px;
        line-height: 1.95;
    }

    .single-article-body .entry-content h3 {
        font-size: 1em !important;
    }
}
