:root {
  /* Professional Blue-Gray Color Palette for Taiwan English Info Blog */
  --primary-color: #1E3A5F;
  --secondary-color: #2C5282;
  --accent-color: #3182CE;
  --highlight-color: #4299E1;
  --light-bg: #FFFFFF;
  --dark-color: #1A202C;
  --text-color: #2D3748;
  --text-light: #718096;
  --text-lighter: #A0AEC0;
  --border-color: #E2E8F0;
  --success-color: #48BB78;
  --warning-color: #ED8936;
  --danger-color: #F56565;
  --white: #FFFFFF;
  --gray-50: #F7FAFC;
  --gray-100: #EDF2F7;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E0;

  /* Spacing - Keep margins same */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Typography - Professional SEO-Friendly Font Stack */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  --container-width: 1280px;
  --border-radius: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  --transition: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  letter-spacing: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  box-sizing: border-box;
}

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

.article-content img {
  margin: var(--space-xl) auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.hidden { display: none; }

/* Modern Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0;
  text-transform: none;
  background-color: var(--white);
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Modern Navbar - Clean Professional Style */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  text-transform: none;
  font-family: var(--font-heading);
}

.logo span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: var(--space-xl);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
  color: var(--text-color);
  font-size: 0.9375rem;
  transition: var(--transition);
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: 0;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.search-box {
  position: relative;
}

.search-input {
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 200px;
  font-size: 0.9rem;
  transition: var(--transition);
  background-color: var(--gray-50);
  font-family: var(--font-heading);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  width: 240px;
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

/* Section Header Styles */
.section-header {
  /* margin-bottom: var(--space-xl); */
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border-bottom: 2px solid var(--border-color); */
  padding-bottom: var(--space-md);
  width: 100%;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-color);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-family: var(--font-heading);
  margin: 0;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Hero Section - Asymmetric Layout */
.hero-section {
  padding-top: 10px;
  padding-bottom: var(--space-xxl);
  background-color: var(--white);
}

.hero-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--space-lg);
  align-items: stretch;
  grid-template-areas:
    "main secondary1"
    "main secondary2"
    "compact1 compact2";
}

.hero-main-card {
  grid-area: main;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  background-color: var(--white);
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero-main-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.hero-main-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
  background-color: var(--gray-100);
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-main-card:hover .hero-main-image img {
  transform: scale(1.05);
}

.hero-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  color: white;
  z-index: 2;
  box-sizing: border-box;
}

.hero-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.hero-main-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-md) 0;
  color: white;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.hero-main-excerpt {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 var(--space-md) 0;
  color: rgba(255, 255, 255, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main-meta {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
}

.hero-secondary-card {
  grid-area: secondary1;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-secondary-card:nth-child(3) {
  grid-area: secondary2;
}

.hero-secondary-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
  flex: 1;
}

.hero-secondary-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: var(--gray-100);
  flex-shrink: 0;
}

.hero-secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-secondary-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.hero-secondary-card:hover .hero-secondary-image img {
  transform: scale(1.05);
}

.hero-secondary-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-secondary-category {
  display: inline-block;
  background-color: var(--gray-100);
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.hero-secondary-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--space-sm) 0;
  color: var(--dark-color);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-secondary-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.hero-compact-card {
  grid-area: compact1;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hero-compact-card:nth-child(5) {
  grid-area: compact2;
}

.hero-compact-link {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  gap: var(--space-md);
  padding: var(--space-md);
  box-sizing: border-box;
}

.hero-compact-image {
  width: 120px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: var(--gray-100);
  border-radius: var(--border-radius);
}

.hero-compact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-compact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.hero-compact-card:hover .hero-compact-image img {
  transform: scale(1.05);
}

.hero-compact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hero-compact-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--dark-color);
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-compact-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  margin-top: var(--space-xs);
}

/* Category Section - Horizontal Scroll Style */
.category-section {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-50);
}

.category-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.category-scroll::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
  background-color: var(--gray-300);
}

.category-item {
  flex-shrink: 0;
  background: var(--white);
  border: 2px solid var(--border-color);
  /* padding: var(--space-md) var(--space-xl); */
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-color);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.category-item:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-item-text {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0;
}

/* Trending Section - Vertical List Style */
.trending-section {
  padding: var(--space-xxl) 0;
  background-color: var(--white);
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trending-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-left-color: var(--secondary-color);
}

.trending-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

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

.trending-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--space-sm) 0;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.trending-item-title a {
  color: var(--dark-color);
  transition: var(--transition);
  text-decoration: none;
}

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

.trending-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  flex-wrap: wrap;
}

.trending-item-category {
  display: inline-block;
  background-color: var(--gray-100);
  color: var(--text-color);
  padding: 0.25rem 0.625rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Latest Section - Grid Layout (Same as List Page) */
.latest-section {
  padding: var(--space-xxl) 0;
  background-color: var(--gray-50);
}

.latest-section .articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.latest-section .article-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 150px;
}

.latest-section .article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.latest-section .article-top-row {
  display: contents;
}

.latest-section .article-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  overflow: hidden;
  background-color: var(--gray-100);
}

.latest-section .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.latest-section .article-card:hover .article-image img {
  transform: scale(1.05);
}

.latest-section .article-title-wrapper {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: flex-start;
}

.latest-section .article-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  align-self: flex-start;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.latest-section .article-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--dark-color);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.latest-section .article-title a {
  color: inherit;
  transition: var(--transition);
}

.latest-section .article-title a:hover {
  color: var(--primary-color);
}

.latest-section .article-content {
  grid-column: 1 / -1;
  padding: var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.latest-section .article-excerpt {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-section .article-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 400;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  /* margin-top: auto; */
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

.footer-column h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
  font-family: var(--font-heading);
  color: white;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--highlight-color);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.footer-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "secondary1"
      "secondary2"
      "compact1"
      "compact2";
  }

  .hero-main-image {
    height: 400px;
  }

  .hero-main-title {
    font-size: 1.625rem;
  }

  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Base typography optimization */
  html {
    font-size: 15px;
  }

  body {
    line-height: 1.7;
  }

  /* Container and spacing optimization */
  .container {
    padding: 0 var(--space-md)!important;
  }

  /* Reduce section padding */
  main {
    padding-top: var(--space-md);
  }

  /* Navigation */
  .nav-menu, .search-box {
    display: none;
  }

  .nav-actions .btn.btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .navbar {
    padding: var(--space-sm) 0;
  }

  /* Sections spacing */
  .headline-section,
  .category-section,
  .trending-section,
  .latest-section {
    padding: var(--space-xl) 0;
  }

  .headline-section {
    padding-top: var(--space-sm);
  }

  .section-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
  }

  .section-title {
    font-size: 1.375rem;
    padding-bottom: var(--space-xs);
  }

  /* Hero Section */
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "secondary1"
      "secondary2"
      "compact1"
      "compact2";
    gap: var(--space-md);
    align-items: stretch;
  }

  .hero-main-link {
    min-height: 300px;
  }

  .hero-main-image {
    min-height: 300px;
  }

  .hero-main-content {
    padding: var(--space-lg);
  }

  .hero-main-title {
    font-size: 1.5rem;
  }

  .hero-main-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 2;
  }

  .hero-secondary-image {
    height: 150px;
  }

  .hero-secondary-title {
    font-size: 0.9375rem;
  }

  .hero-compact-link {
    flex-direction: column;
    padding: var(--space-md);
  }

  .hero-compact-image {
    width: 100%;
    height: 150px;
  }

  .hero-compact-content {
    padding: var(--space-sm) 0 0 0;
  }

  /* Category Section */
  .category-scroll {
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }

  .category-item {
    padding: var(--space-sm) var(--space-lg);
  }

  .category-item-text {
    font-size: 0.875rem;
  }

  /* Trending Section */
  .trending-item {
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .trending-number {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .trending-item-title {
    font-size: 1rem;
  }

  .trending-item-meta {
    font-size: 0.8125rem;
    gap: var(--space-sm);
  }

  /* Latest Section */
  .latest-section .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .latest-section .article-image {
    height: 200px;
    min-height: 200px;
  }

  /* Pagination */
  .pagination-wrapper {
    margin-top: var(--space-xl);
  }

  .post-pagination a,
  .post-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
    padding: 0 var(--space-sm);
  }

  /* Footer */
  .footer {
    padding: var(--space-lg) 0;
  }

  .footer-links {
    gap: var(--space-sm);
  }

  .footer-link {
    font-size: 0.875rem;
    padding: var(--space-xs);
  }

  /* Categories Navigation */
  .categories-nav ul {
    gap: var(--space-xs);
  }

  .category-link {
    padding: var(--space-sm) var(--space-md);
  }

  .category-name {
    font-size: 0.875rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* List Page Styles */
.list-page {
  padding-top: 10px;
  background-color: var(--white);
}

.breadcrumb-container {
  /* padding: var(--space-md) 0; */
  background-color: var(--white);
  /* border-bottom: 1px solid var(--border-color); */
}

.breadcrumb ol {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li span {
  margin: 0 var(--space-xs);
  color: var(--text-light);
}

.breadcrumb li[aria-current="page"] {
  color: var(--text-color);
  font-weight: 500;
}

.page-title-section {
  display: block;
}

.page-header {
  /* padding: var(--space-xl) 0; */
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.category-badge {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--dark-color);
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 800px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.page-stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  font-family: var(--font-heading);
}

.stat-label {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-top: var(--space-xs);
  font-family: var(--font-heading);
}

.list-container {
  padding: var(--space-xl) 0;
}

.list-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

.list-sidebar {
  order: 0;
}

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

/* List Page Articles Grid */
.list-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.list-page .article-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 150px;
}

.list-page .article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.list-page .article-top-row {
  display: contents;
}

.list-page .article-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  overflow: hidden;
  background-color: var(--gray-100);
}

.list-page .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.list-page .article-card:hover .article-image img {
  transform: scale(1.05);
}

.list-page .article-title-wrapper {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: flex-start;
}

.list-page .article-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
  align-self: flex-start;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.list-page .article-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--dark-color);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.list-page .article-title a {
  color: inherit;
  transition: var(--transition);
}

.list-page .article-title a:hover {
  color: var(--primary-color);
}

.list-page .article-content {
  grid-column: 1 / -1;
  padding: var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.list-page .article-excerpt {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-page .article-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 400;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

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

  .list-sidebar {
    order: 0;
  }

  .list-page .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.pagination-wrapper {
  margin-top: var(--space-xxl);
}

.pagination-container {
  display: flex;
  justify-content: center;
}

.post-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-pagination li {
  display: flex;
  align-items: center;
}

.post-pagination a,
.post-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  font-size: 0.9375rem;
  color: var(--text-color);
  transition: var(--transition);
  font-weight: 600;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.post-pagination a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.post-pagination .current,
.post-pagination a.current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.post-pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sidebar Styles */
.sidebar-widget {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.01em;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--gray-50);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.tag-item:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.popular-item {
  display: flex;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

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

.popular-rank {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 30px;
  font-family: var(--font-heading);
}

.popular-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}

.popular-title a {
  color: var(--dark-color);
  transition: var(--transition);
}

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

.popular-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.categories-nav {
  margin: 0;
  padding: 0;
}

.categories-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sidebar-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.01em;
}

/* Sidebar Categories Navigation */
.categories-nav {
  margin: 0;
  padding: 0;
}

.categories-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.category-item {
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-item:hover {
  background-color: var(--gray-50);
  border-color: var(--border-color);
}

.category-item.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

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

.category-item.active .category-link {
  color: white;
}

.category-name {
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  letter-spacing: 0;
  flex: 1;
}

.category-count {
  font-size: 0.875rem;
  color: var(--text-light);
  background-color: var(--gray-50);
  padding: 0.25rem 0.625rem;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.category-item.active .category-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Detail Page Styles */
.article-detail {
  padding-top: 10px;
  padding-bottom: var(--space-xxl);
  background-color: var(--white);
}

.breadcrumb {
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.breadcrumb a {
  color: var(--text-light);
  transition: var(--transition);
}

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

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
  align-items: start;
}

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

.article-sidebar {
  order: 0;
}

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

  .article-sidebar {
    order: 0;
  }
}

@media (max-width: 768px) {
  .article-layout {
    display: block;
  }
}

.article-header {
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--space-lg);
}

.article-title {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

.meta-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.article-author-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
  color: var(--text-light);
  text-decoration: none;
}
.article-author-link:hover { color: var(--primary-color); }
.article-author-link img {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  object-fit: cover;
}

/* 正文下方作者区块（参考 station1540） */
.author-section {
  margin-top: var(--space-3xl, 2rem);
  padding-top: var(--space-2xl, 1.5rem);
  border-top: 1px solid var(--border-light, var(--border-color));
}
.author-section .author-card.author-card-below {
  display: flex;
  gap: var(--space-lg);
  box-shadow: none;
  transform: none;
  padding: 0;
  border: none;
  margin-top: 0;
}
.author-section .author-card-below:hover { box-shadow: none; transform: none; }
.author-section .author-avatar-wrapper { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary-light, var(--border-color)); }
.author-section .author-avatar { width: 100%; height: 100%; object-fit: cover; }
.author-section .author-info { flex: 1; }
.author-section .author-name { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-xs); }
.author-section .author-name a { color: var(--text-primary, var(--dark-color)); }
.author-section .author-name a:hover { color: var(--primary-color); }
.author-section .author-description { font-size: 0.875rem; color: var(--text-light); margin-bottom: var(--space-sm); }
.author-section .author-bio { font-size: 0.9375rem; color: var(--text-light); line-height: 1.6; margin-top: 0; }

.article-author {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
}

.author-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.author-link:hover {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* Modern Author Card Design */
.author-card {
  margin-top: 15px;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.author-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.author-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.author-avatar-wrapper {
  flex-shrink: 0;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.author-card:hover .author-avatar {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.author-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.author-card:hover .author-avatar-placeholder {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.author-header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.author-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.author-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.3;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.author-link {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.author-bio {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .author-card {
    padding: var(--space-md);
    margin-top: var(--space-md);
  }

  .author-card-header {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .author-avatar,
  .author-avatar-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .author-header-content {
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .author-label {
    font-size: 0.75rem;
  }

  .author-name {
    font-size: 1.125rem;
    text-align: left;
  }

  .author-bio {
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: var(--space-xs);
  }
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-color);
  background: var(--white);
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: var(--space-xxl);
  margin-bottom: var(--space-md);
  color: var(--dark-color);
  padding-left: var(--space-md);
  border-left: 4px solid var(--primary-color);
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.article-content h3 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-footer {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-color);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.share-label {
  font-weight: 600;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.share-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn .share-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.share-btn.whatsapp:hover { background: linear-gradient(135deg, #25D366, #128C7E); }
.share-btn.linkedin:hover { background: linear-gradient(135deg, #0A66C2, #004182); }
.share-btn.telegram:hover { background: linear-gradient(135deg, #0088cc, #229ED9); }
.share-btn.copy:hover { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)); }

.comments-section {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-color);
}

.comments-count {
  font-size: 1rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.comment-form {
  margin-bottom: var(--space-xl);
}

.comment-form textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  resize: vertical;
  margin-bottom: var(--space-md);
  transition: var(--transition);
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-note {
  font-size: 0.9375rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.comment {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--gray-50);
  border-radius: var(--border-radius-lg);
}

.comment-avatar {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.comment-content {
  flex-grow: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.comment-author {
  font-weight: 600;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.comment-time {
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.comment-text {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.comment-actions {
  display: flex;
  gap: var(--space-md);
}

.comment-like, .comment-reply {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
}

.comment-like:hover, .comment-reply:hover {
  color: var(--primary-color);
  background-color: var(--white);
}

.related-articles-section {
  /* margin-top: var(--space-xxl); */
  /* padding-top: var(--space-xl); */
  border-top: 2px solid var(--border-color);
  background-color: var(--gray-50);
  padding: var(--space-xxl) 0;
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.related-articles-title {
  font-size: 1.875rem;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--dark-color);
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.02em;
}

.related-articles-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  width: 100%;
}

.related-articles-grid .article-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.related-articles-grid .article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.related-articles-grid .article-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-articles-grid .article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
  background-color: var(--gray-100);
}

.related-articles-grid .article-card:hover img {
  transform: scale(1.08);
}

.related-articles-grid .article-card .article-content,
.related-articles-grid .article-card .article-title-wrapper {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-articles-grid .article-card .article-category,
.related-articles-grid .article-card .headline-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  align-self: flex-start;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-sm);
}

.related-articles-grid .article-card .article-title,
.related-articles-grid .article-card .headline-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--space-md) 0;
  color: var(--dark-color);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  flex: 1;
}

.related-articles-grid .article-card .article-title a,
.related-articles-grid .article-card .headline-title a {
  color: inherit;
  transition: var(--transition);
}

.related-articles-grid .article-card .article-title a:hover,
.related-articles-grid .article-card .headline-title a:hover {
  color: var(--primary-color);
}

.related-articles-grid .article-card .article-excerpt,
.related-articles-grid .article-card .headline-excerpt {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 var(--space-md) 0;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-articles-grid .article-card .article-meta,
.related-articles-grid .article-card .headline-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 400;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

@media (max-width: 768px) {
  .related-articles-section {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .related-articles-grid .article-card img {
    height: 200px;
  }
}

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
  z-index: 999;
  transition: var(--transition);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: none;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background-color: var(--secondary-color);
}

.navbar-container {
  position: relative;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 10001;
  position: relative;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background-color: var(--dark-color);
  transition: var(--transition);
  display: block;
  border-radius: var(--border-radius);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .navbar {
    padding: 5px 0;
    position: relative;
  }

  .breadcrumb {
    display: none;
  }

  .article-detail {
    padding-top: 0;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    gap: 0;
    border-top: 1px solid var(--border-color);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    display: none;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    display: block;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .hamburger {
    display: flex;
    z-index: 10001;
  }

  .nav-actions {
    display: flex;
  }

  .headline-section {
    padding-top: 10px;
  }

  .list-page {
    padding-top: 0;
  }

  .breadcrumb-container {
    padding: var(--space-sm) 0;
  }

  .breadcrumb ol {
    font-size: 0.875rem;
    flex-wrap: wrap;
  }

  .page-header {
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-lg);
  }

  .page-title {
    font-size: 1.75rem;
  }

  .list-page .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .list-page .article-image {
    height: 200px;
    min-height: 200px;
  }

  .section-padding {
    padding-top: 20px!important;
  }

  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs);
  }

  .search-box {
    display: none;
  }

  .article-title {
    font-size: 1.75rem;
  }
}

.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.empty-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.empty-text {
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* All Article Page Styles */
.blog-archive-left {
  flex: 1;
  min-width: 0;
}

.rightsidebar .articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-light);
  font-family: var(--font-heading);
}

.entry-date-label {
  font-weight: 600;
  color: var(--text-color);
}

.entry-date {
  color: var(--text-light);
  margin-right: var(--space-md);
}

.entry-title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.common-title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.entry-title a,
.common-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.entry-title a:hover,
.common-title a:hover {
  color: var(--primary-color);
}

.entry-content {
  margin-top: var(--space-md);
}

.expert-content {
  color: var(--text-color);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.common-p {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text-color);
}

.article-wrap {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  transition: var(--transition);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius-lg);
}

.article-wrap:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.entry-header {
  display: block;
}

.article_part_header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.article_part_header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.article_part_h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--dark-color);
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.detail-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-lg) 0;
  color: var(--dark-color);
  letter-spacing: -0.02em;
  font-family: var(--font-heading);
}

.article_part_div {
  line-height: 1.9;
  font-size: 1.125rem;
  color: var(--text-color);
}

.article_part_div p {
  margin-bottom: var(--space-lg);
}

.article_part_div h2,
.article_part_div h3,
.article_part_div h4 {
  margin-bottom: var(--space-md);
  font-weight: 700;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.article_part_div h2 {
  font-size: 1.875rem;
  margin-top: var(--space-xl);
}

.article_part_div h3 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
}

.article_part_div h4 {
  font-size: 1.25rem;
  margin-top: var(--space-md);
}

.article_part_div ul,
.article_part_div ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article_part_div li {
  margin-bottom: var(--space-sm);
}

.article_part_div img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
  margin: var(--space-lg) auto;
  box-shadow: var(--shadow-md);
}

.comments-area {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xxl);
  border-top: 2px solid var(--border-color);
}

.comment-respond {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.nv-is-boxed {
  border: 2px solid var(--border-color);
}

.comment-reply-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.comment-reply-title small {
  font-size: 0.9375rem;
  font-weight: 400;
}

.comment-reply-title small a {
  color: var(--primary-color);
  text-decoration: underline;
}

.comment-notes {
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.7;
}

.comment-notes span {
  display: block;
  margin-bottom: var(--space-xs);
}

.required-field-message {
  margin-top: var(--space-sm);
}

.required {
  color: var(--danger-color);
  font-weight: 700;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  margin-bottom: var(--space-lg);
}

.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-heading);
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.comment-form-comment textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  min-height: 150px;
  transition: var(--transition);
  background-color: var(--white);
}

.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-light);
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.comment-form-cookies-consent label {
  cursor: pointer;
  line-height: 1.7;
  flex: 1;
}

.form-submit {
  margin-top: var(--space-xl);
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  text-decoration: none;
  text-align: center;
  background-color: var(--white);
  color: var(--text-color);
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
}

.section-padding {
  padding-top: 10px;
  padding-bottom: var(--space-xl);
}

.section-padding-lg {
  padding-top: var(--space-xxl);
  padding-bottom: var(--space-xxl);
}

.blog-index {
  background-color: var(--white);
}

.rightsidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

.rightsidebar > aside,
.rightsidebar .sidebar,
.rightsidebar .list-sidebar {
  order: 0;
}

.ccontent-area {
  min-width: 0;
  max-width: none;
  order: -1;
}

@media (max-width: 1024px) {
  .rightsidebar {
    grid-template-columns: 1fr;
  }

  .rightsidebar > aside,
  .rightsidebar .sidebar,
  .rightsidebar .list-sidebar {
    order: 0;
  }
}

@media (max-width: 768px) {
  .article-wrap {
    padding: var(--space-lg);
  }

  .article_part_h1,
  .detail-title {
    font-size: 1.75rem;
  }

  .article_part_div {
    font-size: 1.0625rem;
  }

  .comment-respond {
    padding: var(--space-lg);
  }

  .comment-reply-title {
    font-size: 1.375rem;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .form-actions {
    flex-direction: column;
  }

  .page-title {
    font-size: 2rem;
  }
}

/* Author Page Styles */
.author-profile-page {
  padding-top: 10px;
}

.author-hero-section {
  padding: var(--space-xxl) 0;
}

.author-hero-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xxl);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.author-avatar-wrapper {
  position: relative;
}

.author-avatar-large {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.author-info-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.author-name-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: var(--font-heading);
}

.author-description {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.author-content-section {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-xxl);
}

.author-content-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  position: relative;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: var(--font-heading);
  text-transform: none;
}

.author-content-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.author-content-body {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-color);
}

.author-content-body p {
  margin-bottom: var(--space-md);
}

.author-content-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.author-content-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.author-articles-section {
  padding: var(--space-xxl) 0;
}

.author-articles-section .section-header {
  margin-bottom: var(--space-xl);
}

.author-articles-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  font-family: var(--font-heading);
}

.author-articles-section .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.author-articles-section .article-card {
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: 0;
  padding: var(--space-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.author-articles-section .article-card:hover {
  box-shadow: var(--shadow-lg);
}

.author-articles-section .article-top-row {
  flex: 1;
}

.author-articles-section .article-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.author-articles-section .article-card .article-category {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: 4px;
}

.author-articles-section .article-card .article-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--space-xs) 0;
  color: var(--dark-color);
  font-family: var(--font-heading);
}

.author-articles-section .article-card .article-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.author-articles-section .article-card .article-title a:hover {
  color: var(--primary-color);
}

.author-articles-section .article-card .article-excerpt {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
}

.author-articles-section .article-card .article-content {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light, var(--border-color));
}

.author-articles-section .article-card .article-meta {
  font-size: 0.875rem;
  color: var(--text-light);
}

.author-articles-section .pagination-wrapper {
  margin-top: var(--space-xxl);
}

@media (max-width: 1024px) {
  .author-articles-section .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .author-articles-section .section-title {
    font-size: 1.5rem;
  }

  .author-articles-section .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .author-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-lg);
  }

  .author-avatar-large {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .author-name-large {
    font-size: 2rem;
  }

  .author-content-section {
    padding: var(--space-lg);
  }

  .author-content-title {
    font-size: 1.625rem;
  }
}

/* 列表/更多文章页广告位对称 */
.list-page .ad-slot { padding: var(--space-lg) 0; }
.list-page .ad-slot--top { padding-top: var(--space-md); padding-bottom: var(--space-lg); }
.list-page .ad-slot--bottom { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.list-page .ad-slot--inline { padding: var(--space-md) 0; }
