/* ============================================================
   7Tan AI 工具下载页  /ai-tool/
   ------------------------------------------------------------
   依赖 /css/home.css（变量、navbar、btn、feature-card、footer）
   本文件只放本页专属样式，全部类名以 .ait- 前缀，避免影响全站
   ============================================================ */

/* ---------- Hero ---------- */
.ait-hero-text { min-width: 0; }   /* 允许栅格收缩，防止长串英文/URL 溢出 */

/* 语言切换器里的语言名（renderLangSwitch 输出的全站通用类，home.css 未定义）*/
.lg-name { white-space: nowrap; }

.ait-hero {
  position: relative;
  padding: 132px 0 64px;
  overflow: hidden;
}
.ait-hero .glow-green { top: -260px; right: -180px; }
.ait-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.ait-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ait-brand img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
}
.ait-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-light);
  letter-spacing: 0.5px;
}
.ait-badge-free {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.3);
  padding: 3px 12px;
  border-radius: 50px;
}
.ait-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.ait-hero h1 .highlight {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ait-hero-sub {
  color: var(--gray-light);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 30px;
  max-width: 560px;
}
.ait-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero 右侧：主截图 */
.ait-hero-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 60px rgba(0, 200, 83, 0.08);
  background: var(--dark3);
}
.ait-hero-shot img { width: 100%; display: block; }
.ait-hero-shot .ait-dots {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ait-hero-shot .ait-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: block;
}
.ait-hero-shot .ait-dots i:first-child { background: #ff5f57; }
.ait-hero-shot .ait-dots i:nth-child(2) { background: #febc2e; }
.ait-hero-shot .ait-dots i:nth-child(3) { background: #28c840; }

/* ---------- 元信息行 ---------- */
.ait-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--gray);
}
.ait-meta-row b { color: var(--gray-light); font-weight: 600; }

/* ---------- 下载卡片区 ---------- */
.ait-dl-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.ait-dl-main {
  background: linear-gradient(145deg, rgba(0, 200, 83, 0.10), rgba(13, 13, 26, 0.7));
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.ait-dl-main h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ait-dl-main .ait-dl-ver {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.ait-dl-side {
  background: rgba(20, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.ait-dl-side h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.ait-links { display: flex; flex-direction: column; gap: 10px; }
.ait-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--gray-light);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.ait-links a:hover {
  color: var(--green);
  border-color: rgba(0, 200, 83, 0.25);
  background: rgba(0, 200, 83, 0.06);
}
.ait-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.8;
}

/* ---------- 步骤 ---------- */
.ait-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.ait-step {
  background: linear-gradient(145deg, rgba(20, 20, 40, 0.8), rgba(13, 13, 26, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.ait-step .ait-step-no {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.ait-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ait-step p { color: var(--gray); font-size: 14px; line-height: 1.7; }
.ait-step code {
  font-family: Consolas, Monaco, monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.07);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--green-light);
}

/* ---------- 截图画廊（横向滚动） ---------- */
.ait-gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px 22px;
  scrollbar-width: none;
}
.ait-gallery-track::-webkit-scrollbar { display: none; }
.ait-shot {
  flex: 0 0 380px;
  scroll-snap-align: center;
}
.ait-shot .ait-shot-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  background: var(--dark3);
  cursor: zoom-in;
  transition: all 0.3s;
  position: relative;
}
.ait-shot .ait-shot-box:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 200, 83, 0.3);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 200, 83, 0.1);
}
.ait-shot img { width: 100%; display: block; }
.ait-shot-label {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-light);
}
.ait-gallery-wrap { position: relative; }
.ait-gallery-wrap::before,
.ait-gallery-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}
.ait-gallery-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark), transparent);
}
.ait-gallery-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--dark), transparent);
}

/* ---------- FAQ ---------- */
.ait-faq { max-width: 860px; margin: 44px auto 0; }
.ait-faq details {
  background: linear-gradient(145deg, rgba(20, 20, 40, 0.7), rgba(13, 13, 26, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.ait-faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ait-faq summary::-webkit-details-marker { display: none; }
.ait-faq summary::before {
  content: '+';
  color: var(--green);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.ait-faq details[open] summary::before { content: '−'; }
.ait-faq .ait-faq-body {
  padding: 0 22px 20px 50px;
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ---------- 灯箱 ---------- */
.ait-lb {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 8, 0.94);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.ait-lb.open { display: flex; }
.ait-lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 84px;
  pointer-events: none;          /* 点击穿透到遮罩 → 关闭 */
}
.ait-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.ait-lb-btn {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.18s, color 0.18s, transform 0.18s, opacity 0.18s;
}
.ait-lb-btn:hover { background: var(--green); color: #04120c; }
.ait-lb-btn:focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }
.ait-lb-btn[disabled] { opacity: 0.28; cursor: default; }
.ait-lb-btn[disabled]:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ait-lb-close { top: 22px; right: 22px; font-size: 20px; }
.ait-lb-prev  { left: 22px; top: 50%; transform: translateY(-50%); }
.ait-lb-next  { right: 22px; top: 50%; transform: translateY(-50%); }
.ait-lb-prev:hover,
.ait-lb-next:hover { transform: translateY(-50%) scale(1.08); }
.ait-lb-bar {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 内置网页版 ---------- */
.ait-web {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
}
.ait-web .glow-green { bottom: -280px; left: -180px; }
.ait-web-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 34px;
  align-items: start;
}
.ait-web-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.ait-web-addr-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.ait-web-addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px dashed rgba(0, 200, 83, 0.38);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.ait-web-addr code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  color: var(--green-light);
  letter-spacing: 0.3px;
  word-break: break-all;
}
.ait-web-copy {
  margin-left: auto;
  border: 1px solid rgba(0, 200, 83, 0.45);
  background: rgba(0, 200, 83, 0.1);
  color: var(--green-light);
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.ait-web-copy:hover,
.ait-web-copy.done { background: var(--green); color: #04120c; }
.ait-web-note {
  margin-top: 14px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.8;
}
.ait-web-shot { margin-top: 18px; }
.ait-web-shot .ait-shot-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: border-color 0.3s;
}
.ait-web-shot .ait-shot-box:hover { border-color: rgba(0, 200, 83, 0.3); }
.ait-web-shot img { width: 100%; height: auto; display: block; }
.ait-web-points { display: flex; flex-direction: column; gap: 16px; }
.ait-web-point {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.ait-web-point .ico { font-size: 22px; line-height: 1.25; flex: 0 0 auto; }
.ait-web-point h3 { font-size: 16.5px; margin: 0 0 6px; color: #fff; }
.ait-web-point p { margin: 0; color: var(--gray); font-size: 14px; line-height: 1.75; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .ait-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .ait-hero { padding: 116px 0 56px; }
  .ait-dl-grid { grid-template-columns: 1fr; }
  .ait-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ait-hero { padding: 92px 0 40px; }
  .ait-hero h1 { font-size: 30px; }
  .ait-hero-sub { font-size: 15px; }
  .ait-hero-btns .btn-primary,
  .ait-hero-btns .btn-secondary { padding: 13px 26px; font-size: 15px; }
  .ait-shot { flex: 0 0 290px; }
  .ait-gallery-track { padding: 8px 16px 20px; }
  .ait-dl-main { padding: 26px 20px; }
  .ait-dl-side { padding: 22px 18px; }
  .ait-faq .ait-faq-body { padding-left: 24px; }
}
@media (max-width: 480px) {
  .ait-brand img { width: 52px; height: 52px; }
  .ait-shot { flex: 0 0 264px; }
}

/* ---------- 新增板块 / 灯箱：响应式 ---------- */
@media (max-width: 1024px) {
  .ait-web-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ait-web { padding: 54px 0; }
  .ait-web-card { padding: 22px 18px; }
  .ait-web-addr { padding: 12px 14px; }
  .ait-web-addr code { font-size: 15px; }
  .ait-web-copy { margin-left: 0; }
  .ait-web-point { padding: 16px 16px; gap: 12px; }
  .ait-lb { padding: 12px; }
  .ait-lb-stage { padding: 66px 58px; }
  .ait-lb-btn { width: 44px; height: 44px; font-size: 22px; }
  .ait-lb-close { top: 14px; right: 14px; font-size: 17px; }
  .ait-lb-prev { left: 10px; }
  .ait-lb-next { right: 10px; }
  .ait-lb-bar { bottom: 14px; font-size: 12.5px; padding: 4px 13px; }
}
@media (max-width: 480px) {
  .ait-lb-stage { padding: 62px 52px; }
  .ait-lb-btn { width: 38px; height: 38px; font-size: 19px; }
}

/* ---------- GitHub 开源 / 分流 ---------- */
.ait-btn-gh svg { width: 18px; height: 18px; }
.ait-gh-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.ait-gh-all {
  font-size: 13.5px;
  color: var(--gray);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.ait-gh-all:hover { color: var(--green); border-color: var(--green); }
.ait-note.ait-gh-tip { margin-top: 12px; }

/* 杀毒软件冲突提示（AI 需要系统权限，安全软件常误拦） */
.ait-note.ait-av-tip {
  margin-top: 14px;
  color: #ffd479;
  background: rgba(255, 190, 60, 0.08);
  border-left: 3px solid rgba(255, 190, 60, 0.6);
  border-radius: 6px;
  padding: 10px 14px;
  line-height: 1.75;
}
.ait-gh-sec { padding-top: 0; }
.ait-gh-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}
.ait-gh-card {
  display: block;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.ait-gh-card:hover {
  border-color: rgba(0, 200, 83, 0.4);
  background: rgba(0, 200, 83, 0.05);
  transform: translateY(-3px);
}
.ait-gh-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 200, 83, 0.12);
  border: 1px solid rgba(0, 200, 83, 0.28);
  color: var(--green-light);
  margin-bottom: 16px;
}
.ait-gh-card .ico svg { width: 22px; height: 22px; }
.ait-gh-card h3 { font-size: 18px; margin: 0 0 8px; color: #fff; }
.ait-gh-card p { margin: 0 0 14px; color: var(--gray); font-size: 14px; line-height: 1.75; }
.ait-gh-card code {
  display: inline-block;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--green-light);
  background: rgba(0, 0, 0, 0.42);
  border: 1px dashed rgba(0, 200, 83, 0.32);
  border-radius: 999px;
  padding: 6px 14px;
}
.ait-gh-tip2 {
  margin: 26px auto 0;
  max-width: 780px;
  text-align: center;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.85;
  word-break: break-word;
}
.ait-gh-tip2 a { color: var(--green-light); word-break: break-all; }
@media (max-width: 768px) {
  .ait-gh-cards { grid-template-columns: 1fr; gap: 16px; }
  .ait-gh-card { padding: 22px 20px; }
  .ait-gh-row { gap: 10px; }
  .ait-gh-tip2 { font-size: 13px; }
}
