:root {
  color-scheme: light;
  --background: #e6e6e6;
  --surface: #ffffff;
  --text: #333333;
  --muted: #6f6f6f;
  --line: #e7e7e7;
  --action: #e0a82e;
  --action-hover: #d19a22;
  --status: #4d9a61;
  --soft: #f6f6f6;
  --radius-card: 16px;
  --radius-button: 8px;
  --font-sans: "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Arial Narrow", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --shadow-rest: 0 1px 2px rgb(0 0 0 / 0.035);
  --shadow-hover: 0 15px 38px rgb(0 0 0 / 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgb(224 168 46 / 0.72);
  outline-offset: 4px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1100px);
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
}

.profile-rail,
.detail-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 58px 56px 48px;
}

.profile-rail {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-avatar {
  width: 172px;
  height: 172px;
  border: 6px solid rgb(255 255 255 / 0.82);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.09);
}

.profile-name {
  margin: 28px 0 3px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

[data-main-heading]:focus {
  outline: none;
}

.profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.profile-metric {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
}

.profile-summary {
  max-width: 360px;
  margin: 24px 0 0;
  color: #555555;
  font-size: 0.98rem;
  line-height: 1.78;
}

.profile-motto {
  max-width: 365px;
  margin: 17px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.65;
}

.primary-action,
.secondary-action,
.text-action,
.back-button,
.card-route,
.channel-button,
.icon-button {
  border: 0;
  border-radius: var(--radius-button);
  cursor: pointer;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  font-size: 0.87rem;
  font-weight: 800;
}

.primary-action {
  background: var(--action);
  color: #27200f;
}

.primary-action:hover {
  background: var(--action-hover);
}

.secondary-action {
  background: var(--text);
  color: var(--surface);
}

.profile-cta {
  align-self: flex-start;
  margin-top: 28px;
}

.action-hint {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
}

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 27px;
}

.channel-button,
.channel-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #bdbdbd;
  border-radius: 0;
  background: transparent;
  color: #575757;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.channel-button:hover,
.channel-link:hover {
  border-bottom-color: var(--text);
  color: var(--text);
}

.content-column {
  min-width: 0;
  padding: 34px 34px 52px 0;
}

.home-stack,
.page-stack {
  display: grid;
  gap: 24px;
}

.project-card,
.nav-card,
.sheet {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 0.025);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-rest);
}

.project-card,
.nav-card {
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.project-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 174px;
  padding: 28px 30px;
}

.project-icon,
.detail-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
}

.project-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.project-icon img,
.detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-icon.is-text,
.detail-icon.is-text {
  background: var(--text);
  color: var(--surface);
  font-weight: 900;
}

.card-kicker,
.eyebrow {
  margin: 0;
  color: #8a8a8a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.card-title {
  margin: 7px 0 6px;
  font-size: 1.34rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.card-copy {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.66;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--status);
  font-size: 0.74rem;
  font-weight: 800;
}

.status-line::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-route,
.text-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.card-route:hover,
.text-action:hover {
  background: #eeeeee;
}

.external-mark {
  font-size: 0.9em;
}

.nav-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 128px;
  padding: 25px 30px;
}

.nav-card .card-kicker.is-gold {
  color: #9b741c;
}

.nav-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--text);
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.nav-card:hover .nav-arrow {
  transform: translateX(3px);
}

.detail-rail {
  display: flex;
  flex-direction: column;
}

.back-button {
  align-self: flex-start;
  padding: 8px 0;
  background: transparent;
  color: #555555;
  font-size: 0.82rem;
  font-weight: 800;
}

.back-button:hover {
  color: var(--text);
}

.detail-icon {
  width: 94px;
  height: 94px;
  margin-top: 48px;
  border-radius: 20px;
}

.detail-rail h1 {
  max-width: 375px;
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 2.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-copy {
  max-width: 350px;
  margin: 21px 0 0;
  color: #595959;
  font-size: 0.94rem;
  line-height: 1.75;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.sheet {
  padding: 32px;
}

.sheet h2 {
  margin: 8px 0 0;
  font-size: 1.58rem;
  line-height: 1.32;
  letter-spacing: 0;
}

.lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.fact {
  min-width: 0;
  padding: 19px;
  background: #fafafa;
}

.fact span {
  display: block;
  color: #898989;
  font-size: 0.68rem;
  font-weight: 800;
}

.fact strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.55;
}

.evidence-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.evidence-item,
.story-item {
  min-width: 0;
}

.evidence-item img,
.story-item img,
.channel-shot {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.evidence-item img {
  aspect-ratio: 4 / 3;
}

.evidence-item figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.plain-list,
.timeline,
.link-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.link-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.plain-list li:first-child,
.link-row:first-child {
  border-top: 0;
}

.plain-list strong,
.link-row strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.5;
}

.plain-list p,
.link-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 7px;
  width: 1px;
  background: #d8d8d8;
  content: "";
}

.timeline li {
  position: relative;
  padding: 0 0 29px 35px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  position: absolute;
  top: 6px;
  left: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 1px var(--action);
  content: "";
}

.timeline time {
  color: #888888;
  font-size: 0.7rem;
  font-weight: 800;
}

.timeline h3 {
  margin: 5px 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.68;
}

.story-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.story-item img {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}

.story-item time {
  color: #888888;
  font-size: 0.7rem;
  font-weight: 800;
}

.story-item h3 {
  margin: 7px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.story-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.68;
}

.resume-section + .resume-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.resume-section h2 {
  margin-top: 0;
}

.channel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr);
  gap: 28px;
  align-items: start;
}

.channel-shot {
  aspect-ratio: 9 / 16;
  max-height: 570px;
  object-position: top;
}

.survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.partner-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.partner-logo-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.partner-logo {
  width: 100%;
  max-height: 132px;
  object-fit: contain;
}

.partner-copy h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
}

.partner-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.68;
}

.partner-copy small {
  display: block;
  margin: 10px 0 14px;
  color: #777777;
  font-size: 0.72rem;
  line-height: 1.55;
}

.empty-state {
  margin-top: 27px;
  padding: 24px;
  border: 1px dashed #c9c9c9;
  border-radius: 12px;
  background: #fafafa;
}

.empty-state strong {
  display: block;
  font-size: 0.9rem;
}

.empty-state p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.qr-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius-card);
  padding: 26px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.24);
}

.qr-dialog::backdrop {
  background: rgb(0 0 0 / 0.42);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-head h2 {
  margin: 7px 0 0;
  font-size: 1.3rem;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--soft);
  font-size: 1.35rem;
}

.qr-image {
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 25px auto 0;
  object-fit: contain;
}

.dialog-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1023px) {
  .app-shell {
    display: block;
    width: 100%;
  }

  .profile-rail,
  .detail-rail {
    position: static;
    width: 100%;
    height: auto;
    padding: 42px 32px 30px;
  }

  .profile-rail {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    column-gap: 26px;
    justify-content: initial;
  }

  .profile-avatar {
    grid-row: span 4;
    width: 124px;
    height: 124px;
  }

  .profile-name {
    margin-top: 4px;
    font-size: 2.65rem;
  }

  .profile-summary,
  .profile-motto,
  .profile-cta,
  .channel-list {
    grid-column: 1 / -1;
  }

  .content-column {
    padding: 0 32px 42px;
  }

  .detail-icon {
    width: 72px;
    height: 72px;
    margin-top: 30px;
  }
}

@media (max-width: 719px) {
  .profile-rail,
  .detail-rail {
    padding: 28px 20px 24px;
  }

  .profile-rail {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 18px;
  }

  .profile-avatar {
    width: 104px;
    height: 104px;
    border-width: 4px;
  }

  .profile-name {
    margin-top: 8px;
    font-size: 2.05rem;
  }

  .profile-role {
    font-size: 0.85rem;
  }

  .profile-summary {
    margin-top: 21px;
  }

  .content-column {
    padding: 0 14px 30px;
  }

  .home-stack,
  .page-stack {
    gap: 14px;
  }

  .project-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 20px;
  }

  .project-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .nav-card {
    min-height: 112px;
    padding: 20px;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .detail-rail h1 {
    font-size: 2rem;
  }

  .sheet {
    padding: 22px 20px;
  }

  .sheet h2 {
    font-size: 1.32rem;
  }

  .fact-grid,
  .evidence-grid,
  .story-grid,
  .channel-layout {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .link-row .text-action {
    justify-self: start;
  }

  .partner-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .partner-logo {
    max-height: 104px;
  }

  .channel-shot {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .project-card:hover,
  .nav-card:hover,
  .nav-card:hover .nav-arrow {
    transform: none !important;
  }
}
