/* ============================================
   基础样式表 Base.css
   功能：样式重置 + 全局基础规范
   最后更新：2026-06-02
   ============================================ */

/* ---------- 1. CSS 自定义变量 ---------- */
:root {
  /* 颜色 */
  --color-primary:   #3b82f6;   /* 主色：蓝色 */
  --color-secondary: #64748b;   /* 辅色：灰蓝色 */
  --color-text:      #333;      /* 正文文字色：深灰 */
  --color-text-light :#777;      /* 浅色文字：中灰 */
  --white:           #fff;      /* 白色 */
  --black:           #000;      /* 黑色 */

  --color-red-1: #bb0000;
  --color-red-2: #990000;
  --color-blue-1: #0000CD;
  --color-blue-2: #0066cc;
  --color-yellow-1: #FFCC00;
  --footer-bg: #E7E7E7;


--rgba-005: rgba(0,0,0,0.05);
--word-color-2: #f3651b;
--word-color-3: #d21126;
  /* 间距 */
  --space-xs: 0.25rem;  /* 4px */
  --space-sm: 0.5rem;   /* 8px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */

  /* 字体 */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-size-base: 16px;    /* 基准 */
  --font-size-10:  calc(var(--font-size-base) * 0.625);  /* 10px */
  --font-size-12:  calc(var(--font-size-base) * 0.75);   /* 12px */
  --font-size-14:  calc(var(--font-size-base) * 0.875);  /* 14px */
  --font-size-18:  calc(var(--font-size-base) * 1.125);  /* 18px */
  --font-size-20:  calc(var(--font-size-base) * 1.25);   /* 20px */
  --line-height-base: 1.6;
  

/*加写部分*/

  /* 行高*/
  --footer-line-height: 2.5; 
  --line-height-1: 1;
  --line-height-2: 1.2;
  --line-height-3: 1.5;
  --line-height-4: 1.75;
  --line-height-5: 2;

  
}

/* ---------- 2. 现代 CSS 重置 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- 3. 媒体元素 ---------- */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border: 0;
}

/* ---------- 4. 表单元素 ---------- */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 0;
}

/* ---------- 5. 标题 & 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

/* ---------- 6. 列表 ---------- */
ul,
ol {
  list-style: none;
}

/* ---------- 7. 链接 ---------- */
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- 8. 表格 ---------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  text-align: left;
}

/* ---------- 9. 斜体/引用重置 ---------- */
em, i, cite, address {
  font-style: normal;
}

q::before,
q::after {
  content: '';
}

/* ---------- 10. 分割线 ---------- */
hr {
  border: none;
  height: 1px;
  background-color: #e5e7eb;
}

/* ---------- 11. 工具类 ---------- */
/* 清除浮动 */
.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* 屏幕阅读器专用 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 通用隐藏 */
.none {
  display: none;
}


/* ---------- 12. 其它  ---------- */
/*字加粗*/
.text-red-bold {
  color: var(--color-red-2);
  font-weight: 700;
}
.text-blue-bold {
  color: var(--color-blue-1);
  font-weight: 700;
}