.qx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--qx-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s;
}

.qx-btn-primary {
  background: var(--qx-brand);
  color: #fff;
}

.qx-btn-primary:hover {
  background: var(--qx-brand-dark);
  color: #fff;
}

.qx-btn-ghost {
  background: transparent;
  color: var(--qx-brand);
  border: 1px solid var(--qx-brand);
}

.qx-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.qx-btn-block {
  width: 100%;
}

.qx-card {
  background: var(--qx-card);
  border-radius: var(--qx-radius);
  box-shadow: var(--qx-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.qx-card-pad {
  padding: 16px;
}

.qx-section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.qx-page-header {
  margin-bottom: 20px;
}

.qx-page-header h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.qx-page-header p {
  margin: 0;
  color: var(--qx-text-secondary);
  font-size: 14px;
}

.qx-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--qx-text-muted);
}

.qx-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.qx-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  background: var(--qx-brand-light);
  color: var(--qx-brand-dark);
}

.qx-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--qx-text);
}

.qx-notice:hover {
  background: var(--qx-bg);
}

.qx-notice-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 12px;
  background: var(--qx-danger);
  color: #fff;
  border-radius: 4px;
}

.qx-notice-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qx-grid-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
}

@media (min-width: 768px) {
  .qx-grid-cats {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 20px;
  }
}

.qx-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--qx-text);
  font-size: 12px;
  text-align: center;
}

.qx-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--qx-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.qx-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}

@media (min-width: 768px) {
  .qx-grid-cards {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 0 20px 20px;
  }
}

.qx-hot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--qx-text);
  border-radius: var(--qx-radius-sm);
  transition: background 0.15s;
}

.qx-hot-card:hover {
  background: var(--qx-bg);
}

.qx-hot-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
}

.qx-hot-card .title {
  font-size: 13px;
  margin-bottom: 4px;
  text-align: center;
}

.qx-hot-card .rate {
  font-size: 12px;
  color: var(--qx-danger);
  font-weight: 600;
}
