:root {
  --bg: #070912;
  --panel: rgba(17, 21, 36, .66);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef2ff;
  --muted: #929ab0;
  --accent: #7c5cff;
  --accent2: #22d3ee;
  --max: 1120px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 700px at 8% -8%, rgba(124, 92, 255, .22), transparent 62%),
    radial-gradient(900px 650px at 108% 6%, rgba(34, 211, 238, .15), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(255, 107, 129, .08), transparent 62%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 0%, transparent 78%);
}

::selection { background: rgba(124, 92, 255, .45); color: #fff; }

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

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
  animation: float 22s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) { width: 460px; height: 460px; left: -140px; top: -100px; background: #7c5cff; }
.aurora span:nth-child(2) { width: 400px; height: 400px; right: -120px; top: 120px; background: #22d3ee; animation-delay: -7s; }
.aurora span:nth-child(3) { width: 380px; height: 380px; left: 42%; bottom: -200px; background: #ff6b81; animation-delay: -14s; opacity: .16; }

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(36px, 46px, 0) scale(1.14); }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  z-index: -1;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(7, 9, 18, .9), rgba(7, 9, 18, .62));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 28px rgba(124, 92, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.brand-mark svg { width: 20px; height: 20px; fill: #fff; }

.brand-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
}

.brand-name small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.nav-toggle {
  display: none;
  place-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

/* ---------- 首屏 ---------- */
main { position: relative; z-index: 1; }

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100svh - 76px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 24px 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent2), transparent);
  flex: 0 0 auto;
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.grad {
  background: linear-gradient(115deg, #b9a7ff 0%, #7c5cff 34%, #22d3ee 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5b8cff 55%, var(--accent2));
  color: #fff;
  box-shadow: 0 14px 34px rgba(91, 140, 255, .28);
}

.btn.primary:hover { box-shadow: 0 18px 42px rgba(91, 140, 255, .4); }

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
  color: #dfe4f5;
}

.btn.ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .08);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(56px, 8vw, 92px);
  color: #6f778c;
  font-size: 10.5px;
  letter-spacing: .18em;
}

.scroll-hint span {
  position: relative;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent2), transparent);
}

.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px var(--accent2);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  75% { transform: translateY(34px); opacity: 0; }
  100% { transform: translateY(34px); opacity: 0; }
}

/* ---------- 通用区块 ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 100px) 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(30px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.index {
  color: var(--accent2);
  font: 11px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .2em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.about-text {
  margin: 0;
  color: #c4cadd;
  font-size: 17px;
  line-height: 2;
}

.about-text:first-child { color: var(--text); font-size: 19px; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 220px at 20% 0%, rgba(124, 92, 255, .16), transparent 65%);
  opacity: 0;
  transition: opacity .24s ease;
  pointer-events: none;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, .45);
  background: rgba(20, 25, 42, .78);
}

.work-card:hover::before { opacity: 1; }

.work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-no {
  color: #6f778c;
  font: 11px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .18em;
}

.work-tag {
  padding: 4px 8px;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
  color: #67e8f9;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 48px 0 12px;
  font-size: 22px;
  letter-spacing: -.01em;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.work-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .35s cubic-bezier(.2, .7, .2, 1);
}

.work-card:hover .work-line { width: 100%; }

/* ---------- 联系方式 ---------- */
.contact { padding-bottom: clamp(60px, 8vw, 100px); }

.contact-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 78px) clamp(24px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(700px 320px at 18% 0%, rgba(124, 92, 255, .2), transparent 62%),
    radial-gradient(600px 300px at 90% 100%, rgba(34, 211, 238, .1), transparent 60%),
    linear-gradient(180deg, rgba(17, 21, 36, .74), rgba(10, 13, 24, .52));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.contact-inner .eyebrow { justify-content: center; }

.contact-inner h2 {
  margin: 20px 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.contact-text {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px 38px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #6f778c;
  font-size: 11.5px;
}

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 40px 24px;
  text-align: center;
}

.notfound .eyebrow { justify-content: center; }

.notfound h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -.03em;
}

.notfound p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.reveal.visible { opacity: 1; transform: none; }

.works-grid .work-card:nth-child(2) { transition-delay: .08s; }
.works-grid .work-card:nth-child(3) { transition-delay: .16s; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; }
  .work-card h3 { margin-top: 34px; }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 18px; }

  .nav-toggle { display: grid; }

  .nav {
    position: absolute;
    top: calc(100% - 4px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(12, 15, 26, .98);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav.open { display: flex; }

  .nav a { padding: 12px 14px; border-radius: 11px; font-size: 14px; }

  .hero { min-height: auto; padding-top: 72px; }
  .pc-only { display: none; }
  .lead { font-size: 15px; }
  .scroll-hint { margin-top: 60px; }

  .section { padding-left: 18px; padding-right: 18px; }
  .section-head { gap: 14px; }

  .contact-inner { border-radius: 24px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
