/*!
 * publish-cate.css
 * 来源：resources/views/web/shared/_publish_cate.blade.php 的内联 <style>
 * 说明：仅为把样式从 HTML 里挪出来（避免慢网速下的样式错位 / FOUC），CSS 内容与原内联一致。
 */

/* layer 把弹窗插到 body 下，无全局 box-sizing，这里自己补齐 */
.pubcate-container { padding: 0; }
.pubcate-container *,
.pubcate-container *::before,
.pubcate-container *::after { box-sizing: border-box; }

/* ---------- 头部 ---------- */
.pubcate-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef2f5;
}
.pubcate-header-txt { display: flex; flex-direction: column; gap: 4px; }
/* 标题左侧图标：品牌深青渐变圆角块 + 白色加号，与头部「+发布」按钮同语言 */
.pubcate-header-ico {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 38px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a8f88, #04605c);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(8, 126, 120, .22);
}
.pubcate-header-txt strong { color: #1d2939; font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.pubcate-header-txt span { color: #98a2b3; font-size: 12.5px; line-height: 1.4; }
.cate-close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 30px;
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 8px;
  color: #98a2b3; font-size: 15px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cate-close:hover { background: #f4f7f9; color: #1d2939; }

/* ---------- 第一步：发布类型（横排卡：图标左 + 内容右） ---------- */
.pubcate-step1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 24px 22px;
}
.pubcate-type {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid #e9eef3;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pubcate-type:hover {
  border-color: var(--pc);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
  transform: translateY(-1px);
}
/* base.css 的 a:link/:visited(0,1,1) 会压过单类名，颜色一律挂 .pubcate-container 前缀抬优先级 */
.pubcate-container .pubcate-type:hover .pubcate-type-title { color: var(--pc); }

.pubcate-type-ico {
  flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--pc-soft);
  color: var(--pc);
  font-size: 17px;
  transition: background-color .16s ease, color .16s ease;
}
.pubcate-type:hover .pubcate-type-ico { background: var(--pc); color: #fff; }

.pubcate-type-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.pubcate-type-top { display: flex; align-items: center; gap: 8px; }
.pubcate-type-title { color: #1d2939; font-size: 15px; font-weight: 700; line-height: 1.4; transition: color .16s ease; }
.pubcate-type-arrow { margin-left: auto; color: #c3cdd6; font-size: 13px; transition: color .16s ease, transform .16s ease; }
.pubcate-type:hover .pubcate-type-arrow { color: var(--pc); transform: translateX(2px); }

.pubcate-type-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #667085; font-size: 12.5px; line-height: 1.55;
}
.pubcate-type-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pubcate-type-tags em {
  padding: 1px 7px;
  border-radius: 5px;
  background: #f6f8fa;
  color: #7b8794;
  font-size: 11px; font-style: normal; line-height: 1.7;
}

/* ---------- 第二步：合作分类 ---------- */
.pubcate-step2 { display: none; padding: 16px 24px 22px; }
.pubcate-container[data-step="2"] .pubcate-step1 { display: none; }
.pubcate-container[data-step="2"] .pubcate-step2 { display: block; }

.pubcate-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 12px; padding: 5px 10px 5px 8px;
  border-radius: 7px; background: #f4f7f9;
  color: #475467; font-size: 12.5px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pubcate-back:hover { background: #e9f7f5; color: #087e78; }

.pubcate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pubcate-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 12px;
  border: 1px solid #e9eef3;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pubcate-card:hover {
  border-color: var(--pc);
  box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}
.pubcate-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--pc-soft);
  color: var(--pc);
  font-size: 13.5px; line-height: 1;
}
.pubcate-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pubcate-title { color: #1d2939; font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pubcate-desc {
  color: #98a2b3; font-size: 11.5px; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .pubcate-header { padding: 16px 16px 12px; }
  .pubcate-step1 { gap: 8px; padding: 14px 16px 18px; }
  .pubcate-type { padding: 12px 13px; gap: 11px; }
  .pubcate-step2 { padding: 12px 16px 18px; }
  .pubcate-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
