/* 门店反馈与服务中心：统一页头与正文边界，并保证 H5 稳定布局。 */
html body.page-store-feedback.store-service-ui {
  --feedback-container: 1180px;
  min-width: 0;
  overflow-x: hidden;
}

html body.page-store-feedback.store-service-ui .portal-head-inner,
html body.page-store-feedback.store-service-ui main {
  width: min(var(--feedback-container), calc(100% - 32px)) !important;
  max-width: var(--feedback-container) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

html body.page-store-feedback.store-service-ui .portal-head {
  min-height: 72px !important;
  border-bottom: 1px solid #dbe5f2 !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 1px 0 rgba(28, 64, 110, .04) !important;
}

html body.page-store-feedback.store-service-ui .portal-head-inner {
  min-height: 72px !important;
  padding-block: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.page-store-feedback.store-service-ui .portal-actions {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.page-store-feedback.store-service-ui .portal-actions > :is(a, button, .session-status) {
  min-height: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border: 1px solid #d5e1f0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html body.page-store-feedback.store-service-ui .feedback-workbench-back {
  order: 10 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #1657b8;
  background: #f7faff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

html body.page-store-feedback.store-service-ui .feedback-workbench-back:hover {
  border-color: #9cbcf0 !important;
  background: #edf4ff;
}

html body.page-store-feedback.store-service-ui .session-status {
  order: 20 !important;
}

html body.page-store-feedback.store-service-ui .pc-theme-toggle {
  order: 30 !important;
}

html body.page-store-feedback.store-service-ui main {
  margin-block: 18px 48px !important;
}

html body.page-store-feedback.store-service-ui :is(.portal-hero, .portal-guide, .service-grid, .portal-note) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

html body.page-store-feedback.store-service-ui .portal-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

html body.page-store-feedback.store-service-ui .portal-hero > div:first-child,
html body.page-store-feedback.store-service-ui .portal-brand,
html body.page-store-feedback.store-service-ui .service-card,
html body.page-store-feedback.store-service-ui .service-copy {
  min-width: 0;
}

html body.page-store-feedback.store-service-ui .portal-hero :is(h1, p),
html body.page-store-feedback.store-service-ui .service-copy :is(h2, p),
html body.page-store-feedback.store-service-ui .portal-note p {
  overflow-wrap: anywhere;
}

html body.page-store-feedback.store-service-ui .service-grid {
  align-items: stretch;
}

html body.page-store-feedback.store-service-ui .service-card {
  overflow: hidden;
}

html.pcui-preview body.ui-p2-system.page-store-feedback .portal-guide b {
  width: 28px !important;
  height: 28px !important;
  color: #fff !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

html body.page-store-feedback.store-service-ui .repair-card {
  --entry-accent: #0f766e;
}

html body.page-store-feedback.store-service-ui .material-card {
  --entry-accent: #b45309;
}

html body.page-store-feedback.store-service-ui .intake-card {
  --entry-accent: #6d28d9;
}

html body.page-store-feedback.store-service-ui .service-entry-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #fff !important;
  background: var(--entry-accent) !important;
  box-shadow: 0 8px 18px rgba(26, 51, 83, .14);
  pointer-events: none;
}

html body.page-store-feedback.store-service-ui .service-entry-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html body.page-store-feedback.store-service-ui .service-copy > span,
html body.page-store-feedback.store-service-ui .service-copy h2 {
  padding-right: 58px;
}

html body.page-store-feedback.store-service-ui .service-copy {
  margin-top: 0 !important;
}

html body.page-store-feedback.store-service-ui .portal-toast {
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 900px) {
  html body.page-store-feedback.store-service-ui .portal-head-inner,
  html body.page-store-feedback.store-service-ui main {
    width: calc(100% - 24px) !important;
  }

  html body.page-store-feedback.store-service-ui main {
    margin-block: 12px 32px !important;
  }

  html body.page-store-feedback.store-service-ui .service-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.page-store-feedback.store-service-ui .service-card {
    display: flex !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  html body.page-store-feedback.store-service-ui .service-copy,
  html body.page-store-feedback.store-service-ui .service-card ul,
  html body.page-store-feedback.store-service-ui .service-card button {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
  }

  html body.page-store-feedback.store-service-ui .service-copy p {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
  }

  html body.page-store-feedback.store-service-ui .service-card ul {
    display: grid !important;
  }
}

@media (max-width: 640px) {
  html body.page-store-feedback.store-service-ui .portal-head {
    position: static !important;
    min-height: 0 !important;
    backdrop-filter: none !important;
  }

  html body.page-store-feedback.store-service-ui .portal-head-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    gap: 8px !important;
    padding-top: max(10px, env(safe-area-inset-top)) !important;
    padding-bottom: 10px !important;
  }

  html body.page-store-feedback.store-service-ui .portal-brand {
    flex: 1 1 auto !important;
    gap: 9px;
  }

  html body.page-store-feedback.store-service-ui .portal-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html body.page-store-feedback.store-service-ui .portal-brand img {
    flex: 0 0 40px;
    width: 40px !important;
    height: 40px !important;
  }

  html body.page-store-feedback.store-service-ui .portal-brand strong {
    display: block;
    overflow: hidden;
    font-size: 15px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body.page-store-feedback.store-service-ui .portal-brand span {
    display: block;
    overflow: hidden;
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body.page-store-feedback.store-service-ui .portal-actions .pc-theme-toggle {
    display: none !important;
  }

  html body.page-store-feedback.store-service-ui .session-status {
    max-width: none;
    min-height: 36px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html body.page-store-feedback.store-service-ui .feedback-workbench-back,
  html body.page-store-feedback.store-service-ui .session-status {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    justify-content: center !important;
    text-align: center;
  }

  html body.page-store-feedback.store-service-ui .portal-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }

  html body.page-store-feedback.store-service-ui .portal-hero h1 {
    font-size: 24px !important;
    line-height: 1.25;
  }

  html body.page-store-feedback.store-service-ui .portal-hero p {
    font-size: 13px !important;
    line-height: 1.6;
  }

  html body.page-store-feedback.store-service-ui .hero-mark,
  html body.page-store-feedback.store-service-ui .portal-guide {
    display: none !important;
  }

  html body.page-store-feedback.store-service-ui .service-grid {
    gap: 10px !important;
    margin-top: 10px !important;
  }

  html body.page-store-feedback.store-service-ui .service-card {
    min-height: 0 !important;
    padding: 16px !important;
    border-radius: 15px !important;
  }

  html body.page-store-feedback.store-service-ui .service-entry-icon {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  html body.page-store-feedback.store-service-ui .service-entry-icon svg {
    width: 28px;
    height: 28px;
  }

  html body.page-store-feedback.store-service-ui .service-copy > span,
  html body.page-store-feedback.store-service-ui .service-copy h2 {
    padding-right: 64px;
  }

  html body.page-store-feedback.store-service-ui .service-copy h2 {
    margin-block: 4px 7px;
    font-size: 19px !important;
  }

  html body.page-store-feedback.store-service-ui .service-copy p {
    font-size: 13px !important;
    line-height: 1.65;
  }

  html body.page-store-feedback.store-service-ui .service-card ul {
    gap: 6px !important;
    margin-block: 12px !important;
    font-size: 12px !important;
    line-height: 1.5;
  }

  html body.page-store-feedback.store-service-ui .service-card button {
    min-height: 46px !important;
    height: 46px !important;
    margin-top: 14px !important;
    border-radius: 10px !important;
  }

  html body.page-store-feedback.store-service-ui .portal-note {
    margin-top: 10px !important;
    padding: 14px 15px !important;
  }
}

@media (max-width: 360px) {
  html body.page-store-feedback.store-service-ui .portal-brand strong {
    font-size: 14px !important;
  }

  html body.page-store-feedback.store-service-ui .session-status {
    max-width: none;
    font-size: 11px;
  }

  html body.page-store-feedback.store-service-ui .portal-hero h1 {
    font-size: 22px !important;
  }
}
