/* ============================================================
   大陶匠 · 发布菜单组件
   说明：底部导航+按钮弹出的发布类型选择菜单
   调用：window.PublishMenu.show() / toggle()
   兼容：window.showPublishMenu / window.togglePublishMenu / window.handlePublish
   ============================================================ */

.publish-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(61,44,30,0.45);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(2px);
}

.publish-menu-overlay.show {
  display: block;
}

.publish-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 9999;
  padding: 12px 16px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
}

.publish-menu.show {
  transform: translateY(0);
}

.publish-menu-handle {
  width: 40px;
  height: 4px;
  background: #e8ddd0;
  border-radius: 2px;
  margin: 0 auto 12px;
}

.publish-menu-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #3d2c1e;
  margin-bottom: 18px;
}

.publish-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.publish-menu-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.publish-menu-item:active {
  transform: scale(0.92);
}

.publish-menu-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.publish-menu-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}

.publish-menu-label {
  font-size: 11px;
  color: #5c4a3a;
  margin-top: 8px;
}

.publish-menu-cancel {
  height: 46px;
  background: #F5F0E8;
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #8B7355;
  cursor: pointer;
  transition: background 0.2s;
}

.publish-menu-cancel:active {
  background: #ebe3d6;
}

.publish-icon-recipe {
  background: linear-gradient(135deg, #8B4513, #A0522D);
}

.publish-icon-material {
  background: linear-gradient(135deg, #5D8A6B, #7EC8A0);
}

.publish-icon-firing {
  background: linear-gradient(135deg, #D96A1F, #F4A460);
}

.publish-icon-post {
  background: linear-gradient(135deg, #4A90D9, #87CEEB);
}
