:root {
  --ink: #1d2735;
  --muted: #6c7786;
  --blue: #2672d9;
  --line: #dfe4ea;
  --paper: rgba(255, 255, 255, 0.9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f8fafc;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
body.modal-open { overflow: hidden; }
button { font: inherit; }

.video-page {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 14px 0 36px;
}
.site-header { display: flex; justify-content: center; padding: 0 0 16px; }
.page-logo { display: block; width: min(170px, 48vw); height: auto; }

.intro-section,
.tutorial-section {
  padding: 20px 26px 24px;
  border: 0;
  background: transparent;
}
.section-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); text-align: center; }
.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.section-heading h1,
.section-heading h2 { margin: 0; color: #182434; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.intro-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.46fr) minmax(0, 0.54fr);
  gap: 24px;
  padding-top: 20px;
  align-items: stretch;
}
.intro-video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  justify-self: start;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d6dde6;
  background: #0f1722;
  box-shadow: 0 12px 28px rgba(43, 59, 80, 0.1);
  cursor: pointer;
}
.intro-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform 0.25s ease;
}
.intro-video::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 37, 60, 0);
  transition: background 0.2s ease;
}
.intro-play-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 45, 75, 0.5);
  box-shadow: 0 5px 18px rgba(22, 43, 71, 0.2);
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.intro-play-button svg { width: 17px; height: 17px; margin-left: 2px; }
.intro-video:hover::after { background: rgba(20, 37, 60, 0.12); }
.intro-video:hover img { transform: scale(1.025); }
.intro-video:hover .intro-play-button { background: rgba(38, 114, 217, 0.82); transform: scale(1.08); }
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}
.feature-list p {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #e7ebef;
  font-size: 12px;
  line-height: 1.45;
}
.feature-list strong { color: var(--blue); font-size: 12px; font-weight: 700; }

.section-heading--tutorial p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; padding-top: 20px; }
.video-card { display: block; min-width: 0; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.video-cover { position: relative; display: block; overflow: hidden; aspect-ratio: 1.955 / 1; border: 1px solid #d9e0e8; background: #e8edf3; }
.video-cover::after { position: absolute; inset: 0; content: ""; background: rgba(20, 37, 60, 0); transition: background 0.2s ease; }
.video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.play-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(22, 45, 75, 0.42);
  box-shadow: 0 3px 10px rgba(22, 43, 71, 0.18);
  backdrop-filter: blur(4px);
  opacity: 0.86;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.play-button svg { width: 15px; height: 15px; margin-left: 2px; }
.video-card:hover .video-cover::after { background: rgba(20, 37, 60, 0.1); }
.video-card:hover .video-cover img { transform: scale(1.025); }
.video-card:hover .play-button { opacity: 1; background: rgba(38, 114, 217, 0.8); transform: scale(1.08); }
.video-copy { display: block; padding-top: 8px; }
.video-copy small { display: block; color: var(--blue); font-size: 12px; font-weight: 700; }
.video-copy strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.3; }

.video-modal { position: fixed; inset: 0; z-index: 10; display: grid; padding: 24px; place-items: center; }
.video-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8, 16, 29, 0.78); }
.modal-dialog { position: relative; width: min(1000px, 92vw); overflow: hidden; border-radius: 6px; background: #111827; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35); }
.modal-head { display: flex; height: 58px; padding: 0 16px 0 22px; align-items: center; color: #fff; }
.modal-head h2 { flex: 1; margin: 0; font-size: 17px; }
.modal-head button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 0; border-radius: 5px; color: #fff; background: transparent; cursor: pointer; }
.modal-head button:hover { background: rgba(255, 255, 255, 0.1); }
.modal-dialog video { display: block; width: 100%; max-height: calc(100vh - 140px); aspect-ratio: 1.955 / 1; background: #000; }

@media (max-width: 1199px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .intro-layout { grid-template-columns: 1fr; align-items: start; }
  .intro-video { width: 100%; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .video-page { width: min(100% - 28px, 520px); padding-top: 18px; }
  .intro-section, .tutorial-section { padding: 24px 18px 28px; }
  .intro-layout { gap: 22px; padding-top: 24px; }
  .feature-list { grid-template-columns: 1fr; }
  .tutorial-section { margin-top: 18px; }
  .video-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 26px; }
  .video-modal { padding: 12px; }
  .modal-dialog { width: calc(100vw - 24px); }
}
