:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e5e9f0;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: #e6f7f5;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.site-name .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); font-weight: 600; }
.topbar nav a:hover { background: var(--accent-soft); color: var(--accent); }
.topbar nav a.active { background: var(--accent); color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 20px 80px; }

.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: .5px; }
.hero .tagline { font-size: 17px; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.hero .about { color: var(--muted); font-size: 15px; margin: 0 auto; max-width: 520px; }

.section-title {
  margin: 40px 0 16px; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.project-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,24,40,.1); border-color: #99f6e4; }
.project-card .p-emoji { font-size: 30px; line-height: 1; }
.project-card .p-body { flex: 1; min-width: 0; }
.project-card h3 { margin: 0 0 6px; font-size: 16px; }
.project-card .p-desc { margin: 0 0 10px; color: var(--muted); font-size: 13.5px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tags span {
  font-size: 12px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid #99f6e4; padding: 1px 8px; border-radius: 999px;
}
.project-card .p-arrow { flex: none; font-size: 13px; color: var(--accent); font-weight: 600; align-self: center; }
.project-card.soon { opacity: .55; border-style: dashed; }
.project-card.soon:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.project-card.soon .p-arrow { color: var(--muted); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0 0; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
}
