/* 产品平台 P3 · 广告内容平台：文案 + 竖屏播放器的双栏工作台
   作用域仅 .platform-overview.is-wenjing .ads-studio，不外溢到其它页面。 */

.platform-overview.is-wenjing .ads-studio {
  --ads-cyan: #6fe0ff;
  --ads-cyan-deep: #2a9fd6;
  --ads-line: #7ea9c0;
  --ads-ink: #f1f8fc;
  --ads-dim: #9fb8c8;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  padding: clamp(88px, 10vh, 116px) clamp(40px, 10vw, 180px) clamp(52px, 6.4vh, 76px);
  overflow: hidden;
  background: #03080d;
  color: var(--ads-ink);
  scroll-snap-align: start;
}

/* 底：深蓝空间 + 右侧冷光 + 细网格 */
.platform-overview.is-wenjing .ads-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 77% 46%, #1a5c8a6b 0, transparent 36%),
    radial-gradient(circle at 62% 108%, #14628a38 0, transparent 44%),
    radial-gradient(circle at 4% 6%, #163a533d 0, transparent 42%),
    linear-gradient(102deg, #03080d 0%, #040c14 44%, #061421 100%);
}

.platform-overview.is-wenjing .ads-field::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image:
    linear-gradient(#9cc7de1a 1px, transparent 1px),
    linear-gradient(90deg, #9cc7de16 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(108deg, #000 0%, #0000009e 34%, #0000 66%);
  mask-image: linear-gradient(108deg, #000 0%, #0000009e 34%, #0000 66%);
}

/* 两道光轨：从文案区横穿到画面区，把中间的留白接起来 */
.platform-overview.is-wenjing .ads-beam {
  position: absolute;
  right: 0;
  z-index: -1;
  height: 1px;
  width: 56%;
  pointer-events: none;
  background: linear-gradient(90deg, #6fe0ff00 0%, #6fe0ff6b 24%, #9ceeffc4 60%, #6fe0ff2e 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 88%, transparent);
  opacity: .7;
}

.platform-overview.is-wenjing .ads-beam-top { top: 16.5%; }
.platform-overview.is-wenjing .ads-beam-bottom { bottom: 15.5%; }

/* ---------- 左：无框文案区（直接落在背景里，靠排版与柔光承重） ---------- */
.platform-overview.is-wenjing .ads-card {
  position: relative;
  z-index: 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* 取代卡片"围合感"的，是身后一片几乎看不出边界的柔光 */
.platform-overview.is-wenjing .ads-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -58% -12% -62% -46%;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 58% 50% at 40% 44%, #2b7ba844 0%, #16547a1c 48%, transparent 78%),
    radial-gradient(ellipse 50% 46% at 4% 2%, #358bbd26 0%, transparent 76%),
    radial-gradient(ellipse 44% 38% at 34% 102%, #1d6f9c22 0%, transparent 80%);
  filter: blur(40px);
}

.platform-overview.is-wenjing .ads-card::after { content: none; }

/* 文案区排版：与短剧创作平台（P2）同一套规格，内容各自独立 */
.platform-overview.is-wenjing .ads-card h2 {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 4.5vw, 86px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.095em;
}

.platform-overview.is-wenjing .ads-lead {
  position: relative;
  max-width: 365px;
  margin: 28px 0 0;
  color: #c6d4df;
  font-size: 16px;
  line-height: 2.05;
}

.platform-overview.is-wenjing .ads-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding: 17px 22px;
  border: 1px solid #3786ff;
  border-radius: 0;
  background: #1769ee;
  color: #fff;
  font-size: 13px;
  box-shadow: none;
  transition: transform .25s, background .25s;
}

.platform-overview.is-wenjing .ads-cta b {
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
}

.platform-overview.is-wenjing .ads-cta:hover {
  transform: translateY(-3px);
  background: #3985ff;
  box-shadow: none;
}

.platform-overview.is-wenjing .ads-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 68px;
  color: #8fa9ba;
  font: 13px/1.2 monospace;
  letter-spacing: .08em;
}

.platform-overview.is-wenjing .ads-tags span {
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #486376;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.platform-overview.is-wenjing .ads-tags span:first-child {
  padding-left: 0;
  border-left: 0;
}

/* ---------- 右：竖屏播放器 ---------- */
.platform-overview.is-wenjing .ads-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.1vw, 20px);
}

.platform-overview.is-wenjing .ads-stage::before {
  content: '';
  position: absolute;
  inset: -8% -6% -8% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 58% 50%, #2a9fd63d 0, transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.platform-overview.is-wenjing .ads-strip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
}

.platform-overview.is-wenjing .ads-strip button {
  position: relative;
  width: clamp(60px, 4.8vw, 78px);
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid #7ea9c02e;
  border-radius: 9px;
  overflow: hidden;
  background: #061420;
  opacity: .48;
  filter: saturate(.55) brightness(.85);
  transition: opacity .35s, filter .35s, border-color .35s, box-shadow .35s, transform .35s;
}

.platform-overview.is-wenjing .ads-strip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-overview.is-wenjing .ads-strip button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -22px 26px -18px #000f;
}

.platform-overview.is-wenjing .ads-strip button:hover {
  opacity: .8;
  filter: saturate(.85) brightness(.95);
}

.platform-overview.is-wenjing .ads-strip button.is-active {
  opacity: 1;
  filter: none;
  border-color: #6fe0ffcc;
  box-shadow: 0 0 0 1px #6fe0ff33, 0 0 24px #35b4ff66;
  transform: translateX(-3px);
}

.platform-overview.is-wenjing .ads-strip button.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 2px;
  border-radius: 2px;
  background: #bff3ff;
  box-shadow: 0 0 10px #6fe0ff;
}

.platform-overview.is-wenjing .ads-screen {
  position: relative;
  flex: 0 0 auto;
  width: min(clamp(268px, 25vw, 430px), calc((100svh - 206px) * .5625));
  aspect-ratio: 9 / 16;
  padding: 9px;
  border-radius: 22px;
  border: 1px solid #8beeffb8;
  background: linear-gradient(158deg, #163a52 0%, #0a1a27 48%, #040d15 100%);
  box-shadow:
    0 0 0 1px #06121b,
    0 0 0 2px #0b2a3d,
    0 0 26px #4cc7ff5c,
    0 0 72px #2a9fd652,
    0 0 140px #1f7fc03d,
    0 44px 90px #000000a6,
    inset 0 0 34px #4caaf72b;
}

/* 四角微光刻度 */
.platform-overview.is-wenjing .ads-screen::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, #d8f7ff, #d8f7ff) left 14% top 0/28px 1px no-repeat,
    linear-gradient(180deg, #d8f7ff, #d8f7ff) left 0 top 12%/1px 26px no-repeat,
    linear-gradient(90deg, #eafcff, #eafcff) right 14% bottom 0/28px 1px no-repeat,
    linear-gradient(180deg, #eafcff, #eafcff) right 0 bottom 12%/1px 26px no-repeat;
  opacity: .8;
}

.platform-overview.is-wenjing .ads-screen-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #061019;
}

.platform-overview.is-wenjing .ads-screen-inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #061019;
  filter: saturate(.94) contrast(1.05);
}

.platform-overview.is-wenjing .ads-screen-ui {
  position: absolute;
  inset: 9px;
  z-index: 4;
  border-radius: 15px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 12px 11px;
  background:
    linear-gradient(180deg, #020a1280 0%, transparent 22%),
    linear-gradient(0deg, #020a12b3 0%, transparent 26%);
}

.platform-overview.is-wenjing .ads-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border: 1px solid #9ccfe640;
  border-radius: 20px;
  background: #04121bab;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #dcecf7;
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1;
  transition: opacity .3s;
}

.platform-overview.is-wenjing .ads-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fe0ff;
  box-shadow: 0 0 8px #6fe0ff;
  animation: ads-rec 2.4s ease-in-out infinite;
}

.platform-overview.is-wenjing .ads-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.platform-overview.is-wenjing .ads-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid #cfe9f547;
  border-radius: 50%;
  background: #04121bb3;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #eaf9ff;
  transition: background .25s, border-color .25s, transform .25s;
}

.platform-overview.is-wenjing .ads-toggle:hover {
  background: #0b2c3fcc;
  border-color: #6fe0ff99;
  transform: scale(1.06);
}

.platform-overview.is-wenjing .ads-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.platform-overview.is-wenjing .ads-toggle .ads-ico-play { display: none; }

.platform-overview.is-wenjing .ads-stage.is-paused .ads-toggle .ads-ico-play { display: block; }
.platform-overview.is-wenjing .ads-stage.is-paused .ads-toggle .ads-ico-pause { display: none; }

.platform-overview.is-wenjing .ads-progress {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  border-radius: 3px;
  background: #ffffff2b;
  overflow: hidden;
}

.platform-overview.is-wenjing .ads-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a9fd6, #8cecff);
  box-shadow: 0 0 10px #6fe0ffb3;
  transition: width .18s linear;
}

/* 中央播放键 */
.platform-overview.is-wenjing .ads-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 15px;
}

.platform-overview.is-wenjing .ads-hit-core {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid #ffffff38;
  background: #04141ea6;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 30px #00000073, inset 0 1px 0 #ffffff2e;
  transition: opacity .3s, transform .3s;
}

.platform-overview.is-wenjing .ads-hit-core::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 17px solid #f2fbff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  filter: drop-shadow(0 0 8px #6fe0ff8c);
}

.platform-overview.is-wenjing .ads-stage:not(.is-paused) .ads-hit-core {
  opacity: 0;
  transform: scale(.9);
}

.platform-overview.is-wenjing .ads-stage:not(.is-paused) .ads-hit:hover .ads-hit-core {
  opacity: .85;
  transform: scale(1);
}

@keyframes ads-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* 入场：脚本加上 is-armed 才隐藏，没脚本时内容照常可见 */
.platform-overview.is-wenjing .ads-studio.is-armed:not(.is-in) .ads-card,
.platform-overview.is-wenjing .ads-studio.is-armed:not(.is-in) .ads-screen {
  opacity: 0;
}

.platform-overview.is-wenjing .ads-studio.is-in .ads-card {
  animation: ads-rise .8s cubic-bezier(.2, .8, .2, 1) both;
}

.platform-overview.is-wenjing .ads-studio.is-in .ads-screen {
  animation: ads-rise-lg .95s cubic-bezier(.2, .8, .2, 1) .16s both;
}

@keyframes ads-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes ads-rise-lg {
  from { opacity: 0; transform: translateY(26px) scale(.984); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .platform-overview.is-wenjing .ads-card,
  .platform-overview.is-wenjing .ads-screen {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .platform-overview.is-wenjing .ads-chip::before { animation: none; }
}

/* 桌面：整幕锁一屏 */
@media (min-width: 801px) {
  .platform-overview.is-wenjing .ads-studio {
    height: 100svh;
    max-height: none;
    box-sizing: border-box;
    scroll-snap-stop: always;
  }
}

/* 1360 以下：两栏收窄 */
@media (max-width: 1360px) and (min-width: 1101px) {
  .platform-overview.is-wenjing .ads-studio { gap: clamp(32px, 3.4vw, 52px); }
  .platform-overview.is-wenjing .ads-screen {
    width: min(clamp(240px, 24vw, 330px), calc((100svh - 200px) * .5625));
  }
  .platform-overview.is-wenjing .ads-strip button { width: 60px; }
}

/* 1100 以下：两栏继续收窄 */
@media (max-width: 1100px) and (min-width: 861px) {
  .platform-overview.is-wenjing .ads-studio {
    gap: 32px;
    padding: 92px 40px 56px;
  }
  .platform-overview.is-wenjing .ads-tags { margin-top: 44px; }
  .platform-overview.is-wenjing .ads-cta { margin-top: 30px; }
  .platform-overview.is-wenjing .ads-screen {
    width: min(clamp(220px, 24vw, 300px), calc((100svh - 196px) * .5625));
  }
  .platform-overview.is-wenjing .ads-strip button { width: 50px; }
}

/* 860 以下：单列 —— 文案 → 播放器 → 缩略条 */
@media (max-width: 860px) {
  .platform-overview.is-wenjing .ads-studio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    min-height: 100svh;
    height: auto;
    padding: 100px 24px 76px;
  }
  .platform-overview.is-wenjing .ads-card {
    order: 1;
    width: 100%;
    max-width: none;
  }
  .platform-overview.is-wenjing .ads-card h2 { font-size: 64px; }
  .platform-overview.is-wenjing .ads-lead { max-width: 500px; }
  .platform-overview.is-wenjing .ads-tags { margin-top: 42px; }
  .platform-overview.is-wenjing .ads-stage {
    order: 2;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }
  .platform-overview.is-wenjing .ads-screen {
    align-self: center;
    width: min(calc(100vw - 96px), 300px);
    padding: 8px;
    border-radius: 20px;
  }
  .platform-overview.is-wenjing .ads-strip {
    flex-direction: row;
    order: 2;
    justify-content: center;
  }
  .platform-overview.is-wenjing .ads-strip button { width: 46px; border-radius: 7px; }
  .platform-overview.is-wenjing .ads-strip button.is-active { transform: translateY(-2px); }
  .platform-overview.is-wenjing .ads-beam { display: none; }
}

@media (max-width: 540px) {
  .platform-overview.is-wenjing .ads-studio { padding: 94px 20px 68px; gap: 20px; }
  .platform-overview.is-wenjing .ads-card h2 { font-size: 51px; }
  .platform-overview.is-wenjing .ads-lead { font-size: 14px; line-height: 2; }
  .platform-overview.is-wenjing .ads-cta { margin-top: 30px; }
  .platform-overview.is-wenjing .ads-tags { margin-top: 38px; }
  .platform-overview.is-wenjing .ads-tags span { font-size: 11px; padding-inline: 8px; }
  .platform-overview.is-wenjing .ads-screen { width: min(calc(100vw - 88px), 264px); }
}
