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

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif; 
  background: #f7f8fa;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

#app {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 顶部栏 */
.top-bar { 
  height: 60px; 
  background: #fff; 
  border-bottom: 1px solid #e5e6eb; 
  display: flex; 
  align-items: center; 
  padding: 0 24px; 
  justify-content: space-between; 
}

.app-name { 
  font-size: 18px; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

/* 左侧边栏 */
.left-sidebar { 
  width: 240px; 
  background: #fff; 
  border-right: 1px solid #e5e6eb; 
  display: flex; 
  flex-direction: column; 
}

.sidebar-upload { 
  padding: 16px; 
}

.sidebar-nav { 
  flex: 1; 
}

.sidebar-stats { 
  padding: 16px; 
  border-top: 1px solid #e5e6eb; 
  font-size: 12px; 
  color: #8f959e; 
  line-height: 1.8; 
}

.nav-item { 
  height: 40px; 
  padding: 0 20px; 
  margin: 4px 12px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  cursor: pointer; 
  color: #646a73; 
  border-radius: 8px; 
  transition: all 0.2s; 
}

.nav-item:hover { 
  background: #f2f3f5; 
}

.nav-item.active { 
  background: #e1eeff; 
  color: #3370ff; 
  font-weight: 500; 
}

/* 文档列表 */
.doc-list { 
  padding: 0 16px; 
}

.doc-group-title { 
  font-size: 13px; 
  color: #646a73; 
  padding: 12px 0 8px; 
  font-weight: 500; 
}

.doc-item { 
  height: 52px; 
  display: flex; 
  align-items: center; 
  padding: 0 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  transition: all 0.2s; 
}

.doc-item:hover { 
  background: #f7f8fa; 
}

/* WPS风格文档图标 */
.doc-icon { 
  width: 36px; 
  height: 36px; 
  border-radius: 6px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 18px; 
  font-weight: 700; 
  flex-shrink: 0; 
}

.doc-icon.word { 
  background: linear-gradient(135deg, #2b5fd9 0%, #1a4db8 100%); 
  color: white; 
}

.doc-icon.excel { 
  background: linear-gradient(135deg, #1f7a54 0%, #176d48 100%); 
  color: white; 
}

.doc-icon.ppt { 
  background: linear-gradient(135deg, #d46b08 0%, #c25f07 100%); 
  color: white; 
}

.doc-icon.pdf { 
  background: linear-gradient(135deg, #cf1322 0%, #b8101e 100%); 
  color: white; 
}

.doc-icon.default { 
  background: linear-gradient(135deg, #8f959e 0%, #767b85 100%); 
  color: white; 
}

.doc-icon.image { 
  background: linear-gradient(135deg, #ff6b9d 0%, #ff4d7d 100%); 
  color: white; 
  font-size: 14px; 
}

.doc-name { 
  flex: 1; 
  font-size: 14px; 
  margin: 0 12px; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

.doc-meta { 
  display: flex; 
  gap: 20px; 
  font-size: 13px; 
  color: #8f959e; 
  margin-right: 12px; 
}

.doc-actions { 
  display: flex; 
  gap: 4px; 
  opacity: 0; 
  transition: opacity 0.2s; 
}

.doc-item:hover .doc-actions { 
  opacity: 1; 
}

/* WebOffice */
.weboffice-page { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: #fff; 
  z-index: 1000; 
}

.weboffice-container { 
  height: calc(100vh - 56px); 
}

iframe { 
  width: 100%; 
  height: 100%; 
  border: none; 
}

/* 空状态 */
.empty-state { 
  text-align: center; 
  padding: 100px 20px; 
  color: #8f959e; 
}

.empty-icon { 
  font-size: 72px; 
  opacity: 0.3; 
  margin-bottom: 16px; 
}

/* 拖拽上传区域 */
.upload-drop-zone {
  padding: 24px 16px;
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
}

.upload-drop-zone:hover {
  border-color: #3370ff;
  background: #f0f5ff;
}

.upload-drop-zone.active {
  border-color: #3370ff;
  background: #e6f0ff;
  transform: scale(1.02);
}

.upload-icon {
  color: #8f959e;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.upload-drop-zone:hover .upload-icon {
  color: #3370ff;
}

.upload-text {
  font-size: 14px;
  color: #303133;
  font-weight: 500;
  margin-bottom: 4px;
}

.upload-hint {
  font-size: 12px;
  color: #8f959e;
  line-height: 1.5;
}

/* 分享抽屉样式 */
.el-row { 
  margin-bottom: 20px; 
}

.el-row:last-child { 
  margin-bottom: 0; 
}

.share-user-item { 
  padding: 12px; 
  border-radius: 8px; 
  margin-bottom: 8px; 
  background: #f5f7fa; 
  align-items: center; 
}

.share-user-subtitle { 
  font-size: 12px; 
  color: #8f959e; 
  margin-top: 2px; 
}

/* 修复Element Plus表格宽度问题 */
.el-table {
  width: 100% !important;
}

.el-table__header-wrapper,
.el-table__body-wrapper {
  width: 100% !important;
}

.el-table__header,
.el-table__body {
  width: 100% !important;
}

/* 筛选下拉菜单样式 */
.filter-dropdown-link {
  cursor: pointer;
  color: var(--el-color-primary);
  display: flex;
  align-items: center;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  background: #f5f7fa;
  border: none;
  outline: none;
}

.filter-dropdown-link:hover {
  background: #e6f0ff;
  color: #3370ff;
  border: none;
  outline: none;
}

.filter-dropdown-link:focus {
  border: none;
  outline: none;
}

/* 图片缩略图样式 */
.image-thumbnail {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.image-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.image-thumbnail img {
  transition: opacity 0.3s;
}

.image-thumbnail:hover img {
  opacity: 0.9;
}

/* 视频封面缩略图样式 */
.video-thumbnail {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  background: linear-gradient(135deg, #03A9F4 0%, #21b4f8 100%);
}

.video-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-thumbnail video {
  pointer-events: none;
  background: transparent;
}

/* 视频播放按钮 */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  transition: all 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video-thumbnail:hover .video-play-btn {
  border-color: transparent transparent transparent rgba(255, 255, 255, 1);
  transform: translate(-50%, -50%) scale(1.2);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

/* 右键菜单样式 */
.context-menu {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.context-menu .el-menu {
  border: none;
}

.context-menu .el-menu-item {
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  min-width: 180px;
}

.context-menu .el-menu-item:hover {
  background: #f5f7fa;
}

/* 美化的日历样式 */
.beautiful-calendar {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.beautiful-calendar .el-calendar__header {
  padding: 12px 0;
  border-bottom: 1px solid #e5e6eb;
  margin-bottom: 16px;
}

.beautiful-calendar .el-calendar__title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.beautiful-calendar .el-calendar__button-group {
  display: none;
}

.beautiful-calendar .el-calendar-table {
  width: 100%;
}

.beautiful-calendar .el-calendar-table thead th {
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  color: #909399;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.beautiful-calendar .el-calendar-table td {
  padding: 4px;
  border: none;
}

.beautiful-calendar .el-calendar-day {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.beautiful-calendar .el-calendar-day span {
  font-size: 13px;
  color: #606266;
  z-index: 1;
}

.beautiful-calendar .current .el-calendar-day:hover {
  background: #f5f7fa;
}

.beautiful-calendar .is-selected .el-calendar-day {
  background: #e6f0ff !important;
  color: #3370ff;
}

.beautiful-calendar .is-selected .el-calendar-day span {
  color: #3370ff;
  font-weight: 600;
}

.beautiful-calendar .is-today .el-calendar-day {
  background: #fff;
  border: 2px solid #3370ff;
}

.beautiful-calendar .is-today .el-calendar-day span {
  color: #3370ff;
  font-weight: 600;
}

.beautiful-calendar .prev .el-calendar-day span,
.beautiful-calendar .next .el-calendar-day span {
  color: #c0c4cc;
}

.beautiful-calendar .prev .el-calendar-day:hover,
.beautiful-calendar .next .el-calendar-day:hover {
  background: transparent;
  cursor: default;
}

/* 日期上的活动小圆点 */
.activity-dot {
  width: 5px;
  height: 5px;
  background: #409eff;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}