.pc-baidu-modal-open { overflow: hidden; }

/* Page-level import controls must stay below the sticky account menu. The
   actual Baidu file picker (#pc-baidu-netdisk) keeps its modal layer below. */
.pc-header { z-index: 1000; }

#app .pc-upload-strip,
#app .upl-file { padding-right: 286px !important; }

.pc-baidu-disk-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 136px;
  display: inline-flex;
  height: 40px;
  padding: 0 15px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d1dbe9;
  border-radius: 9px;
  color: #27364d;
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 54, 88, .05);
  font: 700 13px/1 "Microsoft YaHei", sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pc-baidu-disk-button:hover {
  border-color: #1667d9;
  color: #1667d9;
  box-shadow: 0 6px 16px rgba(22, 103, 217, .12);
  transform: translateY(calc(-50% - 1px));
}

.pc-baidu-button-icon,
.pc-baidu-title-icon,
.pc-baidu-logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4b9cff, #1264d9);
  font-weight: 800;
}

.pc-baidu-button-icon { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }

#pc-baidu-netdisk {
  position: fixed;
  z-index: 10020;
  inset: 0;
  color: #17253b;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

.pc-baidu-backdrop { position: absolute; inset: 0; background: rgba(16, 28, 48, .54); backdrop-filter: blur(3px); }

.pc-baidu-dialog {
  position: absolute;
  inset: 7vh 0 auto;
  width: min(820px, calc(100vw - 40px));
  height: min(690px, 86vh);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(204, 216, 233, .9);
  border-radius: 18px;
  background: #f7f9fc;
  box-shadow: 0 28px 80px rgba(10, 25, 49, .28);
}

.pc-baidu-dialog > header {
  display: flex;
  height: 78px;
  padding: 0 22px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e3e9f2;
  background: #fff;
}

.pc-baidu-title-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; font-size: 17px; box-shadow: 0 7px 18px rgba(20, 101, 216, .2); }
.pc-baidu-dialog h2 { margin: 0; color: #13233a; font-size: 18px; line-height: 1.35; }
.pc-baidu-dialog header p { margin: 3px 0 0; color: #78889d; font-size: 12px; }

.pc-baidu-close {
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 0;
  border-radius: 9px;
  color: #738399;
  background: #f1f4f8;
  font-size: 24px;
  line-height: 34px;
  cursor: pointer;
}
.pc-baidu-close:hover { color: #1d2b40; background: #e7ecf3; }

.pc-baidu-body { height: calc(100% - 78px); }

.pc-baidu-loading,
.pc-baidu-state {
  display: flex;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.pc-baidu-loading { gap: 13px; color: #728197; font-size: 13px; }
.pc-baidu-loading i { width: 28px; height: 28px; border: 3px solid #dbe8f9; border-top-color: #1768df; border-radius: 50%; animation: pc-baidu-spin .8s linear infinite; }
@keyframes pc-baidu-spin { to { transform: rotate(360deg); } }

.pc-baidu-state h3 { margin: 18px 0 8px; font-size: 20px; }
.pc-baidu-state p { max-width: 460px; margin: 0 0 22px; color: #6c7c92; font-size: 13px; line-height: 1.8; }
.pc-baidu-state small { margin-top: 16px; color: #94a0b0; font-size: 11px; }
.pc-baidu-logo { width: 62px; height: 62px; border-radius: 17px; font-size: 25px; box-shadow: 0 12px 28px rgba(20, 101, 216, .23); }
.pc-baidu-state-icon { display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: #e74b55; background: #fff0f1; font-size: 28px; font-weight: 800; }
.pc-baidu-state-success .pc-baidu-state-icon { color: #20a968; background: #eaf9f1; }

.pc-baidu-primary,
.pc-baidu-secondary {
  min-width: 132px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid #1768df;
  border-radius: 9px;
  font: 700 13px/40px "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.pc-baidu-primary { color: #fff; background: #1768df; box-shadow: 0 7px 17px rgba(23, 104, 223, .18); }
.pc-baidu-secondary { color: #1768df; background: #fff; }
.pc-baidu-primary:hover { background: #0f5dce; }
.pc-baidu-primary:disabled { border-color: #b9c6d7; color: #fff; background: #b9c6d7; box-shadow: none; cursor: not-allowed; }

.pc-baidu-auth-pulse { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #e8f2ff; }
.pc-baidu-auth-pulse::before, .pc-baidu-auth-pulse::after { content: ""; position: absolute; inset: 14px; border: 3px solid #1768df; border-radius: 50%; animation: pc-baidu-pulse 1.5s ease-out infinite; }
.pc-baidu-auth-pulse::after { animation-delay: .5s; }
@keyframes pc-baidu-pulse { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(1.45); } }

.pc-baidu-browser { display: grid; height: 100%; grid-template-rows: 58px minmax(0, 1fr) 72px; }
.pc-baidu-browser-bar { display: flex; padding: 0 20px; align-items: center; gap: 12px; border-bottom: 1px solid #e3e9f2; background: #fff; }
.pc-baidu-breadcrumb { display: flex; min-width: 0; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; }
.pc-baidu-breadcrumb button { max-width: 180px; padding: 0; overflow: hidden; border: 0; color: #54677f; background: transparent; font-size: 13px; text-overflow: ellipsis; cursor: pointer; }
.pc-baidu-breadcrumb button:last-child { color: #162a45; font-weight: 700; }
.pc-baidu-breadcrumb span { color: #a6b1bf; }
.pc-baidu-refresh { width: 32px; height: 32px; margin-left: auto; border: 1px solid #dce4ef; border-radius: 8px; color: #61748c; background: #fff; font-size: 19px; cursor: pointer; }

.pc-baidu-file-list { padding: 14px 18px 18px; overflow: auto; }
.pc-baidu-file { display: grid; width: 100%; min-height: 66px; padding: 9px 14px; align-items: center; grid-template-columns: 24px 42px minmax(0, 1fr) 24px; gap: 10px; border: 1px solid transparent; border-bottom-color: #e6ebf2; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.pc-baidu-file:hover { border-color: #c8dcf8; border-radius: 10px; background: #f1f7ff; }
.pc-baidu-file.is-selected { border-color: #8ab9f7; border-radius: 10px; background: #edf5ff; }
.pc-baidu-file-check { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #c8d3e1; border-radius: 5px; color: #fff; background: #fff; font-size: 12px; }
.pc-baidu-file.is-folder .pc-baidu-file-check { visibility: hidden; }
.pc-baidu-file.is-selected .pc-baidu-file-check { border-color: #1768df; background: #1768df; }
.pc-baidu-file-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; color: #e64b58; background: #fff0f1; }
.pc-baidu-file-icon.is-folder { color: #e5a821; background: #fff8df; }
.pc-baidu-file-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-baidu-file-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.pc-baidu-file-copy strong { overflow: hidden; color: #1c2d44; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pc-baidu-file-copy small { color: #8896a8; font-size: 11px; }
.pc-baidu-file-arrow { color: #8697ab; font-size: 24px; text-align: right; }
.pc-baidu-empty { display: flex; height: 100%; min-height: 300px; align-items: center; justify-content: center; flex-direction: column; color: #8795a7; }
.pc-baidu-empty b { margin-bottom: 8px; color: #506077; font-size: 14px; }
.pc-baidu-empty span { font-size: 12px; }

.pc-baidu-footer { display: flex; padding: 0 20px; align-items: center; justify-content: space-between; border-top: 1px solid #dfe6ef; background: #fff; color: #687a90; font-size: 13px; }
.pc-baidu-footer b { color: #1768df; font-size: 16px; }

.pc-baidu-import { height: 100%; padding: 28px; box-sizing: border-box; overflow: auto; }
.pc-baidu-import-head h3 { margin: 0 0 7px; font-size: 19px; }
.pc-baidu-import-head p { margin: 0 0 22px; color: #73849a; font-size: 12px; }
.pc-baidu-import-list { overflow: hidden; border: 1px solid #e0e7f0; border-radius: 12px; background: #fff; }
.pc-baidu-import-row { display: grid; min-height: 62px; padding: 10px 16px; box-sizing: border-box; align-items: center; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; border-bottom: 1px solid #e8edf3; }
.pc-baidu-import-row:last-child { border-bottom: 0; }
.pc-baidu-import-dot { width: 10px; height: 10px; border: 2px solid #cbd5e2; border-radius: 50%; }
.pc-baidu-import-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pc-baidu-import-row small { max-width: 230px; overflow: hidden; color: #8795a8; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pc-baidu-import-row.is-working .pc-baidu-import-dot { border-color: #1768df; border-top-color: transparent; animation: pc-baidu-spin .8s linear infinite; }
.pc-baidu-import-row.is-success .pc-baidu-import-dot { border-color: #21a66b; background: #21a66b; }
.pc-baidu-import-row.is-success small { color: #21a66b; }
.pc-baidu-import-row.is-error .pc-baidu-import-dot { border-color: #e5505b; background: #e5505b; }
.pc-baidu-import-row.is-error small { color: #d84955; }
.pc-baidu-import-progress { height: 7px; margin-top: 20px; overflow: hidden; border-radius: 999px; background: #e3eaf3; }
.pc-baidu-import-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3a92ff, #1768df); transition: width .25s ease; }

@media (max-width: 760px) {
  #app .pc-upload-strip,
  #app .upl-file { padding-right: 16px !important; padding-bottom: 66px !important; }
  .pc-baidu-disk-button { right: 16px; top: auto; bottom: 14px; transform: none; }
  .pc-baidu-disk-button:hover { transform: translateY(-1px); }
  .pc-baidu-dialog { inset: 18px 0 auto; width: calc(100vw - 24px); height: calc(100vh - 36px); }
  .pc-baidu-dialog > header { height: 70px; padding: 0 15px; }
  .pc-baidu-body { height: calc(100% - 70px); }
  .pc-baidu-file-list { padding: 8px; }
  .pc-baidu-footer { padding: 0 12px; }
  .pc-baidu-import { padding: 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-baidu-disk-button,
  .pc-baidu-import-progress i { transition: none; }
}
