/* 内页导航：与首页 style.css 的白底滚动状态保持相同尺寸和字重。 */
body .site-header {
  --header-height: 94px;
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 20;
  color: #292c2b;
  background: #fffffff5;
  border-bottom: 1px solid #ffffff24;
  box-shadow: 0 3px 18px #26364709;
  backdrop-filter: blur(16px);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.site-header .header-inner {
  width: min(1320px, 78%);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header .brand { position: relative; flex: none; width: 195px; }
.site-header .brand img { display: block; width: 100%; height: auto; }
.site-header .stock-code {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  opacity: .85;
}

/* .site-header .main-nav {
  position: static;
  display: flex;
  align-items: center;
  justify-content: normal;
  gap: clamp(18px, 2.8vw, 44px);
  margin-left: auto;
  padding: 0;
  white-space: nowrap;
  background: none;
  box-shadow: none;
}

.site-header .main-nav a {
  position: relative;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}

.site-header .main-nav a::after {
  content: "";
  position: absolute;
  height: 3px;
  background: #f58200;
  bottom: 4px;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transition: transform .25s;
}
.site-header .main-nav a:hover::after { transform: scaleX(1); } */
.site-header .icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  flex: none;
  margin: 0;
}
.site-header .search-icon {
  display: block;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.site-header .search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(48deg);
}
.site-header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0;
  flex: none;
}
.site-header .menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.site-header button { color: inherit; font: inherit; border: 0; background: none; cursor: pointer; }
.site-header :focus-visible { outline: 3px solid #f58200; outline-offset: 6px; }
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }

/* 搜索与移动导航共用 js/inner-navigation.js；不依赖首页脚本。 */
.inner-search {
  width: min(620px, calc(100% - 40px));
  max-height: calc(100dvh - 60px);
  padding: 40px;
  border: 1px solid #e9ebec;
  border-radius: 14px;
  color: #292c2b;
  box-shadow: 0 20px 90px #0002;
}
.inner-search::backdrop { background: #16324569; backdrop-filter: blur(5px); }
.inner-search h2 { font-size: 26px; margin: 0 0 20px; }
.inner-search-form { display: flex; align-items: stretch; gap: 12px; }
.inner-search-form input { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border: 1px solid #d9dfe1; border-radius: 5px; font: inherit; }
.inner-search-submit { min-width: 76px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 5px; background: #f58200; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.inner-search-submit:hover { background: #df7000; transform: translateY(-1px); }
.inner-search-submit:focus-visible { outline: 3px solid #f58200; outline-offset: 4px; }
.inner-search-close { position: absolute; top: 8px; right: 12px; font-size: 28px; }
.inner-search-results { margin-top: 18px; }
.inner-search-results a { display: block; padding: 8px 0; border-bottom: 1px solid #e9ebec; }
.inner-search-results a:hover { color: #f58200; }

@media (max-width: 1360px) {
  body .site-header { --header-height: 80px; }
  .site-header .brand { width: 160px; }
  .site-header .header-inner { gap: 16px; }
  .site-header .stock-code { display: none; }
  /* .site-header .main-nav { gap: 22px; }
  .site-header .main-nav a { font-size: 12px; } */
}
@media (max-width: 1050px) {
  body .site-header { --header-height: 76px; }
  .site-header .header-inner { width: calc(100% - 64px); gap: 10px; }
  .site-header .brand { width: 148px; }
  /* .site-header .main-nav { gap: 17px; }
  .site-header .main-nav a { font-size: 11px; } */
  .site-header .icon-button { width: 34px; }
}
@media (max-width: 760px) {
  body .site-header { --header-height: 70px; }
  .site-header .header-inner { width: calc(100% - 40px); gap: 10px; }
  .site-header .brand { width: 148px; }
  .site-header .search-toggle { margin-left: auto; }
  .site-header .menu-toggle { display: block; }
  /* .site-header .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px 24px 28px;
    background: #fff;
    color: #292c2b;
    box-shadow: 0 14px 18px #24394a0a;
    white-space: normal;
  } */
  .site-header.menu-open .main-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
  /* .site-header .main-nav a { font-size: 16px; padding: 12px 0; } */
  .site-header.menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .inner-search { padding: 32px 24px; }
}
