:root {
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-light: #dcfce7;
  --background: #f5f7fa;
  --card-bg: #fff;
  --border: #e5e7eb;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 1001;
  transition: width 0.1s;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  border-bottom-color: var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-button {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

#menu-checkbox {
  display: none;
}

#menu-checkbox:checked ~ .nav-links {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Page Header */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

/* Main Section */
.main-section {
  margin-top: 30px;
  padding: 4rem 0;
}

/* Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card {
  
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.article-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.article-image {
  width: 200px;
  min-height: 150px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  flex: 1;
  min-width: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.article-category {
  display: inline-block;
  padding: 2px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.article-content h2 a:hover {
  color: var(--primary);
}

.article-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.article-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 0.6rem;
}

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

.sidebar-widget {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.sidebar-widget h3 i {
  color: var(--primary);
}

/* Category List */
.category-list {
  list-style: none;
}

.category-list li {
  border-bottom: 1px solid var(--border);
}

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

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.category-list a:hover {
  color: var(--primary);
}

.category-list .count {
  background: var(--border);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Hot List */
.hot-list {
  list-style: none;
}

.hot-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.hot-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.3s;
}

.hot-list a:hover {
  color: var(--primary);
}

.hot-list .num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hot-list li:nth-child(1) .num,
.hot-list li:nth-child(2) .num,
.hot-list li:nth-child(3) .num {
  background: var(--primary);
  color: white;
}

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

.tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.tag-cloud a:hover {
  background: var(--primary);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.page-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  color: white;
}

/* Article Detail */
.article-section {
  padding: 3rem 0;
}

.article-header {
  max-width: 800px;
  margin: 0 auto;
}

.article-header .article-meta {
  justify-content: center;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.article-header .article-tags {
  justify-content: center;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
}

.article-content {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-date-sep {
  color: var(--border);
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  max-width: 48%;
}

.article-nav a:hover {
  color: var(--primary);
  box-shadow: var(--shadow);
}

.article-nav-prev {
  text-align: left;
}

.article-nav-next {
  text-align: right;
}

/* About Section */
.about-section {
  padding: 3rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
}

.about-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.about-list li i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.about-list li h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-list li p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--primary);
  width: 1.25rem;
}

/* Footer */
footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 3rem 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.footer-links h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-tagline {
  color: #64748b;
}

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

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

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

/* ===== Portal Layout (首页) ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.section-link {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.section-link:hover {
  color: var(--primary);
}

/* Gallery Grid (资讯头条) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

.gallery-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Brief Grid (双栏短讯) */
.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.brief-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-decoration: none;
}

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

.brief-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  margin-top: 7px;
}

.brief-item:hover .brief-dot {
  background: var(--primary);
}

.brief-item:hover {
  color: var(--primary);
}

/* Page Layout (两栏主布局) */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}

/* Project Grid (精选专题) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.project-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--primary-light);
  flex-shrink: 0;
}

.project-body {
  flex: 1;
  min-width: 0;
}

.project-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.project-tag {
  padding: 1px 6px;
  background: var(--border);
  border-radius: 3px;
  font-size: 11px;
}

.project-arrow {
  font-size: 13px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.project-card:hover .project-arrow {
  color: var(--primary);
}

/* Blog List (精选博客) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
}

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

.blog-item:first-child {
  padding-top: 0;
}

.blog-item:hover {
  background: #fafbfc;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 6px;
}

.blog-item:hover + .blog-item {
  border-top: 1px solid transparent;
}

.blog-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-body {
  flex: 1;
  min-width: 0;
}

.blog-author {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.blog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

.blog-item:hover .blog-title {
  color: var(--primary);
}

.blog-summary {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.blog-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #cbd5e1;
}

/* Deep Split (深度报道) */
.deep-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.deep-card-large {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}

.deep-card-large:hover {
  box-shadow: var(--shadow);
}

.deep-card-large .deep-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.deep-card-large .deep-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deep-card-large:hover .deep-img img {
  transform: scale(1.03);
}

.deep-card-large .deep-body {
  padding: 18px;
}

.deep-card-large .deep-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  margin-bottom: 8px;
}

.deep-card-large .deep-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 8px;
}

.deep-card-large .deep-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Mini Grid (最新资讯) */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
}

.mini-card:hover {
  box-shadow: var(--shadow);
}

.mini-img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mini-tag {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-card:hover .mini-title {
  color: var(--primary);
}

.mini-date {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Sidebar Blocks */
.side-block {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 20px;
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.side-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.side-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}

.side-more {
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.side-more:hover {
  color: var(--primary);
}

/* Community List */
.community-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.community-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
}

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

.community-item:first-child {
  padding-top: 0;
}

.community-name {
  font-size: 14px;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.community-item:hover .community-name {
  color: var(--primary);
}

.community-arrow {
  font-size: 12px;
  color: #cbd5e1;
}

/* Sidebar Hot List */
.sidebar .hot-list,
.rec-right .hot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar .hot-item,
.rec-right .hot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 0;
  border-bottom: 1px solid #f8fafc;
}

.sidebar .hot-item:last-child,
.rec-right .hot-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar .hot-item:first-child,
.rec-right .hot-item:first-child {
  padding-top: 0;
}

.sidebar .hot-num,
.rec-right .hot-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.sidebar .hot-num.top,
.rec-right .hot-num.top {
  background: #ef4444;
  color: #fff;
}

.sidebar .hot-content,
.rec-right .hot-content {
  flex: 1;
  min-width: 0;
}

.sidebar .hot-item-title,
.rec-right .hot-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.sidebar .hot-item:hover .hot-item-title,
.rec-right .hot-item:hover .hot-title {
  color: var(--primary);
}

.sidebar .hot-heat,
.rec-right .hot-heat {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  font-weight: 500;
}

/* Live List */
.live-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
}

.live-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.live-content {
  flex: 1;
}

.live-title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.live-time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.live-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  color: #10b981;
  background: #ecfdf5;
  border-radius: 3px;
  margin-top: 4px;
}

/* ===== Category Page (栏目页) ===== */
.rec-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 6px;
  margin-right: 8px;
  letter-spacing: 1px;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rec-item {
  padding: 22px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
  display: block;
  text-decoration: none;
}

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

.rec-item:hover {
  background: #fafbfc;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
  border-bottom-color: transparent;
}

.rec-title-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rec-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  transition: color 0.15s ease;
}

.rec-item:hover .rec-title {
  color: var(--primary);
}

.rec-summary {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rec-tag {
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--border);
  border-radius: 4px;
  font-weight: 500;
}

.rec-tag.blue {
  color: var(--primary);
  background: var(--primary-light);
}

.rec-time {
  font-size: 12px;
  color: #94a3b8;
}

/* Tab Bar */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.tab-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: var(--text-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Category Page Pagination */
.rec-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tag Colors */
.tag-tech { color: #3b82f6; background: #eff6ff; }
.tag-finance { color: #10b981; background: #ecfdf5; }
.tag-sports { color: #f59e0b; background: #fffbeb; }
.tag-ent { color: #ec4899; background: #fdf2f8; }
.tag-culture { color: #8b5cf6; background: #f5f3ff; }
.tag-food { color: #f97316; background: #fff7ed; }
.tag-travel { color: #06b6d4; background: #ecfeff; }
.tag-story { color: #16a34a; background: #f0fdf4; }

/* Portal Section Card */
.portal-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

/* ===== Detail Page (文章详情) ===== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.breadcrumb {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #94a3b8;
}

.breadcrumb a {
  color: #64748b;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

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

.article-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 40px;
}

.article-card .article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.article-card .article-header .article-meta {
  justify-content: flex-start;
  margin-bottom: 0;
}

.article-card .article-header h1 {
  font-size: 26px;
  text-align: left;
}

.article-card .article-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.article-meta-sep {
  color: #e2e8f0;
}

.article-card .article-image {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}

.article-card .article-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-card .article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.article-card .article-body p {
  margin-bottom: 16px;
  text-align: justify;
}

.article-card .article-body p:last-child {
  margin-bottom: 0;
}

.article-card .back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s ease;
}

.article-card .back-link:hover {
  color: #2563eb;
}

.article-card .article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}

/* Detail Recommend Sidebar */
.detail-recommend {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 20px;
  height: fit-content;
}

.detail-recommend .recommend-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.recommend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommend-item {
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.recommend-item:hover .recommend-item-title {
  color: var(--primary);
}

.recommend-item-image {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.recommend-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-item-content {
  flex: 1;
  min-width: 0;
}

.recommend-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.recommend-item-date {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}

/* Error State */
.error-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  padding: 80px 40px;
  text-align: center;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.error-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.error-btn:hover {
  background: #2563eb;
}

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

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

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

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

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

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

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

  .sidebar {
    order: 2;
  }

  .detail-recommend {
    order: 2;
  }

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

  .deep-split {
    grid-template-columns: 1fr;
  }

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

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

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.5rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    padding: 0.5rem 0;
  }

  .page-header {
    padding: 6rem 1rem 2rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .article-card {
    flex-direction: column;
  }

  .article-image {
    width: 100%;
    height: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .article-nav {
    flex-direction: column;
  }

  .article-nav a {
    max-width: 100%;
  }

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

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

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

  .deep-split {
    grid-template-columns: 1fr;
  }

  .blog-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .rec-item:hover {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .main-container {
    padding: 16px;
  }

  .article-card {
    padding: 24px;
  }

  .article-title {
    font-size: 22px;
  }

  .article-body {
    font-size: 15px;
  }

  .error-card {
    padding: 60px 24px;
  }

  .breadcrumb-current {
    max-width: 180px;
  }
}