/* ==========================================================================
   VPNQF · ai.css
   ChatGPT / AI 工具专题页专属样式:首屏按钮组、工具卡、正文块、下一步卡片。
   仅本页使用,不覆盖 base.css 与 components.css 中的既有组件。
   ========================================================================== */

/* ---- 首屏按钮组 ---- */

.ai-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:var(--space-5);
}

/* ---- 工具卡网格 ---- */

.ai-tool-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(232px,1fr));
  gap:14px;
  margin:0 0 var(--space-6);
  padding:0;
  list-style:none;
}

.ai-tool-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  background:var(--surface-1);
  box-shadow:var(--shadow-card);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.ai-tool-card:hover{
  transform:translateY(-2px);
  border-color:var(--border-strong);
  box-shadow:0 22px 38px -28px var(--ink-40);
}

.ai-tool-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:0;
}
.ai-tool-name{
  margin:0;
  font-size:15.5px;
  line-height:1.3;
  letter-spacing:-.012em;
}
.ai-tool-use{
  margin:0;
  font-size:12.5px;
  line-height:1.6;
  color:var(--text-muted);
}
.ai-tool-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0;
  padding:10px 0 0;
  border-top:1px dashed var(--border);
  font-size:12.5px;
  line-height:1.65;
  color:var(--text-muted);
}
.ai-tool-list li{
  display:flex;
  gap:7px;
  min-width:0;
}
.ai-tool-list li::before{
  content:"·";
  flex:none;
  color:var(--accent);
  font-weight:700;
}

/* ---- 正文块与次级小标题 ---- */

.ai-sub{
  margin:var(--space-7) 0 var(--space-4);
  font-size:clamp(17px,1.5vw,20px);
  line-height:1.3;
  letter-spacing:-.018em;
}

.ai-body{
  max-width:72ch;
  font-size:15.5px;
  line-height:1.8;
  color:var(--text-muted);
}
.ai-body p{margin:0 0 var(--space-4);}
.ai-body p:last-child{margin-bottom:0;}
.ai-body strong{color:var(--text);font-weight:700;}
.ai-body h3{
  margin:var(--space-6) 0 var(--space-3);
  font-size:clamp(16.5px,1.4vw,19px);
  line-height:1.35;
  color:var(--text);
}
.ai-body h3:first-child{margin-top:0;}
.ai-body ul,
.ai-body ol{
  margin:0 0 var(--space-4);
  padding-left:1.3em;
}
.ai-body ul{list-style:disc;}
.ai-body ol{list-style:decimal;}
.ai-body li{margin-bottom:8px;}
.ai-body li::marker{color:var(--accent);}
.ai-body pre{margin-bottom:var(--space-4);}
.ai-body .callout{margin-block:var(--space-5);}

.ai-after-table{margin-top:var(--space-5);}

/* ---- 表格最小宽度(表格自身包在 .table-scroll 内横滑) ---- */

.ai-table{min-width:760px;}
.ai-fail-table{min-width:680px;}

/* ---- 下一步卡片 ---- */

.ai-next{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(252px,1fr));
  gap:14px;
  margin-top:var(--space-6);
}
.ai-next-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:20px;
  border:1px solid var(--border);
  border-radius:var(--r-md);
  background:var(--bg-panel);
  box-shadow:var(--shadow-soft);
}
.ai-next-title{
  margin:0;
  font-size:16px;
  line-height:1.35;
  letter-spacing:-.012em;
}
.ai-next-text{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:var(--text-muted);
}
.ai-next-card .link-more{margin-top:auto;}

/* ---- 动效与窄屏收尾 ---- */

@media (prefers-reduced-motion: reduce){
  .ai-tool-card{transition:none;}
  .ai-tool-card:hover{transform:none;}
}

@media (max-width:520px){
  .ai-tool-grid{grid-template-columns:minmax(0,1fr);}
  .ai-body{font-size:15px;}
  .ai-cta .btn{flex:1 1 auto;}
}