/* 等线风格字体系列 - SCCL 2025 婚礼网站 */

/* 从Google Fonts引入Inter字体 (等线风格英文字体) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 从Google Fonts引入Noto Sans SC (等线风格中文字体) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* 从Google Fonts引入手写体字体 */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* 备用字体定义 - 如果网络不可用，使用本地字体 */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Inter'), local('Segoe UI'), local('System UI');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans SC Fallback';
  src: local('Noto Sans SC'), local('PingFang SC'), local('Microsoft YaHei'), local('微软雅黑');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 字体备用方案定义 */
:root {
  /* 主要字体 - 标题使用 (等线风格) */
  --font-primary: 
    'Inter', 'Noto Sans SC',
    'Inter Fallback', 'Noto Sans SC Fallback',
    'Dengxian', '等线',
    'PingFang SC', '苹方-简',
    'Microsoft YaHei UI', 'Microsoft YaHei', '微软雅黑',
    'Segoe UI', 'Helvetica Neue',
    -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  
  /* 次要字体 - 正文使用 (等线风格) */
  --font-secondary: 
    'Inter', 'Noto Sans SC',
    'Inter Fallback', 'Noto Sans SC Fallback',
    'Dengxian', '等线',
    'PingFang SC', '苹方-简', 
    'Microsoft YaHei UI', 'Microsoft YaHei', '微软雅黑',
    'Segoe UI', 'Helvetica Neue',
    -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  
  /* 等宽字体 - 代码使用 */
  --font-mono: 
    'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono',
    'Consolas', 'Liberation Mono', 'Menlo',
    'Courier New', monospace;
    
  /* 手写体字体 - 标题装饰使用 */
  --font-script: 
    'Great Vibes', 'Dancing Script',
    'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', 
    cursive;
}

/* 字体优化设置 */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 中文字符优化 */
body {
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* 不同元素的字体权重设置 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
}

body, p, span, div, a {
  font-family: var(--font-secondary);
  font-weight: 400;
}

strong, b {
  font-weight: 600;
}

.font-light {
  font-weight: 300;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}
