/* === HAI Title Controls — 正式版，可按变量快速调整 === */
:root{
  --hai-title-size: 30px;   /* 想更小/更大：28px / 32px / 34px ... */
  --hai-title-font: "Inter","PingFang SC","Helvetica Neue",Arial,sans-serif;
  --hai-title-weight: 700;   /* 400/500/600/700 */
  --hai-title-color: #0F2B5B;/* 珠宝深蓝（可改 #203A6B / #1C2A44 / #FFFFFF 等）*/
}

/* 覆盖“显示名称”标题 */
h1.page-title,
.title h1,
.profile .title h1,
.header .title h1,
h1#title,
h1[data-role="title"]{
  font-size: var(--hai-title-size) !important;
  font-family: var(--hai-title-font) !important;
  font-weight: var(--hai-title-weight) !important;
  color: var(--hai-title-color) !important;
  line-height: 1.15 !important;
  letter-spacing: .3px;
  outline: none !important;   /* 确保调试外框被移除 */
}

/* 让标题里的 emoji（💎✅等）更贴合基线 */
h1.page-title img,
h1.page-title svg,
h1.page-title .emoji,
.title h1 img,
.title h1 svg,
.title h1 .emoji{
  vertical-align: -2px;
}

/* ===== HAI OVERRIDE BLOCK (titles) ===== */
/* 尝试用极高权重覆盖显示名称（标题）的默认样式 */
h1.page-title,
.profile .title h1,
.profile h1,
.title h1,
.header .title h1,
h1#title,
h1[data-role="title"]{
  font-size: 26px !important;   /* 你想更小/更大可改 24/28/30 等 */
  font-family: "Playfair Display","Inter","PingFang SC","Helvetica Neue",Arial,sans-serif !important;
  font-weight: 600 !important;
  color: #0F2B5B !important;     /* 珠宝深蓝 */
  line-height: 1.2 !important;
  text-align: center !important;
}

/* 兜底：页面上所有 h1 都降到 26px（若上面未命中，这条也会生效）*/
h1 {
  font-size: 26px !important;
  color: #0F2B5B !important;
}
/* ===== END HAI OVERRIDE BLOCK ===== */
