/* 红色画布上的交互控件：深红默认、金边悬停、浅金选中。 */
#live .fl-tab,
#interaction .game-option,
#live-ai .cai-item,
#agent .agx-option {
  background: #781825;
  border: 1px solid #d99878;
  color: #fff1d5;
  box-shadow: 0 5px 15px #55101a26;
}

#live .fl-tab strong,
#interaction .game-option strong,
#live-ai .cai-item strong,
#agent .agx-option strong {
  color: #fff1d5
}

#live .fl-tab small,
#interaction .game-option small,
#live-ai .cai-item small,
#agent .agx-option small {
  color: #f7e4c3
}

#live .fl-tab .fl-arrow,
#interaction .game-option>b,
#live-ai .cai-item .cai-next,
#agent .agx-option .agx-arrow {
  color: #f4d09b
}

#live .fl-tab:not([aria-selected="true"]):hover,
#interaction .game-option:not([aria-selected="true"]):hover,
#live-ai .cai-item:not([aria-selected="true"]):hover,
#agent .agx-option:not([aria-selected="true"]):hover {
  background: #a6313b;
  border-color: #ffe0a5;
  color: #fff6e8;
  box-shadow: 0 8px 20px #54101d35;
}

#live .fl-tab[aria-selected="true"],
#interaction .game-option[aria-selected="true"],
#live-ai .cai-item[aria-selected="true"],
#agent .agx-option[aria-selected="true"] {
  background: #f3d19a;
  border-color: #ffe3b3;
  color: #651721;
  box-shadow: 0 8px 20px #54101d40;
}

#live .fl-tab[aria-selected="true"] strong,
#interaction .game-option[aria-selected="true"] strong,
#live-ai .cai-item[aria-selected="true"] strong,
#agent .agx-option[aria-selected="true"] strong {
  color: #651721
}

#live .fl-tab[aria-selected="true"] small,
#interaction .game-option[aria-selected="true"] small,
#live-ai .cai-item[aria-selected="true"] small,
#agent .agx-option[aria-selected="true"] small {
  color: #6d292d
}

#live .fl-tab[aria-selected="true"] .fl-arrow,
#interaction .game-option[aria-selected="true"]>b,
#live-ai .cai-item[aria-selected="true"] .cai-next,
#agent .agx-option[aria-selected="true"] .agx-arrow {
  color: #651721
}

/* 图标不随浅金选中面失去辨识度。 */
#live .fl-tab .fl-icon,
#interaction .game-option .icon,
#live-ai .cai-item .cai-item-icon,
#agent .agx-option .agx-icon {
  background: #681722;
  border: 1px solid #d69371;
  color: #ffe1a8;
  box-shadow: none;
}

#agent .agx-option .agx-icon svg {
  stroke: #ffe1a8
}

#live .fl-tab[aria-selected="true"] .fl-icon,
#interaction .game-option[aria-selected="true"] .icon,
#live-ai .cai-item[aria-selected="true"] .cai-item-icon,
#agent .agx-option[aria-selected="true"] .agx-icon {
  border-color: #8d3237
}

/* 一级类别、服务阶段与咨询操作使用相同状态语言。 */
#live-ai .cai-category,
#service .timeline-tabs button {
  background: #781825;
  border-color: #d99878;
  color: #fff1d5
}

#live-ai .cai-category:not([aria-selected="true"]):hover,
#service .timeline-tabs button:not(.active):hover {
  background: #a6313b;
  border-color: #ffe0a5;
  color: #fff6e8
}

#live-ai .cai-category[aria-selected="true"],
#service .timeline-tabs button.active {
  background: #f3d19a;
  border-color: #ffe3b3;
  color: #651721
}

.header .btn.consult,
.agx-cta-action .btn {
  background: #f3d19a;
  border-color: #ffe3b3;
  color: #651721
}

.header .btn.consult:hover,
.agx-cta-action .btn:hover {
  background: #ffe4b7;
  border-color: #fff1d5;
  color: #651721
}

/* 卡片边界和链接从同色红底上清楚浮出。 */
#solution .hs-mode,
#cases .case {
  border-color: #db9b82;
  box-shadow: 0 12px 28px #5d111d33
}

#solution .hs-mode:hover,
#cases .case:hover {
  border-color: #ffe0a5;
  box-shadow: 0 16px 32px #5d111d52
}

#solution .hs-mode-link,
#solution .hs-mode-link:hover,
#live-ai .cai-more,
#live-ai .cai-more:hover {
  color: #ffe5b5
}

#solution .hs-mode-link:hover,
#live-ai .cai-more:hover {
  text-decoration: underline
}

/* 浅色浮窗与产品示意保持深色文字，避免浅字落在浅底。 */
#live .fl-float {
  background: #fff8ed;
  border-color: #e4bd91;
  color: #873439;
  box-shadow: 0 10px 24px #4e0e1a40
}

#live .fl-float strong {
  color: #743035
}

#live-ai .cai-float {
  background: #fff8ed;
  border-color: #e4bd91;
  color: #743035;
  box-shadow: 0 10px 24px #4e0e1a40
}

#live-ai .cai-float:before {
  background: #f3ddc8;
  color: #873439
}

#live .fl-window,
#live-ai .cai-panel,
#agent .agx-window,
#service .timeline-panel {
  border-color: #e4bd91
}

#live .fl-scene-footer,
#live .fl-window-nav,
#live .fl-demo-title {
  color: #754d46
}

#live .fl-window-nav b,
#live .fl-tag {
  color: #8e2b31
}

#live-ai .cai-body p,
#agent .agx-bubble,
#agent .agx-answer,
#service .timeline-copy p {
  color: #694745
}

#live-ai .cai-body h3,
#agent .agx-answer strong,
#service .timeline-copy h3 {
  color: #74272f
}

#live-ai .cai-body .cai-label {
  background: #f4dfd5;
  color: #78242c
}

/* 清晰的键盘焦点在选中和未选中面上都可见。 */
#live .fl-tab:focus-visible,
#interaction .game-option:focus-visible,
#live-ai .cai-item:focus-visible,
#live-ai .cai-category:focus-visible,
#agent .agx-option:focus-visible,
#service .timeline-tabs button:focus-visible,
.header .btn.consult:focus-visible,
.agx-cta-action .btn:focus-visible {
  outline: 3px solid #ffe4a5;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #681722;
}

@media(prefers-reduced-motion:reduce) {

  #live .fl-tab,
  #interaction .game-option,
  #live-ai .cai-item,
  #live-ai .cai-category,
  #agent .agx-option,
  #service .timeline-tabs button {
    transition: none
  }

  #live .fl-tab:hover,
  #interaction .game-option:hover,
  #live-ai .cai-item:hover,
  #live-ai .cai-category:hover,
  #agent .agx-option:hover,
  #service .timeline-tabs button:hover {
    transform: none
  }
}

/* 浅色内容面内的次级文字也保持深色，避免继承红底的浅色字。 */
#service .timeline-panel,
#service .timeline-copy,
#service .timeline-copy li {
  color: #422a2a
}

#live .fl-product-card p,
#live .fl-h5-bottom,
#live .fl-blessing {
  color: #694745
}

#live-ai .cai-summary span,
#live-ai .cai-caption-demo {
  color: #694745
}

#agent .agx-flow,
#agent .agx-answer li {
  color: #75443f
}

#agent .agx-piece small {
  opacity: .9
}


.header .nav a,
.header .brand-name {
  color: #ffe1ae
}

.header .nav a:hover,
.header .nav a:focus-visible {
  color: #fff4d9
}

#solution .hs-mode-heading span,
#solution .hs-mode-detail b,
#live .fl-caption,
#live-ai .cai-note,
#agent .agx-note {
  color: #ffdfae
}