/* ============================================================
   项目案例页
   依据：overview_p09/10、detail_p26~31
   ============================================================ */
.cases-page,
.case-detail-page {
  background: #fff;
  color: var(--text-dark);
}

.case-hero {
  position: relative;
  height: 154px;
  margin-top: var(--header-h);
  overflow: hidden;
  background: #7aaff8;
}

.case-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.case-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px 14px;
}

.case-breadcrumb {
  margin: 0;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.case-page-frame {
  display: block;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px 44px;
}

.case-sidebar {
  position: sticky;
  top: 110px;
  z-index: 5;
  align-self: start;
  width: 184px;
  margin-top: -34px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.case-sidebar h1 {
  margin: 0;
  padding: 14px 10px 12px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.case-sidebar-nav {
  background: #d2d2d2;
}

.case-category {
  display: block;
  width: 100%;
  min-height: 27px;
  padding: 5px 8px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .45);
  background: linear-gradient(#cfcfcf, #bcbcbc);
  color: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .2);
}

.case-category.active {
  background: #0d65b7;
  font-weight: 700;
}

.case-category:disabled {
  cursor: not-allowed;
  opacity: .8;
}

.case-list-flow {
  min-width: 0;
  padding: 26px 0 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, .76fr) minmax(170px, 1.24fr);
  height: 170px;
  min-height: 170px;
  overflow: hidden;
  border-radius: 0 15px 15px 0;
  background: #fff;
  box-shadow: 0 3px 11px rgba(20, 40, 62, .23);
}

.case-card-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px 15px 22px;
}

.case-card-mark,
.case-detail-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #b7d3f6;
  color: #fff;
  text-align: center;
}

.case-card-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.case-card-mark img,
.case-detail-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-card-title {
  margin: 0;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.case-card-location,
.case-location {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 0 0;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.case-card-location svg,
.case-location svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #006ac5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.case-card-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #dce8f7;
}

.case-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.case-media-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #dce8f7;
  color: #4b719b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.case-card-link {
  position: absolute;
  top: 50%;
  left: 66%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  min-height: 38px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}

.case-card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.case-card:hover .case-card-link,
.case-card:focus-within .case-card-link {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.case-card-link:focus-visible,
.case-page-button:focus-visible,
.case-consult-link:focus-visible,
.case-detail-pager-link:focus-visible {
  outline: 3px solid rgba(0, 78, 160, .32);
  outline-offset: 3px;
}

.case-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.case-page-button {
  display: inline-flex;
  width: 60px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: #f1f1f1;
  color: #666;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.case-page-button.active {
  background: var(--brand-blue);
  color: #fff;
}

.case-page-button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.case-page-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* ===================== 详情页 ===================== */
.case-detail-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.case-detail-intro {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 264px;
  padding: 38px 64px;
  isolation: isolate;
  overflow: hidden;
}

.case-detail-intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("../images/cases/case-01-intro-bg.jpg") center / cover no-repeat;
  opacity: .23;
}

.case-detail-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255, .86);
}

.case-detail-mark {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #c9addd;
  font-size: 28px;
  font-weight: 700;
}

.case-detail-intro-copy {
  min-width: 0;
  padding-left: 26px;
  border-left: 1px solid rgba(60, 60, 60, .45);
}

.case-detail-intro-copy h1 {
  margin: 0 0 13px;
  color: #111;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
}

.case-detail-intro-copy > p:not(.case-location) {
  max-width: 630px;
  margin: 0;
  color: #202020;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

.case-detail-intro-copy .case-location {
  margin-top: 13px;
  font-size: 15px;
}

.case-detail-intro-copy .case-location svg {
  width: 26px;
  height: 26px;
}

.case-consult-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 9px 23px 9px 15px;
  border-radius: 999px;
  background: #78c832;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(63, 117, 20, .28);
}

.case-consult-link svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.case-detail-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding: 27px 28px 26px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 56, 84, .24);
}

.case-panel-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #78c832;
}

.case-panel-icon svg {
  width: 105px;
  height: 105px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.2;
}

.case-panel-content {
  min-width: 0;
}

.case-panel-content h2 {
  margin: 4px 0 15px;
  color: #111;
  font-size: 23px;
  line-height: 1.25;
}

.case-panel-content > p {
  margin: 0;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.case-media-frame {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  padding: 12px;
  background: #fafafa;
}

.case-media-frame img {
  display: block;
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
}

.case-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  max-width: 430px;
  margin: 13px auto 0;
}

.case-design-grid img,
.case-design-grid .case-media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1.27 / 1;
  object-fit: cover;
}

.case-design-grid .case-media-placeholder {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #edf3fa;
  color: #4b719b;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.case-detail-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 42px;
  margin-top: 27px;
  padding: 0 22px;
  border-radius: 22px;
  background: #ddd;
}

.case-detail-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.3;
}

.case-detail-pager-link:last-child {
  justify-self: end;
}

.case-detail-pager-return {
  justify-self: center;
}

.case-detail-pager-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.case-detail-pager-link.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.case-empty-state {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  color: var(--text-gray);
  font-size: 15px;
}

.case-error-state {
  padding: 15px;
  background: #fff4f0;
  color: #a33b27;
  font-size: 14px;
  line-height: 1.6;
}

body.case-chat-open {
  overflow: hidden;
}

/* ===================== 在线咨询弹窗 ===================== */
.case-chat-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.case-chat-modal[hidden] {
  display: none;
}

.case-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 29, 49, .56);
  opacity: 0;
  transition: opacity .24s ease;
}

.case-chat-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(550px, 100%);
  height: min(570px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #b9c2cb;
  background: #fff;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  transition: opacity .24s ease, transform .24s cubic-bezier(.22, .75, .25, 1);
}

.case-chat-modal.is-open .case-chat-backdrop {
  opacity: 1;
}

.case-chat-modal.is-open .case-chat-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.case-chat-header {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 42px 6px 16px;
  background: #0759a4;
  color: #fff;
}

.case-chat-header img {
  order: 1;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.case-chat-header div {
  order: 2;
  display: flex;
  max-width: calc(100% - 88px);
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.case-chat-header strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-chat-header span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, .84);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-chat-close {
  display: inline-flex;
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.case-chat-close:hover,
.case-chat-close:focus-visible {
  background: rgba(255, 255, 255, .16);
}

.case-chat-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.case-chat-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 190px;
  flex: 1;
}

.case-chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 9px 10px 12px;
  background: #fff;
}

.case-chat-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.case-chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.case-chat-message:last-child {
  margin-bottom: 0;
}

.case-chat-message[hidden] {
  display: none;
}

.case-chat-message.user {
  grid-template-columns: minmax(0, 1fr);
  margin-left: 40px;
}

.case-chat-message.user .case-chat-message-body p {
  border-radius: 12px 0 12px 12px;
  background: #d9edff;
}

.case-chat-profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  object-fit: contain;
}

.case-chat-avatar {
  width: 34px;
  height: 42px;
  object-fit: contain;
}

.case-chat-message-body {
  min-width: 0;
}

.case-chat-meta {
  margin: 0 0 4px 2px;
  color: #777;
  font-size: 9px;
  line-height: 1.2;
}

.case-chat-meta time {
  margin-left: 6px;
  color: #aaa;
}

.case-chat-message-body p,
.case-chat-message-body ol {
  margin: 0;
  padding: 7px 9px;
  border-radius: 0 12px 12px 12px;
  background: #f1f1f1;
  color: #444;
  font-size: 11px;
  line-height: 1.5;
}

.case-chat-message-body p strong {
  color: #006ac5;
  font-weight: 700;
}

.case-chat-message-body ol {
  padding-top: 4px;
  padding-bottom: 6px;
  padding-left: 24px;
}

.case-chat-message-body p + ol {
  margin-top: -5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.case-chat-message-body a {
  color: #006ac5;
  text-decoration: underline;
}

.case-chat-profile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid #d7d7d7;
  background: #fff;
}

.case-chat-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d7d7d7;
}

.case-chat-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: #fff;
  padding: 8px 6px;
  color: #333;
  font-size: 11px;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.case-chat-tabs .active {
  border-bottom: 2px solid #0759a4;
  color: #0759a4;
  font-weight: 700;
}

.case-chat-tabs button:focus-visible {
  outline: 2px solid rgba(0, 106, 197, .35);
  outline-offset: -2px;
}

.case-chat-profile-body {
  flex: 1;
  padding: 18px 12px 8px;
  text-align: center;
}

.case-chat-profile-body[hidden] {
  display: none;
}

.case-chat-profile-body > p {
  margin: 0 0 14px;
  color: #4d4d4d;
  font-size: 11px;
  line-height: 1.55;
  text-align: left;
}

.case-chat-profile-body > ul {
  margin: 0;
  padding-left: 17px;
  color: #4d4d4d;
  font-size: 11px;
  line-height: 1.8;
  text-align: left;
}

.case-chat-profile-body > ul strong {
  color: #006ac5;
}

.case-chat-profile-avatar {
  display: block;
  width: 70px;
  height: 78px;
  margin: 0 auto 4px;
}

.case-chat-profile h3 {
  margin: 0 0 13px;
  color: #222;
  font-size: 13px;
  font-weight: 600;
}

.case-chat-profile dl {
  margin: 0;
  text-align: left;
}

.case-chat-profile dl > div {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  margin-bottom: 11px;
}

.case-chat-profile dt {
  color: #0759a4;
}

.case-chat-profile dt svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.case-chat-profile dd {
  min-width: 0;
  margin: 0;
  color: #4d4d4d;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.case-chat-profile dd a {
  color: inherit;
}

.case-chat-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 7px 7px;
  border-top: 1px solid #d7d7d7;
  background: #0759a4;
  color: #fff;
  flex-direction: column;
  gap: 3px;
}

.case-chat-qr-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.case-chat-qr img {
  width: 78px;
  height: 78px;
  padding: 4px;
  background: #fff;
  object-fit: contain;
}

.case-chat-qr-labels {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  color: #fff;
  font-size: 11px;
  text-align: center;
}

.case-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
  gap: 8px;
  align-items: end;
  padding: 9px 10px;
  border-top: 1px solid #d7d7d7;
  background: #fff;
}

.case-chat-input-wrap {
  display: block;
  min-width: 0;
}

.case-chat-composer input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 8px 10px;
  border: 1px solid #d5dce4;
  border-radius: 3px;
  color: #333;
  font: inherit;
  font-size: 11px;
  outline: 0;
}

.case-chat-composer input:focus {
  border-color: #9aa8b6;
  box-shadow: none;
}

.case-chat-composer button {
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 3px;
  background: #0759a4;
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.case-chat-composer button:hover,
.case-chat-composer button:focus-visible {
  background: #004b8c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .case-page-frame {
    padding-right: 20px;
    padding-left: 20px;
  }

  .case-sidebar {
    width: 168px;
  }

  .case-category {
    font-size: 11px;
  }

  .case-card {
    grid-template-columns: minmax(120px, .82fr) minmax(140px, 1.18fr);
  }

  .case-card-info {
    padding-left: 15px;
  }
}

@media (max-width: 768px) {
  .case-hero {
    height: 128px;
  }

  .case-hero-inner {
    padding: 0 18px 10px;
  }

  .case-breadcrumb {
    font-size: 10px;
  }

  .case-page-frame {
    display: block;
    padding: 0 18px 36px;
  }

  .case-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    margin-top: -24px;
  }

  .case-sidebar h1 {
    padding: 11px 10px;
    font-size: 18px;
  }

  .case-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-category {
    min-height: 39px;
    padding: 6px 8px;
    font-size: 11px;
  }

  .case-list-flow {
    padding-top: 22px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-card {
    grid-template-columns: minmax(125px, .84fr) minmax(160px, 1.16fr);
    height: 200px;
    min-height: 154px;
  }

  .case-card-media img,
  .case-media-placeholder {
    min-height: 0;
  }

  .case-card-info {
    padding: 14px 12px 14px 16px;
  }

  .case-card-title {
    font-size: 14px;
  }

  .case-card-link {
    left: 65%;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .case-pagination {
    gap: 8px;
    margin-top: 22px;
  }

  .case-page-button {
    width: 48px;
    height: 36px;
  }

  .case-detail-shell {
    padding: 0 18px 36px;
  }

  .case-detail-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 28px 18px 34px;
  }

  .case-detail-mark {
    width: 92px;
    height: 92px;
    font-size: 21px;
  }

  .case-detail-intro-copy {
    padding: 0;
    border-top: 1px solid rgba(60, 60, 60, .38);
    border-left: 0;
    padding-top: 18px;
  }

  .case-detail-intro-copy h1 {
    font-size: 21px;
  }

  .case-detail-intro-copy > p:not(.case-location) {
    font-size: 14px;
  }

  .case-detail-panel {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 18px;
    padding: 22px 16px 20px;
    border-radius: 15px;
  }

  .case-panel-icon {
    justify-content: flex-start;
  }

  .case-panel-icon svg {
    width: 64px;
    height: 64px;
  }

  .case-panel-content h2 {
    margin-top: 4px;
    font-size: 21px;
  }

  .case-panel-content > p {
    font-size: 14px;
    line-height: 1.75;
  }

  .case-media-frame {
    min-height: 130px;
  }

  .case-design-grid {
    gap: 8px;
  }

  .case-detail-pager {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    padding: 0 10px;
  }

  .case-detail-pager-link {
    font-size: 12px;
  }

  .case-chat-modal {
    padding: 10px;
  }

  .case-chat-dialog {
    height: min(570px, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
  }

  .case-chat-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .case-chat-thread {
    max-height: 340px;
  }

  .case-chat-profile {
    display: flex;
    border-top: 1px solid #d7d7d7;
    border-left: 0;
  }

  .case-chat-tabs {
    display: grid;
  }

  .case-chat-profile-body {
    padding: 14px 12px 8px;
    text-align: left;
  }

  .case-chat-profile-avatar {
    display: block;
    width: 56px;
    height: 64px;
    margin: 0 auto 4px;
  }

  .case-chat-profile h3 {
    margin-bottom: 10px;
  }

  .case-chat-profile dl > div {
    margin-bottom: 7px;
  }

  .case-chat-qr {
    border-top: 1px solid #d7d7d7;
    border-left: 0;
  }

  .case-chat-composer {
    min-height: 68px;
  }

  .case-chat-composer input {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-card-link,
  .case-chat-backdrop,
  .case-chat-dialog { transition: none; }
}

/* 桌面宽版布局：左侧目录靠近视口边缘，案例内容区扩展 */
@media (min-width: 769px) {
  .case-hero-inner,
  .case-page-frame { max-width: 1360px; }
}

/* 桌面横幅统一 300px 并保持居中焦点，移动端仍使用独立高度适配 */
@media (min-width: 769px) {
  .case-hero {
    height: 300px;
    aspect-ratio: auto;
  }
  .case-hero > img { object-fit: cover; object-position: center center; }
}

/* 桌面端目录标题统一：固定高度，避免不同栏目标题上下不齐 */
@media (min-width: 769px) {
  .case-sidebar h1 {
    height: 50px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 10px;
    line-height: 1.2;
  }
}
