/* 杭州峦势科技有限公司官网（zhiyunms.com）。纯静态，不加载任何外部资源，跟随系统浅色 / 深色模式。
   画面：一张米白的方格纸，底部是水墨意味的远山和湖面（“峦”），首屏有一段开屏动画。 */
:root {
  --paper: #f6f5f1;
  --grid: rgba(60, 64, 56, 0.045);
  --ink: #2b2d2a;
  --ink-2: #5b5e57;
  --ink-3: #8a8d84;
  --link: #3f6f5e;
  --seal: #b5432f;
  --sun: #f2d2b6;
  --m1: #d9e0de;
  --m2: #b9c7c3;
  --m3: #8fa7a0;
  --m4: #5f7f75;
  --water: #e3e9e7;
  --ripple: rgba(95, 127, 117, 0.25);
  --mist: #f6f5f1;
  --sun-opacity: 1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong", "Noto Serif SC",
    "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141816;
    --grid: rgba(220, 228, 222, 0.04);
    --ink: #e7e9e3;
    --ink-2: #b4b9b0;
    --ink-3: #868c83;
    --link: #9cc7b6;
    --seal: #c9604b;
    --sun: #e8e4d4;
    --m1: #1f2724;
    --m2: #26322e;
    --m3: #2f403a;
    --m4: #3b5149;
    --water: #18201d;
    --ripple: rgba(156, 199, 182, 0.18);
    --mist: #141816;
    --sun-opacity: 0.55;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.85;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--link);
}

/* 页头：左上角一行，很轻 */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 28px 48px;
  font-family: var(--sans);
  font-size: 15px;
}

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

.top a:hover {
  color: var(--ink);
}

.top .home {
  color: var(--ink);
  margin-right: 12px;
}

.top .lang {
  margin-left: auto;
}

/* 首屏 */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.intro {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 22vh 32px 0;
}

.title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
}

.title h1 {
  margin: 0;
  white-space: nowrap;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.title .en {
  display: block;
  margin-top: 6px;
  font-size: 0.42em;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.seal {
  flex: none;
  width: 36px;
  height: 65px;
  transform: rotate(-2.5deg);
  /* 浅色纸面上像真的盖上去：和纸色正片叠底；深色模式下保持原色 */
  mix-blend-mode: multiply;
}

.seal-body {
  fill: var(--seal);
}

.seal-glyphs {
  font-family: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 44px;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .seal {
    mix-blend-mode: normal;
    opacity: 0.92;
  }
}

.intro p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.now-making {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  color: var(--ink-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 6px 16px -10px rgba(40, 60, 50, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (prefers-color-scheme: dark) {
  .chip {
    background: color-mix(in srgb, var(--paper) 80%, #fff);
  }
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 20px -10px rgba(40, 60, 50, 0.45);
}

.chip img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

/* 底部的山水 */
.scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 52%;
  pointer-events: none;
}

.scene .sun {
  fill: var(--sun);
  opacity: var(--sun-opacity);
}

.scene .r1 {
  fill: var(--m1);
}

.scene .r2 {
  fill: var(--m2);
}

.scene .pavilion {
  fill: var(--m3);
}

.scene .r3 {
  fill: var(--m3);
}

.scene .r4 {
  fill: var(--m4);
}

.scene .outline {
  fill: none;
  stroke: var(--m4);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.35;
}

.scene .water {
  fill: var(--water);
}

.scene .ripple {
  stroke: var(--ripple);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.scene .reflect {
  opacity: 0.22;
}


.scene .boat {
  fill: var(--m4);
  color: var(--m4);
}

.scene .wake {
  fill: none;
  stroke: var(--ripple);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.scene .cloud {
  fill: var(--paper);
  stroke: var(--m3);
  stroke-width: 1.1;
  stroke-opacity: 0.16;
}

.scene .birds {
  fill: none;
  stroke: var(--m4);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.55;
}

.here {
  position: absolute;
  right: 40px;
  bottom: 28px;
  z-index: 3;
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: right;
}

.here strong {
  display: block;
  font-weight: 500;
  color: var(--ink-2);
}

/* 首屏以下：一栏文字，像一封信 */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 32px 40px;
}

.page section + section {
  margin-top: 88px;
}

.page h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.06em;
}

.page h2 small {
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.page p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.page em {
  font-style: normal;
  color: var(--ink);
}

:lang(en) .page em {
  font-style: italic;
}

.product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.product img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 10px 24px -14px rgba(20, 30, 70, 0.6);
}

.product h3 {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 22px;
}

.product .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--sans);
  font-size: 15px;
}

.facts {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 28px;
}

.facts dt {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85rem;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.foot {
  max-width: 760px;
  margin: 72px auto 0;
  padding: 28px 32px 40px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-3);
}

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

.foot a:hover {
  color: var(--ink);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

/* ---------- 开屏动画 ----------
   顺序：纸面上先晕开一轮淡日 → 远山的墨线自左向右勾出来 → 山一层层浮起 → 湖面铺开 → 文字依次浮现 → 最后盖上印章。
   之后只剩很慢的环境动画：小船在湖上漂、薄雾流动、水纹明灭、飞鸟掠过。 */
@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes bloom {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.94) rotate(-2.5deg);
  }
  100% {
    transform: scale(1) rotate(-2.5deg);
  }
}

@keyframes drift {
  to {
    transform: translateX(460px);
  }
}

@keyframes bob {
  50% {
    transform: translateY(1.5px) rotate(0.8deg);
  }
}

@keyframes sway {
  50% {
    transform: translateX(-60px);
  }
}

@keyframes shimmer {
  50% {
    opacity: 0.3;
  }
}

@keyframes fly {
  to {
    transform: translate(-260px, -30px);
  }
}

.scene .sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene .outline {
  stroke-dasharray: 1;
  animation: draw 2.4s 0.2s cubic-bezier(0.45, 0, 0.2, 1) both;
}

.scene .r1 {
  animation: rise 2s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene .r2,
.scene .pavilion {
  animation: rise 2s 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene .r3 {
  animation: rise 2s 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene .r4 {
  animation: rise 2s 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.scene .lake {
  animation: fade 1.6s 1.3s ease-out both;
}

.scene .ripple {
  animation: shimmer 5s ease-in-out infinite;
}

.scene .ripple:nth-of-type(2n) {
  animation-delay: -2.5s;
}

.scene .mist {
  animation: fade 2s 1.6s ease-out both, sway 18s 3.6s ease-in-out infinite;
}

.scene .boat-wrap {
  animation: fade 1.2s 2.2s ease-out both, drift 120s 2.2s ease-in-out infinite alternate;
}

.scene .boat {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bob 3.6s ease-in-out infinite;
}

.scene .clouds {
  animation: fade 2s 1.8s ease-out both, sway 36s 3.8s ease-in-out infinite;
}

.scene .birds {
  animation: fade 1.5s 2.6s ease-out both, fly 40s 2.6s linear infinite alternate;
}

.top {
  animation: fade 1.2s 1.4s ease-out both;
}

.title h1 {
  animation: up 1.1s 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.intro p {
  animation: up 1.1s 1.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.intro p + p {
  animation-delay: 1.95s;
}

.now-making {
  animation: up 1.1s 2.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.seal {
  animation: stamp 0.7s 2.6s cubic-bezier(0.3, 0.6, 0.3, 1) both;
}

.here {
  animation: fade 1.2s 2.8s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  body {
    font-size: 17px;
    background-size: 48px 48px;
  }

  .top {
    gap: 20px;
    padding: 20px;
    font-size: 14px;
  }

  .top .home {
    margin-right: 0;
  }

  .title {
    gap: 12px;
  }

  .top .anchor {
    display: none;
  }

  .intro {
    padding: 16vh 20px 0;
  }

  .scene {
    height: 42%;
  }

  .here {
    right: 20px;
    bottom: 18px;
    font-size: 12px;
  }

  .page {
    padding: 72px 20px 24px;
  }

  .page section + section {
    margin-top: 64px;
  }

  .product {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .product img {
    width: 56px;
    height: 56px;
    border-radius: 13px;
  }

  .foot {
    padding: 24px 20px 32px;
  }
}

:lang(en) .title h1 {
  letter-spacing: 0;
  white-space: normal;
  min-width: 0;
}
