/* ============================================
   Modern CSS for SEO-Optimized Content Site
   Based on Google 2026 Best Practices
   ============================================ */

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-primary: #1976d2;
  --color-primary-dark: #115293;
  --color-primary-light: #4791db;
  --color-secondary: #424242;
  --color-accent: #ff6b6b;
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-danger: #f44336;
  
  /* Neutrals */
  --color-text: #212121;
  --color-text-light: #666666;
  --color-text-lighter: #999999;
  --color-border: #e0e0e0;
  --color-border-light: #f5f5f5;
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;
  --color-bg-section: #f8f9fa;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --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);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Do NOT set overflow-x here: combined with body's overflow-x: hidden
     it makes <html> its own scroll container and breaks the sticky header. */
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* ============================================
   2. SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   3. CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* Prevent horizontal overflow on all elements EXCEPT header */
*:not(.site-header):not(header) {
  max-width: 100%;
}

/* Allow specific elements to exceed container */
html,
body,
.site-header,
header,
.article-meta-banner,
.hero-section,
.stats-section,
.toc-section,
.content-section,
.related-section,
.site-footer {
  max-width: none;
}

/* Critical mobile fix: prevent any overflow */
section,
article,
div,
main {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Ensure images never cause overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure SVG icons don't cause issues */
svg {
  max-width: 100%;
  height: auto;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.site-header-sticky {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scrolled state */
.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 1);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

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

.logo-link img {
  height: 36px;
  width: auto;
  display: block;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #e8f5e9;
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

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

/* Dropdown Navigation */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

/* 鼠标悬停时箭头旋转（桌面）；点击展开时箭头旋转（移动端） */
.nav-item-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px); /* 距离父元素8px，更自然 */
  left: 0;
  min-width: 200px;
  width: max-content; /* 自动适应内容宽度 */
  max-width: 300px; /* 最大宽度限制 */
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
  /* 关键：确保没有overflow，内容完全可见 */
  overflow: visible;
  max-height: none;
  height: auto;
}

/* 鼠标悬停父元素时，立即显示下拉菜单 */
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 在下拉菜单上方添加一个不可见的桥接区域，防止鼠标移动时菜单消失 */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

.nav-dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background: var(--color-primary);
  color: white;
  padding-left: 24px; /* 悬停时轻微缩进 */
}

/* 当前页面在下拉菜单中的样式 */
.nav-dropdown-link[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

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

/* Header Login Button */
.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-header-login:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-light);
  transform: translateY(-1px);
}

.btn-header-login svg {
  flex-shrink: 0;
}

/* Header Download Button */
.btn-header-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
  white-space: nowrap;
}

.btn-header-download:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.btn-header-download svg {
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-base);
}

/* Hamburger animation when active */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation Menu */
@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    padding: 80px 0 20px;
    transition: right 0.3s ease-out;
    z-index: 999;
    overflow-y: auto; /* 移动端菜单内容过多时可滚动 */
    overflow-x: visible; /* 水平方向不滚动，确保下拉菜单可见 */
    /* 隐藏滚动条外观，但保留可滚动能力，视觉上更自然 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  .main-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge(Chromium) */
  }
  
  .main-nav.mobile-active {
    display: block;
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-link {
    display: block;
    padding: 16px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border-light);
  }
  
  /* Mobile overlay */
  .main-nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
  }
  
  .main-nav.mobile-active::before {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .trust-badge {
    display: none;
  }
  
  /* Adjust header buttons on tablet */
  .btn-header-login,
  .btn-header-download {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  
  /* 移动端下拉菜单改为堆叠显示，不需要浮动 */
  .nav-item-dropdown {
    position: relative;
  }
  
  .nav-dropdown {
    position: static; /* 移动端不浮动，直接堆叠 */
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
    margin-top: 0;
    /* 用 max-height 过渡实现自然展开/收起，而不是生硬的 display 切换 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
  }
  
  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown {
    max-height: 320px; /* 足够容纳所有子项，展开时自然撑开 */
    margin-top: 8px;
  }
  
  .nav-dropdown-link {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* Stack buttons vertically or hide login on small screens */
  .header-actions {
    gap: 8px;
  }
  
  .btn-header-login {
    display: none;
  }
  
  .btn-header-download {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  
  .logo-link img {
    height: 32px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .btn-header-download {
    padding: 6px 12px;
    font-size: 0.8125rem;
  }
  
  .btn-header-download svg {
    width: 14px;
    height: 14px;
  }
  
  .header-wrapper {
    gap: var(--space-sm);
  }
}

/* ============================================
   5. ARTICLE META BANNER
   ============================================ */
.article-meta-banner {
  background: var(--color-bg-section);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.meta-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-light);
}

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

.meta-item svg {
  flex-shrink: 0;
}

.meta-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.meta-item a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .meta-content {
    font-size: 0.8125rem;
    gap: var(--space-sm);
  }
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 350px;
    gap: var(--space-lg);
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.separator {
  color: var(--color-text-lighter);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
  .trust-indicators {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  display: flex;
  gap: var(--space-sm);
}

.trust-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-text strong {
  font-weight: 600;
  color: var(--color-text);
}

.trust-text span {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.cta-section {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-showcase {
  position: relative;
  text-align: center;
}

.app-showcase img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.showcase-badge {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.badge-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.rating-stars {
  color: #ffa000;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.rating-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.badge-users {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.badge-version {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-visual {
    order: -1;
    max-width: 100%;
  }
  
  .app-showcase {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .breadcrumb {
    font-size: 0.8125rem;
    flex-wrap: wrap;
  }
  
  .app-showcase {
    max-width: 250px;
  }
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  line-height: 1.5;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

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

.btn-outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-light);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-xlarge {
  padding: 20px 40px;
  font-size: 1.25rem;
}

/* ============================================
   8. STATS SECTION
   ============================================ */
.stats-section {
  padding: var(--space-xl) 0;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

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

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat-detail {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* ============================================
   9. TABLE OF CONTENTS
   ============================================ */
.toc-section {
  padding: var(--space-xl) 0;
  background: var(--color-bg-section);
}

.toc-card {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.toc-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.toc-list {
  list-style: none;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
  margin-bottom: var(--space-sm);
}

.toc-list li a {
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.toc-list li a:before {
  content: counter(toc-counter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary-light);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-right: var(--space-sm);
  flex-shrink: 0;
}

.toc-list li a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

/* ============================================
   10. CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: var(--space-xxl) 0;
}

.section-alternate {
  background: var(--color-bg-section);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.content-body {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-xl);
  width: 100%;
}

@media (max-width: 1200px) {
  .content-body {
    grid-template-columns: 1fr 300px;
  }
}

.content-main {
  max-width: 750px;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

.content-main pre,
.content-main code {
  overflow-x: auto;
  max-width: 100%;
}

.content-main h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--color-text);
}

.content-main h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--color-text);
}

.content-main h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--color-text);
}

.content-main p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.content-main ul,
.content-main ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content-main li {
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.content-main strong {
  font-weight: 600;
  color: var(--color-text);
}

.content-main a {
  color: var(--color-primary);
  text-decoration: underline;
}

.content-main a:hover {
  color: var(--color-primary-dark);
}

.numbered-list {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
}

.numbered-list li {
  counter-increment: list-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: var(--space-md);
}

.numbered-list li:before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

@media (max-width: 968px) {
  .content-body {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .content-main {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .content-main h3 {
    font-size: 1.375rem;
  }
  
  .content-main h4 {
    font-size: 1.125rem;
  }
}

/* ============================================
   11. INFO BOXES
   ============================================ */
.info-box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  border-left: 4px solid;
}

.info-important {
  background: #fff3e0;
  border-color: var(--color-warning);
}

.info-tip {
  background: #e3f2fd;
  border-color: var(--color-primary);
}

.info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-content strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

/* ============================================
   12. AUTHOR NOTE
   ============================================ */
.author-note {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #f1f8ff;
  border: 2px solid #0366d6;
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

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

.author-info strong {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

/* ============================================
   13. TABLES
   ============================================ */
.table-responsive {
  overflow-x: auto;
  margin: var(--space-lg) 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .table-responsive {
    margin-left: calc(-1 * var(--space-sm));
    margin-right: calc(-1 * var(--space-sm));
    width: calc(100% + 2 * var(--space-sm));
    border-radius: 0;
  }
}

.comparison-table,
.detailed-comparison,
.faq-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table thead,
.detailed-comparison thead {
  background: var(--color-primary);
  color: white;
}

.comparison-table th,
.comparison-table td,
.detailed-comparison th,
.detailed-comparison td,
.faq-table th,
.faq-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td,
  .detailed-comparison th,
  .detailed-comparison td,
  .faq-table th,
  .faq-table td {
    padding: var(--space-sm);
    font-size: 0.875rem;
  }
  
  .comparison-table,
  .detailed-comparison,
  .faq-table {
    min-width: 600px;
  }
}

.comparison-table th,
.detailed-comparison th,
.faq-table th {
  font-weight: 600;
}

.comparison-table tbody tr:hover,
.detailed-comparison tbody tr:hover,
.faq-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.table-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: var(--space-sm);
}

/* ============================================
   14. SIDEBAR
   ============================================ */
.content-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
}

.sidebar-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.sidebar-highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.sidebar-highlight h4 {
  color: white;
}

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

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

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

.spec-item dt {
  font-weight: 600;
  color: var(--color-text-light);
}

.spec-item dd {
  font-weight: 500;
  color: var(--color-text);
  text-align: right;
}

.hash-code {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  word-break: break-all;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-md);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

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

.recommendation-score {
  text-align: center;
  margin-bottom: var(--space-md);
}

.score-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.score-circle span {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.score-label {
  font-weight: 600;
  color: white;
}

.pros-cons {
  list-style: none;
  padding: 0;
}

.pros-cons li {
  padding: var(--space-xs) 0;
}

.pro {
  color: #4caf50;
}

.con {
  color: #ff9800;
}

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

.rating-item {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: var(--space-sm);
}

.rating-category {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.rating-bar {
  height: 8px;
  background: var(--color-border-light);
  border-radius: 4px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
  transition: width var(--transition-slow);
}

.rating-score {
  font-weight: 700;
  color: var(--color-text);
  text-align: right;
}

/* ============================================
   15. FEATURE GRID
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

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

.feature-card {
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
}

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

.feature-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  opacity: 0.3;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.feature-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.score-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
}

.score-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}

.methodology-note {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: #f1f8ff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.methodology-note h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

/* ============================================
   16. COMPARISON & DECISION HELPER
   ============================================ */
.comparison-content {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
  color: var(--color-text-light);
}

.comparison-table-wrapper {
  margin: var(--space-xl) 0;
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .comparison-table-wrapper {
    margin-left: calc(-1 * var(--space-sm));
    margin-right: calc(-1 * var(--space-sm));
    width: calc(100% + 2 * var(--space-sm));
  }
}

.decision-helper {
  margin-top: var(--space-xxl);
}

.decision-helper h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

.decision-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.decision-universal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.decision-arm {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.decision-card h4 {
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: white;
}

.decision-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.decision-card li {
  padding: var(--space-xs) 0;
  color: white;
}

.decision-card .btn {
  width: 100%;
  background: white;
}

.decision-universal .btn {
  color: #667eea;
}

.decision-arm .btn {
  color: #f5576c;
}

/* ============================================
   17. TUTORIAL / STEPS
   ============================================ */
.tutorial-content {
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.step-header {
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.step-number {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: white;
}

.step-body {
  padding: var(--space-xl);
}

@media (max-width: 768px) {
  .step-header {
    padding: var(--space-md);
  }
  
  .step-body {
    padding: var(--space-md);
  }
  
  .step-visual {
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
  }
}

.step-text ol,
.step-text ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

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

.step-text code {
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.step-note {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: #fff3e0;
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
}

.step-warning {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: #ffebee;
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-md);
}

.step-visual {
  margin-top: var(--space-lg);
  text-align: center;
}

.step-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.download-info,
.install-time,
.troubleshooting,
.post-install {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
}

.hash-verification {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
}

.hash-label {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.hash-value {
  display: block;
  padding: var(--space-sm);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  word-break: break-all;
  overflow-wrap: break-word;
  margin: var(--space-sm) 0;
}

@media (max-width: 480px) {
  .hash-value {
    font-size: 0.625rem;
  }
}

.btn-copy {
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

.btn-copy:hover {
  background: var(--color-primary-dark);
}

.help-card {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  text-align: center;
}

.help-card h4 {
  margin-bottom: var(--space-md);
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ============================================
   18. SECURITY SECTION
   ============================================ */
.security-intro {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  font-size: 1.125rem;
  text-align: center;
  color: var(--color-text-light);
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

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

.audit-card {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid;
}

.audit-pass {
  border-color: var(--color-success);
}

.audit-warning {
  border-color: var(--color-warning);
}

.audit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.audit-pass .audit-icon {
  background: #e8f5e9;
  color: var(--color-success);
}

.audit-warning .audit-icon {
  background: #fff3e0;
  color: var(--color-warning);
}

.audit-card h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
}

.audit-card p {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.audit-detail {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.security-checklist {
  margin: var(--space-xxl) 0;
}

.security-checklist h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: var(--space-md);
}

.security-checklist > p {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

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

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

.checklist-section {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.checklist-section h4 {
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  color: var(--color-primary);
}

.checklist-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 4px;
  cursor: pointer;
}

.security-verdict {
  margin-top: var(--space-xxl);
}

.verdict-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.verdict-score {
  text-align: center;
}

.score-circle-large {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.score-number {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: white;
}

.score-circle-large .score-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.score-rating {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.verdict-text p {
  margin-bottom: var(--space-md);
}

.verdict-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .verdict-card {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   19. REVIEW SECTION
   ============================================ */
.review-stats {
  max-width: 600px;
  margin: 0 auto var(--space-xxl);
}

.stats-summary {
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.rating-large {
  margin-bottom: var(--space-xl);
}

.rating-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.rating-stars-large {
  font-size: 2rem;
  color: #ffa000;
  letter-spacing: 4px;
  margin: var(--space-sm) 0;
}

.rating-meta {
  color: var(--color-text-light);
}

.rating-distribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.distribution-item {
  display: grid;
  grid-template-columns: 40px 1fr 50px;
  align-items: center;
  gap: var(--space-sm);
}

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

.distribution-bar {
  height: 12px;
  background: var(--color-border-light);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffa000 0%, #ff6f00 100%);
  transition: width var(--transition-slow);
}

.percentage {
  text-align: right;
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

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

.review-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}

.review-verified {
  border: 2px solid #4caf50;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  gap: var(--space-md);
}

.reviewer-info {
  display: flex;
  gap: var(--space-md);
  flex: 1;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.verified-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #4caf50;
  color: white;
  font-size: 0.75rem;
  border-radius: 10px;
  margin-left: 8px;
}

.reviewer-meta {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.review-rating {
  text-align: right;
}

.review-rating .stars {
  color: #ffa000;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.review-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.review-body h4 {
  margin-bottom: var(--space-sm);
  font-size: 1.125rem;
  color: var(--color-text);
}

.review-body p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.tag {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-positive {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-neutral {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-negative {
  background: #fff3e0;
  color: #e65100;
}

.review-helpful {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.review-helpful span {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.btn-helpful {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-helpful:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-text-light);
}

.developer-response {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: #f1f8ff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.response-header strong {
  color: var(--color-primary);
}

.response-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.review-footer {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ============================================
   20. FAQ SECTION
   ============================================ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-answer h5 {
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
  color: var(--color-text);
}

.faq-answer ul,
.faq-answer ol {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.faq-answer li {
  margin-bottom: var(--space-xs);
}

.code-block {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.code-header {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: #9cdcfe;
}

.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================
   21. CONCLUSION SECTION
   ============================================ */
.conclusion-summary {
  max-width: 800px;
  margin: 0 auto var(--space-xxl);
  text-align: center;
}

.verdict-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.verdict-score-large {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.verdict-badge {
  padding: 12px 24px;
  background: #4caf50;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.strengths-weaknesses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xxl) 0;
}

@media (max-width: 768px) {
  .strengths-weaknesses {
    grid-template-columns: 1fr;
  }
}

.strength-box,
.weakness-box {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.strength-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.weakness-box {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.strength-box h4,
.weakness-box h4 {
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.strength-box ul,
.weakness-box ul {
  list-style: none;
  padding: 0;
}

.strength-box li,
.weakness-box li {
  padding: var(--space-sm) 0;
  line-height: 1.6;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xxl) 0;
}

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

.recommendation-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.recommendation-do {
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
}

.recommendation-dont {
  background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
  color: white;
}

.recommendation-card h4 {
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  color: white;
}

.recommendation-card ul {
  list-style: none;
  padding: 0;
}

.recommendation-card li {
  padding: var(--space-xs) 0;
  color: white;
}

.final-thoughts {
  max-width: 800px;
  margin: var(--space-xxl) auto;
}

.final-thoughts h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.final-thoughts p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: 1.8;
}

.author-signature {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-section);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
}

.signature-line {
  font-style: italic;
}

.update-date {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.cta-final {
  margin-top: var(--space-xxl);
  padding: var(--space-xxl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  color: white;
}

.cta-final h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: white;
}

.cta-final p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  color: rgba(255,255,255,0.9);
}

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

/* ============================================
   22. RELATED CONTENT
   ============================================ */
.related-section {
  padding: var(--space-xxl) 0;
  background: var(--color-bg-section);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

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

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: var(--transition-base);
}

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

.related-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.related-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.related-card p {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ============================================
   23. FOOTER
   ============================================ */
.site-footer {
  background: #212121;
  color: #e0e0e0;
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.footer-col h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-about p {
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

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

.footer-trust .trust-item {
  color: #4caf50;
  font-size: 0.875rem;
}

.footer-list {
  list-style: none;
  padding: 0;
}

.footer-list li {
  margin-bottom: var(--space-xs);
}

.footer-list a {
  color: #b0b0b0;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-list a:hover {
  color: white;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: #b0b0b0;
}

.footer-contact-list a {
  color: #b0b0b0;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid #424242;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright p {
  font-size: 0.875rem;
  color: #808080;
  margin-bottom: var(--space-xs);
}

.footer-copyright a {
  color: #4caf50;
  text-decoration: none;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #666666;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  color: #808080;
}

.back-to-top {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 600;
}

.back-to-top:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   24. RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1200px) {
  :root {
    font-size: 15px;
  }
}

@media (max-width: 968px) {
  :root {
    --space-xxl: 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  /* Ensure all grids are single column */
  .hero-grid,
  .content-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
    --space-xl: 2rem;
    --space-xxl: 2.5rem;
  }
  
  .feature-grid,
  .audit-grid,
  .decision-grid,
  .checklist-grid,
  .strengths-weaknesses,
  .recommendation-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Mobile-specific adjustments */
  .content-section {
    padding: var(--space-lg) 0;
  }
  
  .toc-list li a {
    font-size: 0.875rem;
    padding: var(--space-xs);
  }
  
  .toc-list li a:before {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
  
  /* Improve mobile readability */
  p, li {
    font-size: 0.9375rem;
  }
  
  /* Better touch targets */
  .btn {
    min-height: 44px;
  }
  
  /* Optimize images for mobile */
  img {
    height: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 1.75rem;
    --space-xxl: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section,
  .cta-buttons,
  .help-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-large,
  .btn-xlarge,
  .cta-section .btn,
  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Smaller font sizes for very small screens */
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .section-title {
    font-size: 1.375rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  /* Reduce padding on small screens */
  .stat-card,
  .feature-card,
  .sidebar-card,
  .review-card,
  .step-card {
    padding: var(--space-md);
  }
  
  /* Improve code readability on mobile */
  code,
  .hash-value {
    font-size: 0.625rem;
    word-break: break-all;
  }
  
  /* Better meta display */
  .meta-content {
    gap: var(--space-xs);
  }
  
  .meta-item {
    font-size: 0.75rem;
  }
  
  /* Optimize score circles */
  .score-circle {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .score-circle-large {
    width: 150px;
    height: 150px;
  }
  
  .score-number {
    font-size: 3rem;
  }
}

/* ============================================
   25. PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .article-meta-banner,
  .cta-section,
  .cta-final,
  .related-section,
  .site-footer,
  .mobile-menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .content-section {
    page-break-inside: avoid;
  }
}