/* 智能体体验页样式 */

.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    var(--background);
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 24px 0 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 团队配置模拟器 */
.team-simulator {
  padding: 60px 0;
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
}

@media (max-width: 1024px) {
  .simulator-layout {
    grid-template-columns: 1fr;
  }
}

.simulator-left h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.simulator-left .subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.agent-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
}

.agent-card:has(input:checked) {
  background: rgba(0, 102, 255, 0.05);
  border-color: var(--primary);
}

.agent-card input {
  display: none;
}

.agent-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.agent-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.agent-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.agent-info .price {
  font-size: 12px;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 6px;
}

/* 计算器卡片 */
.simulator-right {
  position: sticky;
  top: 100px;
}

.calculator-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}

.calculator-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}

.calc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
}

.calc-item span:first-child {
  color: var(--text-secondary);
}

.calc-item strong {
  font-weight: 600;
}

.calc-item.highlight strong {
  font-size: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-item.savings strong {
  font-size: 20px;
  color: var(--success);
}

.calc-item.savings-year strong {
  font-size: 24px;
  color: var(--success);
}

.calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

.recommendation {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.rec-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: white;
  margin-bottom: 8px;
}

.recommendation p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 效率卡片 */
.efficiency-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

.efficiency-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.efficiency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.efficiency-item span:first-child {
  width: 80px;
  font-size: 13px;
  color: var(--text-secondary);
}

.efficiency-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.efficiency-item span:last-child {
  width: 80px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* 预览区域 */
.preview-section {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.02);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .preview-layout {
    grid-template-columns: 1fr;
  }
}

.preview-input h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.preview-input textarea {
  width: 100%;
  height: 160px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
  color: white;
  resize: none;
  margin-bottom: 16px;
}

.preview-input textarea::placeholder {
  color: var(--text-muted);
}

.preview-input textarea:focus {
  outline: none;
  border-color: rgba(0, 102, 255, 0.4);
}

.preview-output {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  min-height: 280px;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
}

.preview-placeholder svg {
  margin-bottom: 16px;
}

.preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
}

.preview-loading .typing {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.preview-loading .typing span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}

.preview-loading .typing span:nth-child(2) { animation-delay: 0.2s; }
.preview-loading .typing span:nth-child(3) { animation-delay: 0.4s; }

.preview-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-agent {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-header h5 {
  font-size: 14px;
  font-weight: 600;
}

.agent-header .time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

.agent-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.agent-message a {
  color: var(--accent);
  text-decoration: underline;
}

/* 架构图 */
.architecture-section {
  padding: 80px 0;
}

.architecture-diagram {
  display: grid;
  grid-template-areas:
    ". brain ."
    "manager . db"
    ". action ."
    ". agents .";
  grid-template-columns: 1fr 280px 1fr;
  gap: 32px;
  position: relative;
  max-width: 800px;
  margin: 0 auto 48px;
}

@media (max-width: 768px) {
  .architecture-diagram {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brain"
      "manager"
      "db"
      "action"
      "agents";
  }
}

.arch-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.arch-node {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: all 0.3s;
}

.arch-node:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
  transform: translateY(-4px);
}

.arch-node.primary {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
  border-color: rgba(0, 102, 255, 0.3);
}

.arch-node.secondary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.05));
  border-color: rgba(0, 212, 255, 0.3);
}

.node-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 16px;
}

.arch-node h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.arch-node p {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}

.node-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
