:root {
  --bg: #08090b;
  --surface: #101216;
  --border: #1e2229;
  --fg: #e8eaed;
  --muted: #969eab;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: 22px 24px;
  backdrop-filter: blur(12px);
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid transparent;
}
.logo {
  font-weight: 650; font-size: 17px; letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--muted);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--fg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 96px 24px 120px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 660px; }

.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
  font-weight: 550;
}

h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 680;
  margin-bottom: 26px;
}
.hl {
  color: var(--accent);
  position: relative;
}

.lede {
  font-size: 17px; color: var(--muted);
  max-width: 540px; margin-bottom: 38px;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center;
  padding: 12px 26px; border-radius: 8px;
  font-size: 14.5px; font-weight: 550;
  border: 1px solid var(--border);
  color: var(--fg);
  transition: all .18s ease;
}
.btn:hover { border-color: #2f3540; background: var(--surface); }
.btn.primary {
  background: var(--accent); color: #04140a;
  border-color: var(--accent); font-weight: 620;
}
.btn.primary:hover { background: #6ee7a0; border-color: #6ee7a0; }

/* 背景光晕 */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 640px 420px at 72% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 640px 420px at 72% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; z-index: 1;
  width: 620px; height: 620px;
  right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.10), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

/* ---------- 通用区块 ---------- */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 74px 24px;
  border-top: 1px solid var(--border);
}
.sec-head { margin-bottom: 40px; }
.sec-head h2 {
  font-size: 26px; letter-spacing: -0.02em;
  font-weight: 640; margin-bottom: 8px;
}
.sec-head p { color: var(--muted); font-size: 15px; }

/* ---------- 项目卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: #2f3540;
  transform: translateY(-2px);
}
.card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.tag {
  font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px; border-radius: 5px;
  font-weight: 560;
}
.status {
  font-size: 11.5px; color: var(--muted);
}
.status.live::before {
  content: "●"; color: var(--accent);
  margin-right: 5px; font-size: 8px;
  vertical-align: 1px;
}
.card h3 {
  font-size: 18px; font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p {
  font-size: 14.5px; color: var(--muted);
  margin-bottom: 20px;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 7px;
  list-style: none;
}
.meta li {
  font-size: 12px; color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 5px;
}

/* ---------- 关于 ---------- */
.about p {
  font-size: 16.5px; color: var(--muted);
  max-width: 660px; margin-bottom: 20px;
}
.about strong { color: var(--fg); font-weight: 580; }

/* ---------- 联系 ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.contact-item {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color .18s ease;
}
.contact-item::after {
  content: "↗";
  position: absolute; top: 18px; right: 20px;
  font-size: 15px; color: var(--muted);
  transition: color .18s ease, transform .18s ease;
}
.contact-item:hover { border-color: var(--accent); }
.contact-item:hover::after {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.contact-item .k {
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.05em;
}
.contact-item .v {
  font-size: 15.5px; font-weight: 540;
}

/* ---------- 页脚 ---------- */
.footer {
  max-width: var(--max); margin: 0 auto;
  padding: 36px 24px 52px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}
.footer .dot { opacity: 0.4; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .nav { padding: 18px 20px; }
  .nav-links { gap: 18px; }
  .hero { padding: 64px 20px 84px; }
  .lede { font-size: 16px; }
  .section { padding: 56px 20px; }
  .card { padding: 22px; }
  .hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 640px 420px at 72% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 640px 420px at 72% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-glow { width: 420px; height: 420px; right: -140px; top: -160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}