/* =========================================
   base.css — reset、CSS 变量、全局排版
   ========================================= */

/* ---------- 字体 ---------- */
@font-face {
  font-family: 'ITCbook';
  src: url('../fonts/itcavantgarde/ITCAvantGardeStdBk.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'ITCmedium';
  src: url('../fonts/itcavantgarde/ITCAvantGardeStdMd.woff') format('woff');
  font-display: swap;
}

/* ---------- CSS 变量 ---------- */
:root {
  /* 品牌色 */
  --color-primary:   #449147;
  --color-text:      #1d1c1e;
  --color-text-muted: #777776;
  --color-bg:        #fff;

  /* 字体 */
  --font-base:    'ITCbook', 'itc-avant-garde-gothic-pro', sans-serif;
  --font-medium:  'ITCmedium', 'itc-avant-garde-gothic-pro', sans-serif;

  /* 间距（4 的倍数系统） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* 其他 */
  --radius: 0px;
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*:focus { outline: none; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.4em;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
body.show-menu { overflow: hidden; }

/* 流体字号（移动 → 桌面） */
@media (min-width: 320px) {
  body { font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1500 - 320))); }
}
@media (min-width: 1500px) {
  body { font-size: 16px; }
}

a { color: inherit; text-decoration: none; }

svg, img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol { list-style: none; }

/* ---------- 滚动条 ---------- */
body::-webkit-scrollbar { width: 6px; background: transparent; }
body::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 0; }
body::-webkit-scrollbar-track { background: transparent; }

/* ---------- 选区颜色 ---------- */
::selection      { color: #fff; background: var(--color-primary); }
::-moz-selection { color: #fff; background: var(--color-primary); }

/* ---------- 工具类 ---------- */
.uppercase { text-transform: uppercase; }

.flex         { display: flex; align-items: flex-start; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

.fc-green  { color: var(--color-primary) !important; }
.fc-white  { color: #fff; }
.fc-black  { color: var(--color-text) !important; }
.fc-muted  { color: var(--color-text-muted); }
.fc-grey   { color: #808080 !important; }
.fc-light-grey { color: #AAAAAA !important; }
.bg-green  { background-color: var(--color-primary); }
.bg-white  { background-color: #fff; }

/* ---------- 容器 ---------- */
.container_small {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* ---------- h1 / h2 默认间距 ---------- */
h1 { margin-bottom: 35px; }
h2 { margin-bottom: 25px; }

/* ---------- 流体字号工具类 ---------- */
.font-45 { font-size: 25px;  line-height: 1.2em; }
.font-40 { font-size: 22px;  line-height: 1.2em; }
.font-20 { font-size: 16px;  line-height: 1.4em; }
.font-16 { font-size: 13px;  line-height: 1.2em; }
.font-15 { font-size: 13px;  line-height: 1.2em; }
.font-14 { font-size: 12px;  line-height: 1.2em; }
.font-11 { font-size: 10px;  line-height: 1.2em; }

@media (min-width: 320px) {
  .font-45 { font-size: calc(25px + (45 - 25) * ((100vw - 320px) / (1500 - 320))); }
  .font-40 { font-size: calc(22px + (40 - 22) * ((100vw - 320px) / (1500 - 320))); }
  .font-20 { font-size: calc(16px + (20 - 16) * ((100vw - 320px) / (1500 - 320))); }
  .font-16 { font-size: calc(13px + (16 - 13) * ((100vw - 320px) / (1500 - 320))); }
  .font-15 { font-size: calc(13px + (15 - 13) * ((100vw - 320px) / (1500 - 320))); }
  .font-14 { font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (1500 - 320))); }
  .font-11 { font-size: calc(10px + (12 - 10) * ((100vw - 320px) / (1500 - 320))); }
}
@media (min-width: 1500px) {
  .font-45 { font-size: 45px; }
  .font-40 { font-size: 40px; }
  .font-20 { font-size: 20px; }
  .font-16 { font-size: 16px; }
  .font-15 { font-size: 15px; }
  .font-14 { font-size: 14px; }
  .font-11 { font-size: 11px; }
}

/* ---------- 字体族工具类 ---------- */
.font-georgia         { font-family: "Georgia", serif; font-weight: 200; color: var(--color-primary); }
.font-georgiaItalic   { font-family: "Georgia", serif; color: var(--color-primary); font-style: italic; }
.font-avantgarde      { font-family: var(--font-base);   font-weight: 300 !important; font-style: normal; }
.font-avantgardeBold  { font-family: var(--font-medium); font-weight: 500 !important; font-style: normal; }
.font-gray-super-light { color: #AAAAAA !important; }
.font-gray            { color: #808080 !important; }
.font-green           { color: #449147 !important; }

/* ---------- 主按钮 ---------- */
.btn_principal {
  padding: 20px 50px;
  border: 1px solid #1D1C1B;
  color: #1D1C1B;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 45px;
  display: inline-block;
  transition: .5s ease-in-out;
  font-family: var(--font-medium);
  font-weight: 500;
  letter-spacing: 0.1em;
  max-width: 100%;
}
.btn_principal:hover {
  color: #fff !important;
  background-color: #1D1C1B;
  cursor: pointer;
}
@media (max-width: 768px) {
  .btn_principal {
    padding: 15px 30px;
    font-size: 11px;
  }
}
