/* ── DebugLee 个人网站共享样式 ── */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --cyan: #06b6d4;
  --mint: #10b981;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 38px),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #ffffff 100%);
  color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 4px;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,250,252,0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
nav .inner {
  max-width: 1024px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
nav .logo { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: 0; }
nav .links { display: flex; gap: 8px; }
nav .links a {
  font-size: 14px; font-weight: 650; color: var(--muted);
  white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
nav .links a:hover { color: var(--ink); background: rgba(255,255,255,0.82); }

/* ── Sections ── */
section { max-width: 1024px; margin: 0 auto; padding: 120px 24px 80px; }

/* ── Section Headers ── */
.sec-label { font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.sec-title { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: 0; margin-bottom: 12px; }
.sec-desc { font-size: 16px; color: var(--muted); max-width: 720px; margin-bottom: 48px; }

/* ── Hero ── */
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 48px;
  padding-top: 128px;
  text-align: left;
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(219, 234, 254, 0.8); color: #1d4ed8;
  font-size: 12px; font-weight: 800; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 24px; letter-spacing: 1px; border: 1px solid rgba(37, 99, 235, 0.12);
}
.hero .badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}
.hero h1 { font-size: 56px; font-weight: 850; color: var(--ink); letter-spacing: 0; line-height: 1.08; }
.hero h1 span {
  display: block;
  color: var(--blue);
}
.hero p.lead { font-size: 20px; color: var(--muted); margin-top: 22px; max-width: 540px; }
.hero .cta { display: flex; gap: 14px; margin-top: 36px; }
.hero .cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 750; transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.hero .cta .primary { background: var(--ink); color: #fff; box-shadow: 0 12px 26px rgba(15,23,42,0.18); }
.hero .cta .primary:hover { background: #1e293b; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(15,23,42,0.20); }
.hero .cta .secondary { background: rgba(255,255,255,0.88); color: var(--ink); border: 1px solid var(--line); }
.hero .cta .secondary:hover { border-color: rgba(37,99,235,0.22); transform: translateY(-2px); }
.hero .stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 46px; max-width: 560px;
}
.hero .stats > div {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px;
}
.hero .stats .num { font-size: 22px; font-weight: 850; color: var(--ink); line-height: 1.2; }
.hero .stats .label { font-size: 13px; color: var(--faint); margin-top: 8px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px 24px auto auto;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(37,99,235,0.12);
  background: repeating-linear-gradient(90deg, rgba(37,99,235,0.10) 0 1px, transparent 1px 18px);
  border-radius: 28px;
  transform: rotate(8deg);
}
.app-window {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.92));
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  color: var(--faint); font-size: 12px; font-weight: 700;
  padding-bottom: 16px;
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8e1ed; }
.window-bar span:first-child { background: #ff6b6b; }
.window-bar span:nth-child(2) { background: #f7c948; }
.window-bar span:nth-child(3) { background: #34d399; }
.window-bar strong { margin-left: auto; color: var(--muted); font-size: 12px; }
.note-card,
.terminal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.featured-note {
  padding: 18px;
  background:
    linear-gradient(135deg, #fff, #eff6ff);
  border-color: rgba(37,99,235,0.16);
}
.featured-note p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.45;
}
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.note-grid .note-card {
  min-height: 94px;
  padding: 14px;
}
.note-card span {
  display: block;
  font-size: 12px; color: var(--faint); font-weight: 700;
}
.note-card strong {
  display: block; margin-top: 6px;
  font-size: 17px; color: var(--ink); line-height: 1.3;
}
.terminal-card {
  margin-top: 12px;
  padding: 16px;
  background: var(--ink);
  color: #dbeafe;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Works Grid ── */
.works-grid { display: grid; grid-template-columns: minmax(0, 760px); gap: 20px; }
.work-card {
  position: relative;
  background: rgba(255,255,255,0.88); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s, border-color 0.35s;
}
.work-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(15,23,42,0.10); border-color: rgba(37,99,235,0.16); }
.work-card .thumb {
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.95), rgba(255,255,255,0) 32%),
    linear-gradient(135deg, rgba(255,255,255,0.70), rgba(255,255,255,0)),
    #dbeafe;
}
.work-card .thumb::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(15,23,42,0.10);
}
.work-card .thumb img {
  position: relative;
  width: min(100%, 310px);
  height: auto;
  filter: drop-shadow(0 20px 26px rgba(15,23,42,0.10));
  transform: rotate(-1deg);
  transition: transform 0.35s ease;
}
.work-card:hover .thumb img { transform: rotate(0deg) scale(1.025); }
.thumb-analytics { background-color: #dbeafe; }
.product-shot {
  padding: 0;
  background: #fff;
}
.product-shot::before { display: none; }
.work-card .product-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  filter: none;
  transform: none;
}
.work-card:hover .product-shot img { transform: scale(1.015); }
.work-card .info { padding: 20px 22px 22px; }
.work-card .info .tag { font-size: 11px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 0.8px; }
.work-card .info h3 { font-size: 18px; font-weight: 750; margin: 7px 0 7px; color: var(--ink); }
.work-card .info p { font-size: 14px; color: var(--muted); line-height: 1.58; }

/* ── Content List ── */
.content-list { display: flex; flex-direction: column; }
.content-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: padding 0.2s;
}
.content-item:hover { padding-left: 8px; }
.content-item .left { display: flex; align-items: center; gap: 18px; }
.content-item .left .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: #f1f5f9;
}
.content-item h4 { font-size: 16px; font-weight: 600; color: #0f172a; }
.content-item .meta { font-size: 13px; color: #94a3b8; }
.content-item .arrow { color: #cbd5e1; font-size: 20px; transition: color 0.2s; }
.content-item:hover .arrow { color: var(--blue); }

/* ── Post Page ── */
.post { max-width: 720px; }
.post .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 32px; transition: color 0.2s; }
.post .back:hover { color: var(--ink); }
.post .date { font-size: 14px; color: var(--faint); margin-bottom: 8px; }
.post h2 { font-size: 36px; font-weight: 850; color: var(--ink); line-height: 1.22; margin-bottom: 24px; letter-spacing: 0; }
.post .body {
  font-size: 16px; color: var(--text); line-height: 1.85;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.06);
}
.post .body h3 { font-size: 20px; font-weight: 750; color: var(--ink); margin: 32px 0 12px; }
.post .body p { margin-bottom: 16px; }
.post .body ul, .post .body ol { padding-left: 24px; margin-bottom: 16px; }
.post .body li { margin-bottom: 8px; }
.post .body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post .body pre { background: var(--ink); color: #e2e8f0; padding: 20px; border-radius: 12px; overflow-x: auto; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.post .body pre code { background: none; padding: 0; color: inherit; }
.post .body blockquote { border-left: 3px solid var(--blue); padding-left: 16px; color: var(--muted); margin: 16px 0; font-style: italic; }
.post .body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.post .body strong { font-weight: 750; color: var(--ink); }

/* ── Contact ── */
.contact-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.contact-wrap a {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 750; color: var(--text);
  padding: 18px 20px; border-radius: 18px;
  background: rgba(255,255,255,0.88); border: 1px solid var(--line);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.contact-wrap a:hover { transform: translateY(-2px); background: #eff6ff; color: var(--blue); border-color: rgba(37,99,235,0.18); }
.contact-wrap .icon { font-size: 20px; }

/* ── Footer ── */
footer {
  max-width: 1024px; margin: 0 auto; padding: 40px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Social Grid ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.social-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.88);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 28px 20px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(219,234,254,0.55), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
  border-color: rgba(59,130,246,0.2);
}
.social-card:hover::before { opacity: 1; }
.social-icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(15,23,42,0.10));
}
.social-name { position: relative; font-size: 17px; font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.social-desc { position: relative; font-size: 13px; color: var(--faint); }
.qr-card { cursor: default; overflow: visible; }
.qr-card::after {
  content: "扫码关注";
  position: absolute;
  top: 10px; right: 12px;
  font-size: 10px; font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.qr-wrap {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.15);
  padding: 6px;
  z-index: 20;
}
.qr-wrap img { width: 120px; height: 120px; border-radius: 8px; display: block; }
.qr-card:hover .qr-wrap { display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .social-card { padding: 24px 16px 20px; }
  .social-icon { width: 42px; height: 42px; font-size: 18px; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 112px;
    text-align: center;
  }
  .hero h1 { font-size: 42px; }
  .hero p.lead { font-size: 17px; margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; flex-wrap: wrap; }
  .hero .stats { max-width: none; }
  .hero .stats .num { font-size: 23px; }
  .hero-visual::before { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  nav .inner { gap: 16px; }
  nav .links {
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  nav .links::-webkit-scrollbar { display: none; }
  nav .links a { padding: 6px 0; }
  .post h2 { font-size: 28px; }
  .post .body { padding: 22px; border-radius: 18px; }
  .sec-desc { max-width: 100%; }
  section { padding: 80px 20px 60px; }
}

@media (max-width: 520px) {
  nav .inner { height: 58px; padding: 0 18px; }
  nav .logo { font-size: 16px; }
  nav .links { gap: 12px; }
  nav .links a { font-size: 13px; }
  .hero { padding-top: 92px; }
  .hero h1 { font-size: 36px; }
  .hero .cta a { width: 100%; }
  .hero .stats { grid-template-columns: 1fr; }
  .note-grid { grid-template-columns: 1fr; }
  .note-grid .note-card { min-height: auto; }
  .social-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 30px; }
}
