﻿/* ============================================================
 *  角色详情 / Character Detail — 亮色元素主题
 *  参考《原神》角色详情：元素天空 + 白色文字 + 无边框信息列
 * ============================================================ */

/* ---------- tokens ---------- */
:root{
  --text:        #ffffff;
  --text-2:      rgba(255, 255, 255, .90);
  --text-dim:    rgba(255, 255, 255, .74);
  --text-mute:   rgba(255, 255, 255, .58);
  --line:        rgba(255, 255, 255, .20);
  --line-strong: rgba(255, 255, 255, .48);
  --gold:        #ffd98a;
  --gold-2:      #ffeec4;
  --glass:       rgba(255, 255, 255, .11);
  --glass-2:     rgba(255, 255, 255, .18);
  --glass-line:  rgba(255, 255, 255, .26);
  --ink:         #123a4c;
  --shadow:      0 1px 3px rgba(8, 40, 56, .38), 0 2px 14px rgba(8, 40, 56, .22);
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #2f7f9c;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ display: block; max-width: 100%; }
button{ font: inherit; color: inherit; }
a{ color: inherit; }

.ic{
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  display: block; flex: none;
}
.sprite{ position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============================================================
 *  背景：元素天空 + 光晕 + 地面
 * ============================================================ */
#motes{
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; opacity: .9;
}
.bg{ position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-sky{
  position: absolute; inset: 0;
  background:
    radial-gradient(64% 42% at 50% 74%, rgba(220, 248, 255, .30) 0%, rgba(200, 240, 250, .14) 44%, rgba(200, 240, 250, 0) 68%),
    radial-gradient(95% 62% at 50% 18%, rgba(80, 185, 220, .55) 0%, rgba(80, 185, 220, 0) 72%),
    linear-gradient(180deg,
      #17506f 0%, #1f6284 10%, #2a7899 22%, #3b8fae 34%,
      #58a6c0 47%, #74b9cf 60%, #8ecad9 71%, #a3d7e3 79%,
      #79b8ca 88%, #5495aa 95%, #3f7f95 100%);
}
.bg-glow{
  position: absolute; left: 50%; top: 52%;
  width: min(94vw, 1180px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .34) 0%, rgba(215, 246, 255, .16) 38%, rgba(215, 246, 255, 0) 62%),
    radial-gradient(circle at 50% 64%, rgba(206, 244, 255, .18) 0%, rgba(206, 244, 255, 0) 50%);
  pointer-events: none;
}
/* 右侧压暗：全屏径向，边缘无接缝 */
.bg::after{
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 88% at 100% 45%, rgba(6, 42, 60, .60) 0%, rgba(6, 42, 60, .34) 46%, rgba(6, 42, 60, 0) 80%),
    radial-gradient(46% 60% at 100% 96%, rgba(4, 38, 54, .46) 0%, rgba(4, 38, 54, .2) 52%, rgba(4, 38, 54, 0) 78%),
    radial-gradient(58% 46% at 100% 100%, rgba(4, 34, 50, .5) 0%, rgba(4, 34, 50, .24) 50%, rgba(4, 34, 50, 0) 82%),
    linear-gradient(180deg, rgba(6, 40, 58, .20) 0%, rgba(6, 40, 58, .04) 24%, rgba(6, 40, 58, 0) 42%);
  pointer-events: none;
}
/* 细微颗粒，压住渐变断层 */
.bg::before{
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.bg-rays{
  position: absolute; inset: -12% -6% 26%;
  background:
    linear-gradient(103deg, transparent 36%, rgba(255, 255, 255, .12) 40%, transparent 44%),
    linear-gradient(94deg,  transparent 56%, rgba(255, 255, 255, .08) 59%, transparent 62%),
    linear-gradient(113deg, transparent 26%, rgba(255, 255, 255, .06) 30%, transparent 34%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 82%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 82%);
  pointer-events: none;
}
.bg-floor{
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .24) 0%, rgba(190, 232, 245, .20) 16%,
    rgba(60, 130, 155, .26) 52%, rgba(20, 80, 105, .42) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
}
.bg-floor::before{
  content: '';
  position: absolute; left: 0; right: 0; top: 18%; height: 90px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* ============================================================
 *  骨架
 * ============================================================ */
.app{
  position: relative; z-index: 2;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ---------- 顶栏 ---------- */
.topbar{
  flex: none; height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 0 44px;
}
.tb-brand{ display: flex; align-items: center; gap: 13px; min-width: 0; }
.elem-emblem{
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 21px;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .55), rgba(190, 186, 255, .30) 58%, rgba(110, 104, 190, .35) 100%);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 0 22px rgba(214, 208, 255, .55), inset 0 0 14px rgba(255, 255, 255, .35);
  flex: none;
}
.elem-emblem .ic{ filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }
.elem-line{
  font-size: 18px; letter-spacing: .12em;
  color: #fff;
  text-shadow: var(--shadow);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.elem-line b{ font-weight: 500; }
.tb-right{ display: flex; align-items: center; gap: 10px; flex: none; }
.fps-chip{
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .34);
  color: rgba(255, 255, 255, .92);
  font-size: 11px; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fps-chip i{
  width: 5px; height: 5px; border-radius: 50%;
  background: #b7ffcf;
  box-shadow: 0 0 8px rgba(183, 255, 207, .9);
}
.fps-chip b{ font-weight: 500; }
.ghost-btn{
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .40);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 12px; letter-spacing: .08em;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: .2s var(--ease);
  white-space: nowrap;
  text-shadow: var(--shadow);
}
.ghost-btn .ic{ font-size: 14px; opacity: .95; }
.ghost-btn:hover{ background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .7); }
.ghost-btn:active{ transform: translateY(1px); }
.close-btn{
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: .22s var(--ease);
}
.close-btn:hover{ background: rgba(255, 255, 255, .26); transform: rotate(90deg); }

/* ---------- 舞台 ---------- */
.stage{
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr) clamp(400px, 27vw, 470px);
  grid-template-rows: minmax(0, 1fr);
  padding: 0 44px 0 0;
  position: relative;
}

/* ---------- 左侧页签 ---------- */
.rail{
  display: flex; flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 34px 0 26px 44px;
  min-height: 0;
}
.rail-item{
  position: relative;
  display: flex; align-items: center; gap: 15px;
  padding: 9px 0;
  background: none; border: 0;
  color: rgba(255, 255, 255, .70);
  font-size: clamp(20px, 1.5vw, 27px);
  letter-spacing: .14em;
  text-indent: .02em;
  text-align: left;
  cursor: pointer;
  text-shadow: var(--shadow);
  transition: color .22s var(--ease), font-size .22s var(--ease);
  font-weight: 400;
}
.ri-d{
  width: 9px; height: 9px; flex: none;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, .8);
  transition: .25s var(--ease);
}
.rail-item:hover{ color: #fff; }
.rail-item:hover .ri-d{ background: rgba(255, 255, 255, .7); }
.rail-item.is-active{
  color: #fff;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 500;
}
.rail-item.is-active .ri-d{
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .95);
}
.rail-item.is-active::before{
  content: '';
  position: absolute; z-index: -1;
  left: -18px; right: -6px; top: 50%;
  height: 2.1em; transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08) 62%, rgba(255, 255, 255, 0));
}
.rail-item:focus-visible{ outline: 1px solid rgba(255, 255, 255, .9); outline-offset: 4px; }

/* ---------- 立绘 ---------- */
.char{
  position: relative;
  min-width: 0; min-height: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 3%;
  animation: charIn 1s var(--ease) both;
}
.char-glow{
  position: absolute; left: 50%; top: 46%;
  width: min(58vw, 620px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, .34) 0%, rgba(200, 240, 250, .12) 42%, rgba(200, 240, 250, 0) 66%);
  pointer-events: none;
}
.char-rings{ position: absolute; inset: 0; pointer-events: none; }
.ring{
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
}
.r1{ width: min(34vw, 360px); aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 255, 255, .22); animation: spin 80s linear infinite; }
.r2{ width: min(48vw, 520px); aspect-ratio: 1; border-color: rgba(255, 255, 255, .12); }
.char-crest{
  position: absolute; left: 50%; top: 42%;
  width: min(34vw, 360px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: #fff;
  fill: currentColor; stroke: none;
  opacity: .06;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, .4));
  pointer-events: none;
}
.char-img{
  position: relative; z-index: 2;
  height: 84%;
  width: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 10px 18px rgba(10, 52, 70, .28)) drop-shadow(0 26px 46px rgba(10, 52, 70, .34));
  animation: bob 7s ease-in-out infinite;
  transform-origin: bottom center;
  user-select: none;
  -webkit-user-drag: none;
}
.char-ground{
  position: absolute; left: 50%; bottom: 2%;
  width: 58%; height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .5), rgba(170, 225, 240, .16) 45%, rgba(170, 225, 240, 0) 72%);
  z-index: 1;
  pointer-events: none;
}
/* ---------- 圣遗物环（围绕角色） ---------- */
.artifact-ring{
  position: absolute; inset: 0;
  z-index: 5;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
  user-select: none;
  -webkit-user-select: none;
}
.artifact-ring.is-on{ opacity: 1; pointer-events: auto; }
.art-node{
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 108px; height: 108px;
  padding: 9px 8px 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .26), rgba(10, 50, 68, .985) 62%);
  color: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(10, 52, 70, .28);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.art-node:hover{ border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16), 0 14px 30px rgba(10, 52, 70, .34); }
.art-node.is-active{
  border-color: var(--gold);
  background: radial-gradient(circle at 50% 30%, rgba(255, 236, 190, .5), rgba(18, 86, 110, .66) 80%);
  box-shadow: 0 0 0 2px rgba(255, 217, 138, .45), 0 0 32px rgba(255, 217, 138, .32);
}
.an-slot{ font-size: 7.5px; letter-spacing: .16em; color: rgba(255, 255, 255, .6); }
.an-icon{
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 0 10px;
  font-size: 38px;
  color: #fff6e2;
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 72%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, .08);
  filter: drop-shadow(0 0 6px rgba(255, 236, 190, .55));
}
.an-name{ font-size: 10.5px; line-height: 1.25; letter-spacing: .01em; }
.an-icon .ic, .ad-icon .ic, .art-ic .ic{ stroke-width: 1.8; }

/* 使用位图贴图时的图标框：去掉原有圆盘装饰，让贴图自己当主体 */
.art-img{ width: 100%; height: 100%; object-fit: contain; display: block; }
.art-node.has-img{
  padding: 8px 8px 9px;
  border-color: transparent;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 68%);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.art-node.has-img:hover{
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .14), 0 12px 26px rgba(10, 52, 70, .2);
}
.art-node.has-img.is-active{
  border-color: rgba(255, 217, 138, .85);
  background: radial-gradient(circle at 50% 38%, rgba(255, 240, 205, .34), rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 0 2px rgba(255, 217, 138, .4), 0 0 30px rgba(255, 217, 138, .26);
}
.art-node.has-img .an-name{
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(8, 40, 56, .52);
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  text-shadow: none;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.an-icon.has-img{
  width: 72px; height: 72px;
  margin: 0 0 1px;
  background: none; border-color: transparent; box-shadow: none;
  filter: drop-shadow(0 3px 10px rgba(0, 20, 30, .45));
}
.art-ic.has-img{
  width: 40px; height: 40px;
  background: none; border-color: transparent;
  filter: drop-shadow(0 1px 4px rgba(0, 20, 30, .4));
}
.ad-icon.has-img{
  width: 78px; height: 78px;
  background: none; border-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0, 20, 30, .5));
}
.art-node::after{
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 217, 138, .4);
  box-shadow: inset 0 0 22px rgba(255, 217, 138, .12);
  pointer-events: none;
}

/* ============================================================
 *  右侧信息列（无边框，靠光晕压暗保证可读）
 * ============================================================ */
.panel{
  position: relative;
  min-height: 0;
  display: flex; flex-direction: column;
  padding: 10px 0 0 24px;
}
.panel-head{ flex: none; padding: 4px 0 8px; }
.ph-name{
  margin: 0;
  font-size: clamp(28px, 2.3vw, 42px);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 16px rgba(8, 40, 56, .5);
}
.ph-stars{ display: flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--gold); }
.ph-stars .ic{ font-size: 16px; filter: drop-shadow(0 0 8px rgba(255, 205, 110, .7)); }
.ph-stars .ic:nth-child(2){ animation: twinkle 3.4s ease-in-out infinite; }
.ph-stars .ic:nth-child(4){ animation: twinkle 3.4s ease-in-out .8s infinite; }
.ph-level{
  display: flex; align-items: baseline; gap: 5px;
  margin-top: 10px;
  font-size: 15px; letter-spacing: .1em;
  color: #fff;
  text-shadow: var(--shadow);
}
.ph-level .lv-num{ font-size: 25px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ph-level .lv-sub{ font-size: 15px; opacity: .8; }
.ph-rule{
  margin-top: 10px; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .18) 64%, transparent);
}

.panel-body{
  flex: 1; min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 4px 16px 20px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .5) transparent;
  position: relative;
}
.panel-body::-webkit-scrollbar{ width: 4px; }
.panel-body::-webkit-scrollbar-track{ background: transparent; margin: 10px 0; }
.panel-body::-webkit-scrollbar-thumb{ background: rgba(255, 255, 255, .45); border-radius: 4px; }
.panel-body.is-enter{ animation: panelIn .5s var(--ease) both; }

/* ---------- 通用区块 ---------- */
.sec{ margin-top: 24px; }
.sec:first-child{ margin-top: 6px; }
.sec-title{
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 10px;
  font-size: clamp(18px, 1.15vw, 21px); font-weight: 500;
  letter-spacing: .14em;
  color: #fff;
  text-shadow: var(--shadow);
  white-space: nowrap;
}
.sec-title .st-txt{ min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sec-title em{ flex: none; }
.sec-title .se-d{
  width: 7px; height: 7px; flex: none;
  transform: rotate(45deg) translateY(-1px);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 217, 138, .7);
}
.sec-title em{
  font-style: normal;
  font-size: 9.5px; letter-spacing: .28em;
  color: rgba(255, 255, 255, .48);
  font-weight: 400;
}
.sec-title::after{
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .3), transparent);
}
.sec-note{
  margin: 8px 0 2px;
  font-size: 11px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
  text-shadow: 0 1px 2px rgba(8, 40, 56, .3);
}

/* ---------- 属性 ---------- */
.stat-list{ list-style: none; margin: 0; padding: 0; }
.stat-row{
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8.5px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  font-size: clamp(15px, .95vw, 17px);
  outline: none;
  transition: background .2s;
}
.stat-row:hover, .stat-row:focus-visible{
  background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 78%);
}
.st-ic{ color: rgba(255, 255, 255, .9); font-size: 16px; display: grid; place-items: center; }
.st-label{
  color: rgba(255, 255, 255, .93);
  letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: var(--shadow);
}
.st-val{
  color: #fff;
  font-size: clamp(17px, 1.08vw, 19.5px);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  text-shadow: var(--shadow);
}
.st-val .suf{ font-size: 12px; margin-left: 1px; opacity: .9; }

/* 基础信息行（属性页） */
.stat-row.is-profile{ cursor: default; grid-template-columns: 22px auto minmax(0, 1fr); }
.stat-row.is-profile:hover{ background: none; }
.stat-row.is-profile .st-label{ font-size: 15px; color: rgba(255, 255, 255, .76); }
.stat-row.is-profile .st-val{
  font-size: 15px;
  font-weight: 500;
  white-space: normal;
  text-align: right;
  line-height: 1.5;
}
.stat-list.is-profile .stat-row{ padding: 10px 2px; }
.sec.edu-sec{ margin-top: 14px; }
.edu-sec .course{ font-size: 9.5px; padding: 2px 6px; }
.edu-sec .courses{ gap: 4px; margin-top: 8px; }

/* 圣遗物详情弹层 */
.modal{
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease);
}
.modal.is-on{ opacity: 1; pointer-events: auto; }
.modal-mask{
  position: absolute; inset: 0;
  background: rgba(4, 34, 48, .42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.modal-card{
  position: relative;
  width: min(430px, 88vw);
  max-height: 78vh;
  overflow-y: auto;
  padding: 22px 24px 20px;
  border-radius: 8px;
  background: rgba(10, 48, 66, .93);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 30px 70px rgba(6, 36, 50, .5);
  transform: translateY(14px) scale(.985);
  transition: transform .3s var(--ease);
}
.modal.is-on .modal-card{ transform: none; }
.modal-card h3{
  margin: 0 0 14px;
  font-size: 16px; font-weight: 500; letter-spacing: .2em;
  color: #fff;
}
.modal-card h3::after{
  content: '';
  display: block;
  margin-top: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06));
}
.modal-close{
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: .2s var(--ease);
}
.modal-close:hover{ background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

/* 好感 */
.friend{ margin-top: 10px; }
.friend-top{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; letter-spacing: .08em; color: #fff;
  text-shadow: var(--shadow);
}
.friend-top .lbl{ display: flex; align-items: center; gap: 7px; }
.friend-top .lbl .ic{ font-size: 15px; color: var(--gold); }
.friend-top b{ font-weight: 500; font-variant-numeric: tabular-nums; }
.friend-bar{
  position: relative;
  height: 4px; margin-top: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .28);
  overflow: hidden;
}
.friend-bar i{
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #ffe4a6, #fffdf4);
  box-shadow: 0 0 12px rgba(255, 233, 176, .9);
  transition: width 1.2s var(--ease);
}
.ph-desc{
  margin: 10px 0 0;
  font-size: clamp(12.5px, .84vw, 14px); line-height: 1.82;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 3px rgba(4, 30, 44, .6), 0 0 14px rgba(4, 30, 44, .45);
}
.ph-desc .quote{ color: var(--gold-2); }

/* ---------- 技能条 ---------- */
.skill{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 30px;
  align-items: center; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.skill:last-child{ border-bottom: 0; }
.sk-name{
  font-size: 13.5px; letter-spacing: .03em;
  color: rgba(255, 255, 255, .9);
  text-shadow: var(--shadow);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-num{
  font-size: 14px; font-weight: 500;
  color: #fff; font-variant-numeric: tabular-nums;
  text-align: right; text-shadow: var(--shadow);
}
.sk-bar{
  height: 5px; border-radius: 3px;
  background: rgba(8, 42, 58, .26);
  position: relative; overflow: hidden;
}
.sk-bar i{
  position: absolute; inset: 0 auto 0 0;
  width: 0; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .7), #fff);
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
  transition: width 1.1s var(--ease);
}

/* ---------- 基础信息 ---------- */
.info-grid{ display: grid; gap: 0; }
.info-row{
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.info-row:last-child{ border-bottom: 0; }
.info-row dt{
  flex: none; width: 78px; margin: 0;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .06em;
}
.info-row dd{ margin: 0; color: #fff; letter-spacing: .02em; text-shadow: var(--shadow); }

/* ---------- 天赋 ---------- */
.talent{
  display: grid; grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 13px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.tl-ic{
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 21px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .12) 72%);
  box-shadow: 0 0 18px rgba(255, 255, 255, .2);
}
.tl-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-head h4{
  margin: 0;
  font-size: 15.5px; font-weight: 500; letter-spacing: .04em;
  color: #fff;
  text-shadow: var(--shadow);
}
.tl-lv{
  flex: none;
  font-size: 11px; letter-spacing: .08em;
  color: #fff;
  padding: 1px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .16);
  font-variant-numeric: tabular-nums;
}
.talent p{
  margin: 6px 0 0;
  font-size: 12.5px; line-height: 1.85;
  color: rgba(255, 255, 255, .8);
  text-shadow: 0 1px 3px rgba(8, 40, 56, .28);
}

.passives{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.passive{
  padding: 12px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: .22s var(--ease);
}
.passive:hover{ background: rgba(255, 255, 255, .18); }
.passive .p-head{ display: flex; align-items: center; gap: 7px; }
.passive .p-head .ic{ font-size: 14px; color: var(--gold); }
.passive h5{
  margin: 0;
  font-size: 13px; font-weight: 500; letter-spacing: .03em;
  color: #fff; text-shadow: var(--shadow);
}
.passive p{
  margin: 6px 0 0;
  font-size: 11.5px; line-height: 1.75;
  color: rgba(255, 255, 255, .72);
}

/* ---------- 命之座 ---------- */
.consts{ list-style: none; margin: 0; padding: 0; position: relative; }
.consts::before{
  content: '';
  position: absolute; left: 18px; top: 16px; bottom: 16px; width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08));
}
.const{ position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 9px 0; }
.cn-node{
  width: 37px; height: 37px;
  display: grid; place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, .7);
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, .16) 78%);
  color: #123a4c;
  font-size: 12px; font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 255, 255, .35);
  transition: .3s var(--ease);
}
.cn-node span{ transform: rotate(-45deg); font-variant-numeric: tabular-nums; }
.const:hover .cn-node{ box-shadow: 0 0 24px rgba(255, 255, 255, .9); }
.cn-name{
  margin: 0;
  font-size: 15px; font-weight: 500; letter-spacing: .03em;
  color: #fff; text-shadow: var(--shadow);
}
.cn-meta{
  margin-left: 8px;
  font-size: 10.5px; letter-spacing: .12em;
  color: var(--gold);
  opacity: .95;
  font-variant-numeric: tabular-nums;
}
.cn-desc{
  margin: 5px 0 0;
  font-size: 12px; line-height: 1.8;
  color: rgba(255, 255, 255, .76);
}

/* ---------- 装备 ---------- */
.wpn{
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px;
  padding: 14px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.wpn-art{
  height: 88px;
  display: grid; place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .38), rgba(255, 255, 255, .10) 74%);
  color: #fff;
  font-size: 38px;
}
.wpn-info{ min-width: 0; }
.wpn-stars{ display: flex; gap: 2px; margin-bottom: 3px; color: var(--gold); }
.wpn-stars .ic{ font-size: 10px; filter: drop-shadow(0 0 5px rgba(255, 205, 110, .6)); }
.wpn-name{
  margin: 0;
  font-size: 16px; font-weight: 500; letter-spacing: .04em;
  color: #fff; text-shadow: var(--shadow);
}
.wpn-type{
  display: block; margin-top: 3px;
  font-size: 11px; letter-spacing: .1em;
  color: rgba(255, 255, 255, .72);
}
.wpn-stats{ display: flex; gap: 24px; margin: 10px 0 6px; }
.wpn-stats dt{ font-size: 10.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }
.wpn-stats dd{ margin: 2px 0 0; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.wpn-passive{ margin: 6px 0 0; font-size: 11.5px; line-height: 1.8; color: rgba(255, 255, 255, .76); }
.wpn-passive b{ color: var(--gold-2); font-weight: 500; }

.alts{ display: grid; gap: 6px; margin-top: 8px; }
.alt{
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: .2s var(--ease);
}
.alt:hover{ background: rgba(255, 255, 255, .16); }
.alt h5{
  margin: 0;
  font-size: 13px; font-weight: 500; letter-spacing: .03em;
  color: #fff; text-shadow: var(--shadow);
}
.alt .alt-stars{ display: flex; gap: 1px; color: var(--gold); }
.alt .alt-stars .ic{ font-size: 8px; }
.alt p{ grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .7); }

/* ---------- 圣遗物 ---------- */
.set-head{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 9px; }
.set-name{ font-size: 14.5px; letter-spacing: .03em; color: #fff; text-shadow: var(--shadow); }
.set-name i{ font-style: normal; margin-left: 8px; font-size: 10px; letter-spacing: .14em; color: var(--gold); }
.set-bonus{ display: grid; gap: 6px; margin-top: 10px; }
.art-list{ display: grid; gap: 7px; }
.art{
  display: grid; grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: .22s var(--ease);
}
.art:hover, .art:focus-visible{
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .6);
  transform: translateY(-1px);
}
.art-ic{
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 19px;
  color: #ffeecb;
  align-self: center;
}
.art-body{ min-width: 0; display: block; }
.art-head{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.art-name{ font-size: 14px; font-weight: 500; letter-spacing: .02em; color: #fff; text-shadow: var(--shadow); }
.art-slot{ font-size: 9.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .55); margin-right: 6px; }
.art-main{ font-size: 11px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.art-main b{ color: #fff; font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.art-desc{ display: block; margin-top: 4px; font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .7); }

/* 圣遗物详情（弹层内） */
.art-detail{ display: grid; gap: 14px; }
.ad-top{ display: flex; align-items: center; gap: 14px; }
.ad-icon{
  width: 68px; height: 68px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1) 74%);
  color: #fff5e0;
  font-size: 34px;
  filter: drop-shadow(0 0 10px rgba(255, 236, 190, .5));
}
.ad-head{ min-width: 0; }
.ad-slot{ display: block; font-size: 10px; letter-spacing: .16em; color: rgba(255, 255, 255, .6); }
.ad-name{ margin: 2px 0 2px; font-size: 18px; font-weight: 500; letter-spacing: .03em; }
.ad-set{ font-size: 10.5px; letter-spacing: .06em; color: var(--gold); }
.ad-stat{
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 13px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
}
.ad-stat span{ font-size: 12px; color: rgba(255, 255, 255, .72); }
.ad-stat b{ font-size: 20px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.ad-desc{ margin: 0; font-size: 12.5px; line-height: 1.9; color: rgba(255, 255, 255, .84); }
.ad-tags{ display: flex; flex-wrap: wrap; gap: 6px; }
.art-tag{
  font-size: 10px; letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .8);
}

/* ---------- 语音 ---------- */
.voice-list{ display: grid; gap: 8px; }
.voice-line{
  display: grid; grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
}
.vl-no{ font-size: 13px; letter-spacing: .06em; color: var(--gold); font-variant-numeric: tabular-nums; }
.vl-tag{ font-size: 9.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
.vl-text{ margin: 4px 0 0; font-size: 12.5px; line-height: 1.85; color: #fff; }

/* ---------- 装备：Unity ---------- */
.eng{
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px;
  padding: 14px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.eng-art{
  height: 92px;
  display: grid; place-items: center;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .4), rgba(255, 255, 255, .1) 74%);
  color: #fff;
  font-size: 40px;
}
.eng-info{ min-width: 0; }
.eng-stars{ display: flex; gap: 2px; margin-bottom: 4px; color: var(--gold); }
.eng-stars .ic{ font-size: 11px; filter: drop-shadow(0 0 5px rgba(255, 205, 110, .6)); }
.eng-name{ margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .04em; color: #fff; text-shadow: var(--shadow); }
.eng-sub{ display: block; margin-top: 2px; font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .72); }
.eng-intro{ margin: 8px 0 0; font-size: 12.5px; line-height: 1.85; color: rgba(255, 255, 255, .84); }
.eng-facts{
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px;
  margin: 10px 0 0;
}
.eng-fact{ padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.eng-fact dt{ font-size: 10px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.eng-fact dd{ margin: 2px 0 0; font-size: 12.5px; color: #fff; }
.eng-tools{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eng-tool{
  padding: 10px 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: .2s var(--ease);
}
.eng-tool:hover{ background: rgba(255, 255, 255, .16); }
.eng-tool h5{ margin: 0; font-size: 12.5px; font-weight: 500; color: #fff; }
.eng-tool p{ margin: 4px 0 0; font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, .7); }

.bonus{
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px;
  align-items: start;
  padding: 9px 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .10);
  border-left: 2px solid rgba(255, 217, 138, .85);
}
.bonus .b-tag{ font-size: 10px; letter-spacing: .04em; color: var(--gold-2); }
.bonus p{ margin: 0; font-size: 11px; line-height: 1.75; color: rgba(255, 255, 255, .82); }

/* ---------- 履历 ---------- */
.intent{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  font-size: 12px; letter-spacing: .03em; line-height: 1.7;
  text-shadow: var(--shadow);
}
.intent .spark{ color: var(--gold); font-size: 14px; flex: none; margin-top: 2px; animation: pulse 2.6s ease-in-out infinite; }
.intent-body{ display: grid; gap: 3px; min-width: 0; }
.intent-line{ display: block; }
.intent-line.is-dim{ color: rgba(255, 255, 255, .74); font-size: 11.5px; }

.timeline{ position: relative; padding-left: 16px; margin-top: 12px; }
.timeline::before{
  content: '';
  position: absolute; left: 3px; top: 10px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .1));
}
.job{ position: relative; margin-bottom: 16px; }
.job:last-child{ margin-bottom: 0; }
.job::before{
  content: '';
  position: absolute; left: -16px; top: 7px;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}
.job-period{
  font-size: 10.5px; letter-spacing: .12em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.job-company{
  margin: 3px 0 0;
  font-size: 15.5px; font-weight: 500; letter-spacing: .03em;
  color: #fff; text-shadow: var(--shadow);
}
.job-role{ margin: 1px 0 0; font-size: 11.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .68); }
.job ul{ margin: 7px 0 0; padding: 0; list-style: none; }
.job li{
  position: relative; padding-left: 12px; margin-bottom: 4px;
  font-size: 12px; line-height: 1.8;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 3px rgba(8, 40, 56, .25);
}
.job li::before{
  content: '';
  position: absolute; left: 1px; top: .72em;
  width: 3px; height: 3px;
  background: rgba(255, 255, 255, .7);
  transform: rotate(45deg);
}

.edu{
  padding: 13px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.edu-top{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.edu-school{ font-size: 14.5px; letter-spacing: .03em; color: #fff; text-shadow: var(--shadow); }
.edu-period{ font-size: 10px; letter-spacing: .1em; color: var(--gold); font-variant-numeric: tabular-nums; }
.edu-major{ margin: 3px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .74); }
.edu-rank{ margin: 4px 0 0; font-size: 11px; color: var(--gold-2); letter-spacing: .04em; }
.courses{ display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.course{
  font-size: 10px; letter-spacing: .02em;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06);
}

.achv{
  display: grid; grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
  align-items: start;
}
.achv:last-child{ border-bottom: 0; }
.achv-ic{
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 23px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.achv-body{ min-width: 0; }
.achv-ic .ic{ stroke-width: 1.7; }
.achv-title{
  margin: 0;
  font-size: 14.5px; font-weight: 500; letter-spacing: .03em;
  color: #fff; text-shadow: var(--shadow);
}
.achv-no{ color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.achv-origin{
  margin: 4px 0 0;
  font-size: 10.5px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .48);
}
.achv-desc{
  margin: 6px 0 0;
  font-size: 12px; line-height: 1.8;
  color: rgba(255, 255, 255, .84);
}

/* ---------- 作品集 ---------- */
.works{ display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.work{
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .26);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.work:hover{
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .7);
  box-shadow: 0 16px 30px rgba(10, 52, 70, .3);
}
.work-thumb{ position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(0, 0, 0, .2); }
.work-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work:hover .work-thumb img{ transform: scale(1.05); }
.work-thumb::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 44, 0) 45%, rgba(0, 30, 44, .45));
}
.work-body{ padding: 8px 9px 10px; }
.work-year{ font-size: 9px; letter-spacing: .1em; color: var(--gold); font-variant-numeric: tabular-nums; }
.work-title{
  margin: 2px 0 0;
  font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: .01em;
  color: #fff; text-shadow: var(--shadow);
}
.work-tags{ display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.work-tag{
  font-size: 8.5px; padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .8);
}

.work-go{
  position: absolute; right: 7px; top: 7px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  color: #0f3a4c;
  font-size: 8.5px; letter-spacing: .04em;
  opacity: 0; transform: translateY(-4px);
  transition: .25s var(--ease);
}
.work:hover .work-go{ opacity: 1; transform: none; }
.work-go .ic{ font-size: 9px; }

.work.featured{ grid-column: 1 / -1; }
.work.featured .work-thumb{ aspect-ratio: 21 / 9; }
.work.featured .work-body{ padding: 10px 12px 12px; }
.work.featured .work-title{ font-size: 14.5px; }
.work.featured::before{
  content: 'FEATURED';
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 3px 10px;
  font-size: 8px; letter-spacing: .28em;
  color: #0f3a4c;
  background: linear-gradient(90deg, #ffe7b6, #ffd98a);
}

/* ---------- 联系方式 ---------- */
.contacts{ display: grid; grid-template-columns: 1fr; gap: 6px; }
.contact{
  display: grid; grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px; align-items: center;
  padding: 12px 13px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  min-width: 0;
  transition: .2s var(--ease);
}
.contact:hover{ background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
.contact .ic{ font-size: 16px; color: var(--gold); }
.contact .c-body{ min-width: 0; }
.contact .c-label{ display: block; font-size: 10px; letter-spacing: .1em; color: rgba(255, 255, 255, .62); }
.contact .c-val{
  display: block; margin-top: 1px;
  font-size: 12.5px; letter-spacing: .01em;
  color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 底栏 ---------- */
.bottombar{
  flex: none;
  height: 92px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 44px;
}
.bb-left, .bb-right{ display: flex; align-items: center; gap: 12px; }
.round-btn{
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: .22s var(--ease);
}
.round-btn:hover{ background: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.pill-btn{
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 13.5px; letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: var(--shadow);
  transition: .22s var(--ease);
  white-space: nowrap;
}
.pill-btn .ic{ font-size: 15px; color: var(--gold-2); }
.pill-btn:hover{ background: rgba(255, 255, 255, .27); border-color: rgba(255, 255, 255, .8); }
.uid{
  font-size: 10.5px; letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
  text-shadow: 0 1px 2px rgba(8, 40, 56, .3);
}

/* ---------- toast ---------- */
.toast{
  position: fixed; left: 50%; bottom: 108px; z-index: 60;
  transform: translate(-50%, 14px);
  padding: 10px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(10, 46, 64, .9);
  color: #fff;
  font-size: 12px; letter-spacing: .06em;
  box-shadow: 0 18px 40px rgba(8, 40, 56, .4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.toast.is-on{ opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
 *  动画
 * ============================================================ */
@keyframes spin{ to{ transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bob{
  0%, 100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-7px) scale(1.003); }
}
@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .45; }
}
@keyframes twinkle{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: .55; transform: scale(.88); }
}
@keyframes panelIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: none; }
}
@keyframes charIn{
  from{ opacity: 0; transform: translateY(26px); }
  to{ opacity: 1; transform: none; }
}

/* ============================================================
 *  响应式
 * ============================================================ */
@media (max-width: 1440px){
  .stage{ grid-template-columns: 208px minmax(0, 1fr) clamp(380px, 27vw, 440px); padding-right: 32px; }
  .topbar{ padding: 0 32px; }
  .bottombar{ padding: 0 32px; }
  .rail{ padding-left: 32px; }
}
@media (max-width: 1180px){
  .stage{ grid-template-columns: 186px minmax(0, 1fr) 380px; padding-right: 24px; }
  .topbar{ padding: 0 24px; }
  .bottombar{ padding: 0 24px; }
  .rail{ padding-left: 24px; }
  .fps-chip{ display: none; }
  .ghost-btn span{ display: none; }
  .ghost-btn{ width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
}

@media (max-width: 960px){
  body{ overflow-y: auto; overflow-x: hidden; background: #2f7f9c; }
  .app{ height: auto; min-height: 100dvh; }
  .bg{ position: fixed; }
  .topbar{ height: 62px; padding: 0 16px; gap: 10px; }
  .elem-emblem{ width: 34px; height: 34px; font-size: 17px; }
  .elem-line{ font-size: 13px; letter-spacing: .06em; }
  .close-btn{ width: 36px; height: 36px; font-size: 15px; }
  .ghost-btn{ width: 34px; height: 34px; }

  .stage{ display: flex; flex-direction: column; padding: 0 16px; gap: 6px; }
  .rail{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 6px;
    padding: 4px 0 0; order: 1;
  }
  .rail-item{
    flex-direction: row; justify-content: flex-start;
    gap: 7px; padding: 6px 4px;
    font-size: 13px; letter-spacing: .02em;
  }
  .rail-item.is-active{ font-size: 13.5px; }
  .ri-d{ width: 7px; height: 7px; }
  .rail-item.is-active::before{
    left: 0; right: 0; height: 2.4em;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 72%);
  }

  .char{ order: 2; height: 50vh; min-height: 320px; max-height: 520px; padding-bottom: 0; }
  .art-node{ width: 80px; height: 80px; padding: 7px 5px 8px; }
  .an-icon{ width: 42px; height: 42px; font-size: 26px; margin: 0 0 6px; }
  .an-icon.has-img{ width: 46px; height: 46px; margin: 0 0 1px; }
  .an-name{ font-size: 8px; letter-spacing: 0; }
  .an-slot{ font-size: 6.5px; letter-spacing: .1em; }
  .char.is-artifacts{ height: 54vh; min-height: 340px; }
  .char.is-artifacts .char-img{ height: 72%; }
  .an-slot{ font-size: 8px; }
  .an-name{ font-size: 9.5px; }
  .char-img{ max-height: 100%; }
  .char-hint{ display: none; }
  .char-ground{ bottom: 0; }

  .panel{
    order: 3;
    padding: 6px 0 0;
    background: linear-gradient(180deg, rgba(10, 52, 70, 0) 0%, rgba(10, 52, 70, .16) 40%, rgba(10, 52, 70, .26));
  }
  .panel-head{ padding: 8px 0 10px; }
  .ph-name{ font-size: 28px; }
  .panel-body{ overflow: visible; padding: 4px 0 18px; }
  .works{ grid-template-columns: 1fr; }
  .passives{ grid-template-columns: 1fr; }
  .contacts{ grid-template-columns: 1fr; }
  .stat-row:nth-last-child(1) .st-tip, .stat-row:nth-last-child(2) .st-tip{ bottom: auto; top: calc(100% + 4px); }

  .bottombar{ height: 74px; padding: 0 16px; }
  .round-btn{ width: 44px; height: 44px; font-size: 18px; }
  .pill-btn{ height: 38px; padding: 0 16px; font-size: 12px; }
  .uid{ display: none; }
}

@media (max-width: 560px){
  .elem-line{ font-size: 12px; }
  .topbar .ghost-btn:nth-of-type(2){ display: none; }
  .char{ height: 44vh; min-height: 270px; }
  .ph-name{ font-size: 25px; }
  .talent{ grid-template-columns: 42px minmax(0, 1fr); padding: 11px; }
  .tl-ic{ width: 42px; height: 42px; font-size: 17px; }
  .wpn{ grid-template-columns: 62px minmax(0, 1fr); padding: 12px; }
  .wpn-art{ height: 62px; font-size: 27px; }
  .skill{ grid-template-columns: minmax(0, 1fr) 88px 28px; gap: 9px; }
  .works{ grid-template-columns: 1fr; }
  .toast{ max-width: 90vw; white-space: normal; text-align: center; bottom: 90px; }
  .bottombar{ gap: 8px; }
  .bb-left, .bb-right{ gap: 8px; }
  .round-btn{ width: 40px; height: 40px; font-size: 16px; }
  .pill-btn{ height: 36px; padding: 0 12px; font-size: 11.5px; letter-spacing: .04em; }
}

@media (max-height: 830px) and (min-width: 961px){
  .topbar{ height: 70px; }
  .bottombar{ height: 74px; }
  .rail{ padding-top: 20px; }
  .rail-item{ padding: 7px 0; }
  .ph-name{ font-size: 30px; }
  .ph-level{ margin-top: 6px; }
  .ph-level .lv-num{ font-size: 21px; }
  .panel-head{ padding: 2px 0 8px; }
  .stat-row{ padding: 7px 2px; }
  .detail-toggle{ margin-top: 9px; padding: 7px 12px; }
  .friend{ margin-top: 9px; }
  .ph-desc{ margin-top: 9px; font-size: 12px; line-height: 1.72; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
