/*
 * 首页 UI 改造（2026-11-19，用户要求“简约大气”）
 * 只改外观：首屏、产品入口、方案、优势、资讯里的文字、图片、链接和显示开关仍以主题控制台为准；颜色取 common/tokens.css，跟随控制台主题色。
 * 在 xiaoyue-home.css 之后加载；控制台“自定义样式”追加在 <head> 末尾，需要覆盖这里时请带 !important。
 */

/* 1. 首屏按钮：主按钮实心主题色，次按钮白底灰边；圆角与购买页一致 */
@media (min-width: 768px) {
  body.xy-home .xy-banner-actions .xy-primary-btn,
  body.xy-home .xy-banner-actions .xy-outline-btn {
    height: 46px !important;
    padding: 0 28px !important;
    border-radius: var(--xy-radius-md) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }
  body.xy-home .xy-banner-actions .xy-primary-btn {
    color: #fff !important;
    background: var(--xy-color-primary) !important;
    border: 1px solid var(--xy-color-primary) !important;
  }
  body.xy-home .xy-banner-actions .xy-primary-btn:hover {
    background: var(--xy-color-primary-hover) !important;
    border-color: var(--xy-color-primary-hover) !important;
  }
  body.xy-home .xy-banner-actions .xy-outline-btn {
    color: var(--xy-color-text-strong) !important;
    background: #fff !important;
    border: 1px solid var(--xy-color-line) !important;
  }
  body.xy-home .xy-banner-actions .xy-outline-btn:hover {
    color: var(--xy-color-primary) !important;
    border-color: var(--xy-color-primary) !important;
  }
}

/* 2. 产品入口：保留蓝/橙/灰三色（产品辨识度），去掉装饰圆圈；三块分开、12px 圆角（用户 2026-11-19 看过白底卡片后选此折中版） */
@media (min-width: 768px) {
  body.xy-home .xy-products { background: transparent !important; } /* 原来入口条两侧露出一条白带 */
  body.xy-home .xy-product-strip {
    gap: var(--xy-space-4) !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body.xy-home .xy-product-entry,
  body.xy-home .xy-product-entry + .xy-product-entry {
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--xy-radius-lg) !important;
    box-shadow: 0 10px 24px rgba(10, 35, 80, 0.14) !important;
    filter: none !important;
  }
  body.xy-home .xy-product-strip .xy-product-entry.xy-product-entry-cloud { background: linear-gradient(135deg, #1683ff 0%, #4ba4ff 100%) !important; }
  body.xy-home .xy-product-strip .xy-product-entry.xy-product-entry-server { background: linear-gradient(135deg, #ff7b22 0%, #ffad5b 100%) !important; }
  body.xy-home .xy-product-strip .xy-product-entry.xy-product-entry-colocation { background: linear-gradient(135deg, #565656 0%, #858585 100%) !important; }
  body.xy-home .xy-product-entry::before,
  body.xy-home .xy-product-entry::after { display: none !important; }
  body.xy-home .xy-product-entry:hover {
    color: #fff !important;
    border-color: transparent !important;
    filter: brightness(1.05) !important;
    transform: translateY(-2px) !important;
  }
  body.xy-home .xy-product-entry-copy strong { color: #fff !important; }
  body.xy-home .xy-product-entry-copy em { color: rgba(255, 255, 255, 0.88) !important; }
  body.xy-home .xy-product-entry-icon,
  body.xy-home .xy-product-entry-server .xy-product-entry-icon,
  body.xy-home .xy-product-entry-colocation .xy-product-entry-icon {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: var(--xy-radius-lg) !important;
    box-shadow: none !important;
  }
}

/* 3. 去掉标题前的蓝色竖条（与购买页一致） */
body.xy-home .xy-plan-copy > h4::before,
body.xy-home .xy-plan-visual-head span::before,
body.xy-home .xy-advantage-item::before { display: none !important; }
body.xy-home .xy-plan-copy > h4,
body.xy-home .xy-plan-visual-head span { padding-left: 0 !important; }
body.xy-home .xy-advantage-item > b { margin-left: 0 !important; padding-left: 0 !important; }

/* 4. 卡片：统一圆角 12px、浅阴影、细边框 */
body.xy-home .xy-plan-panel.is-active,
body.xy-home .xy-advantage-item,
body.xy-home .xy-news-panel {
  border-radius: var(--xy-radius-lg) !important;
  border-color: var(--xy-color-line) !important;
  box-shadow: var(--xy-shadow-card) !important;
}

/* 5. 底部注册横幅按钮加大 */
body.xy-home .xy-footer-cta-btn {
  height: 46px !important;
  min-width: 140px !important;
  padding: 0 32px !important;
  border-radius: var(--xy-radius-md) !important;
  font-size: 16px !important;
  line-height: 46px !important;
}

/* U93 方案架构图：环境框不再左移压住箭头 */
@media (min-width: 768px) {
  html body.xy-home .xy-plan-arch-cluster {
    transform: translateX(4px);
  }
}

/* U95 方案图左侧图标统一站在盘子上：按各图标图形底边微调，底边落在盘子中心上方约 5px */
html body.xy-home .xy-plan-visual.is-game .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(5.95%);
}

html body.xy-home .xy-plan-visual.is-game .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(-1.19%);
}

html body.xy-home .xy-plan-visual.is-cluster .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-cluster .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-enterprise .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-enterprise .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(-1.19%);
}

html body.xy-home .xy-plan-visual.is-commerce .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-commerce .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(-1.19%);
}

html body.xy-home .xy-plan-visual.is-global .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-global .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-bandwidth .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(2.38%);
}

html body.xy-home .xy-plan-visual.is-bandwidth .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(1.19%);
}

html body.xy-home .xy-plan-visual.is-ai .xy-plan-arch-node.is-entry > .xy-plan-icon::after {
  transform: translateY(-4.76%);
}

html body.xy-home .xy-plan-visual.is-ai .xy-plan-arch-node.is-gateway > .xy-plan-icon::after {
  transform: translateY(-7.14%);
}
