/* ==========================================================================
   服销大师 · 规划面谈 PC 全屏横屏版专用样式
   针对 1280×720 / 1440×900 / 1920×1080+ 横屏桌面端深度优化
   ========================================================================== */

:root {
  --pc-max-w: 100%;
  --pc-pad-x: clamp(24px, 3vw, 48px);
  --pc-surface: #ffffff;
  --pc-bg: #eef3fa;
  --pc-border: #d8e3f0;
  --pc-shadow: 0 10px 28px rgba(16, 45, 92, 0.07);
  --pc-radius: 18px;
}

html.planner-pc-mode,
html.planner-pc-mode body {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  background: linear-gradient(180deg, #e9f2fc 0%, #f3f6fb 220px, #f2f5fa 100%) !important;
  font-size: 15px !important;
  overflow-x: hidden !important;
}

/* 1. 彻底解除 430px 手机壳宽度限制，全屏横屏展开 */
html.planner-pc-mode body .app,
html.planner-pc-mode #mainView,
html.planner-pc-mode #mainView.planner-query-mode,
html.planner-pc-mode #mainView.planner-dashboard-mode,
html.planner-pc-mode #uploadView {
  width: 100% !important;
  max-width: var(--pc-max-w) !important;
  min-height: 100vh !important;
  margin: 0 !important;
  background: transparent !important;
  padding-bottom: 36px !important;
}

/* 2. 顶部通栏导航栏（PC 桌面宽屏风格） */
html.planner-pc-mode #mainView .topbar,
html.planner-pc-mode #mainView.planner-dashboard-mode .topbar {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 68px !important;
  padding: 12px var(--pc-pad-x) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--pc-border) !important;
  box-shadow: 0 4px 18px rgba(16, 45, 92, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
}

html.planner-pc-mode #mainView .toprow,
html.planner-pc-mode #mainView.planner-dashboard-mode .toprow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
}

html.planner-pc-mode #mainView .top-actions,
html.planner-pc-mode #mainView.planner-dashboard-mode .top-actions {
  width: auto !important;
  gap: 10px !important;
  flex: none !important;
}

/* 独立 PC 版隐藏指向主站手机首页的返回键，保留返回查询主页按钮 */
html.planner-pc-mode #topBack {
  display: none !important;
}

html.planner-pc-mode .planner-home-btn {
  width: auto !important;
  height: 38px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border-radius: 10px !important;
  border: 1px solid #c5daf7 !important;
  background: #f2f8ff !important;
  color: #0b63d1 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

html.planner-pc-mode .planner-home-btn:hover {
  background: #e2f0ff !important;
  border-color: #8cbdf5 !important;
}

html.planner-pc-mode .planner-home-btn::after {
  content: "切换人员";
  font-size: 13px;
  font-weight: 800;
}

html.planner-pc-mode .pc-fullscreen-btn {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: #ffffff;
  color: #1c355e;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

html.planner-pc-mode .pc-fullscreen-btn:hover {
  border-color: #1467e8;
  color: #1467e8;
  background: #f5f9ff;
}

html.planner-pc-mode #mainView .titlebox,
html.planner-pc-mode #mainView.planner-dashboard-mode .titlebox {
  flex: 1 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  padding-top: 0 !important;
  text-align: left !important;
}

html.planner-pc-mode #mainView .titlebox strong,
html.planner-pc-mode #mainView.planner-dashboard-mode .titlebox strong {
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 900 !important;
  color: #0f254a !important;
}

html.planner-pc-mode #mainView .titlebox span,
html.planner-pc-mode #mainView.planner-dashboard-mode .titlebox span {
  margin-top: 0 !important;
  font-size: 13px !important;
  color: #5b6f8e !important;
  font-weight: 700 !important;
}

html.planner-pc-mode #topPerson.planner-person-pill {
  font-size: 13px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  max-width: none !important;
}

/* 3. 主内容区全屏横屏容器 */
html.planner-pc-mode #mainView .content,
html.planner-pc-mode #mainView.planner-dashboard-mode .content {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  padding: 20px var(--pc-pad-x) 48px !important;
}

/* 4. 三大主 Tab（我的现状 / 我的损失 / 我的未来）改为大气桌面分段导航 */
html.planner-pc-mode #mainView .tabs {
  position: sticky !important;
  top: 76px !important;
  z-index: 32 !important;
  width: min(640px, 100%) !important;
  margin: 0 auto 22px !important;
  padding: 5px !important;
  border-radius: 14px !important;
  background: rgba(226, 236, 249, 0.92) !important;
  border: 1px solid #cfdff2 !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 8px 20px rgba(16, 45, 92, 0.08) !important;
}

html.planner-pc-mode #mainView .tabs button {
  min-height: 44px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
  padding: 8px 16px !important;
  transition: all 0.16s ease !important;
}

html.planner-pc-mode #mainView .tabs button.active {
  background: linear-gradient(135deg, #1672ec, #0c58c4) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(18, 100, 214, 0.25) !important;
}

/* 5. 查询首页（宽屏横排居中仪表盘风） */
html.planner-pc-mode .supervisor-query-card {
  width: min(980px, 100%) !important;
  margin: 18px auto 18px !important;
  padding: 32px 36px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid var(--pc-border) !important;
  box-shadow: var(--pc-shadow) !important;
}

html.planner-pc-mode .supervisor-query-card h2 {
  font-size: 26px !important;
  line-height: 34px !important;
}

html.planner-pc-mode .supervisor-query-card p {
  font-size: 15px !important;
  margin: 8px 0 18px !important;
}

html.planner-pc-mode .supervisor-search-row {
  grid-template-columns: minmax(0, 1fr) 148px !important;
  gap: 14px !important;
}

html.planner-pc-mode .supervisor-search-input {
  min-height: 56px !important;
  border-radius: 14px !important;
}

html.planner-pc-mode .supervisor-search-input input {
  font-size: 17px !important;
}

html.planner-pc-mode #employeeSearchButton {
  min-height: 56px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

html.planner-pc-mode .supervisor-recent-card {
  width: min(980px, 100%) !important;
  margin: 0 auto 18px !important;
  padding: 18px 24px !important;
  border-radius: 18px !important;
}

/* 6. 我的现状（profileContent）：PC 宽屏双栏/三栏横屏排版 */
html.planner-pc-mode #profileContent {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

html.planner-pc-mode #profileContent > * {
  grid-column: 1 / -1 !important;
  margin-bottom: 0 !important;
  min-width: 0 !important;
}

html.planner-pc-mode #profileContent > .empty {
  background: #ffffff;
  border: 1px dashed #c8d8ee;
  border-radius: 18px;
  padding: 56px 24px;
  font-size: 15px;
  width: min(980px, 100%);
  margin: 0 auto !important;
}

/* 个人名片 + 考核期并排或全宽舒展 */
html.planner-pc-mode #profileContent > .planner-profile-card {
  grid-column: 1 / 9 !important;
  height: 100%;
}

html.planner-pc-mode #profileContent > .supervisor-period-card {
  grid-column: 9 / 13 !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 20px 24px !important;
}

/* 当没有考核期卡片（例如主管或晋升页）时，人物名片占满全宽 */
html.planner-pc-mode #profileContent > .planner-profile-card:only-child,
html.planner-pc-mode #profileContent > .planner-profile-card:has(+ .supervisor-manager-workbench),
html.planner-pc-mode #profileContent > .planner-profile-card:has(+ .planner-promotion-shell) {
  grid-column: 1 / -1 !important;
}

html.planner-pc-mode .supervisor-gap-cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html.planner-pc-mode .supervisor-gap-card {
  padding: 18px 22px !important;
  border-radius: 16px !important;
}

html.planner-pc-mode .supervisor-gap-card b {
  font-size: 24px !important;
  line-height: 30px !important;
}

html.planner-pc-mode .supervisor-status-card {
  padding: 22px 26px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--pc-border) !important;
  box-shadow: var(--pc-shadow) !important;
}

html.planner-pc-mode .supervisor-status-tabs {
  max-width: 520px !important;
  margin-bottom: 18px !important;
}

html.planner-pc-mode .supervisor-status-tabs button {
  min-height: 42px !important;
  font-size: 14px !important;
}

/* 考核达成 3 个 KPI 横排三列 */
html.planner-pc-mode .supervisor-kpi-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html.planner-pc-mode .supervisor-kpi-row {
  margin-bottom: 0 !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  background: #f8fbff !important;
  border: 1px solid #e1ebf7 !important;
}

/* 架构图横屏宽敞展示 */
html.planner-pc-mode .planner-landscape-unit-grid,
html.planner-pc-mode .supervisor-org-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 14px !important;
}

html.planner-pc-mode .planner-landscape-chart-mount,
html.planner-pc-mode .planner-landscape-full-mount {
  width: 100% !important;
  overflow-x: auto !important;
}

/* 7. 我的损失（incomeContent）：PC 双栏横屏左右对照 */
html.planner-pc-mode #incomeContent {
  width: 100% !important;
  max-width: 100% !important;
}

html.planner-pc-mode #incomeContent .income-switch {
  width: min(440px, 100%) !important;
  margin: 0 auto 22px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 45, 92, 0.06) !important;
}

html.planner-pc-mode #candidateSim,
html.planner-pc-mode #managerSim {
  display: grid !important;
  grid-template-columns: minmax(360px, 5fr) minmax(460px, 7fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

html.planner-pc-mode #candidateSim.hidden,
html.planner-pc-mode #managerSim.hidden {
  display: none !important;
}

html.planner-pc-mode .income-missed-card {
  margin-bottom: 0 !important;
  padding: 36px 32px !important;
  border-radius: 22px !important;
  min-height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

html.planner-pc-mode .income-missed-card strong {
  font-size: clamp(44px, 4.2vw, 60px) !important;
  line-height: 1.15 !important;
  margin: 14px 0 !important;
}

html.planner-pc-mode .income-breakdown-fold {
  margin-bottom: 0 !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--pc-border) !important;
  box-shadow: var(--pc-shadow) !important;
}

html.planner-pc-mode .income-calc-card {
  padding: 22px 24px !important;
  margin-bottom: 0 !important;
}

/* 8. 我的未来（planContent）：PC 宽屏工作台 */
html.planner-pc-mode .planner-launch-page {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

html.planner-pc-mode .planner-launch-page > * {
  margin-bottom: 0 !important;
  min-width: 0 !important;
}

html.planner-pc-mode .planner-launch-page > .planner-profile-card {
  grid-column: 1 / 8 !important;
}

html.planner-pc-mode .planner-launch-page > .planner-launch-choice {
  grid-column: 8 / 13 !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 20px 24px !important;
}

html.planner-pc-mode .planner-launch-page > .planner-launch-policy {
  grid-column: 1 / 7 !important;
  padding: 22px 24px !important;
}

html.planner-pc-mode .planner-launch-page > .planner-launch-progress,
html.planner-pc-mode .planner-launch-page > .planner-launch-monitor,
html.planner-pc-mode .planner-launch-page > .planner-launch-prompt {
  grid-column: 7 / 13 !important;
  padding: 22px 24px !important;
}

html.planner-pc-mode .planner-launch-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* 规划子页面（本月达U计划 / 本月招募计划 / 结论） */
html.planner-pc-mode .planner-subpage {
  display: grid !important;
  gap: 18px !important;
}

html.planner-pc-mode .integrated-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html.planner-pc-mode .integrated-member-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)) !important;
  gap: 16px !important;
}

html.planner-pc-mode .planner-conclusion-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

/* 9. 弹窗与明细抽屉：PC 端改为居中宽对话框 */
html.planner-pc-mode .overlay {
  place-items: center !important;
  padding: 28px !important;
}

html.planner-pc-mode .sheet {
  width: min(760px, 92vw) !important;
  max-height: 88vh !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  box-shadow: 0 24px 64px rgba(10, 26, 54, 0.28) !important;
}

html.planner-pc-mode .sheet.planner-team-fyc-sheet,
html.planner-pc-mode .sheet.planner-team-relation-sheet {
  width: min(1160px, 94vw) !important;
}

html.planner-pc-mode .planner-achievement-modal section {
  width: min(520px, 90vw) !important;
}

/* 10. 中等宽度桌面 / 平板横屏自适配（< 1120px） */
@media (max-width: 1120px) {
  html.planner-pc-mode #profileContent > .planner-profile-card,
  html.planner-pc-mode #profileContent > .supervisor-period-card,
  html.planner-pc-mode .planner-launch-page > .planner-profile-card,
  html.planner-pc-mode .planner-launch-page > .planner-launch-choice,
  html.planner-pc-mode .planner-launch-page > .planner-launch-policy,
  html.planner-pc-mode .planner-launch-page > .planner-launch-progress,
  html.planner-pc-mode .planner-launch-page > .planner-launch-monitor,
  html.planner-pc-mode .planner-launch-page > .planner-launch-prompt {
    grid-column: 1 / -1 !important;
  }

  html.planner-pc-mode #candidateSim,
  html.planner-pc-mode #managerSim,
  html.planner-pc-mode .planner-conclusion-stack {
    grid-template-columns: 1fr !important;
  }

  html.planner-pc-mode .supervisor-kpi-list {
    grid-template-columns: 1fr !important;
  }
}

/* 11. 桌面端打印/导出保持整洁 */
@media print {
  html.planner-pc-mode .pc-fullscreen-btn,
  html.planner-pc-mode .planner-home-btn {
    display: none !important;
  }
}
