/**
 * 内容区 — 大厂控制台风格（腾讯云 / 阿里云系）
 */

/* ---------- 页面头 ---------- */
.tc-page-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tc-page-head .tc-breadcrumb {
  margin-bottom: 8px;
}

.tc-breadcrumb__sep {
  margin: 0 6px;
  color: #d0d0d0;
}

.tc-breadcrumb__current {
  color: var(--tc-text);
}

.tc-page-head .tc-page-title {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--tc-text-title);
}

.tc-page-head .tc-page-desc {
  margin: 8px 0 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 22px;
  color: var(--tc-text-secondary);
}

/* 无独立 page-head 时的兼容 */
.tc-main > .tc-page-title:not(.tc-page-head .tc-page-title) {
  font-size: 20px;
  margin-bottom: 4px;
}

/* ---------- 内容块间距 ---------- */
.tc-main > .tc-panel,
.tc-main > .tc-grid-3,
.tc-main > .tc-shop-grid,
.tc-main > .tc-quick-grid,
.tc-main > .tc-alert,
.tc-main > form.tc-downloads-form {
  margin-bottom: 16px;
}

.tc-main > .tc-page-head + .tc-alert {
  margin-top: -4px;
}

/* ---------- 统计卡片 ---------- */
.tc-grid-3 {
  gap: 12px;
}

.tc-stat-card {
  position: relative;
  padding: 18px 20px;
  background: var(--tc-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--tc-radius-md);
  box-shadow: var(--tc-shadow-sm);
  overflow: hidden;
}

.tc-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--tc-brand);
  opacity: 0.85;
}

.tc-stat-card:hover {
  transform: none;
  border-color: rgba(0, 110, 255, 0.18);
  box-shadow: var(--tc-shadow-md);
}

.tc-stat-card__label {
  font-size: 12px;
  color: var(--tc-text-secondary);
  margin-bottom: 10px;
}

.tc-stat-card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tc-text-title);
}

.tc-stat-card__desc {
  margin-top: 6px;
  font-size: 12px;
  color: var(--tc-text-secondary);
}

/* ---------- 面板 ---------- */
.tc-panel {
  background: var(--tc-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  box-shadow: var(--tc-shadow-sm);
  overflow: hidden;
}

.tc-panel:hover {
  box-shadow: var(--tc-shadow-sm);
}

.tc-panel__hd {
  min-height: 48px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  background: #fafbfc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tc-panel__hd--toolbar {
  min-height: 52px;
  gap: 12px;
}

.tc-panel__bd {
  padding: 20px;
}

.tc-panel__bd--flush {
  padding: 0;
}

.tc-panel__ft {
  padding: 12px 20px;
  background: #fafbfc;
}

/* ---------- 表格 ---------- */
.tc-data-table thead th {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tc-text-secondary);
  background: #f6f8fa;
  border-bottom: 1px solid var(--tc-border);
}

.tc-data-table tbody td {
  padding: 14px 16px;
  font-size: 13px;
  vertical-align: middle;
}

.tc-data-table tbody tr {
  transition: background 0.15s ease;
}

.tc-data-table tbody tr:hover {
  background: #f8fbff;
}

.tc-data-table__empty {
  padding: 48px 24px !important;
  font-size: 13px;
  color: var(--tc-text-secondary);
  text-align: center;
}

.tc-data-table__empty a {
  font-weight: 500;
}

.tc-data-table td strong {
  font-weight: 600;
  color: var(--tc-text-title);
}

/* ---------- 标签 ---------- */
.tc-tag {
  padding: 2px 8px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 2px;
}

/* ---------- 工具栏筛选 ---------- */
.tc-toolbar-form .tc-btn--weak {
  min-width: 64px;
  background: #fff;
}

.tc-toolbar-form .tc-btn--weak.is-active,
.tc-toolbar-form .tc-btn--weak.is-active:hover {
  background: #e8f3ff;
  border-color: #9ec5ff;
  color: var(--tc-brand);
  font-weight: 500;
}

/* ---------- 快捷入口（首页） ---------- */
.tc-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tc-quick-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--tc-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  box-shadow: var(--tc-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tc-quick-card:hover {
  border-color: rgba(0, 110, 255, 0.25);
  box-shadow: var(--tc-shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.tc-quick-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--tc-brand);
  background: linear-gradient(135deg, #e8f3ff 0%, #f0f7ff 100%);
  border-radius: 6px;
}

.tc-quick-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-text-title);
}

.tc-quick-card__desc {
  font-size: 12px;
  line-height: 20px;
  color: var(--tc-text-secondary);
  flex: 1;
}

.tc-quick-card__link {
  font-size: 12px;
  color: var(--tc-brand);
  font-weight: 500;
}

/* ---------- 商城卡片 ---------- */
.tc-shop-grid {
  gap: 12px;
}

.tc-shop-card {
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--tc-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-shop-card:hover {
  border-color: rgba(0, 110, 255, 0.2);
  box-shadow: var(--tc-shadow-md);
}

.tc-shop-card__title {
  font-size: 15px;
}

.tc-shop-card__price {
  padding-top: 4px;
  border-top: 1px dashed var(--tc-border);
}

/* ---------- 空状态 ---------- */
.tc-empty-state {
  padding: 56px 24px;
  text-align: center;
}

.tc-empty-state__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-text-title);
  margin-bottom: 8px;
}

.tc-empty-state__desc {
  font-size: 13px;
  color: var(--tc-text-secondary);
  margin-bottom: 16px;
  line-height: 22px;
}

/* ---------- 提示条 ---------- */
.tc-alert {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 22px;
  border-radius: 4px;
}

/* ---------- 表单区 ---------- */
.tc-form-license {
  max-width: 680px;
}

.tc-form-item {
  margin-bottom: 18px;
}

.tc-form-label {
  font-weight: 500;
  color: var(--tc-text-title);
}

.tc-form-hint {
  font-size: 12px;
  line-height: 20px;
}

.tc-form-actions {
  margin-top: 4px;
  padding-top: 20px;
}

/* ---------- 个人资料 ---------- */
.tc-profile {
  align-items: flex-start;
}

.tc-info-list th {
  width: 100px;
  color: var(--tc-text-secondary);
}

.tc-info-list td {
  font-size: 13px;
}

/* ---------- 下载列表 ---------- */
.tc-download-row__domain {
  font-size: 14px;
}

/* ---------- 分页 ---------- */
.tc-pagination {
  padding: 4px 0;
}

/* ---------- 入场动画（仅页面头 + 首屏块） ---------- */
.tc-main > .tc-breadcrumb,
.tc-main > .tc-page-title,
.tc-main > .tc-page-desc,
.tc-main > .tc-panel,
.tc-main > .tc-grid-3,
.tc-main > .tc-hero,
.tc-main > form,
.tc-main > .tc-downloads-form {
  animation: none;
}

.tc-main > .tc-page-head,
.tc-main > .tc-quick-grid,
.tc-main > .tc-shop-grid {
  animation: tc-fade-up 0.4s var(--tc-ease-out) backwards;
}

.tc-main > .tc-page-head { animation-delay: 0.02s; }
.tc-main > .tc-quick-grid { animation-delay: 0.06s; }
.tc-main > .tc-shop-grid { animation-delay: 0.08s; }

@media (max-width: 992px) {
  .tc-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tc-quick-grid {
    grid-template-columns: 1fr;
  }
  .tc-grid-3 {
    grid-template-columns: 1fr;
  }
  .tc-page-head .tc-page-title {
    font-size: 18px;
  }
}
