@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root {
  --ink: #171f26;
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --bg-a: #f4f9fd;
  --bg-b: #faeff4;
  --hl: #ffffff;
  --soft-d: rgba(23, 31, 38, 0.13);
  --radius: 14px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Patrick Hand", "Kalam", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background: linear-gradient(155deg, var(--bg-a), var(--bg-b) 58%, #eef7fd);
  background-attachment: fixed;
}

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

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

a:active {
  transform: scale(0.98);
}

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

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(145deg, #f9fcff, #f4e6ee);
  box-shadow: -4px -4px 9px var(--hl), 4px 4px 10px var(--soft-d);
}

.mark.sm {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

/* ---------- 头部：品牌独占一行 + 有序菜单行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px clamp(12px, 4vw, 42px) 8px;
  background: linear-gradient(180deg, rgba(247, 251, 254, 0.95), rgba(250, 240, 246, 0.93));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(23, 31, 38, 0.08);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 6px 2px;
  text-decoration: none;
  font-family: "Kalam", "Patrick Hand", system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: 0.03em;
}

.brand-name {
  border-bottom: 2px solid transparent;
}

.brand:hover .brand-name {
  border-bottom-color: var(--rose);
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  background: linear-gradient(145deg, #f8fcff, #f6e8f0);
  box-shadow: -5px -5px 12px var(--hl), 5px 5px 13px var(--soft-d);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.contact:hover {
  box-shadow: -3px -3px 8px var(--hl), 3px 3px 9px var(--soft-d);
}

.contact:active {
  box-shadow: inset -3px -3px 8px var(--hl), inset 3px 3px 9px var(--soft-d);
}

.menu {
  margin-top: 4px;
}

.menu ol {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu ol::-webkit-scrollbar {
  display: none;
}

.menu li {
  flex: 0 0 auto;
}

.menu a {
  display: inline-block;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.menu a:hover {
  box-shadow: -4px -4px 9px var(--hl), 4px 4px 10px var(--soft-d);
  transform: translateY(-1px);
}

.menu a[aria-current] {
  box-shadow: inset -3px -3px 7px var(--hl), inset 3px 3px 8px rgba(23, 31, 38, 0.12);
}

/* ---------- 主栅格：左侧分节条 + 右侧正文 ---------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px) clamp(13px, 4vw, 30px) 44px;
}

.page {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  column-gap: clamp(20px, 3.2vw, 42px);
  align-items: start;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  min-height: min(90svh, 840px);
  padding: clamp(30px, 5vw, 62px) clamp(4px, 2vw, 24px);
  grid-column: 1 / -1;
  border-bottom: 2px solid var(--ice);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

h1 {
  margin: 0 0 16px;
  font-family: "Kalam", "Patrick Hand", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(29px, 5vw, 52px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-desc {
  margin: 0 auto 26px;
  max-width: 34ch;
  color: rgba(23, 31, 38, 0.74);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 34px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 17px;
  background: linear-gradient(145deg, #f9fcff, #f7e9f1);
  box-shadow: -6px -6px 15px var(--hl), 6px 6px 17px var(--soft-d);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: -8px -8px 18px var(--hl), 8px 8px 20px var(--soft-d);
}

.cta:active {
  transform: scale(0.97);
  box-shadow: inset -4px -4px 10px var(--hl), inset 4px 4px 11px var(--soft-d);
}

.hero-art {
  position: relative;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: -10px -10px 24px var(--hl), 12px 12px 28px rgba(23, 31, 38, 0.16);
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art.is-blob {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, var(--rose) 46%, var(--ice) 100%);
  box-shadow: inset -12px -12px 30px var(--hl), inset 12px 12px 30px rgba(23, 31, 38, 0.12);
}

.hero-art.is-blob .mark {
  width: 92px;
  height: 92px;
  font-size: 34px;
}

.blob-dot {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #dceaf6);
  box-shadow: -6px -6px 16px var(--hl), 6px 6px 18px rgba(23, 31, 38, 0.14);
}

.bg-word {
  position: absolute;
  top: 2%;
  right: -3%;
  z-index: 0;
  margin: 0;
  font-family: "Kalam", system-ui, sans-serif;
  font-size: clamp(56px, 15vw, 178px);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(23, 31, 38, 0.11);
  pointer-events: none;
}

/* ---------- 左侧分节条 ---------- */
.rail {
  grid-column: 1;
  grid-row: 2 / span 9;
  position: sticky;
  top: 138px;
  padding: 16px 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f7fbfe, #f8eef4);
  box-shadow: -7px -7px 16px var(--hl), 7px 7px 18px var(--soft-d);
}

.rail-title {
  margin: 0 0 9px;
  font-family: "Kalam", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(23, 31, 38, 0.62);
}

.rail-title span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--rose);
}

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

.rail-list a {
  display: block;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
  transition: box-shadow 150ms ease;
}

.rail-list a:hover {
  background: linear-gradient(145deg, #fcfeff, #f4e7ef);
  box-shadow: inset -3px -3px 7px var(--hl), inset 3px 3px 8px rgba(23, 31, 38, 0.1);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 19px;
  background: linear-gradient(145deg, #fbfdff, #f5e8f0);
  box-shadow: -5px -5px 12px var(--hl), 5px 5px 13px var(--soft-d);
}

.rail-top:active {
  box-shadow: inset -3px -3px 8px var(--hl), inset 3px 3px 9px var(--soft-d);
}

/* ---------- 正文区块 ---------- */
.page > section {
  grid-column: 2;
  padding: clamp(26px, 3.6vw, 42px) 0 clamp(28px, 3.8vw, 44px);
  border-bottom: 2px solid var(--ice);
  scroll-margin-top: 148px;
}

.page > section:nth-of-type(even) {
  border-bottom-color: var(--rose);
}

.page > section:last-child {
  border-bottom-width: 3px;
  border-bottom-color: var(--ink);
}

.page h2 {
  margin: 0 0 14px;
  font-family: "Kalam", "Patrick Hand", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(22px, 2.9vw, 30px);
  line-height: 1.38;
  text-wrap: balance;
}

.page h2 span {
  text-decoration: underline;
  text-decoration-color: rgba(245, 224, 232, 1);
  text-decoration-thickness: 7px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
}

.page h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.page h3 span {
  text-decoration: underline;
  text-decoration-color: rgba(200, 224, 244, 1);
  text-decoration-thickness: 6px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}

.page p,
.page li {
  max-width: 68ch;
}

.page p {
  margin: 0 0 1.05em;
}

.page ul,
.page ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

.page li {
  margin-bottom: 0.5em;
}

.page li::marker {
  color: rgba(23, 31, 38, 0.45);
}

.page blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f8fcff, #f9eff5);
  box-shadow: inset -4px -4px 10px var(--hl), inset 4px 4px 11px rgba(23, 31, 38, 0.09);
}

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

.page a {
  text-decoration: underline;
  text-decoration-color: rgba(200, 224, 244, 1);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.page a:hover {
  text-decoration-color: var(--rose);
  text-decoration-thickness: 4px;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 16px;
}

.page th,
.page td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 2px solid rgba(200, 224, 244, 0.85);
}

.page th {
  font-weight: 700;
  background: rgba(245, 224, 232, 0.35);
}

.page img {
  border-radius: var(--radius);
  box-shadow: -6px -6px 15px var(--hl), 6px 6px 16px var(--soft-d);
}

.page code {
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.94em;
  background: rgba(200, 224, 244, 0.42);
}

/* ---------- 页脚 ---------- */
.bottom {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 22px clamp(13px, 4vw, 30px) 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 -9px 22px rgba(23, 31, 38, 0.06);
}

.bottom address {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-style: normal;
  font-size: 16px;
}

.addr-brand {
  font-family: "Kalam", system-ui, sans-serif;
  font-size: 18px;
}

.addr-host {
  color: rgba(23, 31, 38, 0.58);
  font-size: 15px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  text-decoration: none;
  font-size: 16px;
  transition: box-shadow 150ms ease;
}

.foot-links a:hover {
  box-shadow: -4px -4px 9px var(--hl), 4px 4px 10px var(--soft-d);
}

.copy {
  margin: 0 0 0 auto;
  font-size: 15px;
  color: rgba(23, 31, 38, 0.58);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
  }

  .page > section {
    grid-column: 1;
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin: 10px 0 6px;
    padding: 12px;
  }

  .rail-list {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .rail-list::-webkit-scrollbar {
    display: none;
  }

  .rail-list li {
    flex: 0 0 auto;
  }

  .rail-list a {
    white-space: nowrap;
  }

  .rail-top {
    width: 42px;
    height: 42px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 26px 2px 30px;
    gap: 26px;
  }

  .hero-art {
    max-height: 250px;
  }

  .bg-word {
    font-size: clamp(48px, 22vw, 110px);
    top: 0;
    right: -6%;
  }

  .page > section {
    scroll-margin-top: 120px;
  }

  .copy {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .top {
    padding: 8px 12px 6px;
  }

  .brand {
    font-size: 19px;
  }

  .contact {
    padding: 9px 16px;
    font-size: 15px;
  }

  .menu a {
    padding: 10px 13px;
    font-size: 15.5px;
  }

  .bottom {
    gap: 10px 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

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