/* ============================================
   楷轩网络 - 主样式表
   商务靛蓝主题 / 响应式 / 企业级
============================================ */

:root {
  --color-primary: #0A2540;
  --color-primary-deep: #061a30;
  --color-secondary: #1E3A8A;
  --color-accent: #3B82F6;
  --color-accent-light: #60A5FA;
  --color-cyan: #06B6D4;
  --color-text: #1F2937;
  --color-text-light: #6B7280;
  --color-text-muted: #9CA3AF;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-bg-section: #F1F5F9;
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-warning: #F59E0B;

  --gradient-primary: linear-gradient(135deg, #0A2540 0%, #1E3A8A 100%);
  --gradient-accent: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(10,37,64,0.85) 0%, rgba(10,37,64,0.65) 100%);

  --shadow-sm: 0 2px 4px rgba(10,37,64,0.06);
  --shadow-md: 0 4px 12px rgba(10,37,64,0.08);
  --shadow-lg: 0 10px 30px rgba(10,37,64,0.12);
  --shadow-xl: 0 20px 50px rgba(10,37,64,0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container-max: 1280px;
  --header-height: 76px;

  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

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

/* ============ 导航栏 ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--color-accent); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 15px;
}

.btn-menu {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.btn-menu span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-light {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.btn-light:hover { background: rgba(255,255,255,0.2); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ============ 通用区块 ============ */
.section {
  padding: 100px 0;
}
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59,130,246,0.1);
  color: var(--color-accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.section-dark .section-label {
  background: rgba(255,255,255,0.1);
  color: var(--color-accent-light);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-dark .section-title { color: white; }
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ============ HERO 首屏 ============ */
.hero {
  min-height: 90vh;
  margin-top: var(--header-height);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: white;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://sc02.alicdn.com/kf/A73823c21e9c545fe8c417665efb78084E.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(59,130,246,0.3) 0%, transparent 60%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-badge span {
  width: 6px; height: 6px;
  background: var(--color-accent-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #60A5FA 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent-light);
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.hero-visual {
  position: relative;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 16px;
}
.hero-card-title {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.hero-card-value {
  font-size: 28px;
  font-weight: 700;
  color: white;
}
.hero-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 2px 8px;
  background: rgba(16,185,129,0.2);
  color: #34D399;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.hero-card-chart {
  height: 60px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(59,130,246,0.3), transparent);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.hero-card-chart::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'><path d='M0 30 L20 25 L40 28 L60 18 L80 22 L100 12 L120 15 L140 8 L160 10 L180 5 L200 8' stroke='%2360A5FA' stroke-width='2' fill='none'/></svg>") no-repeat;
  background-size: 100% 100%;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============ 服务卡片 ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(59,130,246,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}
.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.service-tag {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--color-bg-section);
  color: var(--color-text-light);
  border-radius: 12px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
}
.service-link:hover { gap: 10px; }

/* ============ 数据展示 ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.section-dark .stat-number {
  background: linear-gradient(135deg, #60A5FA, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 15px;
  color: var(--color-text-light);
}
.section-dark .stat-label { color: rgba(255,255,255,0.7); }

/* ============ 案例卡片 ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.case-image {
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}
.case-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: var(--transition);
}
.case-card:hover .case-image img { transform: scale(1.05); opacity: 1; }
.case-industry {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.9);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}
.case-body {
  padding: 24px;
}
.case-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}
.case-body p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}
.case-metric-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}
.case-metric-label {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============ 流程步骤 ============ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border) 10%, var(--color-border) 90%, transparent);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 60px; height: 60px;
  background: white;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  position: relative;
}
.process-step:hover .process-num {
  background: var(--gradient-accent);
  color: white;
  transform: scale(1.1);
}
.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ============ 客户Logo墙 ============ */
.logos-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.logo-item {
  aspect-ratio: 16/9;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: var(--transition);
}
.logo-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ============ CTA 区 ============ */
.cta-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.4), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  font-weight: 700;
}
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 表单 ============ */
.form-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.form-label .req { color: #EF4444; margin-left: 4px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: white;
  color: var(--color-text);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-submit {
  width: 100%;
  margin-top: 8px;
}
.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============ 页脚 ============ */
.footer {
  background: var(--color-primary-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}
.footer-col h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.footer-col ul a:hover { color: var(--color-accent-light); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  align-items: flex-start;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: var(--color-accent-light); }

/* ============ 子页 Banner ============ */
.subpage-hero {
  margin-top: var(--header-height);
  padding: 80px 0;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(59,130,246,0.3), transparent 70%);
}
.subpage-hero-inner { position: relative; z-index: 1; text-align: center; }
.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: white; }
.subpage-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}
.subpage-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin: 0 auto;
}

/* ============ 服务详情卡 ============ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.service-detail:nth-child(even) .service-detail-content {
  order: 2;
}
.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.service-detail-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-detail-content .section-label { margin-bottom: 12px; }
.service-detail-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-detail-content > p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--color-text);
}
.feature-list li::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(59,130,246,0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ 案例筛选 ============ */
.filter-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-tab {
  padding: 10px 22px;
  border: 1.5px solid var(--color-border);
  background: white;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
}
.filter-tab:hover { color: var(--color-accent); border-color: var(--color-accent); }
.filter-tab.active {
  background: var(--gradient-accent);
  color: white;
  border-color: transparent;
}

/* ============ 新闻列表 ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-image {
  height: 180px;
  background: var(--gradient-primary);
  overflow: hidden;
  position: relative;
}
.news-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.news-card:hover .news-image img { transform: scale(1.05); }
.news-category {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(10,37,64,0.85);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.news-body { padding: 24px; }
.news-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.news-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover h3 { color: var(--color-accent); }
.news-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.news-readmore {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 600;
}

.news-featured {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  margin-bottom: 40px;
}
.news-featured .news-image { height: 100%; min-height: 300px; }
.news-featured .news-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.news-featured h3 { font-size: 26px; -webkit-line-clamp: 3; }

/* ============ 联系页 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-info-card h3 {
  font-size: 22px;
  color: var(--color-primary);
  margin-bottom: 24px;
  font-weight: 700;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--color-border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(30,58,138,0.1), rgba(59,130,246,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.contact-info-text h4 {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-info-text p {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
}

.map-placeholder {
  background: var(--color-bg-section);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 24px;
  flex-direction: column;
  gap: 8px;
}

/* ============ 悬浮工具 ============ */
.float-tools {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.float-btn {
  width: 50px; height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.float-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.1);
}
.float-btn-tip {
  position: absolute;
  right: 60px;
  background: var(--color-primary);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.float-btn:hover .float-btn-tip { opacity: 1; right: 64px; }

/* 悬浮按钮 hover 弹出微信二维码 */
.float-btn-qr {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  display: block;
  width: 170px;                /* 显式定宽:img 150 + padding 10*2 */
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  box-sizing: content-box;
}
.float-btn-qr img {
  display: block;
  width: 150px !important;
  height: 150px !important;
  min-width: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  aspect-ratio: 1 / 1;         /* 强制 1:1 */
  object-fit: contain;         /* 图片本身 300x300 正方形,contain 保底不失真 */
  border-radius: 4px;
  flex: none;                  /* 阻止 flex 父容器压缩 */
}
.float-btn-qr-caption {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-light);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}
.float-btn-qr::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  background: white;
  box-shadow: 2px -2px 4px rgba(0,0,0,0.04);
}
.float-btn-wechat:hover .float-btn-qr {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

/* ============ 滚动动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .services-grid,
  .cases-grid,
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; }
  .service-detail:nth-child(even) .service-detail-content { order: 0; }
  .logos-wall { grid-template-columns: repeat(4, 1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
}

@media (max-width: 768px) {
  /* ===== 移动端汉堡菜单（点击三横岗弹出导航） ===== */
  .btn-menu {
    display: flex;
    z-index: 1101;
    position: relative;
  }
  /* 三横岗变 X 动画 */
  .btn-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .btn-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .btn-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* 桌面端的原 .nav 在移动端直接隐藏，不再做汉堡抽屉 */
  .header .nav {
    display: none !important;
  }

  /* 防御：强制菜单链接可点击（某些手机浏览器在 fixed 父元素里会丢失点击事件） */
  .nav.mobile-open a {
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(59,130,246,0.2);
    cursor: pointer;
  }

  /* 顶部 CTA 按钮在手机端隐藏（"免费咨询"） */
  .header-cta .btn { display: none; }
  .btn-phone {
    font-size: 13px;
    margin-right: 8px;
  }
  .btn-phone svg { width: 14px; height: 14px; }

  /* ===== 其他响应式样式（原有） ===== */
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .services-grid,
  .cases-grid,
  .news-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .hero-stat-num { font-size: 22px; }
  .stat-number { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .logos-wall { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 28px 20px; }
  .feature-list { grid-template-columns: 1fr; }
  .float-tools { right: 12px; bottom: 80px; }
  .float-btn { width: 44px; height: 44px; }
}

/* ============ 工具类 ============ */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }


/* ===== 移动端汉堡菜单 V2 (终极版) ===== */
/* nav 由 JS 动态插入到 body 末尾，完全独立，避开 header 的 stacking context */
#mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  visibility: hidden;
}
#mobile-menu-panel.open {
  pointer-events: auto;
  visibility: visible;
}

#mobile-menu-panel .mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,37,64,0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
#mobile-menu-panel.open .mobile-menu-overlay {
  opacity: 1;
}

#mobile-menu-panel .mobile-menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 320px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -8px 0 32px rgba(10,37,64,0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 0 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#mobile-menu-panel.open .mobile-menu-drawer {
  transform: translateX(0);
}

#mobile-menu-panel .mobile-menu-link {
  display: block;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  background: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid #E2E8F0;
  letter-spacing: 0.3px;
  -webkit-tap-highlight-color: rgba(59,130,246,0.2);
  cursor: pointer;
}
#mobile-menu-panel .mobile-menu-link:last-child {
  border-bottom: none;
}
#mobile-menu-panel .mobile-menu-link:active,
#mobile-menu-panel .mobile-menu-link.active {
  background: #F1F5F9;
  color: #3B82F6;
  padding-left: 36px;
}
#mobile-menu-panel .mobile-menu-link.active {
  border-left: 4px solid #3B82F6;
  padding-left: 24px;
}

/* 桌面端直接隐藏整个移动菜单 */
@media (min-width: 769px) {
  #mobile-menu-panel { display: none; }
}
