/* ========================================
   CoreFeatures - 米开写作核心特性
   设计理念：创作流程的连续性，而非孤立功能列表
   优化：智能箭头导航 + 深度交互设计
   ======================================== */

.core-features-section {
  padding: 120px 0 160px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fafaf9 50%, #f5f5f4 100%);
  position: relative;
  overflow: hidden;
}

/* 背景纹理 - 纸张质感 + 光影层次 */
.core-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cg fill=%27%23000000%27 fill-opacity=%270.01%27%3E%3Cpath d=%27M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.core-features-section .section-title-creative {
  text-align: center;
  margin-bottom: 120px;
  position: relative;
  z-index: 1;
}

.core-features-section .section-title-creative h2 {
  font-size: 56px;
  font-weight: 800;
  color: #1a1f36;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #1a1f36 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.core-features-section .section-title-creative p {
  font-size: 20px;
  color: #78716c;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* 特性容器 */
.features-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

/* 单个特性模块 */
.feature-module {
  margin-bottom: 160px;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-module:nth-child(1) { animation-delay: 0.1s; }
.feature-module:nth-child(2) { animation-delay: 0.2s; }
.feature-module:nth-child(3) { animation-delay: 0.3s; }
.feature-module:nth-child(4) { animation-delay: 0.4s; }
.feature-module:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 连接线 - 体现流程感 */
.feature-module::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -80px;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(245, 158, 11, 0.3) 0%, transparent 100%);
  transform: translateX(-50%);
}

.feature-module:last-child::after {
  display: none;
}

/* 特性内容区 */
.feature-content {
  padding: 20px 0;
}

/* 视觉标签 - 替代编号 */
.feature-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.03) 100%);
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
  transition: all 0.3s ease;
}

.feature-visual-tag:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.feature-visual-tag .tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 特性标题 */
.feature-title {
  font-size: 40px !important;
  font-weight: 800 !important;
  color: #1a1f36 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

/* 特性副标题 */
.feature-subtitle {
  font-size: 18px !important;
  color: #f59e0b !important;
  font-weight: 600 !important;
  margin-bottom: 24px !important;
  letter-spacing: 0.01em !important;
}

/* 特性描述 */
.feature-description {
  font-size: 17px !important;
  color: #57534e !important;
  line-height: 1.8 !important;
  margin-bottom: 0 !important;
  max-width: 520px !important;
}

/* 截图展示区 - 应用窗口风格 */
.feature-window {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-window:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 32px 72px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* 窗口标题栏 */
.feature-window-header {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.feature-window-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.feature-window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.3s ease;
  position: relative;
}

.feature-window-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

.feature-window:hover .feature-window-dot:nth-child(1) {
  background: #ef4444;
}

.feature-window:hover .feature-window-dot:nth-child(2) {
  background: #f59e0b;
}

.feature-window:hover .feature-window-dot:nth-child(3) {
  background: #10b981;
}

.feature-window-title {
  margin-left: 16px;
  font-size: 12px;
  color: #6b7280;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* 截图轮播容器 */
.feature-window-content {
  position: relative;
  background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
  min-height: 480px;
}

/* 轮播箭头按钮 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.04);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #78716c;
  font-size: 18px;
  backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  background: #f59e0b;
  border-color: #f59e0b;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 4px 16px rgba(245, 158, 11, 0.3),
    0 12px 24px rgba(245, 158, 11, 0.2);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left {
  left: 24px;
}

.carousel-arrow-right {
  right: 24px;
}

/* 轮播内容 */
.feature-carousel {
  position: relative;
}

.screenshot-item {
  padding: 20px 16px;
  text-align: center;
  min-height: 480px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 截图图片 */
.screenshot-image {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.screenshot-image:hover {
  transform: scale(1.02);
}

/* 截图占位符 */
.screenshot-placeholder {
  width: 100%;
  max-width: 640px;
  min-height: 360px;
  background: linear-gradient(135deg, #ffffff 0%, #fafaf9 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 40px;
  border: 2px dashed #d1d5db;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.screenshot-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.02) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-window:hover .screenshot-placeholder {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.feature-window:hover .screenshot-placeholder::before {
  opacity: 1;
}

.screenshot-placeholder .placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
}

.feature-window:hover .screenshot-placeholder .placeholder-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.3);
}

.screenshot-placeholder .placeholder-text {
  font-size: 18px;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* 截图说明文字 */
.screenshot-caption {
  margin-top: 24px;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
  max-width: 600px;
}

/* 轮播指示器 - Ant Design Carousel */
.feature-carousel .ant-carousel .slick-dots,
.feature-carousel .slick-dots {
  position: relative;
  margin-top: 28px;
  display: flex !important;
  justify-content: center;
  gap: 12px;
}

.feature-carousel .ant-carousel .slick-dots li,
.feature-carousel .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.feature-carousel .ant-carousel .slick-dots li button,
.feature-carousel .slick-dots li button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  padding: 0;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-carousel .ant-carousel .slick-dots li button:hover,
.feature-carousel .slick-dots li button:hover {
  background: #f59e0b;
  transform: scale(1.2);
}

.feature-carousel .ant-carousel .slick-dots li.slick-active button,
.feature-carousel .slick-dots li.slick-active button {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .core-features-section {
    padding: 100px 0 140px;
  }

  .features-container {
    padding: 0 40px;
  }

  .feature-title {
    font-size: 36px !important;
  }
}

@media (max-width: 992px) {
  .feature-module {
    margin-bottom: 120px;
  }

  .feature-window-content {
    min-height: 420px;
  }

  .screenshot-item {
    min-height: 420px;
    padding: 32px 24px;
  }

  .feature-title {
    font-size: 32px !important;
  }

  .feature-subtitle {
    font-size: 17px !important;
  }

  .feature-description {
    font-size: 16px !important;
  }

  .screenshot-placeholder {
    min-height: 300px;
    padding: 40px 32px;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .carousel-arrow-left {
    left: 16px;
  }

  .carousel-arrow-right {
    right: 16px;
  }
}

@media (max-width: 768px) {
  .core-features-section {
    padding: 80px 0 120px;
  }

  .core-features-section .section-title-creative {
    margin-bottom: 80px;
  }

  .core-features-section .section-title-creative h2 {
    font-size: 40px;
  }

  .core-features-section .section-title-creative p {
    font-size: 17px;
  }

  .features-container {
    padding: 0 20px;
  }

  .feature-module {
    margin-bottom: 100px;
  }

  .feature-title {
    font-size: 28px !important;
  }

  .feature-window-content {
    min-height: 360px;
  }

  .screenshot-item {
    min-height: 360px;
    padding: 24px 16px;
  }

  .screenshot-placeholder {
    min-height: 260px;
    padding: 32px 24px;
  }

  .screenshot-placeholder .placeholder-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .screenshot-placeholder .placeholder-text {
    font-size: 16px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-arrow-left {
    left: 12px;
  }

  .carousel-arrow-right {
    right: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-module {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .feature-window:hover {
    transform: none;
  }

  .feature-visual-tag .tag-dot {
    animation: none;
  }

  .carousel-arrow:hover {
    transform: translateY(-50%);
  }

  .screenshot-image:hover {
    transform: none;
  }

  .feature-window:hover .screenshot-placeholder .placeholder-icon {
    transform: none;
  }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
  .core-features-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #1a1f36 100%);
  }

  .core-features-section .section-title-creative h2 {
    color: #f1f5f9;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .core-features-section .section-title-creative p {
    color: #94a3b8;
  }

  .feature-title {
    color: #f1f5f9 !important;
  }

  .feature-description {
    color: #cbd5e1 !important;
  }

  .feature-window {
    background: #1e293b;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.3),
      0 8px 24px rgba(0, 0, 0, 0.4),
      0 24px 48px rgba(0, 0, 0, 0.5),
      inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .feature-window-header {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .feature-window-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  }

  .screenshot-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #475569;
  }

  .screenshot-placeholder .placeholder-text {
    color: #94a3b8;
  }

  .carousel-arrow {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
  }
}

