@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;900&display=swap');

:root {
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --ink: #171f26;
  --ink-soft: #47555f;
  --surf-a: #f4f9fd;
  --surf-b: #e2edf7;
  --surf-c: #f8edf2;
  --lift: -6px -6px 16px rgba(255, 255, 255, 0.92), 6px 6px 18px rgba(23, 31, 38, 0.13);
  --lift-sm: -3px -3px 8px rgba(255, 255, 255, 0.9), 3px 3px 9px rgba(23, 31, 38, 0.11);
  --sink: inset -4px -4px 10px rgba(255, 255, 255, 0.92), inset 4px 4px 10px rgba(23, 31, 38, 0.12);
  --sink-sm: inset -2px -2px 6px rgba(255, 255, 255, 0.9), inset 2px 2px 6px rgba(23, 31, 38, 0.1);
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
}

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

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

body {
  margin: 0;
  padding: 0 0 132px;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 88% -8%, #fbeef4 0%, rgba(251, 238, 244, 0) 62%),
    radial-gradient(760px 520px at 4% 6%, #e3f0fb 0%, rgba(227, 240, 251, 0) 60%),
    linear-gradient(168deg, #eef5fc 0%, #f4f1f6 48%, #f7eef3 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #7cb0dc;
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- top brand strip ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 2px 10px;
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  font-weight: 900;
  font-size: 1.15rem;
  background: linear-gradient(145deg, var(--surf-a), var(--surf-b));
  box-shadow: var(--lift-sm);
  color: var(--ink);
}

.topbar-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
}

.topbar-tag {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--surf-a), var(--surf-c));
  box-shadow: var(--sink-sm);
}

/* ---------- layout grid ---------- */

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 26px;
  align-items: start;
  padding: 22px 0 28px;
}

.body {
  min-width: 0;
}

.body > div {
  scroll-margin-top: 26px;
  margin-bottom: 24px;
  padding: 28px 26px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--surf-a), var(--surf-b));
  box-shadow: var(--lift);
}

.body > div:last-child {
  margin-bottom: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 70vh;
  padding: 44px 30px 86px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #f6fbff, #dde9f4);
  box-shadow: var(--lift);
  margin-bottom: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -76px;
  height: 132px;
  border-radius: 22px;
  background: linear-gradient(100deg, var(--ice), var(--rose));
  transform: rotate(-3.2deg);
  box-shadow: var(--lift);
  opacity: 0.92;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34ch;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.4vw, 3.5rem);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.hero-lead {
  margin: 16px 0 22px;
  font-size: 1.03rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-jump {
  margin: 0;
}

.hero-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(145deg, #f8fbff, #dde9f4);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero-jump a:hover {
  transform: translateY(-2px);
}

.hero-jump a:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

.hero-art {
  position: relative;
  z-index: 1;
  width: 156px;
  height: 156px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fcff, #dfeaf5);
  box-shadow: var(--lift), var(--sink);
  will-change: transform;
}

.hero-mark {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ---------- content typography ---------- */

.body h2 {
  font-size: clamp(1.32rem, 2.3vw, 1.7rem);
  margin-bottom: 6px;
}

.body h3 {
  font-size: 1.14rem;
  margin: 22px 0 8px;
}

.body p {
  color: var(--ink-soft);
  line-height: 1.85;
}

.body p strong,
.body li strong {
  color: var(--ink);
}

hr {
  border: 0;
  height: 7px;
  border-radius: 999px;
  margin: 12px 0 18px;
  background: linear-gradient(90deg, var(--ice), var(--rose));
  box-shadow: var(--sink-sm);
}

.body ul,
.body ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
  color: var(--ink-soft);
  line-height: 1.8;
}

.body li {
  margin: 0.35em 0;
}

.body a {
  color: #1a2b38;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #9ec4e2;
  text-underline-offset: 4px;
}

.body a:hover {
  text-decoration-color: var(--rose);
  background: #f7f0f4;
}

.body blockquote {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, #e2edf7, #f2f8fd);
  box-shadow: var(--sink);
  color: var(--ink);
}

.body img {
  border-radius: var(--r-md);
  box-shadow: var(--lift-sm);
  margin: 14px 0;
}

time {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: linear-gradient(145deg, #e4eef8, #f4f9fd);
  box-shadow: var(--sink-sm);
}

/* ---------- right rail ---------- */

.rail {
  position: sticky;
  top: 22px;
  padding: 18px 16px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #f7fbff, #e4eef7);
  box-shadow: var(--lift);
}

.rail h2 {
  font-size: 1rem;
  letter-spacing: 0.26em;
  font-weight: 700;
}

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

.rail-list li {
  margin: 6px 0;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--ink-soft);
  transition: transform 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.rail-list a:hover {
  color: var(--ink);
  transform: translateY(-1px);
  background: linear-gradient(145deg, #fbfdff, #e7f1fa);
  box-shadow: var(--lift-sm);
}

.rail-list a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--sink);
  background: linear-gradient(145deg, #e6f0f9, #f6eef3);
}

/* ---------- footer ---------- */

.foot {
  margin: 6px 0 34px;
}

.foot-cta {
  display: grid;
  place-items: center;
  padding: 42px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, var(--surf-c), #eedbe5);
  box-shadow: var(--lift);
}

.cta-link {
  font-size: clamp(1.25rem, 3.6vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.3em;
  padding: 12px 26px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, #fdf7fa, #ecdae4);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.cta-link:hover {
  transform: translateY(-2px);
}

.cta-link:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 4px 0;
}

.foot-id address {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.foot-id small {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  color: var(--ink-soft);
  background: linear-gradient(145deg, #f8fbff, #e6eff8);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, color 150ms ease;
}

.foot-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.foot-links a:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

/* ---------- bottom dock ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 60;
  width: min(1080px, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #f6fbfe, #e0ebf5);
  box-shadow: -6px -6px 16px rgba(255, 255, 255, 0.92), 6px 6px 18px rgba(23, 31, 38, 0.14);
}

.dock-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.dock-search input {
  width: 148px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #e5eff8;
  box-shadow: var(--sink-sm);
  -webkit-appearance: none;
  appearance: none;
}

.dock-search input::placeholder {
  color: #6c7d8a;
}

.dock-search button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: linear-gradient(145deg, #fbfdff, #e0ebf5);
  box-shadow: var(--lift-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.dock-search button:active {
  transform: scale(0.96);
  box-shadow: var(--sink);
}

.dock-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.dock-side {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 150ms ease, transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.dock-nav a:hover {
  color: var(--ink);
  transform: translateY(-1px);
  background: linear-gradient(145deg, #fbfdff, #e4eef8);
  box-shadow: var(--lift-sm);
}

.dock-nav a:active {
  transform: scale(0.97);
  box-shadow: var(--sink);
}

.dock-brand {
  font-weight: 900 !important;
  letter-spacing: 0.14em;
  padding: 0 14px !important;
  color: var(--ink) !important;
  background: linear-gradient(145deg, #fdf7fa, #ecdfe7) !important;
  box-shadow: var(--lift-sm) !important;
}

.dock-nav a[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--sink);
  background: linear-gradient(145deg, #e3eef8, #f7eef3);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .rail {
    position: static;
    order: 2;
  }

  .body {
    order: 1;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rail-list li {
    margin: 0;
  }

  .rail-list a {
    min-height: 44px;
    background: linear-gradient(145deg, #fbfdff, #e7f1fa);
    box-shadow: var(--lift-sm);
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 158px;
    font-size: 16px;
  }

  .dock {
    width: calc(100% - 12px);
    bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--r-md);
  }

  .dock-nav {
    order: 1;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 2px;
  }

  .dock-nav::-webkit-scrollbar {
    display: none;
  }

  .dock-brand {
    order: -1;
    position: sticky;
    left: 0;
    z-index: 2;
  }

  .dock-search {
    order: 2;
    width: 100%;
  }

  .dock-search input {
    flex: 1 1 auto;
    width: auto;
  }

  .dock-search button {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 68vh;
    padding: 34px 20px 74px;
    gap: 14px;
  }

  .hero-art {
    width: 96px;
    height: 96px;
  }

  .hero-mark {
    font-size: 2rem;
  }

  .body > div {
    padding: 22px 18px 24px;
  }

  .topbar {
    padding: 16px 2px 6px;
  }
}

@media (max-width: 420px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .hero-art {
    width: 78px;
    height: 78px;
  }

  .hero-mark {
    font-size: 1.6rem;
  }

  .topbar-tag {
    display: none;
  }
}

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

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

  .hero-art {
    transform: none !important;
  }
}

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