/* =========================================================
   乾球环境 · 首页专属样式（现代科技风）
   配色沿用全站：白 / 墨绿(#17513F #2E8B6B) / 金(#C6A664)
   仅作用于首页 index.html，不影响其它页面
   ========================================================= */

/* 淡网格背景（科技感底纹，带径向遮罩，只在内容区轻微呈现） */
.q-grid-bg { position: relative; }
.q-grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,107,82,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,107,82,.06) 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; }

/* 居中 eyebrow 小标题（参考站风格） */
.sec-head { text-align: center; margin-bottom: 54px; }
.sec-head .en {
  display: inline-block;
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: 13px; letter-spacing: 5px; 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, 3.4vw, 42px); font-weight: 700; color: var(--green-900);
  line-height: 1.3; margin-bottom: 14px; letter-spacing: .02em;
}
.sec-head .sub { font-size: 16px; color: var(--text-2); max-width: 640px; margin: 0 auto; line-height: 1.85; }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; padding: 150px 0 90px;
}
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(247,249,248,.92) 0%, rgba(234,243,238,.74) 48%, rgba(244,249,246,.5) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: rgba(31,107,82,.1); border: 1px solid rgba(31,107,82,.25);
  border-radius: 30px; font-size: 13px; color: var(--green-700); margin-bottom: 26px;
  animation: qFadeUp .8s ease both;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); animation: qPulse 2s infinite; }
.hero-txt h1 {
  font-size: clamp(34px, 5vw, 64px); font-weight: 800; line-height: 1.15; color: var(--green-900);
  margin-bottom: 22px; letter-spacing: .01em; animation: qFadeUp .8s ease .1s both;
}
.hero-txt h1 .grad {
  background: linear-gradient(120deg, var(--green-600), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-txt p { font-size: clamp(15px, 1.7vw, 18px); color: var(--text-2); line-height: 1.9; max-width: 640px; margin-bottom: 34px; animation: qFadeUp .8s ease .2s both; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: qFadeUp .8s ease .3s both; }

/* 按钮（首页用） */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 34px;
  background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff;
  border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: .3s;
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(23,81,63,.35); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 34px;
  background: transparent; color: var(--green-800); border: 1px solid rgba(23,81,63,.35);
  border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; transition: .3s;
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-700); background: rgba(198,166,100,.06); }

/* ===================== 数据统计 ===================== */
.stats {
  background: linear-gradient(180deg, var(--paper), 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: 44px 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(31,107,82,.25), transparent);
}
.stat .n {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif; font-size: clamp(34px, 4.4vw, 56px); font-weight: 700;
  line-height: 1; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--green-600), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .n small { font-size: .5em; -webkit-text-fill-color: var(--green-600); }
.stat .t { font-size: 14px; color: var(--text-2); letter-spacing: 1px; }

/* ===================== 关于 ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-pic { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-pic img { width: 100%; display: block; }
.about-pic .badge {
  position: absolute; left: 20px; bottom: 20px; width: 96px; height: 96px; border-radius: 12px;
  background: rgba(13,43,34,.9); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; backdrop-filter: blur(6px);
}
.about-pic .badge b { font-family: 'Oswald', sans-serif; font-size: 34px; color: var(--gold-300); line-height: 1; }
.about-pic .badge span { font-size: 11px; letter-spacing: 2px; color: var(--green-100); margin-top: 4px; }
.about-body { font-size: 15px; color: var(--text-2); line-height: 2; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-tags span { padding: 7px 16px; background: var(--green-50); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--green-700); }

/* ===================== 系统卡片（六大 + 工业） ===================== */
.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; padding: 34px 26px;
  position: relative; overflow: hidden; transition: .4s; text-decoration: none; display: block;
}
.sys-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  transform: translateX(-100%); transition: transform .5s;
}
.sys-card:hover {
  transform: translateY(-8px); border-color: rgba(31,107,82,.4);
  box-shadow: 0 22px 50px rgba(16,42,33,.14), 0 0 26px rgba(31,107,82,.12);
}
.sys-card:hover::before { transform: translateX(100%); }
.sys-card .pic {
  width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(31,107,82,.14), rgba(198,166,100,.12));
  border: 1px solid rgba(31,107,82,.22); margin-bottom: 20px; overflow: hidden;
}
.sys-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.sys-card .body .no { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 3px; color: var(--gold-700); }
.sys-card .body h3 { font-size: 19px; font-weight: 700; color: var(--green-900); margin: 8px 0 10px; }
.sys-card .body p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }
.sys-card .body .more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--green-700); font-weight: 500; }
.sys-card .body .more::after { content: "→"; transition: .3s; }
.sys-card:hover .body .more::after { transform: translateX(4px); }

/* ===================== 工程案例 ===================== */
.case-tabs { display: flex; justify-content: center; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.case-tabs button {
  padding: 10px 26px; border: 1px solid var(--line-strong); background: #fff; border-radius: 30px;
  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: 22px; }
.case-item {
  position: relative; border-radius: 14px; overflow: hidden; text-decoration: none;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); display: block;
}
.case-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-item:hover img { transform: scale(1.08); }
.case-item .cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; background: linear-gradient(180deg, transparent 35%, rgba(13,43,34,.92) 100%); transition: .4s;
}
.case-item:hover .cap { background: linear-gradient(180deg, rgba(13,43,34,.25) 0%, rgba(13,43,34,.94) 100%); }
.case-item .tag {
  align-self: flex-start; padding: 4px 12px; background: rgba(198,166,100,.2);
  border: 1px solid rgba(198,166,100,.5); border-radius: 4px; font-size: 11px; color: var(--gold-300); margin-bottom: 10px;
}
.case-item .cap h3 { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.4; }
.more-row { text-align: center; margin-top: 40px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border: 1px solid rgba(23,81,63,.4);
  color: var(--green-700); border-radius: 30px; text-decoration: none; font-size: 15px; transition: .3s;
}
.btn-ghost:hover { background: var(--green-700); color: #fff; }

/* ===================== 核心技术（深色科技带） ===================== */
.sec-dark {
  background: radial-gradient(120% 120% at 50% 0%, #123A2E 0%, #0D2B22 60%);
  color: #fff; position: relative; overflow: hidden;
}
.sec-dark::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(95,174,143,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,174,143,.07) 1px, transparent 1px);
  background-size: 46px 46px;
}
.sec-dark > .wrap { position: relative; z-index: 1; }
.sec-dark .sec-head .en { color: var(--gold-300); }
.sec-dark .sec-head .en::before, .sec-dark .sec-head .en::after { background: linear-gradient(90deg, transparent, var(--gold-500)); }
.sec-dark .sec-head h2 { color: #fff; }
.sec-dark .sec-head .sub { color: rgba(234,243,238,.75); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-col {
  background: rgba(255,255,255,.04); border: 1px solid rgba(95,174,143,.2); border-radius: 14px;
  padding: 34px 28px; backdrop-filter: blur(8px); transition: .4s;
}
.tech-col:hover { transform: translateY(-6px); border-color: rgba(198,166,100,.5); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.tech-col .idx { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 700; color: var(--gold-300); margin-bottom: 6px; }
.tech-col h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.tech-col ul { list-style: none; }
.tech-col li { margin-bottom: 12px; border-bottom: none; }
.tech-col li a { color: rgba(234,243,238,.85); text-decoration: none; font-size: 14px; transition: .3s; padding-left: 16px; position: relative; }
.tech-col li a::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); opacity: .7; }
.tech-col li a:hover { color: var(--gold-300); }

/* ===================== 新闻 ===================== */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; padding: 14px; transition: .4s; align-items: center;
}
.news-item:hover { transform: translateY(-4px); border-color: rgba(31,107,82,.35); box-shadow: var(--shadow-md); }
.news-item .pic { width: 120px; height: 96px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.news-item .pic img { width: 100%; height: 100%; object-fit: cover; }
.news-item .body { flex: 1; min-width: 0; }
.news-item .date { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.news-item .body h3 { font-size: 16px; font-weight: 600; color: var(--green-900); line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .body p { font-size: 13px; color: var(--text-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 技术讨论 */
#fmHomeList .news-item .pic { width: 120px; height: 96px; }

/* ===================== 滚动揭示（无 JS 时自动显示） ===================== */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===================== 动画 ===================== */
@keyframes qFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes qPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ===================== hero 内动态粒子（墨绿/金，锁定首屏，不挡交互） ===================== */
#particleCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;            /* hero 内：背景图之上、文字之下，鼠标穿透 */
  pointer-events: none;
}

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .sys-grid, .case-grid, .news-list, .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-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .sys-grid, .case-grid, .news-list, .tech-grid, .sys-grid.cols4, .stats .wrap { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .hero { min-height: auto; padding: 120px 0 70px; }
  .news-item { flex-direction: column; align-items: stretch; }
  .news-item .pic { width: 100%; height: 180px; }
}
