/* ============================================================
   达州掌讯 · 首页专用组件（home.css）
   仅在 index.php 通过 $extra_css 引入
   配色沿用蜂鸟主题：深绿 #0E1A12 / 面板 #14241A / 黄绿 #C3F26E
   ============================================================ */

/* ============================================================
   1. 核心业务：4 列 8 格
   ============================================================ */
.svc-grid{gap:14px}

.svc-card{
  position:relative;
  display:flex;flex-direction:column;gap:9px;
  padding:22px 20px 18px;
  border-radius:var(--radius);
  overflow:hidden;isolation:isolate;
  border:1px solid transparent;
  background:
    linear-gradient(180deg,#16271C 0%,#14241A 40%,#121F16 100%) padding-box,
    linear-gradient(180deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,.04) 32%,rgba(255,255,255,.018) 100%) border-box;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .26s var(--ease),box-shadow .26s var(--ease),background .26s var(--ease);
}
.svc-card::after{
  content:"";position:absolute;left:0;top:0;height:2px;width:0;
  background:linear-gradient(90deg,var(--dim),var(--note));
  transition:width .5s var(--ease);
}
.svc-card:hover{
  transform:translateY(-4px);
  background:
    linear-gradient(180deg,#1B2E22 0%,#172A1E 40%,#14241A 100%) padding-box,
    linear-gradient(180deg,rgba(226,243,196,.42) 0%,rgba(195,242,110,.24) 36%,rgba(255,255,255,.03) 100%) border-box;
  box-shadow:0 22px 48px -26px rgba(0,0,0,.9),0 0 30px -18px rgba(195,242,110,.6);
}
.svc-card:hover::after{width:100%}

.svc-ic{
  display:grid;place-items:center;
  width:38px;height:38px;border-radius:10px;
  background:rgba(195,242,110,.12);
  border:1px solid rgba(195,242,110,.22);
  color:var(--dim);
  transition:background .26s ease,transform .26s var(--ease);
}
.svc-ic svg{width:19px;height:19px;stroke-width:1.7}
.svc-card:hover .svc-ic{background:rgba(195,242,110,.2);transform:translateY(-2px)}

.svc-card h3{
  font-size:16.5px;line-height:1.42;color:#fff;
  letter-spacing:-.01em;
}
.svc-card p{
  font-size:13px;line-height:1.66;color:var(--mute);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.svc-more{
  margin-top:auto;padding-top:6px;
  display:inline-flex;align-items:center;gap:5px;
  font:600 11.5px/1 var(--f-mono);letter-spacing:.05em;
  color:var(--band-hi);opacity:.72;
  transition:opacity .22s ease,gap .22s ease;
}
.svc-card:hover .svc-more{opacity:1;gap:8px}

/* 第 8 格：业务体系全景入口 */
.svc-all{
  background:
    linear-gradient(180deg,rgba(195,242,110,.13) 0%,rgba(195,242,110,.05) 60%,rgba(195,242,110,.02) 100%) padding-box,
    linear-gradient(180deg,rgba(195,242,110,.4) 0%,rgba(195,242,110,.14) 40%,rgba(255,255,255,.03) 100%) border-box;
}
.svc-all .svc-ic{background:rgba(195,242,110,.2);color:var(--dim)}
.svc-all h3{color:var(--band-hi)}
.svc-all p{color:#A9BCA6}
.svc-all .svc-more{opacity:1;color:var(--dim)}

/* ============================================================
   2. AI 能力带
   ============================================================ */
.ai-band{
  position:relative;isolation:isolate;overflow:hidden;
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
  background:linear-gradient(180deg,#101E15,#0C1710 62%,#0E1A12);
}
.ai-band::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(46% 62% at 82% 18%,rgba(195,242,110,.14),transparent 68%);
}
.ai-band::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background-image:
    linear-gradient(rgba(54,80,64,.28) 1px,transparent 1px),
    linear-gradient(90deg,rgba(54,80,64,.28) 1px,transparent 1px);
  background-size:52px 52px;
  -webkit-mask-image:radial-gradient(72% 70% at 78% 34%,#000,transparent 76%);
  mask-image:radial-gradient(72% 70% at 78% 34%,#000,transparent 76%);
}

.ai-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);
  gap:clamp(28px,4vw,64px);align-items:center;
}
.ai-lead h2{
  margin:15px 0 14px;
  font-size:clamp(26px,3.2vw,39px);line-height:1.26;color:#fff;
  letter-spacing:-.015em;
}
.ai-lead p{font-size:14.5px;line-height:1.78;color:var(--slate);max-width:38em}
.ai-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}

/* 右侧 3×3 能力矩阵：比零散 pill 更整齐，也把配色块铺满 */
.ai-tags{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  align-content:center;
}
.ai-tag{
  position:relative;
  display:flex;align-items:center;gap:8px;
  padding:12px 13px;
  border-radius:9px;
  font-size:13px;line-height:1.3;color:#CFDCCB;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  transition:background .24s ease,color .24s ease,border-color .24s ease,transform .24s var(--ease);
}
.ai-tag::before{
  content:"";flex:none;
  width:5px;height:5px;border-radius:50%;
  background:rgba(195,242,110,.55);
  transition:background .24s ease,box-shadow .24s ease;
}
.ai-tag:hover{
  background:rgba(195,242,110,.14);
  border-color:rgba(195,242,110,.5);
  color:var(--band-hi);
  transform:translateY(-2px);
}
.ai-tag:hover::before{background:var(--dim);box-shadow:0 0 0 3px rgba(195,242,110,.16)}

/* ============================================================
   3. 适用场景：紧凑卡（图标 + 标题 + 两行描述 + 标签）
   ============================================================ */
.scenes-mini{gap:12px}

.scene-mini{
  display:flex;align-items:flex-start;gap:13px;
  padding:17px 18px;
  border-radius:var(--radius);
  border:1px solid transparent;
  background:
    linear-gradient(180deg,#16271C 0%,#14241A 40%,#121F16 100%) padding-box,
    linear-gradient(180deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,.035) 34%,rgba(255,255,255,.015) 100%) border-box;
  transition:transform .24s var(--ease),background .24s var(--ease),box-shadow .24s var(--ease);
}
.scene-mini:hover{
  transform:translateY(-3px);
  background:
    linear-gradient(180deg,#1B2E22 0%,#172A1E 40%,#14241A 100%) padding-box,
    linear-gradient(180deg,rgba(226,243,196,.4) 0%,rgba(195,242,110,.22) 36%,rgba(255,255,255,.03) 100%) border-box;
  box-shadow:0 18px 40px -24px rgba(0,0,0,.9);
}

.sm-ic{
  flex:none;display:grid;place-items:center;
  width:36px;height:36px;border-radius:9px;
  background:rgba(195,242,110,.1);
  border:1px solid rgba(195,242,110,.18);
  color:var(--dim);
  transition:background .24s ease;
}
.sm-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.scene-mini:hover .sm-ic{background:rgba(195,242,110,.2)}

.sm-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.sm-body h3{font-size:15px;line-height:1.4;color:#fff}
.sm-body p{
  font-size:12.5px;line-height:1.6;color:var(--mute);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.sm-tags{display:flex;flex-wrap:wrap;gap:5px}
.sm-tags i{
  font-style:normal;
  font:500 10.5px/1 var(--f-mono);letter-spacing:.04em;
  padding:4px 7px;border-radius:4px;
  color:#93AC93;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}

/* ============================================================
   4. 案例：3 大卡 + 交付现场缩略条
   ============================================================ */
.shot-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:44px 0 14px;
  padding-top:22px;
  border-top:1px solid var(--rule);
}
.shot-head span{
  font:500 11.5px/1 var(--f-mono);letter-spacing:.14em;
  text-transform:uppercase;color:var(--mute);
}
.shot-head a{
  display:inline-flex;align-items:center;gap:5px;
  font:600 12px/1 var(--f-mono);letter-spacing:.05em;
  color:var(--band-hi);opacity:.8;transition:opacity .22s ease,gap .22s ease;
}
.shot-head a:hover{opacity:1;gap:8px}

.shot-strip{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:9px;
}
.shot-strip .wall-item{
  aspect-ratio:4/3;
  border-radius:9px;
  grid-column:auto!important;grid-row:auto!important;
}
.shot-strip .wall-item img{filter:grayscale(.32) contrast(1.02) brightness(.94)}
.shot-strip .wall-item::before{opacity:.14}
.shot-strip .wall-item:hover img{filter:grayscale(0) brightness(1)}
.shot-strip .wall-item::after{opacity:.5}

.shot-cap{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  padding:12px 9px 7px;
  font-size:10.5px;line-height:1.35;color:rgba(255,255,255,.9);
  text-align:left;
  background:linear-gradient(180deg,rgba(4,8,18,0) 0%,rgba(4,8,18,.8) 60%,rgba(4,8,18,.94) 100%);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:color .24s ease;
}
.shot-strip .wall-item:hover .shot-cap{color:#fff}

.shot-more{
  aspect-ratio:4/3;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:5px;
  padding:13px;
  border-radius:9px;
  border:1px dashed rgba(195,242,110,.34);
  background:rgba(195,242,110,.05);
  transition:background .24s ease,border-color .24s ease,transform .24s var(--ease);
}
.shot-more b{font-size:12.5px;color:var(--band-hi);font-weight:600}
.shot-more span{font-size:10px;line-height:1.4;color:var(--mute)}
.shot-more:hover{
  background:rgba(195,242,110,.12);
  border-color:rgba(195,242,110,.6);
  transform:translateY(-3px);
}

/* ============================================================
   5. 为什么是我们
   ============================================================ */
.why-grid{
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(28px,4vw,64px);align-items:center;
}
.why-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}

.why-list{display:flex;flex-direction:column;gap:1px;list-style:none}
.why-list li{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  grid-template-areas:
    "ic t"
    "ic d";
  gap:2px 14px;
  padding:16px 0;
  border-bottom:1px solid var(--rule);
}
.why-list li:last-child{border-bottom:0}
.why-list li::after{
  content:"";position:absolute;left:0;bottom:-1px;height:1px;width:0;
  background:linear-gradient(90deg,var(--dim),transparent);
  transition:width .5s var(--ease);
}
.why-list li:hover::after{width:100%}
.wl-ic{
  grid-area:ic;align-self:start;
  display:grid;place-items:center;
  width:38px;height:38px;border-radius:10px;
  background:rgba(195,242,110,.09);
  border:1px solid rgba(195,242,110,.16);
  color:var(--dim);
}
.wl-ic svg{width:19px;height:19px}
.why-list b{
  grid-area:t;
  font-size:15px;font-weight:600;color:#fff;line-height:1.4;
}
.why-list li > span:last-child{
  grid-area:d;
  font-size:13px;line-height:1.62;color:var(--mute);
}

/* ============================================================
   6. cooperate.php 的「产出」小标签
   ============================================================ */
.step-out{
  display:inline-block;margin-top:7px;
  font:500 11px/1 var(--f-mono);letter-spacing:.04em;
  padding:5px 8px;border-radius:4px;
  color:var(--dim);
  background:rgba(195,242,110,.1);
  border:1px solid rgba(195,242,110,.2);
}


/* ============================================================
   7. 信息密度：首页专属的区块间距收敛
   原 style.css 的 .section 上下各 clamp(64px,9vw,128px)，
   单块空白就吃掉 256px，13 块叠加后整页被撑长。
   这里只在首页（本文件仅 index.php 引入）收紧，不影响内页。
   ============================================================ */
@media (min-width:861px){
  .section{padding:clamp(52px,5.6vw,78px) 0}
  .section-head{
    gap:12px;
    margin:0 auto clamp(26px,3.2vw,40px);
  }
  .section-head h2{font-size:clamp(25px,3.1vw,37px);line-height:1.18}
  .section-head p{font-size:15.5px;line-height:1.7}
  .cta-band{padding:clamp(46px,5.4vw,70px) 0}
}

/* ---------- FAQ：左标题 + 右列表，省掉居中标题的整块高度 ---------- */
.faq-split{
  display:grid;
  grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
  gap:clamp(28px,4vw,64px);
  align-items:start;
}
.faq-aside h2{
  margin:14px 0 12px;
  font-size:clamp(25px,3.1vw,37px);line-height:1.2;color:#fff;
}
.faq-aside p{font-size:14.5px;line-height:1.74;color:var(--slate);max-width:30em}
.faq-aside .btn{margin-top:20px}
/* 右侧：把 .faq-list 原本的「卡片」（边框/圆角/浅底/居中）全部去掉，
   改成与左栏同底色的纯分隔线列表，否则会在深色页里凸出一块浅色面板 */
.faq-split .faq-list{
  max-width:none;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
  border-top:1px solid var(--rule);
}
.faq-split .faq-item{border-bottom:1px solid var(--rule)}
.faq-split .faq-item:last-child{border-bottom:0}

.faq-split .faq-item summary{
  padding:15px 0;font-size:15px;gap:12px;
  background:transparent;border-radius:0;
  transition:color .2s ease,padding-left .2s ease;
}
.faq-split .faq-item summary:hover{
  background:transparent;color:var(--dim);padding-left:5px;
}
.faq-split .faq-item summary:hover .ico{border-color:rgba(195,242,110,.6)}
.faq-split .faq-item[open] summary{
  background:transparent;color:var(--band-hi);
}
.faq-split .faq-item .ans{
  padding:0 0 18px;font-size:13.5px;line-height:1.78;max-width:none;
}
.faq-split .faq-item summary .ico{
  width:20px;height:20px;
  background:transparent;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:1080px){
  .shot-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ai-grid,.why-grid{grid-template-columns:1fr}
  .ai-lead p{max-width:none}
}

@media (max-width:860px){
  .svc-grid{gap:11px}
  .svc-card{padding:18px 16px 15px}
  .svc-card h3{font-size:15.5px}
  .scenes-mini{gap:10px}
  .shot-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .shot-more{aspect-ratio:4/3;padding:10px}
  .shot-more b{font-size:11.5px}
  .shot-more span{display:none}
  .shot-head{margin-top:34px;padding-top:18px}
}

@media (max-width:600px){
  .svc-grid{grid-template-columns:1fr}
  .svc-card{flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 13px;padding:15px 16px}
  .svc-ic{width:34px;height:34px;border-radius:9px}
  .svc-card h3{font-size:15px;flex:1;min-width:0}
  .svc-card p{display:none}
  .svc-more{display:none}
  /* 单列紧凑卡没有「了解详情」，用右侧箭头表明可点 */
  .svc-card::before{
    content:"";position:absolute;right:16px;top:50%;
    width:6px;height:6px;margin-top:-3px;
    border-right:1.5px solid rgba(195,242,110,.55);
    border-top:1.5px solid rgba(195,242,110,.55);
    transform:rotate(45deg);
  }
  .svc-all::before{border-color:rgba(195,242,110,.85)}

  .ai-tags{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ai-tag{padding:10px 11px;font-size:12.5px}
  .ai-acts .btn{flex:1;justify-content:center}

  .scenes-mini{grid-template-columns:1fr}
  .sm-body p{-webkit-line-clamp:3}

  .shot-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shot-more{grid-column:span 1}

  .faq-split{grid-template-columns:1fr;gap:22px}
  .faq-split .faq-item summary{padding:14px 0;font-size:14.5px}
  .why-list li{padding:14px 0;grid-template-columns:36px minmax(0,1fr);gap:2px 12px}
  .wl-ic{width:34px;height:34px}
  .why-acts .btn{flex:1;justify-content:center}
}
