:root {
  --ink: #111111;
  --y: #F5C518;
  --rice: #F7F4EC;
  --edge: 3px solid #111111;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--rice);
  color: var(--ink);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0 0 14px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

/* 品牌行 */
.brandbar {
  background: var(--ink);
  color: var(--rice);
  border-bottom: var(--edge);
}

.brandbar-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--y);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .08em;
}

.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; }

.find {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--y);
  background: var(--ink);
  min-height: 44px;
}

.find input {
  width: 140px;
  border: 0;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--rice);
  font: inherit;
  font-size: 16px;
}

.find input::placeholder { color: #b9b3a4; }

.find button {
  border: 0;
  border-left: 2px solid var(--y);
  background: var(--y);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  width: 44px;
  min-height: 42px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.find button:hover { background: var(--rice); }

/* 菜单行 */
.menu-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--y);
  border-bottom: var(--edge);
}

.menu ul {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 8px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  min-height: 46px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  transition: background .16s ease, color .16s ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] {
  background: var(--ink);
  color: var(--y);
}

.num {
  font-size: 11px;
  letter-spacing: .1em;
  opacity: .75;
}

/* 主区 */
.stage {
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 16px 54px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
}

/* 大图 */
.hero {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  min-height: 45vh;
  background: var(--ink);
  border: var(--edge);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  overflow: clip;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .52);
}

.hero-cap {
  position: relative;
  z-index: 2;
  padding: 18px 18px 20px;
  text-align: right;
  color: var(--rice);
  max-width: 100%;
}

.hero h1 {
  display: inline-block;
  font-size: clamp(24px, 5vw, 46px);
  letter-spacing: .02em;
  color: var(--y);
  background: rgba(17, 17, 17, .55);
  padding: 2px 8px;
}

.hero-sub {
  margin: 10px 0 0;
  margin-left: auto;
  max-width: 34ch;
  font-size: 15px;
  color: var(--rice);
}

/* 左侧栏 */
.side {
  position: sticky;
  top: 76px;
  background: var(--y);
  border: var(--edge);
  align-self: start;
}

.side h2 {
  font-size: 14px;
  letter-spacing: .16em;
  padding: 11px 12px;
}

.side hr {
  border: 0;
  border-top: 3px solid var(--ink);
  margin: 0;
}

.side-list,
.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side li + li { border-top: 2px solid rgba(17, 17, 17, .22); }

.side a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background .16s ease, color .16s ease;
}

.side a:hover,
.side a:focus-visible {
  background: var(--ink);
  color: var(--y);
}

/* 正文 */
.body {
  min-width: 0;
  counter-reset: sec;
}

.body > section {
  border-top: var(--edge);
  padding: 22px 0 30px;
  scroll-margin-top: 96px;
}

.body > section:first-child { border-top: 0; padding-top: 4px; }

.body h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(20px, 3.2vw, 27px);
}

.body > section h2::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  flex: 0 0 auto;
  background: var(--y);
  border: 2px solid var(--ink);
  padding: 0 6px;
  font-size: 13px;
  letter-spacing: .08em;
}

.body h3 {
  font-size: 18px;
  margin: 20px 0 8px;
  padding-left: 10px;
  border-left: 6px solid var(--y);
}

.body hr {
  border: 0;
  border-top: 3px solid var(--ink);
  margin: 12px 0 18px;
}

.body p { max-width: 64ch; }

.body ul,
.body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.body li { margin-bottom: 7px; }

.body a {
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--y);
}

.body a:hover { background: var(--y); }

.body img {
  margin: 18px 0;
  border: var(--edge);
}

.body blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--y);
  border-left: 8px solid var(--ink);
}

.body blockquote p:last-child { margin-bottom: 0; }

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.body th,
.body td {
  border: 2px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.body th { background: var(--y); }

/* 页脚 */
.foot {
  background: var(--ink);
  color: var(--rice);
  border-top: 6px solid var(--y);
}

.foot-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 16px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.foot h2 {
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--y);
}

.foot hr {
  border: 0;
  border-top: 2px solid rgba(247, 244, 236, .35);
  margin: 8px 0 10px;
}

.foot address {
  font-style: normal;
  font-weight: 700;
  color: var(--rice);
  line-height: 1.6;
  word-break: break-word;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 244, 236, .22);
  transition: color .16s ease;
}

.foot li a:hover,
.foot li a:focus-visible { color: var(--y); }

.foot-base {
  border-top: 1px solid rgba(247, 244, 236, .25);
  padding: 13px 16px;
  text-align: center;
  font-size: 13px;
}

.foot-base p { margin: 0; }

/* 滚动揭示 */
.js-on .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}

.js-on .rv.in {
  opacity: 1;
  transform: none;
}

/* 窄屏 */
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .side { position: static; }
  .hero { min-height: 42vh; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .brandbar-in { padding: 8px 12px; }
  .brand { font-size: 18px; }
  .find { flex: 1 1 100%; }
  .find input { flex: 1 1 auto; width: auto; min-width: 0; }
  .menu ul { padding: 0; }
  .menu a { font-size: 14px; padding: 9px 10px; }
  .stage { padding-left: 12px; padding-right: 12px; }
  .hero-cap { padding: 12px; }
  .hero-sub { font-size: 14px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-on .rv { opacity: 1; transform: none; transition: none; }
  .menu a, .side a, .find button, .foot li a { transition: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
