/* ============================================================================
 * detail-base.css · 明细页画布与角色信息
 *
 * miao 移植：.pd-frame/.pd-canvas 画布、.basic 立绘与角色信息、天赋、.char-attr 属性表、属性图标、命座、.cont 通用卡片底。
 *
 * 来源：miao.css:1-386（由原 style.css / miao.css 按行区间拆出，规则内容未改写）
 * 加载顺序：第 14 / 17 个。index.html 里的 <link> 顺序就是层叠顺序，
 * 后面的文件覆盖前面同特异性的规则；调整顺序前请先看 docs 里的顺序契约。
 * ============================================================================ */
/* ============================================================================
 * 角色评分卡 —— miao-plugin 的 profile-detail 移植版
 *
 * 来源（照抄，不是凭印象）：
 *   resources/character/profile-detail.css
 *   resources/common/common.css   （.container/.cont/.elem-bg）
 *   resources/common/layout/elem.html （元素背景的挂法）
 *
 * 内部尺寸全部维持 miao 原版的 600px 基准（面板行 300、三列 90/85/70、评分卡 185+390）——
 * 那些数是照 600 画布量出来的，改一个就得连带重算一串。只有两处改成自适应：
 *   ① 缩放交给 detail.js 的 transform：.pd-canvas 固定 600px 设计稿，.pd-frame 用
 *      width:100% + overflow:hidden 兜住，任何宽度/截图都不溢出；
 *   ② .arti-info 用 flex:1 吃掉评分卡右侧剩余宽度
 *
 * 立绘是「左溢出、信息浮右侧」：.main-pic 宽 1400px、margin-left -545px，
 * 所以角色图占左三分之二，数值列绝对定位在右上角，不会挡脸。
 *
 * ⚠️ 评分卡的所有底色（三行分档）都集中在文末「评分区底色」一节 —— 上面的布局规则
 *    一律不写 background。改深浅只去那一节，别在别处另加。
 * ========================================================================== */

/* 缩放外壳：width:100% 收成内容区宽，overflow:hidden 把里面那张 600px 设计稿裁住，
   这样无论怎么缩，整页横向都不溢出（zoom 做不到这点——它常被截图/长截图引擎忽略，
   手机上就会只截到左侧一半）。高度由 detail.js 按缩放后的实际高度写内联。 */
.pd-frame {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

/* 画布本体：固定 600px 设计稿基准（内部全是照 600 量的绝对/固定 px），缩放交给
   detail.js 的 transform:scale，别写 100%——那样会先收一次、transform 再收一次，双缩。
   元素背景图由 JS 内联上去（对应 miao 的 <div class="container elem-bg">）。 */
.pd-canvas {
  position: relative;
  width: 600px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #233;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  font-family: Number, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.profile-cont { padding: 0 10px; margin-right: 5px; }

/* ───────────────────────── .basic：立绘 + 角色信息 ───────────────────────── */

.basic { position: relative; margin: 0 -15px 15px -10px; }
/*
 * 面板 9 行时的底部补偿（detail.js 给 .char-attr 加 `attr-tall` 时生效）。
 *
 * 面板的 7 个固定项之外，dmg/phy/heal 是**按需出行**的（见 shape.js 的 DMG_ATTRS），
 * 所以行数在 8~9 之间浮动。`.main-pic`（立绘）固定 500px，而右侧信息列
 * （`.detail`，绝对定位）是内容撑高的 → 9 行时会顶进下方评分卡（实测压 1px）。
 *
 * ⚠️ 别改回 min-height / 无条件 padding：那会给只有 8 行的角色凭空多留 30~96px 空白
 * （8 行内容只到 546px，而 basic 被撑到 596）。按需补偿，8 行的角色一点空白都不多。
 */
.basic:has(.char-attr.attr-tall) { padding-bottom: 34px; }
/* 立绘下方那圈白色描边圆角框（miao 用它把上下两块视觉断开） */
.basic::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px; top: 115px; bottom: 0; right: 8px;
  box-shadow: 0 0 2px 0 #fff;
  border-radius: 5px;
  z-index: 1;
}

/* 立绘：1400×500 居中放，靠负 margin 把角色挪到画布左侧。
   负 margin 是照 600px 画布算的，别改 —— 各角色 splash 比例 0.95~1.58 差一大截，算不出通用值。 */
.main-pic {
  width: 1400px;
  height: 500px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: -545px;
  position: relative;
  z-index: 2;
}

/* 信息列：绝对定位在右上角 —— 这就是「不挡脸」的关键 */
.detail {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #fff;
  z-index: 3;
}
.char-name {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  text-align: right;
  text-shadow: 0 0 3px #000, 2px 2px 4px rgba(0, 0, 0, .7);
}
.char-lv {
  margin-bottom: 20px;
  font-size: 16px;
  text-align: right;
  text-shadow: 0 0 3px #000, 2px 2px 4px rgba(0, 0, 0, .7);
}
.char-lv .cons { margin-left: 5px; vertical-align: bottom; }

/* 命座小徽章（miao 的 cons-N 用背景图，这里退化成文字胶囊） */
.cons-badge {
  display: inline-block;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  border-radius: 11px;
  font-size: 13px;
  background: rgba(0, 0, 0, .55);
  color: #ffd479;
  box-shadow: 0 0 1px 0 rgba(255, 255, 255, .5) inset;
}

/* ── 天赋 a/e/q ── */
.char-talents { display: flex; width: 300px; margin: 0 0 10px 0; }
.char-talents .talent-item { flex: 1; }
.talent-icon {
  width: 100px; height: 100px;
  padding: 5px;
  position: relative;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 90;
}
/*
 * 天赋图标的底座是一张按元素分的 100px 圆环图（miao common.css: `.elem-x .talent-icon`）。
 * 少了它，图标就是几个悬空的小图 —— 看着「简易」。
 */
.elem-pyro .talent-icon { background-image: url("../assets/common/bg/talent-pyro.webp"); }
.elem-hydro .talent-icon { background-image: url("../assets/common/bg/talent-hydro.webp"); }
.elem-anemo .talent-icon { background-image: url("../assets/common/bg/talent-anemo.webp"); }
.elem-electro .talent-icon { background-image: url("../assets/common/bg/talent-electro.webp"); }
.elem-dendro .talent-icon { background-image: url("../assets/common/bg/talent-dendro.webp"); }
.elem-cryo .talent-icon { background-image: url("../assets/common/bg/talent-cryo.webp"); }
.elem-geo .talent-icon { background-image: url("../assets/common/bg/talent-geo.webp"); }
.talent-icon img,
.talent-icon .talent-icon-img {
  width: 46%; height: 46%;
  position: absolute;
  top: 50%; left: 50%;
  margin: -22% 0 0 -23%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.talent-icon img { object-fit: contain; margin: 0; top: 27%; left: 27%; }
.talent-icon strong {
  position: absolute;
  bottom: 2px; left: 50%;
  margin-left: -15px;
  width: 34px; height: 26px;
  line-height: 26px;
  font-size: 17px;
  text-align: center;
  border-radius: 5px;
  background: #fff;
  color: #000;
  box-shadow: 0 0 5px 0 #000;
}
/* 天赋超过固有等级（吃了命座/皇冠加成）→ 深底金字 */
.talent-icon.talent-plus strong {
  background: #2e353e;
  color: #ffdfa0;
  font-weight: bold;
  box-shadow: 0 0 1px 0 #d3bc8e, 1px 1px 2px 0 rgba(0, 0, 0, .5);
}
/* 满级（固有 10 级）→ 右上角皇冠。
   用真实元素而不是 ::before：截图库不内联伪元素的背景图，导出图片里皇冠会消失。 */
.talent-icon .talent-crown-mark {
  position: absolute;
  left: 50%; top: 0;
  width: 28px; height: 28px;
  margin-left: -14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 2;
  pointer-events: none;
}

/* ── 面板属性表（8 行，斑马纹 + 权重胶囊 + 基础值/绿字） ── */
.char-attr {
  list-style: none;
  margin: 0; padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .2);
  backdrop-filter: blur(2px);
}
.char-attr li {
  width: 300px;
  height: 32px;
  line-height: 32px;
  font-size: 17px;
  display: flex;
  padding-left: 3px;
  text-shadow: 0 0 1px rgba(0, 0, 0, .5);
}
.char-attr li:nth-child(even) { background: rgba(0, 0, 0, .4); }
.char-attr li:nth-child(odd) { background: rgba(50, 50, 50, .4); }

/* 属性图标：每个属性一张独立 SVG（assets/character/svgs/），用 **mask** 上色，不是 background-image。
   ⚠️ 为什么必须是 mask：这批 SVG 全部走 `fill="currentColor"`，另有几层半透明叠色
     （hp 的第二层 fill-opacity .497、暴击伤害的 opacity .5、充能的 fill-opacity .5）。
     当 SVG 被当作**外部图片**（background-image / <img>）加载时，它是独立文档、
     拿不到页面的 CSS 继承上下文 —— `currentColor` 会解析成初始值黑，深色面板上等于隐形。
     mask 只取 alpha 通道：形状来自 SVG，颜色来自下面的 background-color，
     半透明层次也照样保留（fill-opacity / opacity 就是 alpha）。
   ⚠️ 旧方案是一张横图 icon-new.png（680×40，17 格 × 40px）靠 background-position 切 ——
     已于 2026-10-07 换成独立 SVG，那两张 png（icon.png / icon-new.png）与生成脚本一并删掉。
   ⚠️ 十六张图**一律白色**（2026-10-07）。原先七张元素图标带自己的彩色 fill，
     在 CSS 里另配了一组 .i-pyro{background-color:#f95} 之类 —— 一行属性换一种颜色，
     和其余九个（跟文字同色）不是一套语言，看着像「这几个是另一类数据」。删掉更一致。 */
.char-attr li .icon {
  width: 26px; padding: 2px 5px;
  /* 图标在 32px 高的行里**居中**，不用 vertical-align 去凑基线。
     原来那条 vertical-align:-3px 是按「16px 图标 + 17px 文字」估的，
     实测图标中线在行内 +20px、文字 +16px —— 整整低 4px，一眼能看出图标坠着。
     改成 flex 居中后与行高解耦：以后改字号或行高都不会再飘。 */
  display: flex; align-items: center; justify-content: center;
}
.char-attr li .icon i {
  display: block;
  width: 16px; height: 16px;
  /* 十六张全部跟文字同色（.pd-canvas 是 color:#fff） */
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}

.char-attr li .title {
  /* 90px 是按「中文最长 5 字（元素伤加成，85px）不折行」定的；数值列因此从 100 收到 85，总宽 300 不变。
     但属性名各语言长短差很多（English «Elemental Mastery» ≈ 170px、日本語「元素ダメージ加成」≈ 104px），
     90px 一行装不下；而行高是写死的 32px，长名字直接折行会溢到下一行变成叠字。

     所以这里默认仍是「一行 + 省略号」，真正要不要折行由前端量出来再决定：
     detail.js 的 fitAttrTitles() 比一次 scrollWidth / clientWidth，装不下就给这个 .title 加 .two-line,
     换成小一号字排两行（两行共 30px，仍在 32px 行内，**行高不变**）。
     ⚠️ 别再靠「把文案改短」来避让：改短一种语言，另一种语言又对不上（2026-10-31 反复踩过）。 */
  width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 1px rgba(0, 0, 0, .8), 1px 1px 3px rgba(0, 0, 0, .5);
}
/* 属性名太长：小一号字 + 两行。字号 13px / 行高 15px × 2 = 30px，塞进 32px 的行里还余 2px。
   用 grid 而不是 flex：grid 的匿名 item 默认撑满列宽，文字才会在 90px 处折行；
   flex 的 item 是 max-content 宽度，可能先撑出去再被裁掉。 */
/* 整块统一降档：组里只要有一行装不下，九行的字号一起降（detail.js 打 .compact）。
   只降装不下的那几行会出现「两行小字 + 一行大字」混排，看着像排版出错。 */
.char-attr.compact li .title {
  font-size: 13px;
}
.char-attr li .title.two-line {
  display: grid;
  align-content: center;
  white-space: normal;
  text-overflow: clip;
  font-size: 13px;
  line-height: 15px;
  /* 单个超长单词也允许断行，不撑破 90px；超过两行会被上面的 overflow:hidden 裁掉（当前九种语言都不会到三行） */
  overflow-wrap: anywhere;
}
/* 权重：黑底小胶囊，≥80 金色 */
.char-attr li .weight { width: 36px; }
.char-attr li .weight span {
  display: block;
  width: 30px; height: 18px;
  line-height: 18px;
  margin: 7px auto 0;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
  background: rgba(0, 0, 0, .5);
  color: #fff;
}
.char-attr li .weight span.gold { color: #ffe699; }
.char-attr li .value {
  width: 85px;   /* 100 → 85：让 15px 给 .title 放五个字的属性名，总宽不变 */
  padding-right: 10px;
  text-align: right;
  font-weight: normal;
  text-shadow: 0 0 1px rgba(0, 0, 0, .8), 1px 1px 3px rgba(0, 0, 0, .5);
}
/* 基础值 / 绿字：上下两行小字 */
.char-attr li .value2 {
  width: 70px;
  padding: 4px 10px 0 0;
  font-size: 12px;
  font-weight: normal;
  text-align: right;
  background: rgba(0, 0, 0, .2);
}
.char-attr li .value2 span {
  display: block;
  height: 13px;
  line-height: 13px;
}
.char-attr li .value2 .base { color: #eee; }
.char-attr li .value2 .base.zero { color: #aaa; }
.char-attr li .value2 .plus { color: #90e800; }

/* 格位表：类名 = 后端给的 iconKey（多数与属性 key 同名），值 = 对应那张 SVG。
   九个 currentColor 图标走 background-color: currentColor（继承 .pd-canvas 的白）；
   七个元素图标另给元素色 —— mask 只取 alpha，SVG 自带的 fill 在这里看不到，
   颜色得由 CSS 声明（这些值与 SVG 里的 fill 一致，火 #f95 / 雷 #b380ff / 冰 #5df …）。
   ⚠️ **没有「通用元素伤害」这张图**：所以元素伤害那行由后端按角色元素换 iconKey
     （shape.js 的 ELEM_DMG_ZH），这里只有七个 `.i-<元素>`，没有 `.i-dmg` 的图。
   ⚠️ `.i-dmg` 是「拿不到元素」时的兜底（旅行者 elem=multi）：**故意不画图**，
     不指向任何一张 —— 随便指一张等于替玩家编了一个元素。
   ⚠️ 面板固定七项 + 按权重出的三种加成里没有 res，所以不画 `.i-res`。 */
.i-hp { --icon: url("../assets/character/svgs/icon_hp.svg"); }
.i-atk { --icon: url("../assets/character/svgs/icon_attack.svg"); }
.i-def { --icon: url("../assets/character/svgs/icon_defence.svg"); }
.i-mastery { --icon: url("../assets/character/svgs/icon_element_mastery.svg"); }
.i-cpct { --icon: url("../assets/character/svgs/icon_critical.svg"); }
.i-cdmg { --icon: url("../assets/character/svgs/icon_critical_hurt.svg"); }
.i-recharge { --icon: url("../assets/character/svgs/icon_charge_efficiency.svg"); }
.i-phy { --icon: url("../assets/character/svgs/icon_physical_add_hurt.svg"); }
.i-heal { --icon: url("../assets/character/svgs/icon_heal_add.svg"); }

/* 元素图标：只给 --icon（mask 图），不给颜色 —— 十六张一律跟文字同色。
   曾经这里还有一组 .char-attr li .icon .i-pyro { background-color:#f95 } 之类，
   已删（2026-10-07）：一行属性一种颜色，和其余九个不是一套语言。 */
.i-pyro { --icon: url("../assets/character/svgs/icon_fire_add_hurt.svg"); }
.i-electro { --icon: url("../assets/character/svgs/icon_elec_add_hurt.svg"); }
.i-cryo { --icon: url("../assets/character/svgs/icon_ice_add_hurt.svg"); }
.i-hydro { --icon: url("../assets/character/svgs/icon_water_add_hurt.svg"); }
.i-anemo { --icon: url("../assets/character/svgs/icon_wind_add_hurt.svg"); }
.i-geo { --icon: url("../assets/character/svgs/icon_rock_add_hurt.svg"); }
.i-dendro { --icon: url("../assets/character/svgs/icon_grass_add_hurt.svg"); }

/* 兜底：拿不到元素（旅行者）时 --icon 没被定义，上面那条 mask 声明整条失效，
   mask 回到初始值 none → 不画图。这里显式写一遍，把「故意留空」这件事钉在样式里。 */
.i-dmg { -webkit-mask: none; mask: none; }

/* ── 命座 6 格（左下角一排） ── */
.char-cons {
  display: flex;
  width: 250px;
  position: absolute;
  bottom: 5px; left: 20px;
  z-index: 3;
}
.char-cons .cons-item { flex: 1; }
/*
 * 命座图标本身是**透明的浅色线条图**（cons-N.webp），必须压在元素圆盘上才看得清 ——
 * 所以这里不能清掉背景，底图由上面的 .elem-x .talent-icon 规则给。
 * 尺寸也照 miao：50px 圆盘 + 居中 46% 的图标。
 */
.char-cons .talent-icon {
  width: 50px; height: 50px;
  margin: 0 -5px;
}
.char-cons .talent-icon.off { filter: grayscale(100%); opacity: .4; }

/* 免责句已挪到评分板块内容末尾的 .block-notice（见下面那一节）。 */

/* ───────────────────────── 通用卡片底 (.cont) ───────────────────────── */

.cont {
  position: relative;
  margin: 5px 0;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  overflow: hidden;
  background: url("../assets/common/cont/card-bg.png") top left repeat-x;
  background-size: auto 100%;
  box-shadow: 0 0 1px 0 #ccc, 2px 2px 4px 0 rgba(50, 50, 50, .8);
}

/* ───────────────────── 评分板块（喵喵 / YSIN 共用）─────────────────────
 *
 * 两段式：一条深标题栏（板块名 + 规则/流派控件）→ 一整片全透内容；免责句是内容末尾的一行小字。
 * 深标题栏是唯一的重色，内容透出元素背景。
 *
 * 内容区的小格之间只留 1px 缝、全部方角、不描亮边，靠「窄」贴成一片。
 * ⚠️ 别给 .ysin-body / .ysin-right / .artis 铺深色底填缝：格子是半透明 rgba，叠上去会被压死。
 * ⚠️ 底色只写单层半透明：`rgba(...), url(...)` 多背景里纯色只能放最后一层，写前面整条声明会被丢掉。
 * ⚠️ 不写 overflow:hidden：装备卡的角标会越出自己的盒子。
 */
.score-block {
  /* 两块共用全页暖金（评级、伤害计算标题同源）：区分靠板块名和控制器，不靠字色。 */
  --block-accent: #d3bc8e;
  position: relative;
  margin: 10px 0;
  /* 大板块是「容器」，留 10px 圆角让它一眼是个面板；里面的圣遗物/武器卡是贴成
     一片的方角小格。容器圆 + 内部方，边界语言只在容器这一处出现，不会两套打架。 */
  border-radius: 10px;
  background: rgba(6, 16, 28, .3);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .32);
  color: #fff;
  font-size: 14px;
}

/* ── 标题栏：板块名 + 控制器 + 可选右侧说明 ── */
.score-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  /* 顶边圆角和容器对齐（容器 10px），这样深标题栏是「面板顶上那一条」，不是浮块 */
  border-radius: 10px 10px 0 0;
  /* 唯一的重色带：内容全透，靠这一条把「两个板块」分出来 */
  background: rgba(0, 0, 0, .52);
}
/* 竖条比小圆点更像章节标记，两块共用全页暖金 */
.score-block-head .dot {
  width: 3px; height: 16px;
  flex: none;
  border-radius: 2px;
  background: var(--block-accent);
}
.score-block-head .name {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--block-accent);
  white-space: nowrap;
}
/* 控制器：规则 / 流派下拉就坐在这里，一眼看出它管着整块内容怎么算 */
.block-control {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
  background: rgba(0, 0, 0, .45);
  font-size: 12px;
  white-space: nowrap;
}
.block-control .ctl-label {
  flex: none;
  color: rgba(255, 255, 255, .62);
}
.block-control .ctl-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--block-accent);
  font-weight: 600;
}
.block-control select {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 200px;
  height: 22px;
  padding: 0 2px 1px;
  border: 0;
  background-color: transparent;
  color: var(--block-accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.block-control select option { background: #1a1f2b; color: #e7e0d0; }
/* 规则下拉统一用暖金的 V 形，两块控件才同类 */
.block-control .arti-rubric-select { background-image: none; }
.block-control.has-select::after {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin: -3px 0 0 2px;
  border-right: 1.5px solid var(--block-accent);
  border-bottom: 1.5px solid var(--block-accent);
  transform: rotate(45deg);
}
/* 右侧说明：YSIN 写评估对象；喵喵的规则名已在控制器里，留空不重复 */
.score-block-head .meta {
  margin-left: auto;
  min-width: 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, .74);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 标题栏下面直接接全透内容，中间不留会透出画布底色的亮缝 */
.score-block-body { position: relative; padding: 0; }

/* ── 六张装备卡：贴成一块面上的六格 ────────────────────
 * 卡间只留 1px、不铺底、不描黑边，靠「窄」聚合。宽度反算：内容区 575px，
 * 三列 + 两道 1px 缝 → (575 − 2) / 3 = 191px，末列右缘贴住板块右缘。
 * ⚠️ width / margin 的选择器要写 (0,4,0)：item-card.css 在本文件之后加载，
 *    它那条 .artis .item.arti 是 (0,3,0)，只写 .artis .item 会被盖回去。
 * ⚠️ 只在明细页板块内生效：模拟页 sim-cards.js 也建 .artis，那边仍是 185px 基准。 */
.score-block.miao .artis {
  width: 100%;
  margin: 0;
  gap: 1px;
  /* 卡片区与上方「有效词条」行之间那条 1px 亮缝用 border-top：
     ⚠️ inset box-shadow 画在背景之上、子元素之下，会被紧贴顶部的卡片盖掉。 */
  border-top: 1px solid rgba(255, 255, 255, .35);
}
.score-block.miao .artis .item {
  /* 卡片要保留（这是圣遗物/武器卡，不能删）；只把圆角抹平、去掉投影，
     让卡片是方的、贴成一片、不浮起。卡面底图留给 item-card.css 生效 */
  border-radius: 0;
  box-shadow: none;
}
/* 头部渐变条只抹圆角，底色保留 */
.score-block.miao .artis .head {
  border-radius: 0;
}
/* 武器卡底部描述框：抹圆角 + 去掉整块深色底。
   那块 rgba(0,0,0,.4) 铺满 190×100，看上去像卡片下半截压了一层阴影；圣遗物卡底部是
   逐行（26px）交替的半透明行，不会糊成一整块，所以这里也把整块底去掉，让卡面自身
   的底图透上来，和圣遗物那边的观感一致。 */
.score-block.miao .artis .weapon .weapon-desc-cont {
  border-radius: 0;
  background: transparent;
  /* 简介超长时在框内纵向滚动；短简介不会出滚动条 */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: flex-start;
}
/* 细滚动条：Windows 默认那条 15px 宽，会把 191px 的卡挤掉一大截。
   ⚠️ 标准属性 scrollbar-width / scrollbar-color 在 Chrome 121+ 会**盖掉** ::-webkit-scrollbar
      的自定义绘制（只留槽位、不画条），所以两者必须分开：Chromium 走 ::-webkit-*，
      Firefox（不支持 ::-webkit-scrollbar 选择器）才走标准属性。 */
.score-block.miao .artis .weapon .weapon-desc-cont::-webkit-scrollbar { width: 4px; }
.score-block.miao .artis .weapon .weapon-desc-cont::-webkit-scrollbar-track { background: transparent; }
.score-block.miao .artis .weapon .weapon-desc-cont::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .38);
  border-radius: 2px;
}
@supports not selector(::-webkit-scrollbar) {
  .score-block.miao .artis .weapon .weapon-desc-cont {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .38) transparent;
  }
}
/* 覆盖 item-card 的 table-cell + 写死 100px：高度交给内容。
   短简介靠上下 auto 外边距仍在框里垂直居中；超长时 auto 外边距自动归零、从顶部排，滚得动。
   ⚠️ 不能用 align-items:center 居中——内容超过容器时顶部会被切掉且滚不回来。 */
.score-block.miao .artis .weapon .weapon-desc {
  display: block;
  flex: 0 0 100%;
  box-sizing: border-box;
  height: auto;
  margin: auto 0;
  /* 去掉深色底后字直接压在卡面底图上（实测底色亮度 50→85，对比度 6.3:1→3.5:1），
     补一层极轻的暗描边兜住可读性 —— 是描边不是色块，不会再糊出「阴影」 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
/* 圣遗物卡底部的词条列表 ul.detail 也带圆角（武器卡没有这个元素，所以之前武器方了圣遗物还圆）；
   抹平，让圣遗物卡整体也是方角 */
.score-block.miao .artis .item.arti ul.detail {
  border-radius: 0;
}
/* 武器卡原本 overflow:visible 让立绘探出卡外；明细页里收成 hidden，立绘被卡边裁住、
   不再压到邻卡（卡面已恢复，探出反而像溢出） */
.score-block.miao .artis .item.weapon { overflow: hidden; }
/* 立绘原本 right:-10px 探出，收回卡内 */
.score-block.miao .artis .weapon .img { right: 0; }
.score-block.miao .artis .item.arti,
.score-block.miao .artis .item.weapon {
  width: calc((100% - 2px) / 3);
  margin: 0;
  flex: none;
}

/* ── 免责句：内容区最后一行小字 ─────────────────────────────────────────
 * 不做成独立尾行：没有背景、没有圆角、没有分隔线，和上面的格子一起透出元素背景。
 * 只靠小字号 + 右对齐 + 暖金强调词，读起来是内容的注脚，不是第三条带。 */
.block-notice {
  padding: 5px 10px 6px;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, .66);
  text-align: right;
}
.block-notice strong { color: var(--block-accent); font-weight: 600; }
