/* 医生内容中心 · 相变局主题层(在 editorial-admin-theme.css 之后加载)
   只改视觉,不改任何交互逻辑/类名/结构约定。 */
:root{
  --pz-brand:#0b3b2a;
  --pz-brand2:#0d2b1f;
  --pz-brandmid:#12513a;
  --pz-gold:#b08a3e;
  --pz-goldsoft:#c9a960;
  --pz-ink:#22302a;
  --pz-ink2:#5a685f;
  --pz-bg:#f5f4ee;
  --pz-card:#ffffff;
  --pz-hair:#e3e6df;
  --pz-soft:#fbf8f0;
  --pz-serif:"Songti SC","STSong","Noto Serif CJK SC","Noto Serif SC","SimSun",serif;
}

/* ---------- 相变局刊头(替代旧 .top 深色条) ---------- */
header.phead{
  background:linear-gradient(150deg,#0d2b1f 0%,#0b3b2a 55%,#12513a 100%) !important;
  color:#fff !important;
  border-bottom:2px solid var(--pz-gold) !important;
  box-shadow:0 6px 24px rgba(11,59,42,.18) !important;
  padding:14px 20px 13px;
  position:relative;
  overflow:hidden;
  height:auto !important;
  backdrop-filter:none;
}
header.phead::after{
  content:"醫";
  position:absolute;right:-14px;bottom:-52px;
  font-family:var(--pz-serif);
  font-size:150px;line-height:1;
  color:rgba(255,255,255,.05);
  pointer-events:none;
}
.phead-in{
  max-width:1220px;margin:0 auto;
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
}
.phead-brand{display:flex;flex-direction:column;gap:3px;min-width:0}
.phead-brand .kicker{
  font-size:11.5px;letter-spacing:5px;color:var(--pz-goldsoft) !important;
  font-weight:400;white-space:nowrap;
}
header.phead h1{
  margin:0;
  font-family:var(--pz-serif) !important;
  font-weight:900 !important;
  font-size:20px !important;
  letter-spacing:2px !important;
  color:#fff !important;
  line-height:1.3;
}
.phead-sub{font-size:12px;color:rgba(255,255,255,.62);letter-spacing:.5px;margin-top:2px}
.phead-sp{flex:1}
.phead-nav{
  display:flex;align-items:center;gap:4px 14px;flex-wrap:wrap;
  font-size:13px;
}
header.phead .phead-nav a{
  color:rgba(255,255,255,.82) !important;
  text-decoration:none;
  padding:3px 2px;
  border-bottom:2px solid transparent;
  white-space:nowrap;
}
header.phead .phead-nav a:hover{color:var(--pz-goldsoft) !important;border-bottom-color:var(--pz-goldsoft)}
header.phead .phead-nav a.cur{
  color:#fff !important;
  border-bottom-color:var(--pz-gold);
  font-weight:700;
}
header.phead .phead-nav #who,
header.phead .phead-nav .muted{color:var(--pz-goldsoft) !important;font-size:12px}

/* ---------- 按钮:黑胶囊 → 品牌绿/金 ----------
   editorial-admin-theme 里 button:not(...)×6 黑底规则特异度到 0,6,1,
   这里统一借 :not(#_) 抬到 ID 级(1,x,x)确保稳赢。 */
.btn:not(#_):not(.gray):not(.red):not(.o):not(.g){
  background:var(--pz-brand) !important;
  color:#fff !important;
  border-radius:10px !important;
  border:1px solid var(--pz-brand) !important;
}
.btn:not(#_):not(.gray):not(.red):not(.o):not(.g):hover{background:var(--pz-brandmid) !important;border-color:var(--pz-brandmid) !important}
.btn.g:not(#_):not(.gray):not(.red):not(.o){
  background:linear-gradient(135deg,#b08a3e,#9a7426) !important;
  color:#fff !important;
  border:1px solid #9a7426 !important;
  border-radius:10px !important;
}
.btn.g:not(#_):not(.gray):not(.red):not(.o):hover{background:linear-gradient(135deg,#bd9650,#a87e2c) !important}
.btn.gray:not(#_){
  background:#fff !important;
  color:var(--pz-ink2) !important;
  border:1px solid var(--pz-hair) !important;
  border-radius:10px !important;
}
.btn.gray:not(#_):hover{border-color:var(--pz-gold) !important;color:var(--pz-brand) !important}
.btn.o:not(#_):not(.gray):not(.red):not(.g){
  background:#fff !important;color:var(--pz-brand) !important;
  border:1px solid var(--pz-brand) !important;border-radius:10px !important;
}
.btn.red:not(#_){
  background:#b33b2e !important;color:#fff !important;
  border:1px solid #b33b2e !important;border-radius:10px !important;
}
/* 页签按钮是 <button>(不带 .btn),同样会被黑底规则打到,这里一并抬级 */
.tabs button:not(#_){
  border-radius:10px !important;
  border:1px solid var(--pz-hair) !important;
  background:#fff !important;
  color:var(--pz-ink2) !important;
}
.tabs button:not(#_):hover{border-color:var(--pz-gold) !important;color:var(--pz-brand) !important}
.tabs button.on:not(#_){
  background:var(--pz-brand) !important;
  color:#fff !important;
  border-color:var(--pz-brand) !important;
  box-shadow:inset 0 -3px 0 var(--pz-gold) !important;
  font-weight:700;
}
/* 工作台里的其他裸 <button>(如 chkreset)保持温和样式 */

/* ---------- 页签 ---------- */
.tabs button{
  border-radius:10px !important;
  border:1px solid var(--pz-hair) !important;
  background:#fff !important;
  color:var(--pz-ink2) !important;
  font-family:var(--pz-serif);
  letter-spacing:1px;
}
.tabs button:hover{border-color:var(--pz-gold) !important;color:var(--pz-brand) !important}
.tabs button.on{
  background:var(--pz-brand) !important;
  color:#fff !important;
  border-color:var(--pz-brand) !important;
  box-shadow:inset 0 -3px 0 var(--pz-gold);
  font-weight:700;
}

/* ---------- 卡片与小标题 ---------- */
.card{
  border-radius:14px !important;
  border:1px solid var(--pz-hair) !important;
  box-shadow:0 1px 6px rgba(11,59,42,.05) !important;
}
.card h2{
  color:var(--pz-brand) !important;
  letter-spacing:1px !important;
  padding-left:11px;
  border-left:4px solid var(--pz-gold);
  line-height:1.35;
}
.card h3{color:var(--pz-brand2) !important;letter-spacing:.5px !important}

/* ---------- 表格 ---------- */
th{
  background:#f4efe3 !important;
  color:var(--pz-brand) !important;
  font-family:var(--pz-serif) !important;
  letter-spacing:1px;
  white-space:nowrap;
}
td{color:var(--pz-ink)}
tr:hover td{background:var(--pz-soft)}
.mobileCards{display:none}
.mobileItem{
  border:1px solid var(--pz-hair);
  border-radius:12px;
  background:#fff;
  padding:11px;
  margin-top:10px;
}
.mobileItem .mi-title{font-weight:800;color:var(--pz-brand);line-height:1.45}
.mobileItem .mi-meta{font-size:12.5px;color:var(--pz-ink2);line-height:1.55;margin-top:4px}
.mobileItem .mi-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.mobileItem .mi-actions .btn{flex:0 0 auto}

/* 列表容器横向可滚,手机上表格不撑破 */
[id$="List"],[id$="Lists"]{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){
  /* 表格自身成滚动块:在自己框里横滑,页面整体不破(2026-07-09) */
  table{display:block;width:max-content;min-width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table.desktopTable{display:none}
  .mobileCards{display:block}
  th,td{white-space:nowrap}
  td{max-width:220px;overflow:hidden;text-overflow:ellipsis}
  .card,.layout>*,.wide>*,.grid>*,.grid2>*,[class*="grid"]>*{min-width:0 !important;max-width:100%}
  .layout,.wide,.grid,.grid2,[class*="grid"]{min-width:0;max-width:100%}
  body{overflow-x:hidden}
}

/* ---------- 标签/状态 ---------- */
.tag{background:#e8f4ee !important;color:#0e5335 !important}
.tag.warn{background:#fbf1dd !important;color:#7a5410 !important}
.tag.bad{background:#fdecea !important;color:#7d1a12 !important}
.tag.off{background:#f0f2ef !important;color:#5a685f !important}
.tag.pause{background:#fbf1dd !important;color:#7a5410 !important}

/* 公众号工作台状态胶囊:保住绿/黄/红的语义色(editorial 会统一刷金) */
.pill.p-on:not(#_){background:#e8f4ee !important;color:#1f8a5b !important;border-color:#bcdccb !important}
.pill.p-wait:not(#_){background:#fbf1dd !important;color:#9a680f !important;border-color:#ead9b4 !important}
.pill.p-no:not(#_){background:#f0f2ef !important;color:#66706a !important;border-color:#e3e6df !important}
.pill.p-red:not(#_){background:#fdecea !important;color:#b6201b !important;border-color:#f0b5ad !important;font-weight:700}

/* ---------- 提示条 ---------- */
.notice{
  background:var(--pz-soft) !important;
  border:1px solid #ead9b4 !important;
  border-left:4px solid var(--pz-gold) !important;
  color:#7a5410 !important;
  border-radius:10px !important;
}

/* ---------- 输入控件 ---------- */
input,select,textarea{
  border-radius:9px !important;
  border-color:var(--pz-hair) !important;
}
input:focus,select:focus,textarea:focus{
  outline:none !important;
  border-color:var(--pz-gold) !important;
  box-shadow:0 0 0 3px rgba(176,138,62,.14) !important;
}
label{color:var(--pz-ink2) !important}

/* ---------- partner 页隐藏会员站底部导航(auth.js 注入,与工作台无关) ---------- */
.d2-bottom-nav{display:none !important}
body{padding-bottom:72px !important}
body.no-copilot{padding-bottom:0 !important}

/* ---------- 手机端刊头收紧 ---------- */
@media(max-width:760px){
  header.phead{padding:12px 14px 11px}
  header.phead h1{font-size:17px !important;letter-spacing:1px !important}
  .phead-brand .kicker{letter-spacing:3px;font-size:10.5px}
  .phead-in{display:block}
  .phead-nav{
    flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
    gap:0 14px;font-size:12.5px;margin-top:9px;padding-bottom:2px;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .phead-nav::-webkit-scrollbar{display:none}
  .phead-nav a{flex:0 0 auto}
  .adminFold{margin:-2px 0 0}
  .adminFold>summary{
    list-style:none;cursor:pointer;color:var(--pz-brand);
    font-weight:800;font-family:var(--pz-serif);letter-spacing:1px;
    padding-left:11px;border-left:4px solid var(--pz-gold);
  }
  .adminFold>summary::-webkit-details-marker{display:none}
  .adminFold>summary::after{content:"展开";float:right;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;font-size:12px;color:var(--pz-ink2);font-weight:500}
  .adminFold[open]>summary::after{content:"收起"}
  .adminFold .row{margin-top:12px}
}
