/* 系统展馆 · 官网子页面 */

/* hall page reuses .ph-stage / .ph-panel from product.css */

.preview-scene,
.rental-scene,
.decor-scene {
  position: relative;
  display: block;
  width: 100%;
  min-height: 288px;
  padding: 20px 20px 34px;
  overflow: hidden;
  border: 0;
  color: var(--navy);
  text-align: left;
  font: inherit;
  cursor: zoom-in;
}

.rental-scene { background: radial-gradient(ellipse at 90% 10%, #d0f4ed, transparent 65%), linear-gradient(135deg, #eaf1fc, #e7f5f3); }
.decor-scene { background: radial-gradient(ellipse at 12% 8%, #f4e7c8, transparent 60%), linear-gradient(135deg, #f7f2e6, #efe8d9); }

.preview-scene-label,
.rental-scene-label,
.decor-scene-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #36556e;
}

.preview-scene-label > span,
.rental-scene-label > span,
.decor-scene-label > span { font-weight: 500; color: #577a8b; }

.preview-desktop,
.rental-desktop,
.decor-desktop {
  display: block;
  width: 87%;
  overflow: hidden;
  border: 1px solid #cadbe5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(22, 65, 91, 0.12);
}

.decor-desktop { box-shadow: 0 12px 24px rgba(135, 95, 23, 0.18); border-color: #d8c8a4; }

.preview-window-bar,
.rental-window-bar,
.decor-window-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  background: #f8fbfd;
  border-bottom: 1px solid #e2eaf0;
  font-size: 9px;
  color: #63798b;
}

.preview-window-bar i,
.rental-window-bar i,
.decor-window-bar i { width: 5px; height: 5px; border-radius: 50%; background: #fcaaa6; }
.preview-window-bar i:nth-child(2),
.rental-window-bar i:nth-child(2),
.decor-window-bar i:nth-child(2) { background: #f4cd7c; }
.preview-window-bar i:nth-child(3),
.rental-window-bar i:nth-child(3),
.decor-window-bar i:nth-child(3) { background: #83d8bb; }
.preview-window-bar > span,
.rental-window-bar > span,
.decor-window-bar > span { margin-left: 5px; }

.preview-desktop img,
.rental-desktop img,
.decor-desktop img { display: block; width: 100%; height: auto; }

.preview-phone,
.rental-phone,
.decor-phone {
  position: absolute;
  right: 18px;
  bottom: 31px;
  display: block;
  width: 26%;
  max-width: 142px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #344b60;
  border-radius: 18px;
  background: #203246;
  box-shadow: 0 10px 20px rgba(22, 52, 77, 0.24);
}

.preview-phone img,
.rental-phone img,
.decor-phone img { display: block; width: 100%; height: auto; border-radius: 12px; }

.preview-scene-hint,
.rental-scene-hint,
.decor-scene-hint { position: absolute; left: 20px; bottom: 12px; color: #527185; font-size: 10px; }

.preview-scene:focus-visible,
.rental-scene:focus-visible,
.decor-scene:focus-visible,
.preview-tabs button:focus-visible,
.preview-close:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

.preview-card .ph-panel-body,
.rental-card .ph-panel-body,
.decor-card .ph-panel-body { gap: 12px; padding: 20px; }
.preview-card .ph-panel-body > p,
.rental-card .ph-panel-body > p,
.decor-card .ph-panel-body > p { flex: none; line-height: 1.8; }

.preview-features,
.rental-features,
.decor-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.preview-features li,
.rental-features li,
.decor-features li { padding: 4px 8px; border: 1px solid #dceae9; border-radius: 6px; background: #f4f9f8; color: #3e6c69; font-size: 11px; }
.decor-features li { background: #fbf5e6; border-color: #e8dcb9; color: #6e5520; }

.preview-detail,
.rental-detail,
.decor-detail { display: grid; gap: 5px; padding-top: 12px; border-top: 1px solid var(--border); }
.preview-detail strong,
.rental-detail strong,
.decor-detail strong { color: var(--navy); font-size: 13px; }
.preview-detail > span,
.rental-detail > span,
.decor-detail > span { color: var(--muted); font-size: 12px; line-height: 1.7; }

.preview-card .ph-card-actions,
.rental-card .ph-card-actions,
.decor-card .ph-card-actions { margin-top: auto; align-items: center; }

.preview-contact,
.rental-contact,
.decor-contact { margin-left: auto; color: #47746e; font-size: 12px; white-space: nowrap; }
.decor-contact { color: #8a6c2c; }

.preview-dialog,
.rental-preview,
.decor-preview {
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  overflow: auto;
  border: 1px solid #d9e4ee;
  border-radius: 20px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 30px 100px rgba(0, 20, 61, 0.3);
}

.preview-dialog::backdrop,
.rental-preview::backdrop,
.decor-preview::backdrop { background: rgba(4, 19, 38, 0.7); backdrop-filter: blur(5px); }
.preview-open,
.rental-preview-open { overflow: hidden; }

.preview-head,
.rental-preview-head,
.decor-preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.preview-head h2,
.rental-preview-head h2,
.decor-preview-head h2 { font-size: 21px; line-height: 1.4; }
.preview-head p,
.rental-preview-head p,
.decor-preview-head p { margin-top: 5px; color: var(--muted); font-size: 13px; }

.preview-close,
.rental-preview-close,
.decor-preview-close { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: #f5f8fb; color: var(--navy); font-size: 24px; cursor: pointer; }

.preview-tabs,
.rental-preview-tabs,
.decor-preview-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.preview-tabs button,
.rental-preview-tabs button,
.decor-preview-tabs button { padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.preview-tabs button[aria-selected="true"],
.rental-preview-tabs button[aria-selected="true"],
.decor-preview-tabs button[aria-selected="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }

.preview-image,
.rental-preview-image,
.decor-preview-image { padding: 10px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #f0f4fa; }
.preview-image img,
.rental-preview-image img,
.decor-preview-image img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.preview-image.is-mobile img,
.rental-preview-image.is-mobile img,
.decor-preview-image.is-mobile img { max-width: 360px; }

@media (max-width: 640px) {
  .preview-scene, .rental-scene, .decor-scene { min-height: 0; padding: 16px 16px 34px; }
  .preview-scene-label, .rental-scene-label, .decor-scene-label { font-size: 10px; }
  .preview-phone, .rental-phone, .decor-phone { right: 14px; padding: 4px; border-radius: 14px; }
  .preview-phone img, .rental-phone img, .decor-phone img { border-radius: 9px; }
  .preview-card .ph-panel-body, .rental-card .ph-panel-body, .decor-card .ph-panel-body { padding: 16px; }
  .preview-card .ph-card-actions, .rental-card .ph-card-actions, .decor-card .ph-card-actions { flex-direction: row; flex-wrap: wrap; }
  .preview-card .ph-card-actions .btn, .rental-card .ph-card-actions .btn, .decor-card .ph-card-actions .btn { flex: 1 1 auto; width: auto; }
  .preview-contact, .rental-contact, .decor-contact { width: 100%; margin: 2px 0 0; }
  .preview-dialog, .rental-preview, .decor-preview { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 16px; border-radius: 14px; }
  .preview-head h2, .rental-preview-head h2, .decor-preview-head h2 { font-size: 17px; }
  .preview-image, .rental-preview-image, .decor-preview-image { padding: 5px; }
}


.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.hall-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hall-stage {
  padding: 16px 16px 0;
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(0, 82, 217, 0.06), transparent 55%),
    var(--bg-light);
}

.hall-win {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.hw-bar {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.hw-bar em {
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.hw-ui {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 250px;
}

.hw-side {
  padding: 10px 8px;
  border-right: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}

.hw-side span { display: block; padding: 8px 10px; border-radius: 8px; }
.hw-side span.on { background: #eaf1ff; color: var(--primary); font-weight: 700; }

.hw-pane { padding: 8px; background: var(--bg-light); }

.hw-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hw-kpi div {
  padding: 8px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.hw-kpi b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}

.hw-kpi span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.hw-rows { list-style: none; margin-top: 6px; }
.hw-rows li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 2px;
  font-size: 12px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.hw-rows li:last-child { border-bottom: 0; }
.hw-rows em { font-style: normal; font-weight: 700; font-size: 11px; }
.hw-rows em.ok { color: #047857; }
.hw-rows em.wait { color: #c2410c; }
.hw-rows em.run { color: #1d4ed8; }

.hw-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin-top: 8px;
}
.hw-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #7eb6ff, var(--primary));
}

.hw-houses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.hw-houses span {
  padding: 8px 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text);
}
.hw-houses b { display: block; color: var(--navy); font-size: 13px; }
.hw-houses span.on { background: #ecfdf5; border-color: #bbf7d0; }
.hw-houses span.warn { background: #fff7ed; border-color: #fed7aa; }

.hw-sheet {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.hw-sheet th,
.hw-sheet td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.hw-sheet th { color: var(--muted); font-weight: 600; background: #f3f6fa; }
.hw-sheet tr:last-child td { border-bottom: 0; }

.hw-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hw-wait { background: #fff7ed; color: #c2410c; }
.hw-ok { background: #ecfdf5; color: #047857; }
.hw-run { background: #eff6ff; color: #1d4ed8; }

.app {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  background: #f7f8fa;
}

.app-side {
  padding: 8px 4px;
  background: #fff;
  border-right: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.app-side span {
  display: block;
  padding: 6px 6px;
  border-radius: 6px;
}

.app-side span.on {
  background: #eaf1ff;
  color: var(--primary);
  font-weight: 700;
}

.app-main { padding: 8px; min-width: 0; }

.app-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.app-top b { font-size: 13px; color: var(--navy); white-space: nowrap; }
.app-top em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }

.app-kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.app-kpi div {
  padding: 8px 8px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.app-kpi b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}

.app-kpi span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }

.app-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
}

.app-table th:nth-child(n + 2):not(:last-child),
.app-table td:nth-child(n + 2):not(:last-child) { display: none; }

.app-table th,
.app-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.app-table th { color: var(--muted); font-weight: 600; background: #f4f7fb; }
.app-table tr:last-child td { border-bottom: 0; }

.app-rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.app-rooms span {
  padding: 10px 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  text-align: center;
}

.app-rooms b { display: block; color: var(--navy); font-size: 14px; }
.app-rooms em { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: var(--muted); }
.app-rooms span.warn { background: #fff7ed; border-color: #fed7aa; }

.hall-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 12px 14px;
}

.hall-info h2 {
  font-size: 18px;
  color: var(--navy);
}

.hall-info p {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
}

.hall-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.hall-acts .btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.hall-soon {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f3f5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.is-soon .hall-win { filter: saturate(0.85); }

@media (max-width: 640px) {
  .hall-grid { grid-template-columns: 1fr; }
}

@media (hover: hover) {
  .hall-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .hall-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 32, 96, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hall-card { transition: none; }
}

/* 展馆卡片场景底色（通用模板） */
.scene-rental { background: radial-gradient(ellipse at 90% 10%, #d0f4ed, transparent 65%), linear-gradient(135deg, #eaf1fc, #e7f5f3); }
.scene-decor { background: radial-gradient(ellipse at 12% 8%, #f4e7c8, transparent 60%), linear-gradient(135deg, #f7f2e6, #efe8d9); }
.scene-eams { background: radial-gradient(ellipse at 88% 8%, #dbe6ff, transparent 62%), linear-gradient(135deg, #eef4ff, #e8eefb); }

.eams-features li { background: #eef4ff; border-color: #d6e2fb; color: #3c5a91; }
.eams-contact { color: #4a5f8f; }

.eams-card .ph-panel-body { gap: 12px; padding: 20px; }
.eams-card .ph-panel-body > p { flex: none; line-height: 1.8; }
.eams-card .ph-card-actions { margin-top: auto; align-items: center; }
