/* ============================================================
   ip-01-p5-works 全站样式
   配色沿用作品内的同一套五色，保证仓库三个页面观感统一
   ============================================================ */

:root {
  --paper: #F2ECE1;
  --ink: #14161A;
  --vermilion: #C9543B;
  --ochre: #E0A33E;
  --teal: #2C5A5E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 两个作品页：满屏画布，不出现滚动条 ---------- */
body.sketch-page {
  height: 100vh;
  overflow: hidden;
}

body.sketch-page canvas {
  display: block;
}

.back-link {
  position: fixed;
  left: 24px;
  bottom: 20px;
  z-index: 10;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.back-link:hover { opacity: 1; }

/* ---------- 索引页 ---------- */
.index-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 8vw;
}

.index-header {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
}

.index-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.index-subtitle {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(20, 22, 26, 0.72);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: rgba(20, 22, 26, 0.16);
  border: 1px solid rgba(20, 22, 26, 0.16);
}

.work-card {
  display: block;
  padding: 34px 30px 30px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease;
}

.work-card:hover { background: #fff; }

.work-no {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--vermilion);
}

.work-name {
  margin: 12px 0 10px;
  font-size: 26px;
  font-weight: 700;
}

.work-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(20, 22, 26, 0.7);
}

.work-tag {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.index-footer {
  margin-top: 44px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(20, 22, 26, 0.5);
}

.index-footer a { color: var(--teal); }
