/* 仪表盘专用样式 - 匹配 trademark_dashboard (1).html 参考设计 */

/* ── 统计卡片 ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #f0f0f0;
}
.stat-title {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 6px;
}
.stat-value.green {
  color: #52c41a;
}
.stat-value.red {
  color: #ff4d4f;
}
.stat-change {
  font-size: 12px;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat-change .up {
  color: #ff4d4f;
}
.stat-change .down {
  color: #52c41a;
}
.stat-chart {
  margin-top: 12px;
  height: 50px;
}

/* ── 商标状态分布 ── */
.status-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.status-header {
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-header::before {
  content: "";
  width: 4px;
  height: 16px;
  background: #1890ff;
  border-radius: 2px;
}
.status-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 状态标签 */
.status-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
}
.status-tag {
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.status-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}
.status-tag:hover {
  border-color: #d9d9d9;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.status-tag.active {
  border-color: #1890ff;
  background: #e6f7ff;
}
.status-tag.active::before {
  background: #1890ff;
}
.status-tag .tag-name {
  font-size: 13px;
  color: #595959;
  font-weight: 500;
}
.status-tag.active .tag-name {
  color: #1890ff;
}
.status-tag .tag-num {
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1;
}
.status-tag.tag-all .tag-num {
  color: #1890ff;
}
.status-tag.tag-apply .tag-num {
  color: #1890ff;
}
.status-tag.tag-formal .tag-num {
  color: #52c41a;
}
.status-tag.tag-substantive .tag-num {
  color: #fa8c16;
}
.status-tag.tag-prelim .tag-num {
  color: #faad14;
}
.status-tag.tag-reg-notice .tag-num {
  color: #1890ff;
}
.status-tag.tag-registered .tag-num {
  color: #52c41a;
}
.status-tag.tag-rejected .tag-num {
  color: #ff4d4f;
}

/* 环形图与图例 */
.status-chart-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  padding: 16px 20px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}
.donut-chart {
  width: 160px;
  height: 160px;
  position: relative;
  flex-shrink: 0;
}
.donut-chart::after {
  content: "状态占比";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #8c8c8c;
  text-align: center;
  pointer-events: none;
}
.donut-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #595959;
  white-space: nowrap;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-name {
  color: #595959;
}
.legend-percent {
  color: #8c8c8c;
  font-weight: 600;
}
/* Page-specific styles - see common.css for shared styles */
