/* Copyright (c) 2026 Guangzhou Zhiyu Tanjin Intelligent Technology Co., Ltd.
 * All rights reserved. */

:root {
  --frame: min(1510px, calc(100% - 86px));
  --home-accent: #eda840;
  --home-hover: #f6bc65;
  --home-ink: #211709;
  --site-font: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.site-skip {
  position: fixed; top: 10px; left: 10px; z-index: 30; padding: 10px;
  background: #fff; color: #171717; transform: translateY(-130%);
}
.site-skip:focus { transform: none; }

.masthead {
  --nav-accent: #7d4f12;
  position: relative; z-index: 8; background: #fff; color: #171717;
  border-bottom: 1px solid #e9e9e9; font-family: var(--site-font); line-height: 1.5;
}
.masthead[data-header-home] { position: fixed; inset: 0 0 auto; transition: background .2s, color .2s; }
.masthead[data-header-home]:not([data-scrolled="true"]) {
  --nav-accent: var(--home-hover);
  background: transparent; color: #fff; border-color: #ffffff43;
}
.masthead[data-header-home][data-scrolled="true"] { box-shadow: 0 2px 16px #00000014; }
.masthead .mast-inner { width: var(--frame); margin-inline: auto; display: flex; align-items: center; min-height: 64px; gap: 31px; }
.masthead .wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.masthead .wordmark img { display: block; width: 95px; height: auto; }
.masthead a { color: inherit; text-decoration: none; }
.masthead :focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 4px; }
.masthead .site-nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(19px, 2.1vw, 33px); margin-inline: 0 auto; }
.masthead .site-nav a { display: flex; position: relative; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 610; }
.masthead .site-nav a:hover, .masthead .language:hover { color: var(--nav-accent); }
.masthead .site-nav a[aria-current] { color: var(--nav-accent); }
.masthead .site-nav a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--home-accent); }
.masthead[data-header-home] .site-nav a[aria-current]:not(:hover) { color: inherit; }
.masthead[data-header-home] .site-nav a[aria-current]::after { display: none; }
.masthead .mast-tools { display: flex; align-items: center; gap: 22px; }
.masthead .language { font-size: 13px; white-space: nowrap; }
.masthead .top-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px; white-space: nowrap;
  box-sizing: border-box; min-height: 43px; padding-inline: 21px; border: 1px solid transparent;
  background: var(--home-accent); color: var(--home-ink); font-size: 14px; font-weight: 670; line-height: 1.1;
  transition: transform .18s ease, background .18s ease;
}
.masthead .top-cta:hover { background: var(--home-hover); transform: translateY(-2px); }
.masthead .top-cta:active { transform: none; }
.masthead .mobile-menu { display: none; }

@media (max-width: 1050px) {
  .masthead .mast-tools { gap: 14px; }
}
@media (max-width: 767px) {
  :root { --frame: calc(100% - 36px); }
  .masthead { --mobile-nav-bg: #1b1c19; --mobile-nav-ink: #f6f4ee; --mobile-nav-line: #f6f4ee26; }
  .masthead:has(.mobile-menu[open]) {
    --nav-accent: var(--home-accent);
    background: var(--mobile-nav-bg); color: var(--mobile-nav-ink); border-color: var(--mobile-nav-line); box-shadow: none;
  }
  .masthead .mast-inner { min-height: 61px; gap: 8px; }
  .masthead .wordmark img { width: 78px; }
  .masthead .mast-tools { margin-left: auto; gap: 12px; }
  .masthead .top-cta { min-height: 35px; padding-inline: 10px; gap: 7px; font-size: 12px; }
  .masthead .site-nav { display: none; }
  .masthead .mobile-menu { display: block; }
  .masthead .mobile-menu summary {
    display: grid; gap: 4px; width: 44px; height: 44px; place-content: center; list-style: none; cursor: pointer;
  }
  .masthead .mobile-menu summary::-webkit-details-marker { display: none; }
  .masthead .mobile-menu summary:focus-visible { outline-color: currentColor; }
  .masthead .mobile-menu summary span { width: 18px; height: 2px; background: currentColor; transition: transform .18s ease; }
  .masthead .mobile-menu[open] summary { color: var(--home-accent); }
  .masthead .mobile-menu[open] summary span:first-child { transform: translateY(3px) rotate(45deg); }
  .masthead .mobile-menu[open] summary span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .masthead .mobile-menu nav {
    position: absolute; inset: 100% 0 auto; background: var(--mobile-nav-bg); color: var(--mobile-nav-ink);
    border-bottom: 1px solid var(--mobile-nav-line); padding: 6px calc((100% - var(--frame)) / 2) 14px;
    box-shadow: 0 16px 28px #0c0c0a33; max-height: calc(100svh - 62px); overflow-y: auto; overscroll-behavior: contain;
  }
  .masthead .mobile-menu[open] nav { animation: reveal-mobile-nav .18s ease-out both; }
  .masthead .mobile-menu nav a {
    display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; min-height: 56px;
    padding-block: 10px; font-size: clamp(20px, 4vw, 26px); font-weight: 650; line-height: 1.25;
  }
  .masthead .mobile-menu nav a + a { border-top: 1px solid var(--mobile-nav-line); }
  .masthead .mobile-menu nav a:hover,
  .masthead .mobile-menu nav a[aria-current] { color: var(--home-accent); }
  .masthead .mobile-menu nav a[aria-current]::after { content: ""; flex: 0 0 20px; height: 2px; background: currentColor; }
}
@media (max-width: 360px) {
  .masthead .mast-inner { gap: 6px; }
  .masthead .wordmark img { width: 72px; }
  .masthead .mast-tools { gap: 8px; }
  .masthead .top-cta { padding-inline: 8px; }
}
@keyframes reveal-mobile-nav { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .masthead, .masthead .top-cta, .masthead .mobile-menu summary span { transition: none; }
  .masthead .mobile-menu[open] nav { animation: none; }
}
