@charset "utf-8";
:root {
  --primary: #1a1a2e;
  --accent: #4a90d9;
  --bg-light: #fafbfc;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: #eaeaea;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg-light);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

ul, li {
  list-style: none;
}

/* ========== Header ========== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 48px;
  border-radius: var(--radius-sm);
}

.nav-bar {
  margin-left: 60px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav li a {
  padding: 8px 20px;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav li a:hover,
.nav li.active a {
  color: var(--accent);
  background: rgba(74, 144, 217, 0.08);
}

/* ========== Main Wrapper ========== */
.main-wrapper {
  min-height: calc(100vh - 200px);
}

/* ========== Container ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Hero Section ========== */
.hero-section {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 600px;
  padding: 0 24px;
}

.hero-category {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

/* ========== Section Header ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
}

.more-link {
  font-size: 14px;
  color: var(--accent);
}

.more-link:hover {
  text-decoration: underline;
}

/* ========== Latest Section ========== */
.latest-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.latest-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.latest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.latest-card .card-image {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  border-radius: 50px;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-body h3 a {
  color: var(--text-dark);
}

.card-body h3 a:hover {
  color: var(--accent);
}

.card-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== Topic Section ========== */
.topic-section {
  padding: 80px 0;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.topic-card {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-card a {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.topic-card:hover a {
  transform: scale(1.05);
}

.topic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.topic-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.topic-info h3 a {
  color: #fff;
}

.topic-info span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ========== Main Section ========== */
.main-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

/* ========== Timeline Section ========== */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  flex-shrink: 0;
  width: 70px;
  text-align: center;
}

.timeline-date .day {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.timeline-date .month {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-content h3 a {
  color: var(--text-dark);
}

.timeline-content h3 a:hover {
  color: var(--accent);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

/* ========== Sidebar ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* Recent List */
.recent-list li {
  margin-bottom: 14px;
}

.recent-list li:last-child {
  margin-bottom: 0;
}

.recent-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.recent-thumb {
  flex: 0 0 56px;
  height: 56px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
}

.recent-info {
  flex: 1;
  min-width: 0;
}

.recent-title {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-item:hover .recent-title {
  color: var(--accent);
}

.recent-date {
  font-size: 12px;
  color: var(--text-light);
}

/* Rank List */
.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.rank-list li:last-child {
  border-bottom: none;
}

.rank-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
}

.rank-list li:nth-child(1) .rank-num { background: #ff6b6b; }
.rank-list li:nth-child(2) .rank-num { background: #ffa502; }
.rank-list li:nth-child(3) .rank-num { background: #7bed9f; }

.rank-list a {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-list a:hover {
  color: var(--accent);
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 6px 16px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== Tags Section ========== */
.tags-section {
  padding: 80px 0;
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.page-item:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-current {
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.no-data {
  text-align: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  margin-top: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

.footer-bottom a {
  color: var(--text-muted);
  margin: 0 8px;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ========== Page Header ========== */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 40px 0;
}

.page-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header .breadcrumb {
  margin-bottom: 12px;
}

.page-header .breadcrumb a {
  color: var(--accent);
}

.page-header .separator {
  color: var(--text-light);
  margin: 0 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

.page-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.page-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== Content Grid ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

/* ========== Main Content ========== */
.main-content {
  min-width: 0;
}

/* ========== Article List ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-item {
  display: flex;
  gap: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-item:hover {
  box-shadow: var(--shadow-md);
}

.article-item .article-thumb {
  flex: 0 0 280px;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.article-info {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 12px;
}

.article-info h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-info h2 a {
  color: var(--text-dark);
}

.article-info h2 a:hover {
  color: var(--accent);
}

.article-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== Content Wrapper ========== */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
}

/* ========== Article Content ========== */
.article-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 32px 0 16px;
  color: var(--text-dark);
}

.article-body ul,
.article-body ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* ========== Article Tags ========== */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.tags-label {
  font-size: 14px;
  color: var(--text-muted);
}

.tag-item {
  padding: 6px 14px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: var(--accent);
  color: #fff;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .latest-grid,
  .topic-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-widget {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }

  .hero-section {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .latest-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 16px;
  }

  .timeline-date {
    width: auto;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: baseline;
  }

  .sidebar-widget {
    min-width: 100%;
  }
}