/* 首页：产品先于营销，真实功能与可验证能力优先。 */
.yp-home-page {
  background: #f7f7f5;
}

.yp-home-page .yp-main {
  padding: 0;
}

.yp-home-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 14px max(24px, calc((100vw - 1380px) / 2));
  background: color-mix(in srgb, #ffffff 92%, transparent);
  border-bottom: 1px solid #e4e4e7;
  backdrop-filter: blur(16px);
}

.yp-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #18181b;
  text-decoration: none;
}

.yp-home-brand:hover {
  color: #18181b;
  text-decoration: none;
}

.yp-home-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #006fee;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.yp-home-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.yp-home-brand small {
  color: #71717a;
  font-size: 11px;
}

.yp-home-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.yp-home-nav nav a {
  color: #52525b;
  font-size: 14px;
  font-weight: 500;
}

.yp-home-nav nav a:hover {
  color: #18181b;
  text-decoration: none;
}

.yp-home-nav__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.yp-home {
  width: 100%;
}

.yp-home-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  min-height: min(720px, calc(86vh - 67px));
  padding: clamp(58px, 8vw, 110px) max(24px, calc((100vw - 1380px) / 2));
  background: #f7faff;
  color: #18181b;
}

.yp-home-kicker {
  margin: 0 0 14px;
  color: #71d3a0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.yp-home-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.yp-home-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: #52525b;
  font-size: 17px;
  line-height: 1.8;
}

.yp-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.yp-home-actions .yp-btn--ghost {
  border-color: #bfdbfe;
  color: #005bc4;
  background: #fff;
}

.yp-home-actions .yp-btn--ghost:hover {
  background: #eff6ff;
}

.yp-home-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 20px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.6;
}

.yp-home-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #dbeafe;
}

.yp-home-methods__label {
  margin-right: 4px;
  color: #64748b;
  font-size: 12px;
}

.yp-home-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  color: #3f3f46;
  font-size: 12px;
}

.yp-home-method img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.yp-home-console {
  overflow: hidden;
  max-width: 700px;
  width: 100%;
  justify-self: end;
  border: 1px solid #dbe3ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
}

.yp-home-console__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid #e4e4e7;
  color: #71717a;
  font-size: 12px;
}

.yp-home-console__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d8;
}

.yp-home-console__bar span:first-child { background: #f16a68; }
.yp-home-console__bar span:nth-child(2) { background: #e7b64a; }
.yp-home-console__bar span:nth-child(3) { background: #5dcf8b; }
.yp-home-console__bar strong { margin-left: 7px; font-weight: 600; }

.yp-home-console__body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 470px;
}

.yp-home-console aside {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 12px;
  border-right: 1px solid #e4e4e7;
  background: #f8fafc;
}

.yp-home-console aside span {
  padding: 9px 10px;
  border-radius: 8px;
  color: #71717a;
  font-size: 12px;
}

.yp-home-console aside .is-active {
  background: #e6f1fe;
  color: #005bc4;
}

.yp-home-console__main {
  padding: 20px;
}

.yp-home-console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.yp-home-console__head span { font-weight: 650; }
.yp-home-console__head i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6bd79c;
  font-size: 11px;
  font-style: normal;
}

.yp-home-console__head i::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.yp-home-console__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.yp-home-console__grid article {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #f8fafc;
}

.yp-home-console__grid small { color: #71717a; font-size: 10px; }
.yp-home-console__grid strong { font-size: 17px; }
.yp-home-console__grid article span { color: #71717a; font-size: 11px; }

.yp-home-console__flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  color: #52525b;
  font-size: 11px;
}

.yp-home-console__flow b {
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

.yp-home-section {
  padding: clamp(64px, 8vw, 112px) max(24px, calc((100vw - 1240px) / 2));
}

.yp-home-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
}

.yp-home-section__head p {
  grid-column: 1 / -1;
  margin: 0 0 -20px;
  color: #006fee;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.yp-home-section__head h2,
.yp-home-integration h2,
.yp-home-cta h2 {
  margin: 0;
  color: #18181b;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.yp-home-section__head > span {
  color: #62626a;
  line-height: 1.8;
}

.yp-home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #d9d9dc;
  border-left: 1px solid #d9d9dc;
}

.yp-home-features article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid #d9d9dc;
  border-bottom: 1px solid #d9d9dc;
  background: #fff;
}

.yp-home-features article > span {
  color: #8c8c94;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.yp-home-features h3 {
  margin: 34px 0 12px;
  font-size: 19px;
}

.yp-home-features p {
  margin: 0;
  color: #66666e;
  font-size: 14px;
  line-height: 1.75;
}

.yp-home-integration {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  background: #eef4ef;
}

.yp-home-integration ol {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.yp-home-integration li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
}

.yp-home-integration li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #006fee;
  color: #fff;
  font-weight: 700;
}

.yp-home-integration li strong { display: block; margin-bottom: 3px; }
.yp-home-integration li p { margin: 0; color: #66666e; font-size: 14px; }

.yp-home-integration pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .1);
}

.yp-home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 54px max(24px, calc((100vw - 1240px) / 2));
  background: #006fee;
  color: #fff;
}

.yp-home-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.yp-home-cta p { margin: 10px 0 0; color: #dcecff; }
.yp-home-cta > div:last-child { display: flex; flex: 0 0 auto; gap: 10px; }
.yp-home-cta .yp-btn--primary { background: #fff; color: #005bc4; }
.yp-home-cta .yp-btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }

.yp-home-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - 1240px) / 2));
  background: #fff;
  border-top: 1px solid #e4e4e7;
  color: #71717a;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .yp-home-nav { grid-template-columns: 1fr auto; }
  .yp-home-nav nav { display: none; }
  .yp-home-hero { grid-template-columns: 1fr; min-height: auto; }
  .yp-home-console { justify-self: start; }
  .yp-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .yp-home-nav { padding: 12px 16px; }
  .yp-home-nav__actions .yp-btn--ghost { display: none; }
  .yp-home-hero { padding: 52px 18px 64px; }
  .yp-home-hero h1 { font-size: 40px; }
  .yp-home-lead { font-size: 15px; }
  .yp-home-console__body { grid-template-columns: 1fr; }
  .yp-home-console aside { display: grid; grid-template-columns: repeat(2, 1fr); border-right: 0; border-bottom: 1px solid #e4e4e7; }
  .yp-home-console__grid { grid-template-columns: 1fr; }
  .yp-home-section { padding: 62px 18px; }
  .yp-home-section__head { grid-template-columns: 1fr; }
  .yp-home-section__head p { margin-bottom: -10px; }
  .yp-home-features { grid-template-columns: 1fr; }
  .yp-home-integration { grid-template-columns: 1fr; padding: 62px 18px; }
  .yp-home-cta { align-items: flex-start; flex-direction: column; padding: 42px 18px; }
  .yp-home-cta > div:last-child { flex-wrap: wrap; }
  .yp-home-footer { padding: 22px 18px; }
}
