/* ============================================
   艾树智元科技官网 - 全局样式
   设计规范：主色 #165DFF 深海蓝 | 辅助 #00B42A 生命绿
   容器 1200px | 移动端单列 + 汉堡菜单
   ============================================ */

:root {
  --primary: #165DFF;        /* 主色-深海蓝 */
  --primary-dark: #0E42D2;
  --green: #00B42A;          /* 辅助色-生命绿 */
  --text-main: #1D2129;      /* 中性-深灰文本 */
  --text-sub: #4E5969;       /* 中性-次要文本 */
  --bg-gray: #F2F3F5;        /* 背景浅灰 */
  --border: #E5E6EB;         /* 分割/边框 */
  --white: #FFFFFF;
  --navy: #0B1B3A;           /* 深蓝背景 */
  --footer-bg: #1B1F27;      /* 深灰页脚 */
  --radius: 10px;
  --shadow: 0 8px 24px rgba(22, 93, 255, .10);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Inter, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { opacity: .75; }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ 吸顶毛玻璃导航 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,230,235,.6);
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: .5px;
  white-space: nowrap;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--green));
  margin-right: 10px;
}
.nav-menu { display: flex; gap: 34px; }
.nav-link {
  font-size: 15px;
  color: var(--text-sub);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
}

/* ============ 全局悬浮商务咨询按钮 ============ */
.float-consult {
  position: fixed;
  right: 24px;
  bottom: 60px;
  z-index: 999;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(22,93,255,.35);
  transition: transform .25s, box-shadow .25s;
}
.float-consult:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(22,93,255,.45); }

/* ============ Hero 首屏 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0E42D2 0%, #165DFF 45%, #0AA8A0 100%);
  overflow: hidden;
  padding: 120px 24px 80px;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.hero-sub { font-size: 20px; margin-bottom: 16px; opacity: .95; }
.hero-sub strong { color: #7CFFA8; font-weight: 700; }
.hero-desc { font-size: 16px; opacity: .82; max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-audience { font-size: 14px; opacity: .75; letter-spacing: 2px; }

/* ============ 通用区块 ============ */
.section { padding: 90px 0; }
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 18px;
}
.section-lead {
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  max-width: 820px;
  margin: 0 auto 52px;
}

/* ============ 网格布局 ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ 卡片 ============ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-icon { font-size: 34px; margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.card p { font-size: 14.5px; color: var(--text-sub); }
.card-lite { background: #F0F4FF; border-color: #E3ECFF; }
.card-tint { border-top: 3px solid transparent; }
.card-tint:hover { border-top-color: var(--primary); }
.tint-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.dot-blue { background: var(--primary); }
.dot-green { background: var(--green); }

/* ============ CDSO 流程图 ============ */
.cds-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 56px;
  padding: 30px 20px;
  background: linear-gradient(180deg, #F5F8FF, #EEF5F0);
  border-radius: var(--radius);
  border: 1px dashed #BBD1FF;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  min-width: 130px;
}
.node-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--green));
  box-shadow: 0 0 0 5px rgba(22,93,255,.12);
}
.node-label { font-size: 14px; font-weight: 600; color: var(--text-main); }
.flow-line { color: var(--primary); font-size: 20px; font-weight: 700; padding: 0 4px; }

/* ============ 使命愿景价值观（深蓝底） ============ */
.mission-section {
  background: linear-gradient(135deg, #0B1B3A 0%, #10275C 100%);
}
.mv-card { text-align: center; padding: 44px 28px; color: #fff; }
.mv-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}
.mv-card h3::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  background: var(--green);
  margin: 14px auto 0;
  border-radius: 2px;
}
.mv-card p { font-size: 17px; color: rgba(255,255,255,.88); line-height: 1.8; }

/* ============ 资源卡片 ============ */
.service-section, .resource-section { background: #F5F8FF; }
.resource-card { padding: 0; overflow: hidden; display: block; }
.resource-card:hover .res-thumb { transform: scale(1.03); }
.res-thumb {
  position: relative;
  height: 170px;
  overflow: hidden;
  transition: transform .4s;
}
.thumb-1 { background: linear-gradient(135deg, #165DFF, #6BA6FF); }
.thumb-2 { background: linear-gradient(135deg, #00B42A, #7BE495); }
.thumb-3 { background: linear-gradient(135deg, #0AA8A0, #165DFF); }
.thumb-placeholder { background: linear-gradient(135deg, #8FA8D8, #165DFF); }
/* 抽象科技占位图形：粒子+连线 */
.thumb-1::before, .thumb-2::before, .thumb-3::before, .thumb-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.3) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(255,255,255,.28) 0 4px, transparent 5px),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.32) 0 2px, transparent 3px),
    linear-gradient(120deg, transparent 45%, rgba(255,255,255,.25) 46%, transparent 47%),
    linear-gradient(60deg, transparent 45%, rgba(255,255,255,.2) 46%, transparent 47%);
}
.res-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}
.res-body { padding: 20px 22px 24px; }
.res-body h3 { font-size: 16px; color: var(--text-main); margin-bottom: 6px; line-height: 1.5; }
.res-date { font-size: 13px; color: #86909C; }
.center-btn { text-align: center; margin-top: 40px; }

/* ============ 合作伙伴 ============ */
.partner-section { background: var(--bg-gray); }
.partner-wall {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFBFC;
}
.partner-placeholder { color: #86909C; font-size: 15px; letter-spacing: 1px; }

/* ============ 底部 CTA ============ */
.cta-section {
  background: linear-gradient(135deg, #0E42D2 0%, #165DFF 50%, #0AA8A0 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; font-size: 30px; font-weight: 700; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ============ 页脚 ============ */
.footer { background: var(--footer-bg); color: #A8B0BF; padding: 50px 0 28px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.footer-desc { color: #8A93A3; font-size: 13px; }
.placeholder { color: #7C8698; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: #A8B0BF; }
.footer-links a:hover { color: #fff; }
.footer-links .sep { opacity: .4; }
.footer-bottom { text-align: center; padding-top: 24px; color: #6E7787; font-size: 13px; }

/* ============ 子页面横幅 ============ */
.page-hero {
  background: linear-gradient(135deg, #0E42D2 0%, #165DFF 55%, #0AA8A0 100%);
  color: #fff;
  padding: 140px 24px 70px;
  text-align: center;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 14px; }
.page-hero p { font-size: 16px; opacity: .85; max-width: 680px; margin: 0 auto; }

/* ============ 服务流程 ============ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  text-align: center;
  padding: 36px 22px;
  background: #F5F8FF;
  border-radius: var(--radius);
  border: 1px solid #E3ECFF;
}
.step-num {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  background: #E8F0FF;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-sub); }

/* ============ 敬请期待 ============ */
.coming-soon {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-gray);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon p { color: #86909C; font-size: 18px; letter-spacing: 6px; }

/* ============ 关于页 ============ */
.about-text { max-width: 860px; margin: 0 auto; font-size: 16px; color: var(--text-sub); }
.about-text p { margin-bottom: 20px; }

/* ============ 资源中心 tabs ============ */
.res-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.res-tab {
  padding: 9px 26px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-sub);
  font-size: 14.5px;
  cursor: pointer;
  transition: all .2s;
}
.res-tab:hover { border-color: var(--primary); color: var(--primary); }
.res-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ 联系表单 ============ */
.contact-info h3, .contact-form-wrap h3 { font-size: 22px; margin-bottom: 20px; }
.contact-info p { margin-bottom: 12px; color: var(--text-sub); }
.contact-info strong { color: var(--text-main); }
.contact-note {
  margin-top: 26px;
  padding: 20px;
  background: #F5F8FF;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}
.contact-note h4 { font-size: 15px; margin-bottom: 8px; color: var(--primary); }
.contact-note p { font-size: 14px; }
.contact-form-wrap {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,93,255,.12);
}
.form-success {
  background: #E8FFEA;
  color: #00A01E;
  border: 1px solid #B7F0C0;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
}

/* ============ 滚动渐入动画 ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式：移动端单列 ============ */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 17px; }
  .hero { padding: 100px 20px 60px; }

  /* 汉堡菜单 */
  .hamburger { display: block; }
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-link { padding: 14px 0; border-bottom: 1px solid #F0F1F3; font-size: 16px; }
  .nav-link.active::after { display: none; }
  .nav-link.active { color: var(--primary); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cdso-flow { flex-direction: column; }
  .flow-line { transform: rotate(90deg); }
  .float-consult { right: 16px; bottom: 40px; }
  .cta-section h2 { font-size: 24px; }
  .page-hero h1 { font-size: 28px; }
  .footer-top { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-actions .btn { width: 100%; }
}
