:root {
  color-scheme: light;
  --ink: #10233d; --muted: #485d75; --line: #d8e2ed;
  --blue: #1559c7; --soft: #f1f6fc; --paper: #fff; --surface: #f8fafd;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none; text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
a, summary { touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(100% - 64px, 1180px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: -70px; left: 12px; padding: 10px; background: white; }
.skip:focus { top: 6px; }
header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, header nav, footer nav, .brand, .actions { display: flex; align-items: center; }
.header-inner { min-height: 76px; gap: 28px; position: relative; }
.brand { gap: 10px; min-width: 0; font-size: 21px; font-weight: 750; letter-spacing: -.04em; }
.brand span { overflow-wrap: anywhere; }
.brand img { flex: none; }
header nav { flex-wrap: wrap; margin-left: auto; gap: 24px; }
nav a, .login, summary { font-size: 15px; font-weight: 520; }
nav a, .login { padding-block: 11px; }
nav a:hover, nav a[aria-current="page"], .textlink:hover, .login:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .28em; }
.login { padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; }
.mobile-nav { display: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: clamp(50px, 7vw, 94px); }
.hero.with-photo .hero-inner { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(28px, 5vw, 75px); align-items: center; }
.hero-copy { max-width: 620px; }
h1 { font-size: clamp(40px, 4.5vw, 68px); line-height: 1.17; letter-spacing: -.045em; font-weight: 720; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { margin-top: 20px; max-width: 40em; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.8; }
.directory { padding-block: clamp(45px, 5.5vw, 88px); background: var(--surface); }
.directory h1 em { margin-left: .08em; }
.directory-intro { color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; margin-block: 16px 38px; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.project:hover { border-color: var(--blue); }
.project-image { position: relative; aspect-ratio: 1.94; background: #e6eef9; }
.project-image img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 20px; object-fit: contain; }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 22px; }
.project h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.35; }
.project p { margin-block: 8px 18px; color: var(--muted); line-height: 1.65; }
.project-link { color: var(--blue); font-weight: 650; margin-top: auto; }
.project:hover .project-link, .product-trail a:hover { text-decoration: underline; text-underline-offset: .25em; }
.product-trail a { display: inline-flex; align-items: center; min-height: 45px; color: var(--blue); }
.hero-copy .opening-note { font-weight: 600; color: var(--ink); }
.actions { flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.action { min-height: 44px; padding: 11px 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 620; border-radius: 8px; border: 1px solid #afbdce; background: var(--paper); }
.action:hover { border-color: var(--blue); color: var(--blue); }
.action.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.action.primary:hover { background: #124ba7; }
.product-photo { min-width: 0; position: relative; padding: clamp(16px, 3vw, 36px); border-radius: 16px; background: #e6eef9; border: 1px solid #cbdbee; }
.product-photo img { width: 100%; display: block; height: auto; border: 1px solid #c8d6e8; border-radius: 9px; background: var(--paper); }
.product-photo figcaption { margin-top: 12px; color: #425773; font-size: 13px; }
.band { padding-block: clamp(36px, 5vw, 70px); }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(25px, 3vw, 38px); line-height: 1.35; margin-bottom: 24px; letter-spacing: -.035em; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) auto; gap: 20px; align-items: center; padding: 22px 2px; border-top: 1px solid var(--line); }
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-row h3 { font-size: clamp(18px, 1.65vw, 23px); }
.product-row > span { font-size: 22px; color: var(--blue); }
a.product-row:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature { border-top: 2px solid var(--line); padding-top: 18px; }
.feature h3, .prose h3, .steps strong { margin-bottom: 10px; font-size: 19px; }
.feature p, .product-row p, .prose p, .text, .steps p, .question p { color: var(--muted); line-height: 1.85; font-size: 16px; }
.prose, .text, .steps, .question { max-width: 53rem; }
.prose h3:not(:first-child) { margin-top: 22px; }
.textlink, .question a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .24em; }
.text + .textlink, .prose p + .textlink { display: inline-block; margin-top: 14px; }
.steps { margin: 0; padding-left: 1.65em; }
.steps li { margin-bottom: 16px; padding-left: 6px; }
.steps li::marker { color: var(--blue); font-weight: 700; }
.question { padding: 16px 0; border-top: 1px solid var(--line); }
.question summary, .mobile-nav summary { cursor: pointer; }
.question summary { font-size: 17px; font-weight: 650; }
.question[open] p { margin-top: 12px; }
footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; gap: 20px; min-height: 105px; }
footer nav { flex-wrap: wrap; gap: 20px; }
@media (max-width: 850px) {
  .wrap { width: min(100% - 40px, 1180px); }
  .header-inner { gap: 14px; }
  header nav { gap: 14px; }
  .hero.with-photo .hero-inner { gap: 22px; }
}
@media (max-width: 680px) {
  .directory { padding-block: 36px; }
  .directory h1 { font-size: clamp(28px, 7.8vw, 42px); }
  .directory-intro { margin-block: 12px 24px; }
  .projects { grid-template-columns: 1fr; gap: 12px; }
  .project { flex-direction: row-reverse; align-items: stretch; }
  .project-image { width: 29%; flex: none; aspect-ratio: auto; }
  .project-image img { padding: 7px; }
  .project-copy { padding: 15px; }
  .project h2 { font-size: 20px; }
  .project p { margin-block: 4px 8px; font-size: 14px; }
  .wrap { width: calc(100% - 32px); }
  .desktop-nav { display: none; }
  .header-inner { min-height: 62px; gap: 9px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand img { width: 30px; height: 30px; }
  .login { margin-left: auto; white-space: nowrap; font-size: 14px; padding-inline: 8px; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; padding: 12px 4px; white-space: nowrap; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; right: 0; top: 100%; z-index: 3; display: grid; gap: 0; background: var(--paper); min-width: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 14px; }
  .hero.with-photo .hero-inner, .features { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 38px; }
  .hero.with-photo .hero-inner { gap: 26px; }
  .hero-copy > p { margin-top: 14px; }
  .product-photo { padding: 14px; border-radius: 11px; }
  .product-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding-block: 18px; }
  .product-row > p { grid-row: 2; }
  .product-row > span { grid-row: 1 / 3; grid-column: 2; }
  .features { gap: 20px; }
  .footer-inner { flex-wrap: wrap; padding-block: 24px; }
  footer nav { column-gap: 15px; row-gap: 3px; }
}
@media (prefers-color-scheme: dark) {
  .project-image { background: #203653; }
  :root { color-scheme: dark; --ink: #e6edf7; --muted: #b6c4d8; --line: #354760; --blue: #8abaff; --soft: #132238; --paper: #101c2b; --surface: #15253a; }
  .action.primary { background: #2563c5; color: white; border-color: #377bdc; }
  .action.primary:hover { background: #235cae; }
  .product-photo { background: #203653; border-color: var(--line); }
  .product-photo figcaption { color: var(--muted); }
  .skip { background: var(--paper); }
}
