/**
 * 场景选择模块 - Apple + Pentagram风格
 * 与首页设计风格完全统一
 */

.scene-module {
  width: 100% !important;
  min-height: 100vh !important;
  background: #f5f5f7 !important;
  padding: 0 !important;
  animation: none !important;
}

/* ==================== 返回导航 ==================== */
.scene-nav {
  padding: 32px 0 16px;
  background: white;
}

.scene-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.2s ease;
}

.scene-back-link:hover {
  color: #1d1d1f;
}

.scene-back-link svg {
  width: 18px;
  height: 18px;
}

/* ==================== 页面标题 ==================== */
.scene-header-section {
  background: white;
  padding: 0 0 56px;
  text-align: center;
}

.scene-header-content {
  max-width: 700px;
  margin: 0 auto;
}

.scene-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.scene-main-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.scene-sub-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.5;
}

/* ==================== 场景选择区域 - Apple风格卡片 ==================== */
.scene-selection {
  padding: 56px 0 80px;
  background: #f5f5f7;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

/* 场景卡片 - Apple风格 */
.scene-card {
  background: white;
  border-radius: 28px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.04);
}

.scene-card.selected {
  box-shadow: 
    0 0 0 2px #1d1d1f,
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.scene-card-image {
  position: relative;
  overflow: hidden;
  background: #f5f5f7;
}

.scene-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene-card:hover .scene-card-image img {
  transform: scale(1.02);
}

.scene-card-content {
  padding: 28px 32px 32px;
  position: relative;
}

.scene-card-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.scene-card-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6e6e73;
  line-height: 1.6;
  margin: 0;
  padding-right: 40px;
}

.scene-card-check {
  position: absolute;
  right: 32px;
  top: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d1d1d6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene-card:hover .scene-card-check {
  border-color: #1d1d1f;
}

.scene-card.selected .scene-card-check {
  border-color: #1d1d1f;
  background: #1d1d1f;
}

.scene-card-check svg {
  width: 16px;
  height: 16px;
  color: transparent;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scene-card.selected .scene-card-check svg {
  color: #ffffff;
}

/* ==================== 操作按钮 - Apple风格 ==================== */
.scene-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scene-btn {
  padding: 14px 28px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.scene-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
}

/* disabled 状态增加更明显的视觉反馈 */
.scene-btn-primary:disabled {
  background: #8a8a8a;
  border-color: #8a8a8a;
  color: rgba(255, 255, 255, 0.6);
}

.scene-btn-outline:disabled {
  border-color: #e0e0e0;
  color: #b0b0b0;
  background: transparent;
}

/* 边框按钮 - Apple风格 */
.scene-btn-outline {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid #d1d1d6;
}

.scene-btn-outline:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
  border-color: #c7c7cc;
}

.scene-btn-outline:active:not(:disabled) {
  transform: scale(0.98);
}

/* 主要按钮 - Apple风格纯黑 */
.scene-btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.scene-btn-primary:hover:not(:disabled) {
  background: #1d1d1f;
  border-color: #1d1d1f;
}

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

.scene-action-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1068px) {
  .scene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .scene-card-content {
    padding: 24px 28px 28px;
  }

  .scene-card-check {
    right: 28px;
    top: 24px;
  }

  .scene-card-image img {
    height: 180px;
  }
}

@media (max-width: 734px) {
  .scene-nav {
    padding: 24px 0 12px;
  }

  .scene-header-section {
    padding: 0 0 40px;
  }

  .scene-selection {
    padding: 40px 0 64px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scene-card-content {
    padding: 24px 24px 24px;
  }

  .scene-card-check {
    right: 24px;
    top: 24px;
  }

  .scene-card-image img {
    height: 200px;
  }

  .scene-action-group {
    flex-direction: column;
    width: 100%;
  }

  .scene-btn {
    width: 100%;
  }
}

/* ==================== 暗夜模式适配 ==================== */
[data-theme="dark"] .scene-module {
  background: #000000 !important;
}

[data-theme="dark"] .scene-nav {
  background: #1c1c1e;
}

[data-theme="dark"] .scene-back-link {
  color: #8e8e93;
}

[data-theme="dark"] .scene-back-link:hover {
  color: #f5f5f7;
}

[data-theme="dark"] .scene-header-section {
  background: #1c1c1e;
}

[data-theme="dark"] .scene-main-title {
  color: #f5f5f7;
}

[data-theme="dark"] .scene-sub-description {
  color: #8e8e93;
}

[data-theme="dark"] .scene-selection {
  background: #000000;
}

[data-theme="dark"] .scene-card {
  background: #1c1c1e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .scene-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .scene-card-title {
  color: #f5f5f7;
}

[data-theme="dark"] .scene-card-text {
  color: #8e8e93;
}

[data-theme="dark"] .scene-card-check {
  border-color: #3a3a3c;
}

[data-theme="dark"] .scene-card:hover .scene-card-check {
  border-color: #f5f5f7;
}

[data-theme="dark"] .scene-card.selected .scene-card-check {
  border-color: #f5f5f7;
  background: #f5f5f7;
}

[data-theme="dark"] .scene-card-check svg {
  color: transparent;
}

[data-theme="dark"] .scene-card.selected .scene-card-check svg {
  color: #000000;
}

[data-theme="dark"] .scene-btn-outline {
  color: #f5f5f7;
  border-color: #3a3a3c;
}

[data-theme="dark"] .scene-btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: #48484a;
}

[data-theme="dark"] .scene-btn-primary {
  background: #f5f5f7;
  color: #000000;
  border-color: #f5f5f7;
}

[data-theme="dark"] .scene-btn-primary:hover:not(:disabled) {
  background: #ffffff;
  border-color: #ffffff;
}
