:root {
      color-scheme: light;
      --paper: #f5fbf7;
      --paper-2: #e9f8f2;
      --ink: #073a33;
      --muted: #5d7f78;
      --teal: #05a7b2;
      --blue: #4cbddf;
      --mint: #8fe6bb;
      --lime: #b8ef55;
      --line: rgba(7, 58, 51, 0.13);
      --glass: rgba(255, 255, 255, 0.74);
      --shadow: 0 22px 70px rgba(5, 72, 82, 0.12);
    }

    * {
      box-sizing: border-box;
      letter-spacing: 0;
    }

    html,
    body {
      margin: 0;
      min-height: 100%;
    }

    body {
      min-height: 100vh;
      font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
      color: var(--ink);
      background:
        linear-gradient(120deg, #e5f7ee, #f5fbf7 48%, #e1f3f8);
      background-color: var(--paper);
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(rgba(7, 58, 51, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 58, 51, 0.035) 1px, transparent 1px);
      background-size: 58px 58px;
      mask-image: linear-gradient(to bottom, black, transparent 92%);
    }

    .shell {
      width: min(1320px, calc(100% - 64px));
      margin: 0 auto;
      padding: 24px 0 28px;
      position: relative;
      display: grid;
      gap: 24px;
    }

    .nav {
      position: relative;
      z-index: 20;
      display: grid;
      grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
      align-items: center;
      gap: 18px;
      border: 1px solid var(--line);
      background: var(--glass);
      backdrop-filter: blur(18px);
      border-radius: 18px;
      min-height: 68px;
      padding: 10px 18px;
      box-shadow: var(--shadow);
    }

    .brand {
      display: flex;
      align-items: center;
      height: 40px;
    }

    .brand img {
      width: 174px;
      max-width: 100%;
      height: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      justify-self: center;
    }

    .nav-link {
      height: 38px;
      min-width: 82px;
      padding: 0 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--muted);
      text-decoration: none;
      font-size: 15px;
      font-weight: 750;
      border-radius: 12px;
    }

    .nav-link svg {
      display: none;
    }

    .nav-link img {
      width: 18px;
      height: 18px;
      display: block;
    }

    .nav-link.active {
      color: var(--ink);
      background: rgba(143, 230, 187, 0.25);
    }

    .actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
    }

    .search-panel {
      position: relative;
      width: min(100%, 180px);
    }

    .search {
      width: 100%;
      height: 38px;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid var(--line);
      background: rgba(244, 251, 247, 0.72);
      border-radius: 14px;
      padding: 0 14px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .search img {
      width: 18px;
      height: 18px;
      display: block;
      flex: 0 0 auto;
    }

    .search input {
      min-width: 0;
      width: 100%;
      border: 0;
      outline: 0;
      padding: 0;
      color: var(--ink);
      background: transparent;
      font: inherit;
    }

    .search input::placeholder {
      color: var(--muted);
      opacity: 0.9;
    }

    .search-results {
      position: absolute;
      z-index: 20;
      top: calc(100% + 8px);
      right: 0;
      width: min(420px, calc(100vw - 48px));
      display: none;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 24px 70px rgba(5, 72, 82, 0.16);
      backdrop-filter: blur(18px);
    }

    .search-panel:has(input:not(:placeholder-shown)) .search-results,
    .search-results.open {
      display: block;
    }

    .search-result {
      display: block;
      padding: 12px 14px;
      color: var(--ink);
      text-decoration: none;
      border-bottom: 1px solid rgba(7, 58, 51, 0.08);
    }

    .search-result:last-child {
      border-bottom: 0;
    }

    .search-result:hover,
    .search-result:focus {
      background: rgba(143, 230, 187, 0.2);
    }

    .search-result strong {
      display: block;
      font-size: 14px;
      line-height: 1.2;
    }

    .search-result span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .avatar {
      display: none;
    }

    .avatar::after {
      content: none;
    }

    main {
      display: grid;
      gap: 28px;
      min-width: 0;
    }

    .intro-card {
      position: relative;
      overflow: visible;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      align-items: start;
      gap: 40px;
      min-height: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      backdrop-filter: none;
      box-shadow: none;
      padding: 0;
    }

    .intro-card::before {
      content: none;
    }

    .photo {
      position: relative;
      z-index: 1;
      width: 100%;
      aspect-ratio: 4 / 3;
      min-height: 0;
      overflow: hidden;
      border-radius: 22px;
      border: 0;
      background: rgba(255, 255, 255, 0.4);
      box-shadow: var(--shadow);
    }

    .photo img {
      width: 100%;
      height: auto;
      display: block;
    }

    .intro-copy {
      position: relative;
      z-index: 1;
      align-self: stretch;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 18px;
      min-width: 0;
      padding: 0;
    }

    .intro-copy p {
      margin: 0;
      color: var(--muted);
      font-size: 20px;
      line-height: 1.6;
      text-align: justify;
      text-align-last: left;
      hyphens: manual;
      text-wrap: pretty;
    }

    .intro-copy strong {
      color: var(--ink);
      font-weight: 900;
    }

    .education {
      margin-top: 12px;
      color: var(--ink);
      font-size: 14.5px;
      line-height: 1.45;
      font-weight: 700;
    }

    .interests {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 22px;
      line-height: 1.4;
      font-weight: 700;
    }

    .interests li {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .interests li::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--lime), var(--teal));
      box-shadow: 0 0 12px rgba(184, 239, 85, 0.45);
      flex: 0 0 auto;
    }

    .works {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .work-card {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
      grid-template-areas: "content image";
      align-items: center;
      column-gap: 24px;
      border: 1px solid rgba(7, 58, 51, 0.12);
      background: rgba(255, 255, 255, 0.66);
      color: var(--ink);
      text-decoration: none;
      border-radius: 18px;
      padding: 20px;
      box-shadow: 0 10px 34px rgba(5, 72, 82, 0.06);
      backdrop-filter: blur(16px);
      cursor: pointer;
      min-width: 0;
    }

    .work-card::before {
      content: none;
    }

    .work-content {
      grid-area: content;
      min-width: 0;
      display: grid;
      gap: 12px;
    }

    .work-title {
      margin: 0;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-size: 32px;
      line-height: 1.2;
    }

    .work-title-icon {
      width: 30px;
      height: 30px;
      flex: 0 0 auto;
      display: block;
      margin-left: 0;
    }

    .project-links {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .work-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      color: var(--ink);
    }

    /* The website link covers the card without a JavaScript click handler. */
    .work-link::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      border-radius: 18px;
    }

    .work-link img {
      width: 24px;
      height: 24px;
      display: block;
    }

    .work-card:hover {
      border-color: rgba(7, 58, 51, 0.32);
    }

    .work-card:focus-within {
      outline: 2px solid var(--teal);
      outline-offset: 3px;
    }

    a:focus-visible {
      outline: 2px solid var(--teal);
      outline-offset: 5px;
    }

    .search:focus-within {
      outline: 2px solid var(--teal);
      outline-offset: 2px;
    }

    .work-lines {
      position: relative;
      z-index: 1;
      margin: 0;
      color: var(--muted);
      max-width: none;
      font-size: 22px;
      line-height: 1.55;
      font-weight: 450;
      min-height: 0;
      text-wrap: pretty;
    }

    .work-image {
      grid-area: image;
      position: relative;
      z-index: 1;
      flex: 0 0 auto;
      margin: 0;
      width: 100%;
      height: auto;
      display: block;
      overflow: hidden;
      border: 1px solid rgba(7, 58, 51, 0.1);
      border-radius: 8px;
      object-fit: contain;
      object-position: center;
      background: #071015;
    }

    .footer {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      color: var(--muted);
      font-size: 13px;
      align-items: end;
    }

    .footer a {
      color: var(--muted);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    @media (max-width: 1100px) {
      .shell {
        width: calc(100% - 48px);
      }

      .intro-card {
        gap: 28px;
        align-items: center;
      }

      .intro-copy p {
        font-size: 17px;
      }

      .work-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
        column-gap: 20px;
      }

      .work-title {
        font-size: 28px;
      }

      .work-lines {
        font-size: 18px;
      }
    }

    @media (max-width: 900px) {
      .shell {
        width: min(720px, calc(100% - 40px));
        gap: 32px;
      }

      .intro-card {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .intro-copy p {
        font-size: 18px;
      }

      .work-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
        column-gap: 18px;
      }
    }

    @media (max-width: 700px) {
      .shell {
        width: calc(100% - 32px);
        padding-top: 16px;
      }

      .nav {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
      }

      .brand img {
        width: 144px;
      }

      .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
      }

      .actions {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
      }

      .search {
        padding: 0 10px;
      }

      .intro-copy p {
        font-size: 17px;
      }

      .interests {
        font-size: 18px;
      }

      main {
        gap: 32px;
      }

      .work-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
          "content"
          "image";
        gap: 18px;
        padding: 18px;
      }

      .work-content {
        gap: 12px;
      }

      .work-title {
        font-size: 25px;
        gap: 8px;
      }

      .work-title-icon {
        width: 24px;
        height: 24px;
      }

      .work-lines {
        font-size: 17px;
      }

      .footer {
        flex-wrap: wrap;
        gap: 8px 18px;
      }
    }

    @media (max-width: 360px) {
      .work-title {
        font-size: 22px;
      }

      .work-card {
        padding: 16px;
      }
    }
