/* 歷屆作品 */
.works {
  position: relative;
  width: 100%;
  padding: clamp(3rem, 8vw, 10rem) clamp(1.25rem, 4vw, 5rem);
  overflow-x: clip;
}

.works::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 14% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 80% 14%, rgba(120, 180, 255, 0.4), transparent),
    radial-gradient(1px 1px at 38% 80%, rgba(255, 255, 255, 0.28), transparent);
}

.works__inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
}

.works__head {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.works__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.works__line {
  display: block;
  width: min(7.5rem, 40%);
  height: 3px;
  margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: 999px;
  background: #469BDC;
}

.works__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 2.5rem);
}

.works__tab {
  position: relative;
  isolation: isolate;
  min-width: 5.5rem;
  padding: 1.1rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.works__tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.works__tab.is-active {
  overflow: hidden;
  border-color: transparent;
  color: #fff;
  background: transparent;
  box-shadow: 0px 20px 25px -5px #09EECC4D;
}

.works__tab.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, #2066B1 0%, #63C0AE 45.67%, #75C4EC 99.99%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.works__panel[hidden] {
  display: none;
}

.works__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.works__toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.works__year-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 0.625rem;
  border: 2px solid #ffffff33;
  background: linear-gradient(
    135deg,
    rgba(9, 151, 247, 0.2) 0%,
    rgba(255, 105, 0, 0.2) 100%
  );
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.works__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

.works__subtitle {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}

.works__annual {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.works__annual:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.875rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.works__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.works__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.works__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(0.875rem, 2vw, 1rem);
}

.works__card-title {
  margin: 0;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}

.works__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works__tag {
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.works__view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.works__view:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 900px) {
  .works__grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .works__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .works__annual {
    justify-content: center;
  }
}
