/* 鉴别指南 — PC */

body.page-help {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-guide {
  background: var(--bg-page);
}

.page-main--guide {
  padding-top: 24px;
  padding-bottom: 40px;
}

body.page-help .page-main--guide {
  flex: 1;
}

.guide-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.guide-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.guide-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 4px 16px;
  border-radius: 32px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

a.guide-tabs__item {
  text-decoration: none;
}

.guide-tabs__item--link {
  border-color: #e5e7eb;
  color: var(--text-secondary);
  box-shadow: none;
}

.guide-tabs__item--link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.guide-card {
  background: var(--bg-card);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guide-card__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  background: var(--bg-card);
}

.guide-card__head-icon {
  flex-shrink: 0;
  display: block;
}

.guide-card__head-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-primary);
}

.guide-card__body {
  padding: 12px 12px 19px;
}

.guide-section + .guide-section {
  margin-top: 14px;
}

.guide-section__title {
  margin: 0 0 0;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--text-primary);
}

.guide-section__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-section__list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}

.guide-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.guide-section__text {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}

.guide-richtext {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 24px;
}

.guide-richtext__status {
  margin: 0;
  color: var(--text-secondary);
}

.guide-richtext__status.is-error {
  color: #dc2626;
}

.guide-richtext h1,
.guide-richtext h2,
.guide-richtext h3,
.guide-richtext h4 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.guide-richtext h1 {
  font-size: 18px;
  line-height: 28px;
}

.guide-richtext h2 {
  font-size: 16px;
  line-height: 26px;
}

.guide-richtext h3,
.guide-richtext h4 {
  font-size: 14px;
  line-height: 24px;
}

.guide-richtext p,
.guide-richtext section {
  margin: 0 0 12px;
}

.guide-richtext section:last-child,
.guide-richtext p:last-child {
  margin-bottom: 0;
}

.guide-richtext ul,
.guide-richtext ol {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.guide-richtext li {
  position: relative;
  padding-left: 14px;
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-secondary);
}

.guide-richtext li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.guide-richtext span {
  color: inherit !important;
}

.guide--h5,
.guide--h5-only {
  display: none;
}

/* ===== H5: identificationGuide-h5.css ===== */

/* 鉴别指南 — H5 */

.guide--h5-only {
  display: none;
}

@media (max-width: 767px) {
  .page-guide {
    background: var(--bg-h5);
  }

  .page-guide .site-header,
  .page-guide .site-header-h5,
  .page-guide .h5-drawer,
  .page-guide .site-footer {
    display: none !important;
  }

  .guide--h5-only {
    display: flex;
  }

  .guide-h5-head {
    position: sticky;
    z-index: 10;
    top: 0;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 16px;
    background: var(--bg-card);
  }

  .guide-h5-head__back {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .guide-h5-head__title {
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: #292929;
    text-align: center;
  }

  .page-main--guide {
    padding-top: 0;
    padding-bottom: 24px;
    background: var(--bg-h5);
  }

  .page-main--guide .container {
    max-width: none;
    padding: 0;
  }

  .guide--pc {
    display: none !important;
  }

  .guide--h5 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px;
  }

  .guide-h5-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .guide-h5-card--compact {
    gap: 8px;
  }

  .guide-h5-card__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-title);
  }

  .guide-h5-card__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-secondary);
  }

  .guide-h5-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .guide-h5-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-secondary);
  }

  .guide-h5-card__list li::before {
    flex-shrink: 0;
    content: "•";
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
  }

  .guide-richtext {
    font-size: 13px;
    line-height: 1.5;
  }

  .guide-richtext h1 {
    font-size: 16px;
    line-height: 24px;
  }

  .guide-richtext h2 {
    font-size: 15px;
    line-height: 22px;
  }

  .guide-richtext h3,
  .guide-richtext h4,
  .guide-richtext p,
  .guide-richtext li {
    font-size: 13px;
    line-height: 1.5;
  }

  .guide-richtext li::before {
    background: var(--primary);
  }

  .guide-h5-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 16px;
  }

  .guide-h5-tabs__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 4px 16px;
    border-radius: 32px;
    border: 1px solid #e5e7eb;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    text-decoration: none;
    background: var(--bg-card);
  }

  .guide-h5-tabs__item--active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
  }
}
