:root {
  --paper: #f7f7f5;
  --paper-deep: #ecece8;
  --ink: #161715;
  --muted: #686a64;
  --line: #d2d3ce;
  --white: #ffffff;
  --coral: #f05236;
  --blue: #3767ee;
  --lime: #b7ef59;
  --header-height: 68px;
  --side: clamp(20px, 3.3vw, 56px);
  --radius: 4px;
  --project-accent: #b7ef59;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 19px; height: 19px; stroke-width: 1.8; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(22, 23, 21, 0.16);
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 var(--side);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 22px;
  height: 22px;
  padding: 4px 3px;
  border: 1px solid currentColor;
}
.brand-mark span { display: block; width: 5px; background: currentColor; }
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 13px; background: var(--coral); }
.brand-mark span:nth-child(3) { height: 9px; }
.brand-name { font-size: 13px; font-weight: 850; }
.brand-caption {
  margin-left: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.desktop-nav { display: flex; align-items: center; gap: 32px; height: 100%; }
.desktop-nav a {
  display: grid;
  place-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
  font-size: 13px;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible { border-color: var(--coral); }
.header-contact, .back-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}
.header-contact svg, .back-link svg { width: 16px; height: 16px; }
.back-link { justify-self: center; font-weight: 600; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.menu-button, .mobile-nav { display: none; }

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(520px, 1.16fr);
  height: 360px;
  border-bottom: 1px solid var(--line);
}
.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px var(--side);
}
.intro-copy h1 {
  margin: 20px 0 16px;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 850;
}
.intro-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.intro-link svg { width: 15px; height: 15px; }
.intro-feature {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: white;
}
.intro-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.intro-feature:hover img { transform: scale(1.025); }
.intro-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 7, 0.66), rgba(7, 8, 7, 0.1) 70%);
}
.feature-label, .intro-feature strong, .feature-open { position: absolute; z-index: 1; }
.feature-label {
  top: 30px;
  left: 34px;
  color: var(--lime);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}
.intro-feature strong {
  bottom: 34px;
  left: 34px;
  max-width: 70%;
  font-size: 40px;
  line-height: 0.96;
}
.feature-open {
  right: 30px;
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.works-section { padding: 72px var(--side) 110px; }
.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.works-head h2 { margin: 8px 0 0; font-size: 54px; line-height: 1; }
.works-head > p { margin: 0; color: var(--muted); font-size: 12px; }
.discovery-bar {
  position: sticky;
  z-index: 20;
  top: var(--header-height);
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, 0.96);
  backdrop-filter: blur(12px);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 38px;
}
.search-field svg { flex: 0 0 auto; width: 17px; height: 17px; }
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.search-field input::placeholder { color: #8b8d86; }
.search-field kbd {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--muted);
  font-family: inherit;
  font-size: 9px;
}
.filter-group { display: flex; align-items: center; gap: 3px; }
.filter-button {
  min-width: 48px;
  height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.filter-button:hover, .filter-button:focus-visible { background: var(--paper-deep); }
.filter-button.is-active { background: var(--ink); color: white; }
.sort-control {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.sort-control svg { width: 15px; height: 15px; }
.sort-control select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 18px;
}
.project-card { min-width: 0; }
.project-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #292a27;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}
.project-cover:hover img, .project-cover:focus-visible img { transform: scale(1.035); }
.project-cover:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.project-info {
  display: block;
  min-width: 0;
  padding-top: 13px;
}
.project-info > div { min-width: 0; }
.project-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 9px;
  text-transform: uppercase;
}
.project-info h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-title-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-title-link:hover, .project-title-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.project-tags {
  min-width: 0;
  max-width: 100%;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty-state { place-items: center; min-height: 330px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-state:not([hidden]) { display: grid; }
.empty-state h3 { margin: 10px 0 18px; }
.load-error, .project-error { display: grid; place-items: center; align-content: center; min-height: 360px; padding: 40px; text-align: center; }
.load-error h3, .project-error h1 { margin: 0 0 12px; }
.load-error p { margin: 0; color: var(--muted); }
.project-error a { margin-top: 22px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-weight: 700; }
.text-link { padding: 0 0 5px; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; }

.studio-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.8fr) minmax(260px, 0.7fr);
  gap: 60px;
  padding: 78px var(--side);
  background: var(--ink);
  color: white;
}
.studio-section .eyebrow { color: var(--lime); }
.studio-section h2 { max-width: 560px; margin: 16px 0 0; font-size: 42px; line-height: 1.15; }
.studio-copy { align-self: end; margin: 0; color: #b8bab5; font-size: 15px; line-height: 1.85; }
.studio-services { align-self: end; margin: 0; border-top: 1px solid #4a4b46; }
.studio-services div { display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-bottom: 1px solid #4a4b46; }
.studio-services dt { color: #83857f; font-family: Consolas, monospace; font-size: 10px; }
.studio-services dd { margin: 0; font-size: 14px; }
.contact-section { padding: 82px var(--side) 94px; background: var(--project-accent); color: var(--ink); }
.contact-section h2 { max-width: 900px; margin: 18px 0 38px; font-size: 54px; line-height: 1.08; }
.contact-section a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid currentColor;
  font-size: 21px;
  font-weight: 750;
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 94px;
  padding: 0 var(--side);
  background: var(--ink);
  color: white;
}
.site-footer p { color: #8f918b; font-family: Consolas, monospace; font-size: 9px; }
.footer-legal { display: grid; justify-items: center; gap: 7px; text-align: center; }
.footer-legal p { margin: 0; }
.footer-site-name { color: #b7b9b3; font-size: 10px; line-height: 1.4; }
.site-footer .footer-record { color: #a9aba5; font-size: 10px; line-height: 1.4; }
.site-footer .public-security-record { display: inline-flex; align-items: center; gap: 5px; }
.site-footer .public-security-record img { width: 18px; height: 18px; object-fit: contain; }
.site-footer .footer-record:hover, .site-footer .footer-record:focus-visible { color: white; text-decoration: underline; text-underline-offset: 3px; }
.site-footer > a:last-child { display: inline-flex; align-items: center; justify-self: end; gap: 7px; font-size: 11px; }
.site-footer > a:last-child svg { width: 14px; height: 14px; }

/* Project detail */
.project-page { background: #ededeb; }
.case-study { --case-pad: var(--side); }
.case-hero {
  position: relative;
  height: min(620px, calc(100svh - var(--header-height)));
  min-height: 480px;
  overflow: hidden;
  background: #222;
  color: white;
}
.case-hero > img, .showcase-closing > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 6, 0.86), rgba(6, 7, 6, 0.18) 72%);
}
.case-hero.is-light { color: var(--ink); }
.case-hero.is-light .case-hero-shade {
  background: linear-gradient(90deg, rgba(251, 251, 248, 0.93), rgba(251, 251, 248, 0.08) 76%);
}
.case-hero-copy { position: absolute; z-index: 1; top: 50%; left: var(--case-pad); transform: translateY(-50%); }
.case-hero-copy p { margin: 0 0 22px; color: var(--project-accent); font-family: Consolas, monospace; font-size: 10px; font-weight: 700; }
.case-hero.is-light .case-hero-copy p { color: var(--ink); }
.case-hero-copy h1 { max-width: 780px; margin: 0 0 24px; font-size: 78px; line-height: 0.92; }
.case-hero-copy > span { font-size: 14px; font-weight: 700; }
.case-index { position: absolute; z-index: 1; right: var(--case-pad); bottom: 34px; margin: 0; font-family: Consolas, monospace; font-size: 9px; }
.case-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 100px;
  padding: 82px var(--case-pad) 92px;
  background: var(--paper);
}
.case-intro h2 { margin: 16px 0 20px; font-size: 48px; line-height: 1.12; }
.case-intro > p:not(.eyebrow) { max-width: 760px; margin: 0; color: #50524d; font-size: 18px; line-height: 1.85; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.case-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; }
.case-facts { align-self: end; margin: 0; border-top: 1px solid var(--line); }
.case-facts div { display: grid; grid-template-columns: 95px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--muted); font-size: 11px; }
.case-facts dd { margin: 0; font-size: 12px; font-weight: 700; }
.case-gallery { display: grid; gap: 18px; padding: 18px; }
.showcase-frame, .showcase-image {
  position: relative;
  width: 100%;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.showcase-statement {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 70px;
  background: var(--ink);
  color: white;
  text-align: center;
}
.showcase-statement::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 8px;
  background: var(--project-accent);
  content: "";
}
.showcase-number { position: absolute; top: 34px; left: 38px; color: #777a73; font-family: Consolas, monospace; font-size: 10px; }
.showcase-statement > p { margin: 0 0 30px; color: var(--project-accent); font-family: Consolas, monospace; font-size: 10px; font-weight: 700; }
.showcase-statement h2 { margin: 0; font-size: 76px; line-height: 0.95; }
.showcase-statement > span { max-width: 620px; margin-top: 34px; color: #afb1ac; font-size: 15px; line-height: 1.8; }
.showcase-metrics {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 70px;
  padding: 70px 8%;
  background: var(--project-accent);
  color: #11120f;
}
.showcase-title span, .showcase-system > span { font-family: Consolas, monospace; font-size: 9px; font-weight: 700; }
.showcase-title h2 { margin: 22px 0 0; font-size: 44px; line-height: 1.14; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(0, 0, 0, 0.45); }
.metric-grid div { display: grid; align-content: space-between; min-height: 180px; padding: 22px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.45); border-right: 1px solid rgba(0, 0, 0, 0.45); }
.metric-grid div:last-child { border-right: 0; }
.metric-grid strong { font-size: 38px; }
.metric-grid span { font-size: 11px; }
.showcase-image { background: #242522; }
.showcase-image img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.showcase-wide img { filter: saturate(0.8) contrast(1.04); }
.showcase-wide::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.15);
  content: "";
  pointer-events: none;
}
.showcase-image figcaption { position: absolute; right: 28px; bottom: 24px; padding: 8px 10px; background: rgba(15,16,14,0.74); color: white; font-family: Consolas, monospace; font-size: 8px; }
.case-thinking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  min-height: 430px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.case-thinking > div { display: flex; flex-direction: column; justify-content: center; padding: 70px 10%; background: var(--paper); }
.case-thinking > div:last-child { background: #e1e2dd; }
.case-thinking h2 { margin: 15px 0 24px; font-size: 42px; }
.case-thinking div > p:last-child { max-width: 580px; margin: 0; color: #565852; font-size: 16px; line-height: 1.9; }
.showcase-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.showcase-duo .showcase-image, .showcase-duo .showcase-frame { min-height: 620px; }
.showcase-duo .showcase-image img { min-height: 620px; filter: saturate(0.5); }
.showcase-system { display: flex; flex-direction: column; justify-content: center; padding: 68px 10%; background: #fbfbf8; }
.showcase-system h2 { max-width: 620px; margin: 42px 0; font-size: 38px; line-height: 1.3; }
.system-lines { display: grid; gap: 12px; width: 75%; margin-top: 44px; }
.system-lines i { display: block; height: 2px; background: var(--ink); }
.system-lines i:nth-child(2) { width: 84%; }
.system-lines i:nth-child(3) { width: 62%; background: var(--project-accent); }
.system-lines i:nth-child(4) { width: 38%; }
.system-colors { display: flex; gap: 8px; }
.system-colors b { width: 42px; height: 42px; background: var(--ink); }
.system-colors b:nth-child(2) { background: var(--project-accent); }
.system-colors b:nth-child(3) { border: 1px solid var(--line); background: white; }
.showcase-process { padding: 70px 7%; background: #292a27; color: white; }
.showcase-process > p { margin: 0; color: var(--project-accent); font-family: Consolas, monospace; font-size: 9px; }
.showcase-process h2 { margin: 16px 0 62px; font-size: 48px; }
.showcase-process ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid #61635d; list-style: none; }
.showcase-process li { display: grid; gap: 90px; min-height: 190px; padding: 20px; border-right: 1px solid #61635d; font-size: 17px; }
.showcase-process li:last-child { border-right: 0; }
.showcase-process li span { color: #8f918b; font-family: Consolas, monospace; font-size: 9px; }
.showcase-closing { display: grid; color: white; }
.showcase-closing > * { grid-area: 1 / 1; }
.showcase-closing .case-hero-shade { z-index: 1; background: rgba(5,6,5,0.62); }
.showcase-closing p, .showcase-closing h2 { z-index: 2; align-self: center; justify-self: center; }
.showcase-closing p { margin-bottom: 145px; color: var(--project-accent); font-family: Consolas, monospace; font-size: 9px; font-weight: 700; }
.showcase-closing h2 { margin: 0; font-size: 62px; text-align: center; }
.project-pager {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  min-height: 180px;
  margin-top: 18px;
  background: var(--paper);
}
.project-pager > a:not(.pager-grid) { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 34px var(--side); }
.project-pager > a:last-child { align-items: flex-end; text-align: right; }
.project-pager span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.project-pager strong { font-size: 20px; }
.pager-grid { display: grid; place-items: center; align-self: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-footer { margin-top: 0; }

/* Simple PPT case gallery */
.ppt-case-study { padding-top: 1px; background: #ededeb; }
.ppt-case-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  min-height: 270px; padding: 64px var(--side) 52px; background: var(--paper);
}
.ppt-case-header h1 { max-width: 900px; margin: 16px 0 14px; font-size: 54px; line-height: 1.08; }
.ppt-case-header > div > span { color: var(--muted); font-size: 12px; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: 12px; }
.case-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.case-meta svg { width: 15px; height: 15px; }
.case-meta b { color: var(--ink); font-weight: 750; }
.case-download-button {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px;
  min-width: 154px; min-height: 48px; padding: 0 20px; border-radius: var(--radius); background: var(--ink); color: white; font-size: 13px; font-weight: 750;
}
.case-download-button:hover, .case-download-button:focus-visible { background: #343531; }
.case-download-button svg { width: 17px; height: 17px; }
.ppt-page-gallery { display: grid; gap: 20px; padding: 20px; }
.ppt-page-frame { position: relative; width: min(100%, 1440px); margin: 0 auto; overflow: hidden; border-radius: var(--radius); background: #242522; box-shadow: 0 18px 54px rgba(27,28,25,.08); }
.ppt-page-frame img { display: block; width: 100%; height: auto; }
.ppt-page-frame figcaption {
  position: absolute; right: 14px; bottom: 14px; padding: 7px 9px; border-radius: 3px;
  background: rgba(15,16,14,.72); color: white; font-family: Consolas, monospace; font-size: 8px;
}
.bilibili-video-block {
  width: min(100%,1440px); margin: 0 auto; padding: clamp(18px,3vw,34px);
  border-radius: 26px; background: linear-gradient(135deg,#302866,#4f3f91); color: white;
  box-shadow: 0 18px 50px rgba(43,37,95,.16);
}
.bilibili-video-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.bilibili-video-head .eyebrow { background: rgba(255,255,255,.11); color: #dad6ff; }
.bilibili-video-head h2 { margin: 13px 0 0; font-size: clamp(28px,3.2vw,44px); }
.bilibili-video-head > a {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px;
  border-radius: 999px; background: #fb7299; color: white; font-size: 12px; font-weight: 750;
}
.bilibili-video-head > a:hover, .bilibili-video-head > a:focus-visible { background: #ff8bad; }
.bilibili-video-head > a svg { width: 15px; height: 15px; }
.bilibili-player-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 18px; background: #17142f; }
.bilibili-player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-download-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 2px; padding: 62px var(--side); background: var(--project-accent); color: var(--ink);
}
.case-download-panel h2 { margin: 13px 0 0; font-size: 38px; }
.case-download-panel > p { color: var(--muted); }

@media (max-width: 1180px) {
  .portfolio-intro { grid-template-columns: 0.9fr 1.1fr; }
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discovery-bar { grid-template-columns: 1fr auto; }
  .filter-group { grid-row: 2; grid-column: 1 / -1; justify-content: center; }
  .studio-section { grid-template-columns: 1fr 1fr; }
  .studio-services { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .studio-services div { border-top: 1px solid #4a4b46; border-bottom: 0; }
  .case-hero-copy h1 { font-size: 64px; }
  .showcase-statement h2 { font-size: 62px; }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-contact, .brand-caption { display: none; }
  .menu-button { display: inline-grid; justify-self: end; }
  .mobile-nav {
    position: fixed;
    z-index: 49;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 8px var(--side) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .site-header.menu-open .mobile-nav { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .detail-header .header-inner { grid-template-columns: 1fr auto; }
  .detail-header .back-link { justify-self: end; }
  .portfolio-intro { grid-template-columns: 1fr; }
  .portfolio-intro { height: auto; }
  .intro-copy { min-height: 310px; }
  .intro-copy h1 { font-size: 42px; }
  .intro-feature { min-height: 310px; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 14px; }
  .works-head h2 { font-size: 46px; }
  .studio-section { grid-template-columns: 1fr; gap: 38px; }
  .studio-services { grid-column: auto; grid-template-columns: 1fr; }
  .contact-section h2 { font-size: 44px; }
  .case-hero { min-height: 470px; }
  .case-hero-copy h1 { font-size: 52px; }
  .case-overview { grid-template-columns: 1fr; gap: 44px; padding-top: 58px; padding-bottom: 64px; }
  .case-intro h2 { font-size: 40px; }
  .showcase-frame, .showcase-image { min-height: 480px; }
  .showcase-statement h2 { font-size: 50px; }
  .showcase-metrics { grid-template-columns: 1fr; gap: 44px; padding: 54px 8%; }
  .metric-grid div { min-height: 140px; }
  .case-thinking { grid-template-columns: 1fr; }
  .case-thinking > div { min-height: 360px; padding: 54px 8%; }
  .showcase-duo { grid-template-columns: 1fr; }
  .showcase-duo .showcase-image, .showcase-duo .showcase-frame, .showcase-duo .showcase-image img { min-height: 500px; }
  .showcase-process ol { grid-template-columns: 1fr 1fr; }
  .showcase-process li { gap: 50px; min-height: 150px; border-bottom: 1px solid #61635d; }
  .showcase-closing h2 { font-size: 48px; }
  .ppt-case-header h1 { font-size: 44px; }
}

@media (max-width: 560px) {
  .intro-copy { min-height: 285px; padding-top: 36px; padding-bottom: 36px; }
  .intro-copy h1 { margin-top: 16px; font-size: 36px; }
  .intro-copy > p:not(.eyebrow) { font-size: 13px; }
  .intro-feature { min-height: 260px; }
  .intro-feature strong { left: 22px; bottom: 24px; font-size: 32px; }
  .feature-label { top: 22px; left: 22px; }
  .feature-open { right: 20px; bottom: 20px; }
  .works-section { padding-top: 56px; padding-bottom: 80px; }
  .works-head { margin-bottom: 22px; }
  .discovery-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .search-field { flex: 1 0 100%; }
  .search-field kbd { display: none; }
  .filter-group { justify-content: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .sort-control { margin-left: auto; }
  .works-grid { grid-template-columns: 1fr; gap: 42px; }
  .studio-section h2 { font-size: 34px; }
  .contact-section { padding-top: 66px; padding-bottom: 72px; }
  .contact-section h2 { font-size: 36px; }
  .contact-section a { font-size: 17px; }
  .site-footer { grid-template-columns: 1fr auto; min-height: 84px; }
  .site-footer p { display: none; }
  .site-footer .footer-legal { grid-row: 2; grid-column: 1 / -1; padding: 0 0 18px; }
  .case-hero { height: 500px; min-height: 0; }
  .case-hero-copy { right: var(--side); }
  .case-hero-copy h1 { font-size: 44px; }
  .case-index { bottom: 22px; }
  .case-intro h2 { font-size: 34px; }
  .case-intro > p:not(.eyebrow) { font-size: 15px; }
  .case-facts div { grid-template-columns: 78px 1fr; }
  .case-gallery { gap: 10px; padding: 10px; }
  .showcase-frame, .showcase-image { min-height: 420px; }
  .showcase-statement { padding: 50px 22px; }
  .showcase-statement h2 { font-size: 38px; }
  .showcase-statement > span { font-size: 13px; }
  .showcase-title h2 { font-size: 34px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid div { grid-template-columns: 1fr auto; align-items: center; min-height: 84px; border-right: 0; }
  .metric-grid strong { font-size: 30px; }
  .showcase-image img { min-height: 420px; }
  .case-thinking > div { min-height: 330px; }
  .case-thinking h2 { font-size: 34px; }
  .case-thinking div > p:last-child { font-size: 14px; }
  .showcase-duo .showcase-image, .showcase-duo .showcase-frame, .showcase-duo .showcase-image img { min-height: 430px; }
  .showcase-system { padding: 48px 8%; }
  .showcase-system h2 { font-size: 30px; }
  .showcase-process { padding: 52px 8%; }
  .showcase-process h2 { font-size: 36px; margin-bottom: 44px; }
  .showcase-process li { gap: 34px; min-height: 124px; padding: 15px; font-size: 14px; }
  .showcase-closing h2 { padding: 0 20px; font-size: 38px; }
  .project-pager { grid-template-columns: 1fr 1fr; min-height: 150px; }
  .project-pager > a:not(.pager-grid) { padding: 26px 20px; }
  .project-pager strong { font-size: 15px; }
  .pager-grid { display: none; }
  .ppt-case-header { display: grid; min-height: 0; padding-top: 42px; padding-bottom: 36px; }
  .ppt-case-header h1 { font-size: 34px; }
  .ppt-case-header .case-download-button { width: 100%; }
  .ppt-page-gallery { gap: 10px; padding: 10px; }
  .ppt-page-frame figcaption { right: 8px; bottom: 8px; }
  .case-download-panel { display: grid; padding-top: 46px; padding-bottom: 46px; }
  .case-download-panel h2 { font-size: 30px; }
  .case-download-panel .case-download-button { width: 100%; }
}

/* AI publishing metadata detail layout. Legacy projects without metadata keep the original header/gallery layout. */
.project-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: 24px;
  width: min(1880px, calc(100% - 48px));
  margin: 24px auto 0;
}
.project-visual-column { min-width: 0; }
.project-visual-column .ppt-page-gallery { gap: 24px; padding: 0; }
.project-visual-column .ppt-page-frame { width: 100%; }
.project-info-column { position: sticky; top: 92px; min-width: 0; }
.project-info-card {
  overflow: hidden;
  padding: clamp(26px, 3vw, 46px);
  border: 1px solid rgba(74, 67, 133, 0.09);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(43, 37, 95, 0.08);
}
.project-info-card > h1 { margin: 12px 0 18px; font-size: clamp(34px, 3.1vw, 56px); line-height: 1.08; letter-spacing: -0.045em; }
.creator-card { display: flex; align-items: center; gap: 13px; margin: 24px 0 0; padding: 15px; border-radius: 18px; background: #f7f7fb; }
.creator-card img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.creator-card span { display: grid; gap: 4px; }
.creator-card small { color: var(--muted); font-size: 11px; }
.creator-card strong { font-size: 13px; line-height: 1.35; }
.case-info-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(74, 67, 133, 0.1); }
.case-info-section h2 { margin: 0 0 12px; font-size: 17px; }
.case-info-section p { margin: 0; color: #5d6071; font-size: 14px; line-height: 1.9; }
.case-info-section ul { display: grid; gap: 9px; margin: 0; padding: 0 0 0 18px; color: #5d6071; font-size: 13px; line-height: 1.75; }
.case-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.case-pill-list :where(a, span) { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 11px; border: 1px solid rgba(74, 67, 133, 0.13); border-radius: 999px; color: #5d6071; background: #fff; font-size: 11px; line-height: 1.35; text-decoration: none; transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.case-pill-list a:hover { transform: translateY(-2px); color: #40377c; border-color: rgba(83, 69, 176, 0.34); background: #f7f5ff; box-shadow: 0 7px 16px rgba(56, 45, 113, 0.10); }
.case-pill-list a:active { transform: translateY(0) scale(0.98); }
.case-pill-list a:focus-visible, .case-meta-filter:focus-visible { outline: 3px solid rgba(95, 76, 196, 0.25); outline-offset: 2px; }
.case-meta-filter { color: inherit; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.case-meta-filter:hover { color: #514399; transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .case-pill-list :where(a, span), .case-meta-filter { transition: none; }
  .case-pill-list a:hover, .case-pill-list a:active, .case-meta-filter:hover { transform: none; }
}
.case-info-download { margin-top: 28px; padding-top: 26px; border-top: 1px solid rgba(74, 67, 133, 0.1); }
.case-info-download .case-download-button { width: 100%; }
.project-detail-shell .ppt-page-frame figcaption { display: flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); }
.project-detail-shell .ppt-page-frame figcaption strong { overflow: hidden; font-family: inherit; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1080px) {
  .project-detail-shell { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); width: calc(100% - 28px); gap: 14px; }
  .project-info-card { padding: 26px; border-radius: 22px; }
  .project-info-card > h1 { font-size: 34px; }
}

@media (max-width: 820px) {
  .project-detail-shell { display: flex; flex-direction: column-reverse; width: auto; margin: 14px; }
  .project-info-column { position: static; width: 100%; }
  .project-visual-column { width: 100%; }
  .project-info-card { padding: 28px 22px; }
  .project-info-card > h1 { font-size: 34px; }
  .project-visual-column .ppt-page-gallery { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* PUSHIPPT friendly visual refresh */
:root {
  --paper: #f7f6ff;
  --paper-deep: #eceaff;
  --ink: #25213f;
  --muted: #747087;
  --line: rgba(74, 67, 133, 0.15);
  --white: #ffffff;
  --coral: #ff8294;
  --blue: #4964e8;
  --lime: #c8f16c;
  --header-height: 76px;
  --side: clamp(18px, 4vw, 64px);
  --radius: 18px;
  --project-accent: #d9f48d;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(109, 124, 246, 0.10), transparent 27rem),
    radial-gradient(circle at 92% 22%, rgba(255, 153, 174, 0.10), transparent 24rem),
    var(--paper);
}

.eyebrow {
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(73, 100, 232, 0.09);
  color: var(--blue);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-header {
  height: var(--header-height);
  border: 0;
  background: rgba(247, 246, 255, 0.86);
  box-shadow: 0 8px 28px rgba(52, 46, 105, 0.06);
  backdrop-filter: blur(20px);
}

.header-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  margin: 0;
  padding: 0 var(--side);
}

.brand { gap: 11px; }
.brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(48, 67, 168, 0.22);
}
.brand-copy { display: grid; gap: 2px; }
.brand-name { color: var(--ink); font-size: 15px; font-weight: 900; letter-spacing: 0.02em; }
.brand-caption {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 10px;
}

.desktop-nav {
  gap: 5px;
  height: auto;
  padding: 5px;
  border: 1px solid rgba(73, 100, 232, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(55, 49, 113, 0.07);
}
.desktop-nav a {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible { border: 0; background: var(--paper-deep); color: var(--blue); }
.icon-button { border-color: var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.72); }

.portfolio-intro {
  position: relative;
  grid-template-columns: minmax(440px, 1.02fr) minmax(500px, 0.98fr);
  min-height: 590px;
  height: auto;
  margin: 24px var(--side) 0;
  overflow: hidden;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, #eeecff 0%, #f9f7ff 52%, #fff2f5 100%);
  box-shadow: 0 22px 70px rgba(54, 46, 120, 0.10);
}
.portfolio-intro::before, .portfolio-intro::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.portfolio-intro::before { top: -80px; left: 32%; width: 230px; height: 230px; background: rgba(118, 132, 244, 0.11); }
.portfolio-intro::after { bottom: -95px; left: -50px; width: 260px; height: 260px; background: rgba(255, 163, 181, 0.14); }
.intro-copy { position: relative; z-index: 1; padding: 62px clamp(36px, 5vw, 82px); }
.intro-copy h1 {
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.intro-copy h1 em { color: var(--blue); font-style: normal; }
.intro-copy > p:not(.eyebrow) { max-width: 550px; color: #69647f; font-size: 15px; line-height: 1.85; }
.intro-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.intro-badges span {
  padding: 8px 12px;
  border: 1px solid rgba(73, 100, 232, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #5e5976;
  font-size: 11px;
}
.intro-link {
  min-height: 46px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 26px rgba(73, 100, 232, 0.24);
}
.intro-link:hover, .intro-link:focus-visible { background: #3853d3; transform: translateY(-1px); }
.intro-feature {
  min-height: 0;
  margin: 24px;
  border-radius: 25px;
  box-shadow: 0 18px 42px rgba(38, 31, 91, 0.19);
}
.intro-feature-overlay { background: linear-gradient(180deg, rgba(23, 20, 55, 0.04), rgba(23, 20, 55, 0.72)); }
.feature-label {
  top: 24px;
  left: 24px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-family: inherit;
  backdrop-filter: blur(12px);
}
.intro-feature strong { bottom: 36px; left: 30px; font-size: clamp(34px, 3.4vw, 50px); line-height: 1; }
.feature-open { right: 24px; bottom: 24px; border: 0; background: rgba(255, 255, 255, 0.88); color: var(--ink); }

.works-section { padding: 94px var(--side) 110px; }
.works-head { margin-bottom: 34px; }
.works-head h2 { margin-top: 13px; font-size: clamp(42px, 4vw, 58px); letter-spacing: -0.04em; }
.section-lead { margin: 15px 0 0; color: var(--muted); font-size: 14px; }
.discovery-bar {
  top: calc(var(--header-height) + 8px);
  gap: 10px;
  margin-bottom: 34px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 36px rgba(52, 46, 105, 0.07);
}
.search-field { height: 42px; padding: 0 12px; border-radius: 13px; background: #f4f2ff; }
.search-field kbd { border: 0; border-radius: 7px; background: white; }
.filter-group { gap: 5px; }
.filter-button { height: 38px; border-radius: 11px; }
.filter-button:hover, .filter-button:focus-visible { background: #f0eeff; }
.filter-button.is-active { background: var(--blue); color: white; box-shadow: 0 6px 14px rgba(73, 100, 232, 0.20); }
.sort-control { height: 38px; padding: 0 10px; border: 0; border-radius: 11px; background: #f4f2ff; }
.works-grid { gap: 28px 20px; }
.project-card {
  min-width: 0;
  padding: 10px 10px 14px;
  border: 1px solid rgba(74, 67, 133, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(52, 46, 105, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(52, 46, 105, 0.12); }
.project-cover { border-radius: 15px; }
.project-info { padding: 14px 5px 0; }
.project-info h3 { font-size: 16px; }
.project-tags { min-height: 16px; color: #8a869b; }

.style-library-section {
  margin: 0 var(--side) 84px;
  padding: clamp(44px, 6vw, 82px);
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #282255 0%, #3f347b 55%, #5c4da1 100%);
  color: white;
  box-shadow: 0 24px 70px rgba(48, 37, 112, 0.18);
}
.style-library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.style-library-head .eyebrow { background: rgba(255,255,255,.11); color: #d9d4ff; }
.style-library-head h2 { margin: 16px 0 0; font-size: clamp(36px, 4vw, 54px); letter-spacing: -0.04em; }
.style-library-head > p { max-width: 410px; margin: 0; color: #d6d2e9; font-size: 14px; line-height: 1.8; }
.style-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.style-showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--ink);
  transition: transform 220ms ease;
}
.style-showcase-card::after { position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.24); content: ""; }
.style-showcase-card:hover { transform: translateY(-5px) rotate(-.5deg); }
.style-showcase-card > span { font-size: 11px; font-weight: 800; opacity: .55; }
.style-showcase-card strong { margin-top: auto; font-size: 24px; }
.style-showcase-card p { position: relative; z-index: 1; margin: 9px 0 0; font-size: 12px; opacity: .72; }
.style-showcase-card svg { position: absolute; z-index: 2; top: 19px; right: 19px; width: 17px; }
.style-cool { background: linear-gradient(145deg, #c8d9ff, #eef3ff); }
.style-bold { background: linear-gradient(145deg, #ff9fb1, #ffd1da); }
.style-warm { background: linear-gradient(145deg, #ffe185, #fff1be); }
.style-tech { background: linear-gradient(145deg, #a9f0dd, #d8fff2); }

.site-footer {
  min-height: 112px;
  border-radius: 30px 30px 0 0;
  background: #272341;
}
.site-footer .brand-name { color: white; }
.footer-brand .brand-logo { width: 34px; height: 34px; border-radius: 10px; }
.site-footer p { color: #9f9ab6; }
.site-footer .footer-site-name { color: #b4b0c5; }
.site-footer .footer-record { color: #bebad0; }

.project-page, .ppt-case-study { background: var(--paper); }
.detail-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
.detail-header .back-link {
  justify-self: end;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: white;
  color: var(--blue);
  box-shadow: 0 8px 22px rgba(55, 49, 113, 0.08);
}
.ppt-case-header {
  min-height: 280px;
  margin: 24px var(--side) 0;
  padding: 58px clamp(28px, 5vw, 72px);
  border-radius: 30px;
  background: linear-gradient(135deg, #eeecff, #fff2f5);
}
.ppt-case-header h1 { font-size: clamp(42px, 5vw, 66px); letter-spacing: -0.04em; }
.case-download-button { min-height: 48px; border-radius: 999px; background: var(--blue); box-shadow: 0 12px 26px rgba(73, 100, 232, 0.24); }
.case-download-button:hover, .case-download-button:focus-visible { background: #3853d3; }
.case-download-tip { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.case-download-tip[hidden] { display: none; }

.license-page { min-height: 100vh; background: radial-gradient(circle at 18% 16%, rgba(73, 100, 232, 0.13), transparent 28%), radial-gradient(circle at 84% 72%, rgba(255, 141, 155, 0.13), transparent 32%), var(--background); }
.license-main { min-height: calc(100vh - 168px); display: grid; place-items: center; padding: 60px 24px 90px; }
.license-panel { width: min(680px, 100%); padding: clamp(34px, 6vw, 64px); border: 1px solid rgba(73, 100, 232, 0.12); border-radius: 32px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 28px 70px rgba(44, 42, 78, 0.12); text-align: center; }
.license-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 24px; background: #eef1ff; color: var(--blue); }
.license-icon svg { width: 34px; height: 34px; }
.license-panel h1 { margin: 0; color: var(--ink); font-size: clamp(28px, 5vw, 46px); letter-spacing: -0.04em; }
.license-panel > p { max-width: 520px; margin: 18px auto 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.license-steps { display: grid; gap: 10px; margin: 28px 0 0; padding: 20px 24px; border-radius: 20px; background: #f7f7fc; color: #54536a; text-align: left; line-height: 1.65; }
.license-steps strong { color: var(--ink); }
.license-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.license-actions a, .license-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.license-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(73, 100, 232, 0.24); }
.license-secondary { background: #f0f0f7; color: var(--ink); }
.license-detail { display: block; margin-top: 18px; color: #8a869b; font-size: 12px; }
.license-panel[data-state="success"] .license-icon { background: #e9f9ef; color: #159447; }
.license-panel[data-state="error"] .license-icon { background: #fff0f2; color: #d94a5c; }
.ppt-page-gallery { gap: 24px; padding: 24px var(--side); }
.ppt-page-frame { border-radius: 24px; box-shadow: 0 18px 50px rgba(43, 37, 95, 0.12); }
.ppt-page-frame figcaption { border-radius: 999px; }
.case-download-panel {
  margin: 0 var(--side) 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #dce5ff, #f8dce5);
}
.project-pager { margin: 0 var(--side) 24px; overflow: hidden; border-radius: 26px; background: white; }
.project-pager.is-single { grid-template-columns: 1fr; min-height: 112px; }
.project-pager.is-single > a.pager-return-all { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 9px; padding: 26px; color: var(--blue); font-size: 13px; font-weight: 750; }
.pager-grid { border: 0; border-radius: 14px; background: #f0eeff; color: var(--blue); }

@media (max-width: 1180px) {
  .portfolio-intro { grid-template-columns: minmax(380px, .95fr) minmax(430px, 1.05fr); }
  .style-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; justify-self: end; }
  .mobile-nav {
    top: var(--header-height);
    padding: 10px 16px 18px;
    border: 0;
    border-radius: 0 0 22px 22px;
    background: rgba(247,246,255,.97);
    box-shadow: 0 16px 30px rgba(52,46,105,.10);
  }
  .mobile-nav a { margin-top: 6px; padding: 13px 15px; border: 0; border-radius: 12px; background: white; font-weight: 700; }
  .brand-logo { width: 35px; height: 35px; }
  .brand-caption { display: block; }
  .portfolio-intro { grid-template-columns: 1fr; margin: 14px 14px 0; border-radius: 25px; }
  .intro-copy { min-height: 0; padding: 48px clamp(24px, 8vw, 58px); }
  .intro-feature { min-height: 380px; margin: 0 16px 16px; }
  .works-section { padding: 72px 18px 88px; }
  .discovery-bar { top: calc(var(--header-height) + 6px); }
  .style-library-section { margin: 0 14px 60px; border-radius: 26px; }
  .style-library-head { display: grid; }
  .ppt-case-header { margin: 14px 14px 0; border-radius: 25px; }
  .ppt-page-gallery { padding: 14px; }
  .case-download-panel, .project-pager { margin-right: 14px; margin-left: 14px; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 13px; }
  .brand-caption { font-size: 9px; }
  .intro-copy { padding: 40px 23px 34px; }
  .intro-copy h1 { margin-top: 18px; font-size: 38px; line-height: 1.12; }
  .intro-copy > p:not(.eyebrow) { font-size: 14px; }
  .intro-badges { gap: 6px; }
  .intro-badges span { padding: 7px 9px; font-size: 10px; }
  .intro-link { width: 100%; justify-content: center; }
  .intro-feature { min-height: 300px; border-radius: 19px; }
  .works-head { align-items: flex-start; }
  .works-head > p { padding-top: 12px; }
  .works-head h2 { font-size: 39px; }
  .discovery-bar { padding: 8px; border-radius: 16px; }
  .project-card { border-radius: 19px; }
  .style-library-section { padding: 40px 20px; }
  .style-library-head h2 { font-size: 36px; }
  .style-showcase-grid { grid-template-columns: 1fr; }
  .style-showcase-card { min-height: 180px; }
  .site-footer { row-gap: 14px; padding-top: 20px; border-radius: 24px 24px 0 0; }
  .site-footer .footer-legal { padding-bottom: 18px; }
  .ppt-case-header { padding: 40px 22px; }
  .ppt-case-header h1 { font-size: 36px; }
  .ppt-page-frame { border-radius: 14px; }
  .bilibili-video-block { padding: 16px; border-radius: 20px; }
  .bilibili-video-head { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .bilibili-video-head > a { width: 100%; justify-content: center; }
  .bilibili-player-wrap { border-radius: 13px; }
  .case-download-panel { border-radius: 22px; }
}

/* Content libraries */
.desktop-nav a.is-active { background: var(--blue); color: white; box-shadow: 0 7px 16px rgba(73,100,232,.20); }
.desktop-nav a.is-active:hover, .desktop-nav a.is-active:focus-visible { background: #3853d3; color: white; }
.collection-more { display: flex; align-items: center; gap: 15px; }
.collection-more > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.collection-more > span b { color: var(--ink); font-size: 15px; }
.collection-more > a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: white; color: var(--blue); box-shadow: 0 8px 22px rgba(55,49,113,.08); font-size: 12px; font-weight: 750;
}
.collection-more > a svg { width: 15px; height: 15px; }
.collection-more.light > span { color: #c9c5dd; }
.collection-more.light > span b { color: white; }
.collection-more.light > a { background: rgba(255,255,255,.12); color: white; box-shadow: none; }
.home-empty {
  display: grid; place-items: center; align-content: center; gap: 10px; min-height: 220px;
  border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); text-align: center;
}
.home-empty[hidden] { display: none; }
.home-empty svg { width: 28px; height: 28px; }
.home-empty p { margin: 0; font-size: 13px; }
.style-library-copy { margin: -16px 0 30px; color: #d6d2e9; font-size: 14px; }
.style-works-grid .project-card { background: rgba(255,255,255,.96); }
.style-empty { border-color: rgba(255,255,255,.24); color: #d6d2e9; }

.gallery-page-intro {
  display: grid; grid-template-columns: minmax(460px,.95fr) minmax(380px,1.45fr) auto; align-items: stretch; gap: clamp(22px,3vw,50px);
  min-height: 330px; margin: 24px var(--side) 0; padding: 38px clamp(30px,4vw,68px);
  overflow: hidden; border-radius: 32px; background: linear-gradient(135deg,#eeecff,#fff3f6); box-shadow: 0 22px 70px rgba(54,46,120,.09);
}
.gallery-page-intro.style-page-intro { background: linear-gradient(135deg,#e3e8ff,#eafcf5 55%,#fff2d7); }
.gallery-intro-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.gallery-page-intro h1 { margin: 18px 0 12px; font-size: clamp(40px,5vw,76px); line-height: 1; letter-spacing: -.055em; white-space: nowrap; word-break: keep-all; }
.gallery-page-intro > div > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.gallery-count { display: grid; align-content: center; justify-items: end; flex: 0 0 auto; }
.gallery-count strong { color: var(--blue); font-size: clamp(58px,7vw,92px); line-height: .85; }
.gallery-count span { margin-top: 13px; color: var(--muted); font-size: 12px; }
.tag-bubble-field {
  position: relative;
  min-width: 0;
  min-height: 254px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 24% 88%, rgba(73,100,232,.11), transparent 36%),
    radial-gradient(circle at 76% 15%, rgba(255,121,151,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.19), rgba(255,255,255,.42));
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.tag-bubble {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  width: var(--bubble-diameter);
  min-width: var(--bubble-diameter);
  height: var(--bubble-diameter);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(73,100,232,.17);
  border-radius: 50%;
  background: rgba(255,255,255,.80);
  color: #54566c;
  box-shadow: 0 9px 25px rgba(51,44,111,.08);
  font-size: var(--bubble-size);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  opacity: 0;
  backdrop-filter: blur(12px);
  will-change: transform, opacity;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.tag-bubble-tone-0 { border-color: rgba(73,100,232,.22); background: rgba(238,243,255,.90); }
.tag-bubble-tone-1 { border-color: rgba(86,163,144,.22); background: rgba(239,255,250,.82); }
.tag-bubble-tone-2 { border-color: rgba(223,129,151,.20); background: rgba(255,244,247,.84); }
.tag-bubble-tone-3 { border-color: rgba(175,132,51,.19); background: rgba(255,250,233,.84); }
.tag-bubble-tone-4 { border-color: rgba(115,91,184,.20); background: rgba(248,244,255,.84); }
.tag-bubble:hover,
.tag-bubble:focus-visible {
  z-index: 30 !important;
  border-color: #4964e8;
  background: #4964e8;
  color: #fff;
  opacity: 1 !important;
  box-shadow: 0 14px 34px rgba(55,77,195,.28);
  filter: saturate(1.15);
  outline: none;
}
.tag-bubble:focus-visible { box-shadow: 0 0 0 4px rgba(255,255,255,.82), 0 0 0 7px rgba(73,100,232,.34), 0 14px 34px rgba(55,77,195,.28); }
.tag-bubble:active { background: #344dcc; }
.gallery-section { min-height: 520px; padding: 58px var(--side) 110px; }
.gallery-toolbar {
  position: sticky; z-index: 20; top: calc(var(--header-height) + 8px);
  display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 10px;
  margin-bottom: 34px; padding: 10px; border: 1px solid var(--line); border-radius: 20px;
  background: rgba(255,255,255,.88); box-shadow: 0 12px 36px rgba(52,46,105,.07); backdrop-filter: blur(14px);
}
.gallery-toolbar .sort-control { min-width: 142px; }
.gallery-section .empty-state { min-height: 310px; border: 1px dashed var(--line); border-radius: 22px; }
.gallery-section .empty-state p { margin: -6px 0 18px; color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .gallery-page-intro { grid-template-columns: minmax(0,1fr) auto; min-height: 0; }
  .gallery-intro-copy { grid-column: 1; }
  .tag-bubble-field { grid-column: 1 / -1; grid-row: 2; min-height: 214px; }
  .gallery-count { grid-column: 2; grid-row: 1; }
}

@media (max-width: 820px) {
  .collection-more { align-items: flex-end; flex-direction: column; gap: 8px; }
  .gallery-page-intro { grid-template-columns: minmax(0,1fr) auto; min-height: 0; margin: 14px 14px 0; padding: 32px 30px; border-radius: 25px; }
  .gallery-page-intro h1 { font-size: clamp(40px,8vw,54px); }
  .tag-bubble-field { min-height: 226px; }
  .tag-bubble:nth-child(n+20) { display: none; }
  .gallery-section { padding: 46px 18px 88px; }
}

@media (max-width: 560px) {
  .collection-more { align-items: flex-end; }
  .collection-more > span { display: none; }
  .collection-more > a { min-height: 36px; padding: 0 11px; }
  .style-library-head { grid-template-columns: 1fr auto; display: grid; }
  .style-library-copy { margin-top: -18px; }
  .gallery-page-intro { display: grid; grid-template-columns: 1fr auto; gap: 20px; min-height: 0; padding: 36px 23px 28px; }
  .gallery-intro-copy { grid-column: 1 / -1; }
  .gallery-page-intro h1 { font-size: clamp(34px,11vw,44px); }
  .gallery-page-intro > div > p:last-child { font-size: 14px; }
  .tag-bubble-field { grid-column: 1 / -1; grid-row: 2; min-height: 178px; border-radius: 20px; }
  .tag-bubble:nth-child(n+15) { display: none; }
  .gallery-count { display: flex; align-items: baseline; gap: 8px; justify-items: start; }
  .gallery-count strong { font-size: 46px; }
  .gallery-toolbar { top: calc(var(--header-height) + 6px); grid-template-columns: 1fr auto; padding: 8px; border-radius: 16px; }
  .gallery-toolbar .search-field { min-width: 0; }
  .gallery-toolbar .sort-control { min-width: 46px; padding: 0 7px; }
  .gallery-toolbar .sort-control select { width: 24px; color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .tag-bubble-field {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 24px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tag-bubble {
    position: static;
    width: var(--bubble-diameter);
    min-width: var(--bubble-diameter);
    height: var(--bubble-diameter);
    opacity: var(--bubble-opacity);
    transform: none;
  }
}

/* Dense, works-first home page */
.site-header:not(.detail-header) .header-inner {
  display: flex;
  justify-content: flex-start;
  gap: clamp(18px, 2.4vw, 34px);
}
.site-header:not(.detail-header) .desktop-nav {
  margin-left: 0;
  gap: 7px;
  padding: 5px;
  border: 1px solid rgba(73, 100, 232, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 24px rgba(55, 49, 113, 0.08);
}
.site-header:not(.detail-header) .desktop-nav a {
  height: 44px;
  padding: 0 21px;
  font-size: 14px;
  font-weight: 800;
}
.site-header:not(.detail-header) .menu-button { margin-left: auto; }
.detail-header .header-inner { display: flex; }
.detail-header .back-link { margin-left: auto; }

.home-page main { min-height: calc(100vh - var(--header-height)); }
.home-page .home-collection-section {
  margin: 0;
  padding: 30px var(--side) 58px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.home-page .home-style-section {
  padding-top: 40px;
  border-top: 1px solid rgba(74, 67, 133, 0.12);
}
.home-page .home-collection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.home-page .home-collection-head h1,
.home-page .home-collection-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.home-page .collection-more { flex-direction: row; align-items: center; }
.home-page .collection-more > span { color: var(--muted); }
.home-page .collection-more > span b { color: var(--ink); }
.home-page .collection-more > a {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(73, 100, 232, 0.12);
  box-shadow: none;
}
.home-page .home-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 14px;
}
.home-page .project-card {
  padding: 6px 6px 10px;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(52, 46, 105, 0.055);
}
.home-page .project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(52, 46, 105, 0.10);
}
.home-page .project-cover { border-radius: 11px; }
.home-page .project-info {
  padding: 10px 3px 0;
}
.home-page .project-info h3 {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .project-tags {
  min-height: 14px;
  margin-top: 5px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .style-works-grid .project-card { background: rgba(255,255,255,.84); }
.home-page .style-empty { border-color: var(--line); color: var(--muted); }

@media (max-width: 1180px) {
  .home-page .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header:not(.detail-header) .header-inner { gap: 12px; }
  .home-page .home-collection-section { padding: 24px 18px 48px; }
  .home-page .home-style-section { padding-top: 32px; }
  .home-page .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}

@media (max-width: 560px) {
  .home-page .home-collection-head { align-items: center; gap: 12px; }
  .home-page .home-collection-head h1,
  .home-page .home-collection-head h2 { font-size: 24px; }
  .home-page .collection-more > a { min-height: 34px; }
  .home-page .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 9px; }
  .home-page .project-card { padding: 5px 5px 9px; border-radius: 14px; }
  .home-page .project-cover { border-radius: 9px; }
  .home-page .project-info { padding-top: 8px; }
  .home-page .project-info h3 { font-size: 12px; }
}

/* Tag-matched recommendations on project detail pages */
.related-projects {
  margin: 0 var(--side) 24px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(74, 67, 133, 0.10);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 46px rgba(52, 46, 105, 0.07);
}
.related-projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.related-projects-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.related-projects-head > a,
.related-projects-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0eeff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}
.related-projects-head > a svg,
.related-projects-empty svg { width: 15px; height: 15px; }
.related-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.related-project-card {
  display: grid;
  min-width: 0;
  padding: 7px 7px 12px;
  border: 1px solid rgba(74, 67, 133, 0.09);
  border-radius: 18px;
  background: white;
  box-shadow: 0 9px 26px rgba(52, 46, 105, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.related-project-card:hover,
.related-project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(52, 46, 105, 0.11);
}
.related-project-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.related-project-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #eceaf7;
}
.related-project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}
.related-project-card:hover .related-project-cover img { transform: scale(1.03); }
.related-project-info { display: block; min-width: 0; padding: 11px 4px 0; }
.related-project-info strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-project-info p {
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-projects-empty { width: 100%; min-height: 90px; }

@media (max-width: 820px) {
  .related-projects { margin-right: 14px; margin-left: 14px; padding: 28px 22px; border-radius: 24px; }
  .related-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 560px) {
  .related-projects-head { align-items: center; margin-bottom: 18px; }
  .related-projects-head h2 { font-size: 26px; }
  .related-projects-head > a { min-height: 36px; padding: 0 11px; }
  .related-project-grid { gap: 11px 9px; }
  .related-project-card { padding: 5px 5px 9px; border-radius: 14px; }
  .related-project-cover { border-radius: 9px; }
  .related-project-info { padding: 8px 3px 0; }
  .related-project-info strong { font-size: 12px; }
}
/* Compact gallery search in the site header. */
body[data-gallery-type] .header-search-toolbar {
  position: relative; top: auto; z-index: 30; display: flex; align-items: center;
  flex: 0 1 520px; min-width: 300px; gap: 4px; margin: 0 0 0 auto; padding: 5px;
  border-radius: 18px; box-shadow: none; backdrop-filter: none;
}
.header-search-toolbar .search-field { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
.header-search-toolbar .search-field input { width: 100%; min-width: 0; }
.header-search-toolbar .sort-control { flex: 0 0 auto; min-width: 0; padding: 0 6px; }
.header-search-toolbar .sort-control select { max-width: 92px; font-size: 12px; }
.color-picker { position: relative; flex: 0 0 auto; font-size: 12px; }
.color-picker summary { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px; cursor: pointer; list-style: none; border-radius: 10px; }
.color-picker summary::-webkit-details-marker { display: none; }
.color-picker summary:hover, .color-picker[open] summary { background: #eeebff; }
.color-indicator { display: inline-block; width: 16px; height: 16px; border: 1px solid #ddd; border-radius: 50%; }
.color-panel { position: absolute; right: 0; top: calc(100% + 14px); width: 280px; padding: 18px; border: 1px solid #e5e1f5; border-radius: 18px; background: white; box-shadow: 0 16px 48px #30285226; }
.color-panel strong { font-size: 14px; }
.color-panel p { margin: 14px 0 0; color: #77748a; font-size: 12px; }
.color-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.color-options button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 7px 2px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #444157; cursor: pointer; font: inherit; }
.color-options button:hover { background: #f5f3ff; }
.color-options button[aria-pressed="true"] { border-color: #5165ef; background: #f0efff; color: #3f51d0; }
.color-swatch { width: 24px; height: 24px; border: 1px solid #00000015; border-radius: 50%; }
.color-picker :focus-visible { outline: 2px solid #5165ef; outline-offset: 3px; }
@media (min-width: 1101px) and (max-width: 1400px) {
  body[data-gallery-type] .site-header .header-inner { gap: 12px; }
  body[data-gallery-type] .site-header .desktop-nav a { padding: 0 13px; }
}
@media (max-width: 1100px) {
  body[data-gallery-type] .header-search-toolbar { flex: 1 1 440px; max-width: 520px; }
}
@media (max-width: 700px) {
  body[data-gallery-type] { --header-height: 132px; }
  body[data-gallery-type] .site-header .header-inner { flex-wrap: wrap; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  body[data-gallery-type] .header-search-toolbar { order: 3; flex: 1 0 100%; min-width: 0; max-width: none; }
  .header-search-toolbar .sort-control select { width: 80px; color: inherit; }
  .header-search-toolbar .sort-control svg { display: none; }
  .color-panel { right: -75px; width: min(280px, calc(100vw - 40px)); }
}
