/* ===== 在线工具区共用样式 ===== */
:root {
  --navy-950: #0a1628;
  --navy-900: #0f2137;
  --teal-400: #5ec4c4;
  --teal-glow: rgba(94, 196, 196, 0.35);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(15, 33, 55, 0.08);
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.1);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.tools-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.tools-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.tools-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-900);
  transition: opacity 0.2s;
}
.tools-brand:hover { opacity: 0.85; }
.tools-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(94, 196, 196, 0.4);
  box-shadow: 0 0 0 3px rgba(94, 196, 196, 0.12);
}
.tools-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.tools-header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.tools-header-nav a:hover,
.tools-header-nav a.active {
  color: var(--navy-900);
}

/* Layout */
.tools-page {
  min-height: calc(100vh - 72px);
  padding: 32px 0 64px;
}
.tools-page-head {
  margin-bottom: 28px;
}
.tools-page-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.tools-page-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

.tools-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.tools-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.tools-breadcrumb a:hover { color: var(--navy-900); }
.tools-breadcrumb-sep { opacity: 0.5; }

/* Hub grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(94, 196, 196, 0.35);
}
.tool-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(94, 196, 196, 0.2) 0%, rgba(94, 196, 196, 0.06) 100%);
  border: 1px solid rgba(94, 196, 196, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}
.tool-card-icon img {
  display: block;
  width: 24px;
  height: 24px;
}
.tool-card:hover .tool-card-icon {
  border-color: rgba(94, 196, 196, 0.5);
  background: linear-gradient(145deg, rgba(94, 196, 196, 0.28) 0%, rgba(94, 196, 196, 0.1) 100%);
}
.tool-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
}
.tool-card-desc {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.tool-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #2a8f8f;
}

.tools-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--surface);
  border: 1px dashed rgba(15, 33, 55, 0.12);
  border-radius: var(--radius-lg);
}
.tools-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.tools-empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Tool workspace */
.tool-workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  min-height: 320px;
}
.tool-workspace-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--text-muted);
  font-size: 14px;
  border: 2px dashed rgba(15, 33, 55, 0.08);
  border-radius: var(--radius-md);
}

.tool-section {
  margin-top: 40px;
}
.tool-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.tool-section p,
.tool-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.tool-section ol,
.tool-section ul {
  padding-left: 20px;
}
.tool-section li + li { margin-top: 6px; }

/* Buttons */
.tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tools-btn-primary {
  background: linear-gradient(135deg, var(--teal-400) 0%, #3aafaf 100%);
  color: var(--navy-950);
  box-shadow: 0 4px 20px var(--teal-glow);
}
.tools-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--teal-glow);
}

.tools-footer-cta {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, #1a4a5a 100%);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.85);
}
.tools-footer-cta p {
  margin-bottom: 16px;
  font-size: 15px;
}

.tools-site-footer {
  padding: 24px 0 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .tools-header-nav { gap: 16px; }
  .tools-brand-text { display: none; }
  .tool-workspace { padding: 20px; }
}
