/* Custom Yupoo-inspired styles */

body {
  background: #f4f5f9 !important;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial;
}

a {
  color: #111;
}

a:hover {
  color: #000;
  text-decoration: none;
}

/* Header */
.navbar-white {
  background: #ffffff !important;
  border: none;
  box-shadow: 0 10px 30px rgba(10, 28, 84, 0.08) !important;
}

.navbar-white .navbar-brand img {
  height: 42px;
}

.navbar-white .navbar-nav > li > a {
  padding: 18px 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.yupoo-nav__tools {
  align-items: center;
}

.yupoo-nav__search {
  margin: 0;
  padding: 0;
}

.yupoo-nav__search-mobile {
  width: 100%;
  padding: 12px 0 8px;
}

.yupoo-nav__search--mobile {
  width: 100%;
  padding: 0 15px;
}

.yupoo-nav__search--mobile .yupoo-nav__search-field {
  width: 100%;
  padding: 6px 14px 6px 18px;
}

.yupoo-nav__search--mobile .yupoo-nav__search-field input {
  width: 100%;
  font-size: 15px;
}

.yupoo-nav__search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f6fb;
  border-radius: 999px;
  padding: 4px 14px 4px 18px;
  border: 1px solid rgba(13, 26, 79, 0.08);
  transition: box-shadow 0.2s ease;
}

.yupoo-nav__search-field:focus-within {
  box-shadow: 0 10px 24px rgba(13, 26, 79, 0.2);
}

.yupoo-nav__search-field input {
  border: none;
  background: transparent;
  box-shadow: none;
  width: 180px;
  padding-right: 34px;
}

.yupoo-nav__search-field input:focus {
  box-shadow: none;
}

.yupoo-nav__search-button {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #0d1a4f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.yupoo-nav__search-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.yupoo-nav__search-icon > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 26, 79, 0.08);
}

.yupoo-nav__search-icon i {
  font-size: 16px;
  color: #0d1a4f;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: #0d1a4f !important;
}

/* 全局容器 */
.yupoo-home {
  padding-top: 60px;
  padding-bottom: 60px;
}

.yupoo-layout {
  margin: 0 -12px;
}

.yupoo-layout > [class*='col-'] {
  padding: 0 12px;
}

/* Hero 区域 */
.yupoo-hero {
  margin-bottom: 32px;
}

.yupoo-hero__card {
  display: flex;
  align-items: stretch;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 60px rgba(15, 30, 84, 0.16);
}

.yupoo-hero__cover {
  width: 58%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.yupoo-hero__content {
  flex: 1;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yupoo-hero__subtitle {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13, 26, 79, 0.6);
  margin-bottom: 12px;
}

.yupoo-hero__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}

.yupoo-hero__desc {
  font-size: 16px;
  color: rgba(17, 17, 17, 0.72);
  margin-bottom: 22px;
  line-height: 1.6;
}

.yupoo-hero__button {
  align-self: flex-start;
  padding: 10px 26px;
  border-radius: 999px;
  background: #0d1a4f;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* Friend links */
.yupoo-friendlinks {
  margin-top: 48px;
}

.yupoo-friendlinks__panel {
  padding: 30px 32px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(12, 26, 80, 0.12);
}

.yupoo-friendlinks__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.yupoo-friendlinks__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yupoo-friendlinks__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #0d1a4f;
}

.yupoo-friendlinks__tip {
  margin: 0;
  font-size: 13px;
  color: rgba(13, 26, 79, 0.6);
}

.yupoo-friendlinks__action {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(13, 26, 79, 0.08);
  color: #0d1a4f;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.yupoo-friendlinks__action:hover {
  background: #0d1a4f;
  color: #fff;
}

.yupoo-friendlinks__body {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 26, 79, 0.08);
}

.yupoo-friendlinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.yupoo-friendlinks__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(13, 26, 79, 0.06);
  color: #0f1d4c;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.yupoo-friendlinks__item:hover {
  background: #0f1d4c;
  color: #fff;
  transform: translateY(-2px);
}

.yupoo-friendlinks__empty {
  display: inline-block;
  color: rgba(13, 26, 79, 0.5);
  font-size: 14px;
}

/* Sidebar */
.yupoo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yupoo-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(12, 26, 80, 0.12);
  padding: 24px 24px 14px;
}

.yupoo-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.yupoo-menu li {
  margin-bottom: 10px;
}

.yupoo-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
  background: rgba(13, 26, 79, 0.02);
}

.yupoo-menu a:hover {
  background: rgba(13, 26, 79, 0.08);
  transform: translateX(4px);
}

.yupoo-top a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 26, 79, 0.02);
  transition: background 0.2s ease, transform 0.2s ease;
}

.yupoo-top a:hover {
  background: rgba(13, 26, 79, 0.08);
  transform: translateX(4px);
}

.yupoo-menu__name {
  font-weight: 500;
}

.yupoo-menu__count {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.6);
}

.yupoo-top {
  counter-reset: top-rank;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yupoo-top li {
  counter-increment: top-rank;
  list-style: none;
}

.yupoo-top a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f8faff;
  border: 1px solid rgba(13, 26, 79, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.yupoo-top a::before {
  content: counter(top-rank);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: #2b6dff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.yupoo-top a:hover {
  background: #edf3ff;
  border-color: rgba(43, 109, 255, 0.55);
  transform: translateX(2px);
}

.yupoo-top__channel {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(13, 26, 79, 0.5);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.yupoo-top__title {
  display: block;
  color: #0d1a4f;
  margin: 0;
  line-height: 1.4;
  max-height: calc(1.4em * 3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.yupoo-top__time {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.6);
}

/* Gallery 主体 */
.yupoo-gallery {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.yupoo-gallery__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 18px 26px;
  box-shadow: 0 20px 40px rgba(12, 26, 80, 0.12);
}

.yupoo-gallery__tabs a {
  margin-right: 16px;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.6);
  position: relative;
  padding-bottom: 6px;
}

.yupoo-gallery__tabs a.active,
.yupoo-gallery__tabs a:hover {
  color: #0d1a4f;
}

.yupoo-gallery__tabs a.active::after,
.yupoo-gallery__tabs a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #0d1a4f;
}

.yupoo-gallery__sort {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.6);
}

.yupoo-gallery__sort a {
  margin-left: 10px;
  color: rgba(17, 17, 17, 0.6);
}

.yupoo-gallery__sort a:hover,
.yupoo-gallery__sort a.active {
  color: #0d1a4f;
}

.yupoo-gallery__summary {
  font-size: 13px;
  color: rgba(17, 17, 17, 0.55);
}

.yupoo-gallery__mobile-sort {
  display: none;
  width: 100%;
}

.yupoo-gallery__mobile-select {
  width: 100%;
  border: 1px solid rgba(13, 26, 79, 0.2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  background: #fff;
  color: #0d1a4f;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #0d1a4f 50%),
    linear-gradient(135deg, #0d1a4f 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 4px),
    calc(100% - 16px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.yupoo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.yupoo-gallery--standalone .yupoo-gallery__grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.yupoo-gallery--standalone .yupoo-album-card__title {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yupoo-album-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 40px rgba(12, 26, 80, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yupoo-album-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(12, 26, 80, 0.22);
}

.yupoo-album-card__link {
  display: block;
  color: inherit;
}

.yupoo-album-card__cover {
  position: relative;
  aspect-ratio: 4/3;
  background: #e7eaf4;
  overflow: hidden;
}

.yupoo-album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yupoo-album-card__stack {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
}

.yupoo-album-card__stack img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fff;
  margin-left: -12px;
  box-shadow: 0 8px 16px rgba(12, 26, 80, 0.25);
}

/* Channel Page */
.yupoo-channel {
  padding-top: 60px;
  padding-bottom: 60px;
}

.yupoo-channel__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.yupoo-channel__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.yupoo-channel__breadcrumb .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}

.yupoo-channel__desc {
  max-width: 720px;
  color: rgba(17, 17, 17, 0.66);
  font-size: 15px;
  line-height: 1.7;
}

.yupoo-channel__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.yupoo-channel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.yupoo-channel__section {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(12, 26, 80, 0.14);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.yupoo-channel__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.yupoo-channel__section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.yupoo-channel__section-more {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(13, 26, 79, 0.7);
}

.yupoo-channel__highlight-card {
  display: flex;
  gap: 16px;
  border-radius: 18px;
  background: rgba(13, 26, 79, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.yupoo-channel__highlight-card:hover {
  transform: translateY(-4px);
}

.yupoo-channel__highlight-cover {
  width: 38%;
  min-height: 140px;
  background: #e7eaf4;
}

.yupoo-channel__highlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yupoo-channel__highlight-meta {
  flex: 1;
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yupoo-channel__highlight-meta h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.yupoo-channel__highlight-meta p {
  margin: 0;
  color: rgba(17, 17, 17, 0.6);
  line-height: 1.6;
  font-size: 13px;
}

/* Product Channel */
.yupoo-product-channel {
  padding-top: 48px;
  padding-bottom: 56px;
}

.yupoo-product-channel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding: 18px 24px;
  background: linear-gradient(
    135deg,
    rgba(95, 112, 224, 0.12),
    rgba(118, 201, 255, 0.12)
  );
  border-radius: 20px;
  font-size: 28px;
  font-weight: 600;
  color: #0f1d4c;
}

.yupoo-product-channel__title .more {
  margin-left: auto;
}

.yupoo-product-channel__breadcrumb .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}

.yupoo-product-hero {
  margin-bottom: 36px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(12, 26, 80, 0.12);
  overflow: hidden;
}

.yupoo-product-hero .row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.yupoo-product-hero .row {
  margin: 0;
}

.yupoo-product-hero__carousel {
  position: relative;
  padding: 0;
}

.yupoo-product-hero__slide {
  border-radius: 0;
  overflow: hidden;
}

.yupoo-product-hero__slide-link {
  display: block;
  position: relative;
}

.yupoo-product-hero__slide-cover {
  position: relative;
  padding-top: 56%;
  background-size: cover;
  background-position: center;
  border-radius: 0;
}

.yupoo-product-hero__slide-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 29, 76, 0) 20%,
    rgba(15, 29, 76, 0.6) 100%
  );
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.yupoo-product-hero__slide-link:hover .yupoo-product-hero__slide-cover::after {
  opacity: 1;
}

.yupoo-product-hero__slide-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(15, 29, 76, 0.76);
  backdrop-filter: blur(12px);
}

.yupoo-product-hero__slide-caption h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.yupoo-product-hero__carousel .carousel-indicators {
  bottom: 18px;
}

.yupoo-product-hero__carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  margin: 3px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
}

.yupoo-product-hero__carousel .carousel-indicators .active {
  background: #fff;
}

.yupoo-product-hero__carousel,
.yupoo-product-hero__cards {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.yupoo-product-hero__carousel {
  background: #fff;
  min-height: 100%;
}

.yupoo-product-hero__carousel .carousel {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(9, 16, 43, 0.18);
}

.yupoo-product-hero__cards {
  background: linear-gradient(
    160deg,
    rgba(95, 112, 224, 0.12),
    rgba(255, 255, 255, 0.92)
  );
  justify-content: center;
}

.yupoo-product-hero__cards-grid {
  margin: -12px;
  display: flex;
  flex-wrap: wrap;
}

.yupoo-product-hero__cards-grid > [class*='col-'] {
  padding: 12px;
  float: none;
  display: flex;
  flex: 0 0 50%;
  max-width: 50%;
}

.yupoo-product-hero__card {
  flex: 1 1 auto;
  display: flex;
}

.yupoo-product-hero__card-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(9, 16, 43, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yupoo-product-hero__card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(9, 16, 43, 0.18);
}

.yupoo-product-hero__card-cover {
  display: block;
  border-radius: 18px;
}

.yupoo-product-hero__card-cover img {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  object-fit: cover;
}

.yupoo-product-hero__card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(15, 29, 76, 0.72);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.yupoo-product-channel__body {
  margin-top: 36px;
}

.yupoo-product-panel {
  border: none;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(12, 26, 80, 0.14);
}

.yupoo-product-panel__body {
  padding: 32px 36px 40px;
}

.yupoo-product-channel__section {
  margin-bottom: 32px;
}

.yupoo-product-channel__section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #0f1d4c;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.yupoo-product-channel__section-title em a {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 29, 76, 0.6);
}

.yupoo-product-channel__section-grid {
  row-gap: 22px;
}

.yupoo-product-channel__list .col-xs-12:last-child {
  margin-bottom: 0;
}

.yupoo-product-channel__empty {
  margin-top: 24px;
}

.yupoo-product-channel__pager {
  margin-top: 28px;
}

@media (max-width: 991px) {
  .yupoo-product-channel__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 24px;
  }

  .yupoo-product-hero {
    border-radius: 20px;
  }

  .yupoo-product-hero .row {
    flex-direction: column;
  }

  .yupoo-product-hero__carousel,
  .yupoo-product-hero__cards {
    padding: 22px 26px;
  }

  .yupoo-product-hero__cards {
    margin-top: 12px;
  }

  .yupoo-product-hero__cards-grid {
    margin: -10px;
  }

  .yupoo-product-hero__cards-grid > [class*='col-'] {
    padding: 10px;
  }

  .yupoo-product-panel__body {
    padding: 26px 24px 32px;
  }

  .yupoo-friendlinks {
    margin-top: 40px;
  }

  .yupoo-friendlinks__panel {
    padding: 26px;
  }
}

@media (max-width: 767px) {
  .yupoo-product-channel {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .yupoo-product-hero {
    box-shadow: none;
    background: transparent;
  }

  .yupoo-product-hero .row {
    display: block;
  }

  .yupoo-product-hero__carousel {
    margin-bottom: 16px;
    padding: 0;
  }

  .yupoo-product-hero__cards {
    background: transparent;
    padding: 0;
    display: block;
  }

  .yupoo-product-hero__cards-grid {
    margin: 0;
    display: block;
  }

  .yupoo-product-hero__cards-grid > [class*='col-'] {
    padding: 0;
    display: block;
    flex: none;
    max-width: 100%;
  }

  .yupoo-product-hero__card-link {
    box-shadow: none;
  }

  .yupoo-product-panel {
    border-radius: 20px;
  }

  .yupoo-product-channel__section-grid {
    row-gap: 16px;
  }

  .yupoo-friendlinks {
    margin-top: 32px;
  }

  .yupoo-friendlinks__panel {
    padding: 20px 18px;
  }

  .yupoo-friendlinks__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .yupoo-friendlinks__action {
    padding: 8px 14px;
  }

  .yupoo-friendlinks__list {
    gap: 10px;
  }

  .yupoo-friendlinks__item {
    padding: 8px 16px;
    font-size: 13px;
  }
}

.yupoo-channel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yupoo-channel__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(17, 17, 17, 0.7);
  font-size: 14px;
}

.yupoo-channel__list a {
  flex: 1;
  margin-right: 16px;
  color: inherit;
}

.yupoo-channel__list-date {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.45);
}

.yupoo-channel__pagination {
  display: flex;
  justify-content: center;
}

.yupoo-album-card__meta {
  padding: 18px 20px 20px;
}

.yupoo-album-card__title {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.45;
  max-height: calc(1.45em * 3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.yupoo-album-card__info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

@media (max-width: 991px) {
  .navbar-white {
    padding: 12px 0;
  }

  .navbar-white .navbar-nav > li > a {
    padding: 12px 10px;
  }

  .navbar-nav > li > a {
    font-size: 13px;
  }

  .yupoo-nav__search-field input {
    width: 160px;
  }

  .yupoo-layout {
    margin: 0;
  }

  .yupoo-layout > [class*='col-'] {
    padding: 0;
  }

  .yupoo-sidebar {
    display: block;
    margin-top: 16px;
  }

  .yupoo-card {
    margin-bottom: 16px;
  }

  .yupoo-gallery {
    gap: 18px;
  }

  .yupoo-gallery__toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .yupoo-gallery__mobile-sort {
    display: block;
  }

  .yupoo-collection {
    padding: 32px 0 56px;
  }

  .yupoo-collection__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .yupoo-collection__title {
    font-size: 28px;
  }

  .yupoo-collection__actions {
    width: 100%;
  }

  .yupoo-gallery__sort {
    width: 100%;
  }

  .yupoo-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .yupoo-gallery--standalone .yupoo-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  .yupoo-channel {
    padding-top: 48px;
  }

  .yupoo-channel__grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .yupoo-channel__highlight-card {
    flex-direction: column;
  }

  .yupoo-channel__highlight-cover {
    width: 100%;
    min-height: 180px;
  }

  .yupoo-channel__highlight-meta {
    padding: 16px;
  }
}

@media (max-width: 767px) {
  .yupoo-nav__tools {
    width: 100%;
    margin: 8px 0 0;
    padding-top: 6px;
    border-top: 1px solid rgba(13, 26, 79, 0.08);
  }

  .yupoo-nav__search-mobile {
    float: none !important;
    width: 100%;
    padding: 10px 0 6px;
  }

  .yupoo-nav__search--mobile {
    padding: 0;
  }

  .yupoo-nav__search--mobile .yupoo-nav__search-field {
    padding: 6px 16px;
  }
}

@media (max-width: 575px) {
  .navbar-white .navbar-brand img {
    height: 34px;
  }

  .navbar-white .navbar-nav > li > a {
    padding: 10px 8px;
    font-size: 12px;
  }

  .navbar-toggle {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .yupoo-home {
    padding-top: 72px;
    padding-bottom: 36px;
  }

  .yupoo-sidebar {
    gap: 12px;
  }

  .yupoo-card {
    padding: 18px;
  }

  .yupoo-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .yupoo-gallery--standalone .yupoo-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .yupoo-gallery--standalone .yupoo-album-card__title {
    font-size: 14px;
  }

  .yupoo-collection {
    padding: 28px 0 46px;
  }

  .yupoo-collection__title {
    font-size: 24px;
  }

  .yupoo-collection__subtitle {
    font-size: 13px;
  }

  .yupoo-collection__home {
    width: 100%;
    justify-content: center;
  }

  .yupoo-gallery--standalone .yupoo-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .yupoo-gallery__mobile-select {
    font-size: 13px;
    padding: 10px 16px;
  }

  @media (max-width: 420px) {
    .yupoo-gallery--standalone .yupoo-gallery__grid {
      grid-template-columns: 1fr;
    }
  }
  .yupoo-gallery__toolbar {
    padding: 16px 18px;
  }

  .yupoo-gallery__tabs a {
    margin-right: 10px;
  }

  .yupoo-gallery__sort {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .yupoo-album-card {
    border-radius: 18px;
  }

  .yupoo-album-card__meta {
    padding: 16px;
  }

  .yupoo-album-card__title {
    font-size: 15px;
  }

  .yupoo-album-card__stack img {
    width: 42px;
    height: 42px;
  }

  .yupoo-sidebar {
    margin-bottom: 0;
  }

  .yupoo-card {
    border-radius: 18px;
    padding: 18px;
  }

  .yupoo-card + .yupoo-card {
    margin-top: 12px;
  }

  .yupoo-menu a,
  .yupoo-top a {
    padding: 10px 12px;
  }

  .yupoo-menu__name {
    font-size: 14px;
  }

  .yupoo-top__title {
    font-size: 14px;
    white-space: normal;
  }

  .yupoo-channel__title {
    font-size: 24px;
  }

  .yupoo-channel__grid {
    grid-template-columns: 1fr;
  }

  .yupoo-channel__section {
    padding: 20px;
  }

  .yupoo-channel__highlight-cover {
    min-height: 160px;
  }

  .yupoo-channel__list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .yupoo-channel__list-date {
    font-size: 11px;
  }
}

.yupoo-gallery__pagination {
  display: flex;
  justify-content: center;
}

.pagination > li > a,
.pagination > li > span {
  border-radius: 999px;
  border: none;
  padding: 6px 16px;
  background: #fff;
  color: rgba(17, 17, 17, 0.7);
  box-shadow: 0 4px 12px rgba(12, 26, 80, 0.14);
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li.active > a,
.pagination > li.active > span {
  background: #0d1a4f;
  color: #fff;
}

/* 工具类 */
.yupoo-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #0d1a4f;
  background: rgba(13, 26, 79, 0.08);
}

.footer {
  background: #fff;
  border-top: none;
  padding: 36px 0;
}

.footer a {
  color: rgba(17, 17, 17, 0.55);
}

@media (max-width: 1199px) {
  .yupoo-hero__card {
    flex-direction: column;
  }

  .yupoo-hero__cover {
    width: 100%;
    min-height: 260px;
  }

  .yupoo-hero__content {
    padding: 36px 32px;
  }

  .yupoo-gallery__toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 991px) {
  .yupoo-home {
    padding-top: 30px;
  }

  .yupoo-layout {
    margin: 0;
  }

  .yupoo-layout > [class*='col-'] {
    padding: 0;
  }

  .yupoo-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }

  .yupoo-card {
    flex: 1 1 260px;
  }
}

@media (max-width: 767px) {
  .yupoo-hero {
    display: none;
  }

  .yupoo-home {
    padding: 24px 0;
  }

  .yupoo-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .yupoo-sidebar {
    flex-direction: column;
  }

  .yupoo-gallery__toolbar {
    border-radius: 18px;
    padding: 14px 18px;
  }

  .yupoo-hero__title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .yupoo-gallery__grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .yupoo-album-card__info {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    letter-spacing: 0.12em;
  }
}
