/* ============================================================
   利尔作物智能应用平台 — 首页样式
   主题：浅色内容区 + 首屏深色影像叠加层
   ============================================================ */

:root {
  --brand-900: #062018;
  --brand-800: #0b2f22;
  --brand-700: #10462f;
  --brand-600: #17603f;
  --brand-500: #1f7d51;
  --brand-400: #2f9c68;
  --brand-300: #63bd8d;
  --accent: #c9f24d;

  --ink-900: #10201a;
  --ink-700: #33463d;
  --ink-500: #647a70;
  --ink-300: #9db0a7;

  --bg: #f6f9f7;
  --bg-alt: #eef4f0;
  --card: #ffffff;
  --line: #dfe9e3;

  --shadow-sm: 0 2px 10px rgba(16, 40, 30, .06);
  --shadow-md: 0 12px 34px rgba(16, 40, 30, .10);
  --shadow-lg: 0 26px 60px rgba(10, 35, 26, .16);

  --radius: 16px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans CJK SC", system-ui,
               -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .28s var(--ease), background-color .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 9px 20px; font-size: 14px; }

.btn-lg { padding: 15px 34px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #fff;
  box-shadow: 0 10px 26px rgba(31, 125, 81, .30);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(31, 125, 81, .40);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-300));
}

.btn-outline {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .85);
}

.btn-ghost { color: var(--ink-700); }
.btn-ghost:hover { color: var(--brand-600); background: rgba(31, 125, 81, .08); }

/* 首屏时顶栏浮在深色影像上，幽灵按钮需反白处理 */
.site-header:not(.scrolled) .btn-ghost {
  color: rgba(255, 255, 255, .90);
}
.site-header:not(.scrolled) .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.btn-arrow { transition: transform .28s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(16, 40, 30, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
  transition: color .35s var(--ease);
}
.site-header.scrolled .brand { color: var(--ink-900); }

/* LOGO 容器：不加底色框，保持通透；高度与页脚一致 */
.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  display: block;
  width: auto;
  height: 34px;
  transition: opacity .3s var(--ease);
}
/* 顶栏浮在深色影像上时用白色 LOGO；滚动后底色变浅，换深绿 LOGO */
.brand-mark img.logo-green { display: none; }
.site-header.scrolled .brand-mark img.logo-white { display: none; }
.site-header.scrolled .brand-mark img.logo-green { display: block; }

/* 品牌文字：与页脚保持一致——大字一行 + 小字一行
   小字用 text-align-last: justify 让文字两端撑满，与大字左右边缘精确对齐。
   配合 letter-spacing 增加疏朗感，中文标语排版常用此法。 */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.3;
}
.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand-text em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .02em;
  opacity: .58;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav a {
  position: relative;
  color: rgba(255, 255, 255, .88);
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--ink-700); }
.site-header.scrolled .nav a::after { background: var(--brand-500); }
.site-header.scrolled .nav a:hover { color: var(--brand-600); }

.header-actions { display: flex; gap: 10px; align-items: center; }
.site-header.scrolled .header-actions .btn-ghost { color: var(--ink-700); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.site-header.scrolled .nav-toggle {
  border-color: var(--line);
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease), background-color .35s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink-900); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   首屏 Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 用 clip 而非 hidden：hidden 会创建滚动容器，导致背景层的 sticky 失效 */
  overflow: clip;
  isolation: isolate;
  background: var(--brand-900);
}

/* 背景层：视差实现
   纯 absolute 定位时，背景图随 section 一起滚动，主体（拖拉机/化工塔）
   会很快移出视野，滚动过程中画面只剩大片模糊纹理，且两屏交界处生硬对切。

   改用 position: sticky：背景层比 section 高 30%，滚动时被"吸附"在视口内
   缓慢上移形成视差，主体始终停留在视野中，过渡也自然得多。 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  /* 视差：JS 在滚动时给内层 .hero-bg-media 加 translateY，
     背景图比页面滚动得慢，主体始终留在视野内。
     overscroll 交给 JS 控制，这里留足移动余量。 */
  will-change: transform;
  /* 内联 LQIP：24px 模糊图（约 0.4KB），首帧即可铺满画面，避免白屏闪烁 */
  background-color: var(--brand-900);
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAANABgDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAUDBAb/xAAfEAACAQQCAwAAAAAAAAAAAAABAgADBREhFDFBQlH/xAAVAQEBAAAAAAAAAAAAAAAAAAAABP/EABkRAQACAwAAAAAAAAAAAAAAAAACEQEDEv/aAAwDAQACEQMRAD8AdveFHQzKtW7BhpdzL8moD3JlrNk78SXqZZu90qr6Qi5nLKSfkIxskU//2Q==");
  background-size: cover;
  background-position: center 50%;
}

/* 真实背景图。
   注意：opacity 只作用在 <img> 上，绝不作用在 <picture> 容器上——
   inline 容器的 opacity 在不同浏览器上对子元素行为不一致，会导致整图不可见。
   淡入用 CSS 动画实现，最终态恒为 opacity:1，不依赖 JS 执行。 */
/* 媒体层：高度超出容器 30%，为视差位移预留余量，
   保证背景图在任何滚动位置都能铺满整个区块不露白。
   margin-top:-15% 把图片居中，初始状态与区块完全对齐（不偏上）。 */
.hero-bg picture {
  display: block;
  width: 100%;
  /* 媒体层高度需 >= 区块高 + 视差幅度(22%) + 上移余量(15%) = 149%，
     否则视差上移时区块底部会露白。取 160% 留足安全边际。 */
  height: 160%;
  /* 上移 15%：让画面上缘留出天空，主体（拖拉机）完整落在顶栏下方。
     实测该组合下拖拉机位于屏幕 143px，避开顶栏(80px)且高于标题(432px)。 */
  margin-top: -15%;
  will-change: transform;
}
.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  opacity: 1;
  animation: heroFade .9s var(--ease) both;
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 暗色叠加：上深下浅，保证标题对比度，同时保留画面层次 */
/* 暗色叠加：与背景图同步移动，保持视差一致 */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 82% 66% at 50% 44%, rgba(6, 26, 18, .30) 0%, rgba(6, 26, 18, .58) 55%, rgba(4, 18, 12, .80) 100%),
    linear-gradient(180deg, rgba(4, 20, 14, .66) 0%, rgba(6, 28, 20, .22) 30%, rgba(5, 22, 15, .48) 70%, rgba(4, 18, 12, .82) 100%);
}

/* 轻网格纹理：与背景图同步移动 */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 46%, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding-top: 108px;
  padding-bottom: 108px;
}

/* 主标题 */
.hero-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.18;
}
.title-main {
  display: block;
  font-size: clamp(2.1rem, 7vw, 5.6rem);
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .55), 0 2px 12px rgba(0, 0, 0, .40), 0 1px 3px rgba(0, 0, 0, .35);
  /* 保证 9 字标题在中等宽度下尽量单行完整显示 */
  white-space: nowrap;
}
.title-rule {
  display: block;
  width: 132px;
  height: 4px;
  margin: 30px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
}

/* 副标题：首屏唯一辅助文案，字号适当放大以平衡画面 */
.hero-sub {
  margin: 34px auto 0;
  max-width: 720px;
  font-size: clamp(1.06rem, 2vw, 1.42rem);
  line-height: 1.9;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

/* 呼吸动效：作用在内层 span 上，与外层 .reveal 入场动画分离，
   避免两个动画同时争夺 opacity / transform 导致闪烁。
   节奏取 5.6s 一个完整周期（吸 2.8s + 呼 2.8s），接近人体平静呼吸。

   关键帧设计：0% 为最亮（与入场结束的可见状态一致），在 50% 到达最暗，
   100% 回到最亮。这样动画开始的那一刻不会出现亮度跳变。 */
.hero-sub-text {
  display: inline-block;
  animation: subBreath 5.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes subBreath {
  0%, 100% {
    opacity: 1;
    transform: scale(1.012);
    text-shadow: 0 3px 24px rgba(0, 0, 0, .38), 0 0 30px rgba(255, 255, 255, .20);
  }
  50% {
    opacity: .74;
    transform: scale(.988);
    text-shadow: 0 2px 16px rgba(0, 0, 0, .48);
  }
}

/* 入场动画结束后再启动呼吸，避免刚显现时有一次突兀的明暗跳变 */
.hero-sub.in .hero-sub-text {
  animation-delay: .9s;
}

/* ============================================================
   次屏：智能核验（与首屏同风格，整屏式）
   ============================================================ */
.section-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* 用 clip 而非 hidden：hidden 会创建滚动容器，导致背景层的 sticky 失效 */
  overflow: clip;
  isolation: isolate;
  background: #04140f;
}

/* 第二屏用化学工业图，底色改为更冷的墨青 */
.section-hero .hero-bg {
  background-color: #04140f;
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAANABgDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAIEAwb/xAAbEAACAwEBAQAAAAAAAAAAAAAAAQIDMRETFP/EABUBAQEAAAAAAAAAAAAAAAAAAAEE/8QAFREBAQAAAAAAAAAAAAAAAAAAAAH/2gAMAwEAAhEDEQA/AOdhBvDb5+pPBKpcZR7ya40hTJranDQHum5aAmP/2Q==");
  background-position: center 50%;
}
.section-hero .hero-bg img {
  object-position: center 50%;
}

/* 遮罩偏左：左侧文字区压暗保证对比度，右侧保留画面细节 */
.scrim-left {
  background:
    radial-gradient(ellipse 86% 76% at 26% 50%, rgba(3, 20, 16, .62) 0%, rgba(3, 20, 16, .34) 48%, rgba(2, 14, 11, .18) 80%, rgba(2, 12, 10, .34) 100%),
    linear-gradient(100deg, rgba(3, 18, 14, .70) 0%, rgba(3, 18, 14, .34) 44%, rgba(2, 14, 11, .12) 72%, rgba(2, 12, 10, .38) 100%),
    linear-gradient(180deg, rgba(2, 14, 11, .50) 0%, rgba(3, 18, 14, .10) 36%, rgba(2, 14, 11, .18) 70%, rgba(2, 12, 10, .62) 100%);
}

/* 网格纹理同样偏左 */
.section-hero .hero-grid {
  opacity: .14;
  mask-image: radial-gradient(ellipse 62% 72% at 22% 50%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 22% 50%, #000 0%, transparent 82%);
}

/* 左右分栏 */
.feature-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.feature-copy { max-width: 680px; }

.feature-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
}
.feature-title-main {
  display: block;
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .58), 0 2px 12px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .38);
  /* 10 字标题在桌面端保持单行完整，避免末字孤行 */
  white-space: nowrap;
}
.feature-title .title-rule {
  width: 112px;
  margin: 26px 0 0;
}

.feature-sub {
  margin: 28px 0 0;
  font-size: clamp(.95rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .84);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .48);
}

.feature-action { flex-shrink: 0; }
.feature-btn {
  padding: 17px 40px;
  font-size: 16.5px;
  letter-spacing: .08em;
}
/* 链接暂未上线：保持可见但不可跳转 */
.feature-btn[aria-disabled="true"] {
  cursor: default;
  opacity: .92;
}
.feature-btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: 0 10px 26px rgba(31, 125, 81, .30);
}

/* ---------- 第三屏：更多内容敬请期待（幼苗破土） ---------- */
.section-hero-center .hero-bg {
  background-color: #0a1a08;
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wAARCAANABgDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAUDBAb/xAAfEAACAQQCAwAAAAAAAAAAAAABAgADBREhFDFBQlH/xAAVAQEBAAAAAAAAAAAAAAAAAAAABP/EABkRAQACAwAAAAAAAAAAAAAAAAACEQEDEv/aAAwDAQACEQMRAD8AdveFHQzKtW7BhpdzL8moD3JlrNk78SXqZZu90qr6Qi5nLKSfkIxskU//2Q==");
  background-position: center 55%;
}
.section-hero-center .hero-bg img {
  object-position: center 55%;
}

/* 居中版遮罩：整体压暗，中心稍透以保留幼苗与光束 */
.scrim-center {
  background:
    radial-gradient(ellipse 70% 58% at 50% 48%, rgba(6, 22, 10, .50) 0%, rgba(6, 22, 10, .68) 58%, rgba(4, 16, 8, .82) 100%),
    linear-gradient(180deg, rgba(4, 16, 8, .58) 0%, rgba(6, 22, 10, .34) 32%, rgba(4, 16, 8, .58) 72%, rgba(3, 12, 6, .84) 100%);
}
.section-hero-center .hero-grid {
  opacity: .13;
  mask-image: radial-gradient(ellipse 62% 60% at 50% 48%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 48%, #000 0%, transparent 80%);
}

/* 内容居中 */
.feature-inner-center {
  justify-content: center;
  text-align: center;
}
.feature-copy-center {
  max-width: 100%;
  /* 文字横跨画面明暗交界处，用柔和径向暗底统一对比度 */
  padding: 40px 48px;
  border-radius: 32px;
  background: radial-gradient(ellipse 72% 68% at 50% 50%, rgba(4, 16, 8, .62) 0%, rgba(4, 16, 8, .38) 55%, rgba(4, 16, 8, 0) 100%);
}
.feature-copy-center .feature-title-main {
  font-size: clamp(2rem, 5.6vw, 4.4rem);
  letter-spacing: .08em;
}
/* 居中版：装饰线需覆盖 .feature-title .title-rule 的 margin-left:0 */
.feature-title .title-rule-center {
  margin-left: auto;
  margin-right: auto;
  width: 120px;
}
.feature-copy-center .feature-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  letter-spacing: .18em;
}

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 108px 0; }
/* 解决方案区块内容较轻，收紧留白避免页面底部空旷 */
#solution.section { padding: 76px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brand-600);
  background: rgba(31, 125, 81, .10);
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.1vw, 2.3rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--ink-900);
}

/* ---------- 能力卡片 ---------- */

.card:hover 

/* ---------- 数据服务 ---------- */

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--brand-600);
}
.panel-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #29b366;
  animation: pulse 2s infinite;
}

/* ---------- 解决方案 pills ---------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.pill {
  /* border-box 让 min-width 即为最终宽度，6 个方格才能整齐排满一行不溢出 */
  box-sizing: border-box;
  padding: 18px 30px;
  min-width: 168px;
  text-align: center;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), color .3s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease);
}
.pill:hover {
  transform: translateY(-4px);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  border-color: transparent;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  padding: 56px 0;
  background: var(--brand-900);
  color: rgba(255, 255, 255, .70);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand .brand-mark img { height: 34px; }
/* LOGO 右侧：平台名一行 + 标语一行
   标语用 text-align-last: justify 两端撑满，与平台名左右边缘精确对齐 */
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.3;
}
.footer-brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  white-space: nowrap;
}
.footer-brand-text p {
  display: block;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .58);
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}
.footer-links { display: flex; gap: 26px; font-size: 14px; }
.footer-links a { transition: color .3s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.copyright { font-size: 12.5px; opacity: .55; margin: 0; }

/* ICP 备案号：首页底部整行居中悬挂，文字保持纯文本、可复制、可点击 */
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}
.beian-line { margin: 0; font-size: 13px; line-height: 1.7; }
.beian-link {
  color: rgba(255, 255, 255, .82);
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .3s var(--ease);
}
.beian-link:hover,
.beian-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ============================================================
   入场动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* 无 JS 环境兜底：所有内容直接可见，不做入场动画 */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
/* 无 JS 时没有入场过程，呼吸动效立即开始，不做延迟 */
.no-js .hero-sub.in .hero-sub-text,
.no-js .hero-sub-text {
  animation-delay: 0s;
}

/* 首屏元素按序入场 */
.hero .reveal[data-reveal="1"] { transition-delay: .12s; }
.hero .reveal[data-reveal="2"] { transition-delay: .26s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  
}

@media (max-width: 900px) {
  
  /* 次屏窄屏改为上下堆叠：文字在上，按钮在下 */
  .feature-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .feature-copy { max-width: 100%; }
  .feature-btn { padding: 15px 34px; }
  /* 窄屏遮罩改为整体压暗，保证文字可读 */
  .scrim-left {
    background:
      radial-gradient(ellipse 96% 62% at 50% 42%, rgba(3, 20, 16, .68) 0%, rgba(3, 20, 16, .52) 52%, rgba(2, 12, 10, .68) 100%),
      linear-gradient(180deg, rgba(2, 14, 11, .68) 0%, rgba(3, 18, 14, .44) 36%, rgba(2, 14, 11, .48) 68%, rgba(2, 12, 10, .78) 100%);
  }
  .section-hero .hero-grid {
    mask-image: radial-gradient(ellipse 88% 56% at 50% 44%, #000 0%, transparent 84%);
    -webkit-mask-image: radial-gradient(ellipse 88% 56% at 50% 44%, #000 0%, transparent 84%);
  }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    gap: 6px;
    padding: 92px 30px 30px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: -14px 0 40px rgba(10, 35, 26, .16);
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    color: var(--ink-700);
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; z-index: 101; margin-left: auto; }
  .header-actions { display: none; }
  .site-header.scrolled .nav-toggle { position: relative; }
  .section { padding: 76px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero-content { padding-top: 96px; padding-bottom: 96px; }
  /* 缩小字号使 9 字标题在窄屏单行完整显示，避免末字孤行 */
  .title-main { font-size: clamp(1.7rem, 8vw, 2.25rem); letter-spacing: .01em; }
  .hero-sub { margin-top: 26px; font-size: 1rem; letter-spacing: .03em; line-height: 1.85; }
  .title-rule { width: 92px; margin-top: 22px; }
  /* 次屏：标题 10 字，窄屏缩小以保持两行完整。
     高度仍取整屏，避免滚动时底部露白 */
  .section-hero { min-height: 100vh; min-height: 100svh; }
  .feature-inner { padding-top: 96px; padding-bottom: 96px; gap: 32px; }
  .feature-title-main {
    font-size: clamp(1.6rem, 7.4vw, 2.1rem);
    letter-spacing: .02em;
    white-space: normal;   /* 窄屏允许换行，避免溢出 */
  }
  .feature-title .title-rule { width: 78px; margin-top: 20px; }
  .feature-copy-center { padding: 28px 20px; }
  .feature-copy-center .feature-title-main {
    font-size: clamp(1.6rem, 7.4vw, 2.1rem);
    letter-spacing: .04em;
  }
  .feature-copy-center .feature-sub { letter-spacing: .1em; }
  .feature-sub { margin-top: 22px; font-size: .92rem; line-height: 1.8; letter-spacing: .02em; }
  .feature-btn { width: 100%; padding: 15px 32px; font-size: 15.5px; }
  .section { padding: 62px 0; }
  #solution.section { padding: 56px 0; }
  .pill { min-width: 138px; padding: 15px 20px; font-size: 15px; }
  /* 缩小标题字号，让「面向不同任务的AI智能应用实践」在窄屏断成两行且不出现孤字 */
  #solution .section-title { font-size: clamp(1.3rem, 5.6vw, 1.6rem); }
  .section-head { margin-bottom: 40px; }
  
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { margin-top: 26px; padding-top: 18px; }
  .to-top { right: 16px; bottom: 16px; }
}


/* ===== 智能应用入口卡片墙 ===== */
.apps { padding: 104px 0 110px; background: var(--bg); }
.apps-head { text-align: center; margin-bottom: 56px; }
.apps-head .tag { margin: 0 auto 18px; }
.apps-head .section-title { margin: 0; }
.apps-lead { margin: 16px 0 0; color: var(--ink-700, #4a5a52); font-size: 15px; letter-spacing: .04em; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.app-card:hover, .app-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-500);
  outline: none;
}
.app-card:hover::before, .app-card:focus-visible::before { opacity: 1; }

.app-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin-bottom: 24px;
  border-radius: 26px;
  background: linear-gradient(160deg, #f2f8f4, #e7f1ea);
}
.app-card-icon img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform .32s var(--ease);
}
.app-card:hover .app-card-icon img { transform: scale(1.06) rotate(-2deg); }

.app-card-name {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.app-card-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-700, #5b6b62);
  min-height: 46px;
}
.app-card-go {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(31, 125, 81, .08);
  color: var(--brand-600);
  transition: background .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
}
.app-card:hover .app-card-go {
  background: var(--brand-600);
  color: #fff;
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .apps { padding: 72px 0 78px; }
  .apps-head { margin-bottom: 40px; }
  .apps-grid { grid-template-columns: 1fr; gap: 20px; max-width: 460px; margin: 0 auto; }
  .app-card { padding: 32px 24px 30px; }
  .app-card-icon { width: 132px; height: 132px; }
  .app-card-icon img { width: 108px; height: 108px; }
}

/* === HOME-APPS-EXTRA (bottle+soon) v1 === */
/* 5 张卡片：桌面 3 列，第 4/5 张居中排在第二行 */
@media (min-width: 901px) {
  .apps-grid { grid-template-columns: repeat(6, 1fr); }
  .apps-grid > .app-card { grid-column: span 2; }
  .apps-grid > .app-card:nth-child(4) { grid-column: 2 / span 2; }
  .apps-grid > .app-card:nth-child(5) { grid-column: 4 / span 2; }
}
/* 畅晓：敬请期待态 */
.app-card-soon { cursor: default; }
.app-card-soon:hover { transform: none; }
.app-card-soon-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #1f7d51;
  background: rgba(31,125,81,.10);
  border: 1px solid rgba(31,125,81,.22);
  border-radius: 999px;
}
.app-card-soon .app-card-go { opacity: .35; }
.app-card-soon:hover .app-card-go { background: rgba(31,125,81,.08); color: var(--brand-600); transform: none; }

/* 敬请期待 Toast */
.soon-toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translate(-50%, 24px);
  display: flex; align-items: center; gap: 12px;
  min-width: 240px;
  padding: 14px 22px;
  background: #123a27;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  font-size: 15px; font-weight: 500; letter-spacing: .02em;
  opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  z-index: 9999;
}
.soon-toast.show { opacity: 1; transform: translate(-50%, 0); }
.soon-toast .st-ic {
  width: 22px; height: 22px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); border-radius: 50%;
}
.soon-toast .st-ic::after {
  content: ""; width: 8px; height: 8px;
  border-radius: 50%; background: #8ef0b4;
  box-shadow: 0 0 0 4px rgba(142,240,180,.18);
}

/* === HOME-APPS-5IN1 v2 === */
/* 5 张卡片一行：整体缩小 */
@media (min-width: 1100px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .apps-grid > .app-card { grid-column: auto !important; }
  .apps-grid > .app-card:nth-child(4),
  .apps-grid > .app-card:nth-child(5) { grid-column: auto !important; }
  .app-card { padding: 24px 14px 22px; border-radius: 14px; }
  .app-card-icon { width: 92px; height: 92px; margin-bottom: 14px; border-radius: 18px; }
  .app-card-icon img { width: 74px; height: 74px; }
  .app-card-name { font-size: 16px; margin-bottom: 6px; }
  .app-card-desc { font-size: 11.5px; line-height: 1.55; min-height: 36px; }
  .app-card-go { width: 26px; height: 26px; right: 12px; bottom: 10px; }
  .app-card-go svg { width: 16px; height: 16px; }
  .app-card-soon-tag { font-size: 10px; padding: 3px 10px; margin-top: 3px; }
  .apps-head { margin-bottom: 38px; }
}
