/* =========================================================
   乾球环境 · 首页专属样式 V2（2026-10-21 结构重排）
   配色沿用全站：白 / 青绿(#009C90 #1FB5A8) / 金(#C6A664)
   —— 青绿取自企业 LOGO 主色（实测 #0BA29A），与标识同源
   仅作用于首页 index.html，不影响其它页面

   V2 改动（与内页对齐）：
   1. 按钮统一 999px 胶囊（原先 6px 直角，与内页 999px 冲突）
   2. 卡片圆角统一 14px，卡片标题统一 18/600 深青
   3. 六大系统改「场景图 + 文字」卡，消除底部 60~90px 空白
   4. 全链条卡由「半透明深色卡」改回白卡（原设计是深色底稿遗留）
   5. 新闻 + 技术讨论合并为「资讯与技术」3×2 网格
   6. 数据数字去青绿→金渐变（中点 #63A17A 发橄榄土色）
   ========================================================= */

/* 淡网格背景（科技感底纹，带径向遮罩，只在内容区轻微呈现） */
.q-grid-bg { position: relative; }
.q-grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,132,122,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,132,122,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 78%);
  pointer-events: none; z-index: 0;
}
.q-grid-bg > .wrap { position: relative; z-index: 1; }

/* 区块标题：与内页 .sec-head 同规格 32px/600 */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en {
  display: inline-block;
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 14px; position: relative; padding: 0 34px;
}
.sec-head .en::before,
.sec-head .en::after {
  content: ""; position: absolute; top: 50%; width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}
.sec-head .en::before { left: 0; }
.sec-head .en::after { right: 0; transform: scaleX(-1); }
.sec-head h2 {
  font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; color: var(--green-900);
  line-height: 1.35; margin-bottom: 12px; letter-spacing: .02em;
}
.sec-head .sub { font-size: 14.5px; color: var(--text-2); max-width: 640px; margin: 0 auto; line-height: 1.8; }

/* ===================== 按钮（与内页 .btn 统一为胶囊） ===================== */
.btn-solid, .btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; font-size: 15.5px; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .28s ease;
}
.btn-solid {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: #fff; box-shadow: 0 8px 20px rgba(0,132,122,.22);
}
.btn-solid:hover {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  box-shadow: 0 14px 30px rgba(0,132,122,.3); transform: translateY(-2px);
}
.btn-line {
  border-color: rgba(0,132,122,.42); color: var(--green-700); background: rgba(255,255,255,.6);
}
.btn-line:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: translateY(-2px); }

/* ===================== 首屏 ===================== */
/* 左文右图：右侧放一张真实项目实景（建筑剖视 + 地面辐射盘管），
   左侧保留 1240 栅格起点；旧轮播图自带白色大字，已彻底停用。
   底层配色全部取自全站 VI 变量（白 / paper-2 / paper-3 / green-50），
   不再自造 #FBFEFD、#F1FAF8、#E4F5F2 这类"近似但不一致"的色值。 */
.hero {
  --surface-1: var(--paper);      /* #FFFFFF 纯白 */
  --surface-2: var(--paper-2);    /* #F6FBF9 全站浅青底（.sec-alt 同色） */
  --surface-3: var(--paper-3);    /* #EAF5F3 全站最深浅青 */
  position: relative; height: auto; min-height: 82vh; display: flex; align-items: center;
  overflow: hidden; padding: 128px 0 88px;
  background: linear-gradient(160deg, var(--surface-1) 0%, var(--surface-2) 44%, var(--surface-3) 100%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 62% at 84% 34%, rgba(0,132,122,.13) 0%, rgba(0,132,122,0) 72%),
    radial-gradient(40% 50% at 96% 96%, rgba(198,166,100,.11) 0%, rgba(198,166,100,0) 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(198,166,100,.5) 30%, rgba(0,132,122,.30) 70%, transparent);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center;
}
.hero-txt { max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(0,156,144,.28);
  border-radius: 999px; font-size: 13px; color: var(--green-700); margin-bottom: 24px;
  backdrop-filter: blur(6px); animation: qFadeUp .8s ease both;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); animation: qPulse 2s infinite; }
.hero-txt h1 {
  font-size: clamp(32px, 4.1vw, 54px); font-weight: 700; line-height: 1.16; color: var(--green-900);
  margin-bottom: 20px; letter-spacing: -.005em; animation: qFadeUp .8s ease .1s both;
}
/* 渐变末端收到 green-700(#00847A)，对白 4.58:1；原先收到 #1FB5A8 仅 2.55:1 */
.hero-txt h1 .grad {
  background: linear-gradient(104deg, var(--green-900) 0%, var(--green-700) 58%, #009C90 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-txt p {
  font-size: clamp(15px, 1.4vw, 16.5px); color: var(--text-2); line-height: 1.95;
  max-width: 600px; margin-bottom: 32px; animation: qFadeUp .8s ease .2s both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: qFadeUp .8s ease .3s both; }

.hero-visual { position: relative; animation: qFadeUp .9s ease .25s both; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; height: auto; display: block; border-radius: 18px; aspect-ratio: 4 / 5;
  object-fit: cover; box-shadow: 0 28px 64px rgba(6,49,46,.20), 0 2px 6px rgba(6,49,46,.08);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.hero-photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(6,49,46,.12);
}
.hero-photo .note-k {
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; color: var(--gold-700);
  padding-right: 10px; border-right: 1px solid rgba(198,166,100,.45);
}
.hero-photo .note-v { font-size: 12.5px; color: #3F4F4C; letter-spacing: .02em; }

/* ===================== 数据统计 ===================== */
/* 与内页 .sec-alt 完全同色（纯 --paper-2），不再用白→浅青渐变造成色带偏差 */
.stats {
  background: var(--paper-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 48px 16px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 22%; width: 1px; height: 56%;
  background: linear-gradient(180deg, transparent, rgba(0,156,144,.25), transparent);
}
/* 数字用实色青绿：原先 青绿→金 渐变中点 #63A17A 呈橄榄土色 */
.stat .n {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: clamp(34px, 4.2vw, 54px); font-weight: 700;
  color: var(--green-700); line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat .n small { font-size: .46em; color: var(--green-600); margin-left: 2px; }
.stat .t { font-size: 14px; color: var(--text-2); letter-spacing: .08em; }

/* ===================== 关于 ===================== */
.about-txt { max-width: 980px; margin: 0 auto; }
.about-body { font-size: 15px; color: var(--text-2); line-height: 2; }
.about-body p { margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }
/* 首页关于区只引用正文第一段。
   用 #aboutBody 限定，仅作用于首页这个容器：
   数据库 ay_content 与关于页 /?aboutus/ 仍输出完整三段，一个字都没动。
   正文结构是「<p>…</p> ×3」，这里隐藏第一个元素之后的全部兄弟节点。 */
#aboutBody > *:not(:first-child) { display: none; }
#aboutBody > :first-child { margin-bottom: 0; }
.about-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.about-tags span {
  padding: 7px 16px; background: var(--green-50); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--green-700);
}
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--green-700); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent; transition: .28s;
}
.link-more i { font-style: normal; transition: transform .28s; }
.link-more:hover { border-bottom-color: currentColor; }
.link-more:hover i { transform: translateX(4px); }
.about-foot > .link-more { white-space: nowrap; }

/* 移动端长文折叠（桌面不显示按钮，全文完整呈现） */


/* ===================== 卡片通用 ===================== */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sys-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.sys-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; position: relative; transition: .38s;
  text-decoration: none; display: flex; flex-direction: column;
}
.sys-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  transform: translateX(-100%); transition: transform .5s;
}
.sys-card:hover {
  transform: translateY(-6px); border-color: rgba(0,156,144,.38);
  box-shadow: 0 20px 44px rgba(6,49,46,.13);
}
.sys-card:hover::before { transform: translateX(100%); }
/* 场景图：16:10，与案例 4:3 形成大小节奏，同时消除旧卡片底部空白 */
.sys-card .thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-50);
}
.sys-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease;
}
.sys-card:hover .thumb img { transform: scale(1.05); }
.sys-card .body { padding: 22px 26px 24px; display: flex; flex-direction: column; flex: 1; }
.sys-card .body .no {
  font-family: 'Oswald', sans-serif; font-size: 11.5px; letter-spacing: .26em; color: var(--gold-700);
}
.sys-card .body h3 {
  font-size: 18px; font-weight: 600; color: var(--green-900);
  margin: 8px 0 10px; letter-spacing: .01em; line-height: 1.45;
}
.sys-card .body p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; min-height: 0; }
.sys-card .body .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--green-700); font-weight: 500;
  border-bottom: 0; padding-bottom: 0;
}
.sys-card .body .more i { font-style: normal; transition: transform .3s; }
.sys-card:hover .body .more i { transform: translateX(4px); }

/* 工业产品 4 列：压缩留白 */
.sys-grid.cols4 .sys-card .body { padding: 20px 22px 22px; }
.sys-grid.cols4 .sys-card .body h3 { font-size: 18px; }

/* 工业产品仍用线描图标（无场景图），做成紧凑横卡，与六大系统的图卡区分层次 */
.sys-card.is-icon { padding: 26px 24px 24px; }
.sys-card.is-icon .body { padding: 0; }
.sys-card.is-icon .pic {
  width: 60px; height: 60px; border-radius: 12px; margin-bottom: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,156,144,.12), rgba(198,166,100,.08));
  border: 1px solid rgba(0,156,144,.22);
}
.sys-card.is-icon .pic img { width: 100%; height: 100%; object-fit: contain; padding: 9px; display: block; }
.sys-grid.cols4 .sys-card.is-icon .body h3 { margin-top: 0; }

/* ===================== 工程案例 ===================== */
/* 工业产品与案例同为白底，加一条细线分章 */
section.pt-snug { border-top: 1px solid var(--line); }
.case-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.case-tabs button {
  padding: 10px 24px; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  font-size: 14px; color: var(--text-2); cursor: pointer; transition: .3s;
}
.case-tabs button.on, .case-tabs button:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-item {
  position: relative; border-radius: 14px; overflow: hidden; text-decoration: none;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); display: block; background: var(--green-50);
}
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-item:hover img { transform: scale(1.06); }
.case-item .cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; transition: .4s;
  background: linear-gradient(180deg, rgba(6,49,46,0) 38%, rgba(6,49,46,.55) 68%, rgba(6,49,46,.9) 100%);
}
.case-item:hover .cap { background: linear-gradient(180deg, rgba(6,49,46,.22) 0%, rgba(6,49,46,.92) 100%); }
.case-item .tag {
  align-self: flex-start; padding: 4px 11px; background: rgba(198,166,100,.22);
  border: 1px solid rgba(198,166,100,.55); border-radius: 999px;
  font-size: 11px; color: #F0DCB4; margin-bottom: 10px;
}
.case-item .cap h3 {
  font-size: 18px; font-weight: 600; color: #fff; line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.more-row { display: flex; align-items: center; justify-content: center; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px;
  border: 1px solid rgba(0,132,122,.4); color: var(--green-700);
  border-radius: 999px; text-decoration: none; font-size: 15px; transition: .3s;
}
.btn-ghost:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ===================== 全链条服务能力（白卡，与系统卡统一） ===================== */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-col {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 28px 32px; transition: .38s;
}
.tech-col:hover {
  transform: translateY(-5px); border-color: rgba(0,156,144,.35);
  box-shadow: 0 18px 40px rgba(6,49,46,.11);
}
.tech-col .idx {
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; color: var(--gold-700);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tech-col .idx::after {
  content: ""; width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--gold-300), transparent);
}
.tech-col h3 {
  font-size: 18px; font-weight: 600; color: var(--green-900);
  margin-bottom: 16px; line-height: 1.45;
}
.tech-col ul { list-style: none; }
.tech-col li { margin-bottom: 11px; padding: 0; border-bottom: 0; }
.tech-col li:last-child { margin-bottom: 0; }
.tech-col li + li { border-top: 0; }
.tech-col li a {
  color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.7;
  padding-left: 16px; position: relative; transition: .25s;
}
.tech-col li a::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-500); opacity: .8;
}
.tech-col li a:hover { color: var(--green-700); }

/* ===================== 资讯与技术（3×2 网格） ===================== */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* JS 注入的卡片直接参与父网格布局 */
.feed-slot { display: contents; }
.feed-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  text-decoration: none; transition: .38s;
}
.feed-card:hover {
  transform: translateY(-5px); border-color: rgba(0,156,144,.35);
  box-shadow: 0 18px 40px rgba(6,49,46,.11);
}
.feed-card .thumb {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-50);
}
.feed-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s;
}
.feed-card:hover .thumb img { transform: scale(1.05); }
.feed-card .body { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.feed-card .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
/* 12px 日期原 #8FA5A1 对白 2.60:1，改 #647874 → 4.69:1 */
.feed-card .meta time { font-size: 12.5px; color: #647874; letter-spacing: .02em; white-space: nowrap; }
.feed-card .chip {
  font-size: 11.5px; line-height: 1; padding: 5px 10px; border-radius: 999px;
  background: rgba(0,156,144,.10); color: var(--green-700);
  border: 1px solid rgba(0,156,144,.22); letter-spacing: .04em;
}
.feed-card .chip-alt { background: rgba(198,166,100,.13); color: var(--gold-700); border-color: rgba(198,166,100,.35); }
.feed-card h3 {
  font-size: 18px; font-weight: 600; color: var(--green-900); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-grid .fm-empty { grid-column: 1 / -1; }

/* ===================== 页脚边界（首页不参与配色） =====================
   首页页脚统一走 footer.html + style.css 的 VI 令牌（2026-10-21 起为品牌青绿）：
     底   --green-800 #07403B → --teal-deep #00706A 渐变
     点缀 --gold-300 #E3D3AC / --gold-500 #C6A664
   上方新增的 --surface-1/2/3 只声明在 .hero 内，作用域不外溢，
   因此首页页脚与关于 / 产品 / 案例 / 资讯等页完全同色，不做任何覆盖。 */

/* ===================== 滚动揭示（无 JS 时自动显示） ===================== */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===================== 动画 ===================== */
@keyframes qFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes qPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero-txt h1, .hero-txt p, .hero-btns, .hero-visual { animation: none !important; }
}

/* ===================== 响应式 ===================== */
@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; }
}
@media (max-width: 1024px) {
  .hero { min-height: auto; padding: 112px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-txt { max-width: 680px; }
  .hero-visual { max-width: 460px; }
  .sys-grid, .case-grid, .feed-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-grid.cols4 { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .about-txt { max-width: none; }
}
@media (max-width: 768px) {
  .sys-grid, .case-grid, .feed-grid, .tech-grid, .sys-grid.cols4, .stats .wrap { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .stat { padding: 30px 12px; }
  .hero { padding: 104px 0 60px; }
  .hero-visual { max-width: none; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .hero-txt p { max-width: none; }
  .hero-btns .btn-solid, .hero-btns .btn-line { flex: 1; min-width: 140px; }
  /* 关于区现在只有一段，原来的 300px 折叠会把它截断，已取消折叠 */
  .about-body { max-height: none; overflow: visible; }
  .about-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .more-row { gap: 22px; }
}

/* ===================== 区块节奏统一（2026-10-21） =====================
   病根：style.css 里 .sec 是 72/72，而 .pb-snug / .pt-snug 是 48/48，
   首页因此同时存在两种区块间距 —— 144px（72+72）和 96px（48+48）：
   关于/六大系统/全链条/资讯之间是 144px，
   只有工业产品→工程案例那一处是 96px，同一页里松紧不一。
   现统一为 48/48，区块间距恒为 96px，取原设计中最紧凑的那一档，
   与上一轮"删掉浏览全部按钮、让区块直接衔接"的节奏保持一致。 */
.sec,
.sec.pb-snug,
.sec.pt-snug { padding-top: 48px; padding-bottom: 48px; }

/* 标题条到内容：内页是 40px，首页原为 48px（个别区块因外边距折叠只剩 16px），
   统一收到 40px，并清掉紧随元素的 margin-top，避免折叠造成忽大忽小 */
.sec-head { margin-bottom: 40px; }
.sec-head + * { margin-top: 0; }

@media (max-width: 960px) {
  .sec,
  .sec.pb-snug,
  .sec.pt-snug { padding-top: 36px; padding-bottom: 36px; }
  .sec-head { margin-bottom: 30px; }
}
