:root {
  --site-bg: #f7f1e6;
  --site-panel: #fffdf8;
  --site-ink: #1e1812;
  --site-ink-2: #4f4538;
  --site-ink-3: #837562;
  --site-rule: rgba(30, 24, 18, .13);
  --site-rule-strong: rgba(30, 24, 18, .24);
  --site-orange: #c95e2c;
  --site-orange-dark: #9f4319;
  --site-green: #2f6b4a;
  --site-serif: "Songti SC", "STSong", Georgia, serif;
  --site-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-site-header],
[data-site-footer] {
  box-sizing: border-box;
  font-family: var(--site-sans);
  letter-spacing: 0;
}

[data-site-header] *,
[data-site-header] *::before,
[data-site-header] *::after,
[data-site-footer] *,
[data-site-footer] *::before,
[data-site-footer] *::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

.site-chrome-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--site-rule);
  background: rgba(247, 241, 230, .92);
  backdrop-filter: blur(16px);
}

.site-chrome-container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-chrome-header-inner {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}

.site-chrome-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  text-decoration: none;
}

.site-chrome-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--site-bg);
  background: var(--site-ink);
  box-shadow: 3px 3px 0 rgba(201, 94, 44, .88);
  font-family: var(--site-serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1;
}

.site-chrome-logo {
  display: block;
  width: 64px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-chrome-brand-text {
  font-family: var(--site-serif);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.site-chrome-pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(201, 94, 44, .26);
  border-radius: 999px;
  color: var(--site-orange-dark);
  background: rgba(255, 253, 248, .82);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.site-chrome-title {
  display: none;
  color: var(--site-ink-3);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.site-chrome-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-chrome-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-chrome-nav-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--site-ink-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.site-chrome-nav-link:hover,
.site-chrome-nav-link.is-active {
  color: var(--site-bg);
  background: var(--site-ink);
}

.site-chrome-back,
.site-chrome-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-rule);
  border-radius: 999px;
  color: var(--site-ink-2);
  background: var(--site-panel);
  font-family: var(--site-sans);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease;
}

.site-chrome-back {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.site-chrome-menu {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.site-chrome-menu span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .16s ease, opacity .16s ease;
}

.site-chrome-back:hover,
.site-chrome-menu:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 94, 44, .38);
  color: var(--site-orange-dark);
  background: #fffdf8;
}

.site-chrome-back:focus-visible,
.site-chrome-menu:focus-visible,
.site-chrome-nav-link:focus-visible {
  outline: 2px solid var(--site-orange);
  outline-offset: 3px;
}

.site-chrome-header.is-open .site-chrome-menu {
  color: var(--site-bg);
  background: var(--site-ink);
}

.site-chrome-header.is-open .site-chrome-menu span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-chrome-header.is-open .site-chrome-menu span:nth-child(2) {
  opacity: 0;
}

.site-chrome-header.is-open .site-chrome-menu span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-chrome-footer {
  margin-top: 42px;
  padding: 38px 0 26px;
  color: #f7f1e6;
  background: var(--site-ink);
}

.site-chrome-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(130px, .7fr));
  gap: 28px;
}

.site-chrome-footer-brand {
  margin-bottom: 10px;
  font-family: var(--site-serif);
  font-size: 19px;
  font-weight: 900;
}

.site-chrome-footer-logo {
  display: block;
  width: 118px;
  height: auto;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--site-bg);
}

.site-chrome-footer-copy {
  max-width: 320px;
  margin: 0;
  color: rgba(247, 241, 230, .72);
  font-size: 13px;
  line-height: 1.8;
}

.site-chrome-footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-chrome-footer-col h2 {
  margin: 0 0 2px;
  color: rgba(247, 241, 230, .52);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-chrome-footer-col a {
  color: rgba(247, 241, 230, .86);
  font-size: 13px;
  text-decoration: none;
}

.site-chrome-footer-col a:hover {
  color: #fffdf8;
}

.site-chrome-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 241, 230, .14);
  color: rgba(247, 241, 230, .54);
  font-size: 12px;
}

@media (max-width: 900px) {
  .site-chrome-header-inner {
    align-items: center;
  }

  .site-chrome-brand {
    padding-top: 1px;
  }

  .site-chrome-actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 760px) {
  .site-chrome-container {
    width: auto;
    padding: 0 clamp(24px, 6.4vw, 28px);
  }

  .site-chrome-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas:
      "brand menu"
      "nav nav";
    min-height: 58px;
    align-items: center;
    gap: 10px 12px;
    padding: 11px clamp(24px, 6.4vw, 28px);
  }

  .site-chrome-header.has-title:not(.has-back) .site-chrome-header-inner,
  .site-chrome-header:has(.site-chrome-title):not(:has(.site-chrome-back)) .site-chrome-header-inner {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-areas:
      "brand title menu"
      "nav nav nav";
  }

  .site-chrome-header.has-title.has-back .site-chrome-header-inner,
  .site-chrome-header:has(.site-chrome-title):has(.site-chrome-back) .site-chrome-header-inner {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-areas:
      "brand back menu"
      "nav nav nav";
  }

  .site-chrome-brand-text {
    font-size: 15px;
  }

  .site-chrome-brand {
    grid-area: brand;
    min-width: 0;
    justify-self: start;
    flex-wrap: nowrap;
  }

  .site-chrome-header.has-title .site-chrome-brand,
  .site-chrome-header:has(.site-chrome-title) .site-chrome-brand {
    width: 38px;
    gap: 0;
  }

  .site-chrome-header.has-title .site-chrome-brand-text,
  .site-chrome-header.has-title .site-chrome-pill,
  .site-chrome-header:has(.site-chrome-title) .site-chrome-brand-text,
  .site-chrome-header:has(.site-chrome-title) .site-chrome-pill {
    display: none;
  }

  .site-chrome-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 22px;
  }

  .site-chrome-logo {
    width: 52px;
    height: 36px;
  }

  .site-chrome-header.has-title .site-chrome-logo,
  .site-chrome-header:has(.site-chrome-title) .site-chrome-logo {
    width: 38px;
    height: 30px;
  }

  .site-chrome-pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .site-chrome-title {
    grid-area: title;
    display: block;
    width: auto;
    min-width: 0;
    overflow: hidden;
    color: var(--site-ink-3);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-chrome-header.has-back .site-chrome-title,
  .site-chrome-header:has(.site-chrome-back) .site-chrome-title {
    display: none;
  }

  .site-chrome-actions {
    display: contents;
  }

  .site-chrome-back {
    grid-area: back;
    max-width: min(100%, 168px);
    min-height: 34px;
    min-width: 0;
    justify-self: start;
    overflow: hidden;
    padding: 0 10px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-chrome-menu {
    grid-area: menu;
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-self: end;
  }

  .site-chrome-nav {
    grid-area: nav;
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: stretch;
    gap: 4px;
    margin-top: 2px;
    padding: 10px;
    border: 1px solid var(--site-rule);
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 24px 54px -30px rgba(30, 24, 18, .45);
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition: opacity .16s ease, transform .16s ease;
  }

  .site-chrome-header.is-open .site-chrome-nav {
    display: grid;
    pointer-events: auto;
  }

  .site-chrome-nav-link {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 10px;
  }

  .detail-ribbon {
    display: none !important;
  }

  .site-chrome-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-chrome-footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-chrome-mark {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .site-chrome-logo {
    width: 48px;
    height: 34px;
  }

  .site-chrome-header.has-title .site-chrome-logo,
  .site-chrome-header:has(.site-chrome-title) .site-chrome-logo {
    width: 36px;
    height: 28px;
  }

  .site-chrome-brand {
    gap: 8px;
  }

  .site-chrome-brand-text {
    font-size: 14px;
  }
}
