/*
 * UI055 新增房源首页功能分区：01 新增录入 / 02 我的记录（草稿续填、审核跟进）/ 03 常用申请。
 * 只作用于经纪人首页根 .property-create-home；内部盘源工作台、录盘六步与其它页面不受影响。
 * 沿 DESIGN.md：优房蓝灰与中文系统字体，借 Linear 的层级、留白与细边框，不用营销式大卡或阴影堆叠。
 * 电脑 Web 专用；按容器宽度换行，不按视口断点，不隐藏溢出。
 */
.property-create-home {
  --pch-ink: var(--ink, #18202a);
  --pch-muted: var(--muted, #6c7683);
  --pch-line: var(--line, #dce3ea);
  --pch-soft: #edf1f5;
  --pch-canvas: #f6f8fa;
  --pch-accent: var(--blue, #2f64c8);
  --pch-accent-soft: #f0f5fd;
  container-type: inline-size;
  container-name: pch;
  gap: 20px;
}

/* ---------- 分区外壳 ---------- */
.property-create-home .property-create-zone {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px 24px 24px;
  border: 1px solid var(--pch-line);
  border-radius: 12px;
  background: #fff;
}

.property-create-home .property-create-zone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pch-soft);
}

.property-create-home .property-create-zone-head > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  min-width: 0;
}

.property-create-home .property-create-zone-index {
  grid-row: span 2;
  align-self: start;
  min-width: 34px;
  padding: 5px 0;
  border: 1px solid #cfdcf6;
  border-radius: 6px;
  background: var(--pch-accent-soft);
  color: var(--pch-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.property-create-home .property-create-zone-head h4 {
  margin: 0;
  color: var(--pch-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.property-create-home .property-create-zone-head p {
  grid-column: 2;
  max-width: 760px;
  margin: 0;
  color: var(--pch-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 01 新增录入 ---------- */
.property-create-home .property-create-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.property-create-home .property-create-card {
  min-height: 0;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 18px;
  border-color: var(--pch-line);
  border-radius: 10px;
  box-shadow: none;
}

.property-create-home .property-create-card:hover {
  transform: none;
  border-color: #b9c8dd;
  box-shadow: 0 2px 10px rgba(24, 32, 42, 0.06);
}

.property-create-home .property-create-card strong {
  font-size: 16px;
}

.property-create-home .property-create-card p,
.property-create-home .property-create-card small {
  font-size: 13px;
}

.property-create-home .property-create-card small {
  align-self: start;
  padding-top: 10px;
  border-top: 1px dashed var(--pch-soft);
}

.property-create-home .property-create-card .btn {
  justify-self: start;
  min-width: 120px;
}

/* ---------- 02 我的记录：草稿续填 / 审核跟进两条轨道 ---------- */
.property-create-home .property-create-record-list {
  display: grid;
  min-width: 0;
  border: 1px solid var(--pch-line);
  border-radius: 10px;
  background: #fff;
}

.property-create-home .property-create-record {
  gap: 0;
  min-width: 0;
  padding: 16px 18px;
}

.property-create-home .property-create-record + .property-create-record {
  border-top: 1px solid var(--pch-line);
}

.property-create-home .property-create-record .property-create-section-head {
  align-items: center;
}

.property-create-home .property-create-record .property-create-section-head > div {
  display: grid;
  gap: 4px;
}

.property-create-home .property-create-record-kind {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--pch-accent-soft);
  color: var(--pch-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.property-create-home [data-property-create-record="submissions"] .property-create-record-kind {
  background: #edf5ef;
  color: #25623b;
}

.property-create-home .property-create-record .property-create-section-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.property-create-home .property-create-record .property-create-section-head p {
  font-size: 13px;
  line-height: 1.55;
}

/* 两条轨道的按钮同宽、同一右缘对齐。 */
.property-create-home .property-create-record .property-create-section-head > .btn {
  min-width: 132px;
}

.property-create-home .property-create-record-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0d9b5;
  border-radius: 8px;
  background: #fdf8ef;
  color: #7a4d00;
}

.property-create-home .property-create-record-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--pch-soft);
  border-radius: 8px;
  background: var(--pch-canvas);
}

.property-create-home .property-create-record-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
  min-width: 0;
}

.property-create-home .property-create-record-filters > .form-field {
  flex: 0 1 280px;
  min-width: 200px;
  margin: 0;
}

.property-create-home .property-create-record-filters > small,
.property-create-home .property-create-record-filters > .form-hint {
  flex: 1 1 100%;
  margin: 0;
  color: var(--pch-muted);
  font-size: 12px;
}

.property-create-home .property-create-record-body .internal-source-list {
  min-width: 0;
  color: var(--pch-muted);
  font-size: 13px;
}

/* 记录行无缩略图：标题与编号单栏、动作靠右紧凑；覆盖共享行的 112px 缩略图列与 250px 动作列，仅限本页展开区。 */
.property-create-home .property-create-record-body .internal-source-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 10px 14px;
  background: #fff;
}

.property-create-home .property-create-record-body .internal-source-row > div:first-child {
  display: block;
}

.property-create-home .property-create-record-body .internal-source-row strong {
  color: var(--pch-ink);
  font-size: 14px;
}

.property-create-home .property-create-record-body .internal-source-row > div:first-child p {
  margin-top: 2px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.property-create-home .property-create-record-body .internal-source-row > :last-child {
  justify-self: end;
}

.property-create-home .property-create-record-body .internal-source-row > .inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.property-create-home .property-create-record-body .internal-source-row .inline-action {
  min-width: 96px;
}

.property-create-home .property-create-record-body [data-listing-draft-more],
.property-create-home .property-create-record-body [data-listing-submissions-more] {
  justify-self: start;
  width: auto;
  min-width: 120px;
}

/* ---------- 03 常用申请 ---------- */
.property-create-home .property-application-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.property-create-home .property-application-card {
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 16px;
  border-color: var(--pch-line);
  border-radius: 10px;
  background: #fff;
}

.property-create-home .property-application-card strong {
  font-size: 15px;
}

.property-create-home .property-application-card p {
  margin: 0;
  font-size: 13px;
}

.property-create-home .property-application-card .btn {
  justify-self: start;
  width: auto;
  min-width: 112px;
  margin-top: 4px;
}

/* ---------- 录入须知 / 新房权限说明：降为次要信息 ---------- */
.property-create-home .property-create-preparation,
.property-create-home .property-create-permission {
  border-color: var(--pch-soft);
  background: var(--pch-canvas);
  box-shadow: none;
}

@container pch (max-width: 720px) {
  .property-create-home .property-create-section-head,
  .property-create-home .property-create-zone-head {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-create-home * {
    transition: none !important;
  }
}
