/* ==========================================================================
   Phosphor Icons 字体 + 旧 ri-* 兼容映射（码点来自 Phosphor Regular 2.1.1 官方）
   --------------------------------------------------------------------------
   模板里所有 <i class="ri-xxx"></i> 直接复用，无需改模板即可换到 Phosphor。
   -fill/-bold 后缀自动切换到 Phosphor-Fill / bold。
   ========================================================================== */

/* ---- 字体声明 ---- */
@font-face {
  font-family: "Phosphor";
  src: url("../font/phosphor-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Phosphor-Fill";
  src: url("../font/phosphor-fill.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ---- 全局基类：所有 ri-* 都按 Phosphor 图标渲染 ---- */
[class^="ri-"], [class*=" ri-"] {
  font-family: "Phosphor" !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  display: inline-block;
  vertical-align: -0.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[class^="ri-"][class*="-fill"],
[class*=" ri-"][class*="-fill"] {
  font-family: "Phosphor-Fill" !important;
}

/* ============================================================================
   字形映射（基于 Phosphor 官方 regular CSS；码点已逐一验证存在）
   ============================================================================ */

/* ------ 通用 UI ------ */
.ri-home-5-line:before { content: "\e2c2"; }     /* house */
.ri-home-5-fill:before { content: "\e2c1"; }     /* house-fill */
.ri-magnifying-glass-line:before { content: "\e568"; }  /* magnifying-glass */
.ri-magnifying-glass-fill:before { content: "\e567"; }  /* magnifying-glass-fill */
.ri-grid-line:before { content: "\e268"; }       /* squares-four */
.ri-grid-fill:before { content: "\e267"; }       /* squares-four-fill */
.ri-apps-2-line:before { content: "\e464"; }     /* squares-four */
.ri-apps-2-fill:before { content: "\e463"; }
.ri-book-open-line:before { content: "\e0e6"; }
.ri-book-open-fill:before { content: "\e0e5"; }
.ri-book-2-line:before { content: "\e0e6"; }
.ri-tools-line:before { content: "\e5d4"; }      /* wrench */
.ri-wrench-line:before { content: "\e5d4"; }
.ri-gear-line:before { content: "\e272"; }       /* gear-six */
.ri-arrow-right-s-line:before { content: "\e06c"; }
.ri-arrow-down-s-line:before { content: "\e03e"; }
.ri-arrow-up-line:before { content: "\e08e"; }
.ri-arrow-go-back-line:before { content: "\e058"; }
.ri-arrow-u-left-up-line:before { content: "\e08a"; }
.ri-arrow-clockwise-line:before { content: "\e036"; }
.ri-check-line:before { content: "\e182"; }
.ri-close-line:before { content: "\e4f6"; }       /* x */
.ri-time-line:before { content: "\e19a"; }       /* clock */
.ri-search-eye-line:before { content: "\e220"; }  /* eye as fallback for "see search" */
.ri-user-add-line:before { content: "\e4d0"; }    /* user-plus */
.ri-user-line:before { content: "\e4c2"; }
.ri-heart-line:before { content: "\e2a8"; }
.ri-edit-line:before { content: "\e3b4"; }       /* pencil-simple */
.ri-edit-fill:before { content: "\e3b3"; }
.ri-pencil-line:before { content: "\e3ae"; }
.ri-lightbulb-line:before { content: "\e2dc"; }
.ri-error-warning-line:before { content: "\e4e0"; }
.ri-alarm-warning-line:before { content: "\e4e0"; }
.ri-thumb-up-line:before { content: "\e48e"; }
.ri-thumb-down-line:before { content: "\e48c"; }
.ri-info-line:before { content: "\e2ce"; }
.ri-question-line:before { content: "\e3e8"; }
.ri-star-line:before { content: "\e46a"; }

/* ------ AI 诊断相关 ------ */
.ri-camera-line:before { content: "\e10e"; }
.ri-camera-2-line:before { content: "\e10e"; }
.ri-camera-3-line:before { content: "\e10e"; }
.ri-image-add-line:before { content: "\e2cc"; }  /* image-square */
.ri-image-line:before { content: "\e2ca"; }
.ri-eye-line:before { content: "\e220"; }
.ri-magic-line:before { content: "\e6b6"; }      /* magic-wand */
.ri-sparkling-2-line:before { content: "\e6a2"; }
.ri-file-chart-line:before { content: "\e156"; } /* chart-line-up */
.ri-database-2-line:before { content: "\e1de"; }
.ri-database-line:before { content: "\e1de"; }
.ri-bike-line:before { content: "\e0d6"; }       /* bicycle */
.ri-battery-2-charge-line:before { content: "\e0ba"; }
.ri-sun-line:before { content: "\e472"; }
.ri-flashlight-line:before { content: "\e246"; }

/* ------ 发送 / 提交 / 操作 ------ */
.ri-send-plane-line:before { content: "\e396"; }  /* paper-plane-right */
.ri-send-plane-fill:before { content: "\e395"; }  /* paper-plane-right-fill */

/* ------ 其他可能复用 ------ */
.ri-leaf-line:before { content: "\e2da"; }
.ri-shield-check-line:before { content: "\e40c"; }
.ri-shield-star-line:before { content: "\ec34"; }
.ri-trophy-line:before { content: "\e67e"; }
.ri-headphone-line:before { content: "\e2a6"; }
.ri-notification-line:before { content: "\e0ce"; } /* bell */
.ri-settings-3-line:before { content: "\e272"; }
.ri-cloud-line:before { content: "\e1aa"; }
.ri-package-line:before { content: "\e390"; }
.ri-map-pin-line:before { content: "\e316"; }
.ri-chat-ai-line:before { content: "\e16e"; }
.ri-rocket-line:before { content: "\e424"; }
.ri-list-check-line:before { content: "\e2f2"; }  /* list-bullets */
.ri-question-mark:before { content: "\e3e8"; }
.ri-shopping-bag-line:before { content: "\e390"; }
.ri-store-line:before { content: "\e390"; }
.ri-tools-fill:before { content: "\e5d3"; }
.ri-medal-line:before { content: "\e67e"; }