:root {
  --ink: #252525;
  --muted: #8b8b8b;
  --line: #e9e9e9;
  --soft: #f7f7f7;
  --dark: #333333;
  --blue: #3d8bff;
  --radius: 8px;
  --max: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.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;
}

.section-wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  position: relative;
  display: inline-flex;
  width: 94px;
  padding: 0;
  border: 0;
  line-height: 1;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-actions {
  display: flex;
  gap: 14px;
}

.pill {
  min-width: 102px;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.pill-light {
  border: 1px solid var(--line);
  background: #fff;
}

.pill-dark {
  color: #fff;
  background: var(--dark);
}

.hero {
  min-height: 690px;
  display: grid;
  place-items: start center;
  padding: 146px 0 150px;
}

.hero-stage {
  position: relative;
  width: min(1157px, 100%);
  height: auto;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: auto;
}

.hover-pop {
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-pop:hover {
  transform: translateY(-6px) rotate(var(--hover-rotate, 0deg)) scale(1.03);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2,
.folder-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.black-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 4px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--dark);
  font-size: 13px;
  font-weight: 800;
}

.advantages {
  padding: 96px 0 84px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.advantage-card {
  min-height: 188px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.08);
}

.advantage-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  color: #222;
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantage-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.advantage-card p {
  margin: 0;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.8;
}

.aigc {
  padding: 74px 0 112px;
}

.account-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  margin-bottom: 26px;
}

.account-row img {
  width: 96%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 32px;
  flex-wrap: wrap;
}

.category-tab {
  border: 1px solid #dbe8ff;
  border-radius: 999px;
  padding: 7px 16px;
  color: #1f65cf;
  background: #eef6ff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.category-tab:hover,
.category-tab.active {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}

.carousel {
  position: relative;
}

.carousel-stage {
  position: relative;
  height: 545px;
  margin: 0 auto;
  perspective: 1100px;
}

.work-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(330px, 64vw);
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.7);
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 520ms ease, z-index 0ms linear 260ms;
}

.work-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.18);
}

.work-title {
  margin-top: 14px;
  color: #555;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.work-stats {
  margin-top: 18px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  white-space: nowrap;
}

.work-category {
  position: absolute;
  left: 14px;
  top: 392px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.work-card.is-active {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1) rotateY(0deg);
}

.work-card.is-left {
  z-index: 3;
  opacity: 0.4;
  pointer-events: auto;
  transform: translateX(calc(-50% - 225px)) scale(0.82) rotateY(12deg) rotateZ(-3deg);
}

.work-card.is-right {
  z-index: 3;
  opacity: 0.4;
  pointer-events: auto;
  transform: translateX(calc(-50% + 225px)) scale(0.82) rotateY(-12deg) rotateZ(3deg);
}

.work-card.is-left:hover,
.work-card.is-right:hover {
  opacity: 1;
}

.carousel-controls {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.round-control {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--dark);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease;
}

.round-control:hover {
  background: #111;
  transform: translateY(-2px);
}

.folder-section {
  padding: 74px 0 150px;
  text-align: center;
}

.folder-section h2 {
  margin-bottom: 72px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  align-items: start;
}

.folder-card {
  position: relative;
  outline: 0;
  cursor: pointer;
}

.folder-shell {
  position: relative;
  height: 190px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.12));
  transition: transform 420ms ease;
}

.folder-card:hover .folder-shell,
.folder-card:focus .folder-shell,
.folder-card:focus-within .folder-shell,
.folder-card.is-open .folder-shell {
  transform: translateY(-24px) rotate(-4deg);
}

.folder-tab,
.folder-face {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
}

.folder-tab {
  top: 28px;
  width: 132px;
  height: 46px;
  background: #f4f4f4;
  transform: translateX(-72%) rotate(-7deg);
}

.folder-face {
  bottom: 16px;
  width: 210px;
  height: 116px;
  background: #fafafa;
  border: 1px solid #efefef;
}

.folder-blue .folder-tab,
.folder-blue .folder-face {
  background: #9ee9ff;
  border-color: #7edbf5;
}

.folder-yellow .folder-tab,
.folder-yellow .folder-face {
  background: #f7e62b;
  border-color: #ead90f;
}

.folder-card h3 {
  margin: 0;
  font-size: 18px;
}

.folder-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transform: translateY(-16px);
  transition: max-height 520ms ease, opacity 360ms ease, transform 520ms ease, padding-top 520ms ease;
}

.folder-card:hover .folder-gallery,
.folder-card:focus .folder-gallery,
.folder-card:focus-within .folder-gallery,
.folder-card.is-open .folder-gallery {
  max-height: 760px;
  opacity: 1;
  padding-top: 22px;
  transform: translateY(0);
}

.folder-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.folder-gallery img:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.contact {
  color: #fff;
  background: #333;
}

.contact-inner {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 60px;
  align-items: center;
}

.contact h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.contact-title {
  color: #f3f3f3;
  font-size: 22px;
}

.contact-pills {
  grid-column: 1 / -1;
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0;
  border-radius: 999px;
  overflow: hidden;
}

.contact-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 26px;
  color: #666;
  background: #fff;
  font-size: 19px;
  font-weight: 700;
}

.contact-pills span + span {
  border-left: 1px solid #ececec;
}

.footer-line {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #cfcfcf;
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

#imageModal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal video,
.modal img {
  max-width: min(920px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

#modalImage {
  order: 1;
  transform-origin: center center;
  transition: transform 140ms ease;
  cursor: zoom-in;
}

.modal-label {
  order: 2;
  position: static;
  z-index: 4;
  transform: none;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #358cff;
  box-shadow: 0 14px 30px rgba(53, 140, 255, 0.24);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.modal-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.84);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 200ms ease, background 200ms ease, opacity 200ms ease;
}

.modal-nav:hover {
  background: #111;
  transform: translateY(-50%) scale(1.06);
}

.modal-prev {
  left: max(24px, calc(50% - 520px));
}

.modal-next {
  right: max(24px, calc(50% - 520px));
}

.modal-nav[hidden] {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    width: min(100% - 28px, 760px);
    padding-top: 22px;
  }

  .hero {
    min-height: 620px;
    padding-top: 112px;
  }

  .advantage-grid,
  .folder-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    min-height: auto;
  }

  .carousel-stage {
    height: 500px;
  }

  .work-card.is-left {
    transform: translateX(calc(-50% - 118px)) scale(0.74) rotateY(10deg) rotateZ(-3deg);
  }

  .work-card.is-right {
    transform: translateX(calc(-50% + 118px)) scale(0.74) rotateY(-10deg) rotateZ(3deg);
  }

  .folder-section {
    padding-bottom: 90px;
  }
}

@media (max-width: 640px) {
  .section-wrap {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    align-items: flex-start;
    gap: 18px;
  }

  .brand {
    width: 70px;
  }

  .nav-actions {
    gap: 8px;
  }

  .pill {
    min-width: auto;
    padding: 8px 13px;
    font-size: 13px;
  }

  .hero {
    min-height: 300px;
    padding: 58px 0 34px;
  }

  .advantages {
    padding: 36px 0 70px;
  }

  .account-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-row img {
    width: 100%;
    height: auto;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-stage {
    height: 492px;
    overflow: hidden;
  }

  .work-card {
    width: min(260px, 68vw);
  }

  .work-card.is-left {
    transform: translateX(calc(-50% - 92px)) scale(0.72) rotateY(10deg) rotateZ(-3deg);
  }

  .work-card.is-right {
    transform: translateX(calc(-50% + 92px)) scale(0.72) rotateY(-10deg) rotateZ(3deg);
  }

  .work-category {
    top: 292px;
    font-size: 11px;
  }

  .folder-shell {
    height: 150px;
  }

  .folder-face {
    width: 178px;
    height: 96px;
  }

  .folder-tab {
    width: 112px;
    height: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .contact-pills {
    border-radius: 20px;
  }

  .contact-pills span {
    width: 100%;
    font-size: 15px;
    justify-content: center;
  }

  .contact-pills span + span {
    border-left: 0;
    border-top: 1px solid #ececec;
  }

  .modal-nav {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .modal-prev {
    left: 12px;
  }

  .modal-next {
    right: 12px;
  }
}
