/* ============================================================================
   Office 2019 网页版 · 全局样式
   目标：在浏览器里复刻 Office 2019（Word / Excel / PowerPoint / OneNote / Outlook）
   的标题栏、功能区、后台视图、状态栏与各应用工作区。零外链、零 CDN。
   ========================================================================== */

*{box-sizing:border-box}
html,body{height:100%}
#root{height:100%}
body{
  margin:0;overflow:hidden;background:#f3f2f1;color:#323130;
  font-family:"Segoe UI","Segoe UI Web (West European)",-apple-system,BlinkMacSystemFont,"Noto Sans SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  font-size:12px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;padding:0;cursor:pointer}
a{color:#0078d4;text-decoration:none}
a:hover{text-decoration:underline}
:focus{outline:none}
:focus-visible{outline:2px solid #0078d4;outline-offset:-2px}
::selection{background:#cce8ff}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-thumb{background:#c8c6c4;border:3px solid transparent;background-clip:padding-box;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:#a19f9d;border:3px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}
.hidden{display:none !important}
.muted{color:#605e5c}
.spacer{flex:1}

/* 每个应用的主题色 */
body[data-app="word"]{--accent:#2b579a;--accent-2:#4a78b5;--accent-dark:#1e3f73;--titlebar:#2b579a}
body[data-app="excel"]{--accent:#217346;--accent-2:#3f8f63;--accent-dark:#185c37;--titlebar:#217346}
body[data-app="powerpoint"]{--accent:#b7472a;--accent-2:#d06a4e;--accent-dark:#8c3520;--titlebar:#b7472a}
body[data-app="onenote"]{--accent:#7719aa;--accent-2:#9a4bc3;--accent-dark:#5b1382;--titlebar:#7719aa}
body[data-app="outlook"]{--accent:#0f6cbd;--accent-2:#3b8bd8;--accent-dark:#0b5290;--titlebar:#0f6cbd}
body[data-app="hub"]{--accent:#d83b01;--accent-2:#e8622d;--accent-dark:#a82d00;--titlebar:#d83b01}

/* ============================== 通用控件 ============================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;height:28px;padding:0 14px;
  border:1px solid #8a8886;border-radius:2px;background:#fff;color:#323130;white-space:nowrap;
}
.btn:hover{background:#f3f2f1}
.btn:active{background:#edebe9}
.btn.primary{background:var(--accent,#0078d4);border-color:var(--accent,#0078d4);color:#fff}
.btn.primary:hover{filter:brightness(1.06)}
.btn.ghost{border-color:transparent;background:transparent}
.btn.ghost:hover{background:#edebe9}
.btn.danger{color:#a4262c;border-color:#a4262c}
.btn:disabled{opacity:.45;cursor:default}
.btn-sm{height:24px;padding:0 9px;font-size:11px}
.icon-btn{
  width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:2px;color:#444;
}
.icon-btn:hover{background:#edebe9}
.icon-btn.active{background:#d2d0ce}
.office-select{
  height:24px;border:1px solid #c8c6c4;background:#fff;border-radius:2px;padding:0 4px;font-size:12px;
}
.office-select:hover{border-color:#8a8886}
.office-input{
  height:26px;border:1px solid #c8c6c4;background:#fff;border-radius:2px;padding:0 7px;font-size:12px;min-width:0;
}
.office-input:focus{border-color:#0078d4;box-shadow:inset 0 0 0 1px #0078d4}
.field{display:flex;align-items:center;gap:10px;margin:9px 0}
.field > label{width:92px;text-align:right;color:#605e5c;flex:none}
.field > .grow{flex:1;display:flex;gap:8px;align-items:center}
.check{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.check input{width:14px;height:14px;margin:0;accent-color:var(--accent,#0078d4)}
.swatch{width:18px;height:18px;border-radius:2px;border:1px solid #8a8886;display:inline-block;vertical-align:middle}
.sep-v{width:1px;align-self:stretch;background:#e1dfdd;margin:2px 5px}
.pill{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:9px;background:#edebe9;color:#605e5c;font-size:10px}
.pill.blue{background:#deecf9;color:#005a9e}
.pill.green{background:#dff6dd;color:#107c10}
.pill.orange{background:#fff4ce;color:#8a5300}

/* ============================== 启动/中心 ============================== */
.hub{
  height:100%;display:flex;flex-direction:column;overflow:auto;
  background:
    radial-gradient(1200px 420px at 84% -160px,rgba(216,59,1,.20),transparent 62%),
    radial-gradient(900px 380px at 8% -180px,rgba(43,87,154,.14),transparent 62%),
    #f3f2f1;
}
.hub-top{
  height:52px;display:flex;align-items:center;gap:18px;padding:0 26px;background:#fff;
  border-bottom:1px solid #e1dfdd;position:sticky;top:0;z-index:20;
}
.hub-logo{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600;color:#201f1e;white-space:nowrap}
.hub-logo .mark{
  width:30px;height:30px;border-radius:5px;background:#d83b01;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 5px rgba(216,59,1,.25);
}
.hub-logo .mark svg{width:20px;height:20px}
.hub-logo b{font-weight:700}
.hub-logo span{font-weight:400;color:#605e5c;font-size:13px;margin-left:2px}
.hub-search{
  flex:1;max-width:560px;height:32px;display:flex;align-items:center;gap:8px;padding:0 10px;
  border:1px solid #e1dfdd;border-radius:3px;background:#faf9f8;color:#605e5c;
}
.hub-search:hover{background:#fff;border-color:#c8c6c4}
.hub-search input{flex:1;border:0;background:transparent;font-size:12px}
.hub-account{display:flex;align-items:center;gap:9px;color:#323130;white-space:nowrap}
.avatar{
  width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#2b579a,#0f6cbd);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;letter-spacing:.3px;
}
.avatar.lg{width:44px;height:44px;font-size:16px}
.hub-main{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:34px 0 40px;flex:1}
.hub-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:0 0 24px}
.hub-hero h1{margin:0 0 8px;font-size:34px;line-height:1.1;font-weight:600;color:#201f1e;letter-spacing:-.5px}
.hub-hero p{margin:0;color:#605e5c;font-size:13px;max-width:620px;line-height:1.6}
.hub-hero .cta{display:flex;gap:8px;flex:none}
.hub-hero .cta .btn{height:32px;padding:0 18px}
.tile-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 28px}
.app-tile{
  position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:18px 16px 15px;
  background:#fff;border:1px solid #e1dfdd;border-radius:6px;text-align:left;min-height:126px;
  transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease;
}
.app-tile:hover{transform:translateY(-2px);border-color:#c8c6c4;box-shadow:0 8px 20px rgba(0,0,0,.10)}
.app-tile:active{transform:none;box-shadow:0 3px 8px rgba(0,0,0,.10)}
.app-tile .tile-icon{position:relative;width:48px;height:48px;border-radius:9px;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 7px rgba(0,0,0,.14)}
.app-tile .tile-icon svg{width:30px;height:30px}
.app-tile .tile-name{font-size:14px;font-weight:600;color:#201f1e}
.app-tile .tile-sub{font-size:11px;color:#605e5c;margin-top:-6px;line-height:1.45}
.app-tile .tile-arrow{position:absolute;right:14px;top:16px;color:#a19f9d;opacity:0;transition:opacity .12s}
.app-tile:hover .tile-arrow{opacity:1}
.app-tile.off{opacity:.55;filter:saturate(.2)}
.app-tile.off:hover{transform:none;box-shadow:none;border-color:#e1dfdd}
.tile-word{background:linear-gradient(145deg,#2b579a,#1b3d70)}
.tile-excel{background:linear-gradient(145deg,#217346,#155031)}
.tile-ppt{background:linear-gradient(145deg,#c04327,#8e2d17)}
.tile-onenote{background:linear-gradient(145deg,#8133b4,#541180)}
.tile-outlook{background:linear-gradient(145deg,#1473c9,#0a4a86)}
.tile-access{background:linear-gradient(145deg,#a4373a,#701f22)}
.tile-publisher{background:linear-gradient(145deg,#0b8a78,#045d51)}
.hub-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.hub-card{background:#fff;border:1px solid #e1dfdd;border-radius:6px;padding:0;overflow:hidden}
.hub-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px 11px}
.hub-card-head h2{margin:0;font-size:15px;font-weight:600;color:#201f1e}
.hub-card-head .link{font-size:11px;color:var(--accent);cursor:pointer}
.recent-list{padding:0 8px 10px}
.recent-item{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;
  padding:9px 10px;border-radius:4px;cursor:pointer;
}
.recent-item:hover{background:#f3f2f1}
.recent-item .file-ico{width:32px;height:32px;border-radius:5px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:700}
.recent-item .file-ico svg{width:18px;height:18px}
.recent-item .r-name{display:block;font-size:12.5px;color:#201f1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-item .r-meta{display:block;font-size:10.5px;color:#8a8886;margin-top:2px}
.recent-item .r-more{opacity:0;color:#605e5c;width:26px;height:26px;border-radius:3px;display:flex;align-items:center;justify-content:center}
.recent-item:hover .r-more{opacity:1}
.recent-item .r-more:hover{background:#e1dfdd}
.empty-recent{padding:26px 18px 30px;text-align:center;color:#8a8886;font-size:12px}
.empty-recent .big{font-size:30px;color:#c8c6c4;margin-bottom:8px}
.tpl-cards{padding:0 14px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpl-card{
  border:1px solid #e1dfdd;border-radius:5px;overflow:hidden;background:#fff;cursor:pointer;text-align:left;
  transition:box-shadow .12s,border-color .12s;
}
.tpl-card:hover{border-color:#c8c6c4;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.tpl-thumb{height:82px;display:flex;align-items:center;justify-content:center;background:#faf9f8;border-bottom:1px solid #edebe9;position:relative;overflow:hidden}
.tpl-thumb .paper{display:block;width:48px;height:64px;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.18);border-radius:1px;position:relative;padding:7px 6px}
.tpl-thumb .paper i{display:block;height:2px;background:#c8c6c4;margin:0 0 4px;border-radius:1px}
.tpl-thumb .paper i.w60{width:60%}.tpl-thumb .paper i.w80{width:80%}.tpl-thumb .paper i.w40{width:40%}
.tpl-thumb .paper .band{display:block;height:9px;margin:-7px -6px 7px;background:var(--accent,#2b579a)}
.tpl-name{padding:9px 10px;font-size:11.5px;color:#323130;line-height:1.35}
.tpl-name small{display:block;color:#8a8886;font-size:10px;margin-top:2px}
.hub-note{grid-column:1/-1;display:flex;gap:10px;align-items:flex-start;padding:13px 16px;background:#fff;border:1px solid #e1dfdd;border-radius:6px;color:#605e5c;font-size:11.5px;line-height:1.6}
.hub-note b{color:#323130}
.hub-foot{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:0 0 26px;color:#8a8886;font-size:10.5px;display:flex;justify-content:space-between;gap:18px}
.hub-foot a{color:#605e5c}

/* ============================== 应用外壳 ============================== */
.o-app{height:100%;display:flex;flex-direction:column;background:#f3f2f1;min-width:640px}
.titlebar{
  height:32px;flex:none;display:flex;align-items:center;gap:8px;padding:0 0 0 8px;
  background:var(--titlebar,#2b579a);color:#fff;user-select:none;position:relative;z-index:40;
}
.titlebar .qat{display:flex;align-items:center;gap:1px;height:100%;padding-right:6px}
.qat-btn{
  width:24px;height:24px;border-radius:2px;display:flex;align-items:center;justify-content:center;color:#fff;opacity:.95;
}
.qat-btn:hover{background:rgba(255,255,255,.18)}
.qat-btn:active{background:rgba(255,255,255,.28)}
.qat-btn svg{width:15px;height:15px}
.qat-sep{width:1px;height:16px;background:rgba(255,255,255,.35);margin:0 3px}
.doc-title{
  position:absolute;left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;max-width:46vw;
  overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px;
}
.doc-title .saved-dot{width:7px;height:7px;border-radius:50%;background:#a6e3a1;display:inline-block}
.doc-title .saved-dot.saving{background:#ffd56b}
.doc-title .saved-dot.error{background:#ff8b8b}
.tb-right{display:flex;align-items:center;gap:2px;margin-left:auto;height:100%;padding-right:2px}
.tb-user{display:flex;align-items:center;gap:6px;padding:0 7px;height:24px;border-radius:2px;font-size:11px;color:#fff;opacity:.95}
.tb-user:hover{background:rgba(255,255,255,.16)}
.tb-user .avatar{width:20px;height:20px;font-size:9px;background:rgba(255,255,255,.25)}
.win-btns{display:flex;height:100%}
.win-btn{width:46px;height:100%;display:flex;align-items:center;justify-content:center;color:#fff}
.win-btn:hover{background:rgba(255,255,255,.16)}
.win-btn.close:hover{background:#c42b1c}
.win-btn svg{width:10px;height:10px}

.tabstrip{
  height:34px;flex:none;display:flex;align-items:stretch;background:#f3f2f1;border-bottom:1px solid #e1dfdd;
  padding:0 4px 0 0;position:relative;z-index:35;
}
.file-tab{
  width:58px;flex:none;display:flex;align-items:center;justify-content:center;background:var(--accent,#2b579a);
  color:#fff;font-size:12px;font-weight:600;letter-spacing:.5px;
}
.file-tab:hover{filter:brightness(1.08)}
.file-tab.open{background:var(--accent-dark,#1e3f73)}
.tabs{display:flex;align-items:stretch;min-width:0;overflow:hidden}
.tab{
  padding:0 12px;display:flex;align-items:center;color:#444;font-size:12px;position:relative;white-space:nowrap;
  border-bottom:2px solid transparent;
}
.tab:hover{background:#edebe9}
.tab.active{background:#fff;color:var(--accent);font-weight:600;border-bottom-color:var(--accent)}
.tellme{
  margin-left:auto;align-self:center;height:24px;display:flex;align-items:center;gap:6px;padding:0 9px;
  border:1px solid #c8c6c4;border-radius:2px;background:#fff;color:#605e5c;font-size:11px;white-space:nowrap;
}
.tellme:hover{border-color:#8a8886;color:#323130}
.tellme svg{width:14px;height:14px;color:#d83b01}
.ribbon-toggle{width:28px;align-self:center;display:flex;align-items:center;justify-content:center;color:#605e5c;height:24px;margin-right:3px}
.ribbon-toggle:hover{background:#edebe9}

.ribbon{
  flex:none;height:96px;background:#fff;border-bottom:1px solid #d2d0ce;display:flex;align-items:stretch;
  overflow-x:auto;overflow-y:hidden;padding:0 5px;position:relative;z-index:30;
}
.ribbon.collapsed{height:0;border-bottom-color:transparent;overflow:hidden}
.ribbon-panel{display:flex;align-items:stretch;min-width:max-content}
.ribbon-group{display:flex;flex-direction:column;padding:3px 6px 0;min-width:44px;position:relative}
.ribbon-group + .ribbon-group{border-left:1px solid #e1dfdd}
.ribbon-items{flex:1;display:flex;align-items:flex-start;gap:2px}
.rgroup-label{height:17px;display:flex;align-items:center;justify-content:center;color:#666;font-size:10px;white-space:nowrap;letter-spacing:.1px}
.rbig{
  width:60px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;
  padding:4px 3px 2px;border-radius:2px;color:#323130;
}
.rbig:hover,.rsmall:hover,.rcombo:hover{background:#edebe9}
.rbig:active,.rsmall:active{background:#d2d0ce}
.rbig.on{background:#deecf9;box-shadow:inset 0 0 0 1px #c7e0f4}
.rbig .ico{height:32px;display:flex;align-items:center;justify-content:center}
.rbig .ico svg{width:30px;height:30px}
.rbig .lbl{font-size:11px;line-height:1.15;text-align:center;max-width:64px;white-space:normal}
.rbig .caret{position:absolute;margin-left:40px;margin-top:22px;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #666}
.rcol{display:flex;flex-direction:column;gap:1px;padding-top:1px}
.rrow{display:flex;align-items:center;gap:1px}
.rsmall{
  height:23px;display:flex;align-items:center;gap:5px;padding:0 5px;border-radius:2px;color:#323130;
  font-size:11px;white-space:nowrap;min-width:0;
}
.rsmall .ico{width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex:none;color:#444}
.rsmall .ico svg{width:16px;height:16px}
.rsmall.on{background:#deecf9;box-shadow:inset 0 0 0 1px #c7e0f4}
.rcombo{
  height:23px;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:0 4px 0 6px;
  border:1px solid #c8c6c4;background:#fff;border-radius:2px;font-size:11px;color:#323130;white-space:nowrap;
}
.rcombo:hover{border-color:#8a8886;background:#fff}
.rcombo .caret{border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #666}
.rcombo.wide{width:114px}
.rcombo.mid{width:78px}
.rcombo.small{width:48px}
.rcombo input{border:0;background:transparent;width:100%;min-width:0;font-size:11px;padding:0}
.rsep{width:1px;align-self:stretch;background:transparent;margin:6px 2px}
.ribbon .group-pad{width:4px}

/* 工作区/状态栏 */
.workspace{flex:1;min-height:0;position:relative;overflow:hidden;background:#e6e6e6}
.statusbar{
  height:24px;flex:none;display:flex;align-items:center;gap:6px;padding:0 10px;background:#f3f2f1;
  border-top:1px solid #d2d0ce;color:#444;font-size:11px;user-select:none;z-index:20;
}
.statusbar .st-item{padding:0 7px;height:20px;display:flex;align-items:center;gap:5px;border-radius:2px;white-space:nowrap}
.statusbar .st-item:hover{background:#e1dfdd}
.statusbar .st-sep{width:1px;height:14px;background:#c8c6c4;margin:0 2px}
.statusbar .st-right{margin-left:auto;display:flex;align-items:center;gap:2px}
.zoom-wrap{display:flex;align-items:center;gap:7px;padding:0 6px}
.zoom-slider{width:94px;height:3px;accent-color:var(--accent)}
.zoom-label{min-width:36px;text-align:right;font-variant-numeric:tabular-nums}
.view-btns{display:flex;gap:1px;margin-right:4px}
.view-btn{width:24px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:2px;color:#605e5c}
.view-btn:hover{background:#e1dfdd}
.view-btn.on{background:#d2d0ce;color:#201f1e}
.status-dot{width:6px;height:6px;border-radius:50%;background:#107c10;display:inline-block}
.status-dot.busy{background:#d83b01}

/* ============================== 后台视图 ============================== */
.backstage{
  position:absolute;inset:32px 0 0 0;z-index:60;display:flex;background:#fff;
  animation:bs-in .16s ease-out;
}
@keyframes bs-in{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
.bs-left{
  width:220px;flex:none;background:var(--accent,#2b579a);color:#fff;padding:22px 0 14px;display:flex;flex-direction:column;
}
.bs-back{display:flex;align-items:center;gap:9px;margin:0 18px 22px;font-size:14px;font-weight:600;color:#fff}
.bs-back .circle{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.bs-back .circle svg{width:14px;height:14px}
.bs-nav{display:flex;flex-direction:column;gap:1px}
.bs-nav-item{
  height:34px;display:flex;align-items:center;gap:11px;padding:0 22px;color:#fff;font-size:12.5px;text-align:left;
  border-left:3px solid transparent;
}
.bs-nav-item:hover{background:rgba(255,255,255,.12)}
.bs-nav-item.on{background:rgba(0,0,0,.16);border-left-color:#fff;font-weight:600}
.bs-nav-item svg{width:17px;height:17px;opacity:.95}
.bs-nav-sep{height:1px;background:rgba(255,255,255,.22);margin:10px 22px}
.bs-nav-bottom{margin-top:auto;display:flex;flex-direction:column;gap:1px}
.bs-main{flex:1;min-width:0;overflow:auto;padding:30px 46px 44px;background:#fff}
.bs-main h1{margin:0 0 18px;font-size:26px;font-weight:400;color:#201f1e}
.bs-main h2{margin:26px 0 12px;font-size:15px;font-weight:600;color:#201f1e}
.bs-main h3{margin:16px 0 8px;font-size:13px;font-weight:600}
.bs-close{position:absolute;right:22px;top:18px;z-index:2}
.bs-close .icon-btn{width:32px;height:32px;border-radius:50%}
.bs-close .icon-btn:hover{background:#f3f2f1}
.bs-section{border-top:1px solid #edebe9;padding-top:4px;margin-top:26px}
.bs-recent{border:1px solid #edebe9;border-radius:4px;overflow:hidden;max-width:760px}
.bs-recent .row{display:grid;grid-template-columns:40px minmax(0,1fr) 160px 110px;gap:10px;align-items:center;padding:9px 12px;border-bottom:1px solid #f3f2f1;cursor:pointer}
.bs-recent .row:last-child{border-bottom:0}
.bs-recent .row:hover{background:#f3f2f1}
.bs-recent .row .nm{font-size:12.5px;color:#201f1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bs-recent .row .meta{font-size:11px;color:#8a8886}
.bs-tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;max-width:980px}
.bs-tpl{border:1px solid #e1dfdd;border-radius:4px;overflow:hidden;cursor:pointer;background:#fff;text-align:left}
.bs-tpl:hover{border-color:#c8c6c4;box-shadow:0 4px 14px rgba(0,0,0,.10)}
.bs-tpl .thumb{height:112px;background:#faf9f8;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #edebe9}
.bs-tpl .thumb .paper{display:block;width:62px;height:84px;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.18);padding:9px 7px}
.bs-tpl .thumb .paper i{display:block;height:2px;background:#c8c6c4;margin-bottom:5px;border-radius:1px}
.bs-tpl .thumb .paper .band{height:11px;margin:-9px -7px 9px;background:var(--accent)}
.bs-tpl .nm{padding:9px 11px;font-size:12px;color:#323130}
.bs-tpl .nm small{display:block;color:#8a8886;font-size:10.5px;margin-top:2px}
.bs-info-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:34px;max-width:1000px}
.bs-info-list{font-size:12px;line-height:1.9;color:#323130}
.bs-info-list b{font-weight:600;display:inline-block;min-width:90px;color:#605e5c;font-weight:400}
.bs-card{border:1px solid #e1dfdd;border-radius:5px;padding:16px 17px;background:#faf9f8;margin:0 0 12px}
.bs-card h4{margin:0 0 6px;font-size:12px;font-weight:600}
.bs-card p{margin:0;color:#605e5c;font-size:11.5px;line-height:1.6}
.bs-account{display:flex;gap:16px;align-items:center;margin-bottom:20px}
.bs-account .avatar{background:linear-gradient(135deg,var(--accent),var(--accent-dark))}
.bs-account .nm{font-size:16px;font-weight:600}
.bs-account .sub{color:#605e5c;font-size:12px;margin-top:3px}
.bs-printing{display:grid;grid-template-columns:300px minmax(0,1fr);gap:30px}
.print-preview{background:#e6e6e6;padding:24px;border-radius:4px;min-height:400px;display:flex;justify-content:center}
.print-preview .paper{width:220px;min-height:284px;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.22);padding:22px 18px;font-size:7px;line-height:1.55;overflow:hidden;color:#323130}
.bs-options{max-width:760px}
.bs-options .opt-row{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #f3f2f1}
.bs-options .opt-row > div:first-child{width:180px;flex:none;color:#323130}
.bs-options .opt-row .desc{color:#8a8886;font-size:11px}
.theme-choices{display:flex;gap:10px;flex-wrap:wrap}
.theme-choice{border:2px solid transparent;border-radius:4px;padding:3px;cursor:pointer}
.theme-choice.on{border-color:var(--accent)}
.theme-choice .sw{width:86px;height:50px;border-radius:2px;border:1px solid #d2d0ce;overflow:hidden;display:flex;flex-direction:column}
.theme-choice .sw .bar{height:11px;background:#2b579a}
.theme-choice .sw .body{flex:1;background:#fff;padding:4px}
.theme-choice .sw .body i{display:block;height:2px;background:#d2d0ce;margin-bottom:3px}
.theme-choice .cap{font-size:10.5px;text-align:center;margin-top:5px;color:#605e5c}

/* ============================== 对话框/菜单/提示 ============================== */
.modal-mask{
  position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.28);display:flex;align-items:flex-start;justify-content:center;
  padding:9vh 20px 30px;animation:fade-in .12s ease-out;
}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
.dialog{
  width:min(520px,96vw);background:#fff;border:1px solid #8a8886;box-shadow:0 12px 34px rgba(0,0,0,.30);
  border-radius:2px;display:flex;flex-direction:column;max-height:82vh;animation:dlg-in .14s ease-out;
}
@keyframes dlg-in{from{transform:translateY(-8px);opacity:.6}to{transform:none;opacity:1}}
.dialog.wide{width:min(760px,96vw)}
.dialog.narrow{width:min(400px,96vw)}
.dialog-head{height:34px;flex:none;background:var(--accent,#2b579a);color:#fff;display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600;letter-spacing:.2px}
.dialog-head .x{margin-left:auto;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:2px}
.dialog-head .x:hover{background:rgba(255,255,255,.2)}
.dialog-body{padding:18px 20px;overflow:auto;font-size:12px;line-height:1.6}
.dialog-foot{flex:none;padding:11px 16px;border-top:1px solid #edebe9;display:flex;justify-content:flex-end;gap:8px;background:#faf9f8}
.dialog-foot .left{margin-right:auto;display:flex;gap:8px}
.dialog p{margin:0 0 10px}
.dialog .hint{color:#8a8886;font-size:11px}
.dialog .preview{border:1px solid #e1dfdd;background:#fff;padding:16px;margin:10px 0 2px;min-height:74px;display:flex;align-items:center;justify-content:center;text-align:center}

.menu{
  position:fixed;z-index:300;min-width:190px;background:#fff;border:1px solid #c8c6c4;box-shadow:0 5px 18px rgba(0,0,0,.20);
  border-radius:2px;padding:4px;font-size:12px;animation:fade-in .08s ease-out;
}
.menu-item{height:28px;display:flex;align-items:center;gap:9px;padding:0 10px;border-radius:2px;cursor:pointer;white-space:nowrap;color:#323130}
.menu-item:hover{background:#f3f2f1}
.menu-item.danger{color:#a4262c}
.menu-item .mi-ico{width:16px;display:flex;justify-content:center;color:#605e5c}
.menu-item .mi-ico svg{width:15px;height:15px}
.menu-item .shortcut{margin-left:auto;color:#8a8886;font-size:10.5px;padding-left:18px}
.menu-sep{height:1px;background:#edebe9;margin:4px 3px}
.menu-label{padding:5px 10px 3px;color:#8a8886;font-size:10px;text-transform:uppercase;letter-spacing:.4px}

.toast-wrap{position:fixed;left:50%;bottom:34px;transform:translateX(-50%);z-index:400;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{
  min-width:220px;max-width:min(560px,90vw);background:#323130;color:#fff;padding:9px 14px;border-radius:3px;
  box-shadow:0 6px 20px rgba(0,0,0,.28);font-size:12px;display:flex;align-items:center;gap:9px;animation:toast-in .16s ease-out;
}
.toast .dot{width:7px;height:7px;border-radius:50%;background:#6bb700;flex:none}
.toast.warn .dot{background:#ffb900}
.toast.error .dot{background:#e81123}
@keyframes toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* ============================== Word ============================== */
.word-workspace{height:100%;display:flex;flex-direction:column;background:#e6e6e6;min-height:0}
.word-modebar{height:0;display:none}
.word-scroll{flex:1;overflow:auto;position:relative;padding:0 0 34px}
.word-ruler-row{
  position:sticky;top:0;z-index:5;height:24px;background:#f3f2f1;border-bottom:1px solid #d2d0ce;display:flex;justify-content:center;
}
.word-ruler{
  width:816px;height:24px;position:relative;color:#605e5c;font-size:9px;
  background:
    repeating-linear-gradient(to right,#8a8886 0 1px,transparent 1px 12px) left 13px top 16px/100% 8px no-repeat,
    #f3f2f1;
}
.word-ruler .rmark{position:absolute;top:1px;transform:translateX(-50%);font-variant-numeric:tabular-nums}
.word-ruler .rmark.tick{height:5px;border-left:1px solid #8a8886;top:17px}
.word-ruler .rindent{position:absolute;top:3px;width:0;height:0;border-top:6px solid #605e5c;border-left:4px solid transparent;border-right:4px solid transparent}
.word-doc{padding:26px 0 40px;display:flex;flex-direction:column;align-items:center;gap:22px;transform-origin:top center}
.word-page{
  width:816px;min-height:1056px;background:#fff;box-shadow:0 2px 9px rgba(0,0,0,.22);position:relative;
  padding:96px 96px 84px;display:flex;flex-direction:column;flex:none;
}
.word-page:focus-within{box-shadow:0 3px 14px rgba(0,0,0,.28)}
.word-page .page-body{
  flex:1;outline:none;font-family:"Calibri","Noto Sans SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  font-size:11pt;line-height:1.5;color:#000;min-height:820px;word-wrap:break-word;overflow-wrap:break-word;
}
.word-page .page-body:empty:before{content:attr(data-placeholder);color:#a19f9d}
.word-page .page-header,.word-page .page-footer{
  position:absolute;left:96px;right:96px;color:#8a8886;font-size:9pt;display:flex;align-items:center;justify-content:space-between;
  pointer-events:none;
}
.word-page .page-header{top:44px;border-bottom:1px solid #edebe9;padding-bottom:5px}
.word-page .page-footer{bottom:40px;border-top:1px solid #edebe9;padding-top:5px}
.word-page .page-num{font-variant-numeric:tabular-nums}
.word-page .margin-guide{position:absolute;inset:96px;border:1px dashed transparent;pointer-events:none}
.word-page.show-margins .margin-guide{border-color:#c7e0f4}
.word-page .page-label{
  position:absolute;left:-52px;top:0;color:#8a8886;font-size:10px;writing-mode:vertical-rl;letter-spacing:1px;
}
.word-page h1{font-family:inherit;font-size:22pt;font-weight:400;color:#2b579a;margin:0 0 10pt;line-height:1.2}
.word-page h2{font-size:16pt;font-weight:400;color:#2b579a;margin:16pt 0 7pt;line-height:1.25}
.word-page h3{font-size:12pt;font-weight:600;color:#2b579a;margin:12pt 0 5pt}
.word-page p{margin:0 0 8pt}
.word-page ul,.word-page ol{margin:0 0 8pt;padding-left:2.1em}
.word-page li{margin:0 0 3pt}
.word-page table{border-collapse:collapse;width:100%;margin:8pt 0 12pt;font-size:10pt}
.word-page th,.word-page td{border:1px solid #bfbfbf;padding:5pt 7pt;vertical-align:top}
.word-page th{background:#f2f2f2;font-weight:600}
.word-page img{max-width:100%;height:auto}
.word-page blockquote{border-left:3px solid #2b579a;margin:8pt 0;padding:2pt 0 2pt 12pt;color:#595959;background:#f7f9fc}
.word-page a{color:#0563c1;text-decoration:underline}
.word-page mark{background:#fff2a8;padding:0 1px}
.word-page .doc-callout{background:#eef4fb;border:1px solid #c7d9ef;border-radius:2px;padding:10pt 12pt;margin:10pt 0}
.word-page .doc-callout b{color:#2b579a}
.word-page .word-comment{background:#fff6d6;border-bottom:1px dotted #d39b00}
.word-page .page-break{height:0;border-top:1px dashed #c8c6c4;margin:10pt 0}
.word-findbar{
  position:absolute;right:22px;top:34px;z-index:10;width:330px;background:#fff;border:1px solid #c8c6c4;
  box-shadow:0 4px 14px rgba(0,0,0,.16);border-radius:2px;padding:8px;display:flex;flex-direction:column;gap:6px;
}
.word-findbar .row{display:flex;gap:5px;align-items:center}
.word-findbar input{flex:1;height:24px;border:1px solid #c8c6c4;padding:0 6px}
.word-findbar .cnt{color:#8a8886;font-size:10.5px;min-width:52px;text-align:right}
.word-findbar .close{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:2px;color:#605e5c}
.word-findbar .close:hover{background:#edebe9}
.word-navpane{
  position:absolute;left:0;top:0;bottom:0;width:230px;background:#faf9f8;border-right:1px solid #d2d0ce;z-index:9;
  padding:12px;overflow:auto;
}
.word-navpane h4{margin:0 0 8px;font-size:11px;color:#605e5c;text-transform:uppercase;letter-spacing:.5px}
.word-navpane .nav-item{padding:5px 7px;border-radius:3px;font-size:11.5px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.word-navpane .nav-item:hover{background:#edebe9}
.word-navpane .nav-item.h1{font-weight:600}
.word-navpane .nav-item.h2{padding-left:17px}
.word-navpane .nav-item.h3{padding-left:28px;color:#605e5c}
.word-read-mode .word-page{box-shadow:none;width:min(920px,100%);padding:40px 56px}
.word-read-mode .word-page .page-body{font-size:12.5pt}
.word-read-mode .word-ruler-row{display:none}

/* ============================== Excel ============================== */
.excel-workspace{height:100%;display:flex;flex-direction:column;background:#f3f2f1;min-height:0}
.excel-formula{height:26px;flex:none;display:flex;align-items:stretch;border-bottom:1px solid #d2d0ce;background:#fff;font-size:11.5px}
.name-box{width:94px;flex:none;display:flex;align-items:center;padding:0 8px;border-right:1px solid #e1dfdd;font-variant-numeric:tabular-nums;color:#323130;white-space:nowrap;overflow:hidden}
.fx-btn{width:32px;flex:none;display:flex;align-items:center;justify-content:center;border-right:1px solid #e1dfdd;color:#605e5c;font-style:italic;font-family:Georgia,serif;font-size:13px}
.fx-btn:hover{background:#f3f2f1}
.formula-input{flex:1;border:0;padding:0 8px;font-family:"Calibri","Noto Sans SC",sans-serif;font-size:12px;min-width:0}
.excel-grid-wrap{flex:1;min-height:0;overflow:auto;position:relative;background:#fff}
.excel-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;font-family:"Calibri","Noto Sans SC",sans-serif;font-size:11.5px;user-select:none}
.excel-grid th,.excel-grid td{border-right:1px solid #d4d4d4;border-bottom:1px solid #d4d4d4;padding:0;height:21px;overflow:hidden;white-space:nowrap;position:relative}
.excel-grid thead th{background:#f3f2f1;color:#444;font-weight:400;text-align:center;position:sticky;top:0;z-index:5;height:22px;cursor:default;font-size:10.5px}
.excel-grid thead th.corner{left:0;z-index:7;width:42px;min-width:42px}
.excel-grid tbody th{background:#f3f2f1;color:#666;font-weight:400;text-align:center;position:sticky;left:0;z-index:4;width:42px;min-width:42px;cursor:default;font-size:10.5px}
.excel-grid tbody th.row-active,.excel-grid thead th.col-active{background:#d2e8d2;color:#185c37;font-weight:600}
.excel-grid td.cell{padding:1px 4px;cursor:cell;background:#fff;line-height:19px;text-overflow:clip;overflow:hidden}
.excel-grid td.cell.num{text-align:right;font-variant-numeric:tabular-nums}
.excel-grid td.cell.text{text-align:left}
.excel-grid td.cell.sel{box-shadow:inset 0 0 0 2px #217346;overflow:visible;z-index:3}
.excel-grid td.cell.inrange{background:#e6f2ea}
.excel-grid td.cell.inrange.sel{background:#fff}
.excel-grid td.cell .fill-handle{position:absolute;right:-3px;bottom:-3px;width:6px;height:6px;background:#217346;border:1px solid #fff;display:none;cursor:crosshair;z-index:4}
.excel-grid td.cell.sel .fill-handle{display:block}
.excel-grid td.cell.bold{font-weight:700}
.excel-grid td.cell.italic{font-style:italic}
.excel-grid td.cell.underline{text-decoration:underline}
.excel-grid td.cell.align-center{text-align:center}
.excel-grid td.cell.align-right{text-align:right}
.excel-grid td.cell.wrap{white-space:normal;line-height:1.2}
.excel-grid td.cell.editing{box-shadow:inset 0 0 0 2px #217346;padding:0;overflow:visible;z-index:6}
.excel-grid td.cell.editing input{width:100%;height:100%;border:0;padding:0 3px;font:inherit;outline:none;background:#fff}
.excel-grid td.cell.editing input:focus{box-shadow:inset 0 0 0 1px #217346}
.excel-grid.no-grid td.cell{border-color:transparent}
.excel-grid.no-grid thead th,.excel-grid.no-grid tbody th{border-color:#d4d4d4}
#xl-charts{position:absolute;inset:0;pointer-events:none;z-index:8}
#xl-charts .excel-chart{pointer-events:auto}
.excel-grid td.cell.err{color:#a4262c}
.excel-grid td.cell .spill{position:absolute;left:0;top:0;background:#fff;z-index:2;padding:1px 4px;pointer-events:none}
.sheetbar{height:29px;flex:none;display:flex;align-items:flex-end;gap:0;background:#f3f2f1;border-top:1px solid #d2d0ce;padding:0 8px;overflow-x:auto}
.sheet-nav{display:flex;align-items:center;gap:2px;padding:0 6px 4px 0}
.sheet-tab{
  height:24px;padding:0 13px;display:flex;align-items:center;gap:6px;background:transparent;color:#444;font-size:11.5px;
  border:1px solid transparent;border-bottom:0;border-radius:3px 3px 0 0;white-space:nowrap;position:relative;top:1px;
}
.sheet-tab:hover{background:#edebe9}
.sheet-tab.on{background:#fff;color:#217346;font-weight:600;border-color:#d2d0ce;border-bottom-color:#fff}
.sheet-add{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#605e5c;border-radius:2px;margin-bottom:2px}
.sheet-add:hover{background:#e1dfdd}
.excel-status{display:flex;align-items:center;gap:8px}
.excel-chart{
  position:absolute;background:#fff;border:1px solid #d2d0ce;box-shadow:0 3px 12px rgba(0,0,0,.14);z-index:8;
  padding:10px 12px 8px;min-width:260px;min-height:170px;resize:both;overflow:hidden;
}
.excel-chart .chart-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#323130;margin-bottom:4px}
.excel-chart .chart-head b{font-weight:600}
.excel-chart .chart-close{width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#8a8886;border-radius:2px}
.excel-chart .chart-close:hover{background:#edebe9}
.excel-chart svg{display:block;width:100%;height:calc(100% - 20px)}
.excel-chart .legend{display:flex;gap:12px;justify-content:center;font-size:10px;color:#605e5c;flex-wrap:wrap}
.excel-chart .legend i{display:inline-block;width:8px;height:8px;border-radius:1px;margin-right:4px}
.excel-chart .chart-head{cursor:move;user-select:none}
.excel-chart svg text{font-family:"Segoe UI","Noto Sans SC",sans-serif}
.excel-findbar{position:absolute;right:18px;top:32px;z-index:12;background:#fff;border:1px solid #c8c6c4;box-shadow:0 4px 14px rgba(0,0,0,.16);padding:8px;display:flex;gap:6px;align-items:center}
.excel-findbar input{height:24px;border:1px solid #c8c6c4;padding:0 6px;width:180px}
.excel-fill-preview{width:14px;height:14px;border:1px solid #8a8886;display:inline-block;vertical-align:-2px}

/* ============================== PowerPoint ============================== */
.ppt-workspace{height:100%;display:flex;min-height:0;background:#f3f2f1}
.ppt-left{width:196px;flex:none;border-right:1px solid #d2d0ce;background:#faf9f8;display:flex;flex-direction:column;min-height:0}
.ppt-left-head{height:30px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:#605e5c;font-size:10.5px;border-bottom:1px solid #edebe9}
.ppt-thumbs{flex:1;overflow:auto;padding:10px 12px 18px;display:flex;flex-direction:column;gap:11px}
.ppt-thumb{position:relative;cursor:pointer;padding:2px;border-radius:3px;border:2px solid transparent;background:transparent;flex:none}
.ppt-thumb .num{position:absolute;left:-1px;top:2px;font-size:9.5px;color:#8a8886;width:17px;text-align:center;z-index:2}
.ppt-thumb .frame{width:100%;aspect-ratio:16/9;background:#fff;border:1px solid #c8c6c4;box-shadow:0 1px 3px rgba(0,0,0,.12);overflow:hidden;position:relative;margin-left:16px}
.ppt-thumb.on{border-color:var(--accent);background:#fff}
.ppt-thumb.on .num{color:var(--accent);font-weight:600}
.ppt-thumb:hover .frame{border-color:#8a8886}
.ppt-thumb .mini{position:absolute;left:0;top:0;transform-origin:top left;pointer-events:none;background:#fff}
.ppt-thumb .mini .slide-canvas{position:relative!important;left:auto!important;top:auto!important}
.ppt-center{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0}
.ppt-stage-wrap{flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:26px 30px 10px;position:relative}
.ppt-stage{position:relative;flex:none;background:transparent;box-shadow:0 3px 14px rgba(0,0,0,.22);transform-origin:top left;overflow:hidden}
.ppt-stage .slide-canvas{position:absolute;left:0;top:0;width:960px;height:540px;overflow:hidden;background:#fff;transform-origin:top left}
.ppt-notes{flex:none;height:98px;border-top:1px solid #d2d0ce;background:#faf9f8;display:flex;flex-direction:column}
.ppt-notes .notes-head{height:25px;display:flex;align-items:center;gap:8px;padding:0 11px;font-size:10.5px;color:#605e5c;border-bottom:1px solid #edebe9}
.ppt-notes textarea{flex:1;border:0;resize:none;padding:8px 12px;font:11.5px/1.5 "Segoe UI","Noto Sans SC",sans-serif;background:#fff;outline:none}
.ppt-right{width:238px;flex:none;border-left:1px solid #d2d0ce;background:#faf9f8;overflow:auto;padding:12px}
.ppt-pane-title{font-size:11px;font-weight:600;color:#323130;margin:4px 0 8px;display:flex;align-items:center;justify-content:space-between}
.ppt-pane-sec{border:1px solid #e1dfdd;background:#fff;border-radius:3px;padding:9px;margin-bottom:10px}
.ppt-pane-sec .row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:5px 0;font-size:11px;color:#605e5c}
.ppt-layouts{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ppt-layout{border:1px solid #e1dfdd;background:#fff;padding:3px;border-radius:2px;cursor:pointer}
.ppt-layout:hover{border-color:#8a8886}
.ppt-layout .lk{aspect-ratio:16/9;background:#f3f2f1;position:relative;overflow:hidden}
.ppt-layout.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ppt-layout .lk i{position:absolute;background:#8a8886}
.ppt-layout .cap{font-size:9px;color:#8a8886;text-align:center;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slide-el{position:absolute;outline:none;cursor:move;user-select:none}
.slide-el.editing{cursor:text;user-select:text;z-index:5}
.slide-el.editing .el-content{user-select:text;outline:2px solid rgba(183,71,42,.65);outline-offset:2px}
.slide-el .el-content{cursor:inherit}
.slide-el .el-content{width:100%;height:100%;overflow:hidden;outline:none}
.slide-el.sel{box-shadow:0 0 0 1.5px var(--accent)}
.slide-el .handle{position:absolute;width:7px;height:7px;background:#fff;border:1.5px solid var(--accent);display:none;z-index:3}
.slide-el.sel .handle{display:block}
.slide-el .handle.nw{left:-4px;top:-4px;cursor:nwse-resize}
.slide-el .handle.ne{right:-4px;top:-4px;cursor:nesw-resize}
.slide-el .handle.sw{left:-4px;bottom:-4px;cursor:nesw-resize}
.slide-el .handle.se{right:-4px;bottom:-4px;cursor:nwse-resize}
.slide-el .handle.n{left:50%;top:-4px;margin-left:-4px;cursor:ns-resize}
.slide-el .handle.s{left:50%;bottom:-4px;margin-left:-4px;cursor:ns-resize}
.slide-el .handle.w{left:-4px;top:50%;margin-top:-4px;cursor:ew-resize}
.slide-el .handle.e{right:-4px;top:50%;margin-top:-4px;cursor:ew-resize}
.slide-el .rot{position:absolute;left:50%;top:-24px;margin-left:-6px;width:12px;height:12px;border-radius:50%;background:#fff;border:1.5px solid var(--accent);display:none;cursor:grab}
.slide-el.sel .rot{display:block}
.slide-el.text-el .el-content{padding:8px 12px;white-space:pre-wrap}
.slide-el .placeholder-hint{color:#a19f9d}
.ppt-present{position:fixed;inset:0;background:#000;z-index:500;display:flex;align-items:center;justify-content:center;cursor:none}
.ppt-present .slide-canvas{position:relative;box-shadow:none}
.ppt-present .present-bar{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:rgba(32,31,30,.86);color:#fff;
  padding:7px 14px;border-radius:3px;font-size:12px;display:flex;gap:14px;align-items:center;cursor:default;
}
.ppt-present .present-bar button{color:#fff;padding:2px 7px;border-radius:2px}
.ppt-present .present-bar button:hover{background:rgba(255,255,255,.2)}
.ppt-present .present-exit{position:fixed;right:18px;top:16px;color:#fff;background:rgba(0,0,0,.4);padding:6px 12px;border-radius:3px;cursor:pointer}
.ppt-color-row{display:flex;gap:5px;flex-wrap:wrap}
.ppt-color{width:18px;height:18px;border-radius:2px;border:1px solid rgba(0,0,0,.18);cursor:pointer}
.ppt-color:hover{outline:2px solid #0078d4;outline-offset:1px}

/* ============================== OneNote ============================== */
.onenote{height:100%;display:flex;min-height:0;background:#fff}
.on-left{width:196px;flex:none;background:#faf9f8;border-right:1px solid #e1dfdd;display:flex;flex-direction:column;min-height:0}
.on-left-head{height:38px;flex:none;display:flex;align-items:center;gap:8px;padding:0 12px;color:#fff;background:var(--accent);font-size:12.5px;font-weight:600}
.on-notebooks{flex:1;overflow:auto;padding:8px 0}
.on-nb{display:flex;align-items:center;gap:8px;padding:7px 13px;font-size:12px;cursor:pointer;color:#323130}
.on-nb:hover{background:#edebe9}
.on-nb.on{background:#e8d9f3;color:#5b1382;font-weight:600}
.on-nb .dot{width:9px;height:9px;border-radius:2px;background:#7719aa;flex:none}
.on-sections{width:180px;flex:none;background:#fff;border-right:1px solid #e1dfdd;display:flex;flex-direction:column;min-height:0}
.on-sec-head{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#605e5c;font-size:10.5px;border-bottom:1px solid #edebe9}
.on-sec{display:flex;align-items:center;gap:7px;padding:8px 13px;font-size:12px;cursor:pointer;border-left:3px solid transparent;color:#323130}
.on-sec:hover{background:#f3f2f1}
.on-sec.on{border-left-color:var(--accent);background:#f3edf8;font-weight:600;color:#5b1382}
.on-sec .tabcolor{width:7px;height:16px;border-radius:1px;background:var(--accent);flex:none}
.on-pages{width:224px;flex:none;border-right:1px solid #e1dfdd;display:flex;flex-direction:column;min-height:0;background:#faf9f8}
.on-pages-head{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-bottom:1px solid #edebe9;font-size:10.5px;color:#605e5c}
.on-page-item{padding:9px 12px;border-bottom:1px solid #f3f2f1;cursor:pointer}
.on-page-item:hover{background:#fff}
.on-page-item.on{background:#fff;box-shadow:inset 3px 0 0 var(--accent)}
.on-page-item .t{font-size:12px;color:#201f1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.on-page-item .d{font-size:10px;color:#8a8886;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.on-canvas{flex:1;min-width:0;overflow:auto;background:#fff;padding:28px 46px 60px;position:relative}
.on-canvas-inner{max-width:820px;margin:0 auto}
.on-page-title{font-size:24px;font-weight:600;color:#201f1e;outline:none;padding:2px 0 8px;border-bottom:1px solid #edebe9;margin-bottom:12px}
.on-meta{font-size:10.5px;color:#8a8886;margin-bottom:16px}
.on-editor{outline:none;font-size:13px;line-height:1.7;min-height:440px;color:#201f1e}
.on-editor:empty:before{content:"开始键入…";color:#a19f9d}
.on-editor h1{font-size:20px;color:#5b1382;margin:14px 0 7px}
.on-editor h2{font-size:16px;color:#5b1382;margin:12px 0 6px}
.on-editor p{margin:0 0 9px}
.on-editor ul{margin:0 0 9px;padding-left:1.8em}
.on-editor table{border-collapse:collapse;width:100%;margin:8px 0}
.on-editor td,.on-editor th{border:1px solid #d2d0ce;padding:5px 7px}
.on-editor .tag{background:#fff2a8;padding:0 3px;border-radius:2px}

/* ============================== Outlook ============================== */
.outlook{height:100%;display:flex;min-height:0;background:#fff}
.ol-nav{width:212px;flex:none;background:#faf9f8;border-right:1px solid #e1dfdd;display:flex;flex-direction:column;min-height:0}
.ol-nav-head{padding:14px 15px 9px;font-size:15px;font-weight:600;color:#201f1e;display:flex;align-items:center;justify-content:space-between}
.ol-newmsg{height:30px;margin:0 12px 10px;background:var(--accent);color:#fff;border-radius:2px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:600}
.ol-newmsg:hover{filter:brightness(1.08)}
.ol-folders{flex:1;overflow:auto;padding:2px 8px}
.ol-folder{height:31px;display:flex;align-items:center;gap:9px;padding:0 10px;border-radius:3px;font-size:12px;color:#323130;cursor:pointer;position:relative}
.ol-folder:hover{background:#edebe9}
.ol-folder.on{background:#deecf9;color:#0b5290;font-weight:600}
.ol-folder .count{margin-left:auto;background:#c8c6c4;color:#fff;border-radius:9px;min-width:17px;height:17px;padding:0 5px;display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:600}
.ol-folder.on .count{background:var(--accent)}
.ol-folder .ico{width:16px;height:16px;color:#605e5c;display:flex;align-items:center;justify-content:center}
.ol-folder.on .ico{color:var(--accent)}
.ol-cal{width:236px;flex:none;border-right:1px solid #e1dfdd;background:#faf9f8;display:flex;flex-direction:column;min-height:0}
.ol-list-head{height:44px;flex:none;display:flex;align-items:center;gap:8px;padding:0 13px;border-bottom:1px solid #edebe9;background:#fff}
.ol-list-head h2{margin:0;font-size:16px;font-weight:600;color:#201f1e}
.ol-list-head .sub{font-size:10.5px;color:#8a8886;margin-left:2px}
.ol-list{flex:0 0 352px;border-right:1px solid #e1dfdd;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-height:0}
#ol-list{flex:1 1 auto;border-right:0;overflow:auto;min-height:0}
.mail-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:10px 14px;border-bottom:1px solid #f3f2f1;cursor:pointer;position:relative}
.mail-item:hover{background:#faf9f8}
.mail-item.on{background:#deecf9}
.mail-item.unread{background:#fff;font-weight:600}
.mail-item.unread .from,.mail-item.unread .subj{font-weight:600}
.mail-item .m-avatar{width:30px;height:30px;border-radius:50%;background:#e1dfdd;color:#605e5c;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600}
.mail-item .from{display:block;font-size:11.5px;color:#201f1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mail-item .subj{display:block;font-size:11.5px;color:#201f1e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0}
.mail-item .preview{display:block;font-size:10.5px;color:#8a8886;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.mail-item .m-time{font-size:9.5px;color:#8a8886;white-space:nowrap;font-weight:400}
.mail-item .unread-dot{position:absolute;left:5px;top:50%;width:4px;height:4px;border-radius:50%;background:var(--accent);transform:translateY(-50%)}
.ol-reading{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;background:#fff}
.ol-reading-head{padding:16px 22px 12px;border-bottom:1px solid #edebe9}
.ol-reading-head h1{margin:0 0 9px;font-size:18px;font-weight:600;color:#201f1e;line-height:1.3}
.ol-reading-meta{display:flex;align-items:center;gap:9px;font-size:11px;color:#605e5c}
.ol-reading-meta .m-avatar{width:28px;height:28px;font-size:11px}
.ol-reading-body{padding:18px 24px 30px;overflow:auto;font-size:12.5px;line-height:1.75;color:#323130;flex:1}
.ol-reading-body p{margin:0 0 10px}
.ol-reading-body .sig{color:#8a8886;margin-top:18px;border-top:1px solid #edebe9;padding-top:10px}
.ol-reply{display:flex;gap:8px;padding:11px 22px 16px;border-top:1px solid #edebe9;background:#faf9f8}
.ol-reply input{flex:1;height:30px;border:1px solid #c8c6c4;padding:0 9px;border-radius:2px}
.ol-calendar{flex:1;min-width:0;overflow:auto;padding:20px 24px;background:#fff}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid #e1dfdd;border-radius:3px;overflow:hidden;max-width:1000px}
.cal-grid .dow{height:28px;display:flex;align-items:center;justify-content:center;background:#faf9f8;color:#605e5c;font-size:10.5px;border-bottom:1px solid #e1dfdd;border-right:1px solid #edebe9}
.cal-grid .day{min-height:88px;border-right:1px solid #edebe9;border-bottom:1px solid #edebe9;padding:6px 7px;font-size:10.5px;color:#605e5c;position:relative}
.cal-grid .day.today{background:#eef6fd}
.cal-grid .day .n{font-size:11px;font-weight:600;color:#323130}
.cal-grid .day.today .n{color:var(--accent)}
.cal-grid .evt{margin-top:5px;background:#deecf9;color:#0b5290;padding:2px 4px;border-radius:2px;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ol-compose{position:fixed;right:34px;bottom:0;width:620px;max-width:calc(100vw - 40px);height:520px;max-height:82vh;background:#fff;border:1px solid #8a8886;box-shadow:0 -4px 24px rgba(0,0,0,.22);z-index:150;display:flex;flex-direction:column}
.ol-compose-head{height:34px;flex:none;background:var(--accent);color:#fff;display:flex;align-items:center;padding:0 12px;font-size:12px;font-weight:600}
.ol-compose-head .x{margin-left:auto;width:24px;height:24px;display:flex;align-items:center;justify-content:center}
.ol-compose-head .x:hover{background:rgba(255,255,255,.2)}
.ol-compose .row{display:flex;align-items:center;gap:8px;padding:7px 14px;border-bottom:1px solid #edebe9;font-size:12px}
.ol-compose .row label{width:42px;color:#605e5c}
.ol-compose .row input{flex:1;border:0;outline:none;font-size:12px}
.ol-compose textarea{flex:1;border:0;resize:none;outline:none;padding:12px 14px;font:12.5px/1.7 "Segoe UI","Noto Sans SC",sans-serif}
.ol-compose-foot{height:46px;flex:none;display:flex;align-items:center;gap:8px;padding:0 14px;border-top:1px solid #edebe9;background:#faf9f8}

/* ============================== 响应式 ============================== */
@media (max-width:1180px){
  .hub-grid{grid-template-columns:1fr}
  .tile-row{grid-template-columns:repeat(3,1fr)}
  .bs-info-grid{grid-template-columns:1fr}
  .ppt-right{display:none}
  .ol-cal{display:none}
}
@media (max-width:820px){
  .hub-main,.hub-foot{width:calc(100% - 28px)}
  .hub-hero{flex-direction:column;align-items:flex-start;gap:14px}
  .hub-hero h1{font-size:27px}
  .tile-row{grid-template-columns:repeat(2,1fr)}
  .hub-top{padding:0 14px;gap:10px}
  .hub-search{display:none}
  .bs-left{width:168px}
  .bs-main{padding:24px 22px 34px}
  .word-page{width:100%;min-width:0;padding:48px 40px}
  .word-ruler{width:100%}
  .ppt-left{width:150px}
  .on-left{display:none}
  .on-pages{width:180px}
  .ol-nav{width:170px}
}
@media print{
  body{overflow:visible}
  .titlebar,.tabstrip,.ribbon,.statusbar,.word-ruler-row,.word-modebar,.backstage,.toast-wrap{display:none !important}
  .workspace,.word-workspace,.word-scroll{overflow:visible;height:auto;background:#fff}
  .word-page{box-shadow:none;margin:0;page-break-after:always}
}
