:root {
  --primary-color: #1E88E5;
  --primary-light: #42A5F5;
  --primary-dark: #1565C0;
  --accent-color: #FF6D00;
  --accent-light: #FF8F40;
  --accent-dark: #E65100;
  --bg-color: #FAFBFC;
  --bg-secondary: #F1F4F8;
  --bg-white: #FFFFFF;
  --text-primary: #1A2332;
  --text-secondary: #5C6B7F;
  --text-muted: #90A4AE;
  --border-color: #E2E8F0;
  --border-light: #F0F3F7;
  --danger-color: #D32F2F;
  --danger-light: rgba(211, 47, 47, 0.06);
  --success-color: #2E7D32;
  --warning-color: #F57C00;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  --font-sans: -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col {
  flex: 1;
  padding: 0 0.5rem;
}

.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-6 { width: 50%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-12 { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  min-width: 48px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: white;
  box-shadow: 0 2px 8px rgba(255, 109, 0, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 109, 0, 0.4);
}

.btn-accent:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  min-height: 56px;
  font-size: 1.125rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-light);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.skeleton-loader {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-light) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

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

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 90%;
  max-width: 400px;
  transform: scale(0.9);
  transition: all var(--transition-normal);
  text-align: center;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-color);
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  z-index: 2000;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.toast.toast-show {
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: var(--success-color);
}

.toast-error {
  background: var(--danger-color);
}

.toast-warning {
  background: var(--warning-color);
}

.toast-info {
  background: var(--primary-color);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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

.disclaimer-box {
  background: var(--danger-light);
  border-left: 4px solid var(--danger-color);
  padding: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1rem 0;
}

.disclaimer-box p {
  color: var(--danger-color);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}

.workflow-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 2rem 0;
  color: white;
}

.workflow-section .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
}

.workflow-step {
  text-align: center;
  flex: 1;
  min-width: 100px;
  max-width: 200px;
}

.workflow-step-number {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.workflow-step-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.price-tag small {
  font-size: 0.75em;
  font-weight: 400;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .row {
    margin: 0 -0.375rem;
  }
  
  .col {
    padding: 0 0.375rem;
  }
  
  .col-2, .col-3, .col-4 {
    width: 50%;
  }
  
  .col-6, .col-8, .col-9 {
    width: 100%;
  }
  
  .card-img {
    height: 160px;
  }
  
  .workflow-section .container {
    flex-direction: column;
    align-items: center;
  }
  
  .workflow-step {
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .workflow-step-number {
    margin: 0;
    flex-shrink: 0;
  }
  
  .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .card-img {
    height: 140px;
  }
  
  .col-2, .col-3, .col-4 {
    width: 100%;
  }
}