/* ==========================================================================
   智学伴 · PC 三栏工作台（pc-shell.css）
   依据设计稿 ui_design_pkg/PC/P01：220 侧栏 + 主区 + 320 AI 栏
   纯样式 + 布局，无业务逻辑
   ========================================================================== */

#pcShell{display:none}

/* ---------- 桌面：三栏 ---------- */
@media (min-width:900px){
  /* 外壳必须铺满整屏：旧规则把 body>.phone 限到 1134，三栏右边会空出一条 */
  body > .phone{width:100vw!important;max-width:none!important;height:100dvh!important;min-height:0!important}
  body > .phone > .screen{width:100%!important;height:100%!important;border-radius:0!important}

  /* 旧的手机外壳在 PC 下退成"容器"，状态栏/底栏不再出现 */
  .phone.pc > .screen{padding:0;background:#F7FCFA}
  .phone.pc .statusbar,
  .phone.pc > .screen > .tabbar{display:none!important}

  #pcShell{
    display:block;
    position:absolute;inset:0;
    /* 不要给 z-index：一旦成了层叠上下文，里面的 .layer（fixed, z 70）
       就会被 z 60 的遮罩盖住，弹窗变灰且点不动。 */
    z-index:auto;
    background:#F7FCFA;
  }
  /* 设计稿 .pcf 是 1366×768 画板，这里改成自适应铺满 */
  #pcShell > .pcf{
    width:100%!important;height:100%!important;
    display:flex!important;flex:1 1 auto;overflow:hidden;
  }
  #pcShell .pcf-side{width:220px!important;flex:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
  #pcShell .pcf-side::-webkit-scrollbar{display:none}
  #pcShell .pcf-ai{width:320px!important;flex:none;display:flex;flex-direction:column;min-height:0}
  /* 主区：原有 .views 直接作为中间列 */
  #pcShell .pcf > .views.pcf-views{
    flex:1;min-width:0;position:relative;
    padding:0!important;
    overflow-y:auto;overflow-x:hidden;
    display:block;
    background:
      radial-gradient(780px 300px at 78% -10%,rgba(63,207,166,.12),transparent 62%),
      radial-gradient(560px 260px at 4% 104%,rgba(34,211,238,.07),transparent 60%),
      #F8FCFA;
    scrollbar-width:thin;
  }
  #pcShell .pcf > .views.pcf-views::-webkit-scrollbar{width:8px}
  #pcShell .pcf > .views.pcf-views::-webkit-scrollbar-thumb{background:#D6EADF;border-radius:8px}

  /* 每个视图在 PC 里变成普通文档流（整页滚动，不再内部窄条滚动） */
  #pcShell .pcf-views > .view{
    position:relative!important;inset:auto!important;
    height:auto!important;min-height:100%;
    overflow:visible!important;
    padding:18px 26px 40px!important;
    opacity:1!important;transform:none!important;
    pointer-events:auto;
  }
  #pcShell .pcf-views > .view:not(.on){display:none!important}

  /* 设计稿骨架：撑开、居中、限宽 */
  #pcShell .pcf-views .dsg{width:100%!important;max-width:none!important;display:block!important}
  #pcShell .pcf-views .dsg .phone{
    width:100%!important;max-width:none!important;
    height:auto!important;min-height:100%!important;
    border-radius:0!important;box-shadow:none!important;
    background-color:transparent!important;
    background-image:none!important;
    overflow:visible!important;
  }
  #pcShell .pcf-views .dsg .phone .glow{display:none}
  #pcShell .pcf-views .dsg .scr{
    flex:none!important;height:auto!important;
    overflow:visible!important;
    width:100%!important;max-width:1040px;
    margin:0 auto;
    padding:0!important;
  }
  /* 对话页要一屏高：输入条必须贴底，中间消息区自己滚 */
  #pcShell .pcf-views #v-chat .dsg{height:calc(100dvh - 76px)!important}
  #pcShell .pcf-views #v-chat .dsg > .phone{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column}
  #pcShell .pcf-views #v-chat .dsg .scr{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;padding-bottom:14px!important}

  /* 手机端的顶部留白在 PC 上不需要 */
  #pcShell .pcf-views .h-top{padding-top:6px!important}
  #pcShell .pcf-views .chat-top{padding-top:4px!important}
  #pcShell .pcf-views .ma-top{padding-top:6px!important}

  /* 隐藏手机端才需要的元素 */
  #pcShell .pcf-views .tabbar,
  #pcShell .pcf-views .sidenav,
  #pcShell .pcf-views .statusbar{display:none!important}
  /* 旧版 PC 底部工具条（设计稿 P01 没有这一条，常用在左栏） */
  .ds-pc-tools{display:none!important}
  #sideNav{display:none!important}

  /* 注意：这里绝对不能给 #pcShell 加 filter/transform/opacity——
     任何一项都会创建层叠上下文，把内部 position:fixed 的 .layer（z-index 70）
     困在外壳里，结果被 z-index 60 的遮罩盖住，弹窗整体变灰半透明、还点不动。 */
}

/* ---------- 右栏 AI：补齐设计稿缺的容器样式 ---------- */
#pcShell .pcf-ai .ah{flex:none;display:flex;align-items:center;gap:9px;padding:14px 14px 11px;border-bottom:1px solid rgba(18,110,86,.09)}
#pcShell .pcf-ai .ah .owl{width:34px;height:34px;border-radius:11px;overflow:hidden;flex:none;background:#EAF9F3}
#pcShell .pcf-ai .ah .owl img{width:100%;height:100%;object-fit:contain}
#pcShell .pcf-ai .ah > div:last-child{min-width:0}
#pcShell .pcf-ai .ah b{font-size:13px;display:block;color:#0F2A22;letter-spacing:.2px}
#pcShell .pcf-ai .ah span{font-size:9.5px;color:#8AA79B;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pcShell .pcf-ai .ah .aact{margin-left:auto;width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  color:#5C7E71;background:#F2FAF6;border:1px solid #E1F0E9;cursor:pointer;flex:none}
#pcShell .pcf-ai .ah .aact:hover{background:#E7F7F0;color:#1E9E7A}

#pcShell .pcf-ai .msgs{flex:1;min-height:0;overflow-y:auto;padding:12px 14px 4px;display:flex;flex-direction:column;gap:9px;scrollbar-width:none}
#pcShell .pcf-ai .msgs::-webkit-scrollbar{display:none}
#pcShell .pcf-ai .msg{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
#pcShell .pcf-ai .msg.me{align-items:flex-end}
#pcShell .pcf-ai .msg .bb{
  max-width:100%;font-size:11.5px;line-height:1.75;color:#1C3B30;
  background:#fff;border:1px solid rgba(18,110,86,.10);border-radius:12px;
  padding:9px 11px;box-shadow:0 6px 16px -12px rgba(10,60,45,.5)}
#pcShell .pcf-ai .msg.me .bb{background:linear-gradient(135deg,#3FD8AC,#22B98C);color:#fff;border-color:transparent}
#pcShell .pcf-ai .msg .bb b{font-weight:800;color:#1E9E7A}
#pcShell .pcf-ai .msg.me .bb b{color:#fff}
#pcShell .pcf-ai .mact{display:flex;align-items:center;gap:5px;font-size:9px;color:#96AEA3}
#pcShell .pcf-ai .mact .sk{width:11px;height:11px;border-radius:50%;background:#D9F2E8;display:block}
#pcShell .pcf-ai .mact em{font-style:normal}

#pcShell .pcf-ai .qp{flex:none;display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px 10px}
#pcShell .pcf-ai .qp div{
  font-size:10.5px;color:#3E5B4C;background:#fff;border:1px solid #DCF0E6;
  border-radius:999px;padding:5px 10px;cursor:pointer;transition:.15s}
#pcShell .pcf-ai .qp div:hover{background:#EAF9F3;border-color:#9FE3CB;color:#1E9E7A}

#pcShell .pcf-ai .inp{
  flex:none;margin:0 14px 14px;height:40px;border-radius:999px;
  background:#fff;border:1px solid #DCEFE6;display:flex;align-items:center;gap:8px;
  padding:0 6px 0 14px;cursor:text;box-shadow:0 8px 20px -16px rgba(10,60,45,.6)}
#pcShell .pcf-ai .inp .ph{flex:1;font-size:11px;color:#9FB5AA;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pcShell .pcf-ai .inp .sd{width:28px;height:28px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:linear-gradient(135deg,#3FD8AC,#22B98C);color:#fff}

/* 侧栏小修：Today 行与孩子卡在窄高屏下的压缩 */
#pcShell .pcf-side .td .ti em{margin-left:auto;font-style:normal;font-size:9px;color:#6FEBC2}
#pcShell .pcf-side .td .ti b{flex:1;min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pcShell .pcf-side .kid .kh .av{text-transform:none}
/* paintIcons（旧图标系统）会把 .ic 换成彩色位图，设计稿侧栏要线性图标 */
#pcShell .pcf-side .qv .ic{background:rgba(140,240,200,.10)!important;width:22px!important;height:22px!important;
  min-width:22px!important;min-height:22px!important;display:grid;place-items:center;box-shadow:none!important}
#pcShell .pcf-side .qv .ic::after{display:none!important}


/* ===== 窄桌面（900–1279）：右栏先让位 =====
   220 侧栏 + 320 AI 栏会吃掉 540，中间只剩 360——比手机还窄，
   卡片里的流程标签会被压成两行。这个区间先收起 AI 栏（导航里仍有啾啾入口）。 */
@media (min-width:900px) and (max-width:1279px){
  #pcShell .pcf-ai{display:none!important}
  #pcShell .pcf-side{width:206px!important}
}
@media (min-width:900px) and (max-width:1049px){
  #pcShell .pcf-views > .view{padding:16px 18px 34px!important}
}

/* ===== 侧栏观感修正（2026-11-11 晚） =====
   设计稿的 .nv 带两条 1px inset 高光/暗线，7 项并排看像 7 个描边输入框；
   只在当前项保留描边和左侧高亮条，其余纯文字，层级才清楚。 */
#pcShell .pcf-side .nv{box-shadow:none!important}
#pcShell .pcf-side .nv.on{
  box-shadow:inset 0 0 0 1px rgba(75,211,170,.22),0 10px 22px -18px rgba(0,0,0,.9)!important;
}
#pcShell .pcf-side .nv:hover{background:rgba(255,255,255,.045)}
#pcShell .pcf-side .nv svg{width:18px!important;height:18px!important}
#pcShell .pcf-side .lg i svg{width:22px!important;height:22px!important}

/* ==========================================================================
   PC 首页（设计稿 P01）：主区两列卡片，替代「手机页拉宽」
   ========================================================================== */
@media (min-width:900px){
  #pcShell #v-today{padding:0!important}
  #pcShell #v-today > .dsg{display:none!important}

  #pcHome{max-width:1180px;margin:0 auto;padding:18px 24px 30px;box-sizing:border-box}

  /* 顶部一行：问候 + 本地运行标记 */
  #pcHome .ph-bar{display:flex;align-items:flex-end;gap:14px;margin:2px 2px 16px}
  #pcHome .ph-hello b{font-size:19px;letter-spacing:-.3px;color:#0F2A22;display:block}
  #pcHome .ph-hello span{display:block;margin-top:5px;font-size:12.5px;color:#6E8C7F}
  #pcHome .ph-hello em{font-style:normal;font-weight:800;color:#0F2A22}
  #pcHome .ph-badge{margin-left:auto;display:flex;align-items:center;gap:6px;height:28px;padding:0 12px;
    border-radius:999px;background:#fff;border:1px solid #E1F0E9;font-size:10.5px;color:#5E8375}
  #pcHome .ph-badge i{width:6px;height:6px;border-radius:50%;background:#3FCFA6;box-shadow:0 0 0 3px rgba(63,207,166,.18)}

  /* 两列：左宽右窄 */
  #pcHome .ph-grid{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);gap:16px;align-items:start}
  #pcHome .ph-card{
    background:#fff;border-radius:20px;padding:18px 20px;
    border:1px solid rgba(18,110,86,.07);
    box-shadow:0 18px 40px -34px rgba(10,60,45,.65),0 2px 6px -4px rgba(10,60,45,.08);
  }

  /* hero：接着上次 */
  #pcHome .ph-hero{position:relative;padding-right:110px;min-height:196px}
  #pcHome .ph-hero h2{font-size:24px;line-height:1.32;letter-spacing:-.5px;margin:10px 0 0;color:#0F2A22;max-width:520px}
  #pcHome .ph-ring{position:absolute;right:20px;top:18px;width:62px;height:62px;display:grid;place-items:center}
  #pcHome .ph-ring svg{position:absolute;inset:0;width:62px;height:62px}
  #pcHome .ph-ring b{position:relative;font-size:14px;color:#0F2A22}
  #pcHome .ph-tags{display:flex;gap:7px}
  #pcHome .ph-tags span{height:24px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;font-size:11px;font-weight:700}
  #pcHome .ph-tags .a{background:#EAF9F3;color:#17A87C}
  #pcHome .ph-tags .b{background:#FFF4E2;color:#B07914}

  /* 4 步流程 */
  #pcHome .ph-steps{display:flex;align-items:center;gap:0;margin:22px 0 4px}
  #pcHome .ph-steps .n{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:74px}
  #pcHome .ph-steps .dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
    background:#E9F7F1;color:#7FA99A;font-size:11px;font-weight:700}
  #pcHome .ph-steps .dot svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
  #pcHome .ph-steps .n.done .dot{background:#3FCFA6;color:#fff}
  #pcHome .ph-steps .n.now .dot{background:#fff;border:2px solid #3FCFA6;color:#17A87C}
  #pcHome .ph-steps .lbl{font-size:11.5px;color:#54786A;white-space:nowrap}
  #pcHome .ph-steps .n.now .lbl{color:#0F2A22;font-weight:700}
  #pcHome .ph-steps .line{flex:1;height:2px;border-radius:2px;background:#E4F3EC;margin:0 6px 20px}
  #pcHome .ph-steps .line.on{background:#9FEAD3}

  #pcHome .ph-hero-foot{display:flex;align-items:center;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid #EFF7F3}
  #pcHome .ph-hero-foot span{font-size:12px;color:#6E8C7F}
  #pcHome .ph-cta{margin-left:auto;height:42px;padding:0 26px;border:none;border-radius:999px;cursor:pointer;
    background:linear-gradient(135deg,#3FD8AC,#22B98C);color:#fff;font-size:13.5px;font-weight:800;
    box-shadow:0 12px 24px -14px rgba(20,150,115,.9);font-family:inherit}
  #pcHome .ph-cta:hover{filter:brightness(1.03)}

  /* 卡片小标题 */
  #pcHome .ph-h{display:flex;align-items:baseline;gap:8px;margin-bottom:14px}
  #pcHome .ph-h b{font-size:14.5px;color:#0F2A22}
  #pcHome .ph-h span{font-size:10.5px;color:#93AAA0}

  /* 学科进度 */
  #pcHome .ph-srow{display:flex;align-items:flex-start;gap:10px;margin-bottom:11px;padding:3px 6px;border-radius:10px;cursor:pointer}
  #pcHome .ph-srow:hover{background:#F5FBF8}
  #pcHome .ph-srow .nm{width:38px;flex:none;font-size:12px;color:#33513F;line-height:12px;padding-top:2px}
  #pcHome .ph-srow .col{flex:1;min-width:0}
  #pcHome .ph-srow .cp{display:block;margin-top:5px;font-size:9.5px;color:#9FB5AA;letter-spacing:.2px}
  #pcHome .ph-srow .tr{height:5px;border-radius:3px;background:#EDF6F1;overflow:hidden}
  #pcHome .ph-srow .tr i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#3FD8AC,#7BE8C8)}
  #pcHome .ph-srow b{width:34px;flex:none;text-align:right;font-size:11.5px;line-height:12px;padding-top:1px;color:#5E8375;font-variant-numeric:tabular-nums}

  /* 今日任务行 */
  #pcHome .ph-trow{display:flex;align-items:center;gap:12px;padding:11px 10px;border-radius:14px;cursor:pointer}
  #pcHome .ph-trow:hover{background:#F5FBF8}
  #pcHome .ph-trow .ic{width:36px;height:36px;border-radius:11px;background:#F1FAF5;display:grid;place-items:center;flex:none}
  #pcHome .ph-trow .ic img{width:22px;height:22px;object-fit:contain}
  #pcHome .ph-trow .tx{flex:1;min-width:0}
  #pcHome .ph-trow .tx b{display:block;font-size:13px;color:#0F2A22;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #pcHome .ph-trow .tx span{display:block;margin-top:3px;font-size:11px;color:#93AAA0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #pcHome .ph-trow .go{flex:none;height:28px;padding:0 14px;border-radius:999px;background:#FFF4E0;color:#B07914;
    font-size:11.5px;font-weight:700;display:inline-flex;align-items:center}

  /* 本周学习柱 */
  #pcHome .ph-wbars{display:flex;align-items:flex-end;gap:10px;height:92px;padding:0 2px}
  #pcHome .ph-wcol{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;height:100%}
  #pcHome .ph-wcol i{width:100%;max-width:26px;border-radius:7px;background:#E8F4EE;display:block}
  #pcHome .ph-wcol.act i{background:#B9EFDC}
  #pcHome .ph-wcol.today i{background:linear-gradient(180deg,#3FD8AC,#22B98C)}
  #pcHome .ph-wcol span{font-size:10.5px;color:#93AAA0}
  #pcHome .ph-wcol.today span{color:#0F2A22;font-weight:700}
  #pcHome .ph-week-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:11px;color:#7E9A8C}

  /* 底部工具条 */
  #pcHome .ph-tools{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 14px;background:#fff;
    border-radius:18px;border:1px solid rgba(18,110,86,.07);box-shadow:0 14px 30px -28px rgba(10,60,45,.6)}
  #pcHome .ph-tool{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:12px;cursor:pointer}
  #pcHome .ph-tool:hover{background:#F2FAF6}
  #pcHome .ph-tool i{width:26px;height:26px;border-radius:9px;background:#EAF9F3;display:grid;place-items:center;color:#1E9E7A}
  #pcHome .ph-tool svg{width:15px;height:15px}
  #pcHome .ph-tool b{font-size:12px;color:#33513F;font-weight:600}
  #pcHome .ph-next{margin-left:auto;display:flex;align-items:center;gap:8px;height:40px;padding:0 18px;border-radius:999px;
    background:#F1FAF5;color:#1E9E7A;cursor:pointer;max-width:42%}
  #pcHome .ph-next span{font-size:9px;letter-spacing:1.4px;opacity:.7}
  #pcHome .ph-next b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #pcHome .ph-next i{font-style:normal}
  #pcHome .ph-next:hover{background:#E4F7EE}

  #pcHome .ph-empty{padding:18px 2px;font-size:11.5px;color:#93AAA0}
}

@media (min-width:900px) and (max-width:1180px){
  #pcHome .ph-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #pcHome .ph-hero{padding-right:84px}
  #pcHome .ph-hero h2{font-size:20px}
  #pcHome .ph-tool b{display:none}
  #pcHome .ph-tool{padding:8px 10px}
}

/* 底部「啾啾记得」横条：把工具条上方的大片空白变成有用的信息 */
@media (min-width:900px){
  #pcHome .ph-memo{display:flex;align-items:center;gap:14px;margin-top:16px;
    background:linear-gradient(120deg,#F2FDF8,#EAF9F3);border-color:#DDF3E9}
  #pcHome .ph-memo .owl{width:42px;height:42px;border-radius:14px;background:#fff;display:grid;place-items:center;flex:none;
    box-shadow:0 8px 18px -14px rgba(10,60,45,.7)}
  #pcHome .ph-memo .owl img{width:28px;height:28px;object-fit:contain}
  #pcHome .ph-memo .tx{flex:1;min-width:0}
  #pcHome .ph-memo .tx b{font-size:11px;color:#17A87C;letter-spacing:.4px}
  #pcHome .ph-memo .tx span{display:block;margin-top:4px;font-size:12.5px;color:#1C3B30;line-height:1.6}
  #pcHome .ph-memo .tx em{display:block;margin-top:4px;font-style:normal;font-size:11.5px;color:#7E9A8C}
  #pcHome .ph-ask{flex:none;height:34px;padding:0 18px;border-radius:999px;border:1px solid #9FE3CB;background:#fff;
    color:#17A87C;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
  #pcHome .ph-ask:hover{background:#E7F7F0}
  /* 0% 也给一条可见的最小条，免得像没渲染 */
  #pcHome .ph-srow .tr i{min-width:2px}
}

/* 我的/掌握 是手机信息架构，PC 上拉满 900 会变成超宽长条：限到 760 居中，
   同时藏掉旧版「我的」网格（.ds-grid），它在手机端本来就不显示，PC 下会重复一屏九宫格。 */
@media (min-width:900px){
  #pcShell .pcf-views #v-me .dsg .scr,
  #pcShell .pcf-views #v-mastery .dsg .scr{max-width:760px}
  #pcShell .pcf-views #v-subject .dsg .scr{max-width:900px}
  #pcShell .pcf-views #v-me .ds-grid,
  #pcShell .pcf-views #v-me .card.ds-grid{display:none!important}
  #pcShell .pcf-views #v-me .hero2{border-radius:22px;margin-top:2px;overflow:hidden}
  #pcShell .pcf-views #v-me .p-me{padding-bottom:8px}
}

/* 学科页在 PC 用三列：两列时每张卡 430 宽，内容只占左边一半，右边全空 */
@media (min-width:900px){
  #pcShell .pcf-views #v-subject .grid2{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
}

/* ===== 对话页（M10 在 PC 的正确打开方式）：消息列限宽居中 =====
   手机整屏拉到 900+ 宽，气泡行长且两侧空旷——列宽 720 居中，
   头/知识点条/快捷问/输入条全部同宽对齐。 */
@media (min-width:900px){
  #pcShell .pcf-views #v-chat .scr{align-items:center}
  #pcShell .pcf-views #v-chat .chh,
  #pcShell .pcf-views #v-chat .kpb,
  #pcShell .pcf-views #v-chat #chatBody,
  #pcShell .pcf-views #v-chat .quick,
  #pcShell .pcf-views #v-chat .cbar{width:720px;max-width:100%;flex:none}
  #pcShell .pcf-views #v-chat #chatBody{flex:1 1 auto!important;min-height:0}
  #pcShell .pcf-views #v-chat .msg .bub{max-width:560px}
  #pcShell .pcf-views #v-chat .msg.me{justify-content:flex-end}
  #pcShell .pcf-views #v-chat .msg.me .bub{max-width:520px}
}

/* ===== 侧栏图标加亮（原 #C6DCD2 在深绿底上几乎看不见） ===== */
#pcShell .pcf-side .qv .ic svg{stroke:#E9F6EF!important;stroke-width:1.8!important}
#pcShell .pcf-side .nv .ic svg{stroke:#DFEEE6!important}
#pcShell .pcf-side .nv.on .ic svg{stroke:#7CF0CC!important}
#pcShell .pcf-side .qv .ic{background:rgba(124,240,204,.16)!important}

/* 2026-11-11：PC 首页用 #pcHome 两列取代手机版今日页。
   只在 #pcHome 真正画出来后隐藏手机内容（.pc-home-ok 由 paintHome 成功时加上），
   否则两套内容会同时出现 / 或画失败时整片空白。 */
#pcShell .pcf-views .pc-home-ok #v-today > #dsgToday{display:none!important}

/* ==========================================================================
   2026-11-11：PC 宽屏真排版
   问题：除首页外，学科/掌握/我的仍是「手机单列 + 限宽 1040 居中」，
   1440 屏上内容只占中间 600px、字号 11–13px，下面大片空白，一眼就是手机样式。
   这里按桌面重新排：内容放宽到 1200，学科 4 列，掌握左右分栏，我的双列。
   ========================================================================== */
@media (min-width:1200px){
  /* 内容区放宽：原来 1040，边距还占 26px，实际可视更窄 */
  #pcShell .pcf-views .dsg .phone .scr{max-width:1200px!important}
  /* 中栏本身只有 900（1440-220-320），再限 1040 会让两侧多出空白，直接铺满 */
  #pcShell .pcf-views > .view{padding:20px 22px 40px!important}

  /* ---- 学科与教材：4 列大卡 ---- */
  #pcShell .pcf-views #v-subject .grid2{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
  #pcShell .pcf-views #v-subject .subject{
    min-height:152px!important;padding:16px 18px!important;border-radius:18px!important}
  #pcShell .pcf-views #v-subject .subject b{font-size:17px!important;letter-spacing:-.3px}
  #pcShell .pcf-views #v-subject .subject .u{font-size:12.5px!important;margin-top:5px!important}
  #pcShell .pcf-views #v-subject .subject .pc{font-size:13px!important;right:16px!important;top:16px!important}
  #pcShell .pcf-views #v-subject .subject .nx{font-size:11.5px!important;margin-top:8px!important}
  #pcShell .pcf-views #v-subject .subject .pb{height:5px!important}
  /* 图标容器 48px、图片只有 34px 且不居中，视觉上像「图标偏左上/像没加载」 */
  #pcShell .pcf-views #v-subject .subject .ic.m{width:44px!important;height:44px!important;display:grid!important;place-items:center}
  #pcShell .pcf-views #v-subject .subject .ic.m img{width:100%!important;height:100%!important;display:block}
  #pcShell .pcf-views #v-subject .subject.add{min-height:152px!important}
  /* 学段/教材选择器在桌面上不必铺满整行，收窄一点更像工具栏 */
  #pcShell .pcf-views #v-subject .segs,
  #pcShell .pcf-views #v-subject .stageseg{max-width:520px}

  /* ---- 掌握度：左雷达 / 右清单 ---- */
  #pcShell .pcf-views #v-mastery .scr{
    display:grid!important;
    grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);
    grid-auto-rows:min-content;
    align-content:start;
    gap:14px!important;
  }
  #pcShell .pcf-views #v-mastery .scr > :nth-child(1){grid-column:1/-1;margin-bottom:2px}
  #pcShell .pcf-views #v-mastery .scr > :nth-child(2){grid-column:1;grid-row:2 / span 3;margin-top:0!important}
  #pcShell .pcf-views #v-mastery .scr > :nth-child(3),
  #pcShell .pcf-views #v-mastery .scr > :nth-child(4){grid-column:2;margin-top:0!important}
  #pcShell .pcf-views #v-mastery .scr > :nth-child(5){grid-column:1/-1;margin-top:0!important}
  #pcShell .pcf-views #v-mastery .scr > :nth-child(6){display:none}
  #pcShell .pcf-views #v-mastery .radar{margin-top:0!important;height:100%}
  #pcShell .pcf-views #v-mastery .mah b{font-size:20px!important}
  #pcShell .pcf-views #v-mastery .mah span{font-size:12.5px!important}

  /* ---- 我的：档案/数据在上，功能九宫格 3×3 铺开 ---- */
  #pcShell .pcf-views #v-me .m8g{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
  #pcShell .pcf-views #v-me .m8c{
    min-height:104px!important;border-radius:16px!important;padding:14px 8px!important}
  #pcShell .pcf-views #v-me .m8c img{width:36px!important;height:36px!important}
  #pcShell .pcf-views #v-me .m8c b{font-size:12.5px!important;margin-top:8px!important}
  #pcShell .pcf-views #v-me .hero2{border-radius:20px!important}
  #pcShell .pcf-views #v-me .quad b{font-size:24px!important}
  #pcShell .pcf-views #v-me .quad span{font-size:11.5px!important}

  /* PC 有左侧导航，tab 主页不再需要「返回」箭头（章节页等浮层里的保留） */
  #pcShell .pcf-views > .view .head > .iconbtn:first-child{display:none!important}
}

/* 对话页在 PC 上要像聊天工具，不是「手机页放在中间」：
   1) 右栏已有啾啾入口，对话页再摆一个 AI 面板是重复的 → 切到对话时收起右栏；
   2) 中栏吃满后，消息列 1000 居中，输入条与消息同宽。 */
@media (min-width:1200px){
  body.pc-chat-full #pcShell .pcf-ai{display:none!important}
  #pcShell .pcf-views #v-chat .dsg .phone .scr{max-width:1000px!important}
  #pcShell .pcf-views #v-chat .chh,
  #pcShell .pcf-views #v-chat .kpb,
  #pcShell .pcf-views #v-chat #chatBody,
  #pcShell .pcf-views #v-chat .quick,
  #pcShell .pcf-views #v-chat .cbar{width:100%!important;max-width:none!important}
  #pcShell .pcf-views #v-chat #chatBody .msg{max-width:min(78%,720px)!important}
}

/* 2026-11-11：PC 首页 #pcHome 是插在 #v-today 最前面的独立节点。
   窄屏（手机）切回来时它不会自动消失，会盖住整个手机首页。
   由 place() 维护 body.pc-mode，这里做显隐兜底。 */
#v-today > #pcHome{display:none}
.views.pcf-views #v-today > #pcHome{display:block}

/* ---------- 900–1199：主区优先，AI 右栏收起 ----------
   设计稿 P01 是 1366 画板（220 侧栏 + 826 主区 + 320 AI 栏）。
   1080/1152 的笔记本窗口里，固定 220+320 会把主区挤到 540，
   学科卡只剩 200 宽、建议卡标题折行。这一段先把 AI 栏收起，主区拿回 860。 */
@media (min-width:900px) and (max-width:1199px){
  #pcShell .pcf-ai{display:none!important}
  #pcShell .pcf-side{width:200px!important}
}
