/*
  驰联信 Chriplink 官网样式
  适配PC/移动端 | 完整SEO
  风格：商务科技风 | 零信任身份安全
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0052d9; /* 主色：科技蓝 */
  --secondary: #36cffb;
  --dark: #1f2937;
  --gray: #6b7280;
  --light: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
  color: var(--dark);
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}

.container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.4;
}

p {
  color: var(--gray);
  font-size: 15px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #003c9f;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* 布局 */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 34px;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
}

.bg-light {
  background: var(--light);
}

.text-center {
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  /* 自适应布局，5款产品完美排版，移动端自动适配 */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 999;
  height: 85px; /* 比 Logo 高 25px，上下留空 */
  display: flex;
  align-items: center; /* 强制内部元素垂直居中 */
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo 容器：固定高度，避免图片拉伸 */
.logo {
  height: 60px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.nav > ul {
  display: flex;
  gap: 35px; /* 菜单项间距，避免拥挤 */
}

.nav > ul > li {
  position: relative;
  font-weight: 500;
}

.nav > ul > li > a {
  padding: 25px 0;
  display: block;
  font-size: 15px;
  font-weight: 500;
  padding: 32px 0; /* 上下内边距，增大点击区域 */
  position: relative;
}

.nav > ul > li > a:hover {
  color: var(--primary);
}

/* 菜单 hover 下划线效果（更专业） */
.nav > ul > li > a:hover::after {
  content: '';
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0052d9;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 6px;
  display: none;
}

.submenu a {
  padding: 12px 24px;
  font-size: 14px;
  display: block;
}

.submenu a:hover {
  background: var(--light);
  color: var(--primary);
}

.nav li:hover .submenu {
  display: block;
}

.mobile-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Banner */
.banner {
  margin-top: 85px;
  height: 550px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #1e293b, #0052d9);
  color: #fff;
}

.banner h1 {
  font-size: 46px;
  margin-bottom: 24px;
}

.banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-bottom: 36px;
}

.page-banner {
  margin-top: 85px;
  padding: 90px 0;
  background: var(--dark);
  color: #fff;
  text-align: center;
}

.page-banner h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

/* 卡片 */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.4s;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.card img {
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

/* 功能模块 */
.feature {
  text-align: center;
  padding: 36px 24px;
}

.feature img {
  width: 64px;
  margin: 0 auto 24px;
}

/* 页脚样式 */
.footer {
  background: #1f2937;
  color: #e5e7eb;
  padding: 60px 0 30px;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 20px;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-col h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 14px;
}

/* 成功案例板块样式 */
.case-tabs {
  display: flex;
  gap: 12px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.case-tabs button {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.case-tabs button.tab-active {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

.case-tabs button:hover:not(.tab-active) {
  border-color: #0066cc;
  color: #0066cc;
}

.case-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.case-card:hover {
  transform: translateY(-5px);
}

.case-card img {
  width: 100%;
  height: auto;
}

.case-card-body {
  padding: 20px;
}

.case-tag {
  display: inline-block;
  padding: 4px 8px;
  background: #f0f7ff;
  color: #0066cc;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.case-card p {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* 响应式适配 */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-btn {
    display: block;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .banner {
    height: auto;
    padding: 80px 0;
  }

  .banner h1 {
    font-size: 34px;
  }

  .section {
    padding: 60px 0;
  }

  .footer-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 移动端Logo适配 */
  .logo img {
    height: 48px !important;
  }

  .header {
    height: 70px;
  }

  .banner {
    margin-top: 70px;
  }

  .page-banner {
    margin-top: 70px;
  }
}