:root {
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --ink-4: #cbd5e1;
  --line: #ebeef2;
  --line-2: #f1f4f8;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --accent: #1e88e5;
  --accent-weak: #e8f1fc;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============== HEADER ============== */
.site-header { padding: 22px 0; position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-2); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 800; letter-spacing: -0.5px;
}
.wm-text { font-size: 15px; letter-spacing: 0.1px; color: var(--ink); }
.wm-muted { color: var(--ink-3); font-weight: 500; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .wm-muted { display: none; }
}

/* ============== HERO ============== */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero::before {
  content: ""; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 460px; pointer-events: none;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.10), transparent 68%);
  filter: blur(10px); z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; animation: fadeUp 0.6s ease both; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  display: grid; place-items: center; margin: 0 auto 28px;
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.25);
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 44px); font-weight: 700;
  letter-spacing: -0.022em; line-height: 1.18; color: var(--ink); margin-bottom: 22px;
}
.lede { font-size: 16px; color: var(--ink-2); line-height: 1.78; max-width: 620px; margin: 0 auto 34px; }
.lede b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  transition: all 0.2s ease; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1f2937; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }

/* ============== Section heads ============== */
.section-head { margin-bottom: 38px; }
.sh-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}
.section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 8px; }
.sh-sub { font-size: 15px; color: var(--ink-2); max-width: 540px; }

/* ============== Now ============== */
.now { padding-top: 60px; }
.now-list {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line-2);
}
.now-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 18px;
  padding: 22px 4px; border-bottom: 1px solid var(--line-2);
  align-items: flex-start;
}
.now-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 8px;
}
.dot-active { background: #1e88e5; box-shadow: 0 0 0 4px rgba(30,136,229,0.12); }
.dot-soon  { background: #cbd5e1; }
.now-title { font-size: 16px; font-weight: 650; color: var(--ink); margin-bottom: 4px; display: inline; }
.now-meta { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.badge-soon {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-3);
  margin-left: 6px; vertical-align: middle;
}

/* ============== Projects ============== */
.projects { padding-top: 72px; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
  opacity: 0; animation: fadeIn 0.6s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:nth-child(1) { animation-delay: 0.04s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.22s; }
.card:nth-child(5) { animation-delay: 0.28s; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
  border-color: var(--accent-weak);
}

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chip {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; font-size: 20px; background: var(--bg-soft);
}
.card-exam   .chip { background: #e8f1fc; }
.card-fj     .chip { background: #e0f5f3; }
.card-xf     .chip { background: #fdeaea; }
.card-media  .chip { background: #f3e8fd; }
.card-build  .chip { background: #fef3e2; }
.card-meta   .chip { background: #f1f5f9; color: var(--ink); font-weight: 700; }
.chip-reserve        { background: #f8fafc; border: 1px dashed var(--ink-4); }

.tag { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.card-exam   .tag { background: #e8f1fc; color: #1565c0; }
.card-fj     .tag { background: #e0f5f3; color: #0d9488; }
.card-xf     .tag { background: #fdeaea; color: #dc2626; }
.card-media  .tag { background: #f3e8fd; color: #7c3aed; }
.card-build  .tag { background: #fef3e2; color: #b45309; }
.card-meta   .tag { background: #f1f5f9; color: #475569; }
.tag-reserve         { background: #f8fafc; color: var(--ink-3); border: 1px dashed var(--ink-4); }

.card h3 { font-size: 17px; font-weight: 650; color: var(--ink); margin-bottom: 9px; line-height: 1.45; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin-bottom: 0; flex: 1; }

/* 整张卡右上角 → 角标（hover 时位移，表示整卡可点） */
.card::after {
  content: "→";
  position: absolute; top: 22px; right: 22px;
  font-size: 18px; font-weight: 600; color: var(--ink-3);
  transition: transform 0.2s ease, color 0.2s ease;
}
.card:hover::after { transform: translateX(4px); color: var(--accent); }

/* 预留产品卡（待开张） */
.card-reserve {
  background: #fafbfc;
  border: 1px dashed var(--ink-4);
  cursor: default;
  animation: fadeIn 0.6s ease both 0.34s;
}
.card-reserve:hover { transform: none; box-shadow: none; border-color: var(--ink-4); }
.card-reserve::after { content: ""; }
.card-reserve p { color: var(--ink-2); }
.reserve-note {
  display: inline-block; margin-top: 8px;
  font-size: 12px; color: var(--ink-3);
  background: #fff; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--line-2);
}

/* ============== Writing (empty) ============== */
.writing { padding-top: 72px; }
.empty {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  animation: fadeUp 0.5s ease both 0.1s;
}
.empty-mark {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-3); font-size: 24px;
  display: grid; place-items: center; margin: 0 auto 18px;
}
.empty-title { font-size: 18px; font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.empty-desc { font-size: 14px; color: var(--ink-2); line-height: 1.7; max-width: 540px; margin: 0 auto 22px; }
.empty-desc b { color: var(--accent); font-weight: 600; }

/* ============== Contact ============== */
.contact { padding-top: 72px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.contact-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-item:hover { border-color: var(--accent-weak); transform: translateY(-2px); }
.ci-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ci-value { font-size: 17px; font-weight: 700; color: var(--ink); }
.ci-value::after { content: " ↗"; color: var(--ink-4); font-weight: 400; transition: color 0.2s ease; }
.contact-item:hover .ci-value::after { color: var(--accent); }
.ci-desc { font-size: 13px; color: var(--ink-2); }

/* ============== Footer ============== */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line-2); padding: 30px 0 40px; text-align: center; color: var(--ink-3); font-size: 13px; }
.site-footer p { margin-bottom: 6px; }
.site-footer .muted { color: var(--ink-4); font-size: 12px; }

/* ============== Motion ============== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============== Responsive ============== */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .now, .projects, .writing, .contact { padding-top: 56px; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .empty { padding: 40px 22px; }
  .site-footer { margin-top: 60px; }
  .avatar { width: 76px; height: 76px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .card { opacity: 1; }
}
