/* WordPress 结构补丁：菜单是 ul，分页也使用 .navigation，不能套用顶栏样式。 */

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #0c7563;
  padding: 8px 12px;
  z-index: 80;
}
.skip-link:focus { left: 8px; }

header.navigation { position: sticky; }
nav.navigation.pagination,
.navigation.pagination {
  position: static;
  z-index: auto;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  min-height: 0;
}
.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-numbers {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #c7e9dd;
  color: #0c7563;
  background: #fff;
}
.page-numbers.current { background: #0a9278; color: #fff; border-color: #0a9278; }

ul.nav-links { list-style: none; margin: 0; padding: 0; }
ul.nav-links > li { display: flex; align-items: center; }
.nav-desktop { display: block; }
.nav-tools { display: none; align-items: center; gap: 8px; }
.mobile-drawer { position: relative; }
.mobile-drawer summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #aad7cb;
  color: #0c7563;
  background: #fff;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
}
.mobile-drawer summary::-webkit-details-marker { display: none; }

body.admin-bar header.navigation { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.navigation { top: 46px; }
}

@media (max-width: 900px) {
  .nav-desktop .nav-links > li:nth-child(3),
  .nav-desktop .nav-links > li:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  .nav-desktop { display: none; }
  .nav-tools { display: flex; }
  .mobile-drawer[open] .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #dff0e9;
    border-radius: 12px;
    padding: 14px;
    min-width: 210px;
    box-shadow: 0 12px 30px #0c604514;
    z-index: 50;
  }
  .mobile-drawer .is-cta { display: none; }
}

#problem, #method, #courses, #works, #articles, #faq, #contact, #stages { scroll-margin-top: 90px; }

.solution h2 { font-size: 36px; line-height: 1.4; margin: 13px 0; }
.solution-lead > div > p { color: #618074; line-height: 1.95; }
.course-top h1 { font-size: 31px; margin: 20px 0 8px; line-height: 1.35; }
.contact h1 { font-size: 43px; line-height: 1.35; margin: 12px 0; }
.hero-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 23px 45px #16634e28;
  margin-left: auto;
  display: block;
}
.course-top.orange .course-tag { color: #a76a33; }
.news .article-art.is-orange,
.article-art.is-orange { background: #fff0e4; color: #b87540; }
.news .article-art.is-blue,
.article-art.is-blue { background: #e7eff9; color: #577da3; }
.article-art { text-decoration: none; }
.news-list { margin-top: 8px; }

.crumb { font-size: 13px; color: #778a7f; margin: 0 0 18px; }
.crumb a { color: #0f806c; }
.page-wrap, .course-single { max-width: 880px; }
.page-wrap h1, .article-intro h1 {
  font-size: clamp(31px, 4.7vw, 49px);
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.article-intro .sub { color: #64776e; font-size: 17px; line-height: 1.9; max-width: 800px; }
.article-intro .meta, .article-body .meta { color: #159578; font-size: 13px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 42px;
  padding: 10px 0 20px;
}
.prose {
  background: #fff;
  font-size: 16px;
  line-height: 2.05;
}
.article-page .prose {
  padding: 32px 38px;
  border: 1px solid #dfe7df;
  border-radius: 16px;
}
.prose h2 { font-size: 23px; margin: 33px 0 6px; line-height: 1.5; }
.prose p { color: #3e534a; margin: 8px 0 17px; }
.prose ul { padding-left: 23px; }
.prose li { padding: 5px 0; color: #3e534a; }
.prose .note, .note {
  padding: 17px 20px;
  background: #edf7f1;
  border-radius: 11px;
  border-left: 4px solid #4b9b80;
  font-size: 15px;
}
.callout {
  background: #f0f7f1;
  border-radius: 15px;
  padding: 24px;
  margin-top: 28px;
}
.callout h2 { margin: 0 0 12px; }
.callout .btn { margin: 8px 8px 0 0; }
.article-cover { width: 100%; height: auto; border-radius: 12px; margin-bottom: 18px; }
.side { position: sticky; top: 95px; align-self: start; display: grid; gap: 16px; }
.side-card { background: #fff; border: 1px solid #dfe7df; }
.side-card h2 { font-size: 20px; margin: 0 0 9px; }
.side-card p { font-size: 14px; line-height: 1.85; color: #64776e; }
.next {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #f4f8f4;
  border-radius: 10px;
  font-size: 14px;
  align-items: center;
  margin-top: 8px;
}
.stepnum {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #cde9d9;
  color: #1d7763;
  font-weight: 800;
}
.contact .placeholder img { width: 220px; height: 220px; object-fit: cover; border-radius: 8px; background: #fff; }
.contact-page-copy { margin-top: 18px; }
.section-head .prose { background: transparent; }
.section-head .prose p { color: #628177; }

@media (max-width: 800px) {
  .article-layout { grid-template-columns: 1fr; gap: 18px; }
  .article-page .prose { padding: 23px 22px; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .solution h2 { font-size: 28px; }
  .contact h1 { font-size: 31px; }
  .hero-photo { width: 100%; height: 280px; margin: 20px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #123b34;
  display: block;
  height: auto;
  left: 8px;
  top: 8px;
  width: auto;
  z-index: 100000;
  padding: 8px 12px;
}

.evidence .media-slot.has-photo {
  height: auto;
  min-height: 210px;
  display: block;
  padding: 0 0 16px;
}
.evidence .media-slot.has-photo:before { display: none; }
.evidence .media-slot.has-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.evidence .media-slot.has-photo .slot-inner { padding: 12px 16px 0; }

@media (max-width: 640px) {
  nav.navigation.pagination .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}
