@charset "utf-8";
:root {
  --primary: #1a1a1a;
  --accent: #ff6b35;
  --secondary: #f7c941;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: #1a1a1a;
  --shadow: 4px 4px 0 var(--primary);
  --shadow-sm: 2px 2px 0 var(--primary);
  --radius: 0;
  --radius-sm: 0;
}

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

html, body {
  background: var(--bg-light);
  font-family: 'Microsoft YaHei', -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, li {
  list-style: none;
}

/* ========== Header ========== */
.header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
}

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

.logo img {
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.logo, .logo a { display: flex; align-items: center; gap: 15px; }
.site-name { font-size: 1.25rem; font-weight: 700; color: #333; }
.nav-bar { margin-left: auto; }
.nav { display: flex; gap: 0; }
.nav li a {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}}

.nav li a:hover,
.nav li.active a {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
}

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

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

/* ========== Hero Section ========== */
.hero-section {
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.hero-main {
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
}

.hero-image {
  display: block;
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: 14px;
  opacity: 0.9;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-mini {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hero-mini::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.5);
  transition: all 0.2s ease;
}

.hero-mini:hover::after {
  background: rgba(26,26,26,0.3);
}

.hero-mini span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ========== Feature Section ========== */
.feature-section {
  padding: 40px 0;
  background: var(--bg-white);
  border-top: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
}

.feature-header,
.card-grid-header,
.topic-header,
.tags-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary);
}

.feature-header h2,
.card-grid-header h2,
.topic-header h2,
.tags-header h2 {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  background: var(--bg-light);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}

.feature-card .card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--primary);
}

.feature-card .card-body {
  padding: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== Content Section ========== */
.content-section {
  padding: 40px 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.content-main {
  min-width: 0;
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-card {
  background: var(--bg-white);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.grid-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}

.card-thumb {
  display: block;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--primary);
}

.card-info {
  padding: 16px;
}

.card-category {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

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

.card-info 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);
}

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

.sidebar-widget {
  background: var(--bg-white);
  border: 3px solid var(--primary);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recent-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

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

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

.recent-thumb {
  flex: 0 0 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  // border removed
}

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

.recent-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  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 li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed 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(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.rank-list li:nth-child(1) .rank-num { background: var(--accent); }
.rank-list li:nth-child(2) .rank-num { background: var(--secondary); color: var(--primary); }
.rank-list li:nth-child(3) .rank-num { background: #8bc34a; }

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

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

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 14px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  // border removed
}

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

/* ========== Topic Section ========== */
.topic-section {
  padding: 40px 0;
  background: var(--bg-white);
  border-top: 3px solid var(--primary);
}

.topic-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.topic-card {
  position: relative;
  height: 180px;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.topic-card a {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.topic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.5);
  transition: all 0.2s ease;
}

.topic-card:hover::after {
  background: rgba(26,26,26,0.3);
}

.topic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  z-index: 1;
}

.topic-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ========== Tags Section ========== */
.tags-section {
  padding: 40px 0;
  border-top: 3px solid var(--primary);
}

.tags-cloud-large {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags-cloud-large .tag-item {
  padding: 10px 20px;
  font-size: 15px;
}

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

.page-item {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--bg-white);
  border: 3px solid var(--primary);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

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

.page-current {
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: 3px solid var(--primary);
}

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

/* ========== Footer ========== */
.footer {
  background: var(--primary);
  color: #fff;
  margin-top: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

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

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ========== Page Header ========== */
.page-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--primary);
  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 {
  margin: 0 8px;
  color: var(--text-light);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

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

.article-item {
  display: flex;
  gap: 24px;
  background: var(--bg-white);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.article-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}

.article-item .article-thumb {
  flex: 0 0 280px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-right: 3px solid var(--primary);
}

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

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

.article-info h2 {
  font-size: 18px;
  font-weight: 700;
  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);
  font-weight: 600;
}

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

/* ========== Article Content ========== */
.article-content {
  background: var(--bg-white);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
  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: 3px solid var(--primary);
  margin: 20px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 32px 0 16px;
  font-weight: 700;
}

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

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

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

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

.tag-item {
  padding: 6px 14px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  // border removed
}

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

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    flex-direction: row;
  }

  .hero-mini {
    height: 120px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .card-grid {
    grid-template-columns: 1fr;
  }

  .topic-scroll {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    flex-direction: column;
  }

  .hero-mini {
    height: 100px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .topic-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .tags-cloud-large .tag-item {
    padding: 8px 16px;
    font-size: 14px;
  }
}