/* ============================================================
   龚文道体 · 网页统一字体样式（自研字体，规避第三方字库侵权）
   由 gwd_deploy_web.py 自动注入，请勿手工删除本段。

   ★ 路径说明：全部使用【绝对路径 /static/fonts/web/...】
     因为页面路由形如 /poster、/dashboard（不在 /static 下），
     用相对路径 "fonts/gwd-fonts.css" 会被解析成 /fonts/... → 404。
   ============================================================ */

/* --- 独立家族名（三款字重，语义清晰） --- */
@font-face {
  font-family: "GongWenDao Title";
  src: url("/static/fonts/web/GongWenDaoTitle-Bold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GongWenDao Sub";
  src: url("/static/fonts/web/GongWenDaoSub-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GongWenDao Text";
  src: url("/static/fonts/web/GongWenDaoText-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --- 统一家族名：按 font-weight 自动选字重，调用最省事 --- */
@font-face {
  font-family: "龚文道体";
  src: url("/static/fonts/web/GongWenDaoTitle-Bold.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "龚文道体";
  src: url("/static/fonts/web/GongWenDaoSub-Medium.woff2") format("woff2");
  font-weight: 450 699; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "龚文道体";
  src: url("/static/fonts/web/GongWenDaoText-Regular.woff2") format("woff2");
  font-weight: 100 449; font-style: normal; font-display: swap;
}

/* --- 应用层 --- */
:root {
  --gwd-stack: "龚文道体", "GongWenDao Title", "GongWenDao Sub", "GongWenDao Text",
               -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.gwd-title { font-family: var(--gwd-stack); font-weight: 800; }
.gwd-sub   { font-family: var(--gwd-stack); font-weight: 500; }
.gwd-text  { font-family: var(--gwd-stack); font-weight: 400; }
