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

:root {
  --paper: #ffffff;
  --wash: #f5f5f5;
  --ink: #1f1f1f;
  --mute: #6b6b6b;
  --line: #e6e6e6;
  --r: 10px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 10px 26px rgba(0, 0, 0, 0.09);
  --dock-h: 68px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: calc(var(--dock-h) + 40px);
  background: var(--wash);
  color: var(--ink);
  font-family: 'Exo', 'Roboto Mono', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h2 { font-size: 22px; }
h3 { font-size: 17px; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 90;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip:focus { top: 12px; }

/* 底栏 --------------------------------------------------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.07);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 6px;
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ink);
}

.mark-text {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 15px;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.dock-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta,
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.cta {
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
}
.cta:hover { background: #333; transform: translateY(-1px); }

.menu-btn {
  border: 0;
  background: var(--wash);
  color: var(--ink);
}
.menu-btn:hover { background: #ebebeb; }

/* 导航面板 ------------------------------------------------ */

.dock-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dock-nav.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.grp { display: flex; flex-direction: column; gap: 2px; margin: 0; }

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.nav-link:hover { background: var(--wash); }

/* 主体 ---------------------------------------------------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 16px 8px;
}

.doc { display: grid; gap: 16px; min-width: 0; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  place-items: center;
  padding: 56px 20px;
  border-radius: var(--r) var(--r) 36px 36px;
  background: var(--ink);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.1);
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.9));
}

.hero-flat { background: var(--paper); }
.hero-flat::after { background: none; }

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 22em;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 6.6vw, 54px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
  animation: rise 0.6s both;
}

.hero-desc {
  margin: 0;
  max-width: 30em;
  margin-inline: auto;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.65;
  animation: rise 0.6s 0.08s both;
}

.body-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.body-copy > div {
  background: var(--paper);
  border-radius: var(--r);
  padding: 22px 18px;
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
  min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: rise 0.5s both;
}

.body-copy > div:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lift);
}

.body-copy > div:nth-child(1) { animation-delay: 0.05s; }
.body-copy > div:nth-child(2) { animation-delay: 0.1s; }
.body-copy > div:nth-child(3) { animation-delay: 0.15s; }
.body-copy > div:nth-child(4) { animation-delay: 0.2s; }
.body-copy > div:nth-child(5) { animation-delay: 0.25s; }
.body-copy > div:nth-child(6) { animation-delay: 0.3s; }
.body-copy > div:nth-child(7) { animation-delay: 0.35s; }

.body-copy h2 { margin-top: 0; font-size: 21px; }
.body-copy h3 { margin-top: 1.2em; }
.body-copy p { color: #2b2b2b; }
.body-copy ul,
.body-copy ol { padding-left: 1.2em; margin: 0 0 1em; }
.body-copy ul { list-style: square; }
.body-copy li { margin-bottom: 0.4em; }
.body-copy blockquote {
  margin: 1.1em 0;
  padding: 12px 14px;
  background: var(--wash);
  border-radius: 8px;
  color: #343434;
}
.body-copy blockquote p:last-child { margin-bottom: 0; }
.body-copy a { text-decoration: underline; text-underline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

.rail {
  background: var(--paper);
  border-radius: var(--r);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.rail h2 { margin: 0 0 4px; font-size: 19px; }

.subtitle {
  margin: 0 0 14px;
  color: var(--mute);
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.rail-list { display: grid; gap: 2px; margin-bottom: 16px; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.rail-list a:hover { background: var(--wash); padding-left: 16px; }

.to-top {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}
.to-top:hover { background: #333; }

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

.foot {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 26px 16px 10px;
}

.foot-head {
  background: var(--paper);
  border-radius: var(--r);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.foot-brand {
  margin: 0;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.foot-host {
  margin: 4px 0 0;
  color: var(--mute);
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  word-break: break-all;
}

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

.foot-col {
  background: var(--paper);
  border-radius: var(--r);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.foot-col h3 {
  margin: 0 0 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--mute);
}

.foot-col ul { display: grid; gap: 2px; }

.foot-col li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  text-decoration: none;
  font-size: 16px;
}
.foot-col li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot-col address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-all;
}

.sub { display: flex; gap: 8px; }

.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--wash);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.sub input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

.sub button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}
.sub button:hover { background: #333; }

.foot-base {
  margin-top: 14px;
  padding: 14px 4px;
  text-align: center;
  color: var(--mute);
  font-size: 14px;
}
.foot-base p { margin: 0; }

/* 桌面 ---------------------------------------------------- */

@media (min-width: 760px) {
  .body-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .body-copy > div:nth-child(3n + 1) { grid-column: span 2; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .menu-btn { display: none; }

  .dock-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin: 0 0 0 14px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .grp { flex-direction: row; gap: 2px; }

  .dock-nav::after {
    content: '更多';
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--mute);
    font-size: 15px;
  }

  .grp-more {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: calc(100% + 8px);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    background: var(--paper);
    border-radius: var(--r);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .dock-nav:hover .grp-more,
  .dock-nav.open .grp-more {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (min-width: 980px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) 288px;
    align-items: start;
    padding-top: 22px;
  }
  .rail { position: sticky; top: 20px; }
  .hero { min-height: 45vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero-img { transform: none; }
  .body-copy > div:hover { transform: none; }
}

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