/* 📋 小狗的办公室 — 文件列表与查看器 */
.file-list { max-width: 600px; margin: 0 auto; }
.file-item { background: rgba(255,255,255,0.7); backdrop-filter: blur(8px); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; animation: fadeUp 0.5s ease backwards; box-shadow: 0 2px 8px rgba(180,120,60,0.08); }
.file-item:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(180,120,60,0.15); }
.file-item:active { transform: scale(0.98); }
.file-name { font-size: 14px; font-weight: 600; color: #6b4c30; }
.file-meta { font-size: 11px; color: #a08060; margin-top: 2px; }
.file-arrow { color: #c09060; font-size: 18px; flex-shrink: 0; margin-left: 12px; }

/* 查看器 */
.viewer { display: none; max-width: 700px; margin: 0 auto; animation: fadeUp 0.4s ease; }
.viewer.active { display: block; }
.viewer-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.viewer-title { font-size: 16px; font-weight: 700; color: #6b4c30; margin-bottom: 12px; }
.viewer-content { background: rgba(255,255,255,0.75); backdrop-filter: blur(8px); border-radius: 14px; padding: 20px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; box-shadow: 0 2px 8px rgba(180,120,60,0.08); overflow-x: auto; }
.viewer-content h1, .viewer-content h2, .viewer-content h3 { color: #8b5e3c; margin: 16px 0 8px; }
.viewer-content h1 { font-size: 18px; border-bottom: 2px solid #e8c8a0; padding-bottom: 6px; }
.viewer-content h2 { font-size: 15px; }
.viewer-content h3 { font-size: 14px; }
.viewer-content code { background: #f5e8d8; 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: 600; }
.viewer-content blockquote { border-left: 3px solid #e07b39; padding-left: 12px; color: #8b6e50; margin: 10px 0; }
.viewer-content a { color: #c07830; }
.viewer-content hr { border: none; border-top: 1px solid #e0c8a0; margin: 16px 0; }

/* 上传 */
.upload-area { max-width: 600px; margin: 20px auto 0; text-align: center; }
.upload-btn { padding: 10px 20px; border-radius: 12px; border: 2px dashed #d0a880; background: rgba(255,255,255,0.4); color: #a07850; font-size: 13px; font-family: inherit; cursor: pointer; transition: all 0.15s; width: 100%; }
.upload-btn:hover { border-color: #e07b39; background: rgba(255,255,255,0.6); }
#file-input { display: none; }
