/* Cross-platform arrow icons (avoid iOS unicode glyph swap) */
.ico-arrow {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn .ico-arrow,
.nav-cta .ico-arrow {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
}
.capability-switch .ico-arrow,
.text-link .ico-arrow,
.product-figure button .ico-arrow {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1px;
}
.capability-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn,
.nav-cta,
.hero-v2-actions .btn,
.hero-v2-actions > a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn,
.nav-cta,
.hero-v2-actions .btn {
  gap: 10px;
}
.related a:after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Core display font — Alimama FangYuanTi VF (headings only) */
@font-face {
  font-family: "Alimama FangYuanTi VF";
  src: url("/static/rpo/fonts/AlimamaFangYuanTiVF.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "Alimama FangYuanTi VF", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --fy-wght: 640;
  --fy-bevl: 28;
}

.hero-v2 h1,
.product-v2-title h2,
.sec-head h2,
.explorer-copy h3,
.cta h2,
.price-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "wght" var(--fy-wght), "BEVL" var(--fy-bevl);
  letter-spacing: -0.03em;
}

.hero-v2 h1 {
  --fy-wght: 700;
  --fy-bevl: 22;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.product-v2-title h2,
.sec-head h2,
.cta h2 {
  --fy-wght: 650;
  --fy-bevl: 26;
}

.explorer-copy h3 {
  --fy-wght: 620;
  --fy-bevl: 30;
}

.price-line {
  --fy-wght: 680;
  --fy-bevl: 20;
}

/* Site bridge: sticky glass nav + official footer + bottom soft cards */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  flex-wrap: nowrap;
  min-height: 72px;
  height: auto;
  padding-left: max(38px, calc((100% - 1280px) / 2));
  padding-right: max(38px, calc((100% - 1280px) / 2));
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: saturate(1.15) blur(18px);
  -webkit-backdrop-filter: saturate(1.15) blur(18px);
  border-bottom: 1px solid rgba(230, 232, 234, 0.55);
}
.nav .brand,
.nav .nav-product,
.nav .nav-cta,
.nav .menu {
  flex-shrink: 0;
}
.nav-product,
.nav a,
.nav-cta {
  white-space: nowrap;
}
.nav > nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
}

.pick-grid,
.impl-grid {
  display: grid;
  gap: 16px;
}
.pick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.impl-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
}
.sf-card {
  padding: 24px 24px 26px;
  border: 1px solid var(--stroke, #e6e8ea);
  border-radius: 12px;
  background: #fff;
}
.sf-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.sf-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #5c6570);
  line-height: 1.8;
}
.sf-card.is-accent {
  border-color: #d7e8e1;
  background: #f7fbf9;
}
.sf-card.is-accent h3 {
  color: var(--accent, #0f8a6f);
}
.impl-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent, #0f8a6f);
}
.impl-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text, #1b1f23);
}

/* Official site footer */
.sf-footer {
  background: #0c0e0d;
  color: rgba(255, 255, 255, 0.55);
}
.sf-footer-main {
  padding: 64px 0 40px;
}
.sf-footer-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}
.sf-footer-brand {
  margin-bottom: 40px;
}
.sf-footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.sf-footer-desc {
  max-width: 28em;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.55);
}
.sf-footer-phone {
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.sf-footer-phone:hover {
  color: #0f8a6f;
}
.sf-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.sf-footer-col dt {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.sf-footer-col dd {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
}
.sf-footer-col a:hover {
  color: #0f8a6f;
}
.sf-footer-col .sf-em {
  color: #fff;
  font-weight: 600;
}
.sf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.sf-footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
}
.sf-footer-copy a {
  color: rgba(255, 255, 255, 0.4);
}
.sf-footer-copy a:hover {
  color: #0f8a6f;
}

/* Foldable / tablet: switch to hamburger earlier so nav labels never wrap */
@media (max-width: 1100px) {
  .nav {
    height: 72px;
    min-height: 72px;
    padding-left: 24px;
    padding-right: 24px;
    gap: 14px;
  }
  .nav-product {
    display: none;
  }
  .nav > nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 18px 24px 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke, #e6e8ea);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 101;
  }
  .nav > nav.open {
    display: flex;
  }
  .nav > nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--stroke-soft, #eef0f2);
    font-size: 15px;
    color: var(--text, #1b1f23);
  }
  .nav > nav a:last-child {
    border-bottom: 0;
  }
  .nav .menu {
    display: block;
    order: 5;
    margin-left: 0;
    font-size: 20px;
    border: 0;
    background: none;
    padding: 4px 2px;
    color: var(--text, #1b1f23);
    line-height: 1;
  }
  .nav .nav-cta {
    margin-left: auto;
    padding: 10px 16px;
    font-size: 12px;
  }
  .pick-grid,
  .impl-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sf-footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .nav {
    height: 68px;
    min-height: 68px;
    padding-left: 22px;
    padding-right: 22px;
    background: rgba(255, 255, 255, 0.72);
  }
  .nav > nav {
    top: 68px;
    padding: 16px 22px 20px;
  }
  .pick-grid,
  .impl-grid,
  .sf-footer-cols {
    grid-template-columns: 1fr;
  }
  .sf-footer-inner {
    width: calc(100% - 44px);
  }
}
