/* ============================================================
   批处理大师 Pro · 使用教程 / 使用说明 专属样式
   版本: 20260910   （物理改名发布，破 CDN 缓存）
   设计目标: 眼前一亮、现代不古板；复用站点主色系
   --pri 紫 #6E45E2 / --pri-2 #8B5CF6 / --acc 橙 #FF7A18
   ============================================================ */

/* ---------- 0. 字体与基础增强 ---------- */
.tut-index-hero,
.tut-cat-nav,
.cat-block,
.tut-grid li,
.article-body h2,
.article-body h3,
.nav-prev, .nav-next { font-family: inherit; }

/* ============================================================
   1. 教程首页 Hero（深色渐变 + 光晕 + 玻璃质感）
   ============================================================ */
.tut-index-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 18% -10%, rgba(139,92,246,0.55), transparent 60%),
    radial-gradient(900px 460px at 92% 8%, rgba(255,122,24,0.38), transparent 62%),
    linear-gradient(135deg, #2a1a5e 0%, #4C1D95 42%, #6E45E2 100%);
  isolation: isolate;
}
.tut-index-hero::after {            /* 细腻网格质感 */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 100%);
  opacity: .5;
  pointer-events: none;
}
.tut-hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: .55; pointer-events: none;
  z-index: -1; animation: tut-float 9s ease-in-out infinite;
}
.tut-glow-a { width: 320px; height: 320px; left: 6%; top: 8%; background: radial-gradient(circle, #8B5CF6, transparent 70%); }
.tut-glow-b { width: 280px; height: 280px; right: 8%; top: 18%; background: radial-gradient(circle, #FF7A18, transparent 70%); animation-delay: -4s; }
@keyframes tut-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }

.tut-hero-inner { position: relative; z-index: 1; }
.tut-crumbs { color: rgba(255,255,255,.72) !important; font-size: 13px; margin-bottom: 18px; }
.tut-crumbs a { color: rgba(255,255,255,.72) !important; }
.tut-crumbs a:hover { color: #fff !important; }

.tut-hero-title {
  font-size: 46px; font-weight: 800; line-height: 1.15; margin: 0 0 16px;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #ffffff 0%, #e9e0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 6px 30px rgba(76,29,149,.45);
}
.tut-hero-sub {
  max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,.86);
}
.tut-hero-sub strong { color: #FFD9A8; font-weight: 700; }

.tut-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 8px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tut-hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.25);
}

.tut-hero-stats {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 30px;
}
.tut-stat {
  min-width: 132px; padding: 16px 22px; border-radius: 16px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tut-stat b {
  display: block; font-size: 30px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff, #FFD9A8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tut-stat span { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.8); }

/* Hero 入场动画（纯 CSS，始终执行，无 JS 依赖） */
.tut-hero-inner > * { animation: tut-fade-up .7s both; }
.tut-hero-inner > *:nth-child(1) { animation-delay: .02s; }
.tut-hero-inner > *:nth-child(2) { animation-delay: .10s; }
.tut-hero-inner > *:nth-child(3) { animation-delay: .18s; }
.tut-hero-inner > *:nth-child(4) { animation-delay: .26s; }
.tut-hero-inner > *:nth-child(5) { animation-delay: .34s; }
@keyframes tut-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ============================================================
   2. 分类导航（玻璃药丸，可吸顶）
   ============================================================ */
.tut-cat-nav {
  position: sticky; top: 70px; z-index: 30;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0 8px; padding: 14px 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(76,29,149,.08);
}
.tut-cat-nav a {
  display: inline-flex; align-items: center;
  padding: 7px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--text);
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.tut-cat-nav a:hover,
.tut-cat-nav a:focus-visible {
  transform: translateY(-2px);
  color: var(--pri);
  background: linear-gradient(135deg, #f3eefe, #ece3ff);
  border-color: rgba(110,69,226,.35);
  box-shadow: 0 6px 16px rgba(110,69,226,.16);
  outline: none;
}
/* 滚动高亮：当前所在分类浅紫常亮（清晰不压字） */
.tut-cat-nav a.active {
  color: var(--pri);
  background: linear-gradient(135deg, #ece3ff, #e2d2ff);
  border-color: rgba(110,69,226,.55);
  box-shadow: 0 0 0 3px rgba(110,69,226,.12), 0 4px 12px rgba(110,69,226,.12);
}
.tut-cat-nav a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 8px; background: var(--acc);
}

/* ============================================================
   3. 分类区块 + 工具卡片
   ============================================================ */
.cat-block { scroll-margin-top: 96px; margin: 30px 0; }
.cat-block > h3 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px; padding: 10px 16px;
  font-size: 19px; font-weight: 700;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cat) 12%, #fff), #fff 70%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--cat, var(--pri));
  border-radius: 12px;
}
.cat-block > h3 a { color: inherit !important; text-decoration: none; }
.cat-block > h3 span { color: var(--muted); font-weight: 500; font-size: 14px; }
.cat-block > h3 .tut-cnt {
  margin-left: auto; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--cat, var(--pri));
}

/* 各分类品牌色 */
.cat-block#filename   { --cat: #2f6bff; }
.cat-block#filecontent{ --cat: #0ea5a4; }
.cat-block#extract    { --cat: #16a34a; }
.cat-block#convert    { --cat: #6366f1; }
.cat-block#mergesplit { --cat: #8b5cf6; }
.cat-block#watermark  { --cat: #ec4899; }
.cat-block#property   { --cat: #f59e0b; }
.cat-block#image      { --cat: #e11d48; }
.cat-block#video      { --cat: #06b6d4; }
.cat-block#encrypt    { --cat: #ef4444; }
.cat-block#compress   { --cat: #65a30d; }
.cat-block#download   { --cat: #f97316; }
.cat-block#more       { --cat: #64748b; }

.tut-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.tut-grid li {
  position: relative; overflow: hidden;
  padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tut-grid li::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--cat, var(--pri));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.tut-grid li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.tut-grid li:hover::before { transform: scaleX(1); }
.tut-grid li a.tut-card { text-decoration: none; }
.tut-grid li a.tut-card b { font-size: 15.5px; font-weight: 700; }

/* 整张卡片可点击（拉伸链接）：hover 浮起后点任意位置都能进入 */
.tut-grid li a.tut-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
}
.tut-grid li { cursor: pointer; }
.tut-grid li > span {
  display: block; margin-top: 7px;
  color: var(--muted); font-size: 13px; line-height: 1.7;
}
@media (max-width: 720px) { .tut-grid { grid-template-columns: 1fr; } }

/* ============================================================
   4. 文章页（工具教程）增强 —— 纯 CSS，作用于现有 class
   ============================================================ */
/* 顶部细渐变条 + 轻光晕，让 page-hero 不再平淡 */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--pri), var(--pri-2) 50%, var(--acc));
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(110,69,226,.14), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { position: relative; }

/* 文章卡片：更精致的内边距与圆角 */
.article-body { background: #fff; }
.article-body .meta {
  display: inline-block;
  background: linear-gradient(135deg, rgba(110,69,226,.10), rgba(255,122,24,.08));
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: 13px;
  border-bottom: 1px solid var(--line) !important;
}

/* 小标题：渐变竖条 */
.article-body h2 {
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--pri), var(--pri-2)) 1;
  letter-spacing: .3px;
}
.article-body h3 {
  border-left: 3px solid var(--acc);
  padding-left: 12px; color: var(--text);
}

/* 正文段落更舒展 */
.article-body p { color: #374151; }

/* 有序列表 → 编号步骤 */
.article-body ol { list-style: none; padding-left: 0; counter-reset: tutstep; }
.article-body ol li {
  position: relative; padding-left: 42px; margin-bottom: 14px;
  font-size: 15px; line-height: 1.8;
}
.article-body ol li::before {
  counter-increment: tutstep; content: counter(tutstep);
  position: absolute; left: 0; top: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pri), var(--pri-2));
  box-shadow: var(--shadow);
}
/* 无序列表 → 菱形点缀 */
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 15px; line-height: 1.8; }
.article-body ul li::before {
  content: ""; position: absolute; left: 6px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  transform: rotate(45deg);
}

/* 上一篇 / 下一篇 */
.article-nav { display: flex; gap: 14px; margin: 38px 0 8px; }
.nav-prev, .nav-next {
  flex: 1; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--text); background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nav-prev:hover, .nav-next:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.nav-dir { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.nav-title { font-weight: 600; font-size: 15px; }
.nav-next.disabled { opacity: .45; pointer-events: none; }

/* ============================================================
   5. 滚动揭示动画（由 tut-anim.js 触发；无 JS 时可见）
   ============================================================ */
.tut-anim .tut-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.tut-anim .tut-reveal.in-view { opacity: 1; transform: none; }

/* 阅读进度条（文章页） */
.tut-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--pri), var(--pri-2) 55%, var(--acc));
  box-shadow: 0 1px 6px rgba(110,69,226,.5);
  transition: width .1s linear;
}

/* 降级：不支持 backdrop-filter 的浏览器 */
@supports not (backdrop-filter: blur(2px)) {
  .tut-cat-nav, .tut-hero-pill, .tut-stat { background: rgba(255,255,255,.96); }
  .tut-index-hero .tut-hero-pill, .tut-index-hero .tut-stat { background: rgba(255,255,255,.16); }
}
