/* 首页布局 - 泸州老窖主题 */
.entry-list { 
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr; 
  grid-gap: 12px; 
  margin-top: 16px;
  width: 100%;
  justify-items: center;
  padding: 0 4px;
}

.entry { 
  overflow: hidden; 
  min-height: 200px; /* 增加高度以适应9:16比例 */
  width: 100%;
  max-width: 100px; /* 调整宽度以适应9:16比例 */
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  box-shadow: 0 1px 6px rgba(220, 38, 38, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin-bottom: 0 !important;
  display: block !important;
  visibility: visible !important;
  border: 1px solid rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.entry:active {
  transform: scale(0.98) translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2), inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(220, 38, 38, 0.4);
}

.entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.2), inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
}

.entry-image { 
  width: 100%; 
  height: 140px; /* 设置固定高度以显示GIF */
  display: block; 
  object-fit: cover;
  background: linear-gradient(135deg, #fef7f7 0%, #f0f9ff 100%);
  border-radius: 1px 1px 0 0;
  position: relative;
}

.entry-title { 
  padding: 10px 8px; 
  font-size: 14px; 
  text-align: center; 
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  background: linear-gradient(135deg, #dc2626 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.25px;
}

/* 手机端响应式优化 */
@media screen and (max-width: 375px) {
  .entry-list {
    grid-template-columns: 1fr;
    grid-gap: 10px;
    justify-items: center;
    padding: 0 2px;
  }
  
  .entry {
    min-height: 150px; /* 保持9:16比例的高度 */
    display: flex;
    align-items: center;
    max-width: 100%;
    width: 100%;
    max-width: 100%;
  }
  
  .entry-image {
    width: 60px;
    height: 80px; /* 设置固定高度以显示GIF */
    border-radius: 6px;
    margin: 10px;
    flex-shrink: 0;
  }
  
  .entry-title {
    flex: 1;
    text-align: left;
    padding: 10px;
    font-size: 15px;
  }
}

/* 超小屏幕优化 */
@media screen and (max-width: 300px) {
  .entry-list {
    grid-gap: 8px;
    padding: 0 1px;
  }
  
  .entry {
    min-height: 125px; /* 保持9:16比例的高度 */
  }
  
  .entry-image {
    width: 50px;
    height: 70px; /* 设置固定高度以显示GIF */
    margin: 8px;
  }
  
  .entry-title {
    padding: 8px;
    font-size: 14px;
  }
}

/* AI换脸页面 - 泸州老窖主题 */
.upload-box { 
  height: 200px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1.5px; 
  border: 1px dashed rgba(220, 38, 38, 0.4);
  margin: 12px 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.upload-box:active {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.6);
  transform: scale(0.98);
}

.placeholder { 
  color: #6b7280; 
  font-size: 14px; 
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.8;
  color: #dc2626;
}

.upload-text {
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
  letter-spacing: 0.25px;
}

.preview { 
  width: 100%; 
  height: 200px; 
  border-radius: 1.5px;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.action-row { 
  display: flex; 
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.action-row .btn {
  min-width: 120px;
  max-width: 160px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
}

/* 模板3x3网格样式 */
.template-grid-container {
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  padding: 10px;
  box-shadow: 0 1px 6px rgba(220, 38, 38, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(5px);
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
}

.template-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.25px;
}

.template-count {
  font-size: 11px;
  color: #6b7280;
  background: rgba(220, 38, 38, 0.1);
  padding: 3px 6px;
  border-radius: 1.5px;
  font-weight: 600;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.template-scroll {
  height: 348px;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0.5px 2px rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.1);
  overflow-y: auto;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  min-height: 100%;
}

.template-item {
  aspect-ratio: 1;
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.5px 2px rgba(220, 38, 38, 0.1);
}

.template-item.active {
  border-color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
  transform: scale(1.02);
}

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

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-item.active .template-overlay {
  opacity: 1;
}

.template-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.4);
}

.template-number {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  backdrop-filter: blur(2px);
}

.scroll-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  padding: 4px;
}

.hint-text {
  font-size: 11px;
  color: #6b7280;
  background: rgba(220, 38, 38, 0.1);
  padding: 3px 6px;
  border-radius: 1.5px;
  font-weight: 500;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* 风格3x3网格样式 */
.style-grid-container {
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  padding: 10px;
  box-shadow: 0 1px 6px rgba(59, 130, 246, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(5px);
}

.style-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 2px;
}

.style-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.25px;
}

.style-count {
  font-size: 11px;
  color: #6b7280;
  background: rgba(59, 130, 246, 0.1);
  padding: 3px 6px;
  border-radius: 1.5px;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.style-scroll {
  height: 500px;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0.5px 2px rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.1);
  overflow-y: auto;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  min-height: 100%;
}

.style-item {
  aspect-ratio: 1;
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.5px 2px rgba(59, 130, 246, 0.1);
}

.style-item.active {
  border-color: #3b82f6 !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2) !important;
  transform: scale(1.02) !important;
}

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

.style-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.style-item.active .style-overlay {
  opacity: 1 !important;
}

.style-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.4);
}

.style-number {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  backdrop-filter: blur(2px);
}

/* 预览按钮区域 */
.preview-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  max-width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 1px;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.preview-btn:disabled {
  background: rgba(156, 163, 175, 0.8);
  border-color: rgba(156, 163, 175, 0.3);
  box-shadow: 0 0.5px 2px rgba(156, 163, 175, 0.2);
  opacity: 0.6;
  cursor: not-allowed;
}

.preview-btn:active:not(:disabled) {
  transform: scale(0.98) translateY(0.5px);
  box-shadow: 0 0.5px 2px rgba(220, 38, 38, 0.4);
}

.btn-icon {
  font-size: 16px;
}

.btn-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.25px;
}

/* 背景融合页面 - 泸州老窖主题 */
.upload-box { 
  height: 200px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1.5px; 
  border: 1px dashed rgba(16, 185, 129, 0.4);
  margin: 12px 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.upload-box:active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.6);
  transform: scale(0.98);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.8;
  color: #10b981;
}

.upload-text {
  font-size: 13px;
  color: #10b981;
  font-weight: 600;
  letter-spacing: 0.25px;
}

.preview { 
  width: 100%; 
  /*height: 200px; */
  border-radius: 1.5px;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.1);
  /*border: 1px solid rgba(16, 185, 129, 0.2);*/
}

.action-row .btn {
  min-width: 120px;
  max-width: 160px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 140px;
  max-width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.preview-btn:active {
  transform: scale(0.98) translateY(0.5px);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
}

/* 风景选择容器 */
.bg-selection-container {
  background: rgba(30, 41, 59, 0.4);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
}

.bg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bg-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.25px;
}

.bg-count {
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(16, 185, 129, 0.2);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 水平滑动风景选择 */
.bg-horizontal-scroll {
  height: 90px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.bg-horizontal-list {
  display: flex;
  gap: 8px;
  padding: 3px 0;
}

.bg-horizontal-item {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.bg-horizontal-item.active {
  border-color: #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
  transform: scale(1.02) !important;
}

.bg-horizontal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-horizontal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-horizontal-item.active .bg-horizontal-overlay {
  opacity: 1 !important;
}

.bg-horizontal-check {
  width: 18px;
  height: 18px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.4);
}

.bg-horizontal-number {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.scroll-hint {
  text-align: center;
  margin-top: 6px;
}

.hint-text {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  background: rgba(148, 163, 184, 0.1);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: inline-block;
}

/* 融合容器 */
.blend-container {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blend-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blend-foreground {
  position: absolute;
  z-index: 2;
  cursor: move;
  transition: all 0.1s ease;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* 画布提示 */
.canvas-hint {
  text-align: center;
  margin: 6px 0;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  display: inline-block;
  margin-left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(5px);
}

/* 祝福语页面 - 泸州老窖主题 */
.input-wrap { 
  padding: 10px; 
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  margin: 8px 0;
  border: 1px solid rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(5px);
}

.text-input { 
  background: rgba(255, 255, 255, 0.9); 
  border-radius: 1px; 
  padding: 10px; 
  font-size: 14px; 
  border: 1px solid rgba(220, 38, 38, 0.3);
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1f2937;
  letter-spacing: 0.25px;
  outline: none;
}

.text-input:focus {
  border-color: #dc2626;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.count { 
  text-align: right; 
  color: #6b7280; 
  font-size: 11px; 
  margin-top: 5px;
  font-weight: 500;
}

/* 字体颜色选择 */
.color-selection {
  margin: 12px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(5px);
}

.color-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  letter-spacing: 0.25px;
}

.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-item {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.color-item.active {
  border-color: #dc2626 !important;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.4) !important;
  transform: scale(1.05) !important;
}

.color-check {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 9px;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* 文字预览 */
.text-preview {
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(5px);
}

.preview-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 5px;
  font-weight: 500;
}

.preview-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.25px;
}

/* 操作按钮区域 */
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  /*padding: 0 0 15px 27%;*/
  width: 100%;
  box-sizing: border-box;
}

/* 预览盒子 - 泸州老窖主题 */
.box { 
  position: relative; 
  height: 200px; 
  overflow: hidden; 
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  margin: 8px 0;
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 1px 6px rgba(220, 38, 38, 0.1);
}

.pack { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

.overlay-text { 
  position: absolute; 
  bottom: 40px; 
  left: 50%; 
  transform: translateX(-50%); 
  color: #1f2937; 
  font-size: 18px; 
  font-weight: 700; 
  text-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.3);
  text-align: center;
  line-height: 1.2;
  max-width: 80%;
  word-wrap: break-word;
  letter-spacing: 0.25px;
}

/* 手机端优化 */
@media screen and (max-width: 375px) {
  .upload-box {
    height: 160px;
  }
  
  .preview {
    height: 160px;
  }
  
  .action-row {
    padding: 10px 0;
  }
  
  .action-row .btn {
    min-width: 100px;
    max-width: 140px;
    height: 40px;
    font-size: 14px;
  }
  
  .template-grid-container {
    margin: 10px 0;
    padding: 8px;
  }
  
  .template-header {
    margin-bottom: 6px;
  }
  
  .template-title {
    font-size: 13px;
  }
  
  .template-count {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .template-scroll {
    height: 200px;
  }
  
  .template-grid {
    gap: 5px;
    padding: 6px;
  }
  
  .template-check {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .template-number {
    width: 12px;
    height: 12px;
    font-size: 8px;
    top: 2px;
    left: 2px;
  }
  
  .hint-text {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .style-grid-container {
    margin: 10px 0;
    padding: 8px;
  }
  
  .style-header {
    margin-bottom: 6px;
  }
  
  .style-title {
    font-size: 13px;
  }
  
  .style-count {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .style-scroll {
    height: 200px;
  }
  
  .style-grid {
    gap: 5px;
    padding: 6px;
  }
  
  .style-check {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .style-number {
    width: 12px;
    height: 12px;
    font-size: 8px;
    top: 2px;
    left: 2px;
  }
  
  .preview-section {
    margin: 10px 0;
    padding: 0 2px;
  }
  
  .preview-btn {
    min-width: 120px;
    max-width: 100%;
    height: 40px;
    font-size: 13px;
    margin: 0 auto;
  }
  
  .btn-icon {
    font-size: 14px;
  }
  
  .btn-text {
    font-size: 13px;
  }
  
  .bg-selection-container {
    padding: 8px;
    margin: 10px 0;
  }
  
  .bg-header {
    margin-bottom: 6px;
  }
  
  .bg-title {
    font-size: 13px;
  }
  
  .bg-count {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .bg-horizontal-scroll {
    height: 80px;
  }
  
  .bg-horizontal-list {
    gap: 6px;
  }
  
  .bg-horizontal-item {
    width: 60px;
    height: 60px;
    border-radius: 5px;
  }
  
  .bg-horizontal-check {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }
  
  .bg-horizontal-number {
    font-size: 7px;
    padding: 1px 2px;
  }
  
  .hint-text {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .canvas-hint {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .blend-container {
    height: 200px;
  }
  
  .input-wrap {
    padding: 8px;
  }
  
  .text-input {
    padding: 8px;
    font-size: 13px;
    height: 44px;
  }
  
  .color-selection {
    margin: 10px 0;
    padding: 8px;
  }
  
  .color-title {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .color-list {
    gap: 5px;
  }
  
  .color-item {
    width: 22px;
    height: 22px;
  }
  
  .color-check {
    width: 12px;
    height: 12px;
    font-size: 8px;
  }
  
  .text-preview {
    margin: 8px 0;
    padding: 6px;
  }
  
  .preview-label {
    font-size: 10px;
    margin-bottom: 4px;
  }
  
  .preview-text {
    font-size: 13px;
  }
  
  .action-row {
    gap: 8px;
    margin-top: 10px;
    padding: 0 1px;
  }
  
  .box {
    height: 160px;
  }
  
  .overlay-text {
    font-size: 16px;
    bottom: 30px;
  }
}

