/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans CJK SC", "WenQuanYi Micro Hei", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f8fafc; color: #1e293b; line-height: 1.75; font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Container ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #1d4ed8; font-weight: 600; margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 700; color: #1e293b; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-subtitle { color: #64748b; font-size: 16px; max-width: 640px; margin: 0 auto; line-height: 1.6; }

/* ===== Navigation ===== */
.topnav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,14,26,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  height: 60px; padding: 0 24px;
}
.topnav-logo {
  display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 17px;
  white-space: nowrap;
}
.topnav-logo .logo-img { height: 28px; width: auto; vertical-align: middle; }
.topnav-logo .logo-sub { font-size: 12px; color: #64748b; font-weight: 400; margin-left: 4px; }
.footer .qr-img { width: 100px; height: auto; border-radius: 8px; margin-top: 8px; border: 2px solid rgba(255,255,255,0.1); }
.topnav-menu { display: flex; gap: 4px; margin-left: 40px; }
.topnav-menu > li { position: relative; }
.topnav-menu > li > a {
  display: block; padding: 8px 16px; color: rgba(255,255,255,0.7); font-size: 14px;
  border-radius: 8px; transition: all 0.2s; white-space: nowrap;
}
.topnav-menu > li > a:hover,
.topnav-menu > li > a.active { color: #fff; background: rgba(255,255,255,0.08); }
.topnav-menu .arrow { font-size: 10px; margin-left: 4px; color: rgba(255,255,255,0.35); }
.topnav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topnav-actions > * { list-style: none; outline: none; }
.topnav-actions .btn::before, .topnav-actions .btn::after { content: none; display: none; }

/* ===== Mega Menu ===== */
.has-mega .mega-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,42,0.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 8px 0; min-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.has-mega:hover .mega-menu { display: block; }
.mega-inner { display: flex; padding: 16px 24px; gap: 40px; }
.mega-col { flex: 1; }
.mega-col h4 { color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.mega-col a {
  display: block; padding: 6px 0; color: rgba(255,255,255,0.7); font-size: 13px;
  transition: color 0.2s; white-space: nowrap;
}
.mega-col a:hover { color: #60a5fa; }

/* Wider mega for 解决方案 */
.mega-wide { min-width: 760px !important; }
.mega-col a.mega-main {
  font-weight: 600; color: rgba(255,255,255,0.9); font-size: 13px; padding-top: 10px;
}
.mega-col a.mega-sub {
  font-size: 11px; color: rgba(255,255,255,0.5); padding-left: 8px; padding-top: 2px; padding-bottom: 2px;
}
.mega-col a.mega-sub:hover { color: #60a5fa; }
.mega-col a.mega-main:first-of-type { padding-top: 0; }
.mega-sep { border-top: 1px solid rgba(255,255,255,0.08); margin: 6px 0; }

/* ===== Buttons ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: #1d4ed8; color: #fff; }
.btn-primary:hover { background: #1e40af; }
.btn-outline { background: transparent; color: #1d4ed8; border: 1px solid #1d4ed8; }
.btn-outline:hover { background: #eff6ff; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== Card base ===== */
.card-base {
  background: #fff; border-radius: 16px; padding: 32px;
  border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card-base:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-2px); }

/* ===== Quote ===== */
.quote-block {
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border-left: 4px solid #1d4ed8; padding: 24px 32px;
  border-radius: 0 12px 12px 0; margin: 24px 0;
  font-size: 15px; color: #1e293b; line-height: 1.7;
}

/* ===== Tags ===== */
.tag { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 100px; font-weight: 500; }
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-gray { background: #f1f5f9; color: #475569; }

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(160deg, #0a0e1a 0%, #111d3a 40%, #0a1628 100%);
  color: #fff; padding: 72px 24px 56px; text-align: center;
}
.page-banner h1 { font-size: 38px; font-weight: 700; margin-bottom: 12px; }
.page-banner .banner-sub { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto; }

/* ===== Footer ===== */
.footer {
  background: #0f172a; color: #fff; padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.footer-grid h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.footer-grid a {
  display: block; padding: 4px 0; font-size: 13px; color: #94a3b8;
  transition: color 0.2s; white-space: nowrap;
}
.footer-grid a:hover { color: #60a5fa; }
.footer-bottom {
  max-width: 1140px; margin: 40px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06); text-align: center;
  font-size: 12px; color: #64748b;
}

/* ===== Hamburger ===== */
.hamburger-btn {
  display: none !important; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; cursor: pointer; background: none; border: none;
  padding: 4px; z-index: 1001; position: relative;
}
.hamburger-btn span {
  display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8);
  border-radius: 2px; transition: all 0.3s ease; transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hamburger-btn { display: flex !important; }
  .topnav-actions .btn { display: none; }
  .topnav-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(10,14,26,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px 24px; gap: 0;
    margin-left: 0; overflow-y: auto; z-index: 999;
  }
  .topnav-menu.open { display: flex; }
  .topnav-menu > li > a {
    padding: 14px 16px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
  }
  .has-mega .mega-menu {
    display: none; position: static; transform: none; min-width: auto;
    background: none; box-shadow: none; border: none; padding: 0;
  }
  .has-mega .mega-menu.open { display: block; }
  .mega-inner { flex-direction: column; gap: 16px; padding: 8px 16px 16px; }
  .mega-col h4 { margin-top: 8px; }
  .mega-wide { min-width: auto !important; }
  .section-title { font-size: 26px; }
  .page-banner h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Floating Contact ===== */
.floating-contact {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.floating-contact .fc-btn {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.15); transition: all 0.25s;
  font-size: 22px; color: #fff; text-decoration: none;
}
.floating-contact .fc-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.floating-contact .fc-tel { background: #1d4ed8; }
.floating-contact .fc-wx { background: #059669; }
.floating-contact .fc-top { background: #475569; font-size: 16px; }
.floating-contact .fc-label {
  position: absolute; right: 62px; top: 50%; transform: translateY(-50%);
  background: rgba(15,23,42,0.9); color: #fff; padding: 6px 14px;
  border-radius: 6px; font-size: 12px; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s, visibility 0.2s;
}
.floating-contact .fc-btn-wrap { position: relative; }
.floating-contact .fc-btn-wrap:hover .fc-label { opacity: 1; visibility: visible; }
.floating-contact .fc-pulse {
  animation: fc-pulse 2s infinite;
}
@keyframes fc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(29,78,216,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(29,78,216,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,78,216,0); }
}
@media (max-width: 900px) {
  .floating-contact { bottom: 20px; right: 16px; gap: 10px; }
  .floating-contact .fc-btn { width: 44px; height: 44px; font-size: 18px; }
  .floating-contact .fc-label { display: none; }
}
