body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-align:center; 
    margin:0; 
    padding:20px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
}

/* Compact Brand Hero - 更紧凑的设计 */
.brand-hero-compact {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #8ACE00, #6DA500);
    border-radius: 25px;
    color: white;
    box-shadow: 0 4px 15px rgba(138, 206, 0, 0.25);
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.brand-compact {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.brand-compact strong {
    font-weight: 900;
    font-size: 1.1em;
}

h1 {
    color: black;
    margin-bottom: 1rem;
    font-size: 3.5em;
    text-transform: lowercase;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Legacy styles - keeping for compatibility */
.controls { 
    margin: 20px 0; 
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.control-group input[type="range"] {
    width: 120px;
}

.control-group input[type="number"] {
    width: 70px;
}

.control-group span {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.controls label { 
    margin-right: 5px; 
    font-weight: 600;
    color: #333;
}

#textList { 
    margin-bottom: 20px; 
}

/* New minimal theme overrides to match modern card/grid aesthetic & authentic Brat minimalism */
:root {
  --bg: #f5f5f6;
  --fg: #111111;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --ring: #374151;
  --primary: #374151; /* Professional dark gray for primary actions */
  --primary-hover: #1f2937;
  --secondary: #6b7280; /* Medium gray for secondary actions */
  --secondary-hover: #4b5563;
  --accent: #ef4444; /* Red for delete actions */
  --accent-hover: #dc2626;
  --success: #10b981; /* Green for success actions */
  --warning: #f59e0b; /* Orange for warning actions */
  --info: #3b82f6; /* Blue for info actions */
}

/* Global */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-subtitle {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.hero-description {
  color: var(--muted);
  font-size: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  line-height: 1.6;
}

.features-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--card) 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* How to Use Section */
.how-to-use-section {
  background: linear-gradient(135deg, #f8fafc 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.how-to-use-section h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.usage-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(55, 65, 81, 0.3);
}

.step-content h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.step-content p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.step-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-content li {
  padding: 0.5rem 0;
  color: var(--fg);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.step-content li:last-child {
  border-bottom: none;
}

.step-content li strong {
  color: var(--primary);
  font-weight: 600;
}

.professional-features h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--info);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
}

.feature-card h4 {
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* 功能子部分样式 */
.feature-subsection {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  border-left: 4px solid #8b5cf6;
}

.feature-subsection h4 {
  color: #8b5cf6;
  margin: 0 0 0.8rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.feature-subsection ul {
  margin: 0;
  padding-left: 1rem;
}

.feature-subsection ul li {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Pro Tips 样式 */
.feature-subsection p:has(strong) {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 0.8rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.feature-subsection p strong {
  color: #059669;
  font-weight: 600;
}

/* 介绍性段落样式 */
.feature-subsection > p:first-of-type {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  padding: 0.8rem;
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b46c1;
  font-style: italic;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
  /* Brand hero responsive */
  .brand-main {
    font-size: 2.5rem;
  }
  
  .brand-text {
    font-size: 1rem;
  }
  
  .features-highlight {
    grid-template-columns: 1fr;
  }
  
  .how-to-use-section {
    padding: 1.5rem;
  }
  
  .step-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
}

h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2.5rem, 8vw, 4rem); /* 优化尺寸范围 */
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.02em;
  line-height: 1.0; /* 更紧凑 */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header p {
  color: var(--muted);
  font-size: 1rem; /* 稍微减小 */
  margin: 0 0 1rem 0; /* 减少下边距 */
}

/* Hero features badges - 优化尺寸 */
.hero-features {
  display: flex;
  justify-content: center;
  gap: 0.75rem; /* 减少间距 */
  margin-top: 1rem; /* 减少上边距 */
  margin-bottom: 1.5rem; /* 添加下边距分隔主要内容 */
  flex-wrap: wrap;
}

.feature-badge {
  background: linear-gradient(135deg, #8ACE00, #6DA500);
  color: white;
  padding: 0.4rem 0.8rem; /* 减小内边距 */
  border-radius: 20px; /* 稍微减小圆角 */
  font-size: 0.8rem; /* 减小字体 */
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(138, 206, 0, 0.3);
  transition: transform 0.2s ease;
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(138, 206, 0, 0.4);
}

.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  flex: 1;
}

/* Upper Section: Canvas and Controls */
.upper-section {
  background: var(--card);
  margin-bottom: 3rem;
}

/* Lower Section: Usage Instructions */
.lower-section {
  background: var(--card);
  padding: 2rem;
}

.canvas-section {
  background: transparent;
  border: none;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

canvas {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: grab;
  max-width: 100%;
  height: auto;
  touch-action: none; /* Allow custom touch handling */
  user-select: none; /* Prevent text selection */
}

canvas:active {
  cursor: grabbing;
}

.controls-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: auto;
  overflow-y: visible;
  overflow-x: hidden;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  color: white;
}

.card-content {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-group {
  margin-bottom: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

input, select, button {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

input, select {
  padding: 0.75rem;
  background: var(--card);
  transition: all 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
  transform: translateY(-1px);
}

select {
  background: linear-gradient(135deg, var(--card) 0%, #f8fafc 100%);
  cursor: pointer;
}

select:hover {
  background: linear-gradient(135deg, #f8fafc 0%, var(--card) 100%);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(55, 65, 81, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(55, 65, 81, 0.4);
  background: linear-gradient(135deg, var(--primary-hover) 0%, #111827 100%);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--primary) 100%);
}

.btn-download {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  border-color: var(--success);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(55, 65, 81, 0.3);
}

.btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(55, 65, 81, 0.4);
}

.delete-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
  transition: all 0.3s ease;
}

.delete-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, var(--accent-hover) 0%, #b91c1c 100%) !important;
}

.text-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--card) 0%, #f8fafc 100%);
  animation: fadeIn 0.3s ease-out;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.text-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--secondary);
}

/* Image item styles */
.image-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--card) 0%, #f8fafc 100%);
  animation: fadeIn 0.3s ease-out;
  border-left: 4px solid var(--secondary);
  transition: all 0.3s ease;
}

.image-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left-color: var(--primary);
}

.image-item-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.image-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.layer-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.image-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.text-item-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.text-item-header input[type="text"] {
  flex: 1;
}

.text-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.control-item select,
.control-item input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0; /* 允许收缩 */
}

.control-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.size-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.size-input-group input[type="number"] {
  flex: 1;
  min-width: 0; /* 允许 flex 项目收缩 */
  box-sizing: border-box;
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  width: 80px; /* 设置固定宽度确保数值可见 */
}

.size-unit {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  min-width: 20px;
  flex-shrink: 0; /* 防止单位文字被压缩 */
}

.text-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.effect-controls {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.effect-group {
  margin-bottom: 1rem;
}

.effect-group:last-child {
  margin-bottom: 0;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.checkbox-item:hover {
  color: var(--primary);
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  cursor: pointer;
}

.distortion-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-effect {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  background: linear-gradient(135deg, var(--border) 0%, #f3f4f6 100%);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-effect:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
  color: white;
  transform: translateY(-1px);
}

.btn-effect.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(55, 65, 81, 0.3);
}

.image-upload-section {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.drawing-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.action-grid button:last-child {
  grid-column: 1 / -1;
}

.size-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: 1px solid var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(55, 65, 81, 0.2);
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 0%, var(--muted) 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.3s ease;
}

input[type="range"]:hover {
  background: linear-gradient(90deg, var(--border) 0%, var(--primary) 100%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(55, 65, 81, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.4);
}

input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--primary);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="color"]:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(55, 65, 81, 0.3);
}

/* 颜色选择器样式 */
.color-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.color-btn {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  outline: none;
}

.color-btn:hover {
  transform: scale(1.05);
  border-color: #8b5cf6;
}

.color-btn.active {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.color-check {
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.color-btn.active .color-check {
  opacity: 1;
}

/* 具体颜色样式 */
.color-bratgreen {
  background-color: #8ACE00;
}

.color-white {
  background-color: #ffffff;
  border: 3px solid #e0e0e0;
}

.color-white.active {
  border-color: #8b5cf6;
}

.color-white .color-check {
  color: #333;
  text-shadow: none;
}

.color-black {
  background-color: #000000;
}

.color-red {
  background-color: #ff0000;
}

.color-blue {
  background-color: #0000ff;
}

.color-yellow {
  background-color: #ffff00;
}

.color-yellow .color-check {
  color: #333;
  text-shadow: none;
}

.color-pink {
  background-color: #ff69b4;
}

.color-purple {
  background-color: #800080;
}

@media (max-width: 768px) {
  .color-palette {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
  }
  
  .color-btn {
    width: 50px;
    height: 50px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    height: auto;
    min-height: auto;
  }
  
  .upper-section {
    margin-bottom: 2rem;
    height: auto;
    overflow: visible;
  }
  
  body {
    padding: 1rem;
  }
  
  .header {
    margin-bottom: 1.5rem;
  }
  
  /* 移动端画布优化 */
  .canvas-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .canvas-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  
  #bratCanvas {
    max-width: 100%;
    height: auto !important;
    width: 100% !important;
  }
  
  /* 移动端控制面板优化 */
  .controls-section {
    position: relative;
    max-height: none;
    overflow: visible;
    height: auto;
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 640px) {
  /* 移动端整体布局优化 */
  body {
    padding: 0.5rem;
    font-size: 14px;
  }
  
  /* 紧凑品牌区域移动端优化 */
  .brand-hero-compact {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
  }
  
  .brand-compact {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }
  
  .brand-compact strong {
    font-size: 1em;
  }
  
  /* 主标题移动端优化 */
  h1 {
    font-size: 2.5rem !important;
    margin-bottom: 0.75rem;
    line-height: 0.95;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  /* 特性徽章移动端优化 */
  .hero-features {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    gap: 0.4rem;
  }
  
  .feature-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    width: fit-content;
  }
  
  /* 画布区域移动端完全优化 */
  .canvas-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  
  .canvas-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
  }
  
  #bratCanvas {
    max-width: calc(100vw - 3rem) !important;
    max-height: calc(100vw - 3rem) !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .size-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.5rem;
  }
  
  /* 控制面板移动端优化 */
  .controls-section {
    background: transparent;
    padding: 0;
    height: auto;
    max-height: none;
    overflow-y: visible;
    flex: none;
  }
  
  .upper-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  
  .lower-section {
    padding: 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  /* 输入控件移动端优化 */
  input[type="range"] {
    width: 100%;
    height: 6px;
  }
  
  input[type="number"], input[type="text"], select {
    font-size: 16px; /* 防止iOS缩放 */
    padding: 0.5rem;
  }
  
  .control-item {
    margin-bottom: 1rem;
  }
  
  .control-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  /* 按钮移动端优化 */
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    min-height: 44px; /* iOS 推荐最小触摸尺寸 */
  }
  
  .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-height: 36px;
  }
  
  /* 操作区域移动端优化 */
  .action-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* 文本列表移动端优化 */
  .text-item {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
  }
  
  .text-controls {
    gap: 0.5rem;
  }
  
  /* 使用说明区域移动端优化 */
  .usage-section {
    padding: 1.5rem 0;
  }
  
  .usage-section h2 {
    font-size: 1.8rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .step {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  /* 特性网格移动端优化 */
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .advantage {
    padding: 1.25rem;
    text-align: center;
  }
  
  .advantage-icon {
    font-size: 2rem;
  }
}
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .text-controls {
    grid-template-columns: 1fr;
  }
  
  .control-item {
    margin-bottom: 0.5rem;
  }
  
  .effect-controls {
    margin-top: 0.75rem;
  }
  
  .checkbox-group {
    gap: 0.75rem;
  }
  
  .distortion-controls,
  .image-upload-section,
  .drawing-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .text-sliders {
    grid-template-columns: 1fr;
  }

  /* 优化 size-input-group 在小屏幕上的显示 */
  .size-input-group {
    width: 100%;
    min-width: 0; /* 允许压缩 */
  }
  
  .size-input-group input[type="number"] {
    min-width: 70px; /* 确保有足够空间显示数值 */
    max-width: 90px;
    font-size: 0.9rem; /* 保持可读性 */
    padding: 0.4rem;
  }
  
  .size-unit {
    font-size: 0.75rem;
    min-width: 18px;
    flex-shrink: 0; /* 防止压缩 */
  }
  
  /* 优化选择框（Layout Mode等）在小屏幕上的显示 */
  .control-item select {
    width: 100%;
    min-width: 0; /* 允许压缩 */
    font-size: 0.875rem; /* 稍微缩小字体 */
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
  }
  
  /* 确保所有输入控件都不会超出容器 */
  .control-item input,
  .control-item select {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* 优化控件标签在小屏幕上的显示 */
  .control-label {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  
  /* 优化图片预览在小屏幕上的显示 */
  .image-preview {
    width: 50px;
    height: 50px;
  }
  
  .image-item-header {
    gap: 0.75rem;
  }
  
  .image-controls {
    grid-template-columns: 1fr;
  }

/* 在很小的屏幕上进一步优化品牌区域 */
@media (max-width: 480px) and (max-height: 700px) {
  .brand-hero-compact {
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
  }
  
  .brand-compact {
    font-size: 0.7rem;
  }
  
  .header {
    margin-bottom: 0.75rem;
  }
  
  h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.5rem;
  }
  
  .hero-features {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }
}
@media (max-width: 768px) {
  /* 移动端控制面板优化 */
  .controls-section {
    position: relative;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
  }
  
  .card {
    margin-bottom: 0.75rem;
  }
  
  .card-header {
    cursor: pointer;
    user-select: none;
    position: relative;
  }
  
  .card-header::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #8ACE00;
    font-weight: bold;
  }
  
  .card.collapsed .card-header::after {
    transform: translateY(-50%) rotate(-90deg);
  }
  
}

.mobile-device .canvas-section {
  position: sticky;
  top: 1rem;
  z-index: 10;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-device .controls-section {
  margin-top: 1rem;
}

.mobile-device .card {
  border-radius: 12px;
  overflow: hidden;
}

.mobile-device .card-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.mobile-device .card-content {
  background: white;
}

/* 移动端画布完全适配 */
.mobile-device #bratCanvas {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  cursor: pointer;
}

/* 移动端触摸反馈 */
.mobile-device .btn:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.mobile-device input[type="range"]:active {
  transform: scale(1.02);
  transition: transform 0.1s ease;
}
@media (max-width: 480px) {
  /* 极小屏幕优化 */
  
  .brand-main {
    font-size: 1.8rem !important;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  .canvas-container {
    min-height: 200px;
  }
  
  #bratCanvas {
    max-width: calc(100vw - 2rem) !important;
    max-height: calc(100vw - 2rem) !important;
  }
  
  .card-content {
    padding: 0.75rem;
  }
  
  .control-item {
    margin-bottom: 0.75rem;
  }
  
  /* 文字控件在极小屏幕上的优化 */
  .text-item {
    padding: 0.75rem;
  }
  
  .text-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .text-controls .btn {
    width: 100%;
    justify-content: center;
  }
  
  .text-item {
    padding: 1rem;
  }
  
  .image-item {
    padding: 1rem;
  }
  
  .image-preview {
    width: 40px;
    height: 40px;
  }
  
  .text-controls {
    gap: 0.75rem;
  }
  
  .size-input-group {
    flex-wrap: nowrap; /* 防止换行 */
    gap: 0.25rem;
  }
  
  .size-input-group input[type="number"] {
    min-width: 50px;
    max-width: 70px;
    font-size: 0.75rem;
    padding: 0.375rem 0.25rem;
  }
  
  .size-unit {
    font-size: 0.6875rem;
    min-width: 15px;
  }
  
  .control-item select {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
  
  .control-label {
    font-size: 0.65rem;
    letter-spacing: 0.25px;
  }
  
  /* 优化文本输入框 */
  .text-item-header input[type="text"] {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
  
  /* 优化滑块组 */
  .text-sliders {
    gap: 0.75rem;
  }
  
  .slider-group {
    padding: 0.75rem;
  }
  
  .slider-label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

/* 使用说明和优势部分样式 */
.usage-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
}

.usage-section h2 {
  color: #333;
  font-size: 2.2rem; /* 增大字体 */
  margin-bottom: 1rem; /* 减少下边距为新描述留空间 */
  text-align: center;
  font-weight: 800;
}

/* Section header styling */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.highlight-brat {
  color: #8ACE00;
  font-weight: 900;
  text-shadow: 0 0 15px rgba(138, 206, 0, 0.3);
  font-size: 1.1em;
  text-transform: lowercase;
}

.section-description {
  color: #666;
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

.usage-steps {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.step-number {
  background: linear-gradient(45deg, #8b5cf6, #a855f7);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  color: #333;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.step-content p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.advantages h3 {
  color: #333;
  font-size: 2rem; /* 增大字体 */
  margin-bottom: 1rem; /* 为描述留空间 */
  text-align: center;
  font-weight: 800;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.advantage {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.advantage:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.advantage h4 {
  color: #333;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.advantage p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Features Highlight Section */
.features-highlight {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 20px;
  border: 2px solid #8ACE00;
  position: relative;
  overflow: hidden;
}

.features-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8ACE00, #6DA500, #8ACE00);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.features-highlight h4 {
  text-align: center;
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.highlight-item {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(138, 206, 0, 0.15);
  border: 1px solid rgba(138, 206, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8ACE00, #6DA500);
  border-radius: 15px 15px 0 0;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(138, 206, 0, 0.25);
  border-color: #8ACE00;
}

.highlight-item h5 {
  color: #333;
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}

.highlight-item p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .usage-section {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .usage-section h2 {
    font-size: 1.5rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step-number {
    align-self: center;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .advantage {
    padding: 1rem;
  }
  
  /* Features highlight mobile styles */
  .features-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .features-highlight h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .highlight-item {
    padding: 1.25rem;
  }
  
  .highlight-item h5 {
    font-size: 1rem;
  }
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  margin-top: 4rem;
  padding: 3rem 0 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section li a:hover {
  color: white;
  text-decoration: underline;
  transform: translateX(5px);
}

.footer-section li a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-contact {
  margin-top: 1rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-contact a {
  color: #06b6d4;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-bottom p {
  color: #d1d5db;
  margin: 0;
  font-size: 0.875rem;
}

/* Footer brand section */
.footer-brand {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 2rem;
  font-weight: 900;
  color: #8ACE00;
  text-transform: lowercase;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px rgba(138, 206, 0, 0.3);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.footer-tagline {
  color: #9ca3af;
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.footer-bottom a {
  color: #06b6d4;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
  transform: translateX(4px);
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-section li a:hover {
    transform: none;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .footer-title {
    font-size: 1.5rem;
  }
  
  .footer-tagline {
    font-size: 0.9rem;
  }
  
  .site-footer {
    padding: 2rem 0 1rem;
  }
}

/* SEO Content (hidden but crawlable) */
.seo-content {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 详细列表样式 */
.mode-list, .filter-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.mode-list li, .filter-list li {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  /* border-left: 4px solid #8b5cf6; */
  font-size: 0.9rem;
  line-height: 1.4;
}

.mode-list li strong, .filter-list li strong {
  color: #8b5cf6;
  font-weight: 600;
}

.step-content ul:not(.mode-list):not(.filter-list) {
  padding-left: 1.2rem;
}

.step-content ul:not(.mode-list):not(.filter-list) li {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 确保数值输入框样式正确 */
.size-number {
  width: 80px !important;
  min-width: 80px !important;
  padding: 0.5rem !important;
  font-size: 0.9rem !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 6px !important;
  text-align: center;
  background: white;
}

.size-number:focus {
  border-color: #8b5cf6 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}