/* css/base.css */
:root {
  --gold: #c5a47e;
  --space: 20px;
  /* 桌面优先断点 */
  --bp-mobile: 64em;   /* 1024px */
  --bp-tablet: 48em;   /* 768px */
  --bp-small: 30em;    /* 480px */
  /* 移动优先断点 (备用) */
  --bp-mf-medium: 40em; /* 640px */
  --bp-mf-large: 64em;  /* 1024px */

  --color-primary: #f8f9fa;      /* 主色 - 奢侈品级白色系 */
  --color-secondary: #c5a47e;    /* 辅色 (金) - 保持奢侈品金色 */
  --color-text: #2c2c2c;         /* 正文色 - 深灰，与白色主色形成对比 */
  --color-border: #ff0000;       /* 边框色 - 品牌红色 */

/* 颜色系统扩展 */
  --color-primary: #f8f9fa;      /* 主色 - 奢侈品级白色系 */
  --color-secondary: #c5a47e;    /* 辅色 (金) - 保持奢侈品金色 */
  --color-text: #2c2c2c;         /* 正文色 - 深灰，与白色主色形成对比 */
  --color-border: #ff0000;       /* 边框色 - 品牌红色 */

/* 动画曲线扩展 */
  --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1); /* 高级动画曲线 */
  --transition-base: 0.25s ease;

/* 全局盒阴影 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12); 

  --font-primary: 'Noto Sans SC', 'AlibabaPuHuiTi', 'Manrope', sans-serif; /* 默认字体栈：中文首选 Noto Sans SC，兜底普惠体，西文 Manrope */
  --font-secondary: 'SourceHanSerifCN', 'Manrope', serif; /* 特殊中文字体+英文备用 */
  --font-english: 'Manrope', sans-serif; /* 英文字体保持为 Manrope */
  
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  vertical-align: baseline;
}

/* 字体定义 - 阿里巴巴普惠体 Regular */
@font-face {
font-family: 'AlibabaPuHuiTi';
src: url('/fonts/AlibabaPuHuiTi-3-55-Regular.woff2') format('woff2'),
     url('/fonts/AlibabaPuHuiTi-3-55-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
unicode-range: U+4E00-9FFF, U+3000-303F; /* 中文+标点 */
}

/* 字体定义 - 阿里巴巴普惠体 Light */
@font-face {
font-family: 'AlibabaPuHuiTi';
src: url('/fonts/AlibabaPuHuiTi-3-45-Light.woff2') format('woff2'),
     url('/fonts/AlibabaPuHuiTi-3-45-Light.woff') format('woff');
font-weight: 300; /* Light 字重 */
font-style: normal;
font-display: swap;
unicode-range: U+4E00-9FFF, U+3000-303F; /* 中文+标点 */
}

/* 定义思源宋体 Regular */
@font-face {
font-family: 'SourceHanSerifCN';
src: url('/fonts/SourceHanSerifCN-Regular.otf') format('opentype');
font-weight: 400; /* Regular 字重 */
font-style: normal;
font-display: swap;
unicode-range: U+4E00-9FFF, U+3000-303F; /* 中文+标点 */
}

/* 定义思源宋体 Light */
@font-face {
font-family: 'SourceHanSerifCN';
src: url('/fonts/SourceHanSerifCN-Light.otf') format('opentype');
font-weight: 300; /* Light 字重 */
font-style: normal;
font-display: swap;
unicode-range: U+4E00-9FFF, U+3000-303F; /* 中文+标点 */
}

/* 定义思源宋体可变字体 */
@font-face {
font-family: 'SourceHanSerifCN';
src: url('/fonts/SourceHanSerifCN-VF.otf.woff2') format('woff2 supports variations'),
     url('/fonts/SourceHanSerifCN-VF.otf.woff2') format('woff2-variations');
font-weight: 100 900;
font-style: normal;
font-display: swap;
unicode-range: U+4E00-9FFF, U+3000-303F; /* 中文+标点 */
}

/* 定义 Manrope 字体 */
@font-face {
font-family: 'Manrope';
src: url('/fonts/Manrope-Variable.woff2') format('woff2 supports variations'),
     url('/fonts/Manrope-Variable.woff2') format('woff2-variations'),
     url('/fonts/Manrope-Variable.woff') format('woff'),
     url('/fonts/Manrope-Variable.ttf') format('truetype');
font-weight: 100 900;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* 拉丁字母+常用符号 */
}



/* 定义 Noto Sans SC 可变字体 */
@font-face {
  font-family: 'Noto Sans SC';
  src: url('/fonts/noto-sans-sc/NotoSansSC-VariableFont_wght.ttf') format('truetype supports variations');
  font-weight: 100 900; /* 支持100-900的连续字重 */
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3000-303F; /* CJK汉字 + 全角标点 */
}

/* 定义 Manrope Bold */
@font-face {
font-family: 'Manrope';
src: url('/fonts/Manrope-Bold.woff2') format('woff2'),
     url('/fonts/Manrope-Bold.woff') format('woff'),
     url('/fonts/Manrope-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* 拉丁字母+常用符号 */
}

/* 定义 Manrope Light */
@font-face {
font-family: 'Manrope';
src: url('/fonts/Manrope-Light.woff2') format('woff2'),
     url('/fonts/Manrope-Light.woff') format('woff'),
     url('/fonts/Manrope-Light.ttf') format('truetype');
font-weight: 300;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* 拉丁字母+常用符号 */
}

/* 定义 Manrope Regular */
@font-face {
font-family: 'Manrope';
src: url('/fonts/Manrope-Regular.woff2') format('woff2'),
     url('/fonts/Manrope-Regular.woff') format('woff'),
     url('/fonts/Manrope-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
font-display: swap;
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* 拉丁字母+常用符号 */
}

/* 全局字体设置 */
body {
  font-family: var(--font-primary), sans-serif; /* 全局默认字体 */
font-size: 14px;
line-height: 1.4;
-webkit-font-smoothing: antialiased;
}

/* 确保英文使用 Manrope 字体 */
:lang(en) {
  font-family: var(--font-english), sans-serif; /* 默认英文字体 */
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* 仅对 macOS 设备启用字体平滑 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
body {
  -webkit-font-smoothing: antialiased;
}
}
