/* 官网共用的导航、基础控件与页脚；页面内容使用各自样式。 */
.website-page {
  --lp-bg: #f6f7f9;
  --lp-ink: #17191d;
  --lp-muted: #646a75;
  --lp-line: #e5e7eb;
  --lp-blue: #2457e5;
  --site-header-height: 72px;
  color-scheme: light;
  background: var(--lp-bg);
  color: var(--lp-ink);
}
.website-page [id] { scroll-margin-top: calc(var(--site-header-height) + 24px); }
.website-page :is(a, button, summary):focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 5px; }
.lp-shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-page-shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: calc(var(--site-header-height) + 36px) 0 64px; }
.site-product-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 0 20px;
  padding: 28px;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--lp-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.site-product-card:hover { border-color: #a4b6e2; transform: translateY(-2px); }
.site-product-card > img { grid-row: span 2; width: 56px; height: 56px; border-radius: 12px; object-fit: contain; }
.site-product-name { font-size: 23px; line-height: 1.5; font-weight: 600; }
.site-product-description { grid-column: 2; margin-top: 5px; color: var(--lp-muted); font-size: 14px; line-height: 1.8; }
.site-product-meta { grid-column: 2; display: flex; align-items: center; align-self: end; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--lp-line); font-size: 14px; }
.site-qr-frame { display: inline-flex; flex: 0 0 auto; padding: 16px; border-radius: 8px; background: #fff; vertical-align: middle; }
.site-qr-frame img { display: block; object-fit: contain; }
.lp-skip { position: fixed; top: 8px; left: 16px; z-index: 9; padding: 12px; background: #fff; color: var(--lp-ink); transform: translateY(-150%); }
.lp-skip:focus { transform: none; }
.lp-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  background: rgba(246,247,249,.72);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.lp-header.is-scrolled { background: rgba(255,255,255,.72); border-bottom-color: rgba(210,215,224,.55); }
.lp-nav-inner { display: flex; align-items: center; gap: 56px; min-height: 72px; padding-inline: max(32px, calc((100vw - 1440px) / 2)); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; font-size: 21px; font-weight: 650; }
.lp-brand img { display: block; object-fit: contain; }
.lp-nav { display: flex; gap: 32px; align-items: center; }
.lp-nav-group { position: relative; display: flex; align-items: center; min-height: 72px; }
.lp-nav-trigger { display: inline-flex; align-items: center; padding: 12px 0; color: var(--lp-ink); font: inherit; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.lp-nav :is(a, button):focus-visible { outline-color: var(--lp-ink); }
.lp-nav-dropdown { position: absolute; top: calc(100% - 8px); left: -12px; min-width: 208px; padding: 12px; border: 1px solid var(--lp-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(23,25,29,.08); transform-origin: 28px 0; }
.lp-nav-dropdown[hidden] { display: none; }
.lp-nav-dropdown:not([hidden]) { animation: lp-nav-reveal 160ms cubic-bezier(.22, 1, .36, 1); }
.lp-nav-dropdown :is(a, button) { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin-block: 2px; padding: 10px 16px; border: 0; border-radius: 10px; background: none; color: #48484a; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.6; text-align: left; text-decoration: none; cursor: pointer; transition: background .18s ease; }
.lp-nav-item-logo, .lp-nav-item-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.lp-nav-item-logo { display: block; border-radius: 5px; object-fit: contain; }
.lp-nav-item-icon { display: inline-flex; align-items: center; justify-content: center; color: #48484a; }
.lp-nav-item-icon svg { display: block; width: 16px; height: 16px; }
.lp-nav-dropdown :is(a, button):hover, .lp-nav-dropdown :is(a, button):focus-visible { background: #f4f4f5; color: #48484a; }
@keyframes lp-nav-reveal {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lp-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lp-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff;
  background: #17191d;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lp-button:hover { background: #343944; }
.lp-button:active { transform: translateY(1px); }
.lp-nav-login { margin-left: auto; min-height: 36px; padding: 8px 18px; white-space: nowrap; }
.lp-nav-actions [hidden] { display: none; }
.lp-nav-account { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; border: 0; background: none; color: var(--lp-ink); text-decoration: none; }
.lp-account-dropdown { right: 0; left: auto; }
.lp-account-error { margin: 8px 16px; color: #c63838; font-size: 12px; line-height: 1.6; }
.lp-account-dropdown button:disabled { opacity: .5; cursor: wait; }
.lp-nav-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: #e8edf8; color: var(--lp-blue); font-size: 14px; }
.lp-nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-nav-username { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lp-text-link { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: 14px; line-height: 1.5; text-decoration: none; cursor: pointer; }
.lp-text-link span { transition: transform .2s ease; }
.lp-text-link:hover { color: var(--lp-blue); }
.lp-text-link:hover span { transform: translateX(3px); }
.lp-footer { margin-top: auto; color: #b0b3bc; background: #141517; }
.lp-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block: 40px;
  border-top: 1px solid #303239;
}
.lp-footer .lp-brand { color: #f3f4f6; font-size: 21px; }
.lp-footer-brand p { margin-top: 20px; font-size: 13px; line-height: 1.9; }
.lp-footer h2 { margin: 0 0 22px; font-size: 13px; font-weight: 500; color: #9297a2; }
.lp-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lp-footer-column h2 { margin-bottom: 7px; }
.lp-footer a, .lp-footer button { text-decoration: none; transition: color .2s ease; }
.lp-footer-column a, .lp-footer-column button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}
.lp-footer a:hover, .lp-footer button:hover { color: #fff; }
.lp-follow-item { position: relative; }
.lp-follow-code { position: absolute; z-index: 6; right: 0; bottom: calc(100% + 12px); width: 168px; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.lp-follow-code[hidden] { display: none; }
.lp-follow-code::after { content: ""; position: absolute; inset: auto 0 -12px; height: 12px; }
.lp-follow-code img { display: block; width: 100%; height: auto; border-radius: 4px; }
.lp-footer-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-block: 24px 30px; border-top: 1px solid #303239; font-size: 12px; }
.lp-footer-bottom a { color: inherit; }
.lp-footer-bottom .lp-back-top { margin-left: auto; display: inline-flex; gap: 12px; align-items: center; }
.lp-footer :is(a, button):focus-visible { outline-color: #98b6ff; }
@media (max-width: 1000px) {
  .lp-nav-inner { gap: 32px; padding-inline: 24px; }
  .lp-nav { gap: 22px; }
  .lp-shell { width: calc(100% - 48px); }
  .site-page-shell { width: calc(100% - 48px); }
  .site-product-card { padding: 24px; }
  .lp-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
  .lp-footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 701px) and (max-width: 820px) {
  .lp-nav-inner { gap: 20px; }
  .lp-nav { gap: 16px; }
}
@media (max-width: 700px) {
  .website-page { --site-header-height: 108px; }
  .lp-nav-inner { flex-wrap: wrap; gap: 0 16px; padding: 14px 20px 0; }
  .lp-brand { font-size: 18px; }
  .lp-nav { order: 3; justify-content: flex-start; width: 100%; gap: 28px; margin-top: 7px; }
  .lp-nav-group { position: static; min-height: 51px; }
  .lp-account-group { position: relative; min-height: 44px; }
  .lp-account-dropdown { left: auto; right: 0; top: 100%; }
  .lp-nav-trigger { font-size: 13px; line-height: 23px; padding-block: 14px; }
  .lp-nav-dropdown { left: 20px; right: 20px; min-width: 0; max-height: min(60dvh, 400px); overflow-y: auto; }
  .lp-nav-login { padding-inline: 14px; }
  .lp-nav-username { max-width: 88px; }
  .lp-shell { width: calc(100% - 40px); }
  .site-page-shell { width: calc(100% - 40px); padding-top: calc(var(--site-header-height) + 24px); padding-bottom: 44px; }
  .site-product-card { gap: 0 16px; padding: 22px; }
  .lp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 44px; gap: 36px 24px; }
  .lp-footer-brand { grid-column: 1 / -1; }
  .lp-footer-column { gap: 16px; }
  .lp-footer-bottom { gap: 16px; }
}
@media (max-width: 360px) {
  .lp-shell { width: calc(100% - 32px); }
  .lp-nav-inner { padding-inline: 16px; }
  .lp-nav { gap: 8px; }
  .site-page-shell { width: calc(100% - 32px); }
  .site-product-card { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .site-product-card > img { width: 44px; height: 44px; }
  .site-product-description, .site-product-meta { grid-column: 1 / -1; }
  .site-product-description { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-nav-dropdown:not([hidden]) { animation: none; }
  .site-product-card:hover { transform: none; }
  .website-page *, .website-page *::before, .website-page *::after {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}
