/* ==========================================================================
   vidtext · landing
   ========================================================================== */

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 104px 0 0;
  text-align: center;
  position: relative;
}

.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 { margin: 26px 0 0; }

.hero .lede {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(15px, 1.45vw, 17px);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 12px; height: 12px; opacity: .7; }

/* 标题背后的光，让文字"浮"起来。
   宽度必须跟随视口，否则 720px 的固定宽在手机上会撑出横向滚动条。 */
.hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 92vw);
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, .16), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* ---------------------------------------------------------------- 产品预览 */

.preview {
  margin: 66px auto 0;
  max-width: 1000px;
  perspective: 1800px;
  position: relative;
}

.preview-inner {
  transform: rotateX(7deg) scale(.985);
  transform-origin: 50% 0;
  transition: transform 1s var(--ease);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0D0D14, #08080C);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03),
    0 40px 120px -40px rgba(0, 0, 0, .95),
    0 0 90px -30px rgba(139, 92, 246, .35);
  overflow: hidden;
}

.preview:hover .preview-inner { transform: rotateX(0) scale(1); }

/* 顶部一条彩色描边，模拟"被光照到" */
.preview-inner::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 155, 255, .55), rgba(34, 211, 238, .4), transparent);
}

/* 底部渐隐，让预览"沉"进页面而不是硬切 */
.preview-fade {
  position: absolute;
  inset: auto 0 -1px;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--bg) 74%);
  pointer-events: none;
  z-index: 2;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}

.win-dots { display: flex; gap: 6px; }

.win-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.win-dots i:nth-child(1) { background: rgba(248, 113, 113, .55); }
.win-dots i:nth-child(2) { background: rgba(251, 191, 36, .5); }
.win-dots i:nth-child(3) { background: rgba(52, 211, 153, .5); }

.win-url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-4);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 12px;
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.win-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 372px;
  text-align: left;
}

.win-left {
  border-right: 1px solid var(--line);
  padding: 20px;
  background: rgba(255, 255, 255, .012);
}

.win-label {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}

.mock-input {
  background: #06060A;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 2;
  color: var(--ink-2);
  word-break: break-all;
  min-height: 116px;
}

.mock-input b { color: var(--ink-3); font-weight: 400; }

.mock-btn {
  margin-top: 14px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: #07070C;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
}

.mock-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.mock-opts span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(139, 92, 246, .3);
  background: rgba(139, 92, 246, .1);
  color: #C4B0FF;
}

.win-right { padding: 18px 20px; }

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mock-head .ttl { font-size: 12.5px; color: var(--ink-2); }
.mock-head .ttl b { color: var(--ink); font-weight: 600; }

.mock-bar {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  margin-bottom: 6px;
}

.mock-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(139, 92, 246, .8);
  width: 0;
  transition: width 1.6s var(--ease);
}

.preview-inner.live .mock-bar i { width: var(--p, 100%); }

.mock-list { display: flex; flex-direction: column; }

.mock-row {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.mock-row:last-child { border-bottom: 0; }

.mock-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 7px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .7);
}

.mock-dot.run {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(251, 191, 36, .7);
  animation: mock-pulse 1.5s infinite;
}

@keyframes mock-pulse { 50% { opacity: .3; } }

.mock-t {
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-m {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

.mock-s {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mock-row .tag { font-size: 10px; padding: 1px 6px; margin-top: 5px; }

/* ---------------------------------------------------------------- 数据条 */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }

/* 数字要说清楚是哪个入口的：200 是本地批处理，网页控制台一次 10 条 */
.metric-note { margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.metric .n {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9C9CAA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric .l {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 5px;
}

/* ---------------------------------------------------------------- 区块头 */

.sec { padding: 96px 0 0; }

.sec-head {
  max-width: 640px;
  margin-bottom: 46px;
}

.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head .lede { margin-top: 16px; }

.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease);
}

.card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card .h3 { margin-bottom: 8px; }

.card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.card .body {
  margin-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.c-span7 { grid-column: span 7; }
.c-span5 { grid-column: span 5; }
.c-span4 { grid-column: span 4; }
.c-span6 { grid-column: span 6; }

/* 卡内可视化：字幕流 */
.subs {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--ink-3);
  max-height: 158px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.subs div { display: flex; gap: 12px; }

.subs .t {
  color: var(--violet-2);
  opacity: .75;
  flex: 0 0 44px;
  font-variant-numeric: tabular-nums;
}

.subs .x { color: var(--ink-2); }
.subs .x em { font-style: normal; background: rgba(34, 211, 238, .14); color: #A5F3FC; border-radius: 3px; padding: 0 2px; }

/* 卡内可视化：章节时间轴 */
.timeline { display: flex; flex-direction: column; gap: 11px; }

.tl-row { display: flex; align-items: center; gap: 10px; }

.tl-row .k {
  font-family: var(--mono);
  color: var(--ink-4);
  flex: 0 0 38px;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* 轨道给出全长参照，填充表达这一段占多久 */
.tl-row .bar {
  flex: 1;
  min-width: 0;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.tl-row .bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(139, 92, 246, .9), rgba(139, 92, 246, .28));
}

.tl-row:nth-child(2) .bar i { background: linear-gradient(90deg, rgba(34, 211, 238, .85), rgba(34, 211, 238, .22)); }
.tl-row:nth-child(3) .bar i { background: linear-gradient(90deg, rgba(244, 114, 182, .8), rgba(244, 114, 182, .2)); }
.tl-row:nth-child(4) .bar i { background: linear-gradient(90deg, rgba(52, 211, 153, .8), rgba(52, 211, 153, .2)); }

.tl-row .n { flex: 0 0 auto; color: var(--ink-2); font-size: 11px; white-space: nowrap; }

/* 卡内可视化：表格 */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: var(--mono);
}

.mini-table th {
  text-align: left;
  color: var(--ink-4);
  font-weight: 400;
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mini-table td {
  padding: 7px 8px 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .ok { color: var(--green); }

/* 卡内可视化：错误提示 */
.err-demo {
  font-size: 12px;
  color: var(--ink-2);
  background: rgba(248, 113, 113, .07);
  border: 1px solid rgba(248, 113, 113, .2);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  line-height: 1.55;
}

.err-demo .c {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #FCA5A5;
  display: block;
  margin-bottom: 3px;
}

/* ---------------------------------------------------------------- 对比 */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cmp {
  padding: 28px;
}

.cmp-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
}

.cmp-head .ic {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.cmp-bad .ic { background: rgba(255, 255, 255, .06); color: var(--ink-3); border: 1px solid var(--line-2); }
.cmp-good {
  background: linear-gradient(180deg, rgba(139, 92, 246, .1), rgba(34, 211, 238, .04));
  border-color: rgba(180, 155, 255, .28);
}
.cmp-good .ic {
  background: linear-gradient(140deg, var(--violet), var(--cyan));
  color: #fff;
  box-shadow: 0 0 16px -3px rgba(139, 92, 246, .8);
}

.cmp li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.cmp li:last-child { border-bottom: 0; }

.cmp li i {
  flex: 0 0 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
  line-height: 1;
}

.cmp-bad li i {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}
.cmp-good li i { background: rgba(52, 211, 153, .14); color: var(--green); }

.cmp-good li { color: var(--ink); }

/* ---------------------------------------------------------------- 定价 */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.plan {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: rgba(180, 155, 255, .34);
  background: linear-gradient(180deg, rgba(139, 92, 246, .13), rgba(255, 255, 255, .018) 42%);
  box-shadow: 0 24px 70px -40px rgba(139, 92, 246, .9);
}

.plan.featured::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 155, 255, .9), transparent);
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.plan-badge {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  color: #fff;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 4px;
}

.price .cur { font-size: 17px; color: var(--ink-3); font-weight: 500; }
.price .num { font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.price .per { font-size: 12.5px; color: var(--ink-4); }

.plan-desc { font-size: 12.5px; color: var(--ink-3); min-height: 34px; }

.plan ul { margin: 20px 0 24px; }

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 5px 0;
}

.plan li svg { flex: 0 0 14px; height: 14px; margin-top: 4px; color: var(--violet-2); }

.plan .btn { width: 100%; margin-top: auto; }

/* ---------------------------------------------------------------- FAQ */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color .18s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--violet-2); }

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-3);
  transition: transform .28s var(--ease), color .2s;
  flex: 0 0 auto;
}

.faq-item[open] summary::after { transform: rotate(45deg); color: var(--violet-2); }

.faq-body {
  padding: 0 40px 22px 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.72;
}

/* ---------------------------------------------------------------- 收尾 CTA */

.final {
  position: relative;
  margin-top: 100px;
  padding: 78px 40px;
  text-align: center;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(139, 92, 246, .2), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  overflow: hidden;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 155, 255, .6), transparent);
}

.final h2 { max-width: 620px; margin: 0 auto; }
.final .lede { max-width: 480px; margin: 18px auto 0; }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1000px) {
  .win-body { grid-template-columns: 280px 1fr; }
  .c-span7, .c-span5 { grid-column: span 12; }
  .c-span4 { grid-column: span 6; }
  .c-span6 { grid-column: span 12; }
}

@media (max-width: 860px) {
  .hero { padding-top: 72px; }
  .preview { margin-top: 48px; }
  .preview-inner { transform: none; }
  .win-body { grid-template-columns: 1fr; }
  .win-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--line); }
  .compare { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .sec { padding-top: 72px; }
  .final { padding: 56px 24px; margin-top: 72px; }
}

@media (max-width: 560px) {
  .c-span4 { grid-column: span 12; }
  .mock-input { font-size: 10.5px; }
}
