/* Complete redesign with all CSS embedded - matching reference image with project green theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  overflow-x: hidden;
  padding-bottom: 70px;
  margin-top: 50px;
}

.filter-btn {
  text-decoration: none;
  color: inherit;
}

.filter-btn:hover {
  text-decoration: none;
}

.video-auth-grid {
  column-count: 2;
  column-gap: 10px;
  padding: 16px;
}

@media (min-width: 768px) {
  .video-auth-grid {
    column-count: 3;
  }
}

@media (min-width: 1200px) {
  .video-auth-grid {
    column-count: 4;
  }
}

.video-auth-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 10px;
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  text-decoration: none;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-auth-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.video-auth-badge {
  position: absolute;
  top: 8px;
  left: 8px;

  background: linear-gradient(135deg, var(--color-green-dark), #15d081);
  backdrop-filter: blur(4px);
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #fff;
  font-weight: 500;
  z-index: 5;
}

.video-auth-badge svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  fill: #FFD700;
}

.card-overlay {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  padding: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
}

.overlay-name {
  background: rgba(0, 0, 0, 0.6);
  font-size: 10px;
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
/*  line-height: 1;*/
  border-radius: 25px;
}

.overlay-name .overlay-price {
  margin-left: 4px;
  line-height: 1;
}

.overlay-price {
  color: #FFD700;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.card-info-section {
  padding: 10px 12px;
  background: #fff;
}

.card-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.card-occupation {
  font-size: 13px;
  color: #666;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 11px;
    padding: 4px 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--color-yellow) 0%, #26f0b3 100%);
    color: var(--color-text-white);
    font-weight: 500;
    margin-right: 6px;
}

@media (max-width: 768px) {
  .video-auth-grid {
    column-count: 2;
    padding: 10px;
  }

  .video-auth-content {
    padding: 10px;
  }

  .video-auth-title {
    font-size: 14px;
  }

  .video-auth-price-row {
    font-size: 10px;
  }

  .video-auth-price-val {
    font-size: 13px;
  }

  .video-auth-tag {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 375px) {
  .video-auth-grid {
    column-count: 2;
    gap: 8px;
    padding: 8px;
  }

  .video-auth-content {
    padding: 8px;
  }

  .video-auth-title {
    font-size: 13px;
  }

  .video-auth-price-row {
    font-size: 9px;
  }

  .video-auth-tag {
    font-size: 9px;
    padding: 3px 6px;
  }
}

.app-container {
  width: 100%;
  margin: 0 auto;
  background: var(--color-bg-page);
  min-height: 100vh;
}

.banner-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 5px;
}

.banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination-section {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
  margin-top: 20px;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid var(--color-border-medium);
  background: #fff;
  color: var(--color-text-secondary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 217, 163, 0.3);
}

.pagination-select {
  padding: 8px 12px;
  border: 1px solid var(--color-border-medium);
  background: #fff;
  color: var(--color-text-primary);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 80px;
}

.pagination-select:hover {
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .banner-wrapper {
    height: 160px;
  }

  .pagination-section {
    padding: 16px 12px;
    gap: 8px;
  }

  .pagination-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .pagination-select {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .banner-wrapper {
    height: 130px;
  }



  .filter-label {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label-text {
    margin-bottom: 8px;
  }

  .pagination-section {
    padding: 12px 8px;
    gap: 6px;
  }

  .pagination-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .pagination-select {
    padding: 5px 8px;
    font-size: 11px;
    min-width: 60px;
  }
}

.privacy-toggle {
    z-index: 10;
}

.message-btn {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 217, 163, 0.3);
}

.message-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

/* ===== Filter Section 筛选区域 ===== */
.filter-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-container {
  padding: 12px;
  background: #fff;
}

.filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  min-height: 36px;
}

.filter-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  min-width: 54px;
  flex-shrink: 0;
  line-height: 36px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  max-height: 36px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-right: 80px;
  align-items: flex-start;
  margin-right: 8px;
}

.filter-options.expanded {
  max-height: 500px;
}

.filter-option {
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 36px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
}

.filter-option:hover {
  background: rgba(0, 217, 163, 0.08);
  border-color: rgba(0, 217, 163, 0.3);
  color: var(--color-primary);
}

.filter-option.active {
  background: linear-gradient(135deg, rgba(248 87 87 / 70%) 0%, rgba(255 157 0 / 65%) 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 500;
}

.filter-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    padding: 6px 10px;
    background: #fff;
    color: rgb(255 157 0);
    border: 1px solid rgb(255 157 0 / 86%);
    border-radius: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    height: 36px;
    white-space: nowrap;
}

.filter-toggle-btn svg {
  width: 14px;
  height: 14px;
  margin-left: 0px;
  transition: transform 0.3s ease;
}

.filter-toggle-btn.expanded svg {
  transform: rotate(180deg);
}

@media screen and (max-width: 768px) {
  .filter-container {
    padding: 10px;
  }

  .filter-row {
    margin-bottom: 5px;
    padding-bottom: 5px;
  }

  .filter-label {
    min-width: 50px;
    font-size: 13px;
  }

  .filter-option {
    height: 25px;
    margin-right: 6px;
    margin-bottom: 6px;
  }

  .filter-options {
    max-height: 32px;
    padding-right: 70px;
  }

  .filter-toggle-btn {
    font-size: 10px;
    height: 25px;
    margin-top:5px;
  }

  .filter-toggle-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 480px) {
  .filter-label {
    min-width: 42px;
    font-size: 12px;
  }
  
  .filter-option {
    height: 25px;
    margin-right: 10px;
    margin-bottom: 5px;
  }

  .filter-options {
    max-height: 25px;
    padding-right: 65px;
  }

  .filter-toggle-btn {
    font-size: 10px;
    height: 25px;
  }
}

.pagination-container {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border-top: 1px solid var(--color-border-light);
}

.pagination-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.page-select {
  padding: 6px 10px;
  border: 1px solid var(--color-border-medium);
  background: #fff;
  color: var(--color-text-primary);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}


/* 伴游列表卡片 - 横向卡片布局，与高端列表的大图纵向布局不同 */
    .list-container {
      padding: 10px 10px 0 10px;
    }

    .by-card {
      background: #fff;
      border-radius: 10px;
      padding: 10px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-sm);
      display: flex;
      cursor: pointer;
      transition: all var(--transition-base);
    }

    .by-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }

    .by-card-image {
      width: 120px;
      height: 160px;
      border-radius: 10px;
      overflow: hidden;
      flex-shrink: 0;
      position: relative;
      margin-right: 10px;
    }

    .by-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* 置顶和认证标签 */
    .by-card-badges {
      position: absolute;
      top: 0px;
      left: 0px;
      display: flex;
      flex-direction: column;
      gap: var(--spacing-xs);
    }

    .badge {
      padding: 2px var(--spacing-sm);
      border-radius: 0px 0px 5px 0px;
      font-size: 11px;
      font-weight: var(--font-medium);
      white-space: nowrap;
      /* 取消border，添加flex布局使文字居中 */
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
    }

    .badge-top {
      /* 改为粉色主题渐变 */
      background: linear-gradient(135deg, color(srgb 0.56 1 0.41 / 0.5), var(--color-green));
      color: #fff;
      box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
    }

    .badge-verified {
      background: linear-gradient(135deg, rgb(248 186 87 / 70%) 0%, rgb(231 71 140 / 66%) 100%);
      color: #fff;
/*      box-shadow: 0 2px 4px rgba(255, 182, 193, 0.3);*/
    }

    .by-card-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .by-card-header {
      margin-bottom: var(--spacing-sm);
    }

    .by-card-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin-bottom:4px;
    }

    .by-card-subtitle {
          -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    }

    .by-card-info {
      display: grid;
/*      grid-template-columns: 1fr 1fr;*/
/*      gap: var(--spacing-xs);*/
      margin-bottom: var(--spacing-sm);
    }

    .info-item {
/*      display: flex;*/
      align-items: center;
      
      font-size: 13px;
      color: #666;
    }

    .info-item svg {
      width: 14px;
      height: 14px;
      stroke: #999;
      flex-shrink: 0;
      margin-right: var(--spacing-xs);
    }

    .by-card-tags {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: var(--spacing-sm);
    }

    .tag-item {
      padding: 2px 6px;
      background: rgba(0 0 0 / 3%);
      color:#d48181;
      border-radius: 3px;
      font-size: 11px;
      margin-right:8px;
    }

.tag-item:last-child {
margin-right: 0;
}


    .by-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .by-card-price {
      font-size: var(--font-base);
      font-weight: var(--font-bold);
      color: var(--primary-dark);
    }

    .by-card-price-unit {
      font-size: var(--font-xs);
      font-weight: var(--font-normal);
      color: #666;
    }

    .by-card-stats {
      display: flex;
      gap: 10px;
      font-size: 13px;
      color: #999;
    }

    .stat-item {
      display: flex;
      align-items: center;
      font-size: 12px;
/*      gap: 2px;*/
    }

    .stat-item svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      margin-right: 2px;
    }