/* ============================================================
   Symptom Checker — simplified wizard
   ============================================================ */

/* ── Design tokens ───────────────────────────────────────── */

:root {
  --sc-red:            #ff3b30;
  --sc-yellow:         #ff9f0a;
  --sc-green:          #34c759;
  --sc-accent:         #4c3b71;
  --sc-bg:             #f5f5f7;
  --sc-surface:        #ffffff;
  --sc-surface-strong: #ffffff;
  --sc-border:         #e5e5ea;
  --sc-border-strong:  #d1d1d6;
  --sc-text:           #1d1d1f;
  --sc-text-secondary: #6e6e73;
  --sc-text-tertiary:  #8e8e93;
  --sc-shadow-1:       0 1px 4px rgba(0,0,0,0.06);
  --sc-shadow-2:       0 2px 12px rgba(0,0,0,0.08);
  --sc-shadow-inset:   none;
  --sc-radius-xs:      8px;
  --sc-radius-sm:      10px;
  --sc-radius-md:      12px;
  --sc-radius-lg:      16px;
  --sc-content-max:    760px;
}

.breadcrumb {
  margin: 0 0 10px;
}

.article-header {
  margin-bottom: 0;
}

.article-title {
  margin: 0;
}

@media (min-width: 1024px) {
  .breadcrumb {
    margin: 0 0 30px;
  }
  
  .article-title {
      margin-bottom: 30px;
  }
}

/* ========== 标题区 ========== */
.hero-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    margin-bottom: 20px;
    background: var(--bg-page);
}

@media (min-width: 1024px) {
    .hero-container {
        margin: 0;
        padding: 0 24px;
    }
}

@media (min-width: 1200px) {
    .hero-container {
        padding: 0 30px;
    }
}

.hero-container .container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px 0 0;
}

@media (min-width: 1024px) {
    .hero-container .container {
        padding: 40px 0 0;
    }
}

/* ========== 标题与元信息 ========== */
.article-header {
    padding: 0;
    margin-bottom: 20px;
}

.article-title {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: var(--theme-color);
    line-height: 1.3;
}

.article-meta {
    display: flex;
    font-size: 12px;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.article-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.article-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--theme-color);
    font-weight: 600;
}

.article-author-link:hover { opacity: .75; }

.article-author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.article-author-name { line-height: 24px; }

@media (min-width: 1024px) {
    .article-header {
        padding: 0 24px;
        margin-bottom: 40px;
    }

    .article-title {
        font-size: 42px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1200px) {
    .article-header {
        padding: 0 30px;
    }

    .article-title {
        max-width: 70%;
        font-size: 50px;
    }
}

/* ── Page wrapper ────────────────────────────────────────── */

.sc-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
}

/* ── Wizard shell ────────────────────────────────────────── */

.sc-wizard {
  position: relative;
  z-index: 1;
}

/* ── Unified content width ───────────────────────────────── */

.sc-stepper,
.sc-step-cats,
.sc-step-scroll > .sc-inner {
  width: 100%;
  max-width: var(--sc-content-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* ── Steps container ─────────────────────────────────────── */

.sc-steps {
  position: relative;
}

/* ── Individual step ─────────────────────────────────────── */

.sc-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* ── Global wizard nav ───────────────────────────────────── */

.sc-wizard-nav {
  overflow: hidden;
  max-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 5px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.sc-wizard-nav--visible {
  max-height: 60px;
  padding: 15px 0 30px 5px;
}

@media (min-width: 1024px) {
  .sc-wizard-nav--visible {
    padding: 10px 0 10px 5px;
  }
}
/* prevent CSS display overriding [hidden] attribute */
.sc-wiz-back[hidden],
.sc-wiz-restart[hidden],
.sc-wiz-title[hidden] {
  display: none !important;
}

.sc-wiz-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--theme-color);
  letter-spacing: -0.01em;
}

.sc-wiz-back,
.sc-wiz-restart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}

.sc-wiz-back:hover,
.sc-wiz-restart:hover {
  opacity: 0.7;
}

.sc-wiz-back::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.sc-wiz-restart::after {
  content: '↺';
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

/* ── Stepper ─────────────────────────────────────────────── */

.sc-stepper {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  padding: 20px 0 0;
  margin-top: -30px;
  border-radius: var(--sc-radius-md);
  background: #fff;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

@media (min-width: 1024px) {
  .sc-stepper {
    width: 780px;
    margin-top: -40px;
  }

}

.sc-stepper--visible {
  opacity: 1;
  max-height: 100px;
  pointer-events: auto;
}

.sc-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  min-width: 0;
}

.sc-stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 9px;
  left: calc(50% + 9px);
  right: calc(-50% + 9px);
  height: 1px;
  background: var(--sc-border);
  transition: background 0.25s;
}

.sc-stepper-item--done:not(:last-child)::after {
  background: var(--sc-accent);
}

.sc-stepper-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--sc-border);
  background: #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.sc-stepper-item--done .sc-stepper-dot {
  border-color: var(--sc-accent);
  background: var(--sc-accent);
}

.sc-stepper-item--done .sc-stepper-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 3.5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translate(-50%, -65%) rotate(-45deg);
}

.sc-stepper-item--active .sc-stepper-dot {
  border-color: var(--sc-accent);
  background: #fff;
}

.sc-stepper-item--active .sc-stepper-dot::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sc-accent);
}

.sc-stepper-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-text-tertiary);
  margin-top: 5px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s;
}

.sc-stepper-item--done .sc-stepper-label,
.sc-stepper-item--active .sc-stepper-label {
  color: var(--sc-accent);
  font-weight: 600;
}

/* ── Category chips ──────────────────────────────────────── */

.sc-step-cats {
  flex-shrink: 0;
  padding: 30px 0 0;
  background: #fff;
}

.sc-cat-bar {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sc-cat-bar::-webkit-scrollbar {
  display: none;
}

.sc-cat-chip {
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-text-secondary);
  background: #fff;
  border: 1px solid var(--sc-border);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.sc-cat-chip--active {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: #fff;
}

/* ── Scrollable content ──────────────────────────────────── */

.sc-step-scroll {
  width: 100%;
}

.sc-inner {
  padding: 0 0 40px;
}

/* ── Step head ───────────────────────────────────────────── */

.sc-head {
  padding: 30px 0;
}

.sc-title {
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--sc-text);
  margin: 0;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .sc-title {
    font-size: 30px;
  }
}

.sc-desc {
  font-size: 15px;
  color: var(--sc-text-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* ── Step footer ─────────────────────────────────────────── */

.sc-step-foot {
  padding: 20px 0 8px;
  display: flex;
  justify-content: flex-end;
}


/* Step 2 固定底部按钮区 - 仅移动端 */
.sc-step-foot-fixed {
  display: none;
}

@media (max-width: 1023px) {
  #scStep2 .sc-step-foot {
    display: none;
  }

  #scStep1 .sc-inner,
  #scStep2 .sc-inner,
  #scStep3 .sc-inner {
    padding-bottom: 90px;
  }

  .sc-step-foot-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 28%);
  }

  #scStep1 .sc-step-foot,
  #scStep3 .sc-step-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 28%);
    justify-content: center;
  }

  #scStep3 .sc-step-foot {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  #scStep3Foot .sc-followup-hint[hidden] {
    display: none !important;
  }
}

#scStep3Foot {
  align-items: center;
  justify-content: space-between;
}

#scStep3Foot .sc-followup-hint[hidden] {
  display: block !important;
  visibility: hidden;
}

.sc-followup-hint {
  font-size: 13px;
  color: var(--sc-yellow);
  font-weight: 500;
  text-align: center;
  padding: 6px 12px;
  background: rgba(255,159,10,0.07);
  border-radius: 20px;
  margin-bottom: 0;
}

.sc-followup-hint[hidden] {
  display: none !important;
}

/* ── Buttons ─────────────────────────────────────────────── */

.sc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 28px;
  background: var(--sc-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.sc-btn-primary::after {
  content: '→';
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.15s;
}

.sc-btn-primary:not(:disabled):hover {
  opacity: 0.88;
}

.sc-btn-primary:not(:disabled):hover::after {
  transform: translateX(3px);
}

.sc-btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.sc-btn-primary:not(:disabled):active {
  transform: scale(0.97);
}

.sc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 11px 22px;
  background: #fff;
  color: var(--sc-text);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--sc-border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.sc-btn-ghost:hover {
  border-color: var(--sc-accent);
}

.sc-btn-ghost:active {
  transform: scale(0.98);
}

/* ── Pet cards ───────────────────────────────────────────── */

.sc-pet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .sc-pet-grid {
    gap: 16px;
  }
}

.sc-pet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 170px;
  padding: 24px 16px 18px;
  background: #fff;
  border: 1.5px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .sc-pet-card {
    min-height: 220px;
    padding: 32px 24px 22px;
  }
}

.sc-pet-card:hover {
  border-color: var(--sc-border-strong);
}

.sc-pet-card:active {
  transform: scale(0.97);
}

.sc-pet-card--active {
  border-color: var(--sc-accent);
  background: #f8f6fc;
}

.sc-pet-icon {
  display: block;
  width: 65%;
  max-width: 140px;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.sc-pet-icon img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sc-pet-icon svg {
  width: 100%;
  height: 100%;
}

.sc-pet-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sc-text);
  margin-top: auto;
}

/* ── Info fields ─────────────────────────────────────────── */

.sc-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sc-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.sc-field--revealed {
  animation: scFadeUp 0.25s ease;
}

@keyframes scFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Radio cards ─────────────────────────────────────────── */

.sc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.sc-radio-card:hover {
  border-color: var(--sc-border-strong);
}

.sc-radio-card:active {
  transform: scale(0.99);
}

.sc-radio-card[aria-pressed='true'] {
  border-color: var(--sc-accent);
  background: #f8f6fc;
}

.sc-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sc-border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}

.sc-radio-card[aria-pressed='true'] .sc-radio-dot {
  border-color: var(--sc-accent);
}

.sc-radio-card[aria-pressed='true'] .sc-radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sc-accent);
}

.sc-radio-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-text);
  line-height: 1.4;
}

.sc-radio-card[aria-pressed='true'] .sc-radio-label {
  color: var(--sc-accent);
  font-weight: 600;
}

/* ── Symptom grid ────────────────────────────────────────── */

.sc-sym-grid-wrap {
  position: relative;
}

.sc-sym-grid-wrap.is-collapsed .sc-sym-grid {
  max-height: 200px;
  overflow: hidden;
}

.sc-sym-grid-wrap.is-collapsed::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.sc-sym-more {
  text-align: center;
  padding: 8px 0 4px;
}

.sc-sym-more[hidden] {
  display: none !important;
}

.sc-sym-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-color);
  background: none;
  border: 1.5px solid var(--sc-border);
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.sc-sym-more-btn:hover {
  border-color: var(--theme-color);
  background: #f8f6fc;
}

.sc-sym-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.sc-sym-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.sc-sym-item:hover {
  border-color: var(--sc-border-strong);
}

.sc-sym-item--active {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
}

.sc-sym-label {
  font-size: 13px;
  color: var(--sc-text);
  line-height: 1.3;
}

.sc-sym-item--active .sc-sym-label {
  color: #fff;
  font-weight: 600;
}

/* ── Followup questions ──────────────────────────────────── */

.sc-followups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-fq-block {
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  padding: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sc-fq-block--visible {
  opacity: 1;
  transform: translateY(0);
}

.sc-fq-sym-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-accent);
  margin: 0 0 12px;
}

.sc-fq-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-fq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-text);
  margin: 0 0 10px;
}

.sc-fq-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sc-fq-opt {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-text);
  background: #fff;
  border: 1.5px solid var(--sc-border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.sc-fq-opt--active {
  background: var(--sc-accent);
  border-color: var(--sc-accent);
  color: #fff;
  font-weight: 600;
}

.sc-fq-opt:active,
.sc-cat-chip:active,
.sc-sym-item:active {
  transform: scale(0.97);
}

/* ── Report ──────────────────────────────────────────────── */

.sc-report {
  padding: 20px;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
}

#scReportExtras {
  margin-top: 16px;
}

@media (min-width: 640px) {
  .sc-report {
    padding: 28px;
    border-radius: 20px;
  }
}

.sc-report-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sc-border);
  margin-bottom: 20px;
}

.sc-report-title {
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin: 0;
}

.sc-report-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--sc-radius-md);
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.sc-report--red    .sc-report-alert { background: #fff5f5; border-color: #ffc9c9; }
.sc-report--yellow .sc-report-alert { background: #fffbf0; border-color: #ffe08a; }
.sc-report--green  .sc-report-alert { background: #f0fff4; border-color: #b2f2bb; }

.sc-report-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.sc-report--red    .sc-report-alert-dot { background: var(--sc-red); }
.sc-report--yellow .sc-report-alert-dot { background: var(--sc-yellow); }
.sc-report--green  .sc-report-alert-dot { background: var(--sc-green); }

.sc-report-alert-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.sc-report--red    .sc-report-alert-text { color: #c92a2a; }
.sc-report--yellow .sc-report-alert-text { color: #7d5a00; }
.sc-report--green  .sc-report-alert-text { color: #1a6b35; }

.sc-report-desc {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.65;
  margin: 0 0 22px;
}

.sc-report-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--border-color);
}

.sc-report-section-h {
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-color);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.sc-report-section-intro {
  font-size: 14px;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.sc-report-blist {
  list-style: disc;
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-report-blist li {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.55;
}

.sc-report-context {
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  padding: 12px 14px;
  margin-top: 8px;
}

.sc-report-context p {
  font-size: 13px;
  color: var(--sc-text-secondary);
  line-height: 1.55;
  margin: 0 0 6px;
}

.sc-report-context p:last-child {
  margin: 0;
}

/* ── Accordion ───────────────────────────────────────────── */

.sc-accordion {
  border: 1px solid var(--sc-border);
  background: var(--sc-bg);
  border-radius: var(--sc-radius-md);
  padding: 0 16px;
  margin-bottom: 22px;
}

.sc-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.sc-accordion-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sc-accent);
  flex-shrink: 0;
  position: relative;
}

.sc-accordion-icon::before,
.sc-accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--sc-accent);
  border-radius: 1px;
}

.sc-accordion-icon::before {
  width: 8px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.sc-accordion-icon::after {
  width: 1.5px;
  height: 8px;
  transform: translate(-50%, -50%);
  transition: transform 0.22s, opacity 0.22s;
}

.sc-accordion-btn[aria-expanded='true'] .sc-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.sc-accordion-body {
  padding-bottom: 8px;
}

.sc-syms-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.sc-accordion-sym {
  padding: 0;
}

.sc-accordion-sym-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-text);
  margin: 0 0 6px;
}

.sc-accordion-sym-desc {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0 0 6px;
}

.sc-accordion-sym-conds {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

/* ── Symptom article card ────────────────────────────────── */

.sc-sym-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sc-sym-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--sc-text);
}

.sc-sym-deep-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sc-sym-deep-link:hover {
  opacity: 0.72;
}

.sc-sym-deep-link .sc-sym-article-arrow {
  opacity: 0.6;
}

.sc-sym-article-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.sc-sym-article-card:hover {
  border-color: var(--sc-accent);
}

.sc-sym-article-card:active {
  transform: scale(0.99);
}

.sc-sym-article-inner {
  flex: 1;
  min-width: 0;
}

.sc-sym-article-eyebrow {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--sc-accent);
  opacity: 0.72;
  margin-right: 8px;
  white-space: nowrap;
}

.sc-sym-article-title {
  display: -webkit-box;
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-text);
  line-height: 1.4;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sc-sym-article-arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--sc-accent);
  border-top: 1.5px solid var(--sc-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Related articles ────────────────────────────────────── */

.sc-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-related-list--panel {
  padding-top: 8px;
  padding-bottom: 16px;
}

.sc-related-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  min-height: 96px;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.15s, transform 0.12s;
}

.sc-related-card:hover {
  border-color: var(--sc-border-strong);
}

.sc-related-card:active {
  transform: scale(0.99);
}

@media (min-width: 768px) {
  .sc-related-card {
    gap: 16px;
    padding: 16px;
    min-height: 120px;
    border-radius: var(--sc-radius-lg);
    align-items: center;
  }
}

.sc-card-thumb-wrap {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: var(--sc-radius-sm);
  overflow: hidden;
  background: var(--sc-bg);
  position: relative;
}

@media (min-width: 768px) {
  .sc-card-thumb-wrap {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    border-radius: var(--sc-radius-md);
  }
}

.sc-card-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sc-card-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-related-card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--sc-text);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .sc-related-card-title {
    font-size: 16px;
  }
}

.sc-related-card-excerpt {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--sc-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .sc-related-card-excerpt {
    margin-top: 6px;
    font-size: 14px;
  }
}

.sc-related-empty {
  margin: 0;
  padding: 16px 4px;
  font-size: 14px;
  color: var(--sc-text-secondary);
}

/* ── Disclaimer ──────────────────────────────────────────── */

.sc-disclaimer {
  font-size: 12px;
  color: var(--sc-text-tertiary);
  line-height: 1.7;
  margin: 16px auto 0;
  text-align: center;
  padding: 0 12px;
  max-width: 62ch;
}

/* ── Focus styles ────────────────────────────────────────── */

.sc-wiz-back:focus-visible,
.sc-wiz-restart:focus-visible,
.sc-btn-primary:focus-visible,
.sc-btn-ghost:focus-visible,
.sc-radio-card:focus-visible,
.sc-sym-item:focus-visible,
.sc-cat-chip:focus-visible,
.sc-fq-opt:focus-visible,
.sc-accordion-btn:focus-visible,
.sc-related-card:focus-visible,
.sc-sym-article-card:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}

/* ── Screen reader only ─────────────────────────────────── */

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

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .sc-step,
  .sc-stepper,
  .sc-fq-block,
  .sc-pet-card,
  .sc-radio-card,
  .sc-sym-item,
  .sc-btn-primary,
  .sc-btn-ghost,
  .sc-related-card,
  .sc-sym-article-card,
  .sc-cat-chip,
  .sc-fq-opt {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Skeleton loading ─────────────────────────────────────── */

.sc-skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.sc-skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--sc-bg);
  border-radius: var(--sc-radius-sm);
}

.sc-skeleton-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--sc-radius-xs);
  background: linear-gradient(90deg, #eaeaed 25%, #f5f5f7 50%, #eaeaed 75%);
  background-size: 200% 100%;
  animation: sc-skeleton-shimmer 1.5s infinite;
}

/* 平板及以下隐藏站点 footer，避免遮挡固定底部按钮 */
@media (max-width: 1023px) {
  .site-footer {
    display: none;
  }
}

.sc-skeleton-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-skeleton-line {
  height: 13px;
  width: 70%;
  border-radius: 4px;
  background: linear-gradient(90deg, #eaeaed 25%, #f5f5f7 50%, #eaeaed 75%);
  background-size: 200% 100%;
  animation: sc-skeleton-shimmer 1.5s infinite;
}

.sc-skeleton-line.sm {
  width: 45%;
  height: 11px;
}

@keyframes sc-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 症状检查页 Hero 区域过渡动效 ── */
.article-title {
  transition: font-size 0.4s ease;
}

.article-title--compact {
  font-size: 20px;
}

@media (min-width: 1024px) {
  .article-title--compact {
    font-size: 26px;
  }
}

@media (min-width: 1200px) {
  .article-title--compact {
    font-size: 32px;
  }
}

.hero-container .breadcrumb {
  overflow: hidden;
  max-height: 60px;
  transition: opacity 0.35s ease, visibility 0.35s ease, max-height 0.4s ease, margin 0.4s ease;
}
.hero-container .breadcrumb.sc-bc-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-height: 0;
  margin: 0;
}

.sc-wizard-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  will-change: opacity;
}

.sc-wizard-nav--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
