/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333; background: #fff; line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(20, 30, 50, 0.95); backdrop-filter: blur(8px);
  transition: background .3s, box-shadow .3s;
}
.header.scrolled { background: #141e32; box-shadow: 0 2px 20px rgba(0,0,0,.15); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { height: 32px; }
.logo-text { font-size: 22px; font-weight: 700; color: #fff; }
/* 桌面端：导航菜单居中 (≥1201px) */
@media (min-width: 1201px) {
  .nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.nav-list { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 16px; color: rgba(255,255,255,.85); font-size: 15px;
  border-radius: 6px; transition: background .2s, color .2s; cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.arrow { font-size: 12px; margin-left: 2px; }
/* Submenu */
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .25s;
}
.has-submenu:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu-link {
  display: block; padding: 10px 20px; color: #333; font-size: 14px;
  transition: background .15s, color .15s;
}
.submenu-link:hover { background: #f5f7fa; color: #3b6cf5; }

/* Menu toggle (mobile) */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
  /* 蒙版已移除——用文字阴影保证可读性 */
.hero-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: background .3s, transform .3s;
}
.hero-dots .dot.active {
  background: #fff; transform: scale(1.3);
}
.hero-dots .dot:hover { background: rgba(255,255,255,.7); }
.hero-content {
  position: relative; z-index: 1; text-align: center; padding: 80px 0 60px;
}
.hero-title {
  font-size: 48px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,.8), 0 0 40px rgba(0,0,.5);
  animation: fadeInUp .8s ease-out;
}
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 36px;
  text-shadow: 0 1px 10px rgba(0,0,.7), 0 0 20px rgba(0,0,.4);
  animation: fadeInUp .8s ease-out .15s both;
}
.hero-icons {
  display: flex; justify-content: center; gap: 24px; margin-bottom: 40px;
  animation: fadeInUp .8s ease-out .3s both;
}
.hero-icon-item {
  width: 64px; height: 64px; background: rgba(255,255,255,.12); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: transform .2s, background .2s;
}
.hero-icon-item:hover { transform: translateY(-4px); background: rgba(255,255,255,.2); }
.hero-icon-item img { width: 36px; height: 36px; }
.icon-fallback { color: #fff; font-size: 12px; font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 32px; border-radius: 8px; font-size: 16px;
  font-weight: 600; text-align: center; transition: all .25s; cursor: pointer; border: none;
}
.btn-primary { background: #3b6cf5; color: #fff; }
.btn-primary:hover { background: #2b5ad4; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(59,108,245,.4); }
.btn-outline { background: transparent; color: #3b6cf5; border: 2px solid #3b6cf5; }
.btn-outline:hover { background: #3b6cf5; color: #fff; }
.btn-white { background: #fff; color: #141e32; }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 18px; }

/* ===== Features ===== */
.features { padding: 80px 0; background: #f8fafc; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: #fff; border-radius: 16px; padding: 40px 32px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { font-size: 22px; margin-bottom: 8px; color: #141e32; }
.feature-card h4 { font-size: 16px; color: #3b6cf5; margin-bottom: 12px; font-weight: 500; }
.feature-card p { color: #666; font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.feature-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag {
  padding: 4px 14px; background: #eef2ff; color: #3b6cf5; border-radius: 20px;
  font-size: 13px; font-weight: 500;
}

/* ===== Section Common ===== */
.section-title {
  text-align: center; font-size: 36px; font-weight: 700; color: #141e32; margin-bottom: 12px;
}
.section-subtitle {
  text-align: center; font-size: 18px; color: #666; margin-bottom: 60px;
}

/* ===== Products ===== */
.products { padding: 100px 0; }
.product-block { margin-bottom: 80px; }
.product-block:last-child { margin-bottom: 0; }
.product-block-content {
  display: flex; align-items: center; gap: 60px;
}
.product-block.reverse .product-block-content { flex-direction: row-reverse; }
.product-info { flex: 1; }
.product-badge {
  display: inline-block; padding: 4px 16px; background: #eef2ff; color: #3b6cf5;
  border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.product-title { font-size: 30px; font-weight: 700; color: #141e32; margin-bottom: 16px; }
.product-desc { color: #666; font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.product-features { margin-bottom: 24px; }
.product-features li {
  padding: 6px 0; padding-left: 24px; position: relative; color: #444; font-size: 15px;
}
.product-features li::before {
  content: '✓'; position: absolute; left: 0; color: #3b6cf5; font-weight: 700;
}
.product-image { flex: 1; display: flex; justify-content: center; }
.product-image img {
  max-width: 480px; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.1);
  transition: transform .4s;
}
.product-image img:hover { transform: scale(1.03); }

/* ===== Solutions ===== */
.solutions { padding: 100px 0; background: #f8fafc; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.solution-card {
  background: #fff; border-radius: 16px; padding: 36px 28px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
  border: 1px solid #f0f0f0;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,.1); border-color: #3b6cf5; }
.solution-icon { font-size: 42px; margin-bottom: 16px; }
.solution-card h3 { font-size: 20px; color: #141e32; margin-bottom: 10px; }
.solution-card p { color: #666; font-size: 14px; line-height: 1.7; }

/* ===== Cooperation ===== */
.cooperation { padding: 100px 0; }
.cooperation-content { display: flex; gap: 60px; align-items: flex-start; }
.coop-blocks { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.coop-block {
  background: #f8fafc; border-radius: 16px; padding: 32px; transition: transform .3s;
}
.coop-block:hover { transform: translateY(-4px); }
.coop-icon { font-size: 36px; margin-bottom: 12px; }
.coop-block h3 { font-size: 18px; color: #141e32; margin-bottom: 8px; }
.coop-block p { color: #666; font-size: 14px; line-height: 1.7; }
.coop-cta {
  flex: 0 0 320px; background: linear-gradient(135deg, #141e32, #1a3a6e);
  border-radius: 16px; padding: 48px 32px; text-align: center; color: #fff;
}
.coop-cta h3 { font-size: 24px; margin-bottom: 12px; }
.coop-cta p { color: rgba(255,255,255,.7); margin-bottom: 24px; font-size: 15px; }
.coop-cta .btn-primary { background: #fff; color: #141e32; }
.coop-cta .btn-primary:hover { background: #f0f0f0; }

/* ===== Bank & Service ===== */
.bank-service { padding: 80px 0; background: #f8fafc; }
.bank-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.bank-card, .service-card {
  border-radius: 16px; padding: 48px 40px; color: #fff;
}
.bank-card {
  background: linear-gradient(135deg, #1a3a6e, #2b5ea7);
}
.service-card {
  background: linear-gradient(135deg, #3b6cf5, #5b8cf9);
}
.bank-card h3, .service-card h3 { font-size: 28px; margin-bottom: 4px; }
.bank-card h4, .service-card h4 { font-size: 18px; font-weight: 400; opacity: .85; margin-bottom: 16px; }
.bank-card p, .service-card p { font-size: 15px; opacity: .8; line-height: 1.7; margin-bottom: 24px; }

/* ===== About ===== */
.about { padding: 100px 0; }
.about-content { display: flex; gap: 60px; align-items: flex-start; }
.about-text { flex: 1; }
.about-text p { color: #555; font-size: 16px; line-height: 1.9; margin-bottom: 16px; }
.about-stats {
  flex: 0 0 360px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.stat-item {
  background: #f8fafc; border-radius: 12px; padding: 28px; text-align: center;
}
.stat-num { display: block; font-size: 32px; font-weight: 700; color: #3b6cf5; margin-bottom: 4px; }
.stat-label { color: #666; font-size: 14px; }

/* ===== Footer ===== */
.footer { background: #141e32; color: rgba(255,255,255,.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* ===== Animation ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .product-block-content { gap: 40px; }
  .about-content { flex-direction: column; }
  .about-stats { flex: auto; width: 100%; }
  .cooperation-content { flex-direction: column; }
  .coop-cta { flex: auto; width: 100%; }
}

@media (max-width: 1200px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 64px; left: 0; width: 100%; height: calc(100vh - 64px);
    background: #141e32; padding: 24px; transform: translateX(100%);
    transition: transform .3s; overflow-y: auto; z-index: 999;
  }
  .nav.open { transform: translateX(0); z-index: 999; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.05); border-radius: 8px;
    margin: 0 16px 8px; display: none;
  }
  .has-submenu.open .submenu { display: block; }
  .submenu-link { color: rgba(255,255,255,.7); padding: 10px 16px; }
  .submenu-link:hover { background: rgba(255,255,255,.08); color: #fff; }

  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 15px; }
  .hero-icons { gap: 12px; }
  .hero-icon-item { width: 48px; height: 48px; border-radius: 12px; }
  .hero-icon-item img { width: 28px; height: 28px; }

  .features-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .features, .products, .solutions, .cooperation, .about { padding: 60px 0; }
  .section-title { font-size: 28px; }

  .product-block-content { flex-direction: column !important; gap: 24px; }
  .product-block.reverse .product-block-content { flex-direction: column !important; }
  .product-image img { max-width: 100%; }

  .bank-service-grid { grid-template-columns: 1fr; }
  .bank-card, .service-card { padding: 32px 24px; }

  .coop-blocks { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .btn-lg { padding: 14px 28px; font-size: 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .hero-content { padding: 40px 0; }
  .hero-icon-item { width: 42px; height: 42px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 26px; }
}

/* 产品菜单图标 */
.menu-icon {
  font-size: 16px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
  width: 22px;
  text-align: center;
}

/* 下载中心分组标题 */
.submenu-group-title {
    font-weight: bold;
    color: #333;
    padding: 8px 15px 4px;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 4px;
}
.submenu-group-title:first-child {
    border-top: none;
    margin-top: 0;
}


/* ===== Brand Icons ===== */
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
  color: white;
}
.brand-icon.yixin { background: linear-gradient(135deg, #11998e, #38ef7d); }
.brand-icon.meike { background: linear-gradient(135deg, #667eea, #764ba2); }
.brand-icon.huijia { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.brand-icon.boyou { background: linear-gradient(135deg, #fa709a, #fee140); }
.brand-icon.aibao { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #333; }
.brand-icon.yizhi { background: linear-gradient(135deg, #ff9a9e, #fecfef); color: #333; }
.brand-icon.tianzhixing { background: linear-gradient(135deg, #ffecd2, #fcb69f); color: #333; }
.brand-icon.kangming { background: linear-gradient(135deg, #ff8a00, #da1b60); }
.brand-icon.keyouyou { background: linear-gradient(135deg, #c3cfe2, #c3cfe2); color: #333; }
.brand-icon.yundian { background: linear-gradient(135deg, #667eea, #764ba2); }
.brand-icon.yinbao { background: linear-gradient(135deg, #f5af19, #f12711); }
.brand-icon.shouqianba { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.brand-icon.quanlaidian { background: linear-gradient(135deg, #00b894, #00cec9); }

.submenu-divider { height: 1px; background: #e0e0e0; margin: 8px 0; }

/* ========== 导航栏右侧按钮 ========== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 40px;
  padding-left: 0;
}

.header-btn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  line-height: 1.3;
  border-width: 1px;
}

.header-btn-primary {
  background: #3b82f6;
  color: #fff;
  border: 2px solid #3b82f6;
}

.header-btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.header-btn-outline {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.header-btn-outline:hover {
  background: #3b82f6;
  color: #fff;
}

/* 汉堡菜单内的按钮（默认隐藏，与普通菜单项样式一致） */
.nav-actions {
  display: none;
}

.nav-btn {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
  color: #3b82f6;
  border-bottom: 1px solid rgba(59,130,246,.3);
}

.nav-btn:hover {
  background: rgba(59,130,246,.1);
  color: #60a5fa;
}

/* 移动端：隐藏 header-actions，显示汉堡菜单内的按钮 */
@media (max-width: 1200px) {
  .header-actions {
    display: none;
  }
  .nav-actions {
    display: block;
  }
}
