/* 📋 小狗的办公室 — office.css（2026-09-02 装修）
   合并了旧的 base / files / staging / notifications / login 五个文件。
   JS 一个字没改：所有 id / class 名称与 js/*.js 里的保持一致。 */

@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&family=Zen+Maru+Gothic:wght@400;700&display=swap');

:root {
  --ink: #6b5138;
  --wood: #c8925a;
  --wood-dark: #a9743f;
  --wood-edge: #8b5a2b;
  --manila: #f4dcab;
  --paper: #fffdf7;
  --cork: #d9a76e;
  --accent: #e07b39;
  --text: #5a4535;
  --muted: #8a7560;
  --note-y: #fff3a3;
  --note-p: #ffd6e0;
  --note-b: #cfe8ff;
  --note-g: #d8f5c8;
  --hand: 'Hachi Maru Pop', 'Zen Maru Gothic', sans-serif;
  --body: 'Zen Maru Gothic', 'Noto Sans JP', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh; min-height: 100dvh;
  font-family: var(--body); color: var(--text);
  background: linear-gradient(160deg, #fffaf5 0%, #ffe8d2 35%, #ffd4b0 65%, #f0c8a0 100%);
  padding: 0 14px 48px; position: relative;
}
body::before {
  content: ''; position: fixed; top: -30%; right: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,200,130,.25) 0%, transparent 70%); pointer-events: none; z-index: 0;
}
.room { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ===== 手绘线（和玄关同一套） ===== */
.ink { fill: none; stroke: var(--ink); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s ease forwards; }
.ink.thin { stroke-width: 2.8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ink { stroke-dashoffset: 0; animation: none; } }

/* ===== 顶部 ===== */
.back-link { position: absolute; top: 14px; left: 0; color: #c07830; text-decoration: none;
  font-family: var(--hand); font-size: 13px; }
@media (hover: hover) { .back-link:hover { text-decoration: underline; } }

.sign-row { text-align: center; padding-top: 46px; margin-bottom: 18px; }
.sign { display: inline-block; position: relative; font-family: var(--hand); font-weight: 400; font-size: 18px;
  color: #fff8ec; text-shadow: 0 1px 0 var(--ink);
  background: var(--wood); border: 3px solid var(--ink); border-radius: 8px; padding: 6px 20px;
  box-shadow: 0 3px 0 var(--wood-edge); }
.sign::before, .sign::after { content: ''; position: absolute; top: -42px; width: 2.5px; height: 41px; background: var(--ink); }
.sign::before { left: 18px; transform: rotate(8deg); }
.sign::after { right: 18px; transform: rotate(-8deg); }

/* ===== 软木通知板 ===== */
.wall { margin-bottom: 26px; }
.corkboard {
  background-color: var(--cork);
  background-image:
    radial-gradient(rgba(120,80,40,.20) 1px, transparent 1.6px),
    radial-gradient(rgba(255,235,200,.40) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
  border: 8px solid var(--wood-edge); border-radius: 10px;
  box-shadow: inset 0 0 14px rgba(0,0,0,.18), 0 4px 0 #6f4520, 0 8px 16px rgba(120,70,30,.25);
  padding: 10px 10px 8px;
}
.cork-header { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.cork-title { display: inline-block; font-family: var(--hand); font-size: 15px; color: var(--ink);
  background: var(--paper); padding: 4px 14px; border-radius: 3px; position: relative; transform: rotate(-1.5deg);
  box-shadow: 1px 2px 4px rgba(0,0,0,.2); }
.cork-title::before { content: ''; position: absolute; top: -6px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb1a8, #c62828); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.notif-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828); color: #fff; font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.notif-badge.zero { opacity: .35; }
.cork-header .arrow { margin-left: auto; color: #fff3dd; font-size: 13px; text-shadow: 0 1px 1px rgba(0,0,0,.3); }

.notif-body { display: none; }
.notif-body.open { display: block; }
#notif-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 18px 8px 8px; }

/* 便签纸 */
.notif-item { position: relative; padding: 20px 11px 10px; font-size: 12px; line-height: 1.5; color: #4d3b2d;
  background: var(--note-y); transform: rotate(var(--tilt, -2deg));
  box-shadow: 2px 3px 6px rgba(0,0,0,.2); }
.notif-item::before { content: ''; position: absolute; top: 5px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9c7b8, #7d6a5a); box-shadow: 0 2px 3px rgba(0,0,0,.35); }
.notif-item:nth-child(4n+2) { background: var(--note-p); --tilt: 1.6deg; }
.notif-item:nth-child(4n+3) { background: var(--note-b); --tilt: -1deg; }
.notif-item:nth-child(4n+4) { background: var(--note-g); --tilt: 2.2deg; }
.notif-item.error::before   { background: radial-gradient(circle at 35% 35%, #ff8a80, #c62828); }
.notif-item.warning::before { background: radial-gradient(circle at 35% 35%, #ffe082, #e0a000); }
.notif-item.info::before    { background: radial-gradient(circle at 35% 35%, #b9f0a8, #4e9a3a); }
.notif-item:not(.unread) { opacity: .55; filter: saturate(.6); }
.notif-msg { word-break: break-word; }
.notif-meta { font-size: 10px; color: #8a7560; margin-top: 6px; }
.notif-empty { grid-column: 1 / -1; justify-self: center; background: var(--note-y); padding: 18px 16px 10px; font-size: 12px; color: #6a5a4a;
  transform: rotate(-1.5deg); box-shadow: 2px 3px 6px rgba(0,0,0,.2); position: relative; }
.notif-empty::before { content: ''; position: absolute; top: 5px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d9c7b8, #7d6a5a); box-shadow: 0 2px 3px rgba(0,0,0,.35); }

.notif-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 6px 2px; }
.notif-actions button { font-family: var(--hand); font-size: 11px; color: var(--ink); background: rgba(255,250,235,.85);
  border: 2px solid var(--ink); border-radius: 4px; padding: 4px 10px; cursor: pointer; }
@media (hover: hover) { .notif-actions button:hover { background: #fff; } }

/* ===== 桌子 ===== */
.desk { position: relative; }
.desk-top {
  position: relative;
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(95deg, rgba(255,255,255,.07) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, rgba(90,50,20,.08) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #d6a56d, #c8925a);
  border-radius: 14px 14px 4px 4px;
  padding: 12px 12px 84px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 8px 18px rgba(120,70,30,.28);
}
.desk-top::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(ellipse at 14% 6%, rgba(255,225,140,.45), rgba(255,225,140,0) 46%); }
.room.lamp-on .desk-top::after { opacity: 1; }
.desk-edge { height: 12px; margin: 0 6px; background: var(--wood-edge); border-radius: 0 0 10px 10px; box-shadow: 0 4px 0 #6f4520; }

/* 桌上小物 */
.desk-items { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 14px; padding: 0 4px; }
.desk-corner { position: absolute; right: 16px; bottom: 12px; display: flex; align-items: flex-end; gap: 14px; }
.lamp { width: 58px; height: 84px; background: none; border: none; padding: 0; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.lamp svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lamp .glow, .lamp .bulb { opacity: 0; transition: opacity .35s; }
.room.lamp-on .lamp .glow { opacity: 1; }
.room.lamp-on .lamp .bulb { opacity: 1; }
.nameplate { flex: 1; text-align: center; padding-right: 24px; align-self: center; }
.nameplate span { display: inline-block; font-family: var(--hand); font-size: 14px; color: #fff8ec; text-shadow: 0 1px 0 var(--ink);
  background: var(--wood-edge); border: 2.5px solid var(--ink); border-radius: 6px; padding: 5px 12px; box-shadow: 0 3px 0 #4a2e14; white-space: nowrap; }
.mug { width: 44px; height: 47px; flex-shrink: 0; }
.mug svg { width: 100%; height: 100%; display: block; }
.jar { width: 48px; flex-shrink: 0; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; -webkit-tap-highlight-color: transparent; }
.jar svg { width: 44px; height: 53px; display: block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.jar.tilt svg { transform: rotate(-9deg) translateY(-3px); }
.jar span { font-family: var(--hand); font-size: 10px; color: var(--ink); background: rgba(255,250,235,.85); padding: 1px 6px; border-radius: 3px; }
@media (hover: hover) { .jar:hover svg { transform: rotate(-6deg) translateY(-2px); } }

/* 区块标题：贴在桌上的胶带标签 */
.deploy-area { margin-top: 14px; }
.deploy-title { display: inline-block; font-family: var(--hand); font-size: 14px; color: var(--ink); cursor: pointer; user-select: none;
  background: rgba(255,250,235,.9); padding: 4px 14px 4px 10px; border-radius: 2px; transform: rotate(-1deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.18); margin-bottom: 12px; }
.deploy-title .arrow { display: inline-block; font-size: 10px; margin-right: 6px; transition: transform .2s; }
.deploy-title .arrow.open { transform: rotate(90deg); }
.deploy-body { display: none; }
.deploy-body.open { display: block; }
/* 项目文件那一排：左边标签，右边打包按钮 */
.rack-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.rack-head .deploy-title { margin-bottom: 0; }
.btn-small { padding: 6px 12px; font-size: 12px; }

/* ===== 文件架：牛皮纸文件夹 ===== */
.rack { padding-top: 8px; }
.file-item { position: relative; display: flex; align-items: center; justify-content: space-between;
  background: var(--manila); border: 2.5px solid var(--ink); border-radius: 5px 10px 10px 5px;
  padding: 10px 12px 10px 20px; margin-bottom: 10px; cursor: pointer;
  box-shadow: 0 3px 0 #c9a26a; transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.file-item::before { content: ''; position: absolute; top: -10px; left: 14px; width: 44px; height: 12px;
  background: var(--manila); border: 2.5px solid var(--ink); border-bottom: none; border-radius: 6px 6px 0 0; }
/* 标签耳朵：五个位置（最左/¼/½/¾/最右）按12个一循环乱序排，相邻不重复，颜色不受影响 */
.file-item:nth-child(12n+2)::before { left: calc(14px + (100% - 77px) * .75); }
.file-item:nth-child(12n+3)::before { left: calc(14px + (100% - 77px) * .25); }
.file-item:nth-child(12n+4)::before { left: calc(100% - 63px); }
.file-item:nth-child(12n+5)::before { left: calc(14px + (100% - 77px) * .5); }
.file-item:nth-child(12n+7)::before { left: calc(14px + (100% - 77px) * .5); }
.file-item:nth-child(12n+8)::before { left: calc(100% - 63px); }
.file-item:nth-child(12n+9)::before { left: calc(14px + (100% - 77px) * .25); }
.file-item:nth-child(12n+10)::before { left: calc(14px + (100% - 77px) * .75); }
.file-item:nth-child(12n+12)::before { left: calc(100% - 63px); }
.file-item::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border-radius: 3px 0 0 3px; background: var(--spine, #e07b39); }
.file-item:nth-child(6n+2) { --spine: #e8b84a; }
.file-item:nth-child(6n+3) { --spine: #7fb069; }
.file-item:nth-child(6n+4) { --spine: #5aa1c9; }
.file-item:nth-child(6n+5) { --spine: #b27fc9; }
.file-item:nth-child(6n+6) { --spine: #e58a9c; }
@media (hover: hover) { .file-item:hover { transform: translateX(6px); box-shadow: 0 3px 0 #c9a26a, 4px 4px 10px rgba(90,50,20,.2); } }
.file-item:active { transform: translateX(6px) scale(.985); }
.file-name { font-size: 13px; font-weight: 700; color: var(--text); word-break: break-all; }
.file-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.file-arrow { display: none; }
.loading { font-family: var(--hand); text-align: center; padding: 22px; color: #fff3dd; font-size: 13px; text-shadow: 0 1px 1px rgba(0,0,0,.25); }

.upload-area { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.btn { font-family: var(--body); font-size: 13px; padding: 9px 16px; border-radius: 8px; cursor: pointer; transition: transform .12s, background .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-download { background: #e0b078; color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 #a9743f; font-weight: 700; }
@media (hover: hover) { .btn-download:hover { background: #ebc08a; } }
.btn-download:disabled { opacity: .6; cursor: default; }
.btn-back { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 3px 0 #d9b98a; }
@media (hover: hover) { .btn-back:hover { background: #fff; } }
.upload-btn { width: 100%; padding: 12px; font-family: var(--body); font-size: 13px; color: #fff8ec; text-shadow: 0 1px 1px rgba(0,0,0,.25);
  background: rgba(255,255,255,.14); border: 2.5px dashed rgba(255,250,235,.85); border-radius: 10px; cursor: pointer; transition: background .15s; }
@media (hover: hover) { .upload-btn:hover { background: rgba(255,255,255,.26); } }
#file-input, #deploy-input { display: none; }

/* ===== 翻开的笔记本（查看器） ===== */
.viewer { display: none; }
.viewer.active { display: block; }
.viewer-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.viewer-title { display: inline-block; font-family: var(--hand); font-size: 14px; color: var(--ink);
  background: var(--note-y); border: 2px solid var(--ink); border-radius: 3px; padding: 4px 12px; margin: 0 0 -8px 14px;
  transform: rotate(-1.5deg); position: relative; z-index: 2; box-shadow: 1px 2px 4px rgba(0,0,0,.2); max-width: 100%; word-break: break-all; }
.viewer-content { position: relative; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 6px 14px 14px 6px;
  padding: 22px 16px 20px 32px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
  box-shadow: 5px 6px 0 #d9b98a;
  background-image: linear-gradient(90deg, transparent 22px, rgba(224,123,57,.35) 22px, rgba(224,123,57,.35) 23px, transparent 23px); }
.viewer-content::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 12px;
  background: radial-gradient(circle, var(--ink) 2.6px, transparent 3.2px) 0 0 / 12px 24px repeat-y; }
.viewer-content h1, .viewer-content h2, .viewer-content h3 { color: #8b5e3c; margin: 16px 0 8px; font-family: var(--hand); font-weight: 400; }
.viewer-content h1 { font-size: 18px; border-bottom: 2px dashed #d9b98a; padding-bottom: 6px; }
.viewer-content h2 { font-size: 15px; }
.viewer-content h3 { font-size: 14px; }
.viewer-content code { background: #f3e6cf; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-family: 'SF Mono', Consolas, monospace; }
.viewer-content pre { background: #3a2e24; color: #f0d8c0; padding: 12px; border-radius: 10px; overflow-x: auto; margin: 10px 0; font-size: 12px; line-height: 1.6; }
.viewer-content pre code { background: none; padding: 0; color: inherit; }
.viewer-content table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 12px; }
.viewer-content th, .viewer-content td { border: 1px solid #ddc8a8; padding: 6px 10px; text-align: left; }
.viewer-content th { background: #f5e0c8; font-weight: 700; }
.viewer-content blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: #8b6e50; margin: 10px 0; }
.viewer-content a { color: #c07830; }
.viewer-content hr { border: none; border-top: 1px dashed #d9b98a; margin: 16px 0; }
.viewer-content .loading { color: var(--muted); text-shadow: none; }

/* ===== 收件托盘（文件仓库） ===== */
.tray { position: relative; background: linear-gradient(180deg, #62717f, #4a5863); border: 2.5px solid var(--ink);
  border-radius: 6px 6px 12px 12px; padding: 12px 10px 14px;
  box-shadow: inset 0 8px 12px rgba(0,0,0,.28), 0 4px 0 #36414a; }
.deploy-drop { border: 2px dashed rgba(255,255,255,.65); border-radius: 8px; padding: 16px 12px; text-align: center;
  color: rgba(255,255,255,.92); font-size: 13px; font-family: var(--hand); cursor: pointer; background: rgba(255,255,255,.06); transition: background .15s, border-color .15s; }
.deploy-drop span { display: block; margin-top: 4px; font-family: var(--body); font-size: 11px; opacity: .8; }
.deploy-drop.dragover { background: rgba(255,255,255,.16); border-color: #fff; }
@media (hover: hover) { .deploy-drop:hover { background: rgba(255,255,255,.16); border-color: #fff; } }
.deploy-result { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.9); text-align: center; min-height: 1em; }
.deploy-result .ok { color: #c8f5b0; }
.deploy-result .err { color: #ffb0a0; }
.deploy-files { margin-top: 10px; max-height: 260px; overflow-y: auto; padding: 4px 6px 6px; }
.deploy-file-item { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--paper); color: var(--text); padding: 8px 10px; font-size: 12px;
  margin-top: -3px; transform: rotate(var(--r, -.8deg)); box-shadow: 0 1px 3px rgba(0,0,0,.28); }
.deploy-file-item:first-child { margin-top: 0; }
.deploy-file-item:nth-child(4n+2) { --r: .9deg; }
.deploy-file-item:nth-child(4n+3) { --r: -.4deg; }
.deploy-file-item:nth-child(4n+4) { --r: 1.3deg; }
.deploy-file-name { font-weight: 700; word-break: break-all; flex: 1; }
.deploy-file-size { color: var(--muted); white-space: nowrap; font-size: 11px; }
.deploy-file-dir { opacity: .5; }
.deploy-file-del { background: none; border: none; cursor: pointer; font-size: 14px; color: #c05030; padding: 2px 4px; opacity: .5; transition: opacity .15s; }
@media (hover: hover) { .deploy-file-del:hover { opacity: 1; } }
/* JS 直出的「空空的~ / 加载失败」带内联灰色，给它垫一张小纸片 */
.deploy-files > div[style] { background: var(--paper); border-radius: 6px; padding: 8px !important; transform: rotate(-.6deg); box-shadow: 0 1px 3px rgba(0,0,0,.28); }

/* ===== 趴在桌沿的小狗 ===== */
/* 爪子搭在桌沿上：margin-top = -(爪子顶 126/220*宽 + 桌沿12px) */
.dog-wrap { position: relative; width: 150px; margin: -98px 0 0 10px; z-index: 3; }
.dog { display: block; width: 100%; height: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 90%; }
.dog.booped { animation: boop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes boop { 0% { transform: translateY(0); } 35% { transform: translateY(-12px) rotate(-3deg); } 60% { transform: translateY(2px); } 100% { transform: translateY(0); } }
.bubble { position: absolute; left: 118px; top: 18px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 6px 10px; font-family: var(--hand); font-size: 12px; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; }
.bubble::before { content: ''; position: absolute; left: -9px; bottom: 8px; width: 12px; height: 12px; background: var(--paper);
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); }
.bubble.show { animation: bubblePop 2.2s ease forwards; }
@keyframes bubblePop {
  0% { opacity: 0; transform: translateY(6px) scale(.85); }
  15% { opacity: 1; transform: translateY(0) scale(1.04); }
  25% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ===== 提示 ===== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff8ec; padding: 10px 20px; border-radius: 10px; font-size: 13px; transition: transform .3s ease, opacity .3s; z-index: 100; opacity: 0; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== 门（登录） ===== */
.login-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(160deg, #fffaf5 0%, #ffe8d2 35%, #ffd4b0 65%, #f0c8a0 100%); }
.login-overlay.hidden { display: none; }
.login-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 2.5px solid var(--ink); border-radius: 18px; padding: 26px 24px 28px; box-shadow: 6px 7px 0 #d9b98a; }
.door { width: 82px; height: auto; margin-bottom: 2px; }
.login-title { font-family: var(--hand); font-size: 18px; color: var(--ink); }
.login-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.login-box input { width: 100%; padding: 12px 14px; font-family: var(--body); font-size: 16px; color: var(--text);
  background: var(--paper); border: 2.5px solid var(--ink); border-radius: 10px; outline: none; }
.login-box input:focus { box-shadow: 0 0 0 4px rgba(224,123,57,.18); }
.login-box input::placeholder { color: #c4a080; }
.login-box button { width: 100%; padding: 12px; margin-top: 4px; font-family: var(--hand); font-size: 15px; color: #fff8ec; text-shadow: 0 1px 0 var(--ink);
  background: var(--accent); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 #a9553f; cursor: pointer; }
.login-box button:active { transform: translateY(2px); box-shadow: 0 1px 0 #a9553f; }
.login-err { display: none; font-size: 12px; color: #c05030; }

/* 键盘焦点 */
button:focus-visible, a:focus-visible, .file-item:focus-visible { outline: 3px solid rgba(224,123,57,.6); outline-offset: 2px; }

/* 桌面稍宽时，小狗和托盘并排一点 */
@media (min-width: 480px) {
  .dog-wrap { width: 170px; margin: -109px 0 0 16px; }
  .desk-top { padding-bottom: 94px; }
  #notif-list { grid-template-columns: 1fr 1fr 1fr; }
}
