/* ============================================
   工具集页（模块大字 + 工具卡片列表）
   ============================================ */

/* ============ 开场 ============ */
.tools-open {
  padding: 0 0 clamp(3.5rem, 7vw, 5.5rem);
}

/* 页面头部统一居中 */
.tools-open .bigword-head {
  text-align: center;
  justify-content: center;
}

.tools-open .kicker {
  justify-content: center;
}

.tools-sub {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ============ 工具卡片列表 ============ */
.tools-list {
  max-width: 880px;
  margin: clamp(2.2rem, 5vw, 3.4rem) auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.45s;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m), 0 0 42px color-mix(in srgb, var(--tone, var(--primary)) 16%, transparent);
  border-color: color-mix(in srgb, var(--tone, var(--primary)) 45%, var(--line));
}

/* ============ 图标位 ============ */
.tool-card .tc-icon {
  flex: none;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-m);
  color: #fff;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--tone, var(--primary)) 82%, #fff 4%) 0%, color-mix(in srgb, var(--tone, var(--primary)) 46%, transparent) 130%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 26px color-mix(in srgb, var(--tone, var(--primary)) 30%, transparent);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s;
}

.tool-card:hover .tc-icon {
  transform: rotate(-5deg) scale(1.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 14px 34px color-mix(in srgb, var(--tone, var(--primary)) 42%, transparent);
}

.tool-card .tc-icon .icon {
  width: 40px;
  height: 40px;
}

/* ============ 内容区 ============ */
.tool-card .tc-body {
  flex: 1;
  min-width: 0;
}

.tool-card .tc-body h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 1.28rem;
}

.tool-card .tc-body .en {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* 在线状态徽标 */
.tool-card .tc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  color: var(--ok);
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.tool-card .tc-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: tc-blink 2.2s ease-in-out infinite;
}

@keyframes tc-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.tool-card .tc-line {
  margin-top: 0.45rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary);
}

.tool-card .tc-desc {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.85;
}

.tool-card .tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.tool-card .tc-tags span {
  font-size: 0.74rem;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  background: var(--bg-mist);
  color: var(--primary);
}

/* ============ 右侧「前往使用」 ============ */
.tool-card .tc-go {
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
  transition: color 0.3s;
}

.tool-card .tc-go .arr {
  transition: transform 0.3s var(--ease-out);
}

.tool-card:hover .tc-go .arr {
  transform: translate(3px, -3px);
}

/* ============ 响应式 ============ */
@media (max-width: 720px) {
  .tool-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.3rem;
  }

  .tool-card .tc-icon {
    width: 68px;
    height: 68px;
  }

  .tool-card .tc-icon .icon {
    width: 32px;
    height: 32px;
  }

  .tool-card .tc-go {
    align-self: auto;
    padding-left: 0;
    border-left: none;
    margin-top: 0.2rem;
  }
}
