/* =============================================================== */
/* General App Styles (from app.wxss)                              */
/* =============================================================== */
html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  background-color: #F5F7FA;
}

button {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  color: #000;
  background-color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
}

button::after {
  display: none;
}

/* =============================================================== */
/* Page Styles (from index.wxss) - rpx converted to px (2:1)       */
/* =============================================================== */

.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}

.content {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
}

.header {
  padding: 30px 15px 20px;
  text-align: center;
  color: white;
}

.app-icon {
  font-size: 60px;
  margin-bottom: 10px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.card {
  margin: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: slideInUp 0.5s ease-out;
}

.card-header {
  padding: 15px;
  border-bottom: 0.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A202C;
}

.card-hint, .face-count {
  font-size: 12px;
  color: #667EEA;
  background: #E6F2FF;
  padding: 2px 8px;
  border-radius: 10px;
}

.empty-state {
  padding: 30px 15px;
  cursor: pointer;
}

.upload-area {
  text-align: center;
  padding: 20px;
  border: 1.5px dashed #E0E0E0;
  border-radius: 8px;
  background: #FAFBFC;
  transition: all 0.3s ease;
}

.upload-area:active {
  transform: scale(0.98);
  background: #F5F7FA;
  border-color: #667EEA;
}

.upload-icon-wrapper { margin-bottom: 12px; }
.upload-icon {
  font-size: 60px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}
.upload-text {
  display: block;
  font-size: 16px;
  color: #2D3748;
  margin-bottom: 6px;
  font-weight: 500;
}
.upload-hint {
  display: block;
  font-size: 12px;
  color: #718096;
}

.video-container, .result-video-container { padding: 10px; }
.video-player, .result-video {
  width: 100%;
  height: 210px;
  border-radius: 6px;
  background: #000;
}
.supplement-video {
  width: 100%;
  height: 160px;
  background: #000;
}
.video-info {
  margin-top: 10px;
  text-align: center;
}
.change-btn {
  background: #F5F7FA !important;
  color: #4A5568 !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  border: none !important;
}
.btn-icon-text {
  margin-right: 4px;
  font-size: 14px;
}

.settings-card { padding-bottom: 15px; }
.setting-group {
  padding: 15px;
  border-bottom: 0.5px solid #E2E8F0;
}
.setting-group:last-child { border-bottom: none; }
.setting-title {
  font-size: 14px;
  color: #2D3748;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting-hint {
  font-size: 12px;
  color: #718096;
  font-weight: normal;
}
.level-badge {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* =============================================================== */
/* 新增：打码类型选择器样式 */
/* =============================================================== */
.blur-type-selector {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.blur-type-card {
  flex: 1;
  padding: 12px 8px;
  background: #F8F9FA;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.blur-type-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E0;
  transform: translateY(-1px);
}

.blur-type-card.active {
  border-color: #667EEA;
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.blur-type-card.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667EEA, #764BA2);
}

.blur-type-card:active {
  transform: scale(0.98);
}

.type-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
  transition: transform 0.3s ease;
}

.blur-type-card.active .type-icon {
  transform: scale(1.1);
}

.type-label {
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
  display: block;
}

.blur-type-card.active .type-label {
  color: #667EEA;
  font-weight: 600;
}

/* =============================================================== */
/* 新增：Emoji选择器样式 */
/* =============================================================== */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: #F8F9FA;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.emoji-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.emoji-item:hover {
  transform: scale(1.05);
  border-color: #CBD5E0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emoji-item.active {
  border-color: #667EEA;
  background: rgba(102, 126, 234, 0.08);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.emoji-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667EEA, #764BA2);
}

.emoji-item:active {
  transform: scale(0.95);
}

/* =============================================================== */
/* 新增：贴图上传区域样式 */
/* =============================================================== */
.sticker-upload-area {
  margin-top: 10px;
}

.sticker-preview-container {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sticker-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.remove-sticker-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #EF4444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.remove-sticker-btn:hover {
  background: #DC2626;
  transform: scale(1.1);
}

.upload-sticker-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
  border: 1.5px dashed #CBD5E0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: #4A5568;
  margin-bottom: 8px;
}

.upload-sticker-btn:hover {
  background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E0 100%);
  border-color: #9CA3AF;
  transform: translateY(-1px);
}

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

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

.upload-sticker-btn .btn-text {
  font-weight: 500;
}

.sticker-hint {
  font-size: 11px;
  color: #718096;
  text-align: center;
  line-height: 1.4;
  padding: 0 5px;
}

/* =============================================================== */
/* 新增：当前打码设置显示样式 */
/* =============================================================== */
.current-blur-settings {
  margin: 10px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  padding: 10px;
}

.settings-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-title {
  font-size: 13px;
  color: #0369A1;
  font-weight: 600;
}

.summary-content {
  font-size: 13px;
  color: #0284C7;
  background: white;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #BAE6FD;
  font-weight: 500;
}

/* =============================================================== */
/* 滑块和时间控制样式 */
/* =============================================================== */
.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.slider-label {
  font-size: 12px;
  color: #718096;
  min-width: 30px;
}
input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  outline: none;
  border-radius: 4px;
  transition: opacity .2s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #667EEA;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #667EEA;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.time-setting { margin-bottom: 10px; }
.time-label {
  font-size: 13px;
  color: #4A5568;
  display: block;
  margin-bottom: 6px;
}
.time-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.time-value {
  font-size: 13px;
  color: #667EEA;
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}
.clip-info {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #667EEA;
  text-align: center;
  background: #E6F2FF;
  padding: 6px 10px;
  border-radius: 10px;
}

/* =============================================================== */
/* 模式选择样式 */
/* =============================================================== */
.mode-selection-section {
  margin: 10px;
  background: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.mode-title { margin-bottom: 8px; }
.mode-title-text {
  font-size: 16px;
  font-weight: 600;
  color: #1A202C;
}
.mode-cards {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.mode-card {
  flex: 1;
  padding: 8px 4px;
  background: #F8F9FA;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.mode-card.active {
  border-color: #667EEA;
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.15);
}
.mode-card:active { transform: scale(0.98); }
.mode-card-icon {
  font-size: 16px;
  margin-bottom: 3px;
  display: block;
}
.mode-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 2px;
  display: block;
}
.mode-card-desc {
  font-size: 9px;
  color: #718096;
  display: block;
  line-height: 1.2;
}
.current-mode-tip {
  background: #F0F9FF;
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 2px solid #667EEA;
  font-size: 11px;
  color: #1E40AF;
  line-height: 1.4;
}

/* =============================================================== */
/* 补充检测区域样式 */
/* =============================================================== */
.supplement-detection-section {
  margin: 10px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.section-header {
  background: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
  padding: 8px 10px;
  border-bottom: 0.5px solid #E2E8F0;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 2px;
  display: block;
}
.section-subtitle {
  font-size: 11px;
  color: #718096;
  display: block;
}
.supplement-video-container { background: #000; }
.detection-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: white;
}
.current-time-display {
  display: flex;
  align-items: center;
  gap: 4px;
}
.detect-current-btn {
  padding: 6px 10px;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: white;
  border-radius: 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  border: none;
  box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}
.detect-current-btn.detecting, .detect-current-btn:disabled {
  background: #CBD5E0;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-icon { font-size: 10px; }
.btn-text { font-size: 12px; }

/* =============================================================== */
/* 人脸选择网格样式 */
/* =============================================================== */
.face-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}
.selection-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A202C;
}
.selection-counter {
  display: flex;
  align-items: center;
  gap: 4px;
}
.counter-text {
  font-size: 11px;
  color: #667EEA;
  background: #E6F2FF;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 500;
}
.select-all-btn {
  background: #F8F9FA !important;
  color: #4A5568 !important;
  font-size: 11px !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  border: 0.5px solid #E2E8F0 !important;
  min-height: auto !important;
  line-height: 1.2 !important;
}

.faces-scroll-view {
  max-height: 240px;
  padding: 8px;
  background: #F8F9FA;
  border-radius: 6px;
  margin: 0 10px;
  overflow-y: auto;
}
.faces-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  justify-content: flex-start;
}
.face-item-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.face-item-mini:active { transform: scale(0.95); }
.face-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
}
.selection-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E2E8F0;
  border: 1px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.selection-dot.selected {
  background: #4CAF50;
  transform: scale(1.1);
}
.dot-icon {
  font-size: 8px;
  color: white;
  font-weight: bold;
}
.new-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #FFA500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
  z-index: 5;
  color: white;
  font-size: 8px;
  font-weight: bold;
}
.face-label-mini {
  font-size: 10px;
  color: #4A5568;
  text-align: center;
  font-weight: 500;
}
.face-item-mini.selected .avatar-image {
  border-color: #4CAF50;
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.2);
}
.face-item-mini.selected .face-label-mini {
  color: #4CAF50;
  font-weight: 600;
}
.face-item-mini.supplementary .avatar-image {
  border-color: #FFA500;
}
.face-item-mini.supplementary.selected .avatar-image {
  border-color: #4CAF50;
}

/* =============================================================== */
/* 按钮和操作区域样式 */
/* =============================================================== */
.action-area { padding: 0 15px 15px; }
.process-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 24px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}
.process-btn:active:not([disabled]) { transform: scale(0.98); }
.process-btn.processing, .process-btn:disabled {
  background: #CBD5E0;
  box-shadow: none;
  cursor: not-allowed;
}

.face-selection-actions {
  display: flex;
  gap: 8px;
  margin: 15px 10px 0;
}
.action-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  border: none;
}
.cancel-btn {
  background: #F5F7FA;
  color: #4A5568;
  border: 1px solid #E2E8F0;
}
.confirm-btn {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.confirm-btn.disabled {
  background: #CBD5E0;
  color: #A0AEC0;
  box-shadow: none;
  cursor: not-allowed;
}
.confirm-btn.enabled:active { transform: scale(0.98); }
.cancel-btn:active { background: #E2E8F0; }

/* =============================================================== */
/* 进度显示样式 */
/* =============================================================== */
.progress-container { margin: 15px 10px; }
.progress-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
}
.progress-header {
  text-align: center;
  margin-bottom: 15px;
}
.progress-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A202C;
  margin-bottom: 4px;
}
.progress-subtitle {
  font-size: 12px;
  color: #718096;
}
.progress-display { margin-bottom: 12px; }
.progress-bar-container {
  position: relative;
  margin-bottom: 10px;
}
.progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}
.progress-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shine 2s infinite;
}
.progress-percentage {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 12px;
  color: #667EEA;
  font-weight: bold;
}
.progress-details { text-align: center; }
.processing-info {
  font-size: 13px;
  color: #718096;
  margin-bottom: 4px;
  display: block;
}
.eta-info {
  font-size: 12px;
  color: #667EEA;
  font-weight: 500;
  display: block;
}

.processing-status {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

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

.status-label {
  font-size: 12px;
  color: #718096;
}

.status-value {
  font-size: 12px;
  color: #1A202C;
  font-weight: 500;
}

/* =============================================================== */
/* 结果展示样式 */
/* =============================================================== */
.result-container { margin: 15px 10px; }
.result-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.result-header {
  padding: 15px;
  border-bottom: 0.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A202C;
}
.success-indicator {
  width: 24px;
  height: 24px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}
.success-icon {
  font-size: 12px;
  color: white;
}
.result-summary {
  padding: 10px;
  background: #F0F9FF;
  margin: 10px;
  border-radius: 6px;
  text-align: center;
}
.summary-text {
  font-size: 13px;
  color: #0369A1;
  font-weight: 500;
}
.result-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
}
.result-btn {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
  border: none;
}
.save-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #45A049 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.save-btn.downloading, .save-btn:disabled {
  background: #CBD5E0;
  color: #A0AEC0;
  box-shadow: none;
  cursor: not-allowed;
}
.retry-btn {
  background: #F5F7FA;
  color: #4A5568;
  border: 1px solid #E2E8F0;
}
.save-btn:active:not(.downloading) { transform: scale(0.98); }
.retry-btn:active { background: #E2E8F0; }

/* =============================================================== */
/* 功能介绍区域样式 */
/* =============================================================== */
.features-section {
  padding: 20px 10px;
  margin-top: 10px;
}
.features-title {
  text-align: center;
  margin-bottom: 15px;
}
.title-text {
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 5px;
}
.feature-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 12px 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 80px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.feature-icon {
  font-size: 24px;
  margin-bottom: 6px;
}
.feature-title {
  font-size: 13px;
  color: #1A202C;
  font-weight: 600;
  margin-bottom: 3px;
}
.feature-description {
  font-size: 10px;
  color: #718096;
  line-height: 1.3;
}

/* =============================================================== */
/* 页脚信息样式 */
/* =============================================================== */
.footer-info {
  padding: 20px 15px 25px;
  text-align: center;
}
.tips-section {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 15px 20px;
  margin: 0 auto 15px;
  max-width: 300px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.tips-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  display: block;
}
.tip-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 6px;
  display: block;
  line-height: 1.6;
}
.tip-item:last-child { margin-bottom: 0; }
.disclaimer {
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}
.disclaimer-text {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  display: block;
}

/* =============================================================== */
/* 动画效果 */
/* =============================================================== */
@keyframes slideInUp {
  from { transform: translateY(25px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes progress-shine {
  0% { transform: translateX(-100%) skewX(-30deg); }
  100% { transform: translateX(200%) skewX(-30deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =============================================================== */
/* 加载和提示组件样式 */
/* =============================================================== */
.hidden {
  display: none !important;
}

/* Loader样式 */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}
.loader-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
}
.loader-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667EEA;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}
.loader-text {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* Toast样式 */
.toast {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-icon {
  font-size: 16px;
}

/* 确认对话框样式 */
.dialog-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;
  z-index: 1002;
  backdrop-filter: blur(5px);
}
.dialog-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}
.dialog-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #E2E8F0;
}
.dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A202C;
  text-align: center;
}
.dialog-body {
  padding: 15px 20px;
}
.dialog-message {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}
.dialog-actions {
  display: flex;
  gap: 1px;
  background: #E2E8F0;
}
.dialog-btn {
  flex: 1;
  padding: 15px;
  background: white;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dialog-btn.cancel {
  color: #6B7280;
}
.dialog-btn.confirm {
  color: #667EEA;
  font-weight: 600;
}
.dialog-btn:hover {
  background: #F9FAFB;
}
.dialog-btn:active {
  background: #F3F4F6;
}

/* =============================================================== */
/* 响应式优化 */
/* =============================================================== */
@media (max-width: 480px) {
  .blur-type-selector {
    gap: 6px;
  }

  .blur-type-card {
    padding: 10px 6px;
  }

  .type-icon {
    font-size: 20px;
  }

  .type-label {
    font-size: 12px;
  }

  .emoji-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .emoji-item {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mode-cards {
    flex-direction: column;
    gap: 6px;
  }

  .mode-card {
    padding: 12px;
  }
}

/* =============================================================== */
/* 滚动条美化 */
/* =============================================================== */
.faces-scroll-view::-webkit-scrollbar {
  width: 4px;
}
.faces-scroll-view::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 2px;
}
.faces-scroll-view::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 2px;
}
.faces-scroll-view::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* =============================================================== */
/* 高亮和焦点样式 */
/* =============================================================== */
.blur-type-card:focus,
.emoji-item:focus,
.mode-card:focus {
  outline: 2px solid #667EEA;
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid #667EEA;
  outline-offset: 2px;
}

/* =============================================================== */
/* 补充样式调整 */
/* =============================================================== */
.processing-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-clipping-group {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 10px;
  margin-top: 5px;
}

.sticker-upload-area .sticker-hint {
  margin-top: 4px;
}

/* 确保emoji显示正确 */
.emoji-item {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", EmojiSymbols, sans-serif;
}

/* 贴图预览容器悬停效果 */
.sticker-preview-container:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
