﻿/* ============================================================================
   卡面 v8 · 用户 AI 边框贴图
     img/frame/card-frame-unit.webp   随从（数值框保留）
     img/frame/card-frame-spell.webp  法术（数值框区域也挖空，图铺到底）
   法力盘已下移 12px、右下角水印已抹
   区域坐标全部来自像素测量（卡面 1193×1675，比例 1 : 1.404）
   ========================================================================== */
body .card.card-clean.card-clean.card-clean{
  background: transparent url('img/frame/card-frame-unit.webp') center / 100% 100% no-repeat !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: 0 !important;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .92) !important;
  overflow: visible !important;
  container-type: inline-size !important;
  --f-num: "Georgia", "Times New Roman", serif;
  --f-title: "华文中宋", "STZhongsong", "SimSun", serif;
  --f-tag: "华文细黑", "STXihei", "Microsoft YaHei", sans-serif;
  --f-body: "华文仿宋", "STFangsong", "SimSun", serif;
  /* 基础样式给 .card 画的大字角标，新卡面不要 */
}
body .card.card-clean.card-clean.card-clean.spell{
  background-image: url('img/frame/card-frame-spell.webp') !important;
}
body .card.card-clean.card-clean.card-clean::before,
body .card.card-clean.card-clean.card-clean::after{
  content: none !important;
  display: none !important;
}

/* ---------- 顶栏：不设定位，名字/法力各自相对卡面 ---------- */
body .card.card-clean.card-clean.card-clean > .c-top{
  position: static !important;
  margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  height: 0 !important; overflow: visible !important;
}
/* 名字：玉条里居中 */
body .card.card-clean.card-clean.card-clean > .c-top > .name{
  position: absolute !important;
  left: 15.26% !important; width: 55.99% !important;
  top: 2.03% !important; height: 8.96% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  margin: 0 !important;
  background: none !important; border: 0 !important;
  font-family: var(--f-title) !important;
  font-size: clamp(9px, 6.0cqw, 46px) !important;
  line-height: 1 !important;
  color: #f6f2e2 !important;
  -webkit-text-stroke: .35px #f6f2e2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .45) !important;
  letter-spacing: .10em !important;
  white-space: nowrap !important;
  z-index: 3 !important;
}
/* 法力数字：金盘内居中（盘已下移 12px → 中心 6.78%）*/
body .card.card-clean.card-clean.card-clean > .c-top > .cost{
  position: absolute !important;
  left: 3.0% !important; top: 2.4% !important;
  width: 10.4% !important; height: 8.7% !important;
  min-width: 0 !important; max-width: none !important; flex: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  border-radius: 50% !important; clip-path: none !important;
  font-family: var(--f-num) !important;
  font-size: clamp(13px, 8.2cqw, 64px) !important;
  line-height: 1 !important;
  color: #3a2808 !important;
  text-shadow: 0 1px 0 rgba(255, 244, 205, .55) !important;
  z-index: 4 !important;
}
body .card.card-clean.card-clean.card-clean > .c-top > .cost.cost-cut{
  color: #7dff8a !important;
  text-shadow:
    0 0 2px rgba(110, 255, 130, .95),
    0 0 6px rgba(40, 210, 80, .8),
    0 1px 2px rgba(6, 40, 10, .9) !important;
  font-weight: 700 !important;
}
body .card.card-clean.card-clean.card-clean > .c-top > .cost.cost-up{ color: #8f1b12 !important; }

/* ---------- 图区 ---------- */
body .card.card-clean.card-clean.card-clean > .c-art{
  position: absolute !important;
  left: 6.62% !important; right: 7.29% !important;
  top: 11.22% !important; height: 61.26% !important;
  margin: 0 !important; border: 0 !important; border-radius: 1px !important;
  background: #1b1d17 !important;
  overflow: hidden !important;
  box-shadow: none !important;
  z-index: 2 !important;
}
body .card.card-clean.card-clean.card-clean.spell > .c-art{ height: 61.5% !important; }
body .card.card-clean.card-clean.card-clean > .c-art > .kindtag{ display: none !important; }

/* ---------- 攻 / 防 ---------- */
body .card.card-clean.card-clean.card-clean > .c-stats.stats{
  position: static !important;
  margin: 0 !important; padding: 0 !important;
  height: 0 !important; border: 0 !important; background: none !important;
  box-shadow: none !important;
}
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .atk,
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .hp2{
  position: absolute !important;
  width: 13.20% !important; height: 8.40% !important;
  min-width: 0 !important; max-width: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 6px !important;
  border: 1.5px solid rgba(214, 176, 96, .9) !important;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .5) !important;
  padding: 0 !important;
  font-family: var(--f-num) !important;
  font-size: clamp(13px, 9.6cqw, 76px) !important;
  line-height: 1 !important;
  z-index: 4 !important;
}
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .atk{
  left: 7.4% !important; top: 64.8% !important;
  background: linear-gradient(180deg, #d6b060 0%, #b48c3c 55%, #8a6726 100%) !important;
  color: #fffaf0 !important;
  text-shadow: 0 1px 1px rgba(64, 42, 8, .8), 0 0 2px rgba(40, 24, 4, .45) !important;
}
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .hp2{
  left: 79.4% !important; top: 64.9% !important;
  background: linear-gradient(180deg, #b23e2e 0%, #8f2c1f 55%, #681a10 100%) !important;
  color: #fff6ee !important;
  text-shadow: 0 1px 1px rgba(60, 10, 4, .7) !important;
}
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .atk > em,
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .hp2 > em{ display: none !important; }

/* ---------- 描述 ---------- */
body .card.card-clean.card-clean.card-clean > .c-desc{
  position: absolute !important;
  left: 6.37% !important; right: 7.29% !important;
  top: 78.87% !important; height: 17.61% !important;
  margin: 0 !important; padding: .8% 2.4% !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  z-index: 3 !important;
}
body .card.card-clean.card-clean.card-clean > .c-desc,
body .card.card-clean.card-clean.card-clean > .c-desc *{
  font-family: var(--f-body) !important;
  color: #382a16 !important;
  -webkit-text-stroke: .2px #382a16;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35) !important;
  line-height: 1.35 !important;
}
body .card.card-clean.card-clean.card-clean > .c-desc{ font-size: clamp(7px, 4.2cqw, 26px) !important; }

/* ---------- 类型（右上）---------- */
body .card.card-clean.card-clean.card-clean > .ctype{
  position: absolute !important;
  left: 71.67% !important; width: 18.69% !important;
  top: 2.03% !important; height: 8.96% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: none !important; border: 0 !important;
  font-family: var(--f-tag) !important;
  font-size: clamp(7px, 3.7cqw, 27px) !important;
  color: #2e2614 !important;                       /* 浅玉底上改用深字，对比更强 */
  -webkit-text-stroke: .3px #2e2614;
  text-shadow: 0 1px 0 rgba(255, 248, 220, .55) !important;
  letter-spacing: .06em !important;
  z-index: 4 !important; pointer-events: none !important;
}

/* ---------- 类别（图下方玉条）---------- */
body .card.card-clean.card-clean.card-clean > .ktag{
  position: absolute !important;
  left: 6.62% !important; width: 86.09% !important;
  top: 73.43% !important; height: 4.30% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: none !important; border: 0 !important;
  font-family: var(--f-title) !important;
  font-size: clamp(7px, 3.5cqw, 27px) !important; font-weight: 700 !important;
  color: #ff8a72 !important;
  -webkit-text-stroke: .4px #ff8a72;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6) !important;
  letter-spacing: .12em !important;
  z-index: 3 !important; pointer-events: none !important;

  line-height: 1 !important;}
body .card.card-clean.card-clean.card-clean > .ktag:empty{ display: none !important; }
body .card.card-clean.card-clean.card-clean[data-kind="科技"] > .ktag{
  color: #86c8ff !important; -webkit-text-stroke: .4px #86c8ff;
}

/* ---------- 关键词徽章（密/嘲/突/冲）→ 图区右上角 ---------- */
body .card.card-clean.card-clean.card-clean > .kw{
  position: absolute !important;
  top: 13.0% !important; right: 8.5% !important; left: auto !important;
  width: auto !important; height: auto !important;
  min-width: 4.4cqw !important;
  padding: 1px 4px !important;
  font-size: clamp(7px, 3.0cqw, 24px) !important; line-height: 1.15 !important;
  border-radius: 3px !important;
  z-index: 5 !important;

  display: none !important;   /* 机密已并进类型区，不再压图 */
}











/* 类型里带「· 密」时：往左借位置 + 略小字号，保证不压到名字 */
body .card.card-clean.card-clean.card-clean > .ctype.has-kw{ /* 已不用：机密改回横条 */ }

/* 类别条里的关键词块（机密 / 嘲讽 / 突袭 / 冲锋）*/
body .card.card-clean.card-clean.card-clean .kwchip{
  display: inline-block !important;
  margin-left: .45em !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffe2c8 !important;
  font-style: normal !important;
  font-size: 1.02em !important;   /* 和「科技」同号，不再显小 */
  line-height: 1 !important;
  letter-spacing: .04em !important;
  -webkit-text-stroke: .3px #ffd9c0;
  /* 红色光晕：三层叠加，近处亮、远处散 */
  text-shadow:
    0 0 2px rgba(255, 70, 50, .95),
    0 0 5px rgba(214, 38, 26, .85),
    0 0 10px rgba(180, 20, 12, .6),
    0 1px 1px rgba(50, 6, 2, .55) !important;
}
body .card.card-clean.card-clean.card-clean > .ktag{ gap: 0 !important; }

/* 其他关键词：同样的光晕做法，换色系 */
body .card.card-clean.card-clean.card-clean .kwchip-taunt{
  color: #ffe9b8 !important;
  -webkit-text-stroke: .3px #ffe0a2;
  text-shadow:
    0 0 2px rgba(255, 208, 90, .95),
    0 0 5px rgba(214, 160, 30, .85),
    0 0 10px rgba(170, 118, 12, .6),
    0 1px 1px rgba(50, 34, 4, .55) !important;
}
body .card.card-clean.card-clean.card-clean .kwchip-rush{
  color: #ffdcc0 !important;
  -webkit-text-stroke: .3px #ffcfae;
  text-shadow:
    0 0 2px rgba(255, 130, 60, .95),
    0 0 5px rgba(214, 80, 26, .85),
    0 0 10px rgba(170, 50, 12, .6),
    0 1px 1px rgba(50, 14, 2, .55) !important;
}

/* 类型区里的「机密」：红字 + 红色光晕 */
body .card.card-clean.card-clean.card-clean > .ctype .tkw{
  font-style: normal !important;
  font-size: .92em !important;
  color: #ffe2c8 !important;
  -webkit-text-stroke: .3px #ffd9c0;
  text-shadow:
    0 0 2px rgba(255, 70, 50, .95),
    0 0 5px rgba(214, 38, 26, .85),
    0 0 10px rgba(180, 20, 12, .55),
    0 1px 1px rgba(50, 6, 2, .6) !important;
  margin-left: .12em !important;
}
/* 描述区上方的一行关键词 */
body .card.card-clean.card-clean.card-clean > .c-desc > .kline{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5em !important;
  width: 100% !important;
  margin: 0 0 .18em !important;
  line-height: 1 !important;
  flex: none !important;
}
body .card.card-clean.card-clean.card-clean > .c-desc > .kline .kwchip{
  font-family: var(--f-title) !important;
  font-weight: 700 !important;
  font-size: .95em !important;
  line-height: 1 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  letter-spacing: .05em !important;
}
/* 有 kline 时描述改成竖向排列 */
body .card.card-clean.card-clean.card-clean > .c-desc:has(> .kline){
  flex-direction: column !important;
  padding-top: .2% !important;
}

/* 横条里的「机密」：红色光晕，和类别同号 */
body .card.card-clean.card-clean.card-clean > .ktag .kwchip{
  font-size: 1em !important;
  margin-left: .5em !important;
  vertical-align: 0 !important;
}

/* 两位数：自动缩小字号，保证塞进色块 */
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .atk.dd,
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .hp2.dd{
  font-size: clamp(11px, 7.3cqw, 58px) !important;
  letter-spacing: -.02em !important;
}

/* 科技：和机密同款光晕，蓝色 */
body .card.card-clean.card-clean.card-clean[data-kind="科技"] > .ktag{
  color: #a8d8ff !important;
  -webkit-text-stroke: .3px #cfe8ff;
  text-shadow:
    0 0 2px rgba(140, 200, 255, .95),
    0 0 5px rgba(70, 150, 235, .85),
    0 0 10px rgba(30, 96, 180, .6),
    0 1px 1px rgba(4, 18, 40, .6) !important;
}

/* 中央/宣传/长征：同款光晕，珊瑚红（科技见上一条蓝色规则）*/
body .card.card-clean.card-clean.card-clean > .ktag{
  color: #ff8a72 !important;
  -webkit-text-stroke: .3px #ffb3a1;
  text-shadow:
    0 0 2px rgba(255, 138, 114, .95),
    0 0 5px rgba(226, 84, 56, .85),
    0 0 10px rgba(170, 44, 22, .55),
    0 1px 1px rgba(40, 6, 2, .6) !important;
}

/* 加成数值：绿色（+攻 / +血都算） */
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .atk.stat-up,
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .hp2.stat-up,
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .atk.stat-up,
body .card.card-clean.card-clean.card-clean > .c-stats.stats > .hp2.stat-up{
  color: #7dff8a !important;
  text-shadow:
    0 0 2px rgba(90, 255, 120, .95),
    0 0 6px rgba(30, 200, 70, .8),
    0 1px 2px rgba(6, 40, 10, .9) !important;
  font-weight: 700 !important;
}
