/* shadcn/ui 风格样式 */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 47.4% 11.2%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --ring: 215 20.2% 65.1%;
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Layout - 移动端优先 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background: hsl(var(--accent));
}

.btn-outline {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--accent));
}

.btn-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.btn-destructive:hover {
  background: hsl(var(--destructive) / 0.9);
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background: hsl(var(--accent));
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-icon {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

/* Card */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: -0.025em;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
}

/* Input */
.input {
  display: flex;
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  transition: all 0.15s ease;
}

.input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

textarea.input {
  height: auto;
  min-height: 80px;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

/* Label */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

/* Form */
.form-item {
  margin-bottom: 1rem;
}

.form-item:last-child {
  margin-bottom: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.badge-default {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge-destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.badge-outline {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.badge-success {
  background: hsl(142 76% 36%);
  color: white;
}

.badge-warning {
  background: hsl(38 92% 50%);
  color: white;
}

/* Product Grid - 移动端优先 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
  }
}

.product-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.product-image {
  width: 100%;
  height: 140px;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-image {
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .product-image {
    height: 200px;
  }
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 64px;
  height: 64px;
  color: hsl(var(--muted-foreground));
}

.product-info {
  padding: 0.75rem;
}

@media (min-width: 768px) {
  .product-info {
    padding: 1rem;
  }
}

.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .product-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
}

.product-spec {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .product-spec {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--destructive));
}

@media (min-width: 768px) {
  .product-price {
    font-size: 1.25rem;
  }
}

.product-stock {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .product-stock {
    font-size: 0.875rem;
  }
}

.stock-low {
  color: hsl(var(--destructive));
  font-weight: 500;
}

/* Search - 移动端优先 */
.search-bar {
  position: relative;
  max-width: 100%;
  margin: 0 auto 1.25rem;
}

@media (min-width: 768px) {
  .search-bar {
    max-width: 400px;
    margin: 0 auto 2rem;
  }
}

.search-bar .input {
  padding-left: 2.5rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: hsl(var(--muted-foreground));
}

/* Announcement - 移动端优先 */
.announcement {
  background: hsl(var(--secondary));
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .announcement {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    gap: 0.75rem;
  }
}

.announcement-icon {
  width: 20px;
  height: 20px;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 2px;
}

.announcement-content {
  flex: 1;
}

.announcement-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.announcement-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* Section - 移动端优先 */
.section {
  padding: 1.25rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 2rem 0;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 1.5rem;
  }
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

/* Table */
.table-container {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  text-align: left;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.table tr:hover {
  background: hsl(var(--muted) / 0.3);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.product-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  background: hsl(var(--muted));
}

/* Dialog / Modal - 移动端优先 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2.5rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  padding-left: 0;
  padding-right: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: hsl(var(--background));
  border-radius: var(--radius);
  width: calc(100% - 3rem);
  max-width: 560px;
  max-height: calc(100vh - 5.5rem - env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(0.95) translateY(1rem);
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .modal {
    width: 90%;
    max-height: 90vh;
    transform: scale(0.95);
  }
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay.active .modal {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .modal-header {
    padding: 1.5rem;
  }
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .modal-title {
    font-size: 1.125rem;
  }
}

.modal-close {
  padding: 0.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.modal-body {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .modal-body {
    padding: 1.5rem;
  }
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .modal-footer {
    padding: 1.5rem;
  }
}

/* Product Detail - 移动端优先 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.product-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--muted));
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .product-detail-info h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
  }
}

.product-detail-spec {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .product-detail-spec {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--destructive));
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .product-detail-price {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

.product-detail-stock {
  margin-bottom: 1.5rem;
}

.product-detail-section {
  margin-bottom: 1.5rem;
}

.product-detail-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-detail-section p {
  font-size: 0.875rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Login Page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: hsl(var(--muted) / 0.3);
}

.login-card {
  width: 100%;
  max-width: 400px;
}

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: hsl(var(--card));
  border-right: 1px solid hsl(var(--border));
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 600;
  font-size: 1.125rem;
}

.admin-nav {
  flex: 1;
  padding: 0.75rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.admin-nav-item:hover {
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.admin-nav-item.active {
  background: hsl(var(--accent));
  color: hsl(var(--foreground));
}

.admin-nav-item svg {
  width: 18px;
  height: 18px;
}

.admin-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.admin-main {
  flex: 1;
  margin-left: 240px;
}

.admin-header {
  height: 64px;
  border-bottom: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: hsl(var(--background));
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-content {
  padding: 2rem;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: hsl(var(--muted-foreground) / 0.4);
  border-radius: 9999px;
  transition: 0.2s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .switch-slider {
  background: hsl(var(--primary));
}

.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}

/* Toast - 移动端优先 */
.toast-container {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .toast-container {
    top: 1rem;
    left: auto;
    right: 1rem;
  }
}

.toast {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  width: 100%;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInDown 0.3s ease;
}

@media (min-width: 768px) {
  .toast {
    min-width: 300px;
    width: auto;
    padding: 1rem;
    animation: slideIn 0.3s ease;
  }
}

.toast-success {
  border-color: hsl(142 71% 45% / 0.3);
}

.toast-error {
  border-color: hsl(0 84% 60% / 0.3);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-success .toast-icon {
  color: hsl(142 71% 45%);
}

.toast-error .toast-icon {
  color: hsl(0 84% 60%);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Upload area */
.upload-area {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: hsl(var(--muted) / 0.3);
}

.upload-area:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--muted) / 0.5);
}

.upload-area.dragover {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent));
}

.upload-icon {
  width: 40px;
  height: 40px;
  color: hsl(var(--muted-foreground));
  margin: 0 auto 0.75rem;
}

.upload-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.upload-preview {
  position: relative;
  display: inline-block;
}

.upload-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius);
  object-fit: cover;
}

.upload-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: hsl(var(--destructive));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: hsl(var(--muted-foreground));
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: hsl(var(--accent));
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid hsl(var(--border));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 管理后台移动端适配 */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 50;
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }
  
  .admin-main {
    margin-left: 0;
  }
  
  .admin-content {
    padding: 1rem;
  }
  
  .admin-header {
    padding: 0 1rem;
  }
}

/* 管理后台桌面端 */
@media (min-width: 769px) {
  .admin-content {
    padding: 2rem;
  }
}
