﻿/* Page styles for usercenter.html */

.cy-profile-box  {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.cy-profile-avatar  {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cy-cyan), var(--cy-blue));
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

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

.cy-profile-name  {
  color: var(--cy-navy);
  font-size: 22px;
  font-weight: 900;
}

.cy-profile-meta  {
  margin-top: 6px;
  color: var(--cy-muted);
  font-size: 13px;
}

.cy-usercenter-page  {
  display: grid;
  gap: 16px;
}

.cy-usercenter-dashboard  {
  display: grid;
  gap: 16px;
}

body[data-page="usercenter"] .cy-page-title  {
  margin-top: 18px;
  padding: 18px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(43, 68, 144, 0.07);
}

body[data-page="usercenter"] .cy-page-title h1  {
  font-size: 22px;
  letter-spacing: 0;
}

body[data-page="usercenter"] .cy-main  {
  margin-top: 16px;
}

.cy-account-ribbon  {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 250px;
  grid-template-areas:
    "identity wallet wechat"
    "actions actions actions";
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(0, 154, 214, 0.2);
  background:
    linear-gradient(120deg, rgba(0, 154, 214, 0.1), transparent 34%),
    #fff;
}

.cy-account-identity  {
  grid-area: identity;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  align-items: center;
  min-width: 0;
  min-height: 144px;
  padding: 24px 26px;
  border-right: 1px solid rgba(0, 154, 214, 0.14);
  background:
    linear-gradient(145deg, rgba(0, 154, 214, 0.14), rgba(255, 255, 255, 0.86) 64%),
    linear-gradient(0deg, rgba(253, 185, 51, 0.12), transparent 56%);
}

.cy-account-identity .cy-profile-avatar  {
  width: 84px;
  height: 84px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 30px rgba(43, 68, 144, 0.16);
}

.cy-account-info  {
  min-width: 0;
}

.cy-account-info .cy-profile-name,
.cy-account-info .cy-profile-meta  {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-account-meta-row  {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cy-account-meta-row .cy-profile-meta  {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(0, 108, 84, 0.08);
  color: var(--cy-green);
  font-weight: 900;
}

.cy-account-edit  {
  min-width: 76px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 6px;
}

.cy-account-main  {
  grid-area: wallet;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 22px 20px;
}

.cy-wallet-strip  {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 154, 214, 0.16);
  border-radius: 8px;
  background: rgba(248, 252, 255, 0.82);
}

.cy-wallet-tile  {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 96px;
  padding: 14px 16px;
  border-left: 1px solid rgba(0, 154, 214, 0.1);
  background: transparent;
}

.cy-wallet-tile:first-child  {
  border-left: 0;
}

.cy-wallet-label  {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cy-muted);
  font-size: 12px;
  font-weight: 900;
}

.cy-wallet-label em  {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cy-navy), #1d7fd0);
  color: #fff;
  font-style: normal;
  font-size: 11px;
}

.cy-wallet-value  {
  color: var(--cy-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.cy-wallet-tile a,
.cy-wallet-links  {
  display: inline-flex;
  gap: 10px;
  color: var(--cy-cyan);
  font-size: 12px;
  font-weight: 900;
}

.cy-wallet-links a  {
  color: var(--cy-cyan);
}

.cy-wechat-card  {
  grid-area: wechat;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 14px;
  min-width: 0;
  padding: 24px 24px;
  border-left: 1px solid rgba(0, 154, 214, 0.14);
  background:
    linear-gradient(145deg, rgba(0, 108, 84, 0.08), rgba(255, 255, 255, 0.76) 62%),
    rgba(255, 255, 255, 0.6);
  text-align: left;
}

.cy-wechat-card-head  {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 8px;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.cy-wechat-icon  {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 108, 84, 0.08);
  overflow: hidden;
}

.cy-wechat-icon img  {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cy-wechat-title  {
  color: var(--cy-navy);
  font-size: 14px;
  font-weight: 900;
}

.cy-wechat-desc  {
  margin-top: 3px;
  color: var(--cy-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-wechat-dot  {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cy-gold);
  box-shadow: 0 0 0 4px rgba(253, 185, 51, 0.18);
}

.cy-wechat-card.is-bound .cy-wechat-dot  {
  background: var(--cy-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 84, 0.12);
}

.cy-wechat-card.is-bound #wechat-bind-button  {
  border-color: rgba(0, 108, 84, 0.22);
  background: rgba(0, 108, 84, 0.08);
  color: var(--cy-green);
  cursor: not-allowed;
}

#wechat-bind-button  {
  min-width: 118px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
}

.cy-action-dock  {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 18px;
  border-top: 1px solid rgba(0, 154, 214, 0.12);
  background: rgba(248, 252, 255, 0.7);
}

.cy-action-dock .cy-btn  {
  min-width: 104px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background: #fff;
}

.cy-action-dock .cy-btn:first-child  {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cy-cyan), var(--cy-blue));
  color: #fff;
}

.cy-usercenter-content  {
  min-width: 0;
}

.cy-management-card  {
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(43, 68, 144, 0.045);
}

.cy-management-card .cy-card-body  {
  padding: 18px 20px 20px;
}

.cy-management-head,
.cy-support-head  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cy-section-head  {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: var(--cy-navy);
  font-size: 17px;
}

.cy-section-head strong,
.cy-support-head strong  {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cy-section-head strong::before,
.cy-support-head strong::before  {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cy-cyan), var(--cy-gold));
}

.cy-management-publish  {
  min-width: 104px;
  min-height: 36px;
  border-color: transparent;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--cy-cyan), var(--cy-blue));
  color: #fff;
  box-shadow: none;
}

.cy-management-tabs  {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(0, 154, 214, 0.14);
}

.cy-management-tabs button  {
  position: relative;
  height: 46px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--cy-muted);
  font-weight: 900;
  cursor: pointer;
}

.cy-management-tabs button::after  {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.cy-management-tabs button.is-active  {
  color: var(--cy-blue);
}

.cy-management-tabs button.is-active::after  {
  background: var(--cy-blue);
}

.cy-management-panel  {
  display: none;
  padding-top: 16px;
}

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

.cy-filter-line  {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cy-filter-line label  {
  color: var(--cy-muted);
  font-size: 13px;
  font-weight: 900;
}

.cy-filter-line .cy-select  {
  width: 168px;
  min-height: 36px;
  border-radius: 6px;
}

.cy-filter-line .cy-btn  {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 6px;
}

.cy-management-card .cy-table-wrap,
.cy-support-card .cy-table-wrap  {
  border: 1px solid rgba(0, 154, 214, 0.12);
  border-radius: 8px;
  background: #fff;
}

.cy-management-card .cy-table-wrap .cy-table  {
  min-width: 760px;
}

.cy-management-card .cy-table th,
.cy-management-card .cy-table td,
.cy-support-card .cy-table th,
.cy-support-card .cy-table td  {
  padding: 10px 10px;
}

.cy-management-card .cy-table th,
.cy-support-card .cy-table th  {
  background: #f3fbff;
}

.cy-management-support  {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 14px;
  margin-top: 16px;
}

.cy-support-card  {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(0, 154, 214, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.cy-support-head  {
  min-height: 28px;
  margin-bottom: 12px;
  color: var(--cy-navy);
  font-size: 15px;
}

.cy-link-button  {
  border: 0;
  background: transparent;
  color: var(--cy-cyan);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.cy-link-button:hover  {
  color: var(--cy-blue);
}

.cy-support-purchase .cy-table-wrap .cy-table  {
  min-width: 0;
}

.cy-support-purchase .cy-table td:nth-child(2)  {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-sign-summary  {
  min-height: 138px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0, 154, 214, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.cy-sign-timeline  {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 4px 4px 12px;
}

.cy-sign-timeline::before  {
  position: absolute;
  top: 19px;
  right: 7%;
  left: 7%;
  height: 1px;
  border-top: 1px dashed rgba(0, 154, 214, 0.5);
  content: "";
}

.cy-sign-node  {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5d6e82;
}

.cy-sign-icon  {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(0, 134, 214, 0.82);
  border-radius: 50%;
  background: #fff;
  color: var(--cy-blue);
  box-shadow: 0 0 0 4px #fff;
}

.cy-sign-icon .layui-icon  {
  font-size: 15px;
  font-weight: 900;
}

.cy-sign-node em  {
  font-style: normal;
  line-height: 1;
  color: #3c526a;
  white-space: nowrap;
}

.cy-sign-node strong  {
  color: var(--cy-gold);
  font-size: 13px;
  line-height: 1;
}

.cy-sign-node.is-gift .cy-sign-icon  {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cy-cyan), var(--cy-blue));
  color: #fff;
}

.cy-sign-total  {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 42px;
  margin-top: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(233, 248, 255, 0.72), #fff 48%, rgba(255, 247, 229, 0.72));
  color: #52677e;
  font-size: 14px;
}

.cy-sign-total strong  {
  margin: 0 5px;
  color: var(--cy-gold);
  font-size: 24px;
  line-height: 1;
}

.cy-sign-total i  {
  width: 1px;
  height: 18px;
  background: rgba(43, 68, 144, 0.22);
}

.cy-text-gold  {
  color: var(--cy-gold);
  font-weight: 900;
}

.cy-action-dock .cy-btn.is-disabled,
.cy-table .cy-btn.is-disabled  {
  border-color: rgba(148, 163, 184, 0.34);
  background: #f6f8fb;
  color: #9aa6b2;
  cursor: not-allowed;
  pointer-events: none;
}

.cy-profile-meta.is-ok  {
  color: var(--cy-green);
  font-weight: 900;
}

.cy-profile-meta.is-wait  {
  color: var(--cy-gold);
  font-weight: 900;
}

.cy-profile-meta.is-muted  {
  color: var(--cy-muted);
}

.cy-user-status  {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cy-user-status.is-ok  {
  background: rgba(0, 108, 84, 0.1);
  color: var(--cy-green);
}

.cy-user-status.is-wait  {
  background: rgba(253, 185, 51, 0.16);
  color: #9b6a00;
}

.cy-user-status.is-danger  {
  background: rgba(222, 33, 3, 0.09);
  color: #de2103;
}

.cy-user-status.is-muted  {
  background: rgba(100, 116, 139, 0.09);
  color: #64748b;
}

.cy-user-title  {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td .cy-user-title  {
  display: inline-block;
  vertical-align: middle;
}

.cy-purchase-type  {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(253, 185, 51, 0.14);
  color: #9b6a00;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
  white-space: nowrap;
}

.cy-purchase-meta  {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cy-purchase-meta strong,
.cy-purchase-meta span  {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cy-purchase-meta strong  {
  color: var(--cy-navy);
  font-size: 13px;
}

.cy-purchase-meta span  {
  color: var(--cy-muted);
  font-size: 12px;
}

.cy-user-money  {
  color: var(--cy-green);
  font-weight: 900;
  white-space: nowrap;
}

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

.cy-user-empty-state  {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 120px;
  padding: 20px 18px;
  border: 1px dashed rgba(0, 154, 214, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcff);
  color: var(--cy-muted);
  text-align: center;
}

.cy-user-empty-state img  {
  width: 76px;
  height: 76px;
  object-fit: contain;
  opacity: 0.92;
}

.cy-user-empty-state strong  {
  color: var(--cy-muted);
  font-size: 15px;
}

.cy-user-empty-state span  {
  color: #9aa6b2;
  font-size: 13px;
}

.cy-edit-profile-layer  {
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(22, 38, 68, 0.18) !important;
}

.cy-edit-profile-layer .layui-layer-title  {
  height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(0, 154, 214, 0.12);
  background: #fff;
  color: var(--cy-navy);
  font-size: 16px;
  font-weight: 900;
  line-height: 52px;
}

.cy-edit-profile-layer .layui-layer-setwin  {
  top: 13px;
  right: 18px;
  width: 26px;
  height: 26px;
}

.cy-edit-profile-layer .layui-layer-setwin .layui-layer-close  {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 0;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.05);
  color: #536476;
  font-size: 15px;
  line-height: 26px;
}

.cy-edit-profile-layer .layui-layer-setwin .layui-layer-close:hover  {
  background-color: rgba(0, 154, 214, 0.1);
  color: var(--cy-cyan);
  opacity: 1;
}

.cy-edit-profile-form  {
  gap: 14px;
  padding: 0 24px 24px;
  background:
    linear-gradient(180deg, #f6fbff 0, #fff 118px),
    #fff;
}

.cy-edit-profile-form .cy-input  {
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: #fbfdff;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background 0.18s;
}

.cy-edit-profile-form .cy-input:focus  {
  border-color: rgba(0, 154, 214, 0.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 154, 214, 0.1);
}

.cy-edit-profile-form .cy-edit-submit  {
  height: 44px;
  margin-top: 6px;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(0, 154, 214, 0.18);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
}

.cy-edit-profile-form .cy-edit-submit:hover  {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0, 154, 214, 0.24);
}

.cy-edit-profile-form .cy-edit-submit.is-loading  {
  gap: 8px;
  opacity: 0.86;
  cursor: wait;
  transform: none;
}

.cy-edit-profile-form .cy-edit-submit.is-loading span  {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cySpin 0.75s linear infinite;
}

@media (max-width: 1100px) {
  .cy-account-ribbon  {
    grid-template-columns: 1fr 260px;
    grid-template-areas:
      "identity wechat"
      "wallet wallet"
      "actions actions";
  }

  .cy-account-main  {
    border-top: 1px solid rgba(0, 154, 214, 0.12);
  }

  .cy-management-support  {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="usercenter"] .cy-page-title  {
    padding: 16px 18px;
  }

  .cy-account-ribbon  {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "wallet"
      "wechat"
      "actions";
  }

  .cy-account-identity  {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 154, 214, 0.12);
  }

  .cy-account-identity .cy-profile-avatar  {
    width: 72px;
    height: 72px;
  }

  .cy-account-main  {
    padding: 18px;
  }

  .cy-wallet-strip  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cy-wallet-tile:nth-child(odd)  {
    border-left: 0;
  }

  .cy-wallet-tile:nth-child(n + 3)  {
    border-top: 1px solid rgba(0, 154, 214, 0.1);
  }

  .cy-wechat-card  {
    border-top: 1px solid rgba(0, 154, 214, 0.12);
    border-left: 0;
  }

  .cy-action-dock .cy-btn  {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .cy-management-card .cy-card-body  {
    padding: 14px;
  }

  .cy-filter-line .cy-select  {
    width: 100%;
  }

  .cy-management-head  {
    align-items: flex-start;
    flex-direction: column;
  }

  .cy-management-tabs  {
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cy-management-support  {
    grid-template-columns: 1fr;
  }

  .cy-sign-summary  {
    overflow-x: auto;
  }

  .cy-sign-timeline  {
    min-width: 430px;
  }

  .cy-sign-total  {
    min-width: 430px;
    gap: 10px;
    font-size: 12px;
  }

  .cy-sign-total strong  {
    font-size: 20px;
  }
}

