/* 研途工作台 · White / Ink / Blue */
:root {
  color-scheme: light;
  --bg: #f6f8fb; --bg-2: #eef2f8; --paper: #fff; --paper-solid: #fff;
  --paper-2: #f3f6fb; --ink: #111827; --ink-2: #4b5563; --ink-3: #64748b; --ink-4: #64748b;
  --line: #e3e8f0; --line-2: #eef1f5; --blue: #2563eb; --blue-ink: #1d4ed8;
  --blue-soft: #edf3ff; --blue-line: #c7d8fd; --red: #dc2626; --red-soft: #fff1f2; --red-line: #fecdd3;
  --sh-1: 0 2px 4px rgb(23 42 73 / 3%);
  --sh-2: 0 8px 24px rgb(23 42 73 / 6%);
  --sh-3: 0 20px 70px rgb(23 42 73 / 16%);
  --sidebar-width: 224px; --wrap: 1280px;
}
body { font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; font-size: 15px; letter-spacing: 0; padding-left: var(--sidebar-width); overflow-x: clip; }
html { scroll-padding-top: 96px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input, select, textarea { color-scheme: light; }
input::placeholder, textarea::placeholder { color: #6b778b; opacity: 1; }
[hidden] { display: none !important; }
.grid-bg, .grid-fade { display: none; }
.wrap { max-width: var(--wrap); padding-inline: 36px; }
.workspace-skip { position: fixed; left: 240px; top: 8px; transform: translateY(-150%); background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 8px; z-index: 1000; }
.workspace-skip:focus { transform: translateY(0); }
.workspace-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: #fff; border-right: 1px solid var(--line); z-index: 80; display: flex; flex-direction: column; }
.sidebar-brand-row { padding: 28px 24px 25px; display: flex; align-items: center; justify-content: space-between; }
.workspace-sidebar .brand { gap: 12px; }
.workspace-sidebar .brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--blue); color: #fff; }
.workspace-sidebar .brand-mark .ic { width: 24px; height: 24px; }
.brand-txt { font-size: 24px; line-height: 1.3; letter-spacing: 2px; font-weight: 750; }
.brand-txt small { display: block; font-size: 10px; line-height: 1.7; color: var(--ink-3); letter-spacing: 1px; font-weight: 400; margin-top: 3px; }
.workspace-sidebar .workspace-nav { display: block; position: relative; flex: 1; order: 0; height: auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0; padding: 0 14px 14px; border: 0; background: none; width: 100%; white-space: normal; scroll-snap-type: none; animation: none; scrollbar-width: thin; }
.workspace-nav .nav-pill { display: none; }
.workspace-nav .nav-group + .nav-group { margin-top: 17px; }
.workspace-nav .nav-group-label { margin: 0 0 8px; padding-left: 15px; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 1px; }
.workspace-nav .nav-group a { position: relative; display: flex; gap: 12px; align-items: center; justify-content: flex-start; border-radius: 9px; padding: 0 15px; height: auto; min-height: 44px; margin: 3px 0; color: #526077; font-size: 13px; font-weight: 500; transition: color 150ms, background 150ms, transform 150ms; }
.workspace-nav .nav-group a .ic { width: 19px; height: 19px; stroke-width: 1.7; }
.workspace-nav .nav-group a:hover { background: #f3f6fb; color: var(--ink); transform: translateX(2px); }
.workspace-nav .nav-group a:active { transform: scale(.98); }
.workspace-nav .nav-group a.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 650; }
.workspace-nav .nav-group a.on::after { content: ""; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; margin-left: auto; }
.nav-personal { padding-top: 12px; border-top: 1px solid var(--line-2); }
.sidebar-bottom { padding: 16px; border-top: 1px solid var(--line-2); }
.sidebar-guide { display: flex; gap: 10px; align-items: center; padding: 12px 8px; border-radius: 10px; background: var(--paper-2); transition: background 150ms, transform 150ms; }
.sidebar-guide > .ic:first-child { color: var(--blue); width: 20px; height: 20px; }
.sidebar-guide > .ic:last-child { width: 14px; color: var(--ink-3); margin-left: auto; }
.sidebar-guide b { font-size: 11px; font-weight: 600; display: block; }
.sidebar-guide small { color: var(--ink-3); font-size: 10px; display: block; margin-top: 4px; }
.sidebar-guide:hover { background: var(--blue-soft); transform: translateY(-2px); }
.sidebar-note { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); padding: 18px 7px 0; }
.topbar { height: 74px; background: rgb(255 255 255 / 95%); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); z-index: 60; }
.topbar.scrolled { box-shadow: 0 3px 16px rgb(23 42 73 / 4%); }
.topbar-in { height: 74px; gap: 16px; }
.workspace-crumb { display: flex; align-items: center; gap: 10px; font-size: 12px; white-space: nowrap; }
.workspace-crumb > span { color: var(--ink-3); }
.workspace-crumb > .ic { width: 12px; height: 12px; color: #9aa6b7; }
.workspace-crumb > strong { font-weight: 500; }
.topbar-act { gap: 14px; }
.workspace-search { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-3); background: #f8fafc; font-size: 12px; transition: background 150ms, border-color 150ms, transform 150ms; }
.workspace-search .ic { width: 16px; height: 16px; }
.workspace-search kbd { font-family: inherit; font-size: 10px; color: #65738a; border: 1px solid #dbe2ee; border-radius: 4px; padding: 0 4px; margin-left: 12px; }
.workspace-search:hover { border-color: #a4bce9; background: #fff; }
.workspace-search:active { transform: scale(.98); }
.season-chip { min-height: 40px; height: auto; border-radius: 8px; background: #fff; border: 0; color: #536179; padding: 0 5px; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.season-chip:hover { color: var(--blue); background: var(--blue-soft); }
.topbar-act .mm-free { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; padding: 0 13px; }
.topbar-act .mm-free .ic { color: var(--blue); }
.sidebar-close, .mobile-menu-toggle, .mobile-dock { display: none; }
.icon-btn { min-width: 44px; min-height: 44px; }
.app { min-height: calc(100vh - 230px); }
.page { padding: 36px 0 64px; }
.page-head { margin-bottom: 28px; }
.page-head .title { font-size: clamp(26px, 3vw, 36px); line-height: 1.35; letter-spacing: -.8px; }
.eyebrow { font-size: 12px; letter-spacing: 0; font-weight: 500; margin-bottom: 10px; }
.eyebrow::before { display: none; }
.lede { font-size: 14px; line-height: 1.9; }
.btn, .tag { border-radius: 9px; min-height: 40px; }
.btn-blue, .btn-dark { color: #fff; }
.btn-dark { background: #111827; }
.btn-dark:hover { background: #26354b; }
.btn-blue:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgb(37 99 235 / 15%); }
.btn-ghost { background: #fff; }
.tag { background: #fff; }
.tag:hover { background: var(--blue-soft); }
.tag.on { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-ink); }
.card { background: #fff; box-shadow: none; border-color: var(--line); }
.card:hover { box-shadow: var(--sh-2); }
.card p { color: var(--ink-2); }
.filters, .table-wrap { background: #fff; }
.ms-filters { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap th { background: #f3f6fb; }
.table-wrap tbody tr:hover { background: #edf3ff; }
.mark-ink { background: #111827; color: #fff; }
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; }
.cmd-mask { background: rgb(15 23 42 / 32%); backdrop-filter: blur(5px); }
.cmd-box { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--sh-3); }
.cmd-item:hover, .cmd-item.sel, .cmd-item.on { background: var(--blue-soft); }
.cmd-head input { background: transparent; }
.cmd-head .kbd { min-width: 44px; min-height: 44px; color: var(--ink-2); }
.yt-toast { color: #fff; background: #111827; border-color: #111827; box-shadow: var(--sh-3); }
.workspace-footer { padding: 28px 0 32px; margin-top: 12px; background: transparent; border-top: 1px solid var(--line); }
.workspace-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: center; font-size: 11px; color: var(--ink-3); }
.workspace-footer-inner p strong { font-size: 14px; color: var(--ink); margin-right: 13px; }
.workspace-footer-inner > div { display: flex; gap: 20px; }
.workspace-footer-inner a { display: inline-flex; gap: 5px; align-items: center; min-height: 32px; }
.workspace-footer-inner a:hover { color: var(--blue); }
.workspace-footer-inner .ic { width: 12px; height: 12px; }
.workspace-footer-inner small { width: 100%; font-size: 10px; }
.workspace-noscript { position: fixed; inset: 100px 30px auto; padding: 30px; background: #fff; border: 1px solid var(--line); z-index: 999; }
@media (min-width: 981px) and (max-height: 850px) { .sidebar-brand-row { padding-block: 20px; } .workspace-nav .nav-group + .nav-group { margin-top: 10px; } .sidebar-bottom { padding: 10px 16px; } .sidebar-note { display: none; } }
@media (min-width: 981px) and (max-width: 1250px) { :root { --sidebar-width: 200px; } .wrap { padding-inline: 26px; } .topbar-act { gap: 8px; } .season-chip { display: none; } .workspace-search span { max-width: 150px; } .sidebar-brand-row { padding-inline: 20px; } }
@media (max-width: 980px) {
  body { padding-left: 0; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .wrap { padding-inline: 24px; }
  .workspace-sidebar { width: 270px; max-width: calc(100vw - 48px); transform: translateX(-105%); visibility: hidden; transition: transform 240ms var(--ease-out), visibility 240ms; z-index: 220; }
  .workspace-sidebar.is-open { transform: translateX(0); visibility: visible; }
  .sidebar-mask { position: fixed; inset: 0; background: rgb(15 23 42 / 35%); backdrop-filter: blur(3px); z-index: 219; opacity: 0; transition: opacity 220ms; }
  .sidebar-mask.is-open { opacity: 1; }
  .sidebar-close, .mobile-menu-toggle { display: grid; }
  .sidebar-brand-row { padding: 22px 20px; }
  .topbar, .topbar-in { height: 68px; }
  .topbar-in { flex-wrap: nowrap; gap: 10px; }
  .workspace-crumb > span, .workspace-crumb > .ic { display: none; }
  .workspace-crumb > strong { font-size: 14px; font-weight: 600; }
  .season-chip { display: none; }
  .topbar-act { margin-left: auto; gap: 8px; }
  .workspace-search { min-height: 44px; min-width: 44px; }
  .mobile-dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; min-height: 68px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 96%); backdrop-filter: blur(18px); border-top: 1px solid var(--line); z-index: 70; }
  .mobile-dock > a, .mobile-dock > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; color: #66758b; font-size: 10px; border-radius: 10px; transition: color 150ms, background 150ms, transform 150ms; }
  .mobile-dock .ic { width: 20px; height: 20px; stroke-width: 1.7; }
  .mobile-dock > .on { color: var(--blue-ink); background: var(--blue-soft); }
  .mobile-dock > a:active, .mobile-dock > button:active { transform: scale(.96); }
  .mobile-dock > a:hover, .mobile-dock > button:hover { background: var(--blue-soft); }
  .workspace-skip { left: 12px; }
  .pet:not([style*="top:"]) { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .topbar-in { padding-inline: 10px; gap: 4px; }
  .workspace-search { border: 0; background: transparent; padding: 0; justify-content: center; }
  .workspace-search > span, .workspace-search kbd { display: none; }
  .workspace-search .ic { width: 19px; height: 19px; }
  .topbar-act { gap: 2px; }
  .topbar-act .mm-free { min-height: 40px; padding: 0 9px; font-size: 11px; }
  .workspace-footer-inner { gap: 10px; }
  .workspace-footer-inner p { width: 100%; }
  .workspace-footer-inner small { line-height: 1.9; max-width: 32em; }
  .page { padding: 28px 0 40px; }
  .page-head .title { font-size: 27px; }
  .page-head .lede { font-size: 13px; }
  .btn, .btn-sm, .tag { min-height: 44px; }
  .cmd-box { max-width: calc(100% - 24px); }
  .yt-toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
