:root {
  color-scheme: light;
  --paper: #f2f6ff;
  --glass: rgba(255,255,255,.66);
  --glass-shadow: 0 12px 32px rgba(47,79,138,.08), inset 0 1px 0 rgba(255,255,255,.95);
  --ink: #17243c;
  --muted: #53627a;
  --line: #d5dfef;
  --blue: #235bc6;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  scrollbar-color: #a8afba var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 5% 10%, #dce9ff 0, transparent 52%), radial-gradient(ellipse at 96% 36%, #e4e2ff 0, transparent 45%), radial-gradient(ellipse at 45% 100%, #d9f1fb 0, transparent 58%), #f5f8ff; }
a { color: inherit; text-underline-offset: 5px; }
::selection { color: #163866; background: #dce8f8; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 4px; }
svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.topbar, main, footer { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.topbar { min-height: 88px; display: flex; align-items: center; gap: var(--space-md); border-bottom: 1px solid rgba(87,118,163,.16); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-ai { color: var(--blue); }
.brand strong { font-size: 22px; letter-spacing: -.035em; font-weight: 650; }
.header-label { color: var(--muted); font-size: 13px; padding-left: var(--space-md); border-left: 1px solid var(--line); }
.course-link { display: inline-flex; min-height: 40px; align-items: center; gap: 12px; margin-left: auto; padding: 0; color: var(--blue); font-size: 14px; text-decoration: none; }
.course-link:hover { color: var(--blue); }
.hero { padding: 64px 0 40px; }
.hero h1 { margin: 0; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.25; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.hero h1 span { color: var(--blue); display: inline-block; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: var(--space-md); }
.hero-intro { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; max-width: 65ch; }
.collection-note { margin: 0; flex-shrink: 0; font-size: 12px; line-height: 1.9; text-align: right; color: var(--muted); }
.collection-note span { display: block; }
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px; width: fit-content; max-width: 100%; background: rgba(255,255,255,.38); border-radius: 12px; box-shadow: inset 0 1px 0 #ffffffb3; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.category-nav a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s ease, color .2s ease; }
.category-nav a span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.category-nav a:hover, .category-nav a:focus-visible { color: var(--blue); background: #e5eeff; }
footer a:hover { color: var(--blue); }
.collection { padding: 48px 0 20px; }
.section-heading { display: flex; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; margin: 0; }
.section-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.project-card { min-width: 0; display: flex; flex-direction: column; text-decoration: none; background: transparent; border-radius: 12px; padding: 0; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease, background .3s ease; }
.project-card figure { margin: 0; aspect-ratio: 1.5; padding: 12px; background: #e4edfc; border-radius: 12px; box-shadow: 0 6px 18px #34537b0d, inset 0 1px 0 #ffffffd9; overflow: hidden; display: flex; align-items: center; }
.project-card figure img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 4px 12px #243f7814; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.card-ip figure { background: linear-gradient(135deg, #e0eaff, #e8e4fa); }
.card-song figure { background: linear-gradient(135deg, #d7edf7, #e3e8ff); }
.card-joy figure { background: linear-gradient(135deg, #d7e7fb, #e4f1f6); }
.card-sushi figure { background: linear-gradient(135deg, #dce7f3, #dce9ec); }
.card-english figure { background: linear-gradient(135deg, #e5e1ff, #e3ecff); }
.card-learning figure { background: linear-gradient(135deg, #d8edf5, #e4edf9); }
.card-kids figure { background: linear-gradient(135deg, #e8e4ff, #e5edff); }

.card-answers figure { background: linear-gradient(135deg, #dfe7fc, #e9e9f9); }
.project-card > div { display: flex; flex-direction: column; flex: 1; padding: 20px 0 8px; }
.project-card h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.project-card p { margin: 10px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-card strong { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 4px 0 0; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; font-weight: 500; color: var(--blue); }
.project-card:hover { transform: translateY(-3px); }
.project-card:hover figure img { transform: scale(1.025); }
.project-card:hover h3 { color: var(--blue); }
.project-card:hover strong svg { background: var(--blue); color: #fff; }
.project-card:active { transform: translateY(-1px); }
#course-materials { padding-bottom: 72px; }
#course-materials .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#course-materials .project-card { flex-direction: row; gap: 24px; padding: 24px 0 0; border-top: 1px solid var(--line); }
#course-materials figure { width: 42%; flex-shrink: 0; padding: 12px; align-self: flex-start; }
#course-materials .project-card > div { padding: 0; }
#course-materials .project-card h3 { font-size: 18px; }
#course-materials .project-card p { margin: 8px 0 16px; font-size: 13px; }
#course-materials .project-card strong { border: 0; padding-bottom: 0; }
footer { display: flex; align-items: center; gap: 24px; min-height: 104px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
footer p { margin: 0; }
footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
footer a:last-child { margin-left: auto; }
.footer-brand { font-size: 16px; font-weight: 650; color: var(--ink); }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 12px 16px; background: var(--ink); color: #fff; z-index: 2; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 960px) {
  .topbar, main, footer { width: calc(100% - 48px); }
  .hero { padding-top: 48px; }
  .project-grid { gap: 20px; }
  .project-card figure { padding: 12px; }
  #course-materials .project-card { flex-direction: column; gap: 20px; }
  #course-materials figure { width: 100%; }
}
@media (max-width: 640px) {
  .topbar, main, footer { width: calc(100% - 40px); }
  .topbar { min-height: 72px; gap: 12px; }
  .header-label { display: none; }
  .brand strong { font-size: 20px; }
  .course-link { font-size: 13px; gap: 6px; padding-inline: 0; }
  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: clamp(32px,9vw,40px); line-height: 1.4; }
  .hero h1 span { display: block; }
  .hero-bottom { margin-top: 16px; }
  .hero-intro { font-size: 14px; line-height: 1.9; }
  .desktop-break, .collection-note { display: none; }
  .category-nav { gap: 4px; width: 100%; display: grid; grid-template-columns: repeat(2,1fr); padding: 4px; border-radius: 12px; }
  .category-nav a { font-size: 13px; gap: 8px; padding-inline: 6px; border-radius: 8px; }
  .collection { padding-top: 36px; padding-bottom: 4px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading p { margin-top: 8px; }
  .project-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-card figure { padding: 12px; aspect-ratio: 1.6; }
  .project-card > div { padding: 20px 0 8px; }
  .project-card h3 { font-size: 19px; }
  .project-card p { margin-block: 8px 12px; }
  .project-card strong { padding-bottom: 4px; }
  #course-materials .project-grid { grid-template-columns: 1fr; }
  #course-materials .project-card { flex-direction: row; gap: 14px; padding: 20px 0 0; }
  #course-materials figure { width: 34%; padding: 6px; }
  #course-materials .project-card h3 { font-size: 16px; }
  #course-materials { padding-bottom: 40px; }
  footer { flex-wrap: wrap; gap: 4px 20px; padding-block: 20px; }
  footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.project-card strong svg { width: 32px; height: 32px; padding: 7px; background: #eaf1ff; border-radius: 50%; transition: background .2s ease, color .2s ease; }
.collection-note { padding-left: 24px; border-left: 1px solid var(--line); }
@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .category-nav { background: #fafdff; }
}

/* Purpose-made product covers: readable ideas at card size, not miniature pages. */
.project-card .concept-cover{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:25px 25px 22px;box-shadow:none;aspect-ratio:1.5;border-radius:12px}
.cover-wechat{background:#e0f0e8!important;color:#235f49}.cover-baidu{background:#e1eafa!important;color:#2e53a0}.cover-commerce{background:#f7e8dc!important;color:#8f4f2b}.cover-app{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.cover-app svg{width:25px;height:25px;stroke-width:2}.concept-line{font-size:23px;line-height:1.5;letter-spacing:-.025em;margin:14px 0 16px}.concept-line b{font-weight:600}.connection-map{display:flex;align-items:center;gap:9px;font-size:11px}.connection-map span{padding:7px 11px;background:#ffffff85;border-radius:6px}.connection-map i{height:1px;background:#78a18c;width:20px}.search-preview{display:flex;align-items:center;justify-content:space-between;background:#ffffffb8;padding:10px 12px;border-radius:7px;font-size:12px}.search-preview svg{width:18px;height:18px}.order-preview{display:flex;align-items:center;gap:10px;border-top:1px solid #dcbca7;padding-top:10px;font-size:10px}.order-preview strong{display:block;margin:0;padding:0;border:0;font-size:24px;color:inherit;font-weight:600;white-space:nowrap}.order-preview strong small{font-size:12px}.order-label{margin-left:auto;font-size:10px}
@media(min-width:641px) and (max-width:1000px){.project-card .concept-cover{padding:16px}.concept-line{font-size:18px;margin:10px 0}.cover-app{font-size:11px}.connection-map{gap:4px}.connection-map span{padding:6px}.connection-map i{width:8px}.order-preview{gap:5px}.order-label{display:none}}
@media(max-width:640px){.project-card .concept-cover{padding:24px;aspect-ratio:1.5}.concept-line{font-size:24px}}
.cover-app svg,.search-preview svg{fill:none}
