:root {
  --bg: #07141c;
  --bg-2: #0c1e2a;
  --paper: #e8f4f8;
  --muted: #8fb3c4;
  --ink: #e8f4f8;
  --accent: #1bb8a8;
  --accent-2: #7ad7ff;
  --line: rgba(232, 244, 248, 0.12);
  --sans: "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(27, 184, 168, 0.18), transparent 55%),
    radial-gradient(800px 500px at 0% 20%, rgba(122, 215, 255, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(7, 20, 28, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 900;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.logo span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  opacity: 0.65;
  margin-top: 2px;
  color: var(--accent-2);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}

.nav-cta {
  background: var(--accent);
  color: #042018;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 28px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--paper);
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.hero {
  min-height: 100vh;
  padding: 140px 40px 80px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  position: relative;
}

.hero-photo {
  position: relative;
  z-index: 1;
}

.hero-photo img,
.gallery img,
.project-visual img,
.article-card img,
.article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo img {
  min-height: 420px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.hero-photo figcaption,
.gallery figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 0;
}

.gallery figure {
  overflow: hidden;
}

.gallery img {
  height: 180px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(36px, 6.4vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  max-width: 540px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn-primary,
.btn-ghost,
.copy-wechat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #042018;
}

.btn-ghost,
.copy-wechat {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 200px));
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.status { display: inline-flex; align-items: center; gap: 8px; }
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ee0a0;
  box-shadow: 0 0 0 0 rgba(94, 224, 160, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(94, 224, 160, 0); }
}

section { padding: 110px 40px; max-width: 1180px; margin: 0 auto; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p, .about-copy p, .notes p {
  color: var(--muted);
}

.project.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  margin-bottom: 36px;
  align-items: stretch;
}

.project-visual {
  min-height: 220px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.project.featured .project-visual {
  min-height: 380px;
}

.project-visual img {
  min-height: 220px;
}

.v1 {
  background:
    radial-gradient(circle at 30% 40%, rgba(27, 184, 168, 0.4), transparent 46%),
    linear-gradient(160deg, #123445, #07141c);
  min-height: 380px;
}

.cool-ring {
  width: 210px;
  height: 210px;
  border: 2px solid rgba(122, 215, 255, 0.35);
  border-radius: 50%;
  position: absolute;
  right: 10%;
  top: 16%;
  animation: spin 18s linear infinite;
}

.cool-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(27, 184, 168, 0.6);
  border-radius: 50%;
}

.cool-flake {
  width: 90px;
  height: 90px;
  position: absolute;
  left: 16%;
  bottom: 18%;
  background:
    linear-gradient(var(--accent-2), var(--accent-2)) center/8px 100% no-repeat,
    linear-gradient(90deg, var(--accent-2), var(--accent-2)) center/100% 8px no-repeat;
  transform: rotate(45deg);
  opacity: 0.85;
}

@keyframes spin { to { transform: rotate(360deg); } }

.project-body h3 {
  font-size: 30px;
  font-weight: 900;
  margin: 8px 0 16px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.project-body p { color: var(--muted); }

.project-body ul {
  margin-top: 22px;
  list-style: none;
  color: var(--paper);
  font-size: 14px;
}

.project-body li + li { margin-top: 8px; }
.project-body li::before {
  content: "—";
  color: var(--accent);
  margin-right: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-grid .project-visual { min-height: 170px; }

.v2 { background: linear-gradient(180deg, #123445, #0a1a24); }
.v3 { background: radial-gradient(circle at 70% 30%, #1a4a55, #07141c); }
.v4 { background: repeating-linear-gradient(90deg, #0c1e2a 0 18px, #102633 18px 19px); }

.project-visual span {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.bars i {
  flex: 1;
  background: var(--accent);
  opacity: 0.7;
  animation: grow 2.8s ease-in-out infinite;
}

.bars i:nth-child(1) { height: 40%; }
.bars i:nth-child(2) { height: 78%; animation-delay: 0.2s; background: var(--accent-2); }
.bars i:nth-child(3) { height: 52%; animation-delay: 0.4s; }
.bars i:nth-child(4) { height: 90%; animation-delay: 0.6s; background: #148f84; }

@keyframes grow { 50% { transform: scaleY(0.72); } }

.ring {
  width: 120px;
  height: 120px;
  border: 1px solid var(--accent-2);
  border-radius: 50%;
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(122, 215, 255, 0.4);
  border-radius: 50%;
}

.grid-dots {
  position: absolute;
  inset: 30px;
  background-image: radial-gradient(rgba(232, 244, 248, 0.35) 1px, transparent 1px);
  background-size: 16px 16px;
}

.about {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
}

.about-copy h2 { margin: 8px 0 28px; }
.about-copy p + p { margin-top: 16px; }

.about-aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

dl div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

dd { font-size: 20px; font-weight: 700; }

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.skill-list li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 15px;
  color: var(--muted);
}

.skill-list strong {
  color: var(--paper);
  font-weight: 900;
}

.note-list { list-style: none; }
.note-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.note-list time {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
}

.note-list p { color: var(--paper); max-width: 640px; }

.article-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
}

.article-card img { height: 180px; }

.article-card div { padding: 18px 18px 22px; }

.article-card h3 {
  font-size: 20px;
  margin: 8px 0 10px;
}

.article-card p { color: var(--muted); font-size: 14px; }

.share-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: var(--bg-2);
}

.share-url, .share-text {
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 22px 80px;
}

.article h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 12px;
}

.article-meta {
  color: var(--muted);
  margin-bottom: 28px;
}

.article img {
  height: 320px;
  border-radius: 14px;
  margin: 12px 0 28px;
  border: 1px solid var(--line);
}

.article h2 {
  margin: 32px 0 12px;
  font-size: 24px;
}

.article p { margin-bottom: 16px; color: var(--paper); }

.article ul {
  margin: 0 0 20px 20px;
  color: var(--muted);
}

.article li + li { margin-top: 8px; }

.article-cta {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}

.contact { padding-bottom: 80px; }
.contact h2 { margin: 10px 0 18px; }

.mail {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 0.04em;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
}

.wechat-hint {
  margin-top: 14px;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  align-items: center;
  color: var(--muted);
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 40px 48px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .nav { padding: 16px 22px; }
  .nav-toggle { display: block; z-index: 60; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    font-size: 22px;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: none; }
  .hero, section, .footer { padding-left: 22px; padding-right: 22px; }
  .hero, .hero-meta, .project.featured, .project-grid, .about, .skill-list, .note-list li, .gallery, .article-cards {
    grid-template-columns: 1fr;
  }
  .about-aside { border-left: 0; padding-left: 0; }
  .hero-photo img { min-height: 240px; }
  .gallery img { height: 200px; }
}
