@charset "utf-8";

:root {
  --ink: #1f1f1f;
  --ink2: #4d4d4d;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: #e7e7e7;
  --sh: 0 4px 6px rgba(0, 0, 0, .05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--wash);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif JP", "Songti SC", Georgia, serif;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .01em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 0 18px;
}

/* ---------- 顶栏 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  font-family: "Noto Serif JP", "Songti SC", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .16em;
}

.mark:hover {
  text-decoration: none;
  opacity: .72;
}

.menu {
  margin-left: auto;
}

.menu > ol {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li {
  position: relative;
}

.menu > ol > li > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 16px;
  white-space: nowrap;
}

.menu > ol > li > a:hover {
  background: var(--wash);
  text-decoration: none;
}

.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  min-width: 190px;
  padding: 8px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .1);
}

.sub ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
}

.sub a:hover {
  background: var(--wash);
  text-decoration: none;
}

.menu li.has-sub:hover > .sub,
.menu li.has-sub:focus-within > .sub {
  display: block;
}

.burger {
  display: none;
  margin-left: auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.cta {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  white-space: nowrap;
}

.cta:hover {
  text-decoration: none;
  opacity: .85;
}

/* ---------- 主体网格 ---------- */

main {
  padding: 16px 0 40px;
}

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

.wrap > article {
  grid-column: 1 / span 3;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--sh);
  scroll-margin-top: 84px;
}

.wrap > article.hero {
  display: grid;
  place-items: center;
  min-height: 45vh;
  padding: 30px 22px;
  text-align: center;
  background: var(--paper);
  background-image: linear-gradient(165deg, #ffffff 0%, #fafafa 100%);
}

.hero-card {
  max-width: 640px;
}

.hero-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
}

.hero-ico svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: .02em;
}

.lede {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ink2);
  font-size: 17px;
}

.wrap > article h2 {
  margin-bottom: 2px;
  font-size: clamp(21px, 3vw, 26px);
}

.wrap > article h3 {
  margin: 20px 0 6px;
  font-size: 18px;
}

.wrap > article p {
  margin: 0 0 14px;
  color: var(--ink2);
}

.wrap > article p:last-child {
  margin-bottom: 0;
}

/* ---------- 侧栏 ---------- */

.side {
  grid-column: 4;
  grid-row: 1 / span 40;
  align-self: start;
  position: sticky;
  top: 84px;
  padding: 20px 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--sh);
}

.side h2 {
  font-size: 17px;
  letter-spacing: .1em;
}

.side ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink2);
  font-size: 16px;
}

.side a:hover {
  background: var(--wash);
  color: var(--ink);
  text-decoration: none;
}

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 32px;
  padding: 36px 16px 24px;
  background: var(--ink);
  color: var(--wash);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
}

.foot-name {
  margin: 0 0 14px;
  font-family: "Noto Serif JP", "Songti SC", Georgia, serif;
  font-size: 22px;
  letter-spacing: .16em;
}

.sub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 340px;
}

.sub-form input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.sub-form input::placeholder {
  color: rgba(255, 255, 255, .55);
}

.sub-form button {
  min-height: 44px;
  padding: 8px 20px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.sub-form button:hover {
  opacity: .82;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.foot-cols dl {
  margin: 0;
}

.foot-cols dt {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .58);
  font-size: 16px;
  letter-spacing: .1em;
}

.foot-cols dd {
  margin: 0;
  font-size: 16px;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 16px;
  opacity: .9;
}

.foot-cols a:hover {
  opacity: 1;
  text-decoration: underline;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1160px;
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
}

.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
}

/* ---------- 动效 ---------- */

.rv-on .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

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

@media (hover: hover) {
  .wrap > article:not(.hero):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .09);
  }

  .wrap > article:not(.hero) {
    transition: box-shadow .25s ease, transform .25s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* ---------- 窄屏 ---------- */

@media (max-width: 880px) {
  .burger {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .cta {
    margin-left: 0;
    padding: 8px 14px;
  }

  .menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 57px;
    display: none;
    margin: 0;
    max-height: calc(100vh - 57px);
    overflow: auto;
    padding: 8px 12px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .1);
  }

  .menu.open {
    display: block;
  }

  .menu > ol {
    flex-direction: column;
    gap: 0;
  }

  .menu > ol > li > a {
    padding: 10px 8px;
  }

  .sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 4px 16px;
    box-shadow: none;
  }

  main {
    padding-top: 12px;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0 12px;
  }

  .wrap > article,
  .wrap > article.hero,
  .side {
    grid-column: 1;
  }

  .wrap > article {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .side {
    grid-row: auto;
    position: static;
    order: 9;
    border-radius: 14px;
  }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .mark {
    font-size: 18px;
    letter-spacing: .12em;
  }
}

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