:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --ink: #07111f;
  --muted: #5d6b7c;
  --line: #d4dde9;
  --card: #ffffff;
  --soft: #eaf1fb;
  --accent: #0b55d9;
  --accent-dark: #07111f;
  --accent-soft: #dbeafe;
  --shadow: rgba(8, 22, 44, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(11, 85, 217, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 17, 31, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--card);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px) 52px;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  align-content: center;
  padding: clamp(72px, 10vw, 130px) 0 64px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-kicker span,
.section-title span,
.video-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(11, 85, 217, 0.24);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.entry-action,
.video-card a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  background: var(--card);
  color: var(--accent-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.entry-action:hover,
.video-card a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.entry-card,
.guide-panel,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px var(--shadow);
}

.entry-card {
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
}

.entry-card small {
  color: var(--muted);
  font-weight: 900;
}

.entry-card p,
.guide-panel p,
.steps span,
.video-card p {
  color: var(--muted);
  line-height: 1.62;
}

.entry-card p {
  margin-top: 10px;
}

.entry-card strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.entry-action {
  justify-self: start;
  margin-top: 24px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  overflow: hidden;
}

.video-thumb {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  background: var(--soft);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 24px;
  padding: 0 8px;
}

.video-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.video-body h3 {
  font-size: 17px;
}

.video-body p {
  font-size: 13px;
}

.video-card a {
  justify-self: start;
  min-height: 36px;
  margin-top: 4px;
  padding: 0 12px;
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: grid;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-copy {
  padding-right: 44px;
}

.modal-copy span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid rgba(11, 85, 217, 0.24);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.modal-copy p {
  margin-top: 8px;
  color: var(--muted);
}

.modal-panel img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.copy-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  width: min(1120px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 36px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 950;
}

@media (max-width: 780px) {
  .site-header,
  .entry-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .video-thumb {
    min-height: 148px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
