#mobile-gate {
  width: 100%;
  background:
    radial-gradient(circle at 80% 10%, #6868ac 0 18%, transparent 19%),
    radial-gradient(circle at 12% 88%, #f6e948 0 14%, transparent 15%),
    #4a5154;
  color: #fff;
}
.gate-box {
  width: min(520px, 100%);
  text-align: left;
}
.gate-box .mark {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
}
.gate-box .gate-title {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.gate-box p {
  color: #e7e7e7;
  margin-bottom: 12px;
}
.gate-tip {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: #f6e948;
  letter-spacing: 0.08em;
}

.themeNav {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 50;
}
.themeSwitch {
  width: 44px;
  height: 88px;
  border: 0;
  border-radius: 22px 0 0 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}
.themeSwitch:hover { color: var(--primary); }

.goTop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
html.dark .goTop { color: #1a1a1a; }

.header { background: var(--white); }

.baseNav {
  background: var(--base-nav);
  color: #fff;
  font-size: 0.9rem;
}
.baseNav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  gap: 16px;
}
.baseNav a,
.baseNav button,
.baseNav span {
  color: #fff;
  background: none;
  border: 0;
  padding: 0 8px;
  font-size: 0.9rem;
}
.baseNav a:hover,
.baseNav button:hover { color: var(--lemon); }
.baseNav .fs-btns { display: inline-flex; align-items: center; }
.baseNav .fs-btns button {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
}
.baseNav .fs-btns button.is-on,
.baseNav .fs-btns button:hover {
  background: var(--lemon);
  color: #1a1a1a;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}
.brand b {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.brand small {
  display: block;
  color: var(--gray);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.menu {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.menu a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  letter-spacing: 0.12em;
  position: relative;
}
.menu a:hover,
.menu a.is-on { color: var(--primary); }
.menu a.is-on::after,
.menu a:hover::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 3px;
  background: var(--primary);
  border-radius: 99px;
}

.search-panel {
  display: none;
  background: var(--page);
  border-top: 1px solid var(--line);
}
.search-panel.open { display: block; }
.search-panel form {
  display: flex;
  gap: 12px;
  padding: 16px 0 20px;
}
.search-panel input {
  flex: 1;
  height: 46px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: 1rem;
}

.ribbon {
  height: 10px;
  background: linear-gradient(110deg, var(--primary) 0 46%, var(--lemon) 46% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 55%);
}

.inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  padding: 8px 0 72px;
  align-items: start;
}
.leftMenu {
  position: sticky;
  top: 18px;
  padding: 8px 0 8px 8px;
}
.leftMenu h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.leftMenu a {
  display: block;
  padding: 10px 0 10px 16px;
  color: var(--gray);
  border-left: 3px solid transparent;
  border-radius: 0 18px 18px 0;
}
.leftMenu a:hover,
.leftMenu a.is-on {
  color: var(--primary);
  border-left-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.ft { margin-top: 24px; }
.ftTop {
  background: var(--ft);
  color: #fff;
  padding: 42px 0 36px;
}
.ftTop h4 {
  color: var(--lemon);
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.ftGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}
.ftTop a {
  display: block;
  color: #ececec;
  padding: 4px 0;
}
.ftTop a:hover { color: var(--lemon); }
.ftBtm {
  background: var(--white);
  padding: 28px 0 34px;
}
.ftBtm .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.ftBtm img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.ftBtm p { color: var(--gray); font-size: 0.92rem; }
.ftMeta {
  text-align: right;
  color: var(--gray);
  font-size: 0.92rem;
}
.ftMeta b { color: var(--ink); font-weight: 500; }

@media (max-width: 980px) {
  .inner { grid-template-columns: 1fr; }
  .leftMenu { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .leftMenu a { border-left: 0; border-radius: 999px; padding: 6px 14px; background: var(--white); }
  .ftGrid, .ftBtm .wrap { grid-template-columns: 1fr; }
  .ftMeta { text-align: left; }
  .menu { display: none; }
}