:root { --font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }

body { font-family: var(--font-family); }
button, input, textarea { font-family: inherit; }

.brand-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  align-items: center;
  gap: 30px;
  margin: -10px 0 42px;
  padding: clamp(30px, 6vw, 62px);
  overflow: hidden;
  border: 1px solid hsla(205, 90%, 70%, .18);
  border-radius: 24px;
  background: linear-gradient(135deg, hsl(225, 32%, 11%), hsl(220, 30%, 15%) 55%, hsl(205, 34%, 13%));
  isolation: isolate;
}
.hero-grid { position: absolute; inset: 0; z-index: -3; opacity: .16; background-image: linear-gradient(hsla(205,90%,70%,.2) 1px, transparent 1px), linear-gradient(90deg, hsla(205,90%,70%,.2) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, black, transparent 80%); }
.hero-glow { position: absolute; z-index: -2; border-radius: 50%; filter: blur(10px); animation: heroFloat 8s ease-in-out infinite; }
.hero-glow-one { width: 260px; height: 260px; right: -80px; top: -90px; background: hsla(205, 90%, 55%, .18); }
.hero-glow-two { width: 190px; height: 190px; left: 32%; bottom: -130px; background: hsla(45, 100%, 62%, .1); animation-delay: -3s; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow, .section-kicker { color: hsl(205, 90%, 70%); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.brand-hero h2 { margin: 14px 0 20px; color: var(--white-2); font-size: clamp(42px, 7vw, 74px); line-height: .98; letter-spacing: -.04em; }
.brand-hero h2 small { display: block; margin-top: 16px; color: var(--light-gray); font-size: clamp(16px, 2.6vw, 25px); font-weight: 400; letter-spacing: .04em; }
.hero-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--light-gray); font-size: clamp(14px, 2vw, 18px); }
.hero-roles span { width: 26px; height: 1px; background: var(--orange-yellow-crayola); }
.research-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 28px; }
.research-pills li { padding: 7px 12px; border: 1px solid hsla(205,90%,70%,.25); border-radius: 999px; color: hsl(205,90%,82%); background: hsla(205,90%,55%,.08); font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-button { min-width: 112px; padding: 11px 17px; border: 1px solid var(--jet); border-radius: 11px; color: var(--white-2); background: hsla(0,0%,100%,.04); text-align: center; text-decoration: none; transition: .2s ease; }
.hero-button:hover { transform: translateY(-2px); border-color: hsl(205,90%,65%); }
.hero-button.primary-hero { color: hsl(225,32%,10%); border-color: hsl(205,90%,65%); background: hsl(205,90%,65%); font-weight: 700; }
.hero-visual { position: relative; width: min(230px, 100%); aspect-ratio: 1; display: grid; place-items: center; justify-self: center; }
.core-mark { width: 94px; height: 94px; display: grid; place-items: center; border-radius: 28px; color: hsl(225,32%,10%); background: linear-gradient(145deg, hsl(205,95%,75%), hsl(205,90%,52%)); box-shadow: 0 0 55px hsla(205,90%,55%,.35); font-size: 44px; font-weight: 800; }
.orbit { position: absolute; inset: 10%; border: 1px solid hsla(205,90%,70%,.34); border-radius: 50%; animation: orbitSpin 13s linear infinite; }
.orbit::after { content: ""; position: absolute; width: 11px; height: 11px; left: 50%; top: -6px; border-radius: 50%; background: var(--orange-yellow-crayola); box-shadow: 0 0 18px var(--orange-yellow-crayola); }
.orbit-two { inset: 0; animation-direction: reverse; animation-duration: 19s; transform: rotate(60deg); }
.orbit-two::after { background: hsl(205,90%,68%); box-shadow: 0 0 18px hsl(205,90%,68%); }
.about-heading { margin-top: 8px; }
.profile-section { margin-top: 36px; }
.profile-timeline { display: grid; gap: 13px; margin-top: 18px; }
.profile-timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; color: var(--light-gray); line-height: 1.7; }
.timeline-dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: hsl(205,90%,65%); box-shadow: 0 0 0 5px hsla(205,90%,65%,.1); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes heroFloat { 50% { transform: translateY(18px) scale(1.05); } }

.avatar-box {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

.avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(145deg, hsl(45, 100%, 72%), hsl(35, 100%, 55%));
  color: hsl(0, 0%, 10%);
  font-size: 34px;
  font-weight: 600;
}

.admin-link { display: block; text-decoration: none; }
.about-text { white-space: pre-line; }

.skills-list { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  color: var(--light-gray);
  background: var(--border-gradient-onyx);
  border: 1px solid var(--jet);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: var(--fs-7);
}

.empty-state {
  color: var(--light-gray-70);
  padding: 40px 12px;
  text-align: center;
  border: 1px dashed var(--jet);
  border-radius: 16px;
}

.section-intro {
  margin: -6px 0 28px;
  padding: 16px 18px;
  border-radius: 14px;
  color: var(--light-gray);
  font-size: var(--fs-7);
  line-height: 1.7;
}
.section-intro strong { display: block; margin-bottom: 3px; color: var(--white-2); font-size: var(--fs-6); }
.project-intro { border-left: 3px solid hsl(205, 85%, 62%); background: hsla(205, 85%, 62%, .08); }
.blog-intro { border-left: 3px solid var(--orange-yellow-crayola); background: hsla(45, 100%, 72%, .07); }

.content-kind {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.project-kind { color: hsl(205, 90%, 72%); background: hsla(205, 85%, 55%, .14); }
.blog-kind { color: var(--orange-yellow-crayola); background: hsla(45, 100%, 72%, .12); }

.project-item { display: block; }
.project-card-link { display: block; height: 100%; text-decoration: none; border: 1px solid hsla(205, 85%, 62%, .18); border-radius: 16px; overflow: hidden; }
.project-content { padding: 0 10px 16px; }
.project-img {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--eerie-black-1), var(--onyx));
  margin-bottom: 15px;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: .25s ease; }
.project-card-link:hover img { transform: scale(1.05); }
.project-placeholder { color: var(--orange-yellow-crayola); font-size: 38px; }
.project-title { color: var(--white-2); font-size: var(--fs-5); font-weight: var(--fw-500); margin: 10px 0 7px; }
.project-category, .project-description { color: var(--light-gray-70); font-size: var(--fs-7); margin: 0; }
.project-description { margin-top: 8px; line-height: 1.6; }
.project-action { display: block; margin-top: 15px; color: hsl(205, 90%, 72%); font-size: var(--fs-7); font-weight: 600; }
.project-tech-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:13px; }
.project-tech-tags span { padding:4px 8px; border-radius:7px; color:hsl(205,90%,78%); background:hsla(205,85%,55%,.09); font-size:11px; }

.blog-post-item button {
  width: 100%;
  text-align: left;
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  box-shadow: var(--shadow-4);
  overflow: hidden;
  border: 1px solid hsla(45, 100%, 72%, .14);
}
.blog-banner-box {
  width: 100%;
  height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, hsl(240, 2%, 18%), hsl(45, 70%, 25%));
}
.blog-banner-box img { width: 100%; height: 100%; object-fit: cover; }
.blog-banner-placeholder { font-size: 42px; color: var(--orange-yellow-crayola); }
.blog-content { padding: 20px; }
.blog-meta { color: var(--light-gray-70); font-size: var(--fs-7); margin: 10px 0 8px; }
.blog-item-title { color: var(--white-2); margin-bottom: 10px; }
.blog-text { color: var(--light-gray); font-size: var(--fs-6); line-height: 1.6; }
.blog-action { display: block; margin-top: 15px; color: var(--orange-yellow-crayola); font-size: var(--fs-7); font-weight: 600; }

.post-reader { color: var(--light-gray); }
.text-button { color: var(--orange-yellow-crayola); margin-bottom: 25px; font-size: var(--fs-6); }
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-bottom: 22px; }
.post-date { color: var(--light-gray-70); margin-bottom: 8px; }
.post-content { white-space: pre-wrap; line-height: 1.9; margin-top: 24px; font-size: var(--fs-6); }

.contact-card {
  color: var(--light-gray);
  line-height: 1.8;
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  padding: 24px;
}
.contact-info > span { color: var(--white-2); font-size: var(--fs-7); }
.contact-page-item { margin-top: 16px; }
.contact-page-item a { color: var(--orange-yellow-crayola); }
.contact-symbol { color: var(--orange-yellow-crayola); font-weight: 600; }
.load-error { color: hsl(0, 70%, 65%); }

button:focus-visible, a:focus-visible { outline: 2px solid var(--orange-yellow-crayola); outline-offset: 3px; }

@media (min-width: 580px) {
  .avatar-box { width: 120px; height: 120px; }
}

@media (max-width: 720px) {
  .brand-hero { min-height: 0; grid-template-columns: 1fr; padding: 30px 22px; }
  .hero-visual { width: 170px; grid-row: 1; margin-bottom: 8px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .orbit { animation: none; }
}

@media (min-width: 1250px) {
  .avatar-box { width: 150px; height: 150px; }
}
