/* ========================================
   Article Pages Styles - PositiveQuotes.ai
   ======================================== */

/* Homepage Navigation Styles for Articles */
.top-nav.homepage-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.top-nav.homepage-nav .nav-container {
  max-width: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.top-nav.homepage-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav.homepage-nav .nav-logo {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.top-nav.homepage-nav .nav-logo:hover {
  transform: scale(1.05);
}

.top-nav.homepage-nav .nav-small-title {
  color: rgba(255,255,255,0.85);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
}

.top-nav.homepage-nav .nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.top-nav.homepage-nav .nav-desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.top-nav.homepage-nav .nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.top-nav.homepage-nav .nav-desktop a.nav-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.top-nav.homepage-nav .nav-desktop a.nav-active:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

.top-nav.homepage-nav .nav-mobile {
  display: none;
}

.top-nav.homepage-nav .menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.top-nav.homepage-nav .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.top-nav.homepage-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 20px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.top-nav.homepage-nav .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* Article Navigation Styles */
.top-nav.article-nav {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.top-nav.article-nav .nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Article Brand Logo */
.top-nav.article-nav .nav-brand {
  margin: 0 !important;
  color: #fff;
  display: flex;
  align-items: center;
}

.top-nav.article-nav .nav-brand span { 
  color: #fff; 
}

.top-nav.article-nav .nav-brand-icon {
  background: #fff;
  color: #000;
}

/* Small title on the left */
.top-nav.article-nav .nav-small-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Desktop Navigation */
.top-nav.article-nav .nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.top-nav.article-nav .nav-desktop a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.top-nav.article-nav .nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.top-nav.article-nav .nav-desktop a.nav-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Article Navigation Links - Legacy support */
.top-nav.article-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.top-nav.article-nav .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.top-nav.article-nav .nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.top-nav.article-nav .nav-links a.nav-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.top-nav.article-nav .nav-links a.nav-active:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

/* Article CTA Button */
.top-nav.article-nav .nav-cta-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.top-nav.article-nav .nav-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

/* Article Mobile Navigation */
.top-nav.article-nav .nav-mobile {
  display: none;
}

.top-nav.article-nav .menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.top-nav.article-nav .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.top-nav.article-nav .menu-toggle.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.top-nav.article-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 16px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.top-nav.article-nav .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-nav.article-nav .dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.top-nav.article-nav .dropdown-menu a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(4px);
}

.top-nav.article-nav .dropdown-menu a.nav-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.top-nav.article-nav .dropdown-menu a.nav-cta-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  color: white;
  margin-top: 8px;
  text-align: center;
}

.top-nav.article-nav .dropdown-menu a.nav-cta-button:hover {
  background: linear-gradient(135deg, #ff5252 0%, #26a69a 100%);
  transform: translateY(-1px);
}

/* Article Header Styles */
.article-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0 0px;
  color: white;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.article-header .container {
  position: relative;
  z-index: 1;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.9;
}

.article-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 4px;
}

.article-breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.article-title-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.article-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
}

.article-date,
.article-reading-time,
.article-category {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-excerpt {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Content Styles */
.article-content {
  padding: 60px 0;
  background: #ffffff;
}

.article-content .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

.article-body {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
  line-height: 1.3;
  text-align: left;
}

.content-section h3 {
  font-size: 24px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 16px;
  margin-top: 32px;
  text-align: left;
}

.content-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: left;
}

.content-section ul {
  margin-bottom: 20px;
}

.content-section li {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
  text-align: left;
}

/* Quote Styles */
.quote-highlight {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #667eea;
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
  position: relative;
}

.quote-highlight::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  color: #667eea;
  opacity: 0.3;
  font-family: serif;
}

.quote-highlight blockquote {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 16px 0;
  line-height: 1.4;
  font-style: italic;
}

.quote-highlight cite {
  font-size: 16px;
  color: #667eea;
  font-weight: 500;
  font-style: normal;
}

/* Quote Action Button */
.quote-action {
  margin-top: 20px;
  text-align: center;
}

.quote-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
  border: none;
  cursor: pointer;
}

.quote-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  color: white;
  text-decoration: none;
}

.quote-generate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.quote-generate-btn .btn-icon {
  font-size: 16px;
  opacity: 0.9;
}

.quote-generate-btn .btn-text {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.quote-list {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

.quote-item {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  border-left: 4px solid #4ecdc4;
  transition: all 0.3s ease;
}

.quote-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.quote-item blockquote {
  font-size: 20px;
  font-weight: 500;
  color: #2c3e50;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-style: italic;
}

.quote-item cite {
  font-size: 14px;
  color: #667eea;
  font-weight: 500;
  font-style: normal;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

.related-articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 12px;
}

.related-articles a {
  color: #667eea;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.3s ease;
  display: block;
  padding: 8px 0;
}

.related-articles a:hover {
  color: #5a6fd8;
  transform: translateX(4px);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
}

.quick-quote {
  text-align: center;
}

.quick-quote blockquote {
  font-size: 18px;
  font-weight: 500;
  color: #2c3e50;
  margin: 0 0 16px 0;
  line-height: 1.5;
  font-style: italic;
}

.generate-image-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.generate-image-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  color: white;
}

/* Article CTA Section */
.article-cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-button {
  padding: 16px 32px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.cta-button.primary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.cta-button.secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.cta-button.secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-nav.article-nav .nav-desktop {
    display: none;
  }
  
  .top-nav.article-nav .nav-mobile {
    display: block;
  }
  
  .top-nav.article-nav .nav-container {
    justify-content: space-between;
    padding: 0 8px;
    min-height: 50px;
    align-items: center;
  }
  
  .top-nav.article-nav .nav-brand {
    flex-shrink: 0;
  }
  
  .top-nav.article-nav .nav-small-title {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    max-width: calc(100vw - 100px);
  }
  
  .article-header {
    padding: 60px 0 0px;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 12px;
  }
  
  .article-excerpt {
    font-size: 18px;
  }
  
  .article-content .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .article-body {
    padding: 24px;
  }
  
  .content-section h2 {
    font-size: 28px;
  }
  
  .content-section h3 {
    font-size: 22px;
  }
  
  .content-section p {
    font-size: 16px;
  }
  
  .quote-highlight {
    padding: 24px;
  }
  
  .quote-highlight blockquote {
    font-size: 20px;
  }
  
  .quote-item blockquote {
    font-size: 18px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

/* 主页导航栏样式 - 复制自homepage.css */
.top-nav.homepage-nav .menu-toggle {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--primary-blue);
  font-weight: 600;
  transition: all 0.3s ease;
}

.top-nav.homepage-nav .menu-toggle:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.top-nav.homepage-nav .menu-toggle.active {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.6);
  color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.top-nav.homepage-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 16px;
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  z-index: 1001;
}

.top-nav.homepage-nav .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-nav.homepage-nav .dropdown-menu a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.top-nav.homepage-nav .dropdown-menu a:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}

.top-nav.homepage-nav .dropdown-menu a.nav-active {
  background: var(--primary-gradient);
  color: var(--primary-blue);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Mobile Responsive Styles for Homepage Navigation - 复制自index.html */
@media (max-width: 768px) {
  .top-nav.homepage-nav {
    padding: 10px 0;
  }
  
  .top-nav.homepage-nav .nav-container {
    justify-content: space-between;
    padding: 0 16px;
  }
  
  /* 移动端适配 nav-small-title */
  .top-nav.homepage-nav .nav-small-title {
    font-size: 14px;
    margin-right: 6px;
  }
  
  .top-nav.homepage-nav .nav-desktop {
    display: none;
  }
  
  .top-nav.homepage-nav .nav-mobile {
    display: block;
  }

  /* 移动端：限制下拉菜单大小并启用滚动，避免溢出屏幕 */
  .top-nav.homepage-nav .dropdown-menu {
    position: fixed;
    top: 56px; /* 贴合导航高度 */
    right: 12px;
    left: auto;
    width: calc(100vw - 24px);
    max-width: 340px;
    max-height: 65vh;
    overflow-y: auto;
    margin-top: 0;
    transform: none;
    padding: 4px; /* 减少菜单容器的内边距 */
  }
  
  /* 移动端：减少菜单项间距 */
  .top-nav.homepage-nav .dropdown-menu a {
    padding: 6px 12px; /* 减少垂直间距 */
    margin: 2px 0; /* 添加小的外边距 */
  }
  
  .top-nav.homepage-nav .nav-brand {
    font-size: 14px;
  }
  
  .top-nav.homepage-nav .nav-brand-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  /* 确保文章内容不被导航栏覆盖 */
  .article-header {
    padding-top: 60px !important;
  }
  
  .article-content {
    padding-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .top-nav.homepage-nav .nav-container {
    padding: 0 12px;
  }
  
  /* 超小屏幕适配 nav-small-title */
  .top-nav.homepage-nav .nav-small-title {
    font-size: 12px;
    margin-right: 4px;
  }
  
  .top-nav.homepage-nav .nav-logo {
    width: 70px;
    height: 60px;
  }
  
  /* 确保文章内容不被导航栏覆盖 */
  .article-header {
    padding-top: 50px !important;
  }
  
  .article-content {
    padding-top: 0 !important;
  }
  
  /* 确保移动端菜单按钮正确显示 */
  .top-nav.homepage-nav .menu-toggle {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .top-nav.homepage-nav .menu-toggle .menu-icon {
    font-size: 18px !important;
    color: #fff !important;
    font-weight: bold !important;
  }
  
  /* 确保导航栏在移动端有正确的高度 */
  .top-nav.homepage-nav {
    height: 60px !important;
    min-height: 60px !important;
  }
  
  .top-nav.homepage-nav .nav-container {
    height: 60px !important;
    min-height: 60px !important;
  }
}

@media (max-width: 480px) {
  .top-nav.article-nav .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .top-nav.article-nav .nav-brand {
    font-size: 14px;
  }
  
  .top-nav.article-nav .nav-brand-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .top-nav.article-nav .nav-links {
    display: none;
  }
  
  .article-header {
    padding: 50px 0 0px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .article-excerpt {
    font-size: 16px;
  }
  
  .article-body {
    padding: 20px;
  }
  
  .content-section h2 {
    font-size: 24px;
  }
  
  .content-section h3 {
    font-size: 20px;
  }
  
  .quote-highlight {
    padding: 20px;
  }
  
  .quote-highlight blockquote {
    font-size: 18px;
  }
  
  .quote-item {
    padding: 20px;
  }
  
  .quote-item blockquote {
    font-size: 16px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .cta-content h2 {
    font-size: 24px;
  }
  
  .cta-content p {
    font-size: 16px;
  }
}

/* 超小屏幕适配 (320px) */
@media (max-width: 320px) {
  /* 超小屏幕适配 nav-small-title */
  .top-nav.homepage-nav .nav-small-title {
    font-size: 10px;
    margin-right: 3px;
  }
}
