/* ===================================================================
   style-team.css — 编队界面官方风格复刻（2026-11-20 test 分支）
   -------------------------------------------------------------------
   深空星云背景 + 四名角色站位主视觉 + 顶部队伍编号 00-07 +
   快速编队 / 编队设置双弹窗。作用域 .team-view（前缀 tf-），
   加载顺序在 style-ui / style-responsive 之后，同特异性以本文件为准。
   =================================================================== */

.stage.view-team { overflow-y: auto; }
.stage.view-team > .team-view { flex: 1 1 auto; min-height: 0; }

.team-view {
  position: relative;
  display: flex; flex-direction: column; flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 22px 16px;
  min-height: 100%;
  background: none;                        /* 透出全局深空底，消除视图边界拼接缝 */
  color: #e9e9f8;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --tf-line: rgba(190, 205, 255, .14);
  --tf-panel: rgba(20, 24, 48, .66);
  --tf-cyan: #6fd8f0;
  --tf-gold: #e7c46a;
}

/* ==== 深空背景：光晕全部置于渐隐区，四边羽化遮罩杜绝硬切边 ==== */
.tf-space {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.tf-neb { position: absolute; border-radius: 50%; filter: blur(76px); opacity: .6; }
.tf-neb.n1 { width: 58vw; height: 46vh; left: 12vw; top: -6vh;
  background: radial-gradient(circle, rgba(104, 78, 214, .5), transparent 68%); }
.tf-neb.n2 { width: 46vw; height: 42vh; right: 6vw; top: 22vh;
  background: radial-gradient(circle, rgba(62, 110, 216, .4), transparent 68%); }
.tf-neb.n3 { width: 52vw; height: 38vh; left: 8vw; bottom: -4vh;
  background: radial-gradient(circle, rgba(140, 92, 224, .3), transparent 70%); }
.tf-stars { position: absolute; inset: 0; }
.tf-stars i {
  position: absolute; border-radius: 50%; background: #fff;
  animation: tf-twinkle 5s ease-in-out infinite;
}
@keyframes tf-twinkle {
  0%, 100% { opacity: .12; transform: scale(.8); }
  50% { opacity: .8; transform: scale(1); }
}

/* ==== 顶部：队伍编号 ==== */
.tf-top { position: relative; z-index: 4; flex: 0 0 auto; }
.tf-nums {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(6px, 1.6vw, 26px);
  padding: 4px 0 2px;
}
.tf-num {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 4px 6px 6px; border: 0; background: none;
  cursor: pointer; color: #8f97c2; font-family: inherit;
  transition: color .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.tf-n {
  font-size: 21px; font-weight: 600; letter-spacing: 2px;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.tf-nname {
  max-width: 64px; font-size: 9px; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tf-num::after {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: transparent; margin-top: 3px; transition: .18s ease;
}
.tf-num:hover { color: #d5daef; transform: translateY(-2px); }
.tf-num.on { color: #fff; }
.tf-num.on::after {
  background: linear-gradient(90deg, transparent, #cfe6ff, transparent);
  box-shadow: 0 0 10px rgba(140, 200, 255, .8);
}
.tf-num.on .tf-n { text-shadow: 0 0 14px rgba(160, 200, 255, .8); }
.tf-num.battle .tf-n { color: var(--tf-cyan); }
.tf-nlive {
  position: absolute; top: -1px; right: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tf-cyan); box-shadow: 0 0 8px rgba(111, 216, 240, .9);
}

/* ==== 主视觉：四名角色站位 ==== */
.tf-field {
  position: relative; z-index: 3; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
.tf-linkline {
  position: absolute; left: 6%; right: 6%; bottom: 120px;
  height: 1px; pointer-events: none;
}
.tf-link {
  display: block; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(140, 190, 255, .5) 12%, rgba(140, 190, 255, .5) 88%, transparent);
  box-shadow: 0 0 10px rgba(120, 170, 255, .4);
}
.tf-heroes {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(10px, 1.6vw, 30px);
  padding-bottom: 2px;
}
/* 地面光带：宽幅椭圆辉光，把四名角色的脚下光晕连成一体 */
.tf-heroes::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 40px; height: 90px;
  background: radial-gradient(ellipse at 50% 100%,
    rgba(110, 140, 255, .14), rgba(140, 110, 224, .07) 45%, transparent 75%);
  filter: blur(14px); pointer-events: none;
}
/* 角色卡：严格 2:3 竖向比例，宽度吃满主区（利用率 ≥85%） */
.tf-hero {
  position: relative;
  flex: 0 1 auto; width: clamp(190px, 22.8vw, 330px);
  aspect-ratio: 2 / 3;
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .22s ease;
}
.tf-hero:hover { transform: translateY(-4px); }
.tf-glow {
  position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%);
  width: 64%; height: 20px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(110, 170, 255, .45), transparent 70%);
  filter: blur(7px); pointer-events: none;
}
.tf-node {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(180, 215, 255, .85);
  box-shadow: 0 0 10px rgba(140, 190, 255, .9), 0 0 22px rgba(120, 170, 255, .5);
}
.tf-portrait {
  position: relative; z-index: 2;
  display: block; width: 100%; flex: 1 1 auto; min-height: 0;
  pointer-events: none;
}
.tf-art {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  -webkit-mask-image: radial-gradient(ellipse 74% 88% at 50% 56%, #000 46%, transparent 87%);
  mask-image: radial-gradient(ellipse 74% 88% at 50% 56%, #000 46%, transparent 87%);
  transition: transform .25s ease;
}
.tf-card {
  position: relative; z-index: 3;
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 100%;
  padding: 8px 10px 9px; border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .012)),
    var(--tf-panel);
  border: 1px solid var(--tf-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tf-card-name {
  font-size: 14px; color: #fff; letter-spacing: 1px; font-weight: 500;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tf-live {
  font-style: normal; font-size: 9px; padding: 1px 5px; border-radius: 3px;
  color: #06202c; background: var(--tf-cyan); font-weight: 600; flex: 0 0 auto;
}
.tf-card-sub { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #a9b0d8; }
.tf-card-sub em { font-style: normal; font-variant-numeric: tabular-nums; }
.tf-badge { width: 15px; height: 15px; object-fit: contain; }
.tf-field-tip {
  position: relative; z-index: 3; flex: 0 0 auto;
  text-align: center; font-size: 11px; color: #8f97c2; letter-spacing: 1px;
  padding-top: 6px;
}
.tf-tip-live { color: var(--tf-cyan); font-weight: 500; }
.tf-tip-dim { color: #6a7099; font-weight: 400; }

/* 出战队伍：青蓝发光描边 + 轻微提亮 */
.tf-hero.team-live .tf-card {
  border-color: rgba(111, 216, 240, .6);
  box-shadow: 0 0 0 1.5px rgba(111, 216, 240, .35), 0 0 22px rgba(111, 216, 240, .22),
    0 12px 30px rgba(0, 0, 0, .4);
}
.tf-hero.team-live .tf-glow {
  background: radial-gradient(ellipse, rgba(111, 216, 240, .5), transparent 70%);
  box-shadow: 0 0 18px rgba(111, 216, 240, .4);
}

/* 空槽位：与角色卡同构（2:3 虚线卡） */
.tf-hero.empty .tf-empty-ring {
  flex: 1 1 auto; width: 100%;
  display: grid; place-items: center;
  border: 1.5px dashed rgba(190, 205, 255, .3); border-radius: 14px 14px 0 0;
  border-bottom: 0;
  color: rgba(190, 205, 255, .45); font-size: 42px; font-style: normal;
  background: rgba(255, 255, 255, .02);
}
.tf-hero.empty:hover .tf-empty-ring { border-color: rgba(190, 205, 255, .6); color: rgba(210, 225, 255, .8); }
.tf-hero.empty .tf-card { border-style: dashed; opacity: .75; }

/* ==== 底部按钮 ==== */
.tf-foot {
  position: relative; z-index: 4; flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding-top: 6px;
}
.tf-foot-right { margin-left: auto; display: flex; gap: 8px; }
.tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(190, 205, 255, .22);
  color: #e6e9f8; font-size: 14px; letter-spacing: 2px;
  cursor: pointer; transition: .18s ease; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.tf-btn svg { width: 17px; height: 17px; }
.tf-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(190, 205, 255, .5); color: #fff; }
.tf-btn.primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(224, 228, 250, .84));
  border-color: #fff; color: #23233f; font-weight: 600;
  box-shadow: 0 8px 24px rgba(255, 255, 255, .14);
}
.tf-btn.primary:hover { box-shadow: 0 8px 30px rgba(255, 255, 255, .3); }
.tf-btn.ghost { background: rgba(20, 24, 48, .5); }
.tf-btn.danger { border-color: rgba(224, 112, 92, .4); color: #f0b0a4; }
.tf-btn.danger:hover { border-color: rgba(224, 112, 92, .8); background: rgba(224, 112, 92, .12); }

/* ===================================================================
   弹窗（快速编队 / 编队设置）
   =================================================================== */
.tf-mask {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(5, 6, 16, .55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.tf-view[data-modal="quick"] .tf-mask, .tf-view[data-modal="settings"] .tf-mask { opacity: 1; pointer-events: auto; }
.tf-modal-wrap {
  position: absolute; inset: 0; z-index: 31;
  display: none; align-items: center; justify-content: center;
  padding: max(40px, 5vh) max(40px, 5vw);
  box-sizing: border-box;
}
.tf-view[data-modal="quick"] .tf-modal-wrap, .tf-view[data-modal="settings"] .tf-modal-wrap { display: flex; }
.tf-modal {
  display: flex; flex-direction: column;
  width: min(1080px, 100%); max-height: 100%;
  min-width: 0;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)),
    linear-gradient(180deg, rgba(24, 28, 56, .92), rgba(16, 18, 40, .94));
  border: 1px solid rgba(190, 205, 255, .2);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: tfPop .22s cubic-bezier(.2, .8, .3, 1);
  overflow: hidden;
}
@keyframes tfPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.tfm-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px 11px;
  font-size: 15px; letter-spacing: 2px; color: #fff;
  border-bottom: 1px solid rgba(190, 205, 255, .12);
}
.tf-x {
  width: 30px; height: 30px; padding: 0; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(190, 205, 255, .2);
  color: #d8dcf0; font-size: 14px; cursor: pointer; transition: .18s ease; font-family: inherit;
}
.tf-x svg { width: 14px; height: 14px; }
.tf-x:hover { color: #fff; border-color: rgba(190, 205, 255, .5); }
.tfm-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 14px; padding: 14px 18px; overflow: hidden; }
.tfm-foot {
  flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(190, 205, 255, .1);
}
.tfm-sec {
  font-size: 12px; letter-spacing: 2px; color: var(--tf-gold);
  padding-bottom: 6px; margin-bottom: 9px;
  border-bottom: 1px solid rgba(231, 196, 106, .2);
}
.tfm-sec em { font-style: normal; color: #d5daef; }

/* ---- 快速编队 ---- */
/* 快速编队：宽 70% 高 80%，左 60% 角色区 / 右 40% 队伍区 */
.tf-modal.tf-quick { width: min(70vw, 1280px); height: min(80vh, 780px); max-height: 100%; }
.tfq-list { flex: 0 0 60%; max-width: 60%; min-width: 0; display: flex; flex-direction: column;
  padding-right: 14px; }
.tfq-team {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(190, 205, 255, .12);
  padding-left: 14px;
}
.tfq-title { font-size: 14px; color: #fff; font-weight: 600; letter-spacing: 1px; margin-bottom: 10px; }
.tfq-title em { font-style: normal; color: var(--tf-cyan); font-variant-numeric: tabular-nums; }
.tf-slots { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.tf-slot {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 62px;
  padding: 9px 11px; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed rgba(190, 205, 255, .3);
  color: #a9b0d8; text-align: left; transition: .16s ease;
}
.tf-slot:hover { border-color: rgba(190, 205, 255, .6); color: #fff; }
.tf-slot.empty { justify-content: center; }
.tf-slot.empty i { font-style: normal; font-size: 20px; }
.tf-slot.empty span { font-size: 11px; letter-spacing: 1px; }
.tf-slot.filled { border-style: solid; border-color: rgba(190, 205, 255, .25); }
.tf-slava {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(190, 205, 255, .35);
}
.tf-slava-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-slinfo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tf-slinfo b { font-size: 13.5px; color: #fff; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-slinfo span { font-size: 11px; color: #a9b0d8; }
.tf-slpos {
  position: absolute; left: -7px; top: -7px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 600;
  color: #06202c; background: var(--tf-cyan);
  box-shadow: 0 0 8px rgba(111, 216, 240, .6);
}
.tf-sloff {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-style: normal; font-size: 12px;
  background: rgba(255, 255, 255, .07); color: #d8dcf0;
  transition: .16s ease;
}
.tf-sloff:hover { background: rgba(224, 112, 92, .3); color: #fff; }
.tfq-tip { margin-top: 9px; font-size: 10px; line-height: 1.6; color: #7a81ab; }

/* 角色列表 */
.tf-filter {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 40px; padding-bottom: 10px;
}
.tf-frow { display: flex; gap: 6px; flex-wrap: wrap; }
.tf-fdd { flex: 1 1 auto; min-width: 130px; }
.tf-fbtn {
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(190, 205, 255, .18);
  font-size: 10px; color: #a9b0d8; transition: .16s ease; font-family: inherit;
}
.tf-fbtn img { width: 19px; height: 19px; object-fit: contain; }
.tf-fbtn:hover { border-color: rgba(190, 205, 255, .5); }
.tf-fbtn.on {
  border-color: var(--tf-cyan); background: rgba(111, 216, 240, .14);
  box-shadow: 0 0 10px rgba(111, 216, 240, .3); color: #fff;
}
/* 角色网格：固定每行 4 个，卡片 1:1 正方形锁比例 */
.tf-cgrid {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 2px 2px 6px;
  scrollbar-width: thin; scrollbar-color: rgba(120, 140, 240, .35) transparent;
}
.tf-cgrid::-webkit-scrollbar { width: 6px; }
.tf-cgrid::-webkit-scrollbar-thumb { background: rgba(120, 140, 240, .3); border-radius: 6px; }
.tf-ccard {
  position: relative;
  width: 100%; min-width: 0;            /* 截断 aspect-ratio 与轨道尺寸的循环依赖 */
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px 7px; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(190, 205, 255, .14);
  transition: .16s ease;
}
.tf-ccard:hover { border-color: rgba(190, 205, 255, .5); background: rgba(255, 255, 255, .07); }
.tf-ccard.r5 { border-color: rgba(231, 196, 106, .35); }
.tf-ccard.sel {
  border-color: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7), 0 0 18px rgba(160, 200, 255, .4);
  background: rgba(255, 255, 255, .1); transform: translateY(-2px);
}
.tf-ccard.indraft { background: rgba(111, 216, 240, .08); }
.tf-cava {
  position: relative; flex: 1 1 auto; width: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.tf-cava-img {
  width: min(64%, 76px); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(190, 205, 255, .3);
}
.tf-cava-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-cmark {
  position: absolute; top: -3px; right: -3px;
  font-style: normal; font-size: 8.5px; line-height: 14px; padding: 0 3px;
  color: #06202c; background: var(--tf-cyan); border-radius: 3px; font-weight: 600;
}
.tf-cname { max-width: 100%; font-size: 13px; color: #e6e9f8; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-clv { font-size: 11px; color: #8f97c2; font-variant-numeric: tabular-nums; }
.tf-cempty { grid-column: 1 / -1; padding: 18px; text-align: center; font-size: 11.5px; color: #8f97c2; }

/* ---- 编队设置 ---- */
.tfs-body { gap: 18px; }
.tfs-left { flex: 0 0 340px; width: 340px; display: flex; flex-direction: column; min-height: 0; }
.tfs-right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tfs-teams { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin; }
.tfs-trow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(190, 205, 255, .14);
  color: #c5cae4; text-align: left; transition: .16s ease; font-family: inherit;
}
.tfs-trow:hover { border-color: rgba(190, 205, 255, .45); }
.tfs-trow.on {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 16px rgba(160, 200, 255, .3);
  background: rgba(255, 255, 255, .08);
}
.tfs-tnum {
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; color: #8f97c2; flex: 0 0 28px;
}
.tfs-trow.on .tfs-tnum { color: #fff; }
.tfs-trow.battle .tfs-tnum { color: var(--tf-cyan); }
.tfs-tname { font-size: 12.5px; color: #fff; letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.tfs-tsub {
  margin-left: auto; font-size: 10px; color: #8f97c2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;
}
.tfs-abyss { display: flex; flex-direction: column; gap: 7px; padding-bottom: 4px; }
.tfs-abyss label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #a9b0d8; }
.tf-sel {
  flex: 1; height: 30px; padding: 0 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(190, 205, 255, .2);
  color: #e6e9f8; font-size: 12px; font-family: inherit;
}
.tf-sel option { background: #1a1e3a; color: #e6e9f8; }
.tfs-abyss-status { font-size: 10.5px; }
.tfs-abyss-status.ok { color: #7fe0a8; }
.tfs-abyss-status.bad { color: #f0b0a4; }
.tfs-members { display: flex; flex-direction: column; gap: 7px; }
.tfs-member {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(190, 205, 255, .16);
  box-shadow: inset 0 0 12px rgba(120, 160, 255, .04);
}
.tfs-member.empty { color: #6a7099; font-size: 11.5px; justify-content: center; border-style: dashed; }
.tfs-ava { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(190, 205, 255, .35);
  box-shadow: 0 0 12px rgba(120, 170, 255, .2); }
.tfs-ava-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tfs-minfo { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tfs-minfo b { font-size: 13px; color: #fff; letter-spacing: 1px; }
.tfs-minfo span { font-size: 10.5px; color: #a9b0d8; }
.tfs-ops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tfs-ops .tf-btn { height: 34px; padding: 0 13px; font-size: 12px; }
.tfs-copy { display: flex; gap: 6px; align-items: center; }
.tfs-copy .tf-sel { width: 150px; flex: none; }

/* ===================================================================
   响应式
   =================================================================== */
@media (max-width: 1100px) {
  .tfq-team { flex-basis: 260px; width: 260px; }
  .tfs-left { flex-basis: 280px; width: 280px; }
}
@media (max-width: 900px) {
  .tf-heroes { gap: 8px; }
  .tf-hero { width: clamp(140px, 23vw, 200px); }
  .tf-card-name { font-size: 12px; }
}
/* 手机：站位 2×2，弹窗铺满 */
@media (max-width: 768px) {
  .team-view { padding: 8px 10px 12px; }
  .tf-nums { gap: 4px; flex-wrap: wrap; }
  .tf-n { font-size: 15px; }
  .tf-nname { display: none; }
  .tf-heroes {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; padding: 4px 2px;
  }
  .tf-hero { width: 100%; }
  .tf-glow { bottom: 56px; }
  .tf-node { bottom: 52px; }
  .tf-linkline { display: none; }
  .tf-btn { height: 38px; padding: 0 14px; font-size: 12.5px; }
  .tf-modal-wrap { padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .tf-modal.tf-quick { width: 100%; height: 100%; }
  .tfq-list { flex: 0 0 auto; max-width: none; padding-right: 0; }
  .tfq-team { flex: 0 0 auto; width: 100%; border-left: 0; border-top: 1px solid rgba(190, 205, 255, .1);
    padding-left: 0; padding-top: 12px; }
  .tf-slots { max-height: 240px; }
  .tfs-body { flex-direction: column; overflow-y: auto; }
  .tfs-left { flex: 0 0 auto; width: 100%; }
  .tfs-teams { max-height: 220px; }
  .tf-modal { width: 100%; max-height: 100%; }
}

/* 低端设备降级 */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .tf-card, .tf-modal { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tf-neb { filter: blur(40px); }
  .tf-stars i { animation: none; }
}

/* ===================================================================
   出战队伍状态与主按钮规范（2026-11-21）
   「确认」→「设为出战」：主按钮金色高亮；当前队伍已出战且无改动时置灰；
   顶部编号栏出战中角标 + 发光下划线；底部状态文字三态同步。
   =================================================================== */
.tf-btn.primary {
  background: linear-gradient(180deg, #ffe9b0, #e7c46a);
  border-color: rgba(231, 196, 106, .85); color: #2a1f08;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(231, 196, 106, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.tf-btn.primary:hover:not(:disabled) {
  box-shadow: 0 10px 30px rgba(231, 196, 106, .42), 0 0 18px rgba(255, 215, 122, .28);
  filter: brightness(1.06);
}
/* 已是出战且无改动：置灰不可点，文案「当前出战」 */
.tf-btn.primary.is-current, .tf-btn.primary:disabled {
  background: rgba(120, 132, 168, .18);
  border-color: rgba(180, 200, 255, .18);
  color: #7c86ad; font-weight: 500;
  box-shadow: none; cursor: default; opacity: 1;
}
.tf-btn.primary.is-current:hover, .tf-btn.primary:disabled:hover {
  filter: none; box-shadow: none; transform: none;
}
/* 设为出战成功后的短暂高亮反馈 */
.tf-btn.primary.just-applied { animation: tfApplyFlash 1.1s ease-out; }
@keyframes tfApplyFlash {
  0%   { box-shadow: 0 0 0 0 rgba(255, 215, 122, .7), 0 8px 24px rgba(231, 196, 106, .3); }
  35%  { box-shadow: 0 0 0 6px rgba(255, 215, 122, .22), 0 0 32px rgba(255, 215, 122, .65); filter: brightness(1.25); }
  100% { box-shadow: 0 8px 24px rgba(231, 196, 106, .22); }
}
/* 顶部编号栏：出战中角标 + 青蓝发光下划线 */
.tf-num.battle::after {
  background: linear-gradient(90deg, transparent, var(--tf-cyan, #6fd8f0), transparent);
  box-shadow: 0 0 12px rgba(111, 216, 240, .9);
}
.tf-nbadge {
  position: absolute; top: -7px; right: -14px;
  padding: 1px 4px; border-radius: 6px;
  font-size: 8px; line-height: 1.2; white-space: nowrap;
  color: #0c2233; font-weight: 700; letter-spacing: .5px;
  background: var(--tf-cyan, #6fd8f0);
  box-shadow: 0 0 10px rgba(111, 216, 240, .55);
  pointer-events: none;
}
/* 底部状态：成员已改但未设为出战 → 暖金提示 */
.tf-tip-pending { color: #ffd77a; font-weight: 600; }

/* 手机端主按钮文案变长（设为出战/当前出战）后两行排布，避免与快速编队挤压重叠 */
@media (max-width: 768px) {
  .tf-foot { flex-wrap: wrap; gap: 6px; }
  .tf-foot .tf-btn { white-space: nowrap; }
  .tf-foot .tf-btn.ghost { flex: 0 0 auto; }
  .tf-foot-right {
    flex: 1 1 100%; margin-left: 0; gap: 6px;
  }
  .tf-foot-right .tf-btn {
    flex: 1 1 0; min-width: 0; padding: 0 8px; gap: 5px;
    font-size: 11.5px; letter-spacing: 0;
  }
  .tf-foot-right .tf-btn svg { width: 14px; height: 14px; flex: 0 0 14px; }
  .tf-nbadge { right: -6px; top: -8px; font-size: 7px; padding: 0 3px; }
}
/* 手机端战场区内部滚动，底部操作区固定在视图底部不被卡片覆盖 */
@media (max-width: 768px) {
  .tf-field { min-height: 0; overflow-y: auto; overflow-x: hidden; }
  .tf-field-tip { flex: 0 0 auto; padding-bottom: 4px; }
}
