/* 科目二(/kemu2/) / 科目三(/kemu3/) 教程页 */

.st-head { text-align: center; margin-bottom: 18px; }
.st-head h1 { font-size: 26px; margin-bottom: 6px; }
.st-sub { color: var(--text-sub); font-size: 14px; }

.st-tabs { display: inline-flex; gap: 6px; margin-top: 14px; background: var(--card);
  padding: 5px; border-radius: 999px; box-shadow: var(--shadow); }
.st-tab { padding: 7px 18px; border-radius: 999px; font-size: 14px; color: var(--text-sub);
  text-decoration: none; transition: background .15s, color .15s; }
.st-tab:hover { color: var(--blue); }
.st-tab.active { background: var(--blue); color: #fff; }

.st-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 22px; }

.st-sec { margin-bottom: 34px; }
/* 拆成单科页之后,页内不再有"科目二/科目三"两个大标题,只剩这一句导语 */
.st-sec-intro { color: var(--text-sub); font-size: 14.5px; margin-bottom: 18px; }
.st-sec-head { margin-bottom: 16px; }
.st-sec-head h2 { font-size: 21px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-sec-sub { font-size: 13px; font-weight: 400; color: var(--text-sub); }
.st-sec-head p { color: var(--text-sub); font-size: 14px; margin-top: 5px; }

.st-item { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 16px; }
.st-item h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.st-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-light);
  color: var(--blue); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }

/* 视频在左、图文在右;窄屏改成上下 */
.st-body { display: flex; gap: 20px; align-items: flex-start; }
.st-media { flex: none; width: 340px; }
.st-text { flex: 1; min-width: 0; }

.st-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  background: #1a1d21; border: 1px solid var(--border); display: block; }
.st-vtitle { font-size: 12.5px; color: var(--text-sub); margin-top: 6px; text-align: center; }
/* 钉的视频万一被作者删了,这一行是退路:同一项的搜索入口一直留着 */
.st-vtitle a { color: var(--blue); text-decoration: none; }
.st-vtitle a:hover { text-decoration: underline; }

/* 没配视频时的占位。不用灰底大方块 —— 那会让人以为页面坏了,
   写清楚"图文已完整"才不会白等。 */
.st-novideo { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  border: 1px dashed var(--border); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-sub); font-size: 14px; }
.st-novideo-ico { font-size: 26px; opacity: .5; }
.st-novideo em { font-size: 12px; font-style: normal; opacity: .75; }

/* ---- 后台钉了某个站外视频时的链接卡 ---- */
/* 不嵌对方的播放器:既受人家防盗链限制,也等于把对方的脚本和统计带进本站。 */
.st-vlink {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  border: 1px solid var(--border); background: linear-gradient(135deg, #1e293b, #334155);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; color: #fff; padding: 14px; text-align: center;
  transition: transform .08s, box-shadow .15s;
}
.st-vlink:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.st-vlink-play {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px;
}
.st-vlink-txt b { display: block; font-size: 14px; line-height: 1.5; }
.st-vlink-txt em { font-size: 11.5px; font-style: normal; opacity: .7; }

/* ---- 没配视频时:给这一项的视频搜索入口 ---- */
/* 比一个"筹备中"的空盒子有用得多:用户当场就能去看到教学视频。
   给的是搜索页而不是具体视频,理由见 inc/study-items.php 的 xc_study_video_links()。 */
.st-vsearch {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  border: 1px dashed var(--border); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; text-align: center;
}
.st-vsearch-ico { font-size: 24px; opacity: .55; }
.st-vsearch-t { font-size: 13.5px; color: var(--text); margin: 0; }
.st-vsearch-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.st-vsearch-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; color: var(--blue); text-decoration: none;
  transition: border-color .12s, background .12s;
}
.st-vsearch-btn:hover { border-color: var(--blue); background: var(--blue-light); }
.st-vsearch-tip { font-size: 11px; font-style: normal; color: var(--text-sub); opacity: .8; }

.st-goal { background: var(--blue-light); border-radius: 8px; padding: 10px 12px;
  font-size: 14.5px; color: #1e40af; margin-bottom: 14px; }
.st-goal strong { display: block; font-size: 12.5px; opacity: .8; margin-bottom: 2px; }

.st-text h4 { font-size: 14px; margin: 14px 0 7px; color: var(--text-sub); }
.st-steps { margin-left: 20px; }
.st-steps li { font-size: 14.5px; margin-bottom: 5px; }

.st-deduct { list-style: none; }
.st-deduct li { font-size: 14.5px; margin-bottom: 6px; display: flex; gap: 9px; align-items: flex-start; }
/* 徽标固定宽度,让右侧说明文字对齐成一列,扫读时快得多 */
.st-badge { flex: none; min-width: 56px; text-align: center; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 5px; margin-top: 2px;
  background: #fef3c7; color: #92400e; }
.st-badge.st-fail { background: var(--red-light); color: var(--red); }

.st-tip { margin-top: 14px; padding: 11px 13px; border-left: 3px solid var(--green);
  background: var(--green-light); border-radius: 0 8px 8px 0; font-size: 14px; }
.st-tip strong { display: block; margin-bottom: 3px; color: #15803d; font-size: 13px; }

.st-foot { text-align: center; color: var(--text-sub); font-size: 14px; margin-top: 8px; }
.st-foot a { color: var(--blue); text-decoration: none; }
.st-foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .st-body { flex-direction: column; }
  .st-media { width: 100%; }
  .st-item { padding: 16px 14px; }
}
