.logo:not(.has-avatar),
.index-logo:not(.has-avatar),
.welcome-logo:not(.has-avatar) {
  background-image: none !important;
  display: grid;
  place-items: center;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #4f7cff, #20bca4) !important;
}

.logo.has-avatar,
.index-logo.has-avatar,
.welcome-logo.has-avatar {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.index-logo.has-avatar,
.welcome-logo.has-avatar {
  background: none !important;
  background-image: none !important;
}

.index-logo,
.welcome-logo {
  position: relative;
}

.portal-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block !important;
}

.index-logo.has-avatar::after,
.welcome-logo.has-avatar::after {
  content: none !important;
  display: none !important;
}

.logo img:not(.portal-avatar-img),
.index-logo img:not(.portal-avatar-img) {
  display: none;
}

.logo:not(.has-avatar)::after,
.index-logo:not(.has-avatar)::after,
.welcome-logo:not(.has-avatar)::after {
  content: attr(data-initials);
  font-size: 1.35rem;
}

.welcome-logo:not(.has-avatar)::after {
  font-size: 0.95rem;
}

.projectItemRight img {
  display: none;
}

.projectItemRight {
  display: grid;
  place-items: center;
  min-width: 72px;
  font-size: 1.6rem;
}

.projectItem.featured {
  border: 1px solid rgba(79, 124, 255, 0.22);
  box-shadow: 0 10px 28px rgba(79, 124, 255, 0.12);
}

#fps {
  display: none !important;
}

.welcome-hero .index-logo {
  width: min(168px, 36vw);
  max-width: 168px;
  margin-bottom: 10px;
}
.welcome-footer {
  flex-wrap: wrap;
}

.welcome-footer .icp-filing {
  margin-inline: auto;
}

/* 2026 portfolio cover: quieter canvas, editorial hierarchy, stable type scale. */
body[data-page="welcome"] {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #171a21;
  background: #f5f7fa;
}

body[data-page="welcome"] * {
  letter-spacing: 0;
}

body[data-page="welcome"] .welcome-tech-bg {
  background: #f5f7fa;
}

body[data-page="welcome"] .site-grid-canvas,
body[data-page="welcome"] .welcome-grid-canvas {
  opacity: 0.16;
}

body[data-page="welcome"] .welcome-tech-orb,
body[data-page="welcome"] .welcome-filter {
  display: none;
}

body[data-page="welcome"] .welcome-shell {
  max-width: 1240px;
  padding-top: 24px;
}

body[data-page="welcome"] .welcome-topbar {
  margin-bottom: 52px;
}

body[data-page="welcome"] .welcome-brand-name,
body[data-page="welcome"] .welcome-brand-text,
body[data-page="welcome"] .welcome-kicker,
body[data-page="welcome"] .welcome-title,
body[data-page="welcome"] .welcome-cover-statement,
body[data-page="welcome"] .welcome-role,
body[data-page="welcome"] .welcome-proof-list strong,
body[data-page="welcome"] .welcome-snake-head,
body[data-page="welcome"] .welcome-section-label,
body[data-page="welcome"] .welcome-gate-index {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

body[data-page="welcome"] .welcome-main {
  align-content: start;
  gap: 40px;
}

body[data-page="welcome"] .welcome-hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: center;
}

body[data-page="welcome"] .welcome-cover-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

body[data-page="welcome"] .welcome-hero .index-logo {
  width: 46px !important;
  height: 46px;
  max-width: 46px;
  margin: 0;
  flex: 0 0 46px;
  border: 1px solid rgba(21, 24, 33, 0.12);
  border-radius: 6px;
  box-shadow: none;
  background: #171a21 !important;
}

body[data-page="welcome"] .welcome-hero .index-logo::after {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

body[data-page="welcome"] .welcome-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #526071;
}

body[data-page="welcome"] .welcome-title {
  display: block;
  font-size: 72px;
  line-height: 1.02;
  font-weight: 800;
  color: #141820;
}

body[data-page="welcome"] .welcome-name-display {
  font-family: inherit;
  font-weight: inherit;
  white-space: normal;
  color: inherit;
}

body[data-page="welcome"] .welcome-cover-statement {
  max-width: 17ch;
  margin: 22px 0 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  color: #202b3c;
}

body[data-page="welcome"] .welcome-role {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: #0f766e;
}

body[data-page="welcome"] .welcome-lead {
  max-width: 56ch;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #526071;
}

body[data-page="welcome"] .welcome-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body[data-page="welcome"] .welcome-cover-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cbd2dc;
  border-radius: 6px;
  color: #202631;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

body[data-page="welcome"] .welcome-cover-action:hover,
body[data-page="welcome"] .welcome-cover-action:focus-visible {
  transform: translateY(-2px);
  border-color: #7d899a;
  background: #fff;
}

body[data-page="welcome"] .welcome-cover-action--primary {
  border-color: #171a21;
  color: #fff;
  background: #171a21;
}

body[data-page="welcome"] .welcome-cover-action--primary:hover,
body[data-page="welcome"] .welcome-cover-action--primary:focus-visible {
  border-color: #0f766e;
  background: #0f766e;
}

body[data-page="welcome"] .welcome-proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 14px 0;
  border-top: 1px solid #d7dce4;
  border-bottom: 1px solid #d7dce4;
  list-style: none;
}

body[data-page="welcome"] .welcome-proof-list li {
  display: grid;
  gap: 3px;
  padding: 0 16px;
  border-left: 1px solid #d7dce4;
}

body[data-page="welcome"] .welcome-proof-list li:first-child {
  padding-left: 0;
  border-left: 0;
}

body[data-page="welcome"] .welcome-proof-list strong {
  font-size: 13px;
  color: #202631;
}

body[data-page="welcome"] .welcome-proof-list span {
  font-size: 12px;
  color: #687587;
}

body[data-page="welcome"] .welcome-hint {
  margin-top: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #687587;
  background: transparent;
  font-size: 12px;
}

body[data-page="welcome"] .welcome-snake-card {
  padding: 24px;
  border: 1px solid #d7dce4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

body[data-page="welcome"] .welcome-snake-card:hover {
  transform: none;
  border-color: #aeb7c4;
  box-shadow: none;
}

body[data-page="welcome"] .welcome-section-label {
  color: #526071;
  font-size: 12px;
  font-weight: 700;
}

body[data-page="welcome"] .welcome-gate {
  border-color: #d7dce4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

body[data-page="welcome"] .welcome-gate::before {
  display: none;
}

body[data-page="welcome"] .welcome-gate:hover,
body[data-page="welcome"] .welcome-gate:focus-visible {
  transform: translateY(-2px);
  border-color: #8e99a8;
  box-shadow: none;
}

html[data-theme="Dark"] body[data-page="welcome"] {
  color: #edf1f6;
  background: #111419;
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-tech-bg {
  background: #111419;
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-title,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-name-display,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-cover-statement {
  color: #f2f5f8;
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-kicker,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-lead,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-hint,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-proof-list span {
  color: #9aa6b5;
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-proof-list,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-proof-list li,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-snake-card,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-gate {
  border-color: #303741;
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-proof-list strong {
  color: #edf1f6;
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-snake-card,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-gate,
html[data-theme="Dark"] body[data-page="welcome"] .welcome-cover-action {
  color: #edf1f6;
  background: rgba(25, 30, 37, 0.86);
}

html[data-theme="Dark"] body[data-page="welcome"] .welcome-cover-action--primary {
  color: #111419;
  border-color: #edf1f6;
  background: #edf1f6;
}

@media (max-width: 900px) {
  body[data-page="welcome"] .welcome-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body[data-page="welcome"] .welcome-hero-right {
    max-width: none;
  }

  body[data-page="welcome"] .welcome-title {
    font-size: 54px;
  }

  body[data-page="welcome"] .welcome-cover-statement {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  body[data-page="welcome"] .welcome-shell {
    padding: 16px 16px 170px;
  }

  body[data-page="welcome"] .welcome-topbar {
    margin-bottom: 36px;
  }

  body[data-page="welcome"] .welcome-title {
    font-size: 42px;
  }

  body[data-page="welcome"] .welcome-cover-statement {
    font-size: 21px;
  }

  body[data-page="welcome"] .welcome-proof-list {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body[data-page="welcome"] .welcome-proof-list li,
  body[data-page="welcome"] .welcome-proof-list li:first-child {
    padding: 10px 0;
    border-left: 0;
    border-top: 1px solid #d7dce4;
  }

  body[data-page="welcome"] .welcome-proof-list li:first-child {
    border-top: 0;
  }

  body[data-page="welcome"] .welcome-cover-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body[data-page="welcome"] .welcome-brand-copy {
    display: none;
  }

  body[data-page="welcome"] .welcome-hero-left {
    order: 1;
  }

  body[data-page="welcome"] .welcome-hero-right {
    order: 2;
  }

  body[data-page="welcome"] .welcome-footer {
    width: auto;
    align-self: stretch;
  }
}

body[data-page="welcome"] .digital-human-button {
  width: 160px;
}

body[data-page="welcome"] .digital-human-live2d-frame {
  width: 160px;
  height: 260px;
}

body[data-page="welcome"] .digital-human-transcript {
  display: none;
}

body[data-page="welcome"] .digital-human-dock[data-state="listening"] .digital-human-transcript,
body[data-page="welcome"] .digital-human-dock[data-state="thinking"] .digital-human-transcript,
body[data-page="welcome"] .digital-human-dock[data-state="talking"] .digital-human-transcript {
  display: block;
}

@media (max-width: 640px) {
  body[data-page="welcome"] .digital-human-dock {
    right: 8px;
    bottom: 8px;
    width: 56px;
    max-height: 72px;
    contain: layout paint;
  }

  body[data-page="welcome"] .digital-human-button {
    position: relative;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: #171a21;
    box-shadow: 0 8px 24px rgba(20, 24, 32, 0.2);
  }

  body[data-page="welcome"] .digital-human-live2d-frame {
    display: none;
  }

  body[data-page="welcome"] .digital-human-button::after {
    content: "AI";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
  }

  body[data-page="welcome"] .digital-human-bubble {
    display: none;
  }

  body[data-page="welcome"] .digital-human-dock[data-state="listening"],
  body[data-page="welcome"] .digital-human-dock[data-state="thinking"],
  body[data-page="welcome"] .digital-human-dock[data-state="talking"] {
    width: min(280px, calc(100vw - 16px));
  }
}
