/* ===========================================
   云巡智检 CloudInspect · 全站主题样式
   主色:深蓝 #1F4E79  辅色:科技蓝 #2E75B6
   =========================================== */

:root {
  --primary: #1F4E79;        /* 深蓝 */
  --primary-dark: #163957;   /* 更深 */
  --primary-light: #2E75B6;  /* 科技蓝 */
  --accent: #00B4D8;         /* 点缀青蓝 */
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;        /* 浅蓝灰 */
  --bg-dark: #0E2A47;        /* 深色底 */
  --text: #1A2332;
  --text-2: #5A6573;
  --text-3: #8C95A3;
  --border: #E3E9F1;
  --shadow-sm: 0 2px 8px rgba(31, 78, 121, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 78, 121, 0.10);
  --shadow-lg: 0 16px 48px rgba(31, 78, 121, 0.18);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1240px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans", "Source Han Sans",
               "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  background: var(--bg-soft);
}
.nav-menu a.active::after {
  content: ""; position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--primary); border-radius: 3px;
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 12px rgba(31, 78, 121, 0.25);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 78, 121, 0.35); }
.nav-toggle { display: none; }

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: 15px; font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== 通用 Section ===== */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: #fff;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(46, 117, 182, 0.1);
  color: var(--primary-light);
  border-radius: 30px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 16px;
}
.section-tag-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.section-title {
  font-size: 36px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-title-light { color: #fff; }
.section-desc { color: var(--text-2); font-size: 17px; }

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 20px rgba(31, 78, 121, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(31, 78, 121, 0.45);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== 通用卡片 ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.icon-box {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius);
  font-size: 24px; font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(31, 78, 121, 0.25);
}

/* ===== 滚动入场 ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
  }
  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
