/* Apple Minimalistic Style */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8f8f9;
  color: #333;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #ffffffcc;
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#dropZone {
  border: 2px dashed #c8c8d0;
  border-radius: 12px;
  background: #fff;
  color: #666;
  padding: 60px;
  text-align: center;
  cursor: pointer;
  max-width: 600px;
  margin: 120px auto;
  transition: border-color 0.2s ease;
}
#dropZone:hover {
  border-color: #007aff;
}

#dropZone svg {
  transition: transform 0.2s ease;
}
#dropZone:hover svg {
  transform: scale(1.1);
}

.sidebar {
  background: #fafafa;
  border-right: 1px solid #eee;
  overflow: hidden;
}
.sidebar .el-scrollbar {
  height: 100%;
}
.sidebar .el-scrollbar__wrap {
  overflow-x: hidden !important;
  overflow-y: auto;
}

.thumbnail {
  position: relative;
  padding: 6px;
}
.thumbnail img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.thumbnail.selected {
  background: #e0f0ff;
}
.page-num {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 2px 4px;
  border-radius: 3px;
}

.viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  background: #ffffff;
}
#pageCanvas {
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
}
.toolbar {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
.assets-section {
  width: 100%;
  margin-top: 32px;
}
.image-list {
  display: flex;
  flex-wrap: wrap;
}
.image-list img {
  width: 120px;
  height: auto;
  margin: 4px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.resource-panel {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fafafa;
  border-left: 1px solid #eee;
}
.resource-panel .toolbar {
  display: flex;
  gap: 8px;
}
.middle-toolbar {
  display: flex;
  gap: 8px;
}

/* 根级满屏 & 无滚动 */
html, body, #app {
  height: 100%;
  overflow: hidden;
}
.el-container {
  height: 100%;
}

.el-main {
  overflow: hidden !important;
  padding: 0;
}

/* 美化滚动条 */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db; /* gray-400 */
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af; /* gray-500 */
}

.presentation-mode .sidebar,
.presentation-mode .resource-panel,
.presentation-mode header {
  display: none !important;
}
.presentation-mode main {
  padding: 0 !important;
}
.presentation-mode #pageCanvas {
  max-width: 100% !important;
  max-height: 100% !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.presentation-mode .viewer {
  padding: 0 !important;
  background: #000 !important;
} 