/* =============================================================================
 * 分类信息发布平台 · 前台样式
 * 作用域：.xph-front（与商城前台亮色主题一致）
 * 设计令牌全部复用 front-theme.css，不引入独立配色体系。
 * ========================================================================== */

.xph-front .info-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.xph-front .info-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}
.xph-front .info-hero .tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .14);
}
.xph-front .info-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 10px;
  line-height: 1.25;
  color: #fff;
}
.xph-front .info-hero p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14.5px;
  max-width: 720px;
  line-height: 1.8;
}
.xph-front .info-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
/* 主按钮：亮金实底 + 曜石黑字，深色 banner 上高对比、清晰可辨 */
.xph-front .info-hero .actions .btn-accent {
  background: linear-gradient(135deg, #E8C99A 0%, #C9A063 100%) !important;
  color: #1A1917 !important;
  -webkit-text-fill-color: #1A1917 !important;
  border: 1px solid rgba(255,255,255,.35) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.4) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.xph-front .info-hero .actions .btn-accent:hover {
  background: linear-gradient(135deg, #F0D6AE 0%, #D4A96B 100%) !important;
  color: #1A1917 !important;
  -webkit-text-fill-color: #1A1917 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 1px rgba(232,201,154,.4) !important;
  filter: none !important;
}
/* 次按钮：白底深字 + 清晰描边，hover 反转为金色 */
.xph-front .info-hero .actions .btn-ghost-light {
  background: rgba(255,255,255,.95) !important;
  border: 1px solid rgba(201,160,99,.5) !important;
  color: #1F1D1A !important;
  -webkit-text-fill-color: #1F1D1A !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: transform .18s ease, background .18s ease, color .18s ease !important;
}
.xph-front .info-hero .actions .btn-ghost-light:hover {
  background: #FFFFFF !important;
  color: #A67C3D !important;
  -webkit-text-fill-color: #A67C3D !important;
  border-color: #C9A063 !important;
  transform: translateY(-2px) !important;
}

/* 栏目卡片 */
.xph-front .info-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.xph-front .info-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.xph-front .info-cat:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: var(--glow-soft);
}
.xph-front .info-cat .icn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(26,25,23, .1);
  color: var(--primary);
}
.xph-front .info-cat:nth-child(2) .icn { background: rgba(46,43,38, .12); color: #0E9F6E; }
.xph-front .info-cat:nth-child(3) .icn { background: rgba(201,160,99, .14); color: var(--accent-dark); }
.xph-front .info-cat:nth-child(4) .icn { background: rgba(46,43,38, .12); color: #2E2B26; }
.xph-front .info-cat .icn svg { width: 24px; height: 24px; }
.xph-front .info-cat .icn b { font-size: 19px; font-weight: 800; line-height: 1; }
.xph-front .info-cat h3 { margin: 0; font-size: 16px; color: var(--text); }
.xph-front .info-cat .alias { margin: 2px 0 0; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.xph-front .info-cat .count { margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; }

/* 列表 */
.xph-front .info-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}
.xph-front .info-list { padding: 6px 18px; }
.xph-front .info-row {
  display: block;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  transition: background .16s ease;
}
.xph-front .info-row:last-child { border-bottom: none; }
.xph-front .info-row:hover { background: rgba(26,25,23, .035); }
.xph-front .info-row h3 {
  margin: 0 0 7px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.xph-front .info-row:hover h3 { color: var(--primary); }
.xph-front .info-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xph-front .info-row .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}
.xph-front .info-row .meta b { color: var(--accent-dark); font-weight: 700; }
.xph-front .info-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(26,25,23, .1);
  color: var(--primary);
  border: 1px solid rgba(26,25,23, .22);
}
.xph-front .info-badge.top { background: rgba(201,160,99, .12); color: var(--accent-dark); border-color: rgba(201,160,99, .28); }

.xph-front .info-side { padding: 18px; }
.xph-front .info-side h3 { margin: 0 0 14px; font-size: 15px; }
.xph-front .info-side .mini {
  display: block;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  text-decoration: none;
}
.xph-front .info-side .mini:last-child { border-bottom: none; }
.xph-front .info-side .mini:hover { color: var(--primary); }
.xph-front .info-side .mini em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 筛选条 */
.xph-front .info-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.xph-front .info-filter .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xph-front .info-filter .chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
}
.xph-front .info-filter .chip:hover,
.xph-front .info-filter .chip.active {
  border-color: var(--primary);
  background: rgba(26,25,23, .1);
  color: var(--primary);
  font-weight: 600;
}
.xph-front .info-filter form { display: flex; gap: 8px; margin-left: auto; }
.xph-front .info-filter input { width: 200px; }

/* 详情 */
.xph-front .info-detail { padding: 26px; }
.xph-front .info-detail h1 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px); line-height: 1.4; }
.xph-front .info-detail .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.xph-front .info-detail .body {
  font-size: 15px;
  line-height: 2;
  color: var(--text-2);
  white-space: normal;
}
.xph-front .info-contact {
  border-left: 3px solid var(--primary);
  background: rgba(26,25,23, .055);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.xph-front .info-contact .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: baseline; }
.xph-front .info-contact .name { font-size: 16px; font-weight: 700; color: var(--text); }
.xph-front .info-contact .tel { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: .02em; }
.xph-front .info-contact .note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* 发布表单 */
.xph-front .info-publish { max-width: 760px; margin: 0 auto; padding: 28px; }
.xph-front .info-publish h1 { margin: 0 0 6px; font-size: 26px; }
.xph-front .info-publish .sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.xph-front .info-publish .form-item { margin-bottom: 16px; }
.xph-front .info-publish label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.xph-front .info-publish label i { color: var(--err); font-style: normal; }
.xph-front .info-publish input[type=text],
.xph-front .info-publish input[type=tel],
.xph-front .info-publish input[type=file],
.xph-front .info-publish select,
.xph-front .info-publish textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
}
.xph-front .info-publish textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.xph-front .info-publish input:focus,
.xph-front .info-publish select:focus,
.xph-front .info-publish textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,25,23, .12);
}
.xph-front .info-publish .tip {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: rgba(46,43,38, .08);
  border: 1px solid rgba(46,43,38, .22);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .xph-front .info-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xph-front .info-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .xph-front .info-hero { padding: 26px 20px; }
  .xph-front .info-cat-grid { grid-template-columns: 1fr; }
  .xph-front .info-filter form { margin-left: 0; width: 100%; }
  .xph-front .info-filter input { flex: 1; width: auto; }
  .xph-front .info-detail, .xph-front .info-publish { padding: 18px; }
}
