/* YouthRewind - Language-Specific Font Size Optimization
 * 极简版 - 从第一性原理重新设计
 * 
 * 设计理念:
 * 1. 品牌名"YouthRewind"在所有语言保持一致（不做任何调整）
 * 2. 让浏览器和字体本身处理渲染差异
 * 3. 只保留绝对必要的调整
 * 4. 简单 > 完美
 */

/* ========================================
   RTL (Right-to-Left) 语言支持
   这是必须的，不可删除
   ======================================== */

html[lang="ar-SA"] {
  direction: rtl;
}

[dir="rtl"] .search-bar {
  text-align: right;
  padding-right: 16px;
  padding-left: 45px;
}

[dir="rtl"] .search-icon {
  left: 16px;
  right: auto;
}

[dir="rtl"] .section-header::before {
  left: auto;
  right: 0;
}

/* ========================================
   全局使用统一的字体基数
   不针对特定语言做特殊调整
   ======================================== */

/* 所有语言使用默认的字体大小 */
/* body: 18px (在index.html中定义) */
/* .hero-title: 48px (在index.html中定义) */
/* .category-name: 19px (在index.html中定义) */
/* .category-desc: 14px (在index.html中定义) */

/* ========================================
   响应式设计
   所有语言使用相同的响应式规则
   ======================================== */

@media (max-width: 768px) {
  /* 平板设备统一调整 */
  body {
    font-size: 16px; /* 18px → 16px */
  }
  
  .hero-title {
    font-size: 36px; /* 48px → 36px */
  }
  
  .section-header {
    font-size: 26px; /* 32px → 26px */
  }
  
  .category-name {
    font-size: 17px; /* 19px → 17px */
  }
}

@media (max-width: 480px) {
  /* 手机设备统一调整 */
  body {
    font-size: 15px; /* 16px → 15px */
  }
  
  .hero-title {
    font-size: 30px; /* 36px → 30px */
  }
  
  .section-header {
    font-size: 22px; /* 26px → 22px */
  }
  
  .category-name {
    font-size: 15px; /* 17px → 15px */
  }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
  body {
    font-size: 12pt !important;
  }
  
  .hero-title {
    font-size: 24pt !important;
  }
}

/* ========================================
   备注
   ======================================== */

/* 
 * 已删除的复杂特调：
 * - CJK语言特殊字体大小（让浏览器处理）
 * - 阿拉伯语/印地语字体放大（让浏览器处理）
 * - 泰语字体调整（让浏览器处理）
 * - 各种细节元素的特殊处理（.hero-tagline, .hero-stats等）
 * 
 * 如果实际测试发现某些语言确实有问题，再针对性添加最小化调整。
 */
