/* 产品详情 + 面包屑（详情 / 预约共用部分） */

.page-inner {
  background: #f8fafc;
  min-height: 60vh;
}

.breadcrumb {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 16px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb__back {
  margin-right: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  line-height: 1;
  cursor: pointer;
  font-size: 16px;
}

.breadcrumb__back:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

body.is-consult-open { overflow: hidden; }
.consult-modal[hidden] { display: none !important; }
.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.consult-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.consult-modal__panel {
  position: relative;
  z-index: 1;
  width: min(380px, calc(100% - 24px));
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.consult-modal__panel h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}
.consult-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.consult-modal__tip { margin: 8px 0 16px; color: #64748b; font-size: 14px; line-height: 1.5; }
.consult-modal__qr {
  display: flex;
  justify-content: center;
  padding: 8px;
  background: #f8fafc;
  border-radius: 10px;
}
.consult-modal__qr img {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.consult-modal__phone { margin: 16px 0 0; font-size: 15px; color: #0f172a; }
.consult-modal__phone a { color: #2563eb; text-decoration: none; font-weight: 600; }

.breadcrumb a {
  color: var(--color-text-secondary);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 6px;
  color: #cbd5e1;
}

.breadcrumb strong {
  font-weight: 400;
  color: var(--color-text);
}

.detail-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  box-sizing: border-box;
}

.detail-hero {
  display: flex;
  gap: 64px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.detail-hero__gallery {
  flex-shrink: 0;
  width: 400px;
  height: 400px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.detail-hero__gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-hero__gallery img.is-cover-pending {
  opacity: 0;
  min-width: 1px;
  min-height: 1px;
}

.detail-hero__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-hero__cycle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #62748e;
}

.detail-hero__cycle img {
  width: 14px;
  height: 14px;
}

.detail-hero__info h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 16px;
}

.detail-hero__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-hero__tags .tag {
  height: 28px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.detail-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 17px;
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-box__label {
  flex-shrink: 0;
  width: 80px;
  font-size: 14px;
  font-weight: 500;
  color: #62748e;
}

.detail-box__value {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.detail-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.btn--detail-primary {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 15px rgba(21, 93, 252, 0.2);
}

.btn--detail-primary:hover {
  background: var(--color-primary-hover);
}

.btn--detail-ghost {
  width: 128px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.btn--detail-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Tabs */
.detail-tabs {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.detail-tabs__nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}

.detail-tabs__btn {
  height: 56px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  color: #62748e;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.detail-tabs__btn.is-active {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

.detail-tabs__panel {
  display: none;
  padding: 40px;
}

.detail-tabs__panel.is-active {
  display: block;
}

.detail-section {
  margin-bottom: 40px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.detail-section__title img {
  width: 20px;
  height: 20px;
}

.detail-section p,
.detail-section li {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.detail-section ol {
  margin-top: 12px;
  padding-left: 20px;
  list-style: decimal;
}

.detail-section ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.detail-section ol li strong {
  color: var(--color-text);
  font-weight: 500;
}

.detail-section ul {
  margin-top: 8px;
  padding-left: 18px;
  list-style: disc;
}

.detail-sample-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
}

.detail-warn {
  margin-top: 24px;
  background: #fffbeb;
  border: 1px solid #fef3c6;
  border-radius: 14px;
  padding: 24px;
}

.detail-warn__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #973c00;
  margin-bottom: 12px;
}

.detail-warn__title img {
  width: 16px;
  height: 16px;
}

.detail-warn ol {
  padding-left: 20px;
  list-style: decimal;
}

.detail-warn li {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(123, 51, 6, 0.8);
  margin-bottom: 8px;
}

/* 提高优先级，避免被 .detail-section ol { list-style:decimal } 盖住只剩序号 */
.detail-section ul.detail-req-list,
.detail-section ol.detail-req-list,
.detail-req-list {
  list-style: none !important;
  padding-left: 0;
  margin: 0;
  color: var(--color-text-secondary);
}

.detail-section .detail-req-list > li,
.detail-req-list > li {
  margin-bottom: 10px;
  padding-left: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.detail-req-list > li.is-sub {
  padding-left: 16px;
}

.detail-req-list p {
  margin: 0;
  color: inherit;
}

.detail-modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.detail-module-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-module-card:hover {
  border-color: rgba(61, 56, 245, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.detail-module-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

.detail-module-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-module-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.detail-module-card__name {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text, #1f2937);
}

.detail-load-error {
  padding: 48px 24px;
  text-align: center;
  color: #c00;
}
