/* YouNavi 帮助中心共享样式 */

.help-site {
  min-height: 100vh;
  color: var(--foreground);
  background: #fff;
}

.help-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.help-header-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 520px) minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.help-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.help-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.help-brand-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.help-brand-section {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 600;
}

.help-header-search {
  position: relative;
}

.help-header--home .help-header-search {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s,
    transform 0.16s,
    visibility 0.16s;
}

.help-header--home.is-search-visible .help-header-search {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.help-search-input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 15px;
  color: var(--foreground);
  background: #f7f7f7;
  border: 1px solid transparent;
  border-radius: 9px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.help-search-input:focus {
  background: #fff;
  border-color: #b8b8b8;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.help-search-shortcut {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 2px 6px;
  color: #8a8a8a;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 5px;
  font-size: 11px;
  transform: translateY(-50%);
}

.help-header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-self: end;
  white-space: nowrap;
}

.help-header-link {
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.help-header-link:hover {
  color: var(--foreground);
}

.help-header-download {
  padding: 9px 14px;
  color: #333;
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.help-header-download:hover {
  color: #111;
  background: #f5f5f5;
  border-color: #bdbdbd;
}

.help-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--foreground);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.help-home {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 96px;
}

.help-home-hero {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}

.help-home-eyebrow {
  margin: 0 0 14px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 600;
}

.help-home-hero h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.help-home-hero > p {
  margin: 18px 0 30px;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.7;
}

.help-home-search {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.help-home-search .help-search-input {
  height: 56px;
  padding: 0 20px;
  background: #fff;
  border-color: #d8d8d8;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  font-size: 16px;
}

.help-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(480px, 60vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.help-search-results[hidden] {
  display: none;
}

.help-search-result {
  display: block;
  padding: 14px 16px;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  text-align: left;
  text-decoration: none;
}

.help-search-result:last-child {
  border-bottom: 0;
}

.help-search-result:hover,
.help-search-result:focus {
  background: #f7f7f7;
  outline: none;
}

.help-search-result-category {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.help-search-result-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.help-search-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.help-home-section {
  margin-top: 72px;
}

.help-home-onboarding {
  width: min(1040px, 100%);
  margin: 64px auto 0;
}

.help-home-onboarding .help-home-section-heading {
  justify-content: flex-start;
  gap: 16px;
}

.help-home-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.help-home-section-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
}

.help-home-section-heading > a {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  text-decoration: none;
}

.help-home-section-heading > a:hover {
  color: #111;
}

.help-home-section-heading > p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.help-start-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.help-start-item {
  position: relative;
  min-width: 0;
  padding: 26px 56px 26px 28px;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.15s;
}

.help-start-item + .help-start-item {
  border-left: 1px solid var(--border);
}

.help-start-item:hover {
  background: #f3f3f3;
}

.help-start-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.help-start-number {
  display: block;
  flex: 0 0 24px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 600;
}

.help-start-item strong {
  display: block;
  font-size: 16px;
}

.help-start-item p {
  margin: 8px 0 0;
  padding-left: 36px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

.help-start-arrow {
  position: absolute;
  top: 27px;
  right: 24px;
  color: #aaa;
  font-size: 15px;
  line-height: 1;
  transition:
    color 0.15s,
    transform 0.15s;
}

.help-start-item:hover .help-start-arrow {
  color: #555;
  transform: translateX(2px);
}

.help-directory {
  border-top: 0;
}

.help-directory-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 70px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.help-directory-intro h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.4;
}

.help-directory-intro h3 a {
  color: var(--foreground);
  text-decoration: none;
}

.help-directory-intro h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.help-directory-intro p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.65;
}

.help-directory-links {
  border-top: 1px solid #ededed;
}

.help-directory-link {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  padding: 12px 0;
  color: #333;
  border-bottom: 1px solid #ededed;
  text-decoration: none;
}

.help-directory-link strong {
  font-size: 14px;
  font-weight: 600;
}

.help-directory-link span {
  color: #777;
  font-size: 13px;
  line-height: 1.55;
}

.help-directory-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-popular-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-popular-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  text-decoration: none;
}

.help-popular-list a::after {
  color: #aaa;
  content: "→";
}

.help-popular-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(680px, 760px) 180px;
  gap: 32px;
  width: min(1264px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.help-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 124px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.help-sidebar-home {
  display: block;
  margin-bottom: 24px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.help-sidebar-group {
  margin-bottom: 24px;
}

.help-sidebar-group-title {
  display: block;
  margin-bottom: 7px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.help-sidebar-group-title:hover {
  color: var(--foreground);
}

.help-sidebar-link {
  position: relative;
  display: block;
  margin: 1px 0;
  padding: 7px 10px;
  color: #555;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.help-sidebar-link:hover {
  color: #111;
  background: #f5f5f5;
}

.help-sidebar-link[aria-current="page"] {
  color: #111;
  background: #f2f2f2;
  font-weight: 600;
}

.help-sidebar-link[aria-current="page"]::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: #111;
  border-radius: 2px;
  content: "";
}

.help-main {
  min-width: 0;
}

.help-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 28px;
  color: #8a8a8a;
  font-size: 13px;
}

.help-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.help-breadcrumbs a:hover {
  color: var(--foreground);
}

.help-breadcrumb-separator {
  color: #c2c2c2;
}

.help-article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.help-article-header h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.help-article-header p {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.7;
}

.help-article-scope {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: #555;
  font-size: 13px;
}

.help-article-scope span {
  padding-right: 10px;
  color: #8a8a8a;
  border-right: 1px solid var(--border);
}

.help-prose.article-body {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.help-prose.article-body h2 {
  scroll-margin-top: 96px;
  margin-top: 52px;
  font-size: 24px;
}

.help-prose.article-body h3 {
  scroll-margin-top: 96px;
  margin-top: 38px;
  padding-left: 0;
  font-size: 19px;
}

.help-prose.article-body h3::before {
  display: none;
}

.help-prose.article-body p,
.help-prose.article-body li {
  font-size: 16px;
  line-height: 1.8;
}

.guide-figure {
  max-width: 100%;
  margin: 28px auto 36px;
}

.guide-figure--medium {
  max-width: 680px;
}

.guide-figure--narrow {
  max-width: 420px;
}

.guide-figure--phone {
  max-width: 360px;
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f7f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: zoom-in;
}

.guide-figure figcaption {
  margin-top: 10px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.guide-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
  align-items: start;
}

.guide-gallery .guide-figure {
  margin: 0;
}

.help-toc {
  position: sticky;
  top: 100px;
  align-self: start;
}

.help-toc-title {
  margin: 0 0 12px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
}

.help-toc a {
  display: block;
  margin: 9px 0;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a.is-active {
  color: #111;
}

.help-toc a.is-active {
  font-weight: 600;
}

.help-mobile-toc {
  display: none;
}

.help-related {
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.help-related h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.help-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-related-links a {
  padding: 15px 16px;
  color: #222;
  background: #f7f7f7;
  border-radius: 9px;
  font-size: 14px;
  text-decoration: none;
}

.help-related-links a:hover {
  background: #f0f0f0;
}

.help-article-faq {
  margin-top: 54px;
  padding: 24px 26px;
  background: #f7f7f7;
  border-radius: 12px;
}

.help-article-faq h2 {
  margin-top: 0 !important;
}

.help-article-faq p {
  margin: 0 0 12px;
  color: #666;
}

.help-article-faq a {
  color: #111;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.help-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  padding: 48px;
  background: rgba(16, 16, 16, 0.86);
  opacity: 0;
  transition:
    opacity 0.18s,
    visibility 0.18s;
}

.help-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.help-lightbox img {
  max-width: min(1180px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.help-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
}

.help-category-intro {
  margin-bottom: 34px;
}

.help-category-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.help-category-intro p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.7;
}

.help-article-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.help-article-list a {
  display: block;
  padding: 21px 0;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.help-article-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.help-article-list span {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.help-article-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.help-article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.help-article-pagination a {
  color: var(--foreground);
  font-size: 14px;
  text-decoration: none;
}

.help-article-pagination a:last-child {
  text-align: right;
}

.help-article-pagination span {
  display: block;
  margin-bottom: 5px;
  color: #8a8a8a;
  font-size: 11px;
}

.help-article-pagination a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-feedback {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.help-feedback p {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.help-feedback-actions {
  display: flex;
  gap: 8px;
}

.help-feedback button {
  padding: 7px 13px;
  color: #555;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.help-feedback button:hover {
  color: #111;
  border-color: #999;
}

.help-feedback-message {
  color: #555;
  font-size: 13px;
}

.help-footer {
  padding: 28px 24px;
  color: #777;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.help-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.help-footer-links {
  display: flex;
  gap: 18px;
}

.help-footer a {
  color: inherit;
  text-decoration: none;
}

.help-footer a:hover {
  color: #111;
}

.help-overlay {
  display: none;
}

@media (max-width: 1120px) {
  .help-header-inner {
    grid-template-columns: 1fr minmax(260px, 420px) auto;
  }

  .help-header-link {
    display: none;
  }

  .help-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    max-width: 1040px;
  }

  .help-toc {
    display: none;
  }

  .help-mobile-toc {
    display: block;
    margin: -10px 0 34px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .help-mobile-toc summary {
    padding: 14px 0;
    color: #555;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }

  .help-mobile-toc nav {
    display: grid;
    gap: 10px;
    padding: 0 0 16px;
  }

  .help-mobile-toc a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
  }
}

@media (max-width: 900px) {
  .help-directory-row {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 42px;
  }

  .help-directory-link {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 760px) {
  .help-header {
    height: auto;
  }

  .help-header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: 60px auto;
    gap: 12px;
    width: calc(100% - 28px);
    height: auto;
    padding-bottom: 10px;
  }

  .help-header-download,
  .help-brand-divider {
    display: none;
  }

  .help-header-search {
    display: block;
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .help-header--home .help-header-search {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .help-header-search .help-search-input {
    height: 38px;
  }

  .help-menu-button {
    display: block;
  }

  .help-home {
    width: calc(100% - 36px);
    padding: 48px 0 68px;
  }

  .help-home-hero {
    margin-bottom: 48px;
    text-align: left;
  }

  .help-home-hero h1 {
    font-size: 40px;
  }

  .help-home-search .help-search-input {
    height: 52px;
  }

  .help-home .help-home-search {
    display: none;
  }

  .help-popular-list {
    grid-template-columns: 1fr;
  }

  .help-home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-home-onboarding .help-home-section-heading {
    align-items: baseline;
    flex-direction: row;
  }

  .help-start-list {
    grid-template-columns: 1fr;
  }

  .help-start-item,
  .help-start-item:first-child,
  .help-start-item:last-child {
    padding: 20px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .help-start-item:last-child {
    border-bottom: 0;
  }

  .help-start-arrow {
    display: none;
  }

  .help-directory-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .help-directory-row {
    padding: 26px 0;
  }

  .help-layout {
    display: block;
    width: calc(100% - 36px);
    padding: 32px 0 72px;
  }

  .help-sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 320px);
    max-height: none;
    padding: 28px 22px;
    background: #fff;
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.14);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  .help-site.help-menu-open .help-sidebar {
    transform: translateX(0);
  }

  .help-overlay {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition:
      opacity 0.2s,
      visibility 0.2s;
  }

  .help-site.help-menu-open .help-overlay {
    visibility: visible;
    opacity: 1;
  }

  .guide-gallery {
    grid-template-columns: 1fr;
  }

  .guide-figure--phone,
  .guide-figure--narrow {
    max-width: min(100%, 360px);
  }

  .help-article-header h1,
  .help-category-intro h1 {
    font-size: 34px;
  }

  .help-article-pagination {
    grid-template-columns: 1fr;
  }

  .help-article-pagination a:last-child {
    text-align: left;
  }

  .help-feedback {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-related-links {
    grid-template-columns: 1fr;
  }

  .help-lightbox {
    padding: 24px 14px;
  }

  .help-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-sidebar,
  .help-overlay {
    transition: none;
  }
}
