@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat/Montserrat-VariableFont_wght-Latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Comfortaa';
  src: url('../font/Comfortaa/Comfortaa-VariableFont_wght-Latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {  
    font-family: 'Poppins';  
    src: url('../font/Poppins/Poppins-Regular.woff2'), 
        url('../font/Poppins/Poppins-Regular.woff') format('woff'),
        url('../font/Poppins/Poppins-Regular.ttf') format('truetype');
    
    font-weight: normal;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Poppins';  
    src: url('../font/Poppins/Poppins-SemiBold.woff2'), 
        url('../font/Poppins/Poppins-SemiBold.woff') format('woff'),
        url('../font/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Poppins';  
    src: url('../font/Poppins/Poppins-Medium.woff2'), 
        url('../font/Poppins/Poppins-Medium.woff') format('woff'),
        url('../font/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Poppins';  
    src: url('../font/Poppins/Poppins-Bold.woff2'), 
        url('../font/Poppins/Poppins-Bold.woff') format('woff'),
        url('../font/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Poppins';  
    src: url('../font/Poppins/Poppins-Light.woff2'), 
        url('../font/Poppins/Poppins-Light.woff') format('woff'),
        url('../font/Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Oswald';  
    src: url('../font/Oswald/Oswald-Regular.woff2'), 
        url('../font/Oswald/Oswald-Regular.woff') format('woff'),
        url('../font/Oswald/Oswald-Regular.ttf') format('truetype');
    font-weight: normal;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Oswald';  
    src: url('../font/Oswald/Oswald-Bold.woff2'), 
        url('../font/Oswald/Oswald-Bold.woff') format('woff'),
        url('../font/Oswald/Oswald-Bold.ttf') format('truetype');
    font-weight: bold;  
    font-style: normal;
    font-display: swap;
}

@font-face {  
    font-family: 'Oswald';  
    src: url('../font/Oswald/Oswald-Light.woff2'), 
        url('../font/Oswald/Oswald-Light.woff') format('woff'),
        url('../font/Oswald/Oswald-Light.ttf') format('truetype');
    font-weight: 300;  
    font-style: normal;
    font-display: swap;
}

.iconfont {
  font-size: inherit;
  color: inherit;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 去掉列表样式 */
ul, ol {
    list-style: none;
}

/* 去掉链接下划线 */
a {
    text-decoration: none;
    color: inherit;
}

/* 按钮重置（去掉默认边框背景） */
button {
    background: none;
    border: none;
    cursor: pointer;
    min-width: 0;
}

/* 图片块级化（去掉底部空隙） */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 表格边框合并 */
table {
    border-collapse: collapse;
}

/* 输入框重置 */
input,
textarea,
select {
    font: inherit;
    min-width: 0;
}

a {
    text-decoration: none;
}

input {
    background: none;
    border: none;
    outline: none;
}

textarea {
    resize: none;
    outline: none;
    border: none;
}

/* ========================================
   语义化CSS + CSS变量
   基准：16px
   断点：1441px、1025px、769px、431px
======================================== */

:root {
  /* 1. 字体大小变量 - 基于16px基准 */
  --font-size-xs: 0.75rem;     /* 12px */
  --font-size-sm: 0.875rem;    /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-md: 1.125rem;    /* 18px */
  --font-size-lg: 1.25rem;     /* 20px */
  --font-size-xl: 1.5rem;      /* 24px */
  --font-size-2xl: 1.75rem;    /* 28px */
  --font-size-3xl: 2rem;       /* 32px */
  --font-size-4xl: 2.25rem;    /* 36px */
  --font-size-5xl: 2.625rem;   /* 42px */
  --font-size-6xl: 3rem;       /* 48px */
  --font-size-7xl: 3.5rem;     /* 56px */
  --font-size-8xl: 4rem;       /* 64px */
  --font-size-8xl: 4rem;        /* 64px */
  --font-size-9xl: 4.5rem;      /* 72px */
  --font-size-10xl: 5rem;       /* 80px */

  --font-size-4-5xl: 2.5rem;   /* 40px */
  --font-size-2-5xl: 1.875rem;  /* 30px */
  
  /* 2. 字重变量 */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 900;
  
  /* 3. 行高变量 */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* 4. 颜色变量 */
  --text-primary: #000;
  --text-secondary: #666;
  --text-third: #333;
  --text-muted: #999;


  --primary-color: #DB5321;
  --secondary-color:#6c7380;
  --third-color: #E7651A;
  --back-color-one: #EBEFF7;
  --back-color-two: #DFE1E6;
  --back-color-three: #f7f7f7;
  --back-color-four: #f5f5f5;
  --back-color-five: #e5e5e5;
  --back-color-six: #c7c7c7;
  --back-color-seven: #f3f3f3;
  --back-color-eight: #ccc;


  --padding-base: calc(2.4vw + 14px);
  --padding-md: calc(2.4vw + 14px + 0.52vw);
  --padding-lg: calc(2.4vw + 14px + 1.04vw);
  --padding-xl: calc(2.4vw + 14px + 5.2vw);
}

*::-webkit-scrollbar {
    width: 3px;
    border-radius: 1.5px;
}
*::-webkit-scrollbar-button {
    display: none;
}
*::-webkit-scrollbar-track {
    background-color: transparent;
}
*::-webkit-scrollbar-thumb{
    background-color: var(--primary-color);
}


/* 设置全局基准 */
html {
  font-size: 16px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* ========== 语义化标签 ========== */
h1 { 
  font-size: var(--font-size-5xl);   /* 42px */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  /* margin-bottom: 0.5em; */
}

h2 { 
  font-size: var(--font-size-4xl);   /* 36px */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  /* margin-bottom: 0.5em; */
}

h3 { 
  font-size: var(--font-size-3xl);   /* 32px */
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  /* margin-bottom: 0.5em; */
}

h4 { 
  font-size: var(--font-size-xl);    /* 24px */
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  /* margin-bottom: 0.5em; */
}

h5 { 
  font-size: var(--font-size-lg);    /* 20px */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  /* margin-bottom: 0.5em; */
}

h6 { 
  font-size: var(--font-size-base);  /* 16px */
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  /* margin-bottom: 0.5em; */
}



.content {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);

    /* 防止溢出 - 核心 */
    overflow-wrap: break-word;
    word-wrap: break-word;
    
    /* 可选：处理长英文单词，适合移动端 */
    /* word-break: break-word; */
    
    /* 确保正常换行 */
    white-space: normal;
}

.content p {
    font-size: 1em;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    margin-bottom: 1em;
}

.content ul,
.content ol {
    font-size: 1em;
    line-height: var(--line-height-relaxed);
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.content li {
    margin-bottom: 0.25em;
}

.content li p {
    margin-bottom: 0.5em;
}

.content h1 {
    font-size: 2.5em;         /* 40px */
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.content h2 {
    font-size: 2em;           /* 32px */
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.content h3 {
    font-size: 1.5em;         /* 24px */
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.content h4 {
    font-size: 1.25em;        /* 20px */
    margin-top: 0.75em;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: 0.5em;
}

.content h5 {
    font-size: 1.125em;       /* 18px */
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.content h6 {
    font-size: 1em;           /* 16px */
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}


/* ========== 辅助类 ========== */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-md { font-size: var(--font-size-md); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.leading-tight { line-height: var(--line-height-tight); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* 保留原有的数字工具类（可选） */
.f12 { font-size: var(--font-size-xs); }
.f14 { font-size: var(--font-size-sm); }
.f16 { font-size: var(--font-size-base); }
.f18 { font-size: var(--font-size-md); }
.f20 { font-size: var(--font-size-lg); }
.f24 { font-size: var(--font-size-xl); }
.f28 { font-size: var(--font-size-2xl); }
.f32 { font-size: var(--font-size-3xl); }
.f36 { font-size: var(--font-size-4xl); }
.f42 { font-size: var(--font-size-5xl); }
.f48 { font-size: var(--font-size-6xl); }
.f56 { font-size: var(--font-size-7xl); }



/* ========== 响应式设计（按你的断点） ========== */

/* 断点1：小于等于1441px（笔记本/小桌面） */
@media (max-width: 1441px) {
  :root {
    /* 大字号缩小 */
    --font-size-10xl: 3.5rem;    /* 80px → 56px */
    --font-size-9xl: 3rem;       /* 72px → 48px */
    --font-size-8xl: 2.75rem;    /* 64px → 44px */
    --font-size-7xl: 2.5rem;     /* 56px → 40px */
    --font-size-6xl: 2.25rem;    /* 48px → 36px */
    --font-size-5xl: 2.25rem;    /* 42px → 36px */
    --font-size-4-5xl: 2.125rem; /* 40px → 34px */
    --font-size-4xl: 2rem;       /* 36px → 32px */
    --font-size-3xl: 1.75rem;    /* 32px → 28px */
    --font-size-2-5xl: 1.625rem; /* 30px → 26px ⭐ 新增 */
    --font-size-2xl: 1.5rem;     /* 28px → 24px */
    --font-size-xl: 1.375rem;    /* 24px → 22px */
    --font-size-lg: 1.125rem;    /* 20px → 18px */
    
    /* 小字号缩小 */
    --font-size-md: 1rem;        /* 18px → 16px */
    --font-size-base: 0.875rem;  /* 16px → 14px */
    --font-size-sm: 0.8125rem;   /* 14px → 13px */
    --font-size-xs: 0.6875rem;   /* 12px → 11px */
  }
}

/* 断点2：小于等于1025px（平板横屏/小笔记本） */
@media (max-width: 1025px) {
  :root {
    /* 大字号缩小 */
    --font-size-10xl: 2.75rem;   /* 80px → 44px */
    --font-size-9xl: 2.5rem;     /* 72px → 40px */
    --font-size-8xl: 2.25rem;    /* 64px → 36px */
    --font-size-7xl: 2rem;       /* 56px → 32px */
    --font-size-6xl: 1.75rem;    /* 48px → 28px */
    --font-size-5xl: 2rem;       /* 42px → 32px */
    --font-size-4-5xl: 1.875rem; /* 40px → 30px */
    --font-size-4xl: 1.75rem;    /* 36px → 28px */
    --font-size-3xl: 1.5rem;     /* 32px → 24px */
    --font-size-2-5xl: 1.375rem; /* 30px → 22px ⭐ 新增 */
    --font-size-2xl: 1.375rem;   /* 28px → 22px */
    --font-size-xl: 1.25rem;     /* 24px → 20px */
    --font-size-lg: 1rem;        /* 20px → 16px */
    
    /* 小字号缩小 */
    --font-size-md: 0.875rem;    /* 18px → 14px */
    --font-size-base: 0.75rem;   /* 16px → 12px */
    --font-size-sm: 0.6875rem;   /* 14px → 11px */
    --font-size-xs: 0.625rem;    /* 12px → 10px */
  }
}

/* 断点3：小于等于769px（平板竖屏） */
@media (max-width: 769px) {
  :root {
    /* 大字号缩小 */
    --font-size-10xl: 2.25rem;   /* 80px → 36px */
    --font-size-9xl: 2rem;       /* 72px → 32px */
    --font-size-8xl: 1.75rem;    /* 64px → 28px */
    --font-size-7xl: 1.5rem;     /* 56px → 24px */
    --font-size-6xl: 1.375rem;   /* 48px → 22px */
    --font-size-5xl: 1.75rem;    /* 42px → 28px */
    --font-size-4-5xl: 1.625rem; /* 40px → 26px */
    --font-size-4xl: 1.5rem;     /* 36px → 24px */
    --font-size-3xl: 1.375rem;   /* 32px → 22px */
    --font-size-2-5xl: 1.25rem;  /* 30px → 20px ⭐ 新增 */
    --font-size-2xl: 1.25rem;    /* 28px → 20px */
    --font-size-xl: 1.125rem;    /* 24px → 18px */
    --font-size-lg: 0.875rem;    /* 20px → 14px */
    
    /* 小字号缩小 */

    --padding-md: var(--padding-base);
    --padding-lg: var(--padding-base);
    --padding-xl: var(--padding-base);
  }
}

/* 断点4：小于等于431px（手机） */
@media (max-width: 431px) {
  :root {
    /* 大字号缩小 */
    --font-size-10xl: 1.75rem;   /* 80px → 28px */
    --font-size-9xl: 1.5rem;     /* 72px → 24px */
    --font-size-8xl: 1.375rem;   /* 64px → 22px */
    --font-size-7xl: 1.25rem;    /* 56px → 20px */
    --font-size-6xl: 1.125rem;   /* 48px → 18px */
    --font-size-5xl: 1.5rem;     /* 42px → 24px */
    --font-size-4-5xl: 1.375rem; /* 40px → 22px */
    --font-size-4xl: 1.375rem;   /* 36px → 22px */
    --font-size-3xl: 1.25rem;    /* 32px → 20px */
    --font-size-2-5xl: 1.125rem; /* 30px → 18px ⭐ 新增 */
    --font-size-2xl: 1.125rem;   /* 28px → 18px */
    --font-size-xl: 1rem;        /* 24px → 16px */
    --font-size-lg: 0.875rem;    /* 20px → 14px */
    
  }
}
@media (max-width: 1441px) {
  html {
    font-size: 14px;
  }
}

/* 断点2：小于等于1025px */
@media (max-width: 1025px) {
  html {
    font-size: 12px;
  }
}

/* 断点3：小于等于769px */
@media (max-width: 769px) {
  html {
    font-size: 12px;
  }
}

/* 断点4：小于等于431px */
@media (max-width: 431px) {
  html {
    font-size: 13px;  /* 手机端保证最小可读性 */
  }
}


.word-item {
    display: inline-block;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}


/* 动画激活状态 */
.word-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}
