/* 社区作者页：资料条、创作/点赞/合集、合集子集、Add To 弹层 */

.authorpage {
  padding: 22px 0 56px;
  background: #fff;
}

.authorpage__profile {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 128px;
  padding: 18px 28px 18px 26px;
  border-radius: 18px;
  background: #e8f4ff url('../../images/user-center/bg-creator.png') center / 100% 100% no-repeat;
}

.authorpage__who {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.authorpage__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  flex: none;
}

.authorpage__id {
  min-width: 0;
}

.authorpage__id strong {
  display: block;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authorpage__badge {
  display: block;
  height: 22px;
  width: auto;
  margin-top: 6px;
}

.authorpage__stats {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-left: auto;
  flex: none;
}

.authorpage__stat {
  min-width: 76px;
  margin: 0;
  text-align: center;
}

.authorpage__stat strong {
  display: block;
  color: #0074c6;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.authorpage__stat span {
  display: block;
  margin-top: 2px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.authorpage__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-width: 118px;
  padding: 0 18px;
  border-radius: 999px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  flex: none;
}

.authorpage__follow img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}

.authorpage__follow.is-on {
  background: var(--yellow);
}

.authorpage__follow.is-off {
  background: #d8d8d8;
}

.authorpage__follow:hover {
  filter: brightness(0.97);
}

.authorpage__tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 22px 0 18px;
}

.authorpage__tab {
  position: relative;
  padding: 4px 0;
  color: #8a8a8a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.authorpage__tab:hover {
  color: #555;
}

.authorpage__tab.is-on {
  color: #0074c6;
}

.authorpage__tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: #0074c6;
}

/* 进入合集子集时，页签与面包屑连成一条路径，不再单独画下划线 */
.authorpage__tabs:has(.authorpage__crumb-here) .authorpage__tab.is-on::after {
  display: none;
}

.authorpage__crumb-sep {
  color: #7eb6df;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.authorpage__crumb-here {
  color: #0074c6;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.authorpage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

.authorpage-card {
  min-width: 0;
}

.authorpage-card__shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
}

.authorpage-card__pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .35s ease;
}

.authorpage-card:hover .authorpage-card__pic {
  transform: scale(1.04);
}

.authorpage-star {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(15, 35, 60, 0.12);
}

.authorpage-star img {
  width: 14px;
  height: 14px;
  max-width: none;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
}

.authorpage-star.is-on {
  background: #1a8ad4;
}

.authorpage-star.is-on img {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.authorpage-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 0 2px;
}

.authorpage-card__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authorpage-card__like {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 0;
  color: #333;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.authorpage-card__like img {
  width: 16px;
  height: 14px;
  max-width: none;
  object-fit: contain;
}

.authorpage-albums {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

.authorpage-album {
  position: relative;
  min-width: 0;
}

.authorpage-album__hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.authorpage-album__collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
}

.authorpage-album__main {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.authorpage-album__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  min-height: 0;
}

.authorpage-album__stack img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.authorpage-album .authorpage-star {
  top: 8px;
  right: 8px;
}

.authorpage-album__name {
  margin: 10px 2px 0;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.authorpage-empty {
  padding: 72px 12px;
  color: #888;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.authorpage-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  color: #222;
  font-size: 16px;
  font-weight: 800;
}

.authorpage-pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  padding: 0;
}

.authorpage-pager__arrow img {
  width: 16px;
  height: 22px;
  max-width: none;
  object-fit: contain;
}

.authorpage-pager__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.authorpage-pager__num {
  min-width: 32px;
  height: 32px;
  border-radius: 4px;
  font-weight: 800;
}

.authorpage-pager__num.is-on {
  background: var(--blue);
  color: #fff;
}

.authorpage-pager__jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  font-weight: 700;
}

.authorpage-pager__jump input {
  width: 48px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #f2f3f5;
  color: #222;
  font: inherit;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.authorpage-toast {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.authorpage-sheet {
  position: fixed;
  z-index: 92;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(110, 110, 110, 0.62);
}

.authorpage-sheet__panel {
  position: relative;
  width: min(560px, 100%);
  padding: 22px 48px 32px;
  border-radius: 18px;
  background: #fff;
}

.authorpage-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
}

.authorpage-sheet__close img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.authorpage-sheet__title {
  margin: 6px 0 22px;
  color: #0074c6;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.authorpage-sheet__pick {
  position: relative;
}

.authorpage-sheet__pick.is-open {
  z-index: 3;
}

.authorpage-sheet__select {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 10px 0 16px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.authorpage-sheet__select span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.authorpage-sheet__select.is-placeholder {
  color: #b5b5b5;
}

.authorpage-sheet__caret {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
  background: #0b7fd0;
  flex: none;
}

.authorpage-sheet__caret img {
  width: 12px;
  height: 8px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.authorpage-sheet__caret.is-up img {
  transform: rotate(180deg);
}

.authorpage-sheet__menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 360px;
  padding: 6px 0;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 60, 0.16);
}

.authorpage-sheet__menu button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.authorpage-sheet__menu button.is-create {
  background: #e7f6ff;
  color: #1a8ad4;
}

.authorpage-sheet__menu button.is-on,
.authorpage-sheet__menu button:hover {
  background: #f4f8fb;
}

.authorpage-sheet__menu button.is-create:hover {
  background: #dff2ff;
}

.authorpage-sheet__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #333;
  font-size: 15px;
  font-weight: 700;
}

.authorpage-sheet__input:focus {
  outline: none;
}

.authorpage-sheet__input::placeholder {
  color: #b5b5b5;
  font-weight: 600;
}

.authorpage-sheet__error {
  margin: 10px 0 0;
  color: #d64545;
  font-size: 13px;
  font-weight: 700;
}

.authorpage-sheet__actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.authorpage-sheet__cancel,
.authorpage-sheet__ok {
  min-width: 148px;
  height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
}

.authorpage-sheet__cancel {
  background: #1a7fd0;
  color: #fff;
}

.authorpage-sheet__cancel:hover {
  background: #0f72c2;
}

.authorpage-sheet__ok {
  background: var(--yellow);
  color: #111;
}

.authorpage-sheet__ok:hover {
  filter: brightness(1.03);
}

@media (max-width: 1100px) {
  .authorpage-grid,
  .authorpage-albums {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .authorpage__profile {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 18px;
  }

  .authorpage__stats {
    margin-left: 0;
    gap: 28px;
  }

  .authorpage__follow {
    margin-left: auto;
  }

  .authorpage-grid,
  .authorpage-albums {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .authorpage__tabs {
    gap: 8px 18px;
  }

  .authorpage-grid,
  .authorpage-albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .authorpage-pager {
    flex-wrap: wrap;
    gap: 10px;
  }

  .authorpage-sheet__panel {
    padding: 20px 22px 28px;
  }

  .authorpage-sheet__actions {
    gap: 12px;
  }

  .authorpage-sheet__cancel,
  .authorpage-sheet__ok {
    min-width: 0;
    flex: 1;
  }
}
