@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --ink: #000000;
  --wash: #e9f6ff;
  --white: #ffffff;
  --line: 3px solid #000000;
  --shadow: 5px 5px 0 #000000;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--wash);
  background-image: none;
  color: var(--ink);
  font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--red);
  border: var(--line);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s linear;
}

.skip:focus {
  top: 12px;
}

/* 页头：品牌独占一行 + 菜单行 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: var(--line);
  background: var(--blue);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.brand-name {
  font-size: 20px;
  line-height: 1.3;
  border-bottom: 3px solid var(--ink);
}

.menu ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.menu li {
  flex: 0 0 auto;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--blue);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* 主体：正文在左，侧栏在右 */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}

.sheet {
  min-width: 0;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}

/* 首屏 */
.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 100vh;
  padding: 30px 22px 24px;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 54px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
  border-bottom: 8px solid var(--red);
  display: inline-block;
  padding-bottom: 10px;
}

.hero-media {
  flex: 1 1 auto;
  min-height: 200px;
  overflow: hidden;
  background: var(--blue);
  border: var(--line);
  border-radius: var(--radius);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: center top;
}

/* 正文区块 */
.sheet article {
  padding: 28px 22px;
  border-top: var(--line);
  scroll-margin-top: 148px;
}

.sheet article h2,
.rail-h {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.015em;
}

.sheet article h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  background: var(--wash);
  display: inline-block;
  padding: 2px 8px;
  border-left: 6px solid var(--blue);
}

.sheet article p {
  margin: 0 0 14px;
}

.sheet article ul,
.sheet article ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.sheet article li {
  margin-bottom: 8px;
}

.sheet article li::marker {
  color: var(--red);
  font-weight: 700;
}

.sheet article a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.sheet article strong {
  background: var(--blue);
  padding: 0 4px;
  border-radius: 2px;
}

.sheet article img {
  max-width: 100%;
  height: auto;
  border: var(--line);
  border-radius: var(--radius);
}

.sheet article blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--wash);
  border: var(--line);
  border-radius: var(--radius);
}

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

.subtitle {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 8px solid var(--red);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

/* 右侧栏 */
.rail {
  position: sticky;
  top: 148px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 18px 16px;
}

.rail-h {
  font-size: 18px;
  margin-bottom: 8px;
}

.rail .subtitle {
  font-size: 16px;
  border-left-width: 6px;
  border-left-color: var(--blue);
  padding-left: 10px;
  margin-bottom: 14px;
}

.rail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--wash);
  border: var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: var(--red);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

/* 页脚 */
.site-foot {
  margin-top: 24px;
  background: var(--ink);
  color: var(--white);
  border-top: 6px solid var(--blue);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px;
}

.foot-cta {
  background: var(--blue);
  color: var(--ink);
  border: 3px solid var(--white);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--red);
  padding: 18px;
}

.cta-big {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 18px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--red);
  color: var(--white);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.foot-addr {
  font-style: normal;
  border-left: 6px solid var(--red);
  padding-left: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.addr-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
}

.addr-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.foot-bar {
  border-top: 2px solid var(--blue);
  padding: 14px 16px 20px;
  text-align: center;
}

.foot-copy {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 16px;
}

.foot-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #d8ecff;
}

/* 动效 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
  }

  .reveal.vis {
    opacity: 1;
    transform: none;
  }
}

/* 窄屏 */
@media (max-width: 860px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 12px 8px;
  }

  .hero {
    min-height: auto;
    padding: 24px 16px 20px;
    gap: 18px;
  }

  .hero-media {
    min-height: 210px;
  }

  .sheet article {
    padding: 24px 16px;
    scroll-margin-top: 132px;
  }

  .rail {
    position: static;
  }

  .sheet {
    box-shadow: 5px 5px 0 var(--ink);
  }

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

  .menu a,
  .rail-list a,
  .foot-links a {
    font-size: 16px;
  }
}

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