/* 智谋科技 - 简约现代设计系统 */
:root {
  --primary: #1a56db;
  --primary-dark: #1344b0;
  --primary-light: #e8effc;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --bg-dark: #111827;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 80px;
  --topbar-h: 36px;
  --container: 1200px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶部工具栏 ========== */
.site-topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.site-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-welcome {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.topbar-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.topbar-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.topbar-phone {
  color: #93c5fd;
  font-weight: 500;
}

.topbar-dropdown { position: relative; }

.topbar-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  z-index: 1100;
  list-style: none;
  margin: 4px 0 0;
}

.topbar-dropdown:hover .topbar-dropdown-menu { display: block; }

.topbar-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 13px;
}

.topbar-dropdown-menu a:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

.topbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
}

/* ========== 主导航 ========== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.site-logo img {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.site-nav > li > a:hover,
.site-nav > li.active > a {
  color: var(--primary);
  background: var(--primary-light);
}

.site-nav .nav-dropdown { position: relative; }

.site-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  list-style: none;
  margin: 4px 0 0;
}

.site-nav .nav-dropdown:hover .nav-dropdown-menu { display: block; }

.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
}

.site-nav .nav-dropdown-menu a:hover {
  background: var(--bg-gray);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== 首页轮播 ========== */
.home-banner { position: relative; overflow: hidden; }

.home-banner .flexslider { margin: 0; border: none; background: transparent; }

.home-banner .flex-control-nav {
  bottom: 120px;
  z-index: 10;
}

.home-banner .flex-control-paging li a {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.home-banner .flex-control-paging li a.flex-active {
  background: #fff;
}

.home-banner .flex-direction-nav a {
  opacity: 0.6;
  text-shadow: none;
}

.home-banner .flex-direction-nav a:before {
  font-size: 28px;
}

.home-banner .slides li { position: relative; }

.home-banner .slides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-platforms {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  padding: 40px 0 24px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.platform-item {
  text-align: center;
  color: #fff;
}

.platform-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 12px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.platform-item a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.platform-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.platform-icon img { width: 32px; height: 32px; object-fit: contain; }

.platform-item span {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.95;
}

/* ========== 内页 Hero ========== */
.page-hero {
  position: relative;
  height: clamp(180px, 28vw, 280px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.75), rgba(17, 24, 39, 0.6));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.page-hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-hero-content .hero-en {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.page-hero-content .hero-divider {
  width: 40px;
  height: 3px;
  background: #fff;
  margin: 0 auto;
  border-radius: 2px;
}

/* ========== 页脚 ========== */
.site-footer { background: var(--bg-gray); border-top: 1px solid var(--border); }

.footer-features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.footer-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-feature img { width: 32px; height: 32px; flex-shrink: 0; }

.footer-companies { padding: 40px 0; }

.footer-companies-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.city-tabs li {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
}

.city-tabs li.active,
.city-tabs li:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.city-company {
  display: none;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  gap: 24px;
}

.city-company.active { display: flex; }

.city-area {
  flex-shrink: 0;
  text-align: center;
  padding: 16px 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
  min-width: 100px;
}

.city-han { font-size: 22px; font-weight: 600; color: var(--primary); }
.city-pin { font-size: 11px; color: var(--text-muted); letter-spacing: 0.1em; margin-top: 4px; }

.city-intro { flex: 1; font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.city-intro div { margin-bottom: 4px; }

.footer-brand { text-align: center; }
.footer-brand img { max-width: 200px; margin: 0 auto; }

.footer-bottom {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 0;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-legal a:hover { color: #fff; }
.footer-legal img { width: 16px; height: 16px; }

.footer-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social { display: flex; gap: 8px; }

.footer-social-item { position: relative; }

.footer-social-item img.icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-social-item:hover img.icon { opacity: 1; }

.footer-social-item .qr-popup {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 120px;
}

.footer-social-item:hover .qr-popup { display: block; }

/* ========== 悬浮工具栏 ========== */
.float-widget {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-widget-main {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: 56px;
}

.float-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}

.float-item:last-child { border-bottom: none; }
.float-item:hover { background: var(--primary-light); }

.float-item img { width: 24px; height: 24px; }
.float-item p { margin: 4px 0 0; font-size: 11px; color: var(--text-muted); }

.float-panel {
  display: none;
  position: absolute;
  right: 64px;
  top: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px;
  min-width: 200px;
  white-space: nowrap;
}

.float-item:hover .float-panel { display: block; }

.float-panel .kefu-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.float-panel .kefu-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.float-panel .btn-contact {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.float-panel .btn-contact:hover { background: var(--primary-dark); color: #fff; }

.float-panel .hotline-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}

.float-panel .qr-img { width: 120px; height: 120px; }

.float-back-top {
  background: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
  align-self: center;
}

.float-back-top img { width: 20px; height: 20px; filter: brightness(10); }
.float-back-top.visible { display: flex; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-features { grid-template-columns: repeat(3, 1fr); }
  .footer-companies-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar-toggle { display: block; }
  .topbar-right {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 12px 20px;
    gap: 4px;
    z-index: 1100;
  }
  .topbar-right.open { display: flex; }
  .site-topbar { position: relative; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 20px;
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .site-nav.open { display: flex; }

  .site-nav > li > a {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 16px;
    display: none;
  }

  .site-nav .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .platform-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .platform-icon { width: 44px; height: 44px; }
  .platform-item span { font-size: 12px; }

  .footer-features { grid-template-columns: repeat(2, 1fr); }
  .city-company { flex-direction: column; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .float-widget { right: 8px; bottom: 60px; }
  .float-panel { right: 56px; min-width: 180px; }
}

@media (max-width: 480px) {
  .footer-features { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
}
