/* Shared case detail template. */

.case-detail-simple {
  padding-block: 40px 96px;
}

.case-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--blue);
}

.case-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.case-detail-heading h1 {
  font-size: 48px;
  letter-spacing: -.4px;
  line-height: 1.25;
  margin-bottom: 24px;
}

.case-detail-heading .eyebrow {
  margin-bottom: 16px;
}

.copy-link {
  font-size: 13px;
  flex-shrink: 0;
}

.case-detail-cover {
  width: 100%;
}

.case-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-case-cover {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 4%;
  min-height: 560px;
  padding: 5%;
  box-sizing: border-box;
  color: #fff;
  background: #8d4f7e url("/static/img/images/cases/taobao-live-starlight/cover-background.png") center / cover no-repeat;
}

.shared-case-cover-copy .tag-row {
  gap: 8px;
  margin-bottom: 20px;
}

.shared-case-cover-copy .tag {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
}

.shared-case-cover-copy h2 {
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.25;
}

.shared-case-cover-copy p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.7;
}

.shared-case-cover-images {
  display: grid;
  gap: 18px;
}

.shared-case-cover-images img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(35, 17, 52, .28);
}

.case-related-simple {
  padding-top: 80px;
}

.case-related-simple h2 {
  font-size: 32px;
}

.case-related-simple .section-head {
  margin-bottom: 32px;
}

.case-video-block {
  padding: 72px 0 0;
}

.case-video-block h2 {
  margin-bottom: 24px;
}

.case-video {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0a0a0a;
  box-shadow: 0 18px 46px rgb(15 30 50 / 14%);
}

.case-body-content {
  max-width: 960px;
  margin: 56px auto 0;
  color: #303035;
  font-size: 18px;
  line-height: 1.7;
}

.case-body-content p {
  margin: 0 0 28px;
}

.case-body-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 12px;
}

.video-link-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 16px;
  color: var(--blue);
}

.video-link-card>span {
  grid-row: 1/3;
  align-self: center;
}

.video-link-card small {
  color: var(--muted);
}

@media (hover:hover) {
  .case-back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

@media (max-width:833px) {
  .case-detail-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .case-detail-heading h1 {
    font-size: 40px;
  }
  .case-related-simple .compact {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px) {
  .case-related-simple .compact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case-detail-simple {
    padding-block: 24px 56px;
  }
  .case-detail-heading h1 {
    font-size: 30px;
  }
  .case-related-simple {
    padding-top: 56px;
  }
  .case-video-block {
    padding-top: 48px;
  }
  .case-body-content {
    margin-top: 40px;
    font-size: 16px;
  }
  .case-related-simple h2 {
    font-size: 28px;
  }
}

main .case-detail-simple {
  padding: 38px 0 96px;
}

main .case-detail-heading {
  display: block;
  max-width: 960px;
  margin: 8px auto 28px;
  text-align: center;
}

main .case-detail-heading .eyebrow {
  color: #6e6e73;
}

main .case-detail-heading h1 {
  font-size: clamp(48px,6vw,68px);
  margin: 18px 0 22px;
}

main .case-detail-heading .case-heading-tags {
  max-width: 800px;
  justify-content: center;
  margin: 16px auto 0;
}
main .case-detail-heading .tag-row .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #e5e5e7;
  border-radius: 999px;
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
main .case-detail-heading .tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

main .case-detail-simple > .container > .media-disclaimer {
  text-align: center;
}

main .case-related-simple {
  padding-top: 88px;
}

main .case-related-simple .section-head {
  display: block;
  text-align: center;
}

main .case-related-simple .section-head .text-link,
main .case-related-simple .section-head .button {
  margin-top: 12px;
}

main .case-related-simple .case-related-description {
  margin: 0;
  color: #4f4f54;
}

main .case-related-simple .case-related-description .text-link {
  display: inline;
  margin: 0;
  white-space: nowrap;
}

main .case-related-simple .compact {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

main .case-related-simple .case-list-body h3,
main .service-related-block .case-list-body h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

main .case-related-simple .case-list-body h3::after,
main .service-related-block .case-list-body h3::after {
  content: "↗";
  flex: 0 0 auto;
  color: #0066cc;
  font-weight: 400;
}

@media (max-width: 720px) {
  main .case-detail-heading .case-heading-tags {
    margin-top: 14px;
  }

  .shared-case-cover {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 22px 16px;
    background-size: cover;
  }

  .shared-case-cover-copy {
    padding: 24px 20px;
    border-radius: 12px;
    background: #8d4f7e url("/static/img/images/cases/taobao-live-starlight/cover-background.png") center / cover no-repeat;
    box-shadow: 0 14px 30px rgba(35, 17, 52, .22);
  }

  .shared-case-cover-copy .tag-row {
    margin-bottom: 12px;
  }

  .shared-case-cover-copy h2 {
    font-size: 26px;
  }

  .shared-case-cover-copy p {
    font-size: 15px;
  }

  .shared-case-cover-images {
    gap: 16px;
  }

  .shared-case-cover-images img {
    border-radius: 12px;
  }

  main .case-detail-heading h1 {
    font-size: 38px;
  }

  main .case-related-simple .compact {
    grid-template-columns: 1fr;
  }
}

main .case-summary {
  max-width: 800px;
  margin: 0 auto;
  color: #4f4f54;
  font-size: 20px;
  line-height: 1.55;
}

main .case-facts {
  display: none;
}

main .case-facts div {
  display: grid;
  gap: 4px;
}

main .case-facts dt {
  color: #86868b;
  font-size: 12px;
}

main .case-facts dd {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 720px) {
  main .case-summary {
    font-size: 17px;
  }
  main .case-facts {
    gap: 24px;
    align-items: start;
  }
  main .case-facts dd {
    font-size: 13px;
  }
}

/* Layered project cover: background, content, device shell and app screens remain independently editable. */
.starlight-cover {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  aspect-ratio: 1924 / 1090;
  overflow: hidden;
  color: #fff;
  background: #8d4f7e var(--case-ppt-background, url("/static/img/images/cases/taobao-live-starlight/cover-background.png")) center / cover no-repeat;
}

.starlight-copy {
  position: absolute;
  z-index: 2;
  top: 9.5%;
  left: 2.95%;
  right: 54.8%;
}

.starlight-cover .starlight-logo {
  display: block;
  width: 44%;
  height: auto;
  margin-bottom: 1.4cqw;
}

.starlight-copy h2 {
  margin: 0 0 1.28cqw;
  color: inherit;
  font-size: 3cqw;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}

.starlight-meta {
  display: grid;
  gap: .58cqw;
  margin: 0 0 .58cqw;
  font-size: 1.35cqw;
  line-height: 1.25;
}

.starlight-meta div {
  display: flex;
  gap: .55em;
}

.starlight-meta dt::after {
  content: "：";
}

.starlight-meta dd {
  margin: 0;
}

.starlight-copy > p {
  width: 100%;
  margin: 0;
  font-size: 1.35cqw;
  line-height: 1.58;
}

.starlight-intro-label {
  font-size: 1em;
  font-weight: inherit;
}

.starlight-qr-area {
  position: absolute;
  z-index: 4;
  top: 65.8%;
  left: 2.95%;
  width: 11.3%;
}

.starlight-cover .starlight-qr {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.starlight-cover .starlight-qr[hidden] {
  display: none;
}

.starlight-dingtalk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  width: 100%;
  min-width: 0;
  margin-top: 9%;
  padding: .58em .4em;
  box-sizing: border-box;
  border-radius: .5em;
  color: #161616;
  background: #fff;
  font-size: 1.15cqw;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.starlight-cover .starlight-dingtalk img {
  display: block;
  width: 1.65em;
  height: 1.65em;
}

.starlight-phone {
  position: absolute;
  z-index: 1;
  width: 31.5%;
  aspect-ratio: 1211 / 2182;
}

.starlight-phone-primary {
  top: .55%;
  left: 43.1%;
}

.starlight-phone-secondary {
  top: .55%;
  left: 68.9%;
}

.starlight-shell,
.starlight-screen {
  position: absolute;
  display: block;
}

.starlight-cover .starlight-shell {
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
}

.starlight-cover .starlight-screen {
  z-index: 2;
  top: 6.4%;
  left: 14.9%;
  width: 73.2%;
  height: 87.2%;
  border-radius: 12.2% 12.2% 10.5% 10.5% / 7.2% 7.2% 5.5% 5.5%;
  object-fit: cover;
}

.starlight-mobile-video {
  display: none;
}

/* On small screens, prioritize readable information over a scaled-down poster. */
@media (max-width: 640px) {
  main .case-detail-heading {
    margin-bottom: 24px;
  }

  .starlight-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: auto;
    min-height: 0;
    padding: 0;
    color: #292431;
    background: #fff;
  }

  .starlight-copy {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: calc(100% - 32px);
    margin-top: 0;
    padding: 32px 7% 30px;
    box-sizing: border-box;
    border-radius: 12px;
    color: #fff;
    background: #8d4f7e var(--case-ppt-background, url("/static/img/images/cases/taobao-live-starlight/cover-background.png")) center / cover no-repeat;
    box-shadow: 0 14px 30px rgba(35, 17, 52, .28);
  }

  .starlight-copy h2 {
    display: none;
  }

  .starlight-cover .starlight-logo {
    display: none;
  }

  .starlight-cover .starlight-logo {
    width: 190px;
    margin-bottom: 15px;
  }

  .starlight-copy h2 {
    margin-bottom: 16px;
    font-size: 30px;
    line-height: 1.2;
  }

  .starlight-meta {
    gap: 7px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.25;
  }

  .starlight-copy > p {
    font-size: 15px;
    line-height: 1.65;
  }

  .starlight-mobile-video {
    display: none;
  }

  .starlight-qr-area {
    display: none;
  }

  .starlight-phone-primary,
  .starlight-phone-secondary {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: calc(100% - 32px);
    aspect-ratio: 210 / 454;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(35, 17, 52, .28);
    transform: none;
  }

  .starlight-phone-primary {
    margin-top: 40px;
  }

  .starlight-phone-secondary {
    display: block;
    margin: 24px 0 32px;
  }

  .starlight-cover .starlight-shell {
    display: none;
  }

  .starlight-cover .starlight-screen {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.case-rich-content { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
