/* Home page, copied from the Home board of the "Yunhe Works Website" Claude Design canvas. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/sora-latin.woff2") format("woff2");
}

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

html, body { margin: 0; background: #F8F7F6; }
body {
  min-height: 100vh;
  font-family: Sora, -apple-system, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
}
a { color: #1A1A1A; }
a:hover { color: #000000; }
a:focus-visible, summary:focus-visible { outline: 2px solid #3B63FB; outline-offset: 2px; border-radius: 8px; }

.page { max-width: 992px; margin: 0 auto; padding: 0 16px; }

/* Navigation bar */
.ynav {
  position: relative;
  margin: 16px auto 0;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #1A1A1A;
}
.nav { display: flex; gap: 22px; font-size: 13px; font-weight: 500; }
.nav a { text-decoration: none; color: #45433F; }

.lang { position: relative; }
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #55534F;
  cursor: pointer;
  list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang-menu {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 10;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px #E8E6E2, 0 12px 32px rgba(26, 26, 26, 0.1);
}
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.lang-menu a[aria-current="page"] { background: #F2F1EE; }

/* Intro */
.intro {
  padding: 72px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.intro h1 {
  margin: 0;
  position: relative;
  display: inline-block;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.intro h1 span { position: relative; z-index: 1; }
.scribble {
  position: absolute;
  left: -4%;
  bottom: -6px;
  width: 108%;
  height: 34px;
  z-index: 0;
}
.intro p {
  margin: 0;
  max-width: 940px;
  font-size: 17px;
  line-height: 1.6;
  color: #55534F;
  text-wrap: balance;
}

/* Product card */
.apps { padding: 0 0 96px; }
.card {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: stretch;
  border-radius: 28px;
  background: #FFFFFF;
  overflow: hidden;
}
.card-text {
  flex: 1 1 380px;
  min-width: 0;
  padding: 56px 32px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.tags { margin: 0; display: flex; gap: 14px; font-size: 16px; font-weight: 600; color: #6B6862; }
.card h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.desc { margin: 0; font-size: 17px; line-height: 1.6; color: #45433F; max-width: 420px; }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 9px;
  background: #000000;
  color: #FFFFFF;
}
.store-t { display: flex; flex-direction: column; line-height: 1.1; }
.store-s { font-size: 10px; font-weight: 400; }
.store-l { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.site-link { font-size: 15px; font-weight: 600; text-decoration: none; color: #45433F; }

.card-art {
  flex: 1 1 500px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 16px;
  background: #FFFFFF;
}
.trio { position: relative; display: flex; align-items: center; perspective: 1600px; }
.phone {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 390 / 844;
  box-sizing: content-box;
  overflow: hidden;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.main {
  z-index: 2;
  width: 212px;
  border: 10px solid #1B1F1D;
  border-radius: 45px;
  background: #000000;
  box-shadow: 0 0 0 1.5px #464D49, 0 36px 72px rgba(20, 24, 22, 0.28), 0 8px 20px rgba(20, 24, 22, 0.14);
}
.phone.side {
  z-index: 1;
  width: 178px;
  border: 9px solid #1B1F1D;
  border-radius: 38px;
  background: #0F1311;
  box-shadow: 0 0 0 1.5px #3A403D, 0 24px 48px rgba(20, 24, 22, 0.22), 0 6px 14px rgba(20, 24, 22, 0.12);
}
.phone.left { margin-right: -52px; transform: rotateY(26deg) rotateZ(-3deg) translateY(18px) scale(0.94); }
.phone.right { margin-left: -52px; transform: rotateY(-26deg) rotateZ(3deg) translateY(18px) scale(0.94); }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 40px;
  font-size: 13px;
  color: #6B6862;
}
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { color: #6B6862; text-decoration: none; }
.foot a:hover { color: #1A1A1A; }

@media (max-width: 640px) {
  .trio { transform: scale(0.68); }
  .ynav .nav { display: none; }
  .ynav .lang-t { display: none; }
}
