﻿:root {
  --bg: #f6f7fb;
  --text: #1f2430;
  --primary: #4f6ef2;
  --primary-dark: #3a54c9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #eef1ff 0%, #fdf2ff 100%);
  line-height: 1.7;
}

.container { width: min(900px, 92%); margin: 0 auto; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.kicker {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 28px; }
.accent { color: var(--primary); }

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 110, 242, .35);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--primary-dark); }

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.actions .btn.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.actions .btn.btn-ghost:hover { background: rgba(79, 110, 242, .08); }

/* 项目页 */
.page-head {
  min-height: 100vh;
  padding: 64px 0 90px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 28px;
}
.back-link:hover { text-decoration: underline; }
.page-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.page-sub { color: #5b6472; margin-bottom: 32px; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.proj-card {
  background: #fff;
  border: 1px solid #e6e9f2;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.proj-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(79, 110, 242, .14); }
.proj-card .pc-name { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.proj-card .pc-desc { font-size: .9rem; color: #5b6472; margin-top: 8px; line-height: 1.6; }
.proj-card .pc-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--primary);
  font-weight: 600;
}
.proj-card.placeholder { border-style: dashed; background: rgba(255,255,255,.5); }
.proj-card.placeholder .pc-name { color: #9aa3b5; }

/* 主页背景图（仅 body.home 生效） */
body.home .hero {
  background: url('hero-bg.jpg') center/cover no-repeat;
  position: relative;
}
body.home .hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 0;
}
body.home .hero > .container { position: relative; z-index: 1; }
body.home h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
body.home .kicker { color: #ffd58a; letter-spacing: 2px; }
body.home .accent { color: #ffd58a; }
body.home footer.footer { color: rgba(255,255,255,.72); }


.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 18px 0;
  color: #5b6472;
  font-size: .9rem;
}
