/* ===== 全局字体与防溢出机制 ===== */
* {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}
/* ===== 隐藏区域 ===== */
.focus-ids{display:none!important;height:0;overflow:hidden}
.think-block{display:none!important;height:0;overflow:hidden}
/* ===== 顶部状态栏 ===== */
.top-bar{
  display:flex;flex-wrap:wrap;gap:8px 12px;
  padding:14px 18px;margin:0 0 20px 0;
  background:linear-gradient(135deg,#0a0a1a 0%,#1a1a3e 100%);
  border:1px solid rgba(138,130,255,0.3);
  border-radius:12px;
  box-shadow:0 0 15px rgba(138,130,255,0.15),inset 0 1px 0 rgba(255,255,255,0.05);
}
.tb-item{
  font-size:13px;color:#c8c4ff;
  padding:4px 10px;
  background:rgba(138,130,255,0.1);
  border-radius:6px;
  border:1px solid rgba(138,130,255,0.15);
  white-space:nowrap;
  transition:all 0.3s ease;
}
.tb-item:hover{
  background:rgba(138,130,255,0.25);
  border-color:rgba(138,130,255,0.5);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 2px 8px rgba(138,130,255,0.2);
}
/* ===== 正文区域 ===== */
text{
  display:block;
  padding:20px 24px;
  margin:0 0 16px 0;
  background:linear-gradient(180deg,rgba(15,15,30,0.95) 0%,rgba(10,10,25,0.98) 100%);
  border-left:4px solid rgba(138,130,255,0.4);
  border-radius:0 12px 12px 0;
  line-height:1.85;font-size:15px;color:#e0ddf5;
  letter-spacing:0.5px;
}
text p,text .story-p{
  margin:0 0 16px 0;padding:0;
  text-indent:2em;
}
text p:last-child,text .story-p:last-child{margin-bottom:0}
/* ===== 数值影响标签 ===== */
.itag{display:inline-block;position:relative;margin:0;padding:0;vertical-align:baseline}
.itag>summary{
  display:inline;
  cursor:pointer;
  list-style:none;
  padding:0 2px;
  background:transparent !important;
  border:none !important;
  font-weight:bold;
  text-decoration:none !important;
  transition:all 0.3s ease;
}
.itag>summary::-webkit-details-marker{display:none}
.itag>summary::marker{display:none;content:""}
.itag.up>summary{color:#6dffb0;border-bottom:2px solid rgba(109,255,176,0.5) !important;}
.itag.down>summary{color:#ff6b8a;border-bottom:2px solid rgba(255,107,138,0.5) !important;}
.itag.rel>summary{color:#d9a0ff;border-bottom:2px solid rgba(217,160,255,0.5) !important;}
.itag.evt>summary{color:#ffcf5c;border-bottom:2px solid rgba(255,207,92,0.5) !important;}
.itag>summary:hover{filter:brightness(1.2);border-bottom-color:currentColor !important;}
/* 弹窗卡片本体 */
.itag-popup{
  background:linear-gradient(180deg, #161224 0%, #0d0a14 100%);
  border:1px solid rgba(138, 130, 255, 0.25);
  border-radius:10px;
  box-shadow:0 15px 35px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow:hidden;
}
/* 移动端/默认：点击展开，紧贴上下文 */
.itag-popup {
  display:none;
  margin:4px 0;
  animation:popCard 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.itag[open] .itag-popup { display:block; }
@keyframes popCard{
  from{opacity:0;transform:translateY(-6px) scale(0.98);}
  to{opacity:1;transform:translateY(0) scale(1);}
}
/* 💻 电脑端：悬停弹窗居中于文字正下方 */
@media (min-width: 768px) and (hover: hover) {
  .itag {
    position: relative;
  }
  .itag-popup {
    display:block !important;
    position:absolute;
    left:50%;
    top:calc(100% + 8px);
    width:320px;
    max-width:min(320px, 80vw);
    margin:0;
    z-index:9999;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(-50%) translateY(8px);
    transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-wrap:break-word;
  }
  .itag:hover .itag-popup {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateX(-50%) translateY(0);
  }
}
/* 弹窗顶部颜色高亮 */
.itag.up .itag-popup{border-top:3px solid #6dffb0;}
.itag.down .itag-popup{border-top:3px solid #ff6b8a;}
.itag.rel .itag-popup{border-top:3px solid #d9a0ff;}
.itag.evt .itag-popup{border-top:3px solid #ffcf5c;}
/* 内部想法区块 */
.pop-thought{
  padding:16px 20px;
  font-size:13.5px;
  color:#d4d0f0;
  line-height:1.7;
  text-indent:0;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="rgba(138, 130, 255, 0.08)" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>') no-repeat calc(100% - 12px) 16px;
  background-size:40px;
}
.pop-thought::before{
  content:"✦ 内心波动 ✦";
  display:block;
  font-size:12px;
  color:rgba(255,255,255,0.4);
  font-weight:bold;
  letter-spacing:3px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(138,130,255,0.15);
  padding-bottom:6px;
}
/* 数值区块 */
.pop-stat{
  padding:14px 20px;
  font-size:13.5px;
  font-weight:600;
  line-height:1.6;
  text-indent:0;
  background:rgba(0, 0, 0, 0.4);
  border-top:1px dashed rgba(138, 130, 255, 0.2);
}
.pop-stat::before{
  content:"✦ 数值裁定 ✦";
  display:block;
  font-size:12px;
  color:rgba(255,255,255,0.4);
  font-weight:bold;
  letter-spacing:3px;
  margin-bottom:8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(138,130,255,0.15);
}
.pop-stat.up{color:#6dffb0;}
.pop-stat.down{color:#ff6b8a;}
.pop-stat.rel{color:#d9a0ff;}
.pop-stat.evt{color:#ffcf5c;}
/* ===== details通用折叠面板 ===== */
details:not(.itag):not(.think-block){
  margin:0 0 12px 0;
  background:linear-gradient(135deg,rgba(12,12,28,0.97) 0%,rgba(18,16,38,0.97) 100%);
  border:1px solid rgba(138,130,255,0.2);
  border-radius:12px;
  overflow:hidden;
  transition:border-color 0.3s ease;
}
details:not(.itag):not(.think-block):hover{border-color:rgba(138,130,255,0.45)}
details:not(.itag):not(.think-block)[open]{border-color:rgba(138,130,255,0.5);box-shadow:0 0 15px rgba(138,130,255,0.15)}
details:not(.itag):not(.think-block)>summary{
  padding:14px 20px;cursor:pointer;
  font-size:15px;font-weight:700;color:#c8c4ff;
  background:linear-gradient(90deg,rgba(138,130,255,0.08) 0%,transparent 100%);
  border-bottom:1px solid transparent;
  transition:all 0.3s ease;
  list-style:none;
}
details:not(.itag):not(.think-block)>summary::-webkit-details-marker{display:none}
details:not(.itag):not(.think-block)>summary::marker{display:none;content:""}
details:not(.itag):not(.think-block)>summary::after{
  content:"▸";float:right;
  transition:transform 0.3s ease;color:rgba(138,130,255,0.5);
}
details[open]:not(.itag):not(.think-block)>summary::after{transform:rotate(90deg);color:#8a82ff}
details[open]:not(.itag):not(.think-block)>summary{
  border-bottom:1px solid rgba(138,130,255,0.15);
  background:linear-gradient(90deg,rgba(138,130,255,0.15) 0%,transparent 100%);
}
/* ===== 状态栏内容通用 ===== */
.status-block{
  padding:18px 22px;
  font-size:14px;color:#c0bce0;line-height:1.75;
}
.status-block p{margin:0 0 8px 0;padding:0}
.status-block strong{color:#d8d4ff}
.status-block em{color:#b0acd0;font-size:13px}
.status-block hr{
  border:none;height:1px;margin:14px 0;
  background:linear-gradient(90deg,transparent,rgba(138,130,255,0.3),transparent);
}
/* ===== 进度条系统 ===== */
.stat-bars{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.stat-bar-item{display:flex;align-items:center;gap:10px}
.stat-bar-label{
  width:36px;font-size:12.5px;color:#9994c0;
  text-align:right;flex-shrink:0;
}
.stat-bar-track{
  flex:1;height:16px;
  background:rgba(255,255,255,0.06);
  border-radius:8px;overflow:hidden;
  border:1px solid rgba(255,255,255,0.05);
  position:relative;
}
.stat-bar-fill{
  height:100%;border-radius:8px;
  transition:width 0.6s ease;
  position:relative;
}
.stat-bar-fill::after{
  content:"";position:absolute;
  top:0;left:0;right:0;height:50%;
  background:linear-gradient(180deg,rgba(255,255,255,0.15) 0%,transparent 100%);
  border-radius:8px 8px 0 0;
}
.stat-bar-value{
  width:30px;font-size:12.5px;font-weight:700;
  text-align:left;flex-shrink:0;
}
.stat-bar-fill.vocal{background:linear-gradient(90deg,#ff6b8a,#ff8fa8)}
.stat-bar-value.vocal{color:#ff6b8a}
.stat-bar-fill.dance{background:linear-gradient(90deg,#5ce1ff,#8aecff)}
.stat-bar-value.dance{color:#5ce1ff}
.stat-bar-fill.stage{background:linear-gradient(90deg,#ffcf5c,#ffe08a)}
.stat-bar-value.stage{color:#ffcf5c}
.stat-bar-fill.variety{background:linear-gradient(90deg,#ff9a5c,#ffb88a)}
.stat-bar-value.variety{color:#ff9a5c}
.stat-bar-fill.visual{background:linear-gradient(90deg,#d9a0ff,#e6bfff)}
.stat-bar-value.visual{color:#d9a0ff}
.stat-bar-fill.stamina{background:linear-gradient(90deg,#6dffb0,#9affcc)}
.stat-bar-value.stamina{color:#6dffb0}
.stat-bar-fill.mental{background:linear-gradient(90deg,#8a82ff,#aaa4ff)}
.stat-bar-value.mental{color:#8a82ff}
.stat-bar-fill.trust{background:linear-gradient(90deg,#5cb8ff,#8ad0ff)}
.stat-bar-value.trust{color:#5cb8ff}
.stat-bar-fill.favor{background:linear-gradient(90deg,#ff5ca0,#ff8ac0)}
.stat-bar-value.favor{color:#ff5ca0}
.stat-bar-fill.depend{background:linear-gradient(90deg,#a08aff,#bfb0ff)}
.stat-bar-value.depend{color:#a08aff}
/* ===== 团队简表 ===== */
.team-table{padding:12px;overflow-x:auto}
.team-table table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:13px;color:#c0bce0;
}
.team-table thead tr{
  background:linear-gradient(90deg,rgba(138,130,255,0.15),rgba(138,130,255,0.05));
}
.team-table th{
  padding:10px 8px;font-weight:700;color:#a8a2e0;
  text-align:center;font-size:12px;
  border-bottom:2px solid rgba(138,130,255,0.3);
  white-space:nowrap;
}
.team-table td{
  padding:8px 6px;text-align:center;
  border-bottom:1px solid rgba(138,130,255,0.08);
  transition:background 0.2s ease;
}
.team-table tbody tr:hover td{background:rgba(138,130,255,0.08)}
.team-table tbody tr:nth-child(odd){background:rgba(255,255,255,0.015)}
.team-table td:first-child{
  font-weight:700;color:#d8d4ff;text-align:left;
  padding-left:12px;white-space:nowrap;
}
.team-table td:nth-child(2){color:#9994c0;font-size:12px}
.team-table td:last-child{font-size:12px;white-space:nowrap;}
/* ===== 商单卡片 ===== */
.biz-board{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px;padding:18px 20px;
}
.biz-card{
  padding:14px 16px;
  background:linear-gradient(135deg,rgba(20,18,40,0.9),rgba(28,25,55,0.9));
  border:1px solid rgba(138,130,255,0.15);
  border-radius:12px;
  transition:all 0.3s ease;
}
.biz-card:hover{
  border-color:rgba(138,130,255,0.45);
  transform:translateY(-3px);
  box-shadow:0 8px 25px rgba(138,130,255,0.15);
}
.biz-card p{margin:0 0 6px 0;padding:0;font-size:13px;color:#b0acd0}
.biz-name{font-size:14.5px!important;font-weight:700;color:#e0ddf5!important;margin-bottom:10px!important}
.biz-pay{color:#6dffb0!important;font-weight:600}
.biz-req{color:#ffcf5c!important}
.biz-cost{color:#ff9a5c!important}
.biz-fx{color:#d9a0ff!important;font-style:italic}
/* 商单记录表 */
.biz-history{padding:12px;overflow-x:auto}
.biz-history table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:13px;color:#c0bce0;
}
.biz-history th{
  padding:10px 8px;font-weight:700;color:#a8a2e0;
  text-align:center;font-size:12px;
  border-bottom:2px solid rgba(138,130,255,0.3);
  background:linear-gradient(90deg,rgba(138,130,255,0.12),transparent);
  white-space:nowrap;
}
.biz-history td{
  padding:8px 6px;text-align:center;
  border-bottom:1px solid rgba(138,130,255,0.08);
}
.biz-history tbody tr:hover td{background:rgba(138,130,255,0.08)}
/* ===== 记忆区 ===== */
.memory-block{padding:18px 22px;font-size:13.5px;color:#c0bce0}
.memory-block p{margin:0 0 10px 0;padding:0}
.memory-block strong{color:#d8d4ff}
.memory-block hr{
  border:none;height:1px;margin:14px 0;
  background:linear-gradient(90deg,transparent,rgba(138,130,255,0.3),transparent);
}
.memory-block table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:13px;color:#b0acd0;margin:8px 0;
}
.memory-block th{
  padding:9px 8px;font-weight:700;color:#a8a2e0;
  text-align:center;font-size:12px;
  border-bottom:2px solid rgba(138,130,255,0.25);
  background:rgba(138,130,255,0.06);
  white-space:nowrap;
}
.memory-block td{
  padding:8px;text-align:center;
  border-bottom:1px solid rgba(138,130,255,0.06);
  line-height:1.6;
}
.memory-block td:last-child{text-align:left;padding-left:12px}
.memory-block tbody tr:hover td{background:rgba(138,130,255,0.06)}
/* ===== 行动选项栏 ===== */
.action-box{
  margin:20px 0 0 0;padding:18px 22px;
  background:linear-gradient(135deg,rgba(12,12,28,0.97),rgba(22,18,45,0.97));
  border:1px solid rgba(138,130,255,0.3);
  border-radius:12px;
  box-shadow:0 0 20px rgba(138,130,255,0.12);
}
.action-title{
  margin:0 0 12px 0;padding:0;
  font-size:16px;font-weight:700;color:#c8c4ff;
}
.act-opt{
  margin:0 0 8px 0;padding:10px 14px;
  background:rgba(138,130,255,0.06);
  border:1px solid rgba(138,130,255,0.12);
  border-radius:8px;
  font-size:14px;color:#d8d4ff;
  cursor:pointer;
  transition:all 0.3s ease;
}
.act-opt:hover{
  background:rgba(138,130,255,0.15);
  border-color:rgba(138,130,255,0.4);
  transform:translateX(5px);
  box-shadow:0 4px 12px rgba(138,130,255,0.15);
}
.act-hint{
  margin:10px 0 0 0;padding:0;
  font-size:12.5px;color:#7a76a0;font-style:italic;
}
/* ===== 关系网 ===== */
.status-block p strong{letter-spacing:0.3px}
/* ===== 移动端兼容微调 ===== */
@media(max-width:480px){
  .top-bar{padding:10px 12px;gap:6px 8px}
  .tb-item{font-size:12px;padding:3px 8px}
  text{padding:16px 18px;font-size:14px;line-height:1.8}
  .biz-board{grid-template-columns:1fr;gap:10px;padding:12px}
  .stat-bar-label{width:32px;font-size:11.5px}
  .stat-bar-track{height:14px}
  .stat-bar-value{width:26px;font-size:11.5px}
  .team-table{font-size:11.5px}
  .team-table th,.team-table td{padding:6px 4px}
  .act-opt{padding:8px 12px;font-size:13.5px}
  .itag-popup{margin:2px 0}
  .pop-thought{padding:12px 16px;font-size:13px}
  .pop-stat{padding:12px 16px;font-size:13px}
}