:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1f2933;
  --muted: #5b6b7b;
  --accent: #2563eb;
  --accent-soft: #e8f0fe;
  --border: #e3e8ef;
  --radius: 14px;
  --maxw: 960px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
}
.nav__brand { font-weight: 700; font-size: 18px; color: var(--text); }
.nav__links a { margin-left: 22px; color: var(--muted); font-size: 15px; }

/* 首屏 */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 20px 90px;
  text-align: center;
}
.hero__eyebrow {
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.hero__title {
  font-size: clamp(28px, 6vw, 48px);
  margin: 14px 0;
  line-height: 1.2;
}
.hero__subtitle {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 17px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #1d4ed8; text-decoration: none; }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--bg-alt); text-decoration: none; }

/* 通用区块 */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 20px;
}
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__title { font-size: 26px; margin-bottom: 16px; }
.section__lead { color: var(--muted); margin-bottom: 28px; max-width: 640px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* 亮点列表 */
.features { list-style: none; display: grid; gap: 12px; }
.features li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.features strong { color: var(--accent); }

/* 作品网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.work { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.work__thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.work h3 { margin: 16px 16px 6px; }
.work p { margin: 0 16px 12px; color: var(--muted); font-size: 14px; }
.work .link { display: block; margin: 0 16px 18px; font-weight: 600; }

/* 联系 */
.contact { font-size: 17px; }

/* 页脚 */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .nav__links a { margin-left: 14px; font-size: 14px; }
}
