/* Page styles for mianfeishoucang.html */

body.cy-page[data-page="mianfeishoucang"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.cy-page[data-page="mianfeishoucang"] .cy-topbar,
body.cy-page[data-page="mianfeishoucang"] .cy-page-title,
body.cy-page[data-page="mianfeishoucang"] .cy-footer {
  flex-shrink: 0;
}

body.cy-page[data-page="mianfeishoucang"] .cy-main {
  flex: 1 0 auto;
}

body.cy-page[data-page="mianfeishoucang"] .cy-footer {
  margin-top: auto;
}

.cy-user-collect-main {
  max-width: 1400px;
  grid-template-columns: 1fr;
}

.cy-collect-main {
  min-height: 0;
  overflow: hidden;
}

.cy-collect-main .cy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cy-collect-main .cy-card-body {
  padding: 22px;
}

.cy-collect-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #9bd7f6;
  border-radius: 8px;
  background: #ffffff;
  color: #008fd3;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cy-collect-refresh:hover {
  border-color: #0099d8;
  background: #0099d8;
  color: #ffffff;
}

.cy-collect-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cy-collect-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d1ecfa;
  border-radius: 8px;
  background: #f7fcff;
}

.cy-collect-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #14386d;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cy-collect-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f6fd;
  color: #008fd3;
  font-size: 13px;
  font-weight: 900;
}

.cy-collect-tab:hover,
.cy-collect-tab.is-active {
  border-color: #079ad5;
  background: #079ad5;
  color: #ffffff;
}

.cy-collect-tab:hover strong,
.cy-collect-tab.is-active strong {
  background: #ffffff;
  color: #079ad5;
}

.cy-collect-panel {
  display: none;
}

.cy-collect-panel.is-active {
  display: block;
}

.cy-collect-table {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #cfeaf8;
  border-radius: 8px;
  background: #ffffff;
}

.cy-collect-head,
.cy-collect-row {
  display: grid;
  align-items: center;
  min-width: 0;
}

.cy-collect-table.is-free .cy-collect-head,
.cy-collect-table.is-free .cy-collect-row {
  grid-template-columns: minmax(320px, 1fr) 140px 150px 112px 210px;
}

.cy-collect-table.is-paid .cy-collect-head,
.cy-collect-table.is-paid .cy-collect-row {
  grid-template-columns: minmax(340px, 1fr) 170px 170px 210px;
}

.cy-collect-table.is-expert .cy-collect-head,
.cy-collect-table.is-expert .cy-collect-row {
  grid-template-columns: minmax(320px, 1fr) 130px 170px 210px;
}

.cy-collect-head {
  min-height: 46px;
  background: #f1fbff;
  color: #5d7489;
  font-size: 14px;
  font-weight: 900;
}

.cy-collect-row {
  min-height: 76px;
  border-top: 1px solid #e4f2fa;
  background: #ffffff;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.cy-collect-row:hover {
  background: #f9fdff;
}

.cy-collect-row.is-removing {
  opacity: 0;
}

.cy-collect-cell {
  min-width: 0;
  padding: 12px 16px;
  color: #14386d;
  font-size: 14px;
  font-weight: 800;
}

.cy-collect-head .cy-collect-cell:not(:first-child),
.cy-collect-row .cy-collect-cell:not(.cy-collect-main-cell) {
  text-align: center;
}

.cy-collect-main-cell {
  display: grid;
  gap: 4px;
}

.cy-collect-row-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #0c3e93;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.cy-collect-row-title:hover {
  color: #0099d8;
}

.cy-collect-sub {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: #7e95aa;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-collect-status {
  display: flex;
  align-items: center;
}

.cy-collect-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cy-collect-state.is-saved {
  background: #eaf8ef;
  color: #00805f;
}

.cy-collect-state.is-bought {
  background: #e8f5ff;
  color: #006cc7;
}

.cy-collect-state.is-unbought {
  background: #fff1d2;
  color: #a76500;
}

.cy-collect-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef8fd;
  color: #0078b2;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cy-collect-price,
.cy-collect-rate {
  color: #007f65;
  font-size: 15px;
  font-weight: 900;
}

.cy-collect-expert {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.cy-avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #e9f7fd;
  color: #008fd3;
  font-weight: 900;
}

.cy-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cy-collect-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
}

.cy-collect-operate {
  text-align: center;
}

.cy-collect-action,
.cy-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #9bd7f6;
  border-radius: 8px;
  background: #ffffff;
  color: #008fd3;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cy-collect-action:hover,
.cy-view-link:hover {
  border-color: #0099d8;
  background: #0099d8;
  color: #ffffff;
}

.cy-collect-empty {
  grid-column: 1 / -1;
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 34px;
  border-top: 1px solid #e4f2fa;
  background: #fbfdff;
  color: #738aa0;
  text-align: center;
}

.cy-collect-empty strong {
  color: #14386d;
  font-size: 18px;
  font-weight: 900;
}

.cy-collect-empty span {
  color: #8aa0b3;
  font-weight: 700;
}

.cy-collect-empty.is-error strong {
  color: #de2103;
}

.cy-collect-empty.is-loading strong {
  color: #008fd3;
}

.cy-collect-pager {
  margin-top: 22px;
}

@media (max-width: 1180px) {
  .cy-collect-table.is-free .cy-collect-head,
  .cy-collect-table.is-free .cy-collect-row {
    grid-template-columns: minmax(240px, 1fr) 110px 110px 96px 190px;
  }

  .cy-collect-table.is-paid .cy-collect-head,
  .cy-collect-table.is-paid .cy-collect-row,
  .cy-collect-table.is-expert .cy-collect-head,
  .cy-collect-table.is-expert .cy-collect-row {
    grid-template-columns: minmax(240px, 1fr) 110px 130px 190px;
  }
}

@media (max-width: 860px) {
  .cy-collect-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cy-collect-tab {
    justify-content: space-between;
    width: 100%;
  }

  .cy-collect-table {
    min-height: 0;
  }

  .cy-collect-head {
    display: none;
  }

  .cy-collect-row {
    grid-template-columns: 1fr !important;
    padding: 10px 0;
  }

  .cy-collect-cell {
    padding: 8px 14px;
  }

  .cy-collect-actions {
    justify-content: flex-start;
  }
}
