/* Features 2025 - Interactive Showcase Style */

.features-2025 {
  padding: 120px 0;
  position: relative;
  /* 确保在深色背景上清晰可见 */
  z-index: 10;
}

.features-2025 .section-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-2025 .section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.features-2025 .section-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* 核心布局 */
.features-showcase {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

/* 左侧导航 */
.features-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 120px;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.feature-tab.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.02));
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.feature-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #6366f1;
  box-shadow: 0 0 15px #6366f1;
}

.tab-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feature-tab.active .tab-icon {
  background: #6366f1;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.tab-info h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}

.feature-tab.active .tab-info h3 {
  color: #fff;
}

.tab-info p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* 右侧演示区域 */
.features-display {
  position: relative;
  min-height: 600px;
  perspective: 1000px;
}

.feature-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px) rotateY(-5deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.feature-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) rotateY(0);
  z-index: 1;
}

/* 模拟窗口容器 */
.mock-window {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.window-bar {
  height: 40px;
  background: #1a1d26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-address {
  margin-left: 16px;
  flex: 1;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #666;
  font-family: monospace;
}

.window-body {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  position: relative;
  background: #13151c;
}

/* UI 组件模拟 */

/* 1. 项目列表 UI */
.ui-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ui-project-card {
  background: #1a1d26;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
}

.ui-thumb {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #2d3748, #1a202c);
  border-radius: 6px;
}

.ui-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.ui-line {
  height: 8px;
  background: #2d3748;
  border-radius: 4px;
  width: 80%;
}
.ui-line.short { width: 40%; }

/* 2. 资产网格 UI (Eagle Style Update) */
.ui-asset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 增加列数到6列 */
  gap: 10px; /* 减小间距 */
  overflow-y: auto;
  max-height: 100%;
  padding-right: 4px;
}

.ui-asset-grid::-webkit-scrollbar {
  width: 4px;
}
.ui-asset-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.ui-asset-item {
  aspect-ratio: 1;
  background: #1a1d26;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s;
}

.ui-asset-item:hover {
  border-color: #6366f1;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ui-asset-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.8));
}

/* 多彩标签系统 */
.ui-tag {
  position: absolute;
  bottom: 4px; /* 改到底部 */
  left: 4px;
  font-size: 7px;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
}

/* 不同类型的颜色点缀 (用伪元素做个小圆点) */
.ui-tag::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-right: 3px;
  background: #ccc;
}

.ui-tag.tag-blue::before { background: #3b82f6; }
.ui-tag.tag-purple::before { background: #a855f7; }
.ui-tag.tag-green::before { background: #10b981; }
.ui-tag.tag-orange::before { background: #f97316; }
.ui-tag.tag-pink::before { background: #ec4899; }
.ui-tag.tag-cyan::before { background: #06b6d4; }

/* 3. 蓝图连线 UI */
.ui-blueprint-container {
  position: relative;
  height: 100%;
  background-image: radial-gradient(#2d3748 1px, transparent 1px);
  background-size: 20px 20px;
}

.ui-node {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #64748b;
  border-radius: 8px;
  width: 140px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.ui-node-header {
  height: 24px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 7px 7px 0 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.ui-node-header span {
  font-size: 10px;
  color: white;
  font-weight: bold;
}

.ui-node-body {
  padding: 8px;
}

.ui-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 9px;
  color: #cbd5e1;
}

.ui-pin::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
}

.ui-connection {
  position: absolute;
  height: 2px;
  background: #94a3b8;
  transform-origin: 0 50%;
  z-index: -1;
}

/* 4. AI Creation Section Styles */
/* Emphasize Lead Sentence */
#feature-creation .ua-brief-lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    max-width: 800px;
}

.ua-creation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.ua-creation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Professional accent */
    border-left: 3px solid rgba(255, 255, 255, 0.1); 
}

.ua-creation-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    border-left-color: #6366f1;
    transform: translateY(-2px);
}

.ua-creation-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ua-creation-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ua-creation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ua-creation-tags span {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Beta Card Style */
.ua-creation-card.beta {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.01);
    border-left-style: dashed;
    opacity: 0.7;
}

.ua-creation-card.beta:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.ua-creation-card.beta .ua-creation-title {
    color: rgba(255, 255, 255, 0.5);
}

.ua-beta-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ua-creation-hero-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 24px;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .features-showcase {
    grid-template-columns: 1fr;
  }
  .features-nav {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    margin-bottom: 30px;
  }
  .feature-tab {
    min-width: 200px;
  }
  .ua-creation-grid {
    grid-template-columns: 1fr;
  }
}
