/* ============================================
   idczyphp 会员中心首页样式（yunyoo tc- 风格）
   对齐目标站 cloud.96idc.cn 会员中心首页
   ============================================ */
.el-main {
  padding: 0 !important;
}

.home-main {
  background: #f0f2f5 !important;
  padding: 20px !important;
  min-height: calc(100vh - 60px);
}

/* ---------- 栅格 ---------- */
.tc-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}
.tc-row > div {
  box-sizing: border-box;
  padding: 0 8px;
}
.tc-col-3 {
  width: 25%;
}
.tc-col-4 {
  width: 33.3333%;
}
.tc-col-8 {
  width: 66.6667%;
}
.tc-row-middle {
  margin-top: 16px;
}
.tc-row-bottom {
  margin-top: 16px;
}
.w-100 {
  width: 100%;
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}

/* ---------- 卡片 ---------- */
.tc-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}

/* ---------- 统计卡片 ---------- */
.tc-dashboard-stats {
  margin-bottom: 0;
}
.tc-stat-card {
  padding: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.tc-stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.tc-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
}
.tc-stat-icon i {
  font-size: 26px;
  color: #fff;
}
.tc-icon-blue {
  background: #1890ff;
}
.tc-icon-orange {
  background: #fa8c16;
}
.tc-icon-green {
  background: #52c41a;
}
.tc-icon-cyan {
  background: #13c2c2;
}
.tc-icon-purple {
  background: #722ed1;
}
.tc-icon-pink {
  background: #eb2f96;
}
.tc-icon-indigo {
  background: #3b5bdb;
}
.tc-icon-teal {
  background: #08979c;
}
.tc-icon-red {
  background: #f5222d;
}
.tc-icon-yellow {
  background: #faad14;
}
.tc-icon-gray {
  background: #8c8c8c;
}
.tc-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tc-stat-label {
  font-size: 13px;
  color: #86909c;
  margin-bottom: 4px;
}
.tc-stat-value {
  font-size: 26px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.2;
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}
.tc-text-success {
  color: #52c41a !important;
  font-size: 22px;
}
.tc-text-danger {
  color: #f5222d !important;
}

/* ---------- 用户卡 ---------- */
.tc-user-card {
  padding: 24px 20px 8px;
  height: 100%;
}
.tc-user-header {
  display: flex;
  align-items: center;
}
.tc-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}
.tc-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc-user-meta {
  margin-left: 14px;
  min-width: 0;
}
.tc-user-meta h5 {
  font-size: 18px;
  font-weight: 600;
  color: #1d2129;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-user-id {
  font-size: 12px;
  color: #86909c;
  margin-top: 2px;
  display: block;
}
.tc-user-tags {
  margin-top: 6px;
}
.tc-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.6;
}
.tc-tag-blue {
  background: #e8f3ff;
  color: #1890ff;
}
.tc-user-body {
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid #f2f3f5;
  border-bottom: 1px solid #f2f3f5;
}
.tc-user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.tc-info-label {
  color: #86909c;
}
.tc-info-value {
  color: #1d2129;
  word-break: break-all;
}

/* ---------- 账户操作菜单 ---------- */
.tc-user-actions {
  padding: 8px 0 0;
}
.tc-action-item {
  display: flex;
  align-items: center;
  padding: 11px 4px;
  border-radius: 6px;
  color: #4e5969;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.tc-action-item:hover {
  background: #f5f7fa;
  color: #1890ff;
}
.tc-action-item > i:first-child {
  font-size: 18px;
  color: #86909c;
  margin-right: 12px;
}
.tc-action-item > span {
  flex: 1;
}
.tc-action-item:hover > i:first-child {
  color: #1890ff;
}
.tc-action-done {
  color: #52c41a !important;
  font-size: 16px !important;
  margin: 0 !important;
}
.tc-action-arrow {
  color: #c9cdd4 !important;
  font-size: 16px !important;
  margin: 0 !important;
}

/* ---------- 费用信息卡 ---------- */
.tc-finance-card {
  padding: 20px;
  height: 100%;
}
.tc-finance-header,
.tc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tc-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
}
.tc-link-sm {
  font-size: 13px;
  color: #1890ff;
  text-decoration: none;
}
.tc-link-sm:hover {
  color: #40a9ff;
}
.tc-finance-balance {
  background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.tc-balance-label {
  font-size: 14px;
  opacity: 0.92;
}
.tc-balance-row {
  display: flex;
  align-items: center;
}
.tc-balance-amount {
  font-size: 28px;
  font-weight: 600;
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  margin-right: 16px;
}
.tc-balance-amount small {
  font-size: 14px;
  font-weight: 400;
  margin-left: 2px;
}
.tc-recharge-btn {
  background: #fff !important;
  color: #1890ff !important;
  border-radius: 6px !important;
  padding: 6px 20px !important;
  font-size: 14px !important;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.tc-recharge-btn:hover {
  background: #f0f7ff !important;
}
.tc-finance-stats {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 0 4px;
}
.tc-finance-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tc-finance-label {
  font-size: 13px;
  color: #86909c;
  margin-bottom: 6px;
}
.tc-finance-value {
  font-size: 20px;
  font-weight: 600;
  color: #1d2129;
  font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
}
.tc-finance-value small {
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
}
.tc-finance-divider {
  width: 1px;
  height: 40px;
  background: #f0f0f0;
  margin: 0 24px;
}

/* ---------- 快捷入口 ---------- */
.tc-shortcut-section {
  margin-top: 20px;
  border-top: 1px solid #f2f3f5;
  padding-top: 16px;
}
.tc-shortcut-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  margin-bottom: 14px;
}
.tc-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
}
.tc-shortcut-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 12px 4px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.tc-shortcut-item:hover {
  background: #f5f7fa;
}
.tc-shortcut-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.tc-shortcut-icon i {
  font-size: 22px;
  color: #fff;
}
.tc-shortcut-item span {
  font-size: 13px;
  color: #4e5969;
  text-align: center;
}
.tc-shortcut-item:hover span {
  color: #1890ff;
}

/* ---------- 公告卡 ---------- */
.tc-notice-card {
  padding: 20px;
  height: 100%;
}
.tc-notice-list {
  padding: 0 2px;
}
.tc-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 6px;
  border-radius: 6px;
  text-decoration: none;
  border-bottom: 1px solid #f7f8fa;
  transition: background-color 0.2s ease;
}
.tc-notice-item:hover {
  background: #f5f7fa;
}
.tc-notice-title {
  font-size: 14px;
  color: #1d2129;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}
.tc-notice-item:hover .tc-notice-title {
  color: #1890ff;
}
.tc-notice-time {
  font-size: 12px;
  color: #a9aeb8;
  flex-shrink: 0;
}
.tc-notice-empty {
  text-align: center;
  color: #a9aeb8;
  font-size: 14px;
  padding: 30px 0;
}
.tc-notice-footer {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f3f5;
}
.tc-notice-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  border-radius: 6px;
  background: #f5f7fa;
  color: #4e5969;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.tc-notice-action i {
  font-size: 16px;
}
.tc-notice-action:hover {
  background: #e8f3ff;
  color: #1890ff;
}

/* ---------- 产品卡 ---------- */
.tc-product-card {
  padding: 20px;
  height: 100%;
}
.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tc-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #86909c;
  background: #fafbfc;
  border-bottom: 1px solid #f2f3f5;
}
.tc-table thead th:first-child {
  border-radius: 6px 0 0 6px;
}
.tc-table thead th:last-child {
  border-radius: 0 6px 6px 0;
}
.tc-table tbody td {
  padding: 12px;
  color: #1d2129;
  border-bottom: 1px solid #f7f8fa;
}
.tc-table tbody tr:hover td {
  background: #fafbfc;
}
.tc-product-name {
  color: #1890ff;
  text-decoration: none;
}
.tc-product-name:hover {
  color: #40a9ff;
}
.tc-product-empty {
  text-align: center;
  padding: 40px 0;
  color: #a9aeb8;
}
.tc-product-empty i {
  font-size: 40px;
  color: #d4d7de;
}
.tc-product-empty p {
  margin: 12px 0 16px;
  font-size: 14px;
}

/* ---------- 按钮 ---------- */
.tc-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}
.tc-btn-primary {
  background: #1890ff;
  color: #fff;
}
.tc-btn-primary:hover {
  background: #40a9ff;
}
.tc-btn-sm {
  padding: 7px 18px;
  font-size: 14px;
  border-radius: 6px;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 992px) {
  .tc-col-3 {
    width: 50%;
  }
  .tc-col-4,
  .tc-col-8 {
    width: 100%;
  }
  .tc-row-middle {
    margin-top: 12px;
  }
  .tc-shortcut-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media screen and (max-width: 750px) {
  .home-main {
    padding: 12px !important;
    margin-top: 56px;
  }
  .tc-col-3 {
    width: 100%;
  }
  .tc-dashboard-stats > div {
    margin-bottom: 12px;
  }
  .tc-shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tc-finance-divider {
    margin: 0 14px;
  }
}
