/* 圆通 · KWC389 次航班 — night departures board, boarding pass and a brick-by-brick build. */
body.case-series-yto {
  --case-series-copper: #ff8a1f;
  --case-series-gold: #ffb15c;
  --case-series-line: rgba(255, 177, 92, .2);
  --case-series-bar-bg: rgba(22, 8, 56, .92);
  --case-series-menu-bg: #1d0a4a;
  --case-series-border: rgba(255, 138, 31, .4);
  --case-series-brand-muted: #ffb15c;
  --case-series-link-muted: #c9bdf0;
  --case-series-current: rgba(255, 138, 31, .14);
  --case-series-footer-bg: radial-gradient(circle at 15% 15%, rgba(117, 70, 230, .45), transparent 34%), linear-gradient(150deg, #160640, #2a1170 58%, #12053a);
  --y-night: #170742;
  --y-deep: #260e5d;
  --y-violet: #5b2bd1;
  --y-lilac: #c9bdf0;
  --y-orange: #ff8a1f;
  --y-paper: #f6f2ea;
  --y-ink: #1b1240;
  --y-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--y-night);
  color: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  margin: 0;
}
body.case-series-yto a { color: inherit; text-decoration: none; }
.y { --bk-c: var(--y-orange); }

.y-kicker { color: var(--y-orange); font: 700 12px/1.4 var(--y-mono); letter-spacing: .16em; text-transform: uppercase; }
.y-h2 { font-size: clamp(34px, 4.8vw, 72px); font-weight: 900; letter-spacing: -.035em; line-height: 1.06; margin-top: 18px; }
.y-h2--sm { font-size: clamp(28px, 3.2vw, 50px); }
.y-h2 em { color: var(--y-orange); font-style: normal; }
.y-lead { color: rgba(255, 255, 255, .7); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.85; max-width: 36em; }

/* ---------- hero: departures board ---------- */
.y-hero {
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(91, 43, 209, .55), transparent 70%),
    linear-gradient(180deg, #12053a, var(--y-night));
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 0;
  position: relative;
}
.y-hero::before {
  border-top: 2px dashed rgba(255, 138, 31, .45);
  content: "";
  height: 140%;
  left: -10%;
  position: absolute;
  top: 30%;
  transform: rotate(-12deg);
  width: 140%;
  border-radius: 50%;
  pointer-events: none;
}
.y-hero__grid { align-items: center; display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); position: relative; }
.y-hero h1 { margin-top: 22px; }
.y-hero__sub { color: var(--y-lilac); display: block; font-size: clamp(15px, 1.2vw, 18px); font-weight: 700; letter-spacing: .06em; }
.y-hero__main { display: block; font-size: clamp(34px, 3.9vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1.04; margin-top: 14px; }
.y-hero__main .y-nw { white-space: nowrap; }
.y-hero__main em { color: var(--y-orange); font-style: normal; }
.y-hero .y-lead { margin-top: 24px; }
.y-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.y-board {
  background: #0d0426;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
  padding: clamp(16px, 2vw, 26px);
}
.y-board__head { color: var(--y-lilac); display: flex; font: 700 11px/1 var(--y-mono); justify-content: space-between; letter-spacing: .16em; margin-bottom: 16px; }
.y-board__head b { color: var(--y-orange); }
.y-board__rows { display: grid; gap: 14px; }
.y-board__row { align-items: center; display: grid; gap: 14px; grid-template-columns: 82px 1fr; }
.y-board__row span { color: rgba(255, 255, 255, .45); font: 700 10px/1.3 var(--y-mono); letter-spacing: .12em; }
.y-flaps { display: flex; flex-wrap: wrap; gap: 4px; }
.y-flap {
  background: linear-gradient(#251060 0 49%, #1a0a47 51% 100%);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  color: #fff;
  display: grid;
  font: 800 clamp(18px, 2vw, 28px)/1 var(--y-mono);
  height: clamp(34px, 3.4vw, 48px);
  place-items: center;
  position: relative;
  width: clamp(26px, 2.5vw, 36px);
}
.y-flap::after { background: rgba(0, 0, 0, .55); content: ""; height: 1px; left: 0; position: absolute; right: 0; top: 50%; }
.y-flaps--cn .y-flap { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; width: clamp(34px, 3.2vw, 48px); }
.y-flaps--ok .y-flap { color: var(--y-orange); }
.y-flap.is-flipping { animation: y-flip .08s linear; }
@keyframes y-flip { 50% { transform: scaleY(.2); } }

.y-hero__photo { margin-top: 18px; position: relative; }
.y-hero__photo img { aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; width: 100%; }
.y-hero__photo figcaption { color: rgba(255, 255, 255, .55); font: 11px/1.4 var(--y-mono); letter-spacing: .08em; margin-top: 8px; }

.y-runway { border-top: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 70px); position: relative; }
.y-runway li { border-right: 1px solid rgba(255, 255, 255, .12); padding: 20px clamp(12px, 2vw, 24px) 26px; }
.y-runway li:last-child { border-right: 0; }
.y-runway b { display: block; font-size: clamp(26px, 3vw, 44px); font-weight: 900; letter-spacing: -.03em; }
.y-runway b small { color: var(--y-orange); font-size: .45em; margin-left: 4px; }
.y-runway li > span { color: rgba(255, 255, 255, .6); font-size: 13px; }

/* ---------- boarding pass (at a glance) ---------- */
.y-pass-wrap { background: var(--y-night); padding: clamp(70px, 9vw, 120px) 0; }
.y-pass {
  background: var(--y-paper);
  border-radius: 18px;
  color: var(--y-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  overflow: hidden;
  position: relative;
}
.y-pass__main { padding: clamp(26px, 4vw, 52px); }
.y-pass__brand { align-items: center; border-bottom: 2px solid var(--y-ink); display: flex; font: 800 12px/1 var(--y-mono); justify-content: space-between; letter-spacing: .14em; padding-bottom: 14px; }
.y-pass__brand b { background: var(--y-violet); border-radius: 4px; color: #fff; padding: 6px 9px; }
.y-pass h2 { font-size: clamp(26px, 3vw, 42px); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; margin-top: 22px; }
.y-pass__answer { color: #3c3360; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.9; margin-top: 16px; }
.y-pass dl { display: grid; gap: 18px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.y-pass dt { color: #7a6fa6; font: 700 10px/1.3 var(--y-mono); letter-spacing: .14em; text-transform: uppercase; }
.y-pass dd { font-size: 16px; font-weight: 800; line-height: 1.45; margin-top: 4px; }
.y-pass__stub {
  background: var(--y-violet);
  border-left: 3px dashed var(--y-paper);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px) 28px;
  position: relative;
}
.y-pass__stub::before, .y-pass__stub::after { background: var(--y-night); border-radius: 50%; content: ""; height: 34px; left: -19px; position: absolute; width: 34px; }
.y-pass__stub::before { top: -17px; }
.y-pass__stub::after { bottom: -17px; }
.y-pass__flight { font: 900 clamp(40px, 4vw, 56px)/1 var(--y-mono); letter-spacing: -.02em; }
.y-pass__route { display: flex; font-weight: 800; gap: 10px; justify-content: space-between; }
.y-pass__route small { display: block; font: 700 10px/1.4 var(--y-mono); letter-spacing: .12em; opacity: .7; }
.y-barcode { background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px, #fff 9px 12px, transparent 12px 14px); height: 54px; opacity: .9; }

/* ---------- build stage ---------- */
.y-build { background: var(--y-deep); padding: clamp(70px, 9vw, 120px) 0 clamp(30px, 4vw, 60px); }
.y-build__head { max-width: 820px; }
.y-build__grid { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin-top: clamp(30px, 4vw, 56px); }
.y-stage {
  align-self: start;
  aspect-ratio: 4 / 3;
  background: radial-gradient(70% 70% at 50% 45%, #33137a, var(--y-deep) 72%);
  border-radius: 16px;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  position: sticky;
  top: calc(var(--bk-top) + 5vh);
}
.y-stage figure { inset: 0; opacity: 0; position: absolute; transform: translateY(18px) scale(.98); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.y-stage img { height: 100%; object-fit: cover; width: 100%; }
.y-stage[data-stage="1"] .s1, .y-stage[data-stage="2"] .s2, .y-stage[data-stage="3"] .s3,
.y-stage[data-stage="4"] .s4, .y-stage[data-stage="5"] .s5 { opacity: 1; transform: none; }
.y-stage__meter { background: rgba(13, 4, 38, .8); border-radius: 10px; bottom: 16px; left: 16px; padding: 12px 14px; position: absolute; right: 16px; z-index: 2; }
.y-stage__meter p { display: flex; font: 700 12px/1 var(--y-mono); justify-content: space-between; letter-spacing: .1em; }
.y-stage__meter p b { color: var(--y-orange); font-size: 22px; }
.y-stage__meter i { background: rgba(255, 255, 255, .15); border-radius: 3px; display: block; height: 6px; margin-top: 10px; overflow: hidden; position: relative; }
.y-stage__meter i::after { background: var(--y-orange); content: ""; inset: 0; position: absolute; transform: scaleX(var(--fill, .07)); transform-origin: left; transition: transform .6s ease; }
.y-stage[data-stage="1"] { --fill: .067; } .y-stage[data-stage="2"] { --fill: .38; } .y-stage[data-stage="3"] { --fill: .663; }
.y-stage[data-stage="4"] { --fill: .859; } .y-stage[data-stage="5"] { --fill: 1; }
.y-steps { grid-column: 1; grid-row: 1; }
.y-step { display: flex; flex-direction: column; justify-content: center; min-height: 70vh; padding: 30px 0; }
.y-step .bk-step { color: var(--y-orange); }
.y-step .bk-step small { color: rgba(255, 255, 255, .45); font: 700 12px/1.3 var(--y-mono); letter-spacing: .1em; }
.y-step h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 900; line-height: 1.3; margin-top: 14px; }
.y-step p { color: rgba(255, 255, 255, .7); font-size: 16px; line-height: 1.9; margin-top: 12px; max-width: 30em; }
.y-step .bk-parts { color: #1d1d1f; margin-top: 18px; }

/* ---------- flight log (story) ---------- */
.y-log { background: var(--y-paper); color: var(--y-ink); padding: clamp(80px, 10vw, 140px) 0; }
.y-log .y-kicker { color: var(--y-violet); }
.y-log .y-lead { color: #4a416d; }
.y-leg { border-top: 2px solid var(--y-ink); display: grid; gap: clamp(24px, 4vw, 72px); grid-template-columns: 240px minmax(0, 1fr); margin-top: clamp(50px, 6vw, 90px); padding-top: 28px; }
.y-leg__tag { align-self: start; position: sticky; top: calc(var(--bk-top) + 24px); }
.y-leg__tag b { color: var(--y-violet); display: block; font: 900 64px/1 var(--y-mono); }
.y-leg__tag span { display: block; font: 700 12px/1.6 var(--y-mono); letter-spacing: .12em; margin-top: 10px; text-transform: uppercase; }
.y-leg h3 { font-size: clamp(26px, 3vw, 42px); font-weight: 900; letter-spacing: -.03em; line-height: 1.2; }
.y-leg__body p { font-size: 17px; line-height: 2; margin-top: 18px; max-width: 42em; }
.y-photo { margin-top: 30px; }
.y-photo img { border-radius: 10px; width: 100%; }
.y-photo figcaption { color: #6d6493; font-size: 13px; line-height: 1.6; margin-top: 10px; }

.y-gates { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 34px; }
.y-gate { background: #fff; border-radius: 12px; box-shadow: 0 1px 0 rgba(27, 18, 64, .1); overflow: hidden; }
.y-gate img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.y-gate div { padding: 20px 22px 24px; }
.y-gate b { background: var(--y-orange); border-radius: 4px; color: #fff; display: inline-block; font: 800 12px/1 var(--y-mono); letter-spacing: .08em; padding: 6px 8px; }
.y-gate h4 { font-size: 20px; font-weight: 900; margin-top: 12px; }
.y-gate p { color: #4a416d; font-size: 15px; line-height: 1.85; margin-top: 8px; }

/* ---------- waybill (feedback) ---------- */
.y-waybill-wrap { background: var(--y-deep); padding: clamp(80px, 10vw, 140px) 0; }
.y-waybill-grid { align-items: center; display: grid; gap: clamp(30px, 5vw, 80px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.y-waybill { background: #fff; border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); color: var(--y-ink); padding: 28px; position: relative; transform: rotate(-2deg); }
.y-waybill header { border-bottom: 2px solid var(--y-ink); display: flex; font: 800 13px/1 var(--y-mono); justify-content: space-between; padding-bottom: 12px; }
.y-waybill ul { margin-top: 18px; }
.y-waybill li { border-bottom: 1px dashed #c8c2dc; display: grid; font-size: 16px; font-weight: 800; gap: 12px; grid-template-columns: 28px 1fr; padding: 12px 0; }
.y-waybill li::before { color: var(--y-orange); content: "✓"; }
.y-waybill small { color: #6d6493; display: block; font-size: 12px; margin-top: 14px; }
.y-stamp {
  border: 3px solid #e2402b;
  border-radius: 50%;
  color: #e2402b;
  display: grid;
  font-size: 22px;
  font-weight: 900;
  height: 110px;
  place-items: center;
  position: absolute;
  right: 22px;
  top: 58px;
  transform: rotate(-16deg) scale(1.6);
  opacity: 0;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s;
  width: 110px;
}
.y-waybill.is-in .y-stamp { opacity: .9; transform: rotate(-16deg) scale(1); transition-delay: .5s; }
.y-waybill-wrap .y-leg__body p { color: rgba(255, 255, 255, .75); font-size: 17px; line-height: 2; margin-top: 18px; }

/* ---------- film ---------- */
.y-film { background: var(--y-night); padding: clamp(70px, 9vw, 120px) 0; }
.y-film__grid { align-items: center; display: grid; gap: clamp(28px, 4vw, 60px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.y-film .bk-film { border: 8px solid #0d0426; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); overflow: hidden; }
.y-film ul { display: grid; gap: 10px; margin-top: 24px; }
.y-film li { color: rgba(255, 255, 255, .7); font-size: 15px; }
.y-film li b { color: var(--y-orange); display: inline-block; font-family: var(--y-mono); min-width: 64px; }

/* ---------- the box ---------- */
.y-box { background: var(--y-paper); color: var(--y-ink); padding: clamp(80px, 10vw, 140px) 0; }
.y-box .y-kicker { color: var(--y-violet); }
.y-box__grid { display: grid; gap: 16px; grid-template-columns: 1.3fr 1fr; margin-top: 40px; }
.y-box__grid figure:first-child { grid-row: span 2; }
.y-box__grid img { border-radius: 10px; height: 100%; object-fit: cover; width: 100%; }
.y-box__grid figure { position: relative; }
.y-box__grid figcaption { background: rgba(255, 255, 255, .92); border-radius: 6px; bottom: 12px; font-size: 13px; left: 12px; padding: 8px 10px; position: absolute; right: 12px; }
.y-box__text { columns: 2; column-gap: 48px; margin-top: 40px; }
.y-box__text p { break-inside: avoid; font-size: 16px; line-height: 2; margin-bottom: 16px; }

/* ---------- crew (what we did), FAQ, CTA ---------- */
.y-crew { background: var(--y-night); padding: clamp(80px, 10vw, 130px) 0; }
.y-crew__grid { display: grid; gap: clamp(30px, 5vw, 80px); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.y-crew__body p { color: rgba(255, 255, 255, .75); font-size: 17px; line-height: 2; margin-top: 16px; }
.y-crew__photo { margin-top: 40px; }
.y-crew__photo img { border-radius: 10px; }
.y-crew__photo figcaption { color: rgba(255, 255, 255, .5); font-size: 13px; margin-top: 10px; }

.y-faq { background: var(--y-paper); color: var(--y-ink); padding: clamp(80px, 10vw, 130px) 0; }
.y-faq .y-kicker { color: var(--y-violet); }
.y-faq__grid { display: grid; gap: clamp(30px, 5vw, 80px); grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.y-faq summary { font-size: clamp(17px, 1.5vw, 20px); }
.y-faq details p { font-size: 16px; }

.y-cta { background: var(--y-orange); color: var(--y-ink); overflow: hidden; padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.y-cta .bk-studs { --bk-stud: rgba(27, 18, 64, .12); inset: 0; position: absolute; }
.y-cta__grid { align-items: end; display: grid; gap: 30px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); position: relative; }
.y-cta .y-kicker { color: var(--y-ink); }
.y-cta p { font-size: 16px; line-height: 1.85; }
.y-cta .bk-btn { --bk-c: var(--y-violet); margin-top: 24px; }

.y-source { background: var(--y-night); color: rgba(255, 255, 255, .55); font-size: 13px; line-height: 1.9; padding: 36px 0 48px; }
.y-source h2 { color: #fff; font-size: 14px; margin-bottom: 6px; }
.y-source a { text-decoration: underline; }

/* ---------- phone ---------- */
@media (max-width: 960px) {
  .y-hero__grid, .y-film__grid, .y-waybill-grid, .y-crew__grid, .y-faq__grid, .y-cta__grid { grid-template-columns: 1fr; }
  .y-pass { grid-template-columns: 1fr; }
  .y-pass__stub { border-left: 0; border-top: 3px dashed var(--y-paper); flex-direction: row; flex-wrap: wrap; }
  .y-pass__stub::before { left: -17px; top: -19px; }
  .y-pass__stub::after { bottom: auto; left: auto; right: -17px; top: -19px; }
  .y-barcode { flex: 1 1 100%; height: 40px; }
}
@media (max-width: 760px) {
  .y-runway { grid-template-columns: repeat(2, 1fr); }
  .y-runway li:nth-child(2) { border-right: 0; }
  .y-runway li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .y-pass dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .y-build__grid { display: block; }
  .y-stage { aspect-ratio: auto; height: 38vh; height: 38svh; margin: 0 -20px; top: var(--bk-top); z-index: 3; border-radius: 0; }
  .y-step { min-height: 62vh; min-height: 62svh; }
  .y-leg { grid-template-columns: 1fr; gap: 10px; }
  .y-leg__tag { position: static; display: flex; align-items: baseline; gap: 14px; }
  .y-leg__tag b { font-size: 44px; }
  .y-gates { grid-template-columns: 1fr; }
  .y-box__grid { grid-template-columns: 1fr; }
  .y-box__grid figure:first-child { grid-row: auto; }
  .y-box__text { columns: 1; }
  .y-board__row { grid-template-columns: 1fr; gap: 6px; }
  .y-hero__actions .bk-btn { flex: 1 1 100%; justify-content: center; }
  .y-hero__main { font-size: clamp(30px, 8.4vw, 40px); }
  .y-hero__main .y-nw { white-space: normal; }
  .y-hero__grid > * { min-width: 0; }
  .y-waybill { transform: rotate(-1deg); }
  .y-stamp { height: 84px; width: 84px; font-size: 17px; right: 14px; top: 50px; }
}
