:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --primary-dark: #0f0f1e;
  --secondary: #e63946;
  --accent: #f1c40f;
  --accent-glow: rgba(241,196,15,.12);
  --accent-border: rgba(241,196,15,.25);
  --bg: #0f0f1e;
  --bg-card: #1a1a2e;
  --bg-card-alt: #202040;
  --text: #e2e8f0;
  --text-muted: #8b95a8;
  --text-dark: #5a6478;
  --border: rgba(255,255,255,.06);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,.35);
  --transition: all .3s ease;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ========== Header ========== */
.site-header {
  background: var(--primary-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.logo-text em { font-style: normal; color: var(--accent); }

/* Nav */
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: var(--primary-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,15,30,.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-nav.show { display: flex; }
.mobile-nav a {
  color: var(--text);
  font-size: 18px;
  padding: 16px 40px;
  width: 100%;
  text-align: center;
  transition: background .2s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--primary-light);
  color: var(--accent);
}

/* ========== Hero ========== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
  padding: 60px 0;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
}
.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.hero-tags span {
  padding: 5px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-dark);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb span { margin: 0 8px; }

/* ========== Live Bar ========== */
.live-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}
.live-bar p {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-bar p strong { color: var(--text); }

/* ========== Main Layout ========== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding-bottom: 48px;
}

/* ========== Section Title ========== */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--secondary);
}
.section-title i {
  color: var(--secondary);
  font-size: 18px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* ========== News Card ========== */
.news-card {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  transition: var(--transition);
  cursor: pointer;
}
.news-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.news-card-img {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-body { flex: 1; min-width: 0; }
.news-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body h3 a:hover { color: var(--secondary); }
.news-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dark);
  flex-wrap: wrap;
}
.news-card-meta i { margin-right: 4px; color: var(--primary-light); font-size: 11px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 3px;
  font-size: 11px;
  color: var(--accent);
}
.tag i { font-size: 9px; margin-right: 0; color: var(--accent); }

/* ========== Featured Card ========== */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition);
  cursor: pointer;
}
.featured-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
}
.featured-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.featured-card:hover .featured-card-img img { transform: scale(1.05); }
.featured-card-body { padding: 16px; }
.featured-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.5;
}
.featured-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ========== Sidebar ========== */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title i { color: var(--secondary); }

.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hot-list li:last-child { border-bottom: none; }
.hot-rank {
  width: 22px;
  height: 22px;
  background: var(--primary-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 0;
}
.hot-rank.top { background: linear-gradient(135deg, var(--secondary), var(--accent)); color: #fff; }
.hot-list a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-list a:hover { color: var(--secondary); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  padding: 5px 12px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}
.tag-cloud a:hover {
  background: var(--accent-glow);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pagination a, .pagination span {
  width: 60px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--accent-border);
  color: var(--secondary);
  background: var(--accent-glow);
}
.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-text {
  width: 60px;
}

/* ========== Detail Page ========== */
.detail-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.detail-content h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 16px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dark);
  flex-wrap: wrap;
}
.detail-meta i { margin-right: 4px; color: var(--primary-light); }
.detail-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.detail-body p { margin-bottom: 18px; }
.detail-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--secondary);
}
.detail-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
}
.detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.detail-body blockquote {
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 18px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
.detail-body ul, .detail-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.detail-body li {
  margin-bottom: 6px;
  list-style: disc;
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 48%;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-links a:hover { color: var(--secondary); }

/* ========== Footer ========== */
.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border);
  padding: 32px 0 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--secondary); }
.footer-copy {
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ========== Back to Top ========== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--secondary); color: var(--primary-dark); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .sidebar-widget { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 24px; }
  .hero-banner { padding: 40px 0; }
  .news-card { flex-direction: column; }
  .news-card-img { width: 100%; height: 180px; }
  .detail-content { padding: 20px; }
  .detail-content h1 { font-size: 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .featured-card-img { height: 160px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 20px; }
  .detail-content h1 { font-size: 18px; }
  .detail-meta { gap: 12px; }
  .nav-links { flex-direction: column; }
  .nav-links a { max-width: 100%; }
  .footer-links { gap: 12px; }
  .pagination a, .pagination span { width: 32px; height: 32px; font-size: 12px; }
  .pagination .page-text { width: 50px; }
}
