:host {
  display: block;
}

.drawer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
}

.drawer-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mask-visible {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.drawer-content-visible {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  color: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid #f0f0f0;
}

.drawer-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.close-button span {
  font-size: 24px;
  line-height: 1;
  color: #999;
}

.close-button:hover span {
  color: #666;
}

.drawer-body {
  flex: 1;
  padding: 24px;
  overflow: auto;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .drawer-content {
    width: 100% !important;
  }
  
  .drawer-header {
    padding: 12px 16px;
  }
  
  .drawer-body {
    padding: 16px;
  }
} 