/* 弹窗样式 - 泸州老窖主题 */
.notice-modal { 
  position: fixed; 
  inset: 0; 
  background: rgba(0, 0, 0, 0.6); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 999;
  padding: 16px 8px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

.modal { 
  width: 100%; 
  max-width: 300px;
  max-height: 80vh; 
  padding: 16px 12px; 
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(5px);
}

.title { 
  font-size: 16px; 
  font-weight: 600; 
  margin-bottom: 12px;
  color: #1f2937;
  text-align: center;
  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;
}

.content { 
  max-height: 50vh; 
  padding: 8px 0; 
  line-height: 1.6;
  color: #6b7280;
  position: relative;
  overflow-y: auto;
}

.content-text {
  padding: 0 2px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.actions { 
  display: flex; 
  gap: 8px; 
  margin-top: 12px; 
}

.actions .btn { 
  flex: 1; 
  height: 40px;
  font-size: 14px;
  font-weight: 600;
}

.actions .btn.disabled {
  background: rgba(156, 163, 175, 0.8) !important;
  color: #9ca3af !important;
  border-color: rgba(156, 163, 175, 0.3) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.actions .btn.disabled:active {
  transform: none !important;
  box-shadow: none !important;
}

/* 步骤条样式 - 泸州老窖主题 */
.stepper { 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 12px 10px; 
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.5px;
  margin: 12px 0;
  position: relative;
  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);
}

.stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25px;
  right: 25px;
  height: 1px;
  background: rgba(220, 38, 38, 0.3);
  z-index: 1;
}

.step { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  position: relative;
  z-index: 2;
  flex: 1;
}

.dot { 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  background: rgba(255, 255, 255, 0.9); 
  color: #6b7280; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 0.5px 2px rgba(220, 38, 38, 0.1);
}

.dot.active { 
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); 
  color: #fff; 
  transform: scale(1.05);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.4);
  border-color: rgba(220, 38, 38, 0.3);
}

.label { 
  margin-top: 5px; 
  font-size: 11px; 
  color: #6b7280; 
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.25px;
}

.step.active .label {
  color: #dc2626;
  font-weight: 600;
}

/* 网格图片选择器 - 手机端优化 */
.image-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr; 
  grid-gap: 10px; 
  margin: 10px 0;
}

.cell { 
  border-radius: 8px; 
  overflow: hidden; 
  border: 1.5px solid transparent; 
  transition: all 0.3s ease;
  position: relative;
  background: #f8fafc;
  cursor: pointer;
}

.cell:active {
  transform: scale(0.98);
}

.cell.active { 
  border-color: #2563eb; 
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transform: scale(1.02);
}

.cell.active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.cell img { 
  width: 100%; 
  height: 100px; 
  display: block; 
  object-fit: cover;
  transition: all 0.3s ease;
}

.cell.active img {
  filter: brightness(1.1);
}

/* 底部操作栏 - 泸州老窖主题 */
.action-bar { 
  position: sticky; 
  bottom: 0; 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 8px; 
  background: rgba(255, 255, 255, 0.95); 
  padding: 10px 8px;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 -1px 6px rgba(220, 38, 38, 0.1);
  z-index: 100;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* 单按钮样式 */
.action-bar.single-btn {
  grid-template-columns: 1fr;
}

/* 三按钮样式 */
.action-bar.three-btn {
  grid-template-columns: repeat(3, 1fr);
}

/* 两按钮样式 - 上一步和提交按钮均匀排列 */
.action-bar.two-btn {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  justify-items: stretch;
  align-items: center;
  padding: 8px 6px;
}

/* 手机端优化 */
@media screen and (max-width: 375px) {
  .modal {
    padding: 16px 12px;
    margin: 0 10px;
  }
  
  .title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .content {
    font-size: 13px;
  }
  
  .actions {
    gap: 8px;
    margin-top: 12px;
  }
  
  .actions .btn {
    height: 40px;
    font-size: 14px;
  }
  
  .stepper {
    padding: 8px 6px;
  }
  
  .dot {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  .label {
    font-size: 10px;
    margin-top: 3px;
  }
  
  .image-grid {
    grid-template-columns: 1fr 1fr;
    grid-gap: 8px;
  }
  
  .cell img {
    height: 90px;
  }
  
  .cell.active::after {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
  
  .action-bar {
    padding: 6px 4px;
    gap: 5px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .action-bar .btn {
    height: 36px;
    font-size: 12px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 4px;
  }
  
  .action-bar.two-btn {
    gap: 5px;
    padding: 6px 3px;
  }
}

/* 超小屏幕优化 */
@media screen and (max-width: 300px) {
  .action-bar {
    padding: 5px 3px;
    gap: 4px;
  }
  
  .action-bar .btn {
    height: 34px;
    font-size: 11px;
    padding: 0 3px;
  }
  
  .action-bar.two-btn {
    gap: 4px;
    padding: 5px 2px;
  }
}

/* 极小屏幕优化 */
@media screen and (max-width: 240px) {
  .action-bar {
    padding: 4px 2px;
    gap: 3px;
  }
  
  .action-bar .btn {
    height: 32px;
    font-size: 10px;
    padding: 0 2px;
  }
  
  .action-bar.two-btn {
    gap: 3px;
    padding: 4px 1px;
  }
}

