/* ============================================================================
   玉生支付系统 · 门户首页主题（Aurora）
   ----------------------------------------------------------------------------
   覆盖对象：public/template/home/{style}/index.html（Foundation 框架）
   原则：只覆盖视觉，不改 DOM 结构；原样式保留，本文件失效也不会导致页面崩坏。
   ========================================================================== */

:root,
html {
  --ys-brand-1: #4f46e5;
  --ys-brand-2: #7c3aed;
  --ys-brand-grad: linear-gradient(135deg, var(--ys-brand-1), var(--ys-brand-2));
  --ys-text: #0f172a;
  --ys-text-2: #475569;
}

/* ---------------------------------------------------------------------------
   1. 全局字体
   ------------------------------------------------------------------------ */
html body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body h1,
body h2,
body h3,
body h4 {
  letter-spacing: -0.015em;
}

body a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ---------------------------------------------------------------------------
   2. 顶部导航
   ------------------------------------------------------------------------ */
body .top-bar-wrapper,
body #index-top-bar {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

body .title-bar {
  background: #ffffff !important;
  color: var(--ys-text) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

/* 品牌标识：原模板引用 logo.png 但文件不存在（顶部是空白），这里用样式补出品牌标 */
body .top-bar__logo {
  background-image: none !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 32px;
  padding: 0 0 0 38px !important;
  position: relative;
  display: flex !important;
  align-items: center;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  color: var(--ys-text) !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--ys-text);
}

body .top-bar__logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--ys-brand-grad);
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.8);
}

body .top-bar__logo::after {
  content: "玉生支付系统";
  white-space: nowrap;
}

/* 导航链接 */
body .top-bar ul.menu > li > a,
body .dropdown.menu > li > a {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ys-text-2) !important;
  transition: color 0.2s ease;
}

body .top-bar ul.menu > li > a:hover,
body .dropdown.menu > li > a:hover {
  color: var(--ys-brand-1) !important;
}

/* 导航里的注册按钮 */
body .button.cta,
body .button.cta.hollow {
  background: var(--ys-brand-grad) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.85) !important;
}
body .button.cta.hollow:hover {
  background: var(--ys-brand-grad) !important;
  filter: brightness(1.07);
}

/* ---------------------------------------------------------------------------
   3. 首屏
   ------------------------------------------------------------------------ */
body .home-header-container h2 {
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.22 !important;
}

/* 主行动按钮 */
body .free_try {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  height: 3rem !important;
  line-height: 1 !important;
  padding: 0 1.4rem !important;
  background: var(--ys-brand-grad) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 14px 30px -14px rgba(79, 70, 229, 0.9) !important;
  transition: filter 0.22s ease, transform 0.22s ease !important;
}

body .free_try:hover,
body .free_try:focus {
  filter: brightness(1.07);
  transform: translateY(-1px);
  color: #fff !important;
}

body .free_try + .free_try {
  background: #ffffff !important;
  color: var(--ys-brand-1) !important;
  border: 1px solid rgba(79, 70, 229, 0.24) !important;
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.3) !important;
}
body .free_try + .free_try:hover {
  border-color: var(--ys-brand-1) !important;
  background: #f7f7ff !important;
}

/* ---------------------------------------------------------------------------
   4. 内容区块
   ------------------------------------------------------------------------ */
body .service-box {
  position: relative;
}

body section {
  scroll-margin-top: 90px;
}

/* 图片圆角，弱化生硬素材边界 */
body .home-img-box img,
body .right-bg img {
  border-radius: 18px;
}

/* 左侧导航项（如果有） */
body .controls-nav li a,
body .left-text li a {
  border-radius: 10px !important;
  transition: background 0.2s ease, color 0.2s ease;
}
body .controls-nav li a:hover,
body .left-text li a:hover {
  color: var(--ys-brand-1) !important;
}

/* 圆形装饰 */
body .circle-bg,
body .dashed1,
body .dashed2 {
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
   5. 移动端菜单
   ------------------------------------------------------------------------ */
body .mobile-nav {
  background: #ffffff !important;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}
body .mobile-nav li.divider {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}
body .title-bar__toggle {
  color: var(--ys-text) !important;
}

/* ---------------------------------------------------------------------------
   6. 页脚
   ------------------------------------------------------------------------ */
body footer {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
body footer a {
  color: var(--ys-text-2);
}
body footer a:hover {
  color: var(--ys-brand-1);
}
