:root {
  --ink: #292833;
  --muted: #686775;
  --faint: #858391;
  --line: rgba(67, 61, 90, .14);
  --line-strong: rgba(67, 61, 90, .28);
  --night: #f7f5fb;
  --night-deep: #efecf8;
  --panel: #ffffff;
  --cyan: #3d8d8c;
  --cyan-strong: #3d8d8c;
  --violet: #7357d8;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
a { color: inherit; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 30; padding: 10px 13px; border: 1px solid var(--cyan); border-radius: 4px; background: var(--night-deep); color: var(--cyan); text-decoration: none; transform: translateY(-150%); }
.skip-link:focus-visible { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 227, 228, .42);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 22px rgba(115, 201, 200, .17);
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; font-weight: 600; letter-spacing: .04em; line-height: 1.35; }
.brand-copy span { color: var(--faint); font-size: 10px; letter-spacing: .12em; line-height: 1.3; }
.header-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--ink); }
.header-nav .header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--cyan);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(980px, calc(100% - 48px));
  min-height: 176px;
  margin: 0 auto;
  padding: 38px 0 28px;
  text-align: center;
}
.hero > * { position: relative; z-index: 1; }
.hero::after {
  display: none;
}
.hero-kicker { margin: 0 0 9px; color: var(--cyan); font-size: 10px; letter-spacing: .24em; line-height: 1.4; }
.hero h1 { max-width: 760px; margin: 0 auto; font-size: clamp(36px, 4vw, 52px); font-weight: 600; letter-spacing: 0; line-height: 1.08; }
.hero h1, .section-head h2, .card h3 { text-wrap: balance; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-lead { max-width: 560px; margin: 12px auto 0; color: #696876; font-size: 14px; line-height: 1.65; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 11px; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 5px; padding: 0 14px; font-size: 12px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.hero-primary { gap: 22px; border: 1px solid rgba(183, 231, 227, .44); background: rgba(183, 231, 227, .12); color: var(--cyan); }
.hero-primary:hover { border-color: rgba(183, 231, 227, .72); background: rgba(183, 231, 227, .18); }
.hero-secondary { border: 1px solid transparent; color: var(--muted); }
.hero-secondary:hover { color: var(--ink); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.hero-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--faint); font-size: 11px; }
.hero-meta span:first-child { border-color: rgba(183, 231, 227, .32); color: var(--cyan); }

.catalog-wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 68px; scroll-margin-top: 84px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.section-head p { margin: 0; color: #6d7d81; font-size: 13px; font-weight: 400; line-height: 1.4; }
.catalog-discovery { margin-bottom: 14px; border-block: 1px solid var(--line); }
.catalog-discovery:not([open]) { margin-bottom: 14px; }
.catalog-discovery summary { display: flex; align-items: center; min-height: 38px; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.5; list-style-position: inside; text-align: left; }
.catalog-discovery[open] { border-block: 1px solid var(--line); }
.catalog-discovery summary span { display: none; }
.catalog-discovery[open] summary { color: var(--cyan); }
.controls { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 10px; margin: 4px 0 12px; }
.search, .category { display: flex; align-items: center; gap: 8px; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .82); padding: 0 12px; color: var(--faint); font-size: 11px; }
.search input, .category select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.category > span { flex: 0 0 auto; white-space: nowrap; }
.category select { flex: 1 1 auto; width: auto; }
.search input::placeholder { color: #607277; }
.category select { cursor: pointer; }
.category select option { background: #f4f7f6; color: #192225; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filter { min-height: 36px; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 0 12px; color: var(--muted); font-size: 11px; }
.filter span { margin-left: 5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.filter:hover, .filter.is-active { border-color: rgba(183, 231, 227, .48); background: rgba(183, 231, 227, .10); color: var(--cyan); }
.filter.is-active span { color: var(--cyan); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-grid.is-empty { display: block; }
.empty { border-block: 1px solid var(--line); padding: 54px 0; }
.empty b { color: var(--cyan); font-size: 12px; letter-spacing: .14em; }
.empty h3 { margin: 12px 0 8px; font-size: 25px; font-weight: 550; }
.empty p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.empty button { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--cyan); padding: 0 15px; }

.card { --accent: var(--cyan-strong); display: grid; grid-template-rows: auto 1fr auto; min-width: 0; min-height: 226px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(72, 62, 104, .06); transition: border-color 160ms ease, box-shadow 160ms ease; }
.card:hover { border-color: rgba(115, 87, 216, .32); background: #fff; box-shadow: 0 12px 28px rgba(72, 62, 104, .11); }
.card.is-featured { border-color: rgba(23, 109, 112, .30); background: linear-gradient(125deg, rgba(255, 255, 255, .96), rgba(238, 246, 244, .90) 58%, rgba(242, 239, 250, .90)); }
.card-head { display: flex; align-items: center; justify-content: flex-start; min-height: 50px; padding: 0 16px; }
.card-icon { display: inline-grid; position: relative; top: 5px; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--accent); box-shadow: 0 6px 12px rgba(65, 65, 94, .16); transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease; }
  .card:has(.card-action[href]) { cursor: pointer; }
  .card:hover .card-icon { transform: translateY(-2px) scale(1.06); box-shadow: 0 9px 16px rgba(65, 65, 94, .22); filter: saturate(1.08); }
  .card-icon svg { width: 18px; height: 18px; color: rgba(255, 255, 255, .94); }
.card-icon.tone-blue { --accent: #4c81d7; }
.card-icon.tone-lime { --accent: #8fae2f; }
.card-icon.tone-jade, .card-icon.tone-emerald { --accent: #31a07c; }
.card-icon.tone-amber, .card-icon.tone-sand { --accent: #ef9d18; }
.card-icon.tone-coral, .card-icon.tone-red { --accent: #e34f6d; }
.card-icon.tone-sky, .card-icon.tone-cyan, .card-icon.tone-seafoam { --accent: #20a9c2; }
.card-icon.tone-indigo, .card-icon.tone-purple, .card-icon.tone-violet { --accent: #8052e9; }
.card-icon.tone-pink, .card-icon.tone-rose, .card-icon.tone-blush { --accent: #e54891; }
.card-icon.tone-graphite, .card-icon.tone-midnight, .card-icon.tone-silver { --accent: #6d7f95; }
.card-body { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 16px; }
.card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.card.is-featured h3 { font-size: 18px; }
.card-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 11px 0 0; color: #686775; font-size: 12.5px; line-height: 1.6; font-weight: 400; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; border-top: 1px solid var(--line); padding: 9px 16px 11px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; color: #68797e; font-size: 11px; font-weight: 400; line-height: 1.4; font-variant-numeric: tabular-nums; }
.card-meta span { white-space: nowrap; }
.card-meta span + span::before { content: "·"; margin-right: 8px; color: #53666b; }
.card-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 30px; border: 0; border-radius: 999px; background: rgba(111, 92, 168, .10); padding: 0 10px; color: var(--violet); font-size: 11px; font-weight: 600; line-height: 1.35; text-decoration: none; white-space: nowrap; }
.card-action:hover { background: rgba(111, 92, 168, .18); }
.card-action b { font-size: 18px; font-weight: 400; }
.card-action.disabled { color: var(--faint); cursor: not-allowed; }
.card-action.resume { color: var(--violet); }

.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .62); }
.footer-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: start; gap: 24px; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 24px 0 28px; }
.footer-brand { color: var(--cyan); font-weight: 600; line-height: 1.4; }
.footer-inner p { max-width: 620px; margin: 0; color: var(--faint); font-size: 12px; line-height: 1.8; }
.footer-inner a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-inner a:hover { color: var(--cyan); }

@media (min-width: 901px) {
  .card { min-height: 226px; }
  .card-summary { font-size: 12.5px; line-height: 1.6; }
  .section-head { position: relative; justify-content: center; }
  .section-head > div { display: flex; align-items: center; width: 100%; gap: 16px; }
  .section-head > div::before, .section-head > div::after { flex: 1; border-top: 1px solid var(--line); content: ""; }
  .section-head p { position: absolute; right: 0; bottom: 0; }
}

@media (max-width: 900px) {
  .hero-lead { max-width: 500px; position: relative; z-index: 2; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 180px minmax(0, 1fr); }
  .footer-inner a { grid-column: 2; }
}
@media (max-width: 640px) {
  .header-inner, .hero, .catalog-wrap, .footer-inner { width: calc(100vw - 32px); max-width: var(--max); }
  .header-inner { min-height: 62px; }
  .header-nav a:not(.header-cta) { display: none; }
  .header-nav { gap: 8px; }
  .header-nav .header-cta { padding: 8px 11px; }
  .hero { min-height: 166px; padding: 30px 0 22px; }
  .hero h1 { max-width: none; font-size: 34px; line-height: 1.1; }
  .hero-lead { width: min(100%, 320px); max-width: 320px; margin-top: 9px; overflow-wrap: anywhere; word-break: break-word; white-space: normal; font-size: 13px; line-height: 1.6; }
  .hero-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; width: calc(100vw - 32px); max-width: calc(100vw - 32px); min-width: 0; margin-top: 13px; }
  .hero-actions a { width: 100%; min-height: 44px; }
  .hero-primary, .hero-secondary { flex: none; }
  .hero-meta { margin-top: 14px; }
  .section-head { display: grid; gap: 8px; }
  .controls { grid-template-columns: minmax(0, 1fr); width: calc(100vw - 32px); max-width: calc(100vw - 32px); min-width: 0; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 32px); max-width: calc(100vw - 32px); gap: 6px; }
  .search, .category, .filter, .card-action { min-height: 44px; }
  .filter { width: 100%; padding: 0 10px; text-align: left; }
  .catalog-grid { grid-template-columns: 1fr; width: calc(100vw - 32px); max-width: calc(100vw - 32px); gap: 10px; }
  .card { min-height: 0; }
  .card.is-featured { min-height: 0; }
  .card-head { min-height: 44px; padding-inline: 13px; }
  .card.is-featured h3 { font-size: 18px; }
  .card-body { justify-content: flex-start; padding: 14px 13px 16px; }
  .card-footer { gap: 6px; padding: 8px 13px 10px; }
  .card-meta { min-width: 0; font-size: 10px; }
  .card-action { min-width: 0; max-width: 48%; padding-inline: 9px; font-size: 10px; }
  .card-action span { overflow: hidden; text-overflow: ellipsis; }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; padding-bottom: 22px; }
  .footer-inner a { grid-column: auto; }
}
  @media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
