/* 官网首页（index.html）作品 / 灯箱 / 关于轮播 / 动效 / 窄屏 */
/* 自 index.html 内联 <style> 后半外置；必须在 home.css 之后加载以保持级联 */

.works-page {
  align-content: center;
  padding-top: 126px;
}
.works-page .page-content { width: min(100%, 1240px); }
.works-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.works-heading .page-lead {
  max-width: 390px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: .04em;
}
.works-tools { display: grid; gap: 18px; justify-items: end; }
.works-filters { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.works-filters button {
  --filter-color: #aabaff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--filter-color) 30%, rgba(255,255,255,.14));
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-family: var(--label-font);
  font-size: 13px;
  letter-spacing: .1em;
  backdrop-filter: blur(10px);
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.works-filters button::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--filter-color);
  box-shadow: 0 0 10px var(--filter-color);
}
.works-filters button::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(120deg, color-mix(in srgb, var(--filter-color) 24%, transparent), rgba(255,255,255,.04));
  transition: opacity .25s ease;
}
.works-filters button[data-filter="all"] { --filter-color: #acbaff; }
.works-filters button[data-filter="scenes"] { --filter-color: #9ce5c5; }
.works-filters button[data-filter="characters"] { --filter-color: #e1b3ff; }
.works-filters button[data-filter="toys"] { --filter-color: #ffd084; }
.works-filters button.active,
.works-filters button:hover {
  border-color: color-mix(in srgb, var(--filter-color) 72%, white);
  background: color-mix(in srgb, var(--filter-color) 13%, rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 24px color-mix(in srgb, var(--filter-color) 16%, transparent);
  color: #f5f7ff;
  transform: translateY(-2px);
}
.works-filters button.active::after,
.works-filters button:hover::after { opacity: 1; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 246px;
  gap: 14px;
  margin-top: 36px;
}
.work-card {
  position: relative;
  display: block;
  height: 246px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 38%, rgba(95,122,231,.16), transparent 50%),
    rgba(10,12,20,.62);
  color: var(--text);
  text-align: left;
}
.work-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(9,10,16,.84), transparent 58%);
  pointer-events: none;
  transition: opacity .35s ease;
}
.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform .65s var(--ease-out), filter .65s var(--ease-out);
}
.work-card:hover img {
  filter: saturate(1.08) brightness(1.08);
  transform: scale(1.055);
}
.work-card:hover::after { opacity: .62; }
.work-card-caption {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 15px;
  left: 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.work-card-caption span {
  color: #cbd6ff;
  font-family: var(--label-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
}
.work-card-caption b {
  display: block;
  margin-top: 5px;
  font-family: var(--title-font);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}
.work-card-caption i {
  margin-bottom: 2px;
  color: rgba(255,255,255,.7);
  font-size: 17px;
  font-style: normal;
}
.works-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 8px;
}
.works-pagination button {
  position: relative;
  padding: 9px 17px;
  border: 1px solid color-mix(in srgb, #acbaff 30%, rgba(255,255,255,.14));
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: .1em;
  backdrop-filter: blur(10px);
  transition: color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.works-pagination button:hover:not(:disabled) {
  border-color: color-mix(in srgb, #acbaff 72%, white);
  background: color-mix(in srgb, #acbaff 13%, rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 24px rgba(172,186,255,.16);
  color: #f5f7ff;
  transform: translateY(-2px);
}
.works-pagination button:disabled { cursor: default; opacity: .32; }
.works-pagination span {
  color: rgba(255,255,255,.68);
  font-family: var(--label-font);
  font-size: 11px;
  letter-spacing: .14em;
}
.work-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  padding: 62px clamp(24px, 6vw, 92px) 40px;
  visibility: hidden;
  opacity: 0;
  background: rgba(5,6,10,.68);
  backdrop-filter: blur(9px);
  place-items: center;
  transition: opacity .28s ease, visibility 0s .28s;
}
.work-lightbox.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.work-lightbox img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 122px);
  object-fit: contain;
  box-shadow: 0 22px 80px rgba(0,0,0,.48);
  transform-origin: center;
  transition: transform .16s ease;
  cursor: grab;
  touch-action: none;
}
.work-lightbox img.dragging { cursor: grabbing; transition: none; }
.work-lightbox-close {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: clamp(24px, 4vw, 62px);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  pointer-events: auto;
}
.work-lightbox-label {
  position: absolute;
  right: clamp(24px, 4vw, 62px);
  bottom: 17px;
  left: clamp(24px, 4vw, 62px);
  color: rgba(255,255,255,.66);
  font-family: var(--label-font);
  font-size: 10px;
  letter-spacing: .12em;
  text-align: center;
}
.contact-page {
  align-content: center;
  padding-top: 126px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: clamp(42px, 8vw, 118px);
  align-items: end;
}
.contact-copy {
  position: relative;
  padding-bottom: 20px;
}
.contact-copy .page-title {
  max-width: 650px;
  font-size: clamp(50px, 6.2vw, 86px);
}
.contact-copy .page-lead {
  max-width: 530px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.9;
}
.contact-email {
  display: block;
  margin-top: 38px;
  color: #edf1ff;
  font-family: var(--label-font);
  font-size: clamp(21px, 2.25vw, 29px);
  font-weight: 600;
  letter-spacing: .04em;
}
.contact-details {
  display: grid;
  gap: 13px;
}
.contact-card {
  --contact-color: #93a9ff;
  --contact-glow: rgba(91,124,255,.2);
  position: relative;
  min-height: 172px;
  padding: 31px 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--contact-color) 35%, rgba(190,204,255,.18));
  background:
    radial-gradient(circle at 22% 10%, var(--contact-glow), transparent 48%),
    rgba(255,255,255,.035);
  backdrop-filter: blur(12px);
}
.contact-card:nth-child(2) {
  --contact-color: #d6a6ff;
  --contact-glow: rgba(186,109,255,.18);
}
.contact-card:nth-child(3) {
  --contact-color: #ffcc7c;
  --contact-glow: rgba(255,181,65,.17);
}
.contact-card-label {
  display: block;
  color: #b9c9ff;
  font-family: var(--label-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .17em;
}
.contact-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 17px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .04em;
}
.contact-card p {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about-copy .page-lead { margin-top: 22px; }
.about-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}
.about-stats { display: flex; gap: 42px; margin-top: 34px; }
.about-stat strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: .04em; }
.about-stat span { color: var(--muted); font-size: 13px; }
.about-visual {
  position: relative;
  display: grid;
  min-height: min(64vh, 650px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 50% 35%, rgba(91,123,234,.52), transparent 42%),
    radial-gradient(circle at 18% 90%, rgba(193,137,71,.28), transparent 40%),
    #12162b;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  place-items: center;
}
.about-visual::before {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
  animation: spin 24s linear infinite;
}
.about-carousel {
  position: absolute;
  z-index: 1;
  inset: 0;
}
.about-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(.94);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.3));
  transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out);
}
.about-carousel img.active {
  opacity: 1;
  transform: scale(1);
}
.about-carousel img.brand-image {
  padding: 58px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 35%, rgba(91,123,234,.52), transparent 42%),
    radial-gradient(circle at 18% 90%, rgba(193,137,71,.28), transparent 40%),
    #12162b;
}
.about-visual-label {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 18px;
  color: rgba(255,255,255,.66);
  font-size: 11px;
  letter-spacing: .18em;
}
.about-carousel-dots {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 22px;
  display: flex;
  gap: 7px;
}
.about-carousel-dots button {
  width: 21px;
  height: 2px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.28);
  transition: background .3s ease, transform .3s ease;
}
.about-carousel-dots button.active {
  background: #c8d4ff;
  transform: scaleX(1.25);
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes title-font-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradient-swing {
  from {
    --top-glow-x: 34%;
    --left-glow-x: 2%;
    --left-glow-y: 98%;
    --right-glow-x: 98%;
    --right-glow-y: 64%;
  }
  to {
    --top-glow-x: 66%;
    --left-glow-x: 16%;
    --left-glow-y: 84%;
    --right-glow-x: 84%;
    --right-glow-y: 86%;
  }
}
@keyframes background-shift {
  0% { background-color: #101018; }
  38% { background-color: #12152b; }
  70% { background-color: #1b1328; }
  100% { background-color: #17151d; }
}
@keyframes light-background-shift {
  0% { background-color: #d5e2f3; }
  38% { background-color: #d3def4; }
  70% { background-color: #e8dce8; }
  100% { background-color: #eee1d2; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  to { transform: rotate(-300deg); }
}
@keyframes breathe {
  0%, 100% { opacity: .38; transform: scale(.96); }
  50% { opacity: .62; transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shadow-breathe {
  0%, 100% {
    filter:
      drop-shadow(0 8px 8px rgba(43,61,117,.12))
      drop-shadow(0 2px 2px rgba(43,61,117,.1));
  }
  50% {
    filter:
      drop-shadow(0 19px 22px rgba(43,61,117,.3))
      drop-shadow(0 6px 6px rgba(43,61,117,.2));
  }
}
@keyframes logo-aura {
  0%, 58%, 100% { opacity: 0; transform: scale(.99); }
  67% { opacity: .13; transform: scale(1.01); }
  76% { opacity: .34; transform: scale(1.06); }
  86% { opacity: .06; transform: scale(1.1); }
}
@media (max-width: 700px) {
  .header { height: 58px; }
  .header-inner { width: calc(100% - 32px); }
  .brand { font-size: 15px; }
  nav { display: none; }
  .portal { font-size: 12px; }
  .hero { padding-top: 70px; }
  .hero-content { margin-top: -40px; }
  .hero-footer { bottom: 108px; }
  .content-page { padding: 88px 20px 120px; }
  .content-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .about-layout { grid-template-columns: 1fr; gap: 28px; }
  .about-visual { min-height: 320px; }
  .tagline { font-size: 12px; letter-spacing: .2em; }
  .logo { width: min(83vw, 420px); }
  .logo-echo { width: min(83vw, 420px); }
  .orbit { width: min(100vw, 520px); }
  .orbit--inner { width: min(76vw, 400px); }
}
