/*
Theme Name:www.ah-chunwang.com
Theme URI:www.ah-chunwang.com
Description:Anhui Chunwang New Materials Co., Ltd
Author:Charlie
Author URI:www.ah-chunwang.com
Template:Divi
Version:1.0.0
*/

/* Custom English Font */
@font-face {
  font-family: 'JosefinSans';
  font-display: swap;
  font-weight: 300;
  src: url('/wp-content/themes/ahcw/fonts/JosefinSans-Light.eot') format('eot'),
       url('/wp-content/themes/ahcw/fonts/JosefinSans-Light.woff2') format('woff2'),
       url('/wp-content/themes/ahcw/fonts/JosefinSans-Light.woff') format('woff'),
       url('/wp-content/themes/ahcw/fonts/JosefinSans-Light.ttf') format('truetype');
}

/* Custom Chinese Font - Fallback Only */
@font-face {
  font-family: 'AlibabaSans';
  font-display: swap;
  font-weight: 300;
  src: url('/wp-content/themes/ahcw/fonts/AlibabaSans-Light.eot') format('eot'),
       url('/wp-content/themes/ahcw/fonts/AlibabaSans-Light.woff2') format('woff2'),
       url('/wp-content/themes/ahcw/fonts/AlibabaSans-Light.woff') format('woff'),
       url('/wp-content/themes/ahcw/fonts/AlibabaSans-Light.ttf') format('truetype');
}

/* Global Styles - Optimized Cross-Platform Font Solution */
body, header, nav, table, h1, h2, h3, h4, h5, h6, input, button, textarea, select {
  font-weight: 300 !important;
  font-family: 
    /* 1. Prioritize English font (only affects English text) */
    JosefinSans,
    
    /* 2. Default system Chinese fonts (ordered by platform priority) */
    /* Apple ecosystem */
    -apple-system,                /* iOS/macOS system font */
    BlinkMacSystemFont,           /* Rendering optimization for Chrome on macOS */
    "PingFang SC",                /* PingFang Simplified (iOS/macOS) */
    "Hiragino Sans GB",           /* Hiragino Sans GB (legacy macOS) */
    
    /* HarmonyOS */
    "HarmonyOS Sans SC",          /* HarmonyOS system font */
    
    /* Android system */
    "Noto Sans CJK SC",           /* Noto Sans (Android) */
    "Source Han Sans SC",         /* Source Han Sans alias */
    
    /* Windows system */
    "Microsoft YaHei",            /* Microsoft YaHei (Windows) */
    
    /* 3. Fallback custom Chinese font (used when system fonts are unavailable) */
    "AlibabaSans",
    
    /* 4. Generic fallback */
    "WenQuanYi Micro Hei",        /* WenQuanYi Micro Hei (Linux) */
    sans-serif;                   /* Final fallback */
}