:root {
  color-scheme: light;
  --ink: #102244;
  --muted: #4a5d79;
  --line: #dbe6f5;
  --blue: #164990;
  --paper: #f7faff;
  --white: #fff;
  --heading: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --body: system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1b65b7; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { max-width: 1140px; width: calc(100% - 64px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-180%); z-index: 1; background: var(--white); padding: 8px 14px; }
.skip:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .footer { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 12px 24px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-size: 1rem; font-weight: 760; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 3px; transform: rotate(-13deg); }
.brand-mark i { border-radius: 2px; background: #226eca; }
.brand-mark i:nth-child(2) { background: #6da6e9; }
.brand-mark i:nth-child(3) { background: #90b8f1; }
.brand-mark i:nth-child(4) { background: #f3a45d; }
nav { display: flex; gap: clamp(16px, 3vw, 35px); }
nav a { font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 83% 20%, #fdf0e5 0, transparent 40%), linear-gradient(119deg, #f9fcff, #edf5ff); border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 427px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; padding-block: 35px; }
.hero-copy { padding-block: 12px; }
.section-label { color: #1d548f; font-size: .88rem; font-weight: 720; letter-spacing: .09em; }
.hero h1 { font-size: clamp(2.65rem, 5.7vw, 4.85rem); line-height: 1.12; letter-spacing: -.075em; margin-top: 13px; }
.hero-summary { color: var(--muted); max-width: 26rem; font-size: 1.04rem; margin-top: 18px; }
.hero-link { display: inline-flex; align-items: center; min-height: 45px; padding: 8px 16px; margin-top: 23px; border-radius: 8px; background: #174e98; color: #fff; font-size: .94rem; font-weight: 690; text-decoration: none; }
.hero-link:hover { background: #103d7b; }
.hero-art { display: block; width: 100%; height: auto; border-radius: 19px; box-shadow: 0 18px 45px #335a9630; }

.directions { padding-block: 47px 56px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; }
.section-heading h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.3; letter-spacing: -.055em; }
.section-heading p { color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.course { --icon-ink: #1b61ac; --icon-bg: #eaf3ff; min-width: 0; min-height: 224px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: 0 6px 18px #233e6a08; }
.course.warm { --icon-ink: #9b4d13; --icon-bg: #fff0e2; }
.course:target { border-color: #6497d8; box-shadow: 0 0 0 3px #b7d6fc85; }
.course h3 { font-size: 1.24rem; line-height: 1.36; letter-spacing: -.02em; margin-top: 11px; }
.course > p { color: var(--muted); min-height: 3.3em; margin: 6px 0 12px; }
.course-icon { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--icon-bg); color: var(--icon-ink); }
.course-icon::before, .course-icon::after, .course-icon i { position: absolute; display: block; content: ""; }
.workbench-icon::before, .development-icon::before { width: 20px; height: 16px; border: 1.7px solid currentColor; border-radius: 3px; top: 10px; }
.workbench-icon::after { width: 20px; height: 2px; background: currentColor; top: 29px; border-radius: 2px; }
.video-icon::before { width: 21px; height: 16px; border: 1.7px solid currentColor; border-radius: 4px; }
.video-icon::after { border: 4px solid transparent; border-left: 6px solid currentColor; transform: translateX(2px); }
.toolchain-icon::before, .toolchain-icon::after { width: 12px; height: 8px; border: 1.7px solid currentColor; transform: rotate(-40deg); border-radius: 6px; }
.toolchain-icon::before { top: 18px; left: 9px; }
.toolchain-icon::after { top: 13px; right: 9px; }
.knowledge-icon::before { width: 18px; height: 17px; border: 1.7px solid currentColor; border-radius: 3px; top: 9px; }
.knowledge-icon::after { width: 15px; height: 4px; border: 1.7px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; top: 27px; }
.knowledge-icon i { width: 8px; height: 1.5px; background: currentColor; left: 16px; top: 16px; box-shadow: 0 4px currentColor; }
.development-icon::after { width: 19px; height: 1.6px; background: currentColor; top: 15px; }
.development-icon i { width: 11px; height: 7px; border: 1.4px solid currentColor; border-radius: 2px; top: 21px; left: 18px; background: var(--icon-bg); }
.agent-icon::before { width: 18px; height: 2px; background: currentColor; top: 25px; }
.agent-icon::after { width: 15px; height: 2px; background: currentColor; top: 18px; left: 11px; transform: rotate(-50deg); box-shadow: 6px 7px 0 -0.1px currentColor; }
.agent-icon i { z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: currentColor; left: 17px; top: 10px; box-shadow: -8px 13px currentColor, 8px 13px currentColor; }

.case-links { display: flex; gap: 6px 12px; flex-wrap: wrap; margin: 0 0 12px; }
.case-link { font-size: .88rem; font-weight: 700; color: var(--blue); text-underline-offset: 3px; }
.case-link.secondary { font-weight: 550; }
.course details { border-top: 1px solid var(--line); padding-top: 9px; }
.course summary { display: inline-block; list-style: none; position: relative; cursor: pointer; color: var(--blue); font-size: .9rem; font-weight: 700; padding-right: 19px; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { position: absolute; content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; right: 3px; top: 8px; transform: rotate(45deg); }
.course details[open] summary::after { top: 11px; transform: rotate(225deg); }
.course details p { color: var(--muted); margin-top: 6px; }
.footer { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); flex-wrap: wrap; padding-block: 18px; }

@media (max-width: 920px) {
  .hero-inner { min-height: 365px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 27px; }
  .hero-copy { padding-block: 0; }
  .hero-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
  .hero-summary { margin-top: 12px; }
  .hero-link { margin-top: 15px; }
  .directions { padding-block: 31px 43px; }
  .course-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .course { min-height: auto; }
  .course > p { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
