/* ========================================
   农链数科™（农之链数字科技（湖北）有限公司） - 全站样式系统
   设计理念：简约大气 · 科技感 · B端商务
   ======================================== */

/* ===== 基础重置 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== VI 品牌色（农之链数科官网视觉设计规范 V1.0）===== */
  --color-primary: #1A6FDB;          /* 科技蓝：主按钮、链接、导航高亮 */
  --color-primary-light: #EBF4FF;    /* 浅蓝：卡片底、标签底 */
  --color-primary-dark: #1557B0;     /* 科技蓝 Hover */
  --color-primary-active: #0F4290;   /* 科技蓝 Active */
  --color-secondary: #2EAD5E;        /* 农业绿：次按钮、农业业务标识 */
  --color-secondary-light: #E8F5E9;  /* 浅绿：农业模块底 */
  --color-secondary-hover: #248A4B;  /* 农业绿 Hover */
  --color-dark: #1A1A2E;             /* 深色：页脚背景、深色区块、正文主色 */
  --color-highlight: #2EAD5E;        /* 强调点缀（农业绿） */
  --color-bg: #F5F7FA;               /* 页面底色 */
  --color-text: #1A1A2E;             /* 正文主色 */
  --color-text-light: #5A6472;       /* 辅助灰 */
  --color-divider: #E5E7EB;          /* 边框/分割线 */
  --color-white: #ffffff;

  /* 字体规范（VI：中文系统字体栈 + Inter 数字英文） */
  --font-family: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-hero: clamp(32px, 5vw, 56px);   /* VI Display 56px / 移动 32px */
  --fs-section: clamp(24px, 3vw, 36px);/* VI H2 36px / 移动 24px */
  --fs-card: 20px;                      /* VI H3 24px / 卡片标题 20px */
  --fs-body: 16px;                      /* VI Body 16px */
  --fs-small: 14px;                     /* VI Small 14px */

  /* 间距系统（VI 4px 基准） */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 64px;        /* VI space-16 移动端区块间距 */
  --spacing-2xl: 96px;       /* VI space-24 桌面端区块垂直间距 */

  /* 圆角与阴影（VI） */
  --radius: 12px;            /* VI radius-lg 卡片 */
  --radius-sm: 8px;          /* VI radius-md 按钮/输入框 */
  --radius-lg: 16px;         /* VI radius-xl 大区块 */
  --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 24px rgba(26, 26, 46, 0.10);
  --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.12);

  /* 渐变（VI：仅允许蓝→绿） */
  --gradient-brand: linear-gradient(135deg, #1A6FDB 0%, #2EAD5E 100%);
  --gradient-light: linear-gradient(135deg, #EBF4FF 0%, #E8F5E9 100%);

  /* 过渡 */
  --transition: 0.25s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* VI 移动端覆盖 */
@media (max-width: 767px) {
  :root {
    --fs-hero: 32px;
    --fs-section: 24px;
    --fs-card: 20px;
    --fs-body: 15px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.nav-logo .logo-img {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.nav-logo .logo-img:hover {
  opacity: 0.9;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 8px;
  color: white;
  font-size: 18px;
}

.nav-logo .logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 1px;
  margin-top: -2px;
}

@media (max-width: 768px) {
  .nav-logo .logo-img {
    height: 38px;
    max-width: 180px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--color-primary);
  color: white !important;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 111, 219, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 111, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 111, 219, 0.2);
}

/* ===== 区块通用 ===== */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-sm {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-xl);
}

.section-header .section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-highlight);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 16px;
  background: var(--color-primary-light);
  border-radius: 20px;
}

.section-header h2 {
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: var(--fs-body);
  color: var(--color-text-light);
  line-height: 1.8;
}

.section-header .divider {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== 页脚 ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-brand .nav-logo .logo-img {
  /* 深色页脚上反白为白色 LOGO，避免彩色深色文字在深蓝背景上不可见 */
  filter: brightness(0) invert(1);
  height: 46px;
  max-width: 250px;
}

.footer-brand .nav-logo .logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #4DD481;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom .footer-links {
  display: flex;
  gap: 20px;
}

.footer-bottom .footer-links a {
  color: rgba(255, 255, 255, 0.68);
  transition: var(--transition);
}

.footer-bottom .footer-links a:hover {
  color: rgba(255, 255, 255, 0.96);
}

/* ===== 悬浮咨询按钮 ===== */
.float-consult {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 111, 219, 0.4);
  transition: var(--transition);
  color: white;
  font-size: 24px;
}

.float-consult:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(26, 111, 219, 0.5);
}

.float-consult::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== 页面Banner通用 ===== */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  background: var(--gradient-brand);
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(46, 173, 94, 0.25) 0%, transparent 50%);
}

.page-banner .container {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-size: var(--fs-hero);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.page-banner p {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--spacing-md);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.90);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: white;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-2xl: 80px;
    --spacing-xl: 56px;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-divider);
    transform: translateY(-150%);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .page-banner {
    padding: 120px 0 60px;
  }
}
