/* ==========================================================
   忆江供应链 · yes.yjgyl.com
   Apple-style corporate site
   ========================================================== */

:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .09);
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --blue: #0071e3;
  --blue-light: #2997ff;
  --green: #30d158;
  --max: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(0, 113, 227, .22); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, p, dl, dd, dt { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: #fff;
  color: #000;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

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

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  color: #f5f5f7;
  background: transparent;
  transition: background .45s ease, color .45s ease, border-color .45s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  border-bottom-color: rgba(0, 0, 0, .08);
}

.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: #f5f5f7;
  color: #000;
  transition: background .45s ease, color .45s ease;
}
.nav.is-solid .brand-mark { background: #000; color: #fff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: inherit;
  opacity: .86;
  transition: opacity .25s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: .9;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 7px;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { top: 20px; }
body.menu-open .nav-toggle span:first-child { top: 16.5px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:last-child { top: 16.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
  padding: 132px 0 72px;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.glow-a {
  width: 620px;
  height: 620px;
  left: 50%;
  top: 8%;
  transform: translateX(-70%);
  background: radial-gradient(circle, rgba(0, 113, 227, .55), transparent 68%);
}
.glow-b {
  width: 560px;
  height: 560px;
  right: 2%;
  bottom: -4%;
  background: radial-gradient(circle, rgba(48, 209, 88, .20), transparent 70%);
}

.mesh {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(0, 113, 227, .16), transparent 55%);
}

.tiles {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 42%, #000 12%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 62% at 50% 42%, #000 12%, transparent 78%);
  animation: drift 26s linear infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-34px, -34px, 0); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: #a1a1a6;
  letter-spacing: .01em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(54px, 10.5vw, 118px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
  margin: 0;
}

.grad {
  background: linear-gradient(100deg, #f5f5f7 8%, #9db8ff 48%, #5ee7d0 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 700px;
  margin: 30px auto 0;
  font-size: clamp(16.5px, 1.9vw, 20px);
  line-height: 1.62;
  color: #a1a1a6;
  letter-spacing: .005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 13px 27px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s ease, opacity .3s ease;
}
.btn:hover { transform: scale(1.025); }
.btn:active { transform: scale(.99); }

.btn-primary { background: #f5f5f7; color: #000; }
.btn-primary:hover { background: #fff; }

.btn-ghost { color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.btn-light { background: #f5f5f7; color: #000; }
.btn-light:hover { background: #fff; }

.btn-outline { color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .32); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(44px, 7vw, 76px) auto 0;
  max-width: 880px;
  text-align: left;
}

.stat { padding: 0 26px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .13); }

.stat dt {
  font-size: 12.5px;
  color: #86868b;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.stat dd {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat .unit {
  font-size: 13px;
  font-weight: 400;
  color: #86868b;
  margin-left: 6px;
  letter-spacing: 0;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .5);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: .25; }
  45% { transform: translateY(9px); opacity: .9; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(88px, 10vw, 138px) 0; }

.sec-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 70px); }

.sec-eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .01em;
  margin-bottom: 14px;
}

.sec-head h2,
.about h2,
.contact h2 {
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.07;
  letter-spacing: -.035em;
  font-weight: 700;
}

.sec-sub {
  margin-top: 24px;
  max-width: 660px;
  font-size: clamp(16.5px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Model ---------- */

.model { background: var(--bg); }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-step {
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 28px 24px 30px;
  border: 1px solid transparent;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), background .4s ease;
}

.flow-step:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, .06);
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .08);
}

.step-no {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
}

.flow-step h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 26px 0 7px;
}

.route {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.route span { color: var(--blue); margin: 0 3px; }

.muted {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.model-note {
  margin-top: clamp(42px, 5vw, 60px);
  padding: 26px 32px;
  background: var(--bg-alt);
  border-left: 3px solid var(--blue);
  border-radius: 4px 18px 18px 4px;
  max-width: 860px;
}
.model-note p { font-size: 16.5px; color: var(--ink-2); }
.model-note strong { color: var(--ink); font-weight: 600; }

/* ---------- Services ---------- */

.services { background: var(--bg-alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 24px;
  padding: 34px 30px 36px;
  border: 1px solid rgba(0, 0, 0, .035);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .1);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--bg-alt);
  color: var(--blue);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 26px 0 8px;
}

.card p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ---------- Platform ---------- */

.platform {
  background: #000;
  color: #f5f5f7;
}
.platform .sec-eyebrow { color: var(--blue-light); }
.platform .sec-sub { color: #a1a1a6; }

.mock {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #101013, #08080a);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.mock-top {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .028);
}

.dots { display: flex; gap: 7px; }
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
}

.mock-top .url {
  font-size: 11.5px;
  color: #86868b;
  background: rgba(255, 255, 255, .06);
  border-radius: 6px;
  padding: 3px 14px;
  letter-spacing: .02em;
}

.mock-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 356px;
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 22px 12px;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.mock-side span {
  font-size: 13px;
  color: #86868b;
  padding: 8px 12px;
  border-radius: 8px;
}
.mock-side .on {
  color: var(--blue-light);
  background: rgba(0, 113, 227, .16);
}

.mock-main { padding: 26px; }

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-kpis div {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 14px 16px;
}

.mock-kpis span {
  display: block;
  font-size: 11px;
  color: #86868b;
  margin-bottom: 2px;
}

.mock-kpis b {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #f5f5f7;
}

.mock-kpis em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: #86868b;
  margin-left: 3px;
}

.mock-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  color: #c7c7cc;
}

.mock-row .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--blue-light);
  background: rgba(0, 113, 227, .16);
  padding: 3px 7px;
  border-radius: 5px;
}

.mock-row .name { flex: 1; }

.mock-row .st {
  font-size: 11px;
  color: var(--green);
  background: rgba(48, 209, 88, .12);
  padding: 3px 10px;
  border-radius: 999px;
}

.modules {
  list-style: none;
  margin: 34px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
}

.modules li {
  font-size: 13.5px;
  color: #a1a1a6;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 7px 17px;
}

/* ---------- Value ---------- */

.value { background: var(--bg); }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.value-item {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.value-kicker {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.value-item h3 {
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.value-item p:last-child {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- About ---------- */

.about { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.about h2 { margin-top: 8px; }

.about-lead {
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.42;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.about-copy > p:not(.about-lead) {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.about-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.about-facts li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}

.about-facts span { color: var(--ink-3); }
.about-facts strong { font-weight: 500; color: var(--ink); }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #f5f5f7;
  text-align: center;
  padding: clamp(96px, 12vw, 150px) 0;
}

.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, .28), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.contact .wrap { position: relative; z-index: 1; }

.contact .sec-eyebrow { color: var(--blue-light); margin-bottom: 18px; }

.contact h2 {
  font-size: clamp(38px, 6.4vw, 76px);
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -.04em;
}

.contact-sub {
  max-width: 600px;
  margin: 26px auto 0;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.6;
  color: #a1a1a6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.contact-meta {
  margin-top: 58px;
  font-size: 12.5px;
  color: #6e6e73;
  letter-spacing: .03em;
}

/* ---------- Footer ---------- */

.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-3);
}

.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); text-decoration: none; transition: color .25s ease; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

.pc { display: inline; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; gap: 0; }
  .value-item { padding: 26px 0 30px; border-top: 1px solid var(--line); }
  .value-item + .value-item { margin-top: 0; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 18px 24px 26px;
    background: rgba(8, 8, 10, .94);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s var(--ease);
  }
  body.menu-open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 18px;
    padding: 11px 0;
    opacity: .92;
  }
  .nav-cta { margin-top: 8px; padding: 8px 18px; }
  .nav-toggle { display: block; }

  .about-grid { grid-template-columns: 1fr; }
  .about h2 { margin-bottom: 6px; }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat { padding: 0; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .13); padding-left: 22px; }
  .stat:nth-child(odd) { padding-right: 12px; }

  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-kpis b { font-size: 20px; }
  .mock-main { padding: 18px; }

  .scroll-hint { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero .pc, .sec-head .pc { display: none; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 22px; font-size: 15px; }

  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .card { padding: 28px 24px 30px; }

  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpis div:last-child { grid-column: span 2; }
  .mock-row { gap: 10px; font-size: 12px; }
  .mock-row .st { display: none; }

  .model-note { padding: 22px 22px; }
  .about-facts li { grid-template-columns: 1fr; gap: 2px; }
  .footer-inner { justify-content: flex-start; }
  .footer nav { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
