/* 给手工具 - 帮助子页面公共样式 */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0f0f1a;
  color: #e4e4e4;
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -30%; left: -15%;
  width: 130%; height: 130%;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(var(--cat-rgb1, 102,126,234), 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 55%, rgba(var(--cat-rgb2, 118,75,162), 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 1;
}

/* 顶部面包屑 */
.top-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 48px;
}
.top-bar a {
  color: rgba(255,255,255,0.35); font-size: 13px;
  text-decoration: none; transition: color .2s;
}
.top-bar a:hover { color: var(--cat-1); }
.top-bar .sep { color: rgba(255,255,255,0.15); font-size: 13px; }

/* 头部 */
.hero { text-align: center; margin-bottom: 48px; }
.hero-icon {
  font-size: 64px; margin-bottom: 16px; display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--cat-1), var(--cat-2), var(--cat-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px; color: rgba(255,255,255,0.4);
  max-width: 520px; margin: 0 auto;
}

/* 工具卡片 */
.tool-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 16px;
  transition: all .25s;
}
.tool-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--cat-1), var(--cat-2));
  opacity: 0;
  transition: opacity .25s;
}
.tool-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}
.tool-card:hover::after { opacity: 1; }

.tool-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tool-emoji { font-size: 22px; flex-shrink: 0; }
.tool-name { font-size: 17px; font-weight: 700; color: #fff; }
.tool-desc p { font-size: 14px; color: rgba(255,255,255,0.68); margin-bottom: 10px; }
.tool-desc p:last-child { margin-bottom: 0; }
.tool-steps { margin-top: 10px; padding-left: 18px; }
.tool-steps li { font-size: 13px; color: rgba(255,255,255,0.52); margin-bottom: 4px; }
.tool-steps li::marker { color: rgba(var(--cat-rgb1), 0.4); }
.tool-link {
  display: inline-block; margin-top: 14px;
  color: var(--cat-1); font-size: 13px;
  text-decoration: none; transition: color .2s;
}
.tool-link:hover { color: var(--cat-2); text-decoration: underline; }

/* 底部导航 */
.bottom-nav {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
}
.bottom-nav a {
  color: rgba(255,255,255,0.4); font-size: 13px;
  text-decoration: none; transition: color .2s;
}
.bottom-nav a:hover { color: var(--cat-1); }
.bottom-nav .center { color: rgba(255,255,255,0.25); font-size: 13px; }

/* 响应式 */
@media (max-width: 600px) {
  .container { padding: 32px 16px 60px; }
  .hero h1 { font-size: 26px; }
  .tool-card { padding: 20px 16px; }
}
