:root {
  color-scheme: dark;
  --bg: #05090c;
  --panel: rgba(9, 20, 27, 0.78);
  --panel-solid: #09141b;
  --line: rgba(72, 167, 205, 0.24);
  --line-strong: rgba(76, 196, 243, 0.46);
  --text: #f3f8fb;
  --muted: #8ea3af;
  --soft: #c8d7de;
  --blue: #31b8ff;
  --green: #35ed83;
  --warning: #f0c45a;
  --radius: 8px;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 66% 8%, rgba(35, 145, 203, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(9, 20, 27, 0.95), #05090c 42%, #040608);
  color: var(--text);
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(74, 183, 229, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 183, 229, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

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

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

.site-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(430px, 1fr);
  align-items: center;
  gap: 26px;
  margin-bottom: 26px;
}

.brand,
.top-stats,
.topnav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  background: rgba(49, 184, 255, 0.09);
  box-shadow: inset 0 0 22px rgba(49, 184, 255, 0.08);
}

.topnav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(6, 13, 18, 0.62);
}

.topnav a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(49, 184, 255, 0.11);
}

.top-stats {
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.top-stats span {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.top-stats b {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
}

.hero-grid {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.identity-panel,
.project-console,
.project-track,
.skills-panel,
.notes-panel,
.contact-band {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 27, 36, 0.86), rgba(5, 13, 18, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.identity-panel::before,
.project-console::before,
.project-track::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(49, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(49, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.65;
}

.identity-panel {
  min-height: 690px;
  padding: 40px 36px;
}

.avatar-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  margin-bottom: 28px;
}

.avatar-wrap img {
  width: 152px;
  height: 152px;
  border: 2px solid rgba(85, 198, 246, 0.72);
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  right: 8px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border: 4px solid #06222a;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px rgba(53, 237, 131, 0.78);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(49, 184, 255, 0.8);
}

h1,
h2,
h3,
p {
  position: relative;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  max-width: 390px;
  font-size: 44px;
  font-weight: 860;
}

.hero-copy {
  max-width: 410px;
  margin: 18px 0 28px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.85;
}

.link-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.action-link {
  min-height: 70px;
  padding: 15px 16px;
  border: 1px solid rgba(139, 211, 242, 0.22);
  border-radius: 8px;
  background: rgba(8, 19, 27, 0.84);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.action-link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(12, 33, 44, 0.9);
}

.action-link span {
  display: block;
  margin-bottom: 6px;
  font-weight: 780;
}

.action-link small {
  color: var(--muted);
  font-size: 12px;
}

.mini-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 28px 0 20px;
  padding: 18px 10px;
  border: 1px solid rgba(139, 211, 242, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 25, 0.74);
}

.mini-metrics div {
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-metrics div:last-child {
  border-right: 0;
}

.mini-metrics span,
.telemetry span,
.log-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mini-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.system-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  padding: 17px 18px;
  border: 1px solid rgba(53, 237, 131, 0.16);
  border-radius: 8px;
  background: rgba(6, 24, 25, 0.78);
  color: var(--muted);
  font-size: 14px;
}

.system-line b {
  color: var(--green);
  font-weight: 650;
}

.project-console {
  min-height: 690px;
  padding: 36px 34px 24px;
}

.console-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  max-width: 650px;
}

.console-header h2 {
  font-size: 38px;
}

.console-header p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.8;
}

.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(139, 211, 242, 0.28);
  border-radius: 7px;
  color: var(--text);
  font-size: 14px;
  background: rgba(6, 14, 20, 0.66);
}

.ghost-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.device-stage {
  position: absolute;
  top: 70px;
  right: 28px;
  width: min(52%, 600px);
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.98;
  mask-image: linear-gradient(90deg, transparent 0, black 14%, black 100%);
}

.device-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.96) brightness(0.78);
}

.tech-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: min(720px, 62%);
  margin-top: 130px;
}

.tech-strip div {
  min-height: 86px;
  padding: 10px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-strip div:last-child {
  border-right: 0;
}

.tech-strip span {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-bottom: 9px;
  border: 1px solid rgba(49, 184, 255, 0.5);
  border-radius: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tech-strip b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.tech-strip small {
  color: var(--muted);
  font-size: 12px;
}

.telemetry {
  position: relative;
  margin-top: 14px;
  border: 1px solid rgba(139, 211, 242, 0.16);
  border-radius: 8px;
  background: rgba(5, 15, 21, 0.82);
}

.telemetry-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-row div {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-row div:last-child {
  border-right: 0;
}

.telemetry strong {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 20px;
  font-weight: 820;
}

.chart-log-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  gap: 0;
}

.chart-log-grid > div {
  padding: 16px 18px;
}

.chart-log-grid > div:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chart-title small {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blue-dot,
.green-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.blue-dot {
  background: var(--blue);
}

.green-dot {
  background: var(--green);
}

canvas {
  width: 100%;
  height: 150px;
}

.log-panel ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.log-panel li {
  margin-bottom: 8px;
  color: var(--soft);
  font-size: 13px;
}

.log-panel time {
  margin-right: 12px;
  color: var(--muted);
}

.project-track {
  margin-top: 28px;
  padding: 26px 28px 22px;
}

.section-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(139, 211, 242, 0.15);
  border-radius: 999px;
  background: rgba(5, 13, 18, 0.72);
}

.filter-tabs button {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.filter-tabs button.active {
  color: var(--text);
  background: rgba(49, 184, 255, 0.18);
}

.project-list {
  position: relative;
}

.project-row {
  display: grid;
  grid-template-columns: 92px minmax(240px, 1fr) 150px 330px 66px;
  gap: 22px;
  align-items: center;
  min-height: 88px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-row[hidden] {
  display: none;
}

.project-row img,
.text-thumb {
  width: 92px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(139, 211, 242, 0.16);
}

.text-thumb {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 860;
  background: linear-gradient(135deg, rgba(49, 184, 255, 0.16), rgba(53, 237, 131, 0.1));
}

.project-row h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.project-row h3 span {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(53, 237, 131, 0.18);
  border-radius: 5px;
  color: var(--green);
  background: rgba(53, 237, 131, 0.08);
  font-size: 12px;
  font-weight: 650;
}

.project-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-row time {
  color: var(--muted);
  font-size: 14px;
}

.project-row dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.project-row dl div {
  padding: 0 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.project-row dt {
  color: var(--muted);
  font-size: 12px;
}

.project-row dd {
  margin: 4px 0 0;
  font-size: 14px;
}

.project-row > a {
  color: var(--blue);
  font-size: 14px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  margin-top: 28px;
}

.skills-panel,
.notes-panel {
  padding: 26px 28px;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-grid span {
  padding: 10px 13px;
  border: 1px solid rgba(139, 211, 242, 0.15);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(7, 18, 25, 0.72);
  font-size: 14px;
}

.notes-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-panel li {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
  line-height: 1.7;
}

.notes-panel span {
  display: inline-block;
  min-width: 86px;
  color: var(--green);
  font-weight: 720;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 30px 32px;
}

.contact-band h2 {
  font-size: 28px;
}

.contact-band a {
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--blue);
  background: rgba(49, 184, 255, 0.08);
}

@media (max-width: 1180px) {
  .topbar,
  .hero-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .top-stats {
    justify-content: flex-start;
  }

  .project-console,
  .identity-panel {
    min-height: auto;
  }

  .device-stage {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 310px;
    margin-top: 24px;
    mask-image: none;
  }

  .tech-strip {
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 24px, 760px);
    padding-top: 14px;
  }

  .topnav,
  .top-stats {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 34px;
  }

  .console-header,
  .telemetry-row,
  .chart-log-grid,
  .project-row,
  .mini-metrics,
  .tech-strip {
    grid-template-columns: 1fr;
  }

  .mini-metrics div,
  .tech-strip div,
  .telemetry-row div,
  .chart-log-grid > div:first-child,
  .project-row dl div {
    border-right: 0;
  }

  .mini-metrics div,
  .tech-strip div,
  .telemetry-row div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .project-row {
    gap: 12px;
  }

  .project-row dl {
    grid-template-columns: 1fr;
    border-left: 0;
    gap: 10px;
  }

  .link-row,
  .contact-band {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
