/* 亮色工业编辑风：结构线、非对称排版、真实项目图。 */
:root {
  --paper: #F7F8F5;
  --ink: #28332F;
  --green: #183D38;
  --teal: #287D70;
  --muted: #58665F;
  --line: #D5DDD5;
  --amber: #A46319;
  --soft: #EDF0E9;
  --white: #FFFFFF;
  --mono: Consolas, "Microsoft YaHei", "微软雅黑", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 15px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
::selection { color: var(--green); background: #D6E8DA; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
button { background: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--green); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
.mono { font-family: var(--mono); }
.shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--green); color: var(--white); z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247,248,245,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; border: 1px solid var(--green); font-size: 26px; line-height: 36px; text-align: center; }
.brand-mark span { color: var(--amber); }
.brand-alias { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 4px; }
nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
nav a { padding-block: 10px; position: relative; white-space: nowrap; }
nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }
.nav-contact { border: 1px solid var(--green); padding: 8px 16px; color: var(--green); }
.nav-contact span { margin-left: 14px; }
.menu-toggle { align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; column-gap: 52px; position: relative; padding-top: 68px; }
.hero::before { content: ""; position: absolute; inset: 0 -18px 106px; z-index: -1; background-image: linear-gradient(to right, rgba(24,61,56,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(24,61,56,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, transparent 10%, #000); }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; background: var(--teal); display: inline-block; vertical-align: 1px; margin-right: 9px; }
.hero-role { margin-top: 31px; letter-spacing: 3px; font-size: 16px; }
h1 { font-size: clamp(58px, 6.7vw, 92px); line-height: 1.18; letter-spacing: -4px; margin-top: 13px; }
.hero-alias { display: block; font-size: 61px; letter-spacing: -3px; font-weight: 400; line-height: 1.07; }
.accent-dot { color: var(--amber); }
.hero-statement { font-weight: 700; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.65; color: var(--green); margin-top: 25px; letter-spacing: -.5px; }
.hero-statement span { display: block; }
.hero-description { margin-top: 17px; color: var(--muted); font-size: 14px; max-width: 465px; }
.hero-actions { display: flex; align-items: center; gap: 29px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; padding: 13px 22px; font-size: 13px; border: 1px solid var(--green); transition: background .2s, transform .2s; }
.primary { background: var(--green); color: var(--white); }
.primary:hover { background: var(--teal); transform: translateY(-2px); }
.text-link { font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.text-link:hover { color: var(--teal); border-color: var(--teal); }
.text-link span { margin-left: 10px; }
.hero-location { margin-top: 30px; font-size: 11px; color: var(--muted); }
.hero-location > span { margin-left: 24px; }
.hero-visual { align-self: center; margin-top: 19px; border: 1px solid #BDCDC2; background: rgba(237,240,233,.87); position: relative; }
.hero-visual::after { content: ""; position: absolute; width: 12px; height: 12px; top: -6px; right: -6px; background: var(--amber); }
.visual-header, .visual-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 19px; font-size: 10px; letter-spacing: .8px; color: var(--muted); }
.visual-header { border-bottom: 1px solid #CBD6CA; }
.visual-footer { border-top: 1px solid #CBD6CA; font-size: 9px; }
.visual-footer > span:last-child { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; letter-spacing: 0; }
.system-board { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 114px auto; gap: 0 22px; position: relative; padding: 27px 22px; }
.system-board::before, .system-board::after { content: ""; position: absolute; background: #98B4A4; z-index: 0; }
.system-board::before { left: 50%; top: 75px; bottom: 75px; width: 1px; }
.system-board::after { left: 23%; right: 23%; top: 50%; height: 1px; }
.board-node { border: 1px solid #C4D2C4; background: var(--paper); padding: 15px 17px; position: relative; z-index: 1; }
.board-node > span { display: block; font-size: 9px; color: var(--teal); letter-spacing: .5px; }
.nav-contact[aria-current] { background: var(--green); color: var(--white); }
.board-node strong { display: block; font-size: 17px; margin-top: 7px; color: var(--green); }
.board-node small { font-size: 10px; display: block; color: var(--muted); margin-top: 5px; }
.board-core { grid-column: span 2; align-self: center; justify-self: center; position: relative; z-index: 1; padding: 12px 21px; background: var(--green); color: var(--white); text-align: center; min-width: 212px; }
.board-core > span { display: block; font-size: 9px; letter-spacing: .6px; }
.board-core strong { display: block; font-size: 20px; margin: 1px 0; font-weight: 500; }
.node-ai { grid-row: 3; }
.node-team { grid-row: 3; }
.hero-metrics { grid-column: span 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 38px; padding: 23px 0; border-top: 1px solid var(--green); border-bottom: 1px solid var(--line); }
.hero-metrics > div { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.hero-metrics > div:first-child { padding-left: 0; border-left: 0; }
.hero-metrics strong { display: block; color: var(--green); font-weight: 400; font-size: 38px; line-height: 1.15; }
.hero-metrics strong span { display: block; font-size: 13px; margin-top: 5px; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; }
.hero-metrics p { color: var(--green); font-size: 13px; margin-top: 10px; line-height: 1.6; }
.hero-metrics p > span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.metric-note { display: flex; flex-direction: column; align-items: end; justify-content: center; font-size: 9px; color: var(--muted); letter-spacing: .8px; }
.metric-note > span:last-child { font-size: 23px; color: var(--green); }
.section { padding-block: 52px 12px; }
.section-head { padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 22px; }
h2 { font-size: clamp(25px, 2.7vw, 35px); line-height: 1.55; letter-spacing: -.7px; }
.about-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 64px; }
.about-body .bullet { margin-bottom: 17px; }
.bullet { padding-left: 18px; position: relative; font-size: 14px; line-height: 1.95; margin-bottom: 11px; }
.bullet::before { content: ""; position: absolute; left: 0; top: .9em; width: 4px; height: 4px; background: var(--teal); }
.profile-note { border-top: 3px solid var(--amber); padding: 17px 23px 21px; background: var(--soft); align-self: start; font-size: 12px; }
.note-label { color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.profile-note h3 { font-size: 13px; margin: 16px 0 7px; }
.profile-note > p { white-space: pre-line; line-height: 2; }
.keyword-details { margin-top: 21px; border-top: 1px solid var(--line); }
.keyword-details summary { font-size: 12px; }
.keyword-details p { margin-top: 11px; }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--green); }
summary::-webkit-details-marker { display: none; }
summary > span { font-family: var(--mono); font-size: 20px; font-weight: 400; transition: transform .2s; }
details[open] > summary > span { transform: rotate(45deg); }
.capability-layout { display: grid; grid-template-columns: 230px 1fr; gap: 25px; }
.capability-intro { min-width: 0; }
.tech-cloud { margin-top: 0; }
.tech-cloud h4 { font-size: 14px; font-weight: 500; letter-spacing: 1px; }
.tech-cloud-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; list-style: none; margin: 12px 0 0; padding: 13px 0 0; border-top: 1px solid var(--line); }
.tech-cloud-group li { max-width: 100%; font-family: var(--mono); font-size: 14px; line-height: 1.55; color: var(--muted); }
.tech-cloud-group .tech-secondary { font-size: 16px; color: var(--green); }
.tech-cloud-group .tech-primary { font-size: 20px; font-weight: 700; color: var(--green); }
.tech-cloud-group:nth-of-type(2) .tech-primary { color: var(--teal); }
.tech-cloud-group:nth-of-type(3) .tech-primary { color: var(--amber); }
.ability { display: grid; grid-template-columns: 165px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ability:first-child { padding-top: 0; }
.ability b { color: var(--green); font-size: 14px; font-weight: 500; }
.ability > span { font-size: 13px; }
.open-source-snapshot { border-block: 1px solid var(--line); border-left: 3px solid var(--teal); padding: 18px 24px; margin-bottom: 25px; background: var(--soft); }
.snapshot-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 10px; }
.snapshot-heading > .mono { color: var(--teal); letter-spacing: 1px; }
.snapshot-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 16px 0 0; }
.snapshot-metrics > div { border-left: 1px solid var(--line); padding-left: 20px; }
.snapshot-metrics > div:first-child { border-left: 0; padding-left: 0; }
.snapshot-metrics dt { color: var(--muted); font-size: 11px; }
.snapshot-metrics dd { color: var(--green); font-size: 31px; line-height: 1.4; margin: 5px 0 0; }
.open-source-snapshot > p { color: var(--muted); font-size: 10px; }
.open-source-snapshot a { color: var(--teal); border-bottom: 1px solid var(--line); }
@media (max-width: 620px) {
  .open-source-snapshot { padding: 16px; }
  .snapshot-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .snapshot-metrics > div { padding-left: 8px; }
  .snapshot-metrics dt { font-size: 9px; }
  .snapshot-metrics dd { font-size: 25px; overflow-wrap: anywhere; }
}
.project-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--line); padding: 7px 17px; font-size: 12px; transition: background .2s; }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.filters button:hover:not([aria-pressed="true"]) { background: var(--soft); border-color: var(--teal); }
#project-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 22px; align-items: stretch; }
@media screen and (min-width: 621px) {
  .project-grid .project-card:not(.has-media),
  .project-grid .project-card:not(.has-media) > .project-content { display: flex; flex-direction: column; }
  .project-grid .project-card:not(.has-media) > .project-content,
  .project-grid .project-card:not(.has-media) > .repo-card { flex: 1; height: auto; }
  .project-grid .project-card:not(.has-media) > p:last-of-type,
  .project-grid .project-card:not(.has-media) > .project-content > p:last-of-type { margin-bottom: 21px; }
  .project-grid .project-card:not(.has-media) .project-details { margin-top: auto; }
}
.project-card { background: #FBFCF9; border: 1px solid var(--line); padding: 26px 29px 9px; border-top: 2px solid var(--green); }
.project-card:nth-child(2) { border-top-color: var(--amber); }
.project-card.open-source-card { padding: 0; }
.project-card.contribution-card { border-top-color: var(--teal); }
.project-card.research-card { border-top-color: var(--amber); }
.open-source-card .repo-card { height: 100%; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); letter-spacing: .7px; }
.project-top > span:last-child { font-family: "Microsoft YaHei", "微软雅黑", sans-serif; letter-spacing: 0; }
.project-card h3 { font-size: 21px; line-height: 1.55; margin-top: 18px; }
.project-meta { color: var(--muted); font-size: 11px; margin-top: 7px; }
.project-highlight { border-left: 2px solid var(--amber); color: var(--green); font-size: 12px; padding-left: 10px; margin-top: 20px; margin-bottom: 15px; }
.project-card > p:not([class]) { font-size: 13px; line-height: 1.95; }
.project-details { margin-top: 21px; border-top: 1px solid var(--line); }
.project-details summary { font-size: 12px; }
.detail-body { padding: 8px 0 18px; }
.detail-body .bullet { font-size: 13px; }
.project-card.has-media, .archived-repo.has-media { display: flow-root; padding: 26px 29px 9px; }
.project-media { float: left; width: 132px; margin: 0 16px 10px 0; }
.project-content { padding: 0; }
.project-content > p:not([class]) { font-size: 13px; line-height: 1.95; }
.project-card:not(.has-media) { padding: 26px 29px 9px; }
.project-card:not(.has-media).open-source-card { padding: 0; }
.project-card.has-media > .repo-card { display: block; padding: 0 0 18px; height: auto; }
.project-card.has-media .project-top { display: block; }
.project-card.has-media .project-top > span:first-child { margin-right: 15px; }
.has-media .repo-top { display: block; }
.has-media .repo-top > span { margin-left: 12px; }
.has-media .repo-stack { display: block; margin-top: 0; }
.project-details { clear: both; }
.image-link { display: block; position: relative; border: 1px solid var(--line); padding: 6px; background: var(--soft); }
.project-media .image-link { width: 132px; height: 88px; display: flex; align-items: center; justify-content: center; }
.image-link img { display: block; width: 100%; height: auto; }
.project-media .image-link img { width: 100%; height: 100%; object-fit: contain; }
.legacy-list .has-media { border: 1px solid var(--line); padding: 16px; }
.legacy-list .has-media .repo-card { display: block; padding: 0; border: 0; }
@media (max-width: 620px) {
  .project-card.has-media { padding: 20px 20px 9px; }
  .project-media { width: 110px; margin-right: 14px; }
  .project-media .image-link { width: 110px; height: 76px; }
}

.image-expand { position: absolute; right: 15px; bottom: 15px; color: var(--green); background: var(--paper); padding: 5px 10px; font-size: 10px; opacity: 0; transition: opacity .2s; }
.image-link:hover .image-expand, .image-link:focus-visible .image-expand { opacity: 1; }
.project-media.has-gallery { position: relative; }
.gallery-count { position: absolute; top: 3px; right: 3px; padding: 0 4px; background: var(--paper); color: var(--green); font-size: 10px; line-height: 1.6; pointer-events: none; }
.gallery-controls { position: absolute; bottom: 1px; left: 1px; right: 1px; display: flex; background: var(--paper); }
.gallery-controls button { flex: 1; min-width: 0; border: 0; padding: 3px 0; font-size: 9px; line-height: 1.8; color: var(--green); }
.gallery-controls button:hover, .gallery-controls button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.has-gallery .image-expand { display: none; }
.dialog-gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.dialog-gallery-controls button { border: 1px solid var(--line); min-height: 44px; padding: 6px 16px; font-size: 12px; }
.dialog-gallery-controls button:hover { background: var(--soft); }
#dialog-count { min-width: 36px; text-align: center; font-size: 12px; }
@media print { .gallery-controls, .gallery-count { display: none !important; } }
.project-secondary-image { display: block; position: relative; width: 88px; margin-top: 10px; color: var(--teal); font-size: 11px; }
.project-secondary-image img { display: block; width: 88px; height: 60px; object-fit: contain; border: 1px solid var(--line); }
.project-secondary-image > span { position: absolute; inset: auto 0 0; background: var(--paper); font-size: 10px; line-height: 1.8; }
.project-content h3, .repo-card h3, .repo-stack { overflow-wrap: anywhere; }
figcaption { display: flex; align-items: baseline; gap: 15px; font-size: 11px; margin-top: 11px; color: var(--muted); }
figcaption > span { color: var(--teal); }
.timeline-entry { display: grid; grid-template-columns: 230px 1fr; gap: 25px; padding-bottom: 48px; }
.timeline-date { font-size: 13px; color: var(--green); padding-top: 5px; }
.timeline-date > span { display: block; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 11px; color: var(--muted); padding-right: 20px; margin-top: 7px; }
.timeline-content { border-left: 1px solid var(--line); padding-left: 32px; position: relative; }
.timeline-content::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--teal); background: var(--paper); position: absolute; left: -4px; top: 11px; }
.timeline-content h3 { font-size: 22px; margin-bottom: 12px; }
.source-meta { color: var(--muted); font-size: 11px; margin-bottom: 18px; }
.timeline-content h4 { font-size: 14px; margin: 22px 0 14px; }
.education-entry { padding-bottom: 0; }
.education { font-size: 13px; color: var(--muted); }
.exploration-note { font-size: 12px; color: var(--muted); margin-top: 18px; max-width: 900px; }
.legacy-practices { margin-top: 18px; }
.research-list a { color: var(--teal); border-bottom: 1px solid var(--line); }
.research-list { margin: 18px 0 0; padding: 0; list-style: none; }
.research-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 11px; }
.research-list a { overflow-wrap: anywhere; }
.research-list span { flex-shrink: 0; color: var(--muted); }
.legacy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; align-items: start; }
.legacy-list .repo-card { padding: 16px; border: 1px solid var(--line); }
.legacy-list .repo-card h3 { font-size: 15px; }
@media (max-width: 620px) {
  .legacy-list { grid-template-columns: 1fr; }
  .research-list li { gap: 10px; }
}
.repo-card { display: flex; flex-direction: column; padding: 27px; transition: background .2s; }
.repo-card:hover { background: var(--soft); }
.repo-card:hover .repo-top { color: var(--green); }
.repo-top { font-size: 9px; letter-spacing: .8px; color: var(--teal); display: flex; justify-content: space-between; }
.repo-top span { font-size: 18px; }
.repo-card h3 { font-size: 19px; margin: 17px 0 5px; }
.repo-name { font-size: 11px; overflow-wrap: anywhere; color: var(--muted); margin-bottom: 16px; }
.repo-card > p:not(.repo-name) { font-size: 12px; line-height: 1.95; }
.repo-stack { font-size: 10px; color: var(--green); margin-top: auto; padding-top: 25px; }
.contact-footer { margin-top: 40px; padding: 24px 0 16px; background: #EAF0E7; border-top: 1px solid #D0DBCF; }
.contact-layout { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-identity { min-width: 0; max-width: 520px; }
.contact-heading { margin-bottom: 9px; }
.contact-heading h2 { font-size: 21px; line-height: 1.5; }
.contact-address { font-style: normal; }
.contact-info { display: grid; gap: 5px; margin: 0; }
.contact-item { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: baseline; gap: 12px; min-height: 30px; }
.contact-item dt { font-size: 14px; color: var(--muted); }
.contact-item dd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; margin: 0; min-width: 0; }
.contact-item a, #wechat-account { color: var(--green); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; min-width: 0; }
.contact-item a { justify-self: start; }
.contact-item a:hover { color: var(--teal); text-decoration: underline; }
.copy-email, .copy-contact, .qr-expand { font-size: 13px; line-height: 1.5; min-height: 30px; border: 1px solid #A8BBA8; padding: 4px 9px; white-space: nowrap; }
.copy-email:hover, .copy-contact:hover, .qr-expand:hover { background: var(--paper); }
.wechat-qr { width: 144px; }
.wechat-qr > img { display: block; width: 100%; height: auto; }
.wechat-qr figcaption { margin-top: 6px; }
.qr-expand { width: 100%; }
.copy-status { color: var(--green); font-size: 13px; overflow-wrap: anywhere; }
.copy-status:empty { display: none; }
.contact-footer .footer-bottom { justify-content: flex-end; flex-direction: row; gap: 12px; border-top: 0; margin-top: 10px; padding-top: 0; }
.contact-footer .copy-status { margin-right: auto; }
#wechat-dialog { width: min(560px, 94vw); max-height: 93vh; padding: 16px 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
#wechat-dialog::backdrop { background: rgba(17,37,32,.82); }
#wechat-dialog > img { display: block; width: auto; height: auto; max-width: 100%; max-height: 74vh; margin-inline: auto; object-fit: contain; }
.footer-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; border-top: 1px solid #D0DBCF; margin-top: 20px; padding-top: 13px; }
.footer-bottom > a { white-space: nowrap; }
#image-dialog { width: min(1400px, 94vw); max-height: 93vh; padding: 16px 20px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
#image-dialog::backdrop { background: rgba(17,37,32,.82); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.dialog-toolbar p { font-size: 13px; }
.dialog-close { display: flex; align-items: center; padding: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.dialog-close:hover { background: var(--soft); }
#dialog-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 74vh; margin-inline: auto; object-fit: contain; }
.dialog-tip { font-size: 10px; color: var(--muted); text-align: center; margin-top: 12px; }
@keyframes reveal { from { opacity: .55; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal-enter { animation: reveal .6s ease-out both; }
@media (min-width: 1600px) { .hero { padding-top: 88px; } }
@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  nav { gap: 16px; font-size: 12px; }
  .hero { column-gap: 30px; }
  .board-node { padding: 12px; }
  .board-node small { font-size: 9px; }
  .system-board { padding-inline: 14px; column-gap: 14px; }
  .about-layout { padding-left: 0; gap: 40px; }
  .capability-layout, .timeline-entry { grid-template-columns: 195px 1fr; }
  .tech-cloud-group { column-gap: 12px; }
  .tech-cloud-group .tech-primary { font-size: 18px; }
}
@media (max-width: 850px) {
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 0; }
  .menu-toggle:not([hidden]) { display: flex; }
  nav { width: 100%; padding: 13px 0 20px; flex-wrap: wrap; gap: 12px 25px; }
  .js nav { display: none; }
  .js nav.is-open { display: flex; }
  .hero { column-gap: 28px; padding-top: 40px; }
  .hero-visual { margin-top: 0; }
  .hero-role { margin-top: 25px; }
  h1 { font-size: 62px; }
  .hero-alias { font-size: 47px; }
  .hero-description { font-size: 12px; }
  .hero-statement { font-size: 25px; }
  .hero-actions { flex-direction: column; align-items: start; gap: 16px; }
  .hero-location > span { display: block; margin-left: 0; margin-top: 3px; }
  .board-node strong { font-size: 15px; }
  .board-node > span { font-size: 8px; letter-spacing: 0; }
  .board-node small { font-size: 8px; }
  .visual-footer > span:last-child { display: none; }
  .system-board { grid-template-columns: 1fr; grid-template-rows: auto; gap: 10px; padding: 15px; }
  .board-core { grid-column: 1; grid-row: 3; min-width: 0; width: 100%; }
  .node-ai { grid-row: 4; }
  .node-team { grid-row: 5; }
  .board-node { padding: 10px 15px; }
  .board-node strong { margin-top: 0; }
  .board-node small { margin-top: 0; }
  .capability-layout, .timeline-entry { grid-template-columns: 160px 1fr; }
  .ability { grid-template-columns: 130px 1fr; gap: 20px; }
  .project-card { padding: 20px 22px 6px; }
  .project-card h3 { font-size: 18px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 85px; }
  .shell { width: calc(100% - 40px); }
  .brand { font-size: 14px; gap: 10px; }
  .brand-mark { width: 32px; height: 32px; line-height: 29px; font-size: 23px; }
  .brand-alias { font-size: 11px; }
  .hero { display: flex; flex-direction: column; padding-top: 35px; }
  .hero-copy { order: 0; }
  .hero-visual { order: 2; width: 100%; }
  .eyebrow { font-size: 9px; letter-spacing: .6px; }
  .hero-role { font-size: 14px; }
  h1 { font-size: 68px; letter-spacing: -3px; }
  .hero-alias { font-size: 49px; }
  .hero-statement { font-size: 28px; margin-top: 22px; }
  .hero-statement span { display: inline; }
  .hero-description { font-size: 13px; margin-top: 15px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 22px; margin-top: 23px; }
  .button { gap: 24px; padding: 12px 17px; font-size: 12px; }
  .hero-location { margin-top: 25px; font-size: 10px; }
  .hero-location > span { display: inline; margin-left: 16px; }
  .hero-visual { margin-top: 35px; }
  .system-board { grid-template-columns: 1fr 1fr; grid-template-rows: auto 103px auto; gap: 0 12px; padding: 17px 12px; }
  .board-node { padding: 12px 11px; }
  .board-node > span { font-size: 8px; }
  .board-node strong { font-size: 16px; margin-top: 5px; }
  .board-node small { font-size: 8px; margin-top: 4px; }
  .board-core { grid-column: span 2; grid-row: 2; width: auto; padding: 10px 24px; }
  .board-core strong { font-size: 19px; }
  .node-ai, .node-team { grid-row: 3; }
  .visual-header, .visual-footer { padding: 11px 14px; }
  .visual-footer > span:last-child { display: inline; font-size: 8px; }
  .hero-metrics { order: 1; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; margin-top: 24px; padding-block: 18px; }
  .hero-metrics > div { padding-left: 15px; }
  .hero-metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-metrics strong { font-size: 29px; }
  .hero-metrics strong span { font-size: 12px; margin-top: 3px; }
  .hero-metrics p { font-size: 13px; margin-top: 6px; }
  .hero-metrics p > span { font-size: 12px; margin-top: 1px; }
  .metric-note { display: none; }
  .section { padding-top: 36px; }
  .section-head { margin-bottom: 18px; padding-top: 10px; }
  h2 { font-size: 26px; }
  .about-layout { grid-template-columns: 1fr; gap: 25px; }
  .bullet { font-size: 13px; }
  .profile-note { padding: 16px 22px 20px; }
  .capability-layout { grid-template-columns: 1fr; gap: 28px; }
  .capability-intro { border-left: 2px solid var(--amber); padding-left: 14px; }
  .tech-cloud-group { gap: 7px 14px; padding-top: 10px; margin-top: 10px; }
  .tech-cloud-group .tech-primary { font-size: 19px; }
  .ability { grid-template-columns: 105px 1fr; gap: 15px; padding-block: 17px; }
  .ability b { font-size: 12px; }
  .ability > span { font-size: 12px; }
  .project-controls { flex-direction: column; align-items: start; gap: 10px; }
  .filters { gap: 7px; }
  .filters button { font-size: 11px; padding: 9px 11px; min-height: 44px; }
  .menu-toggle { min-height: 44px; }
  .dialog-close { min-width: 44px; min-height: 44px; justify-content: center; }
  summary { min-height: 44px; }
  #project-count { font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; grid-auto-rows: auto; align-items: start; gap: 17px; }
  .project-card { padding: 20px 20px 5px; }
  .project-top { font-size: 9px; }
  .project-card h3 { font-size: 20px; }
  .project-card > p:not([class]) { font-size: 12px; }
  .detail-body .bullet { font-size: 12px; }
  .image-expand { opacity: 1; font-size: 9px; right: 10px; bottom: 10px; padding: 3px 7px; }
  figcaption { font-size: 10px; gap: 10px; }
  .timeline-entry { display: block; padding-bottom: 35px; }
  .timeline-date { margin-bottom: 17px; padding-left: 22px; }
  .timeline-content { padding-left: 22px; }
  .timeline-content h3 { font-size: 19px; }
  .timeline-date > span { font-size: 10px; }
  .source-meta { font-size: 10px; }
  .project-card.open-source-card:not(.has-media) { padding: 0; }
  .repo-card { padding: 22px; }
  .repo-card h3 { font-size: 18px; }
  .repo-stack { padding-top: 18px; }
  .contact-footer { padding-block: 18px 14px; }
  .contact-layout { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .contact-heading { display: block; margin-bottom: 8px; }
  .contact-info { gap: 7px; }
  .contact-item { grid-template-columns: 44px minmax(0, 1fr); gap: 6px; }
  .contact-item dt, .contact-item a, #wechat-account { font-size: 13px; }
  .contact-item dd { gap: 4px; }
  .copy-email, .copy-contact { padding-inline: 4px; }
  .wechat-qr { width: 110px; }
  .qr-expand { padding-inline: 4px; }
  #wechat-dialog { padding: 11px; width: 96vw; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 12px; margin-top: 12px; }
  #image-dialog { padding: 11px; width: 96vw; }
  .dialog-toolbar p { font-size: 10px; }
  .dialog-close { padding: 5px; }
}
@media (max-width: 359px) {
  .contact-identity { display: contents; }
  .contact-heading { grid-column: 2; align-self: center; margin-bottom: 0; }
  .contact-address { grid-column: 1 / -1; }
  .contact-item { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .contact-info { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; font-size: 11pt; }
  .shell { width: 100%; }
  .site-header, .hero-actions, .metric-note, .project-controls, .image-expand, [data-copy], .footer-bottom > a, dialog { display: none !important; }
  .hero { padding-top: 0; }
  .hero::before { display: none; }
  .hero-visual { break-inside: avoid; }
  .section { padding-top: 35px; }
  .section-head { margin-bottom: 20px; }
  .about-layout { padding-left: 0; }
  .project-grid { display: block; }
  .project-card, .repo-card, figure { break-inside: avoid; margin-bottom: 18px; }
  .project-card[hidden] { display: block !important; }
  .detail-body { display: block !important; }
  .contact-footer { margin-top: 30px; padding-block: 25px; }
  a { text-decoration: none; }
}
