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

:root {
  --ink: #172623;
  --teal: #5cc6b0;
  --sand: #d4c4a8;
  --clay: #c67b5c;
  --linen: #f2ebdf;
  --paper: #fbf7f1;
  --line: rgba(23, 38, 35, 0.16);
  --mono: 'Share Tech Mono', 'Fira Code', ui-monospace, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --rad: 28px;
  --soft: 0 16px 38px rgba(58, 44, 30, 0.14);
  --glass: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(92, 198, 176, 0.32), transparent 62%),
    radial-gradient(760px 560px at 2% 98%, rgba(198, 123, 92, 0.22), transparent 60%),
    linear-gradient(180deg, var(--linen), var(--paper) 44%, #eee4d5);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.45'/%3E%3C/svg%3E");
}

img { max-width: 100%; }

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

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.015em;
  margin: 0;
}

hr {
  border: 0;
  height: 2px;
  width: 62px;
  margin: 0.6rem 0 1.1rem;
  background: linear-gradient(90deg, var(--teal), rgba(92, 198, 176, 0));
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- 左栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 20px 22px;
  background: linear-gradient(185deg, #f4ede1, #e9dfcd 62%, #e1d6c2);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -1px;
  width: 7px;
  height: calc(100% + 12px);
  background: linear-gradient(180deg, var(--teal), rgba(212, 196, 168, 0.9) 55%, var(--clay));
  transform: skewY(-2.4deg);
  transform-origin: top center;
}

.mark {
  display: flex;
  align-items: center;
  min-height: 46px;
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.mark-t { display: block; }

.logoimg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
}

.menu { display: flex; flex-direction: column; gap: 8px; }

.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  color: rgba(23, 38, 35, 0.66);
}

.menu summary::-webkit-details-marker { display: none; }

.bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.menu-panel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 9px;
  border-radius: 13px;
  font-size: 0.97rem;
  line-height: 1.35;
  color: rgba(23, 38, 35, 0.88);
  transition: background 0.28s ease-out, transform 0.28s ease-out, color 0.28s ease-out;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  transform: translateX(5px);
}

.no {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--clay);
  min-width: 21px;
  letter-spacing: 0.04em;
}

/* ---------- 右半区 ---------- */
.pane {
  position: relative;
  z-index: 2;
  margin-left: 224px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.tick {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(23, 38, 35, 0.62);
  white-space: nowrap;
}

.band {
  flex: 1;
  height: 11px;
  border-radius: 3px;
  transform: skewX(-34deg);
  background: linear-gradient(90deg, var(--teal), var(--sand) 52%, rgba(198, 123, 92, 0));
}

main { display: block; flex: 1 0 auto; }

.wrap {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 0 32px;
  align-items: start;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 30px 34px;
}

.wrap > section { grid-column: 2; }

/* ---------- 侧栏 ---------- */
.side {
  grid-column: 1;
  grid-row: 1 / span 40;
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 20px 16px 18px;
  border-radius: var(--rad);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

.side-t {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.91rem;
  line-height: 1.4;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 3px 2px;
  border-bottom: 1px dotted rgba(23, 38, 35, 0.18);
  color: rgba(23, 38, 35, 0.85);
  transition: color 0.24s ease-out, padding-left 0.24s ease-out;
}

.side-list li:last-child a { border-bottom: 0; }

.side-list a:hover,
.side-list a:focus-visible {
  color: #0d5f52;
  padding-left: 5px;
}

.side-list .no { font-size: 0.7rem; }

/* ---------- 首屏 ---------- */
.wrap > .hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 52px 0 44px;
  border-top: 0;
  overflow: hidden;
}

.wrap > .hero::before {
  content: '';
  position: absolute;
  left: -40px;
  right: -40px;
  top: 26%;
  height: 132px;
  z-index: 0;
  border-radius: 5px;
  transform: skewY(-5deg);
  background: linear-gradient(90deg, rgba(92, 198, 176, 0.34), rgba(212, 196, 168, 0.5) 60%, rgba(198, 123, 92, 0.16));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-copy > *:not(.collage) { max-width: 58%; }

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.16;
  animation: rise 0.82s ease-out backwards;
}

.lead {
  margin: 16px 0 24px;
  font-size: 1.05rem;
  color: rgba(23, 38, 35, 0.8);
  animation: rise 0.82s 0.09s ease-out backwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  box-shadow: var(--soft);
  animation: rise 0.82s 0.16s ease-out backwards;
  transition: transform 0.24s ease-out, background 0.24s ease-out;
}

.hero-cta:hover { transform: translateY(-2px); background: #0d1a18; }

.collage {
  position: absolute;
  right: -6px;
  top: -8px;
  width: 40%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.collage .shot {
  position: absolute;
  display: block;
  width: 74%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px 30px 20px 34px;
  border: 6px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 44px rgba(58, 44, 30, 0.24);
  animation: rise 0.9s 0.2s ease-out backwards;
}

.collage .shot-1 { top: 0; right: 0; transform: rotate(3.6deg); }
.collage .shot-2 { top: 40%; left: 0; width: 62%; transform: rotate(-4.4deg); }

/* ---------- 正文区块 ---------- */
.wrap > section {
  padding: 40px 0 10px;
  border-top: 1px dashed rgba(23, 38, 35, 0.22);
  scroll-margin-top: 84px;
  animation: rise 0.7s ease-out backwards;
}

.wrap > section:nth-of-type(2) { animation-delay: 0.05s; }
.wrap > section:nth-of-type(3) { animation-delay: 0.1s; }
.wrap > section:nth-of-type(4) { animation-delay: 0.15s; }
.wrap > section:nth-of-type(5) { animation-delay: 0.2s; }
.wrap > section:nth-of-type(6) { animation-delay: 0.25s; }
.wrap > section:nth-of-type(7) { animation-delay: 0.3s; }
.wrap > section:nth-of-type(8) { animation-delay: 0.35s; }

.wrap > section h2 {
  font-size: 1.42rem;
  letter-spacing: 0.01em;
}

.wrap > section h3 {
  font-size: 1.12rem;
  margin: 1.5em 0 0.4em;
}

.wrap > section p {
  margin: 0 0 1.05em;
  max-width: 66ch;
  color: rgba(23, 38, 35, 0.9);
}

.wrap > section ul,
.wrap > section ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
  max-width: 66ch;
}

.wrap > section li { margin: 0.3em 0; }

.wrap > section a {
  color: #0e6355;
  text-decoration: underline;
  text-decoration-color: rgba(92, 198, 176, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.wrap > section a:hover { color: #083f36; }

.wrap > section blockquote {
  margin: 0 0 1.2em;
  padding: 16px 20px;
  border-radius: 18px 26px 18px 26px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft);
  color: rgba(23, 38, 35, 0.82);
}

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

.wrap > section img {
  height: auto;
  border-radius: 20px 30px 20px 30px;
  border: 5px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft);
}

.wrap > section code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.1em 0.36em;
  border-radius: 7px;
  background: rgba(23, 38, 35, 0.08);
}

.wrap > section strong { color: #0b2b26; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 44px;
  padding: 34px 30px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(212, 196, 168, 0.42));
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 1090px;
  margin: 0 auto;
  padding: 24px 26px;
  border-radius: var(--rad);
  background: rgba(92, 198, 176, 0.18);
  border: 1px solid rgba(92, 198, 176, 0.42);
}

.cta-b {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.2rem, 3.4vw, 1.95rem);
  letter-spacing: 0.03em;
}

.cta-a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  transition: transform 0.24s ease-out, background 0.24s ease-out;
}

.cta-a:hover { transform: translateY(-2px); background: #0d1a18; }

.footbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: 1090px;
  margin: 16px auto 0;
  font-size: 0.9rem;
  color: rgba(23, 38, 35, 0.72);
}

.addr { font-style: normal; }

.addr a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.footlinks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin: 0;
  padding: 0;
}

.footlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px dotted var(--line);
}

.footlinks a:hover { color: #0d5f52; }

.copy {
  margin: 0 0 0 auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

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

/* ---------- 窄屏 ---------- */
@media (max-width: 899px) {
  body { font-size: 16.5px; }

  .rail {
    position: sticky;
    inset: auto;
    top: 0;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 240, 231, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .rail::after { display: none; }

  .mark { min-height: 42px; font-size: 0.98rem; }
  .logoimg { height: 34px; }

  .menu { position: relative; }

  .menu summary {
    padding: 0 14px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(80vw, 292px);
    padding: 10px;
    border-radius: 22px;
    background: rgba(251, 247, 241, 0.99);
    border: 1px solid var(--line);
    box-shadow: var(--soft);
  }

  .pane { margin-left: 0; }

  .topbar { height: 46px; padding: 0 16px; }
  .tick { letter-spacing: 0.2em; }

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

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

  .side {
    grid-column: 1;
    grid-row: auto;
    position: static;
    margin: 16px 0 0;
    padding: 14px 16px 12px;
  }

  .side-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 0.88rem;
  }

  .side-list a {
    min-height: 40px;
    padding: 4px 11px;
    border-bottom: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
  }

  .wrap > .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0 20px;
  }

  .wrap > .hero::before { top: 40%; height: 104px; left: -20px; right: -20px; }

  .hero-copy > *:not(.collage) { max-width: 100%; }

  .hero h1 { font-size: clamp(1.72rem, 8vw, 2.3rem); }

  .collage {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 236px;
    margin-top: 22px;
  }

  .collage .shot { border-width: 5px; }
  .collage .shot-1 { top: 0; right: 2%; width: 54%; }
  .collage .shot-2 { top: 26%; left: 2%; width: 46%; }

  .wrap > section { padding: 30px 0 8px; scroll-margin-top: 76px; }
  .wrap > section h2 { font-size: 1.24rem; }

  .foot { padding: 26px 16px 22px; margin-top: 30px; }
  .cta { padding: 20px 18px; }
  .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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