/* ============================================================
   ITSIMPLE · 作品列表页 v3 — "弯曲网格" language
   Self-contained (does not depend on home-v3.css body rules so it
   plays nice inside the design-canvas artboards).
   ============================================================ */

:root {
  --brand: #EF3922;
  --ink: #0E0E0E;
  --green: #1B7F4E;
  --orange: #F46927;
  --light: #F2F2F2;
  --grid: #E8E8E8;
  --bg: #FFFFFF;

  --display: "Syne", "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* ---------- page shell (one per artboard) ---------- */
.wl-page {
  position: relative;
  width: 100%;
  background: var(--bg);
  font-family: var(--display);
  color: var(--brand);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
.wl-page *,
.wl-page *::before,
.wl-page *::after { box-sizing: border-box; }
.wl-page ::selection { background: var(--brand); color: #fff; }
.wl-page a { color: inherit; text-decoration: none; }
.wl-page img { display: block; max-width: 100%; }
.wl-page button { font-family: inherit; }

/* subtle dot field (static evocation of the v3 falling-grid) */
.wl-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image: linear-gradient(rgb(from var(--ink) r g b / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(from var(--ink) r g b / 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,0.4) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgba(0,0,0,0.4) 100%);
}

/* ---------- nav (static within artboard) ---------- */
.wl-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(28px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(14, 14, 14, 0.06);
}
.wl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
}
.wl-brand img { width: 38px; height: 38px; }
.wl-brand .wm {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.wl-brand .wm .dot { color: var(--ink); }
.wl-nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.wl-nav-item {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.3s, color 0.3s;
}
.wl-nav-item:hover { opacity: 1; }
.wl-nav-item.is-current { color: var(--brand); opacity: 1; }

/* ---------- main ---------- */
.wl-main {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 48px) 0;
  flex: 1 0 auto;
}

/* page head — 与场景详情页标题同款(sc-head 体系,见 scenario-detail.css) */
.wl-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 1vw, 14px);
  margin-bottom: 34px;
}
.wl-eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-cap);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(from var(--ink) r g b / 0.5);
  opacity: 0;
  transform: translateY(-44px);
}
.wl-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.wl-name > span { display: inline-block; transform: translateY(115%); }
.wl-display-zh {
  font-family: var(--zh);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--brand);
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
}
.wl-display-zh > span { display: inline-block; transform: translateX(-60px); opacity: 0; }
.wl-head.is-revealed .wl-eyebrow { opacity: 1; transform: none; transition: opacity 0.6s ease 0.05s, transform 0.8s var(--mo-ease-out) 0.05s; }
.wl-head.is-revealed .wl-name > span { transform: none; transition: transform 1s cubic-bezier(0.34, 1.32, 0.5, 1) 0.22s; }
.wl-head.is-revealed .wl-display-zh > span { transform: none; opacity: 1; transition: transform 0.85s var(--mo-ease-out) 0.5s, opacity 0.6s ease 0.5s; }
@media (prefers-reduced-motion: reduce) {
  .wl-eyebrow, .wl-name > span, .wl-display-zh > span { opacity: 1; transform: none; transition: none; }
}

/* ---------- toolbar (VIEW / FILTER) ---------- */
.wl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 30px;
  padding: 22px 0;
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}
.wl-tb-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wl-tb-vdiv { width: 1px; height: 22px; background: var(--grid); }
.wl-tb-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.4;
  margin-right: 4px;
}
.wl-tb-item {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.wl-tb-item:hover { color: var(--brand); }
.wl-tb-item.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.wl-tb-sep {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(14, 14, 14, 0.22);
}
.wl-tb-spacer { flex: 1 1 40px; }

/* ============================================================
   GRID + CARD
   ============================================================ */
.wl-grid { margin-top: 44px; }

.wl-card {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.wl-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-cover.t-orange { background: var(--orange); }
.wl-cover.t-brand  { background: var(--brand); }
.wl-cover.t-green  { background: var(--green); }
.wl-cover.t-dark   { background: var(--ink); }
.wl-cover.t-light  { background: var(--light); }
.wl-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.wl-card:hover .wl-cover img { transform: scale(1.05); }
.wl-cover .art { width: 76%; height: 76%; position: relative; z-index: 1; }
/* tone-aware art fills: .p primary shape · .s secondary accent · .ln line */
.wl-cover .art .p { fill: #fff; }
.wl-cover .art .s { fill: #0E0E0E; }
.wl-cover .art .ln { stroke: #0E0E0E; }
.wl-cover.t-dark .art .s { fill: var(--orange); }
.wl-cover.t-dark .art .ln { stroke: var(--orange); }
.wl-cover.t-light .art .p { fill: var(--brand); }
.wl-cover.t-light .art .s { fill: var(--ink); }
.wl-cover.t-light .art .ln { stroke: var(--ink); }
.wl-cover .reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(101%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.wl-card:hover .reveal { transform: translateY(0); }
.wl-cover .reveal span {
  font-family: var(--zh);
  font-style: normal;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  color: #fff;
  letter-spacing: 0.01em;
}

.wl-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.wl-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 6px;
  transition: color 0.3s ease;
}
.wl-card:hover .wl-title { color: var(--brand); }
.wl-client {
  font-family: var(--zh);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand);
  margin: 0;
}
.wl-year {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(14, 14, 14, 0.45);
  white-space: nowrap;
  padding-top: 4px;
}
.wl-card.is-hidden { display: none !important; }

/* ---------- layout A · staggered 2-col ---------- */
.wl-grid.is-stagger2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px 56px;
  align-items: start;
}
.wl-grid.is-stagger2 .wl-card:nth-child(even) { margin-top: 88px; }
.wl-grid.is-stagger2 .wl-title { font-size: 28px; }
@media (max-width: 760px) {
  .wl-grid.is-stagger2 { grid-template-columns: 1fr; gap: 44px; }
  .wl-grid.is-stagger2 .wl-card:nth-child(even) { margin-top: 0; }
}

/* ---------- layout B · even 3-col ---------- */
.wl-grid.is-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 36px;
}

/* ---------- layout C · hero feature + 3-col ---------- */
.wl-grid.is-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 36px;
}
.wl-grid.is-hero .wl-card.feature { grid-column: 1 / -1; }
.wl-grid.is-hero .wl-card.feature .wl-cover { aspect-ratio: 24 / 9; margin-bottom: 22px; }
.wl-grid.is-hero .wl-card.feature .wl-cover .art { width: 42%; height: 70%; }
.wl-grid.is-hero .wl-card.feature .wl-title { font-size: 46px; line-height: 1.05; }
.wl-grid.is-hero .wl-card.feature .wl-client { font-size: 17px; }
.wl-grid.is-hero .wl-card.feature .wl-cover .reveal span { font-size: 2.6rem; }

/* ---------- LIST VIEW (overrides any layout) ---------- */
.wl-grid.is-list-view {
  display: block;
  margin-top: 16px;
}
.wl-grid.is-list-view .wl-card {
  display: grid;
  grid-template-columns: 104px 1.5fr 1fr 70px;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--grid);
  margin-top: 0 !important;
}
.wl-grid.is-list-view .wl-cover {
  width: 104px;
  height: 72px;
  aspect-ratio: auto;
  border-radius: 8px;
  margin-bottom: 0;
}
.wl-grid.is-list-view .wl-cover .art { width: 64%; height: 64%; }
.wl-grid.is-list-view .wl-cover .reveal { display: none; }
.wl-grid.is-list-view .wl-meta { display: contents; }
.wl-grid.is-list-view .wl-meta > .mt { display: contents; }
.wl-grid.is-list-view .wl-title { font-size: 19px !important; margin: 0; }
.wl-grid.is-list-view .wl-client { font-size: 14px; }
.wl-grid.is-list-view .wl-year { text-align: right; padding-top: 0; }
.wl-grid.is-list-view .wl-card.feature { grid-column: auto; }

/* ---------- footer ---------- */
.wl-footer {
  position: relative;
  z-index: 5;
  margin-top: clamp(80px, 9vw, 120px);
  padding: 48px clamp(28px, 4vw, 56px) 36px;
  border-top: 1px solid var(--grid);
}
.wl-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.wl-footer-mail {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink);
  border-bottom: 3px solid transparent;
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.wl-footer-mail:hover { color: var(--brand); border-bottom-color: var(--brand); }
.wl-footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.wl-footer-links a:hover { color: var(--brand); }
.wl-footer-mark {
  width: 100%;
  display: block;
}
.wl-footer-mark text { font-family: var(--display); }
.wl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: rgba(14, 14, 14, 0.5);
}

/* ============================================================
   STANDALONE FULL-PAGE MODE (chosen layout A, no canvas shell)
   ============================================================ */
.wl-standalone { min-height: 100vh; }
.wl-standalone .wl-bg {
  position: fixed;
  -webkit-mask-image: none;
  mask-image: none;
}
@keyframes wl-fall {
  from { background-position: center 0; }
  to   { background-position: center 2600px; }
}
@media (prefers-reduced-motion: reduce) { .wl-standalone .wl-bg { animation: none; } }
.wl-standalone .wl-nav { position: sticky; top: 0; }
.wl-standalone .wl-nav,
.wl-standalone .wl-footer {
  padding-left: var(--gutter-page);
  padding-right: var(--gutter-page);
}
/* .wl-main 的左右留白由 .wl-main 自身的 1280 容器规则负责,与全站轴线一致 */
.wl-standalone .wl-main { padding-top: clamp(108px, 13vh, 148px); }
