:root {
  --tools-blue: #2f6bff;
  --tools-blue-dark: #1e4fd8;
  --tools-ink: #14213d;
  --tools-muted: #6b7890;
  --tools-line: #e4eaf5;
  --tools-card: #ffffff;
  --tools-bg: #eef4ff;
  --tools-radius: 18px;
  --tools-page: 1200px;
  --tools-shadow: 0 18px 50px rgba(38, 70, 140, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tools-body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--tools-ink);
  background:
    radial-gradient(1100px 520px at 75% -8%, rgba(151, 178, 255, 0.45), transparent 65%),
    radial-gradient(900px 500px at 5% 10%, rgba(217, 227, 255, 0.65), transparent 60%),
    linear-gradient(180deg, #f4f7ff 0%, #f8f9ff 45%, #f5f7fc 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tools-body a { color: inherit; text-decoration: none; }
.tools-body button { font: inherit; }
.tools-body svg { flex: 0 0 auto; }

.tools-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 234, 245, 0.8);
}

.tools-header-inner {
  width: min(var(--tools-page), calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
}

.tools-brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.tools-brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #5b8cff, #2f6bff 60%, #1c46d8);
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.32);
}
.tools-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.tools-brand-text strong { font-size: 19px; letter-spacing: 0.01em; }
.tools-brand-text small { margin-top: 4px; color: #93a0b8; font-size: 9px; letter-spacing: 0.18em; }

.tools-nav { display: flex; align-items: center; gap: 30px; margin-left: 8px; }
.tools-nav a {
  position: relative; padding: 25px 0 23px; color: #53627c; font-size: 15px; font-weight: 500;
}
.tools-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 0; height: 3px;
  border-radius: 3px; background: var(--tools-blue); transform: translateX(-50%); transition: width .2s;
}
.tools-nav a:hover { color: var(--tools-blue); }
.tools-nav a.is-active { color: var(--tools-blue); font-weight: 700; }
.tools-nav a.is-active::after { width: 18px; }

.tools-header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tools-login { color: #53627c; font-size: 14px; }
.tools-login:hover { color: var(--tools-blue); }
.tools-cta {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 999px; color: var(--tools-blue) !important; font-size: 14px; font-weight: 700;
  background: #fff; border: 1px solid #cbdcff; box-shadow: 0 6px 16px rgba(47, 107, 255, .1);
}
.tools-cta:hover { background: #f2f6ff; }
.tools-menu {
  display: none; width: 40px; height: 40px; border: 1px solid var(--tools-line);
  border-radius: 10px; background: #fff; color: var(--tools-ink); cursor: pointer;
}

.tools-main { width: min(var(--tools-page), calc(100% - 48px)); margin: 0 auto; padding-bottom: 50px; flex: 1 0 auto; }

.tools-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 40px; padding: 58px 0 36px;
}
.tools-eyebrow {
  display: flex; align-items: center; gap: 6px; margin: 0 0 12px;
  color: #8e9ab1; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.tools-hero .tools-eyebrow { color: var(--tools-blue); }
.tools-hero h1 {
  margin: 0 0 18px; color: #0e1a33; font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 800;
}
.tools-lede { margin: 0 0 28px; max-width: 560px; color: #5d6d88; font-size: 17px; line-height: 1.75; }
.tools-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tools-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 132px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.tools-btn:hover { transform: translateY(-1px); }
.tools-btn--primary { color: #fff !important; background: linear-gradient(135deg, #4d82ff, #2f6bff); box-shadow: 0 12px 26px rgba(47, 107, 255, .3); }
.tools-btn--primary:hover { box-shadow: 0 16px 30px rgba(47, 107, 255, .38); }
.tools-btn--ghost { color: #33518f !important; background: #fff; border: 1px solid #d9e4fb; }
.tools-hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 32px; color: #7b869b; font-size: 13px; }
.tools-hero-stats strong { color: #1b2c4f; font-size: 20px; margin-right: 4px; }

.tools-hero-art { position: relative; min-height: 390px; }
.tools-blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.tools-blob--a { inset: 8% 2% 12% 12%; background: radial-gradient(circle at 35% 30%, #dbe7ff, #b8cdff 45%, #e9efff 70%); opacity: .9; }
.tools-blob--b { width: 180px; height: 180px; right: 2%; top: 2%; background: radial-gradient(circle, #e7d9ff, #cfc0ff 60%, transparent 70%); opacity: .8; }
.tools-art-window {
  position: absolute; left: 4%; top: 12%; width: 74%; padding: 14px; border-radius: 20px;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 60px rgba(53, 83, 150, .18); transform: rotate(-4deg);
}
.tools-art-dots { display: flex; gap: 5px; margin: 0 0 12px 2px; }
.tools-art-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d7deee; }
.tools-art-dots i:first-child { background: #ff9a8a; }
.tools-art-dots i:nth-child(2) { background: #ffd479; }
.tools-art-dots i:nth-child(3) { background: #86d9a4; }
.tools-art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tools-art-grid span {
  display: grid; place-items: center; min-height: 96px; border-radius: 14px; color: #fff;
  box-shadow: 0 12px 20px rgba(50, 80, 150, .14);
}
.tools-art-grid .is-blue { background: linear-gradient(145deg, #6ba0ff, #2f6bff); }
.tools-art-grid .is-orange { background: linear-gradient(145deg, #ffb16e, #ff7a3d); }
.tools-art-grid .is-green { background: linear-gradient(145deg, #65d6b0, #21a67d); }
.tools-art-grid .is-purple { background: linear-gradient(145deg, #b394ff, #7657e8); }
.tools-art-bot {
  position: absolute; right: 1%; bottom: 8%; width: 128px; height: 148px; border-radius: 46px 46px 38px 38px;
  background: linear-gradient(160deg, #f4f8ff, #cfdcf8); border: 1px solid #fff;
  box-shadow: 0 24px 40px rgba(53, 83, 150, .25); display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 12px;
}
.tools-art-bot .tools-bot-eye { width: 18px; height: 24px; border-radius: 9px; background: #13294f; box-shadow: inset 0 -6px 0 #3e7bff; }
.tools-art-bot i { width: 44px; height: 8px; border-radius: 6px; background: #8fa6cb; margin-top: 10px; }
.tools-art-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px;
  border-radius: 999px; background: #fff; color: #3c4f72; font-size: 12px; font-weight: 600;
  box-shadow: 0 12px 26px rgba(53, 83, 150, .16);
}
.tools-art-chip--a { left: 0; top: 4%; color: #1f8a63; }
.tools-art-chip--b { right: 6%; top: 36%; color: #5b4bd6; }

.tools-workspace { padding: 14px 0 10px; }
.tools-sidebar { position: sticky; top: 92px; }
.tools-side-title { margin: 0 0 12px; padding-left: 12px; color: #a0aabd; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tools-side-link {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; margin-bottom: 4px;
  border-radius: 11px; color: #5c6a83; font-size: 14px; font-weight: 500;
}
.tools-side-link span { flex: 1; }
.tools-side-link b { color: #a7b2c4; font-size: 11px; font-weight: 500; }
.tools-side-link:hover { color: var(--tools-blue); background: rgba(255,255,255,.72); }
.tools-side-link.is-active { color: var(--tools-blue); background: #fff; box-shadow: 0 10px 24px rgba(47,107,255,.1); font-weight: 700; }
.tools-side-link.is-active b { color: var(--tools-blue); }
.tools-side-note { margin-top: 22px; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #e9f0ff, #f5f8ff); border: 1px solid #dbe6ff; }
.tools-side-note strong { display: block; margin-bottom: 6px; color: #263c66; font-size: 13px; }
.tools-side-note p { margin: 0 0 10px; color: #73829c; font-size: 12px; line-height: 1.7; }
.tools-side-note a { display: inline-flex; align-items: center; gap: 4px; color: var(--tools-blue); font-size: 12px; font-weight: 600; }

.tools-content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 2px 22px; }
.tools-content-head .tools-eyebrow { margin-bottom: 6px; }
.tools-content-head h2 { margin: 0; color: #14213d; font-size: 28px; letter-spacing: -.03em; }
.tools-content-sub { margin: 8px 0 0; color: #7c8aa2; font-size: 13px; }
.tools-count {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e0e8f6; color: #5b6d8c;
  font-size: 12px; font-weight: 600; box-shadow: 0 6px 16px rgba(40, 68, 130, .05);
}
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tools-app-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tools-grid .tool-card,
.tools-app-grid .tool-card { min-height: 132px; padding: 20px; }
.tools-app-grid .tool-card { flex: 0 1 calc(25% - 12px); }
.tools-grid .tool-icon,
.tools-app-grid .tool-icon { width: 50px; height: 50px; border-radius: 14px; }
.tools-grid .tool-title,
.tools-app-grid .tool-title { font-size: 16px; }
.tools-grid .tool-desc,
.tools-app-grid .tool-desc { margin-top: 8px; font-size: 12.5px; }
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-app-grid .tool-card { flex-basis: calc(33.333% - 11px); }
}
@media (max-width: 820px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-app-grid .tool-card { flex-basis: calc(50% - 8px); }
}
@media (max-width: 560px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-app-grid .tool-card { flex-basis: 100%; }
}
.tool-card {
  display: flex; align-items: flex-start; gap: 13px; min-height: 112px; padding: 18px;
  background: #fff; border: 1px solid rgba(224, 232, 247, .9); border-radius: 15px;
  box-shadow: 0 4px 14px rgba(40, 68, 130, .04); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-3px); border-color: #c9d9ff; box-shadow: 0 18px 36px rgba(47, 107, 255, .12); }
.tool-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tool-color, #4f7cff) 78%, #fff), var(--tool-color, #4f7cff));
  box-shadow: 0 10px 18px color-mix(in srgb, var(--tool-color, #4f7cff) 26%, transparent);
}
.tool-copy { flex: 1; min-width: 0; }
.tool-title { display: flex; align-items: center; gap: 6px; color: #1b2a46; font-size: 15px; font-weight: 700; }
.tool-title em { padding: 1px 6px; border-radius: 5px; color: #fff; background: #ff7a3d; font-size: 9px; font-style: normal; }
.tool-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 7px; color: #8793a8; font-size: 12px; line-height: 1.65; }
.tool-arrow { margin-left: auto; color: #c2ccdd; transition: color .18s, transform .18s; }
.tool-card:hover .tool-arrow { color: var(--tools-blue); transform: translate(2px, -2px); }
.tools-empty { padding: 60px 20px; text-align: center; color: #8793a8; background: #fff; border-radius: 16px; border: 1px dashed #d5e0f2; }
.tools-empty a { color: var(--tools-blue); font-weight: 600; }

.tools-quick { margin-top: 38px; padding: 26px 28px; border-radius: 20px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 16px 40px rgba(50, 80, 150, .07); }
.tools-quick-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tools-quick-head h2 { margin: 0; font-size: 20px; }
.tools-quick-head > a { display: inline-flex; align-items: center; gap: 4px; color: #7d8ba2; font-size: 13px; }
.tools-quick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.tools-quick-item { flex: 1 1 200px; max-width: 300px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; color: #344563; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid #e8eef8; }
.tools-quick-item:hover { border-color: #c9d9ff; color: var(--tools-blue); }
.tools-quick-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--tool-color, #4f7cff); }

.tools-footer { margin-top: auto; border-top: 1px solid rgba(219, 228, 244, .9); background: rgba(255,255,255,.62); }
.tools-footer-inner { width: min(var(--tools-page), calc(100% - 48px)); margin: 0 auto; padding: 30px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; color: #8390a6; font-size: 12px; }
.tools-footer strong { color: #263857; font-size: 15px; }
.tools-footer p { margin: 7px 0 0; }
.tools-footer-links { display: flex; gap: 18px; }
.tools-footer-links a:hover { color: var(--tools-blue); }

@media (max-width: 1100px) {
  .tools-hero { grid-template-columns: 1fr; padding-top: 38px; }
  .tools-hero-art { min-height: 300px; max-width: 560px; width: 100%; margin: 0 auto; }
  .tools-workspace { grid-template-columns: 1fr; gap: 18px; }
  .tools-sidebar { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .tools-side-title, .tools-side-note { display: none; }
  .tools-side-link { flex: 0 0 auto; min-height: 38px; padding: 0 14px; margin: 0; border: 1px solid #e3eaf6; background: rgba(255,255,255,.7); }
  .tools-side-link b { display: none; }
}

@media (max-width: 860px) {
  .tools-header-inner { width: 100%; padding: 0 15px; }
  .tools-main, .tools-footer-inner { width: min(100% - 30px, var(--tools-page)); }
  .tools-header-inner { height: 62px; gap: 12px; }
  .tools-brand { min-width: 0; }
  .tools-brand-text small { display: none; }
  .tools-nav {
    display: none; position: absolute; left: 15px; right: 15px; top: 62px; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: #fff; border: 1px solid var(--tools-line); border-radius: 14px; box-shadow: var(--tools-shadow);
  }
  .tools-nav.is-open { display: flex; }
  .tools-nav a { padding: 13px 12px; border-radius: 9px; }
  .tools-nav a::after { display: none; }
  .tools-nav a.is-active { background: #eef4ff; }
  .tools-login, .tools-cta { display: none; }
  .tools-menu { display: grid !important; place-items: center; margin-left: auto; }
  .tools-hero { padding: 26px 0 20px; gap: 18px; }
  .tools-hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .tools-lede { font-size: 15px; }
  .tools-hero-stats { gap: 16px; margin-top: 22px; }
  .tools-hero-stats strong { font-size: 17px; }
  .tools-hero-art { min-height: 230px; }
  .tools-art-window { width: 70%; left: 6%; top: 9%; }
  .tools-art-grid span { min-height: 64px; }
  .tools-art-bot { width: 88px; height: 104px; border-radius: 30px; }
  .tools-art-bot .tools-bot-eye { width: 12px; height: 17px; }
  .tools-art-chip { display: none; }
  .tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { min-height: 0; padding: 14px; }
  .tools-quick { padding: 18px; margin-top: 24px; }
  .tools-quick-row { grid-template-columns: 1fr 1fr; }
  .tools-footer-inner { flex-direction: column; gap: 14px; padding: 22px 0; }
}

@media (max-width: 520px) {
  .tools-main { width: calc(100% - 24px); }
  .tools-hero-art { min-height: 190px; }
  .tools-art-grid span { min-height: 52px; }
  .tools-art-grid span svg { width: 18px; height: 18px; }
  .tools-hero-actions { flex-direction: column; align-items: stretch; }
  .tools-hero-actions .tools-btn { flex: none; width: 100%; min-width: 0; height: 42px; padding: 0 12px; font-size: 13px; }
  .tools-hero-stats span:nth-child(3) { display: none; }
  .tools-content-head h2 { font-size: 20px; }
  .tools-quick-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tools-quick-item { padding: 10px; font-size: 12px; gap: 8px; }
  .tools-quick-icon { width: 32px; height: 32px; }
  .tools-footer-links { flex-wrap: wrap; }
}

/* mobile width guard */
@media (max-width: 860px) {
  html, body.tools-body { width: 100%; max-width: 100vw; overflow-x: hidden; }
  .tools-header-inner {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 15px;
  }
  .tools-main {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .tools-hero,
  .tools-hero-copy,
  .tools-workspace,
  .tools-content,
  .tools-quick,
  .tools-footer-inner,
  .tools-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
  .tools-hero h1,
  .tools-lede {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .tools-hero-art { width: 100%; max-width: 100%; overflow: hidden; }
  .tools-header-actions { flex: 0 0 auto; }
  .tools-menu { display: grid !important; }
}

.tool-icon--image { overflow: hidden; background: #fff; border: 1px solid #e5ebf7; }
.tool-icon--image img { width: 100%; height: 100%; object-fit: cover; }
.tools-art-grid img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.tools-quick-item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tools-quick-item b { font-size: 13px; font-weight: 700; color: #344563; }
.tools-quick-item small { overflow: hidden; color: #98a2b5; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

/* Entry subpages */
.entry-main { padding-bottom: 60px; }
.entry-hero { padding: 46px 4px 26px; max-width: 860px; }
.entry-hero h1 { margin: 0 0 14px; color: #0e1a33; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.12; }
.entry-hero-text { margin: 0 0 22px; max-width: 680px; color: #66748e; font-size: 15px; line-height: 1.8; }
.entry-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tabs a { padding: 8px 15px; border-radius: 999px; border: 1px solid #e1e8f5; background: #fff; color: #66748e; font-size: 13px; font-weight: 600; }
.entry-tabs a:hover { border-color: #c9d9ff; color: #2f6bff; }
.entry-tabs a.is-active { color: #fff; background: #2f6bff; border-color: #2f6bff; }
.entry-section { margin-top: 18px; }
.entry-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 16px; }
.entry-section-head h2 { margin: 0; color: #172540; font-size: 21px; letter-spacing: -.02em; }
.entry-section-head span { color: #98a2b5; font-size: 12px; }
.entry-back { display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 0; color: #7b8aa2; font-size: 13px; }
.entry-back:hover { color: #2f6bff; }
.entry-detail-head { display: flex; align-items: flex-start; gap: 22px; padding: 26px 0 20px; border-bottom: 1px solid #e5ecf7; }
.entry-detail-icon { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 800; background: linear-gradient(145deg, #6b93ff, var(--app-color, #4F7CFF)); box-shadow: 0 16px 30px rgba(47,107,255,.18); }
.entry-detail-icon--image { overflow: hidden; background: #fff; border: 1px solid #e5ecf7; }
.entry-detail-icon--image img { width: 100%; height: 100%; object-fit: cover; }
.entry-detail-copy { min-width: 0; }
.entry-detail-copy h1 { margin: 0 0 8px; color: #101b33; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.04em; }
.entry-detail-copy > p:not(.tools-eyebrow) { margin: 0 0 18px; color: #6f7c93; font-size: 15px; line-height: 1.75; }
.entry-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.entry-detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 16px; margin-top: 20px; }
.entry-panel { padding: 22px; background: #fff; border: 1px solid #e6edf8; border-radius: 16px; box-shadow: 0 6px 18px rgba(40,70,130,.04); }
.entry-panel h2 { margin: 0 0 14px; font-size: 17px; color: #1b2a46; }
.entry-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.entry-feature-list li { display: grid; gap: 3px; padding-left: 18px; position: relative; }
.entry-feature-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #2f6bff; }
.entry-feature-list b { color: #26364f; font-size: 14px; }
.entry-feature-list span { color: #8793a8; font-size: 12px; line-height: 1.6; }
.entry-meta-list { margin: 0; display: grid; gap: 10px; }
.entry-meta-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #edf1f8; padding-bottom: 9px; }
.entry-meta-list dt { color: #98a2b5; font-size: 12px; }
.entry-meta-list dd { margin: 0; color: #26364f; font-size: 12px; font-weight: 600; text-align: right; }
.entry-muted { color: #98a2b5; font-size: 13px; }
.entry-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.entry-gallery img { width: 100%; border-radius: 14px; border: 1px solid #e6edf8; object-fit: cover; }
.entry-prose { max-width: 900px; color: #4f5e77; font-size: 14px; line-height: 1.85; }
.entry-prose img { max-width: 100%; border-radius: 12px; }
.entry-system-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.entry-system-grid > * { flex: 1 1 250px; min-width: 0; }
.entry-system-grid:has(> :nth-child(2):last-child) { max-width: 840px; margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) {
  .entry-system-grid > * { flex-basis: calc(50% - 8px); }
}
@media (max-width: 700px) {
  .entry-system-grid > * { flex-basis: 100%; }
}
.entry-system-card { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid #e6edf8; box-shadow: 0 10px 26px rgba(40,70,130,.05); }
.entry-system-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--sys-color, #4F7CFF); box-shadow: 0 10px 20px color-mix(in srgb, var(--sys-color, #4F7CFF) 25%, transparent); }
.entry-system-card h2 { margin: 16px 0 7px; font-size: 20px; }
.entry-system-card p { margin: 0 0 18px; color: #7b879c; font-size: 13px; line-height: 1.7; }

@media (max-width: 860px) {
  .entry-hero { padding-top: 26px; }
  .entry-detail-head { flex-direction: column; gap: 14px; }
  .entry-detail-icon { width: 74px; height: 74px; border-radius: 20px; font-size: 24px; }
  .entry-detail-grid { grid-template-columns: 1fr; }
  .entry-panel { padding: 18px; }
}
.tools-art-initial { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }

/* Image containment: prevent uploaded icons/screenshots overflowing cards */
.tool-icon { overflow: hidden; }
.tool-icon > img,
.tool-icon--image > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.tools-art-window { overflow: hidden; }
.tools-art-grid span { overflow: hidden; }
.tools-art-grid img {
  display: block;
  width: 42px !important;
  height: 42px !important;
  max-width: 70%;
  max-height: 70%;
  object-fit: cover;
  border-radius: 10px;
}
.entry-detail-icon img, .m-detail-icon img { max-width: 100%; max-height: 100%; object-fit: cover; }

/* Footer / customer service / contact */
.tools-footer-inner { align-items: flex-start; gap: 40px; }
.tools-footer-brand { max-width: 300px; }
.tools-footer-brand p { margin: 8px 0 10px; line-height: 1.7; }
.tools-icp { color: #9aa5b7; font-size: 11px; }
.tools-footer-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.tools-footer-cols h4 { margin: 0 0 10px; color: #344563; font-size: 12px; }
.tools-footer-cols a, .tools-footer-cols span { display: block; margin: 6px 0; color: #8390a6; font-size: 12px; }
.tools-footer-cols a:hover { color: #2f6bff; }
.tools-footer-bottom { width: min(var(--tools-page), calc(100% - 48px)); margin: 0 auto; padding: 14px 0 22px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #e8eef8; color: #9aa5b7; font-size: 11px; }
.tools-footer-bottom a { color: #9aa5b7; }
.tools-service {
  position: fixed; right: 22px; bottom: 26px; z-index: 40;
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
  border-radius: 999px; color: #fff !important; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #6b8cff, #2f6bff);
  box-shadow: 0 14px 30px rgba(47, 107, 255, .3);
}
.tools-service:hover { transform: translateY(-1px); }
.entry-contact-qr { display: block; width: 126px; height: 126px; margin: 12px 0; border-radius: 10px; object-fit: cover; border: 1px solid #e6edf8; }

@media (max-width: 860px) {
  .tools-footer-inner { flex-direction: column; gap: 20px; }
  .tools-footer-cols { gap: 26px; }
  .tools-footer-bottom { width: calc(100% - 30px); flex-direction: column; gap: 6px; padding-bottom: 16px; }
  .tools-service { right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); height: 40px; padding: 0 13px; }
}

.tools-footer-inner { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 40px; }
.tools-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; min-width: 0; }
.tools-footer-cols > div { min-width: 0; }
.tools-footer-cols a, .tools-footer-cols span { overflow-wrap: anywhere; }

.tools-brand-mark img, .m-brand > span img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
.entry-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.entry-detail-badges span, .entry-detail-badges em { padding: 3px 9px; border-radius: 999px; background: #eef3ff; color: #4770d8; font-size: 11px; font-style: normal; font-weight: 600; }
.entry-detail-badges em { color: #e04f16; background: #fff1e8; }
.entry-detail-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; color: #8a96aa; font-size: 11px; }
.entry-detail-stats b { display: block; margin-bottom: 2px; color: #21314f; font-size: 17px; }
.entry-release-list { display: grid; gap: 8px; }
.entry-release-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #edf1f8; }
.entry-release-row > div { display: grid; gap: 2px; }
.entry-release-row b { color: #26364f; font-size: 13px; }
.entry-release-row span { color: #98a2b5; font-size: 11px; }
.entry-release-row > a { display: inline-flex; align-items: center; gap: 4px; color: #2f6bff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.entry-shot { display: block; overflow: hidden; border-radius: 14px; border: 1px solid #e6edf8; background: #fff; }
.entry-shot img { transition: transform .25s; }
.entry-shot:hover img { transform: scale(1.02); }
.entry-lightbox { position: fixed; inset: 0; z-index: 999; display: none; place-items: center; padding: 40px; background: rgba(11, 18, 32, .86); }
.entry-lightbox.is-open { display: grid; }
.entry-lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.entry-lightbox button { position: absolute; top: 18px; right: 24px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* Logo size guard */
.tools-brand-mark {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  overflow: hidden;
  border-radius: 9px;
}
.tools-brand-mark img {
  width: 100% !important;
  height: 100% !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  box-sizing: border-box;
  padding: 2px;
}
.tools-brand-text strong { font-size: 18px; }
.m-brand > span {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  overflow: hidden;
}
.m-brand > span img {
  width: 100% !important;
  height: 100% !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  padding: 1px;
  box-sizing: border-box;
}

/* Rich detail layout */
.entry-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 26px;
}
.entry-info-strip > div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  border: 1px solid #e5ecf7;
  box-shadow: 0 6px 18px rgba(40,70,130,.04);
}
.entry-info-strip span { display: block; margin-bottom: 5px; color: #98a2b5; font-size: 11px; }
.entry-info-strip b { color: #1d2c49; font-size: 19px; letter-spacing: -.02em; }
.entry-feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.entry-feature-card {
  position: relative;
  flex: 0 1 calc(25% - 9px);
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5ecf7;
  box-shadow: 0 6px 18px rgba(40,70,130,.04);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
@media (max-width: 1100px) {
  .entry-feature-card { flex-basis: calc(33.333% - 8px); }
}
@media (max-width: 820px) {
  .entry-feature-card { flex-basis: calc(50% - 6px); }
}
@media (max-width: 560px) {
  .entry-feature-card { flex-basis: 100%; }
}
.entry-feature-card:hover { transform: translateY(-2px); border-color: #c9d9ff; box-shadow: 0 16px 32px rgba(47,107,255,.1); }
.entry-feature-num { position: absolute; top: 16px; right: 16px; color: #cbd5e6; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.entry-feature-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  margin-bottom: 14px; color: #2f6bff; background: #eef3ff;
}
.entry-feature-card:nth-child(3n+2) .entry-feature-icon { color: #7c5cfa; background: #f2edff; }
.entry-feature-card:nth-child(3n) .entry-feature-icon { color: #1f9d78; background: #e9f8f2; }
.entry-feature-card h3 { margin: 0 0 7px; color: #1b2a46; font-size: 15px; }
.entry-feature-card p { margin: 0; color: #8290a6; font-size: 12px; line-height: 1.7; }
.entry-panel-head { margin-bottom: 16px; }
.entry-panel-kicker { display: block; margin-bottom: 4px; color: #a0aabd; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.entry-panel-head h2 { margin: 0; }
.entry-about .entry-prose { max-height: none; }
.entry-prose { color: #52617a; font-size: 13px; line-height: 1.9; }
.entry-prose > :first-child { margin-top: 0; }
.entry-prose h2 {
  position: relative; margin: 24px 0 10px; padding-left: 12px;
  color: #1b2a46; font-size: 19px; line-height: 1.35;
}
.entry-prose h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: #2f6bff; }
.entry-prose h3 { margin: 18px 0 8px; color: #26364f; font-size: 15px; }
.entry-prose p { margin: 0 0 12px; }
.entry-prose ul, .entry-prose ol { margin: 0 0 14px; padding-left: 20px; }
.entry-prose li { margin: 5px 0; }
.entry-prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid #9db8ff; border-radius: 0 10px 10px 0; background: #f4f7ff; color: #5f6f88; }
.entry-prose img { display: block; max-width: 100%; margin: 16px 0; border-radius: 12px; border: 1px solid #e5ecf7; }
.entry-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 12px; }
.entry-prose th, .entry-prose td { padding: 9px 10px; border: 1px solid #e8eef8; text-align: left; }
.entry-prose th { background: #f5f8ff; color: #344563; }
.entry-release-list { display: grid; gap: 0; }
.entry-release-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 11px 0 11px 16px; border-bottom: 1px dashed #edf1f8;
}
.entry-release-row:last-child { border-bottom: 0; }
.entry-release-dot { position: absolute; left: 0; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e6; }
.entry-release-row.is-latest .entry-release-dot { background: #2f6bff; box-shadow: 0 0 0 4px rgba(47,107,255,.12); }
.entry-release-main { flex: 1; min-width: 0; }
.entry-release-title { display: flex; align-items: center; gap: 6px; }
.entry-release-title b { color: #26364f; font-size: 13px; }
.entry-release-title em { padding: 1px 6px; border-radius: 5px; background: #eef3ff; color: #2f6bff; font-size: 9px; font-style: normal; font-weight: 700; }
.entry-release-main > span { display: block; margin-top: 3px; color: #98a2b5; font-size: 11px; }
.entry-release-download { display: inline-flex; align-items: center; gap: 4px; color: #2f6bff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.entry-release-download:hover { color: #1e4fd8; }
@media (max-width: 860px) {
  .entry-info-strip { grid-template-columns: 1fr 1fr; }
  .entry-feature-grid { grid-template-columns: 1fr; }
}

/* Zoomable lightbox */
.entry-lightbox { touch-action: none; overscroll-behavior: contain; }
.entry-lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.entry-lightbox img { transform-origin: center center; will-change: transform; touch-action: none; user-select: none; cursor: zoom-in; }
.entry-lightbox-close { position: absolute; top: 16px; right: 20px; z-index: 2; }
.entry-lightbox-hint { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; color: rgba(255,255,255,.65); font-size: 11px; text-align: center; pointer-events: none; }

/* QR entries for web systems / business systems */
.entry-qr-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.entry-qr-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #f7f9ff; border: 1px solid #e8eef9; }
.entry-qr-code { width: 88px; height: 88px; flex: 0 0 88px; display: grid; place-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.entry-qr-code svg { width: 100%; height: 100%; display: block; }
.entry-qr-card b { display: block; color: #26364f; font-size: 12px; }
.entry-qr-card span { display: block; margin-top: 3px; color: #98a2b5; font-size: 10px; word-break: break-all; }
.entry-system-qr { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e8eef9; }
.entry-system-qr svg { width: 92px; height: 92px; display: block; }
.entry-system-qr span { color: #98a2b5; font-size: 10px; }
.entry-release-qr { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; padding: 2px; border-radius: 6px; background: #fff; border: 1px solid #e8eef9; }
.entry-release-qr svg { width: 100%; height: 100%; display: block; }

/* Compact QR cards */
.entry-qr-grid { gap: 8px; }
.entry-qr-card {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; max-width: 270px;
  border: 1px solid #dfe8f6; border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: 0 6px 16px rgba(40, 70, 130, .06);
}
.entry-qr-card--download { border-color: #d7e3ff; background: linear-gradient(180deg, #ffffff, #f2f6ff); }
.entry-qr-code {
  position: relative; width: 62px; height: 62px; flex: 0 0 62px;
  padding: 4px; border: 1px solid #e4ebf7; border-radius: 8px; background: #fff;
}
.entry-qr-code::after {
  content: ""; position: absolute; inset: -4px; border: 1px dashed #cfdcf5; border-radius: 10px; pointer-events: none;
}
.entry-qr-card b { font-size: 11.5px; }
.entry-qr-card span { font-size: 9.5px; }
.entry-release-qr { width: 30px; height: 30px; flex: 0 0 30px; padding: 1px; border-radius: 5px; border: 1px solid #dfe8f6; background: #fff; }
.entry-release-qr svg { width: 100%; height: 100%; }

/* Homepage search */
.tools-search {
  display: flex; align-items: center; gap: 6px; width: min(560px, 100%);
  margin: 22px 0 10px; padding: 5px; background: #fff;
  border: 1px solid #dfe7f5; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(46, 76, 140, .10);
}
.tools-search-icon { margin-left: 9px; color: #8b98ad; display: grid; place-items: center; }
.tools-search input {
  flex: 1; min-width: 0; height: 42px; border: 0; outline: 0;
  background: transparent; color: #1f2d46; font-size: 14px;
}
.tools-search input::placeholder { color: #9da8ba; }
.tools-search select {
  height: 36px; border: 0; outline: 0; border-radius: 9px;
  background: #f3f6fc; color: #506078; font-size: 12px; padding: 0 7px;
}
.tools-search button {
  height: 42px; padding: 0 18px; border: 0; border-radius: 10px;
  background: #2f5cff; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
}
.tools-search button:hover { background: #2148d8; }
.tools-search-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 4px; color: #9aa5b7; font-size: 11px; }
.tools-search-hot a { color: #6d7c93; background: #f1f5fc; padding: 3px 8px; border-radius: 999px; }
.tools-search-hot a:hover { color: #2f5cff; }
/* Search simplification: no category dropdown and no hot links under the search box */
.tools-search select { display: none; }
.tools-search-hot { display: none; }
.search-hero .search-hot { display: none; }

/* Search page */
.search-hero { padding: 28px 0 10px; }
.search-hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; color: #1f2d46; }
.search-hero > p { max-width: 620px; color: #7d8ca3; font-size: 13px; line-height: 1.8; }
.search-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 10px; }
.search-tab { padding: 6px 13px; border-radius: 999px; background: #f1f5fc; color: #718198; font-size: 12px; }
.search-tab.is-active, .search-tab:hover { background: #2f5cff; color: #fff; }
.search-results { padding: 18px 0 10px; }
.search-result-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.search-result-head h2 { margin: 4px 0 0; font-size: 22px; color: #1f2d46; }
.search-result-head > span { color: #9aa5b7; font-size: 11px; }
.search-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.search-result-card {
  display: flex; gap: 11px; padding: 12px; min-width: 0;
  background: #fff; border: 1px solid #e6ecf7; border-radius: 13px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.search-result-card:hover { border-color: #b9cbef; box-shadow: 0 10px 24px rgba(47, 92, 255, .08); transform: translateY(-1px); }
.search-result-thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; overflow: hidden; background: #eef3fb; display: grid; place-items: center; }
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-thumb--letter { color: #2f5cff; font-weight: 800; font-size: 20px; }
.search-result-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-result-top { display: flex; gap: 6px; align-items: center; }
.search-result-source { color: #2f5cff; font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.search-result-type { color: #a0aaba; font-size: 9px; }
.search-result-title { color: #1f2d46; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-desc { color: #8795a9; font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result-meta { display: flex; align-items: center; gap: 3px; color: #aab3c1; font-size: 9px; }
.search-result-meta i { font-style: normal; display: inline-flex; }
.search-provider-note { margin: 0 0 10px; color: #b07a2b; background: #fff8e8; border: 1px solid #f4e3bd; padding: 7px 10px; border-radius: 8px; font-size: 11px; }
.search-empty { padding: 46px 20px; text-align: center; border: 1px dashed #dbe5f4; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8faff); }
.search-empty > span { color: #b8c8e5; display: flex; justify-content: center; }
.search-empty h2 { margin: 10px 0 5px; color: #2b3b55; font-size: 17px; }
.search-empty p { margin: 0; color: #96a3b6; font-size: 12px; }
.search-hot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-size: 11px; color: #9aa5b7; }
.search-hot a { padding: 4px 9px; border-radius: 999px; background: #f1f5fc; color: #6f7f96; }
.search-hot a:hover { color: #2f5cff; }
.search-pager { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 4px; color: #8795a9; font-size: 12px; }
.search-pager a { padding: 7px 12px; border: 1px solid #e1e9f6; border-radius: 8px; background: #fff; color: #4e6280; }
.search-legal { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid #edf1f8; color: #a6afbd; font-size: 10px; line-height: 1.7; }

@media (max-width: 760px) {
  .tools-search { width: 100%; }
  .search-result-grid { grid-template-columns: 1fr; }
}

/* Centered homepage hero, no illustration */
.tools-hero {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  text-align: center;
  padding: 54px 0 30px;
}
.tools-hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.tools-hero .tools-eyebrow { justify-content: center; }
.tools-hero h1 { max-width: 900px; }
.tools-lede { max-width: 620px; margin-left: auto; margin-right: auto; }
.tools-search { width: min(640px, 100%); margin: 22px auto 10px; }
.tools-search-hot { justify-content: center; }
.tools-hero-actions { justify-content: center; }
.tools-hero-stats { justify-content: center; }

/* Centered search page header */
.search-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.search-hero > p { margin-left: auto; margin-right: auto; }
.search-hero .tools-search { margin-left: auto; margin-right: auto; }
.search-tabs { justify-content: center; }
.search-hot { justify-content: center; }

/* AI search */
.tools-ai-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 7px 12px; border-radius: 999px; border: 1px solid #dfe7f5;
  background: #fff; color: #5d6d88; font-size: 12px; cursor: pointer;
  box-shadow: 0 8px 18px rgba(46, 76, 140, .06);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tools-ai-toggle:hover { border-color: #c2d2f3; box-shadow: 0 10px 22px rgba(46, 76, 140, .1); }
.tools-ai-toggle input { width: 15px; height: 15px; accent-color: #2f6bff; }
.tools-ai-toggle small { color: #98a2b5; font-size: 10px; }
.tools-ai-badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 5px; background: linear-gradient(135deg, #8b6cff, #2f6bff);
  color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .05em;
}
.search-hero .tools-ai-toggle { margin-top: 10px; }
.ai-answer-card {
  margin: 4px 0 22px; padding: 22px 24px; border-radius: 18px;
  border: 1px solid #e3ddff;
  background: linear-gradient(135deg, #f7f4ff 0%, #fff 62%);
  box-shadow: 0 18px 40px rgba(90, 70, 180, .08);
}
.ai-answer-head { display: flex; align-items: center; gap: 12px; }
.ai-answer-badge {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #8b6cff, #2f6bff); color: #fff;
  font-size: 12px; font-weight: 800;
}
.ai-answer-head h2 { margin: 0; color: #1b2a46; font-size: 18px; }
.ai-answer-head p { margin: 2px 0 0; color: #8b96aa; font-size: 11px; }
.ai-answer-model {
  margin-left: auto; padding: 4px 9px; border-radius: 999px;
  background: #f0edff; color: #6b5bd6; font-size: 10px; font-weight: 600;
}
.ai-answer-body {
  margin-top: 14px; color: #3f4b63; font-size: 14px; line-height: 1.85;
  white-space: pre-wrap;
}
.ai-answer-loading { color: #8d99ad; font-size: 13px; }
.ai-answer-card.is-error { border-color: #f1d8c7; background: linear-gradient(135deg, #fff8f2, #fff); }
.ai-answer-card.is-error .ai-answer-body { color: #9a5b2d; }
.ai-answer-sources {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
  padding-top: 12px; border-top: 1px dashed #e4def5;
}
.ai-answer-sources a {
  max-width: 100%; padding: 4px 9px; border-radius: 8px;
  background: #fff; border: 1px solid #e4def5; color: #5f6f95; font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-answer-sources a:hover { color: #2f5cff; border-color: #c9d9ff; }
@media (max-width: 600px) {
  .ai-answer-card { padding: 18px; border-radius: 14px; }
  .ai-answer-model { display: none; }
}
/* WeChat Pay / license plans */
.tools-btn--buy {
  color: #fff !important;
  background: linear-gradient(135deg, #7c5cff, #2f6bff);
  box-shadow: 0 12px 26px rgba(90, 70, 220, .26);
}
.tools-btn--buy:hover { box-shadow: 0 16px 32px rgba(90, 70, 220, .34); }
.pay-plans {
  margin: 22px 0 8px; padding: 24px; border-radius: 20px;
  background: linear-gradient(135deg, #f7f4ff 0%, #fff 58%);
  border: 1px solid #e3ddff; box-shadow: 0 18px 40px rgba(90, 70, 180, .08);
}
.pay-plans-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pay-plans-head h2 { margin: 0 0 6px; color: #1b2a46; font-size: 24px; letter-spacing: -.02em; }
.pay-plans-head p { margin: 0; color: #7b879c; font-size: 13px; }
.pay-plans-badge {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 7px 12px; border-radius: 999px; background: #fff;
  border: 1px solid #d9e7dd; color: #2f8f5b; font-size: 11px; font-weight: 700;
}
.pay-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pay-phone-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid #e3e0f3;
}
.pay-phone-row label { display: flex; align-items: center; gap: 8px; color: #1b2a46; font-size: 12px; font-weight: 700; }
.pay-phone-row input {
  width: 190px; height: 38px; padding: 0 12px; border: 1px solid #dbe3f2;
  border-radius: 9px; color: #1b2a46; font-size: 14px; letter-spacing: .04em; outline: none;
}
.pay-phone-row input:focus { border-color: #8e7bff; box-shadow: 0 0 0 3px rgba(124, 92, 255, .12); }
.pay-phone-row > span { color: #8b96aa; font-size: 11px; }
.pay-phone-error { margin: 8px 0 0; color: #c8442d; font-size: 12px; font-weight: 600; }
.pay-member {
  margin-top: 12px; padding: 14px; border-radius: 12px; text-align: left;
  background: #f2fbf6; border: 1px dashed #b7e6cc;
}
.pay-member span { display: block; margin-bottom: 4px; color: #4d8b6a; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.pay-member strong { display: block; color: #1b6b45; font-size: 20px; letter-spacing: -.02em; }
.pay-member small { display: block; margin-top: 3px; color: #6f8d7d; font-size: 11px; }
.pay-member a { display: inline-block; margin-top: 8px; color: #2f8f5b; font-size: 11px; font-weight: 700; }
.pay-plan {
  display: grid; gap: 6px; padding: 18px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid #e3e0f3; background: #fff;
  color: #2b3550; text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pay-plan:hover { transform: translateY(-2px); border-color: #b9a8ff; box-shadow: 0 14px 30px rgba(90, 70, 180, .12); }
.pay-plan-name { color: #1b2a46; font-size: 15px; font-weight: 700; }
.pay-plan-price { color: #2f5cff; font-size: 26px; letter-spacing: -.03em; }
.pay-plan small { color: #8b96aa; font-size: 11px; }
.pay-plan-action { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #6b5bd6; font-size: 11px; font-weight: 700; }
.pay-plan-note { margin: 14px 0 0; color: #98a2b5; font-size: 11px; }

.pay-modal {
  position: fixed; inset: 0; z-index: 300; display: none; place-items: center;
  padding: 20px; background: rgba(11, 18, 32, .72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.pay-modal.is-open { display: grid; }
.pay-modal-panel {
  position: relative; width: min(420px, 100%); padding: 26px 24px 24px;
  border-radius: 22px; background: #fff; text-align: center;
  box-shadow: 0 30px 80px rgba(8, 16, 36, .35);
}
.pay-modal-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #f2f5fb; color: #7b879c;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.pay-modal-close:hover { background: #e9eef8; color: #1b2a46; }
.pay-modal-kicker { margin: 0; color: #8b96aa; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.pay-modal-panel h3 { margin: 8px 0 4px; color: #1b2a46; font-size: 21px; }
.pay-modal-plan { margin: 0 0 14px; color: #7b879c; font-size: 12px; }
.pay-qr {
  width: 220px; height: 220px; margin: 0 auto; display: grid; place-items: center;
  padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #e6edf8;
}
.pay-qr svg { width: 100%; height: 100%; display: block; }
.pay-qr.is-done { opacity: .35; }
.pay-loading { color: #8d99ad; font-size: 12px; }
.pay-modal-status { min-height: 20px; margin: 14px 0 0; color: #5d6d88; font-size: 12px; }
.pay-modal-status.is-error { color: #c8442d; }
.pay-modal-status.is-ok { color: #1f8a63; font-weight: 700; }
.pay-license {
  margin-top: 12px; padding: 14px; border-radius: 12px; text-align: left;
  background: #f4f8ff; border: 1px dashed #cbdcff;
}
.pay-license span { display: block; margin-bottom: 6px; color: #8b96aa; font-size: 10px; }
.pay-license code {
  display: block; color: #1b2a46; font-family: var(--mono, monospace);
  font-size: 16px; font-weight: 700; letter-spacing: .06em; word-break: break-all;
}
.pay-copy {
  margin-top: 9px; height: 32px; padding: 0 12px; border: 1px solid #cbdcff;
  border-radius: 8px; background: #fff; color: #2f5cff; font-size: 11px;
  font-weight: 700; cursor: pointer;
}
@media (max-width: 700px) {
  .pay-plans { padding: 18px; }
  .pay-plan-grid { grid-template-columns: 1fr; }
  .pay-plans-head h2 { font-size: 21px; }
  .pay-qr { width: 200px; height: 200px; }
  .pay-phone-row input { width: 100%; }
  .pay-phone-row label { width: 100%; }
}

/* Member lookup */
.member-lookup-form {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 22px; padding: 14px; max-width: 560px;
  border-radius: 14px; background: #fff; border: 1px solid #e5eaf5;
}
.member-lookup-form input {
  flex: 1 1 220px; height: 44px; padding: 0 14px; border: 1px solid #dbe3f2;
  border-radius: 10px; font-size: 14px; outline: none;
}
.member-lookup-form input:focus { border-color: #8e7bff; box-shadow: 0 0 0 3px rgba(124, 92, 255, .12); }
.member-lookup-error { margin-top: 10px; color: #c8442d; font-size: 12px; font-weight: 600; }
.member-lookup-list { display: grid; gap: 10px; margin-top: 16px; }
.member-lookup-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #e6edf8;
}
.member-lookup-card strong { display: block; color: #1b2a46; font-size: 15px; }
.member-lookup-card span { color: #98a2b5; font-size: 10.5px; }
.member-lookup-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.member-lookup-status b { font-size: 12px; }
.member-lookup-status b.is-active { color: #1f8a63; }
.member-lookup-status b.is-expired { color: #b26a45; }
.member-lookup-status .tools-btn { height: 34px; padding: 0 11px; font-size: 11px; }
@media (max-width: 640px) {
  .member-lookup-card { align-items: flex-start; flex-direction: column; }
  .member-lookup-status { justify-content: flex-start; }
}

/* Manual payment / buy page */
.manual-pay-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px;
  align-items: start; margin-top: 18px;
}
.manual-pay-card, .manual-pay-side-card {
  padding: 24px; border-radius: 18px; background: #fff;
  border: 1px solid #e6edf8; box-shadow: 0 16px 36px rgba(30, 50, 90, .06);
}
.manual-pay-form { display: grid; gap: 22px; }
.manual-pay-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.manual-step-num {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: #eef3ff; color: #3567e8;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.manual-pay-step h2 { margin: 2px 0 6px; color: #1b2a46; font-size: 17px; }
.manual-pay-step p { margin: 0 0 10px; color: #7b879c; font-size: 12px; line-height: 1.6; }
.manual-pay-step input, .manual-pay-step textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #dbe3f2;
  border-radius: 10px; background: #fbfcff; color: #1b2a46;
  font-size: 14px; outline: none;
}
.manual-pay-step input:focus, .manual-pay-step textarea:focus {
  border-color: #8e7bff; box-shadow: 0 0 0 3px rgba(124, 92, 255, .12); background: #fff;
}
.manual-pay-step textarea { margin-top: 8px; resize: vertical; }
.manual-pay-qr {
  display: grid; place-items: center; width: 220px; height: 220px;
  margin: 4px 0 10px; padding: 8px; border: 1px solid #e6edf8;
  border-radius: 14px; background: #fff;
}
.manual-pay-qr img { width: 100%; height: 100%; object-fit: contain; }
.manual-pay-amount { margin: 8px 0 4px !important; color: #5d6d88 !important; font-size: 13px !important; }
.manual-pay-amount b { color: #2f5cff; font-size: 20px; }
.manual-pay-hint { color: #98a2b5 !important; font-size: 11px !important; }
.manual-submit { width: 100%; margin-top: 12px; }
.manual-submit:disabled { opacity: .45; cursor: not-allowed; }
.manual-pay-side { display: grid; gap: 12px; }
.manual-pay-side-card h3 { margin: 0 0 12px; color: #1b2a46; font-size: 16px; }
.manual-pay-side-card p { margin: 0 0 9px; color: #7b879c; font-size: 12px; line-height: 1.6; }
.manual-plan-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 10px;
  border: 1px solid #e8edf7; color: #1b2a46; text-decoration: none;
}
.manual-plan-row span { font-size: 12px; font-weight: 700; }
.manual-plan-row b { color: #2f5cff; font-size: 13px; }
.manual-plan-row small { grid-column: 1 / -1; color: #98a2b5; font-size: 10.5px; }
.manual-plan-row.is-selected { border-color: #b9a8ff; background: #f7f4ff; }
.manual-pay-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff4f1; color: #c8442d; font-size: 12px; }
.manual-pay-error.is-ok { background: #f2fbf6; color: #1f8a63; }
.manual-claim-result {
  margin-top: 18px; padding: 28px; border-radius: 18px; background: #fff;
  border: 1px solid #e6edf8; box-shadow: 0 16px 36px rgba(30, 50, 90, .06); text-align: center;
}
.manual-claim-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%; background: #f2fbf6; color: #1f8a63;
}
.manual-claim-result h2 { margin: 0 0 8px; color: #1b2a46; font-size: 22px; }
.manual-claim-result p { margin: 5px 0; color: #7b879c; font-size: 12px; line-height: 1.6; }
.manual-claim-result code { color: #2f5cff; font-size: 12px; }
.manual-claim-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 860px) {
  .manual-pay-layout { grid-template-columns: 1fr; }
  .manual-pay-card, .manual-pay-side-card { padding: 18px; }
  .manual-pay-qr { width: 190px; height: 190px; }
}

/* Legacy home markup guard: hide the old category rail and keep the app row even,
   so cached/old HTML still renders cleanly before the service restarts. */
body[data-page="home"] .tools-sidebar { display: none; }
body[data-page="home"] .tools-hero-actions,
body[data-page="home"] .tools-hero-stats,
body[data-page="home"] .tools-quick { display: none; }
body[data-page="home"] .tools-workspace { display: block; }
body[data-page="home"] .tools-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
body[data-page="home"] .tools-hero-stats span:nth-child(3) { display: none; }

@media (max-width: 1180px) {
  body[data-page="home"] .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body[data-page="home"] .tools-grid { grid-template-columns: 1fr; }
}

/* Share button */
.tools-share { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 1px solid var(--line, rgba(18,27,52,.14)); border-radius: 9px; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.tools-share:hover { border-color: var(--accent, #2f6fed); color: var(--accent, #2f6fed); }
.tools-share-toast { position: fixed; left: 50%; bottom: 26px; z-index: 9999; transform: translate(-50%, 10px); max-width: min(86vw, 420px); padding: 10px 15px; border-radius: 10px; background: rgba(18, 27, 52, .94); color: #fff; font-size: 12px; line-height: 1.5; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.tools-share-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .tools-share span { display: none; } .tools-share { width: 36px; padding: 0; justify-content: center; } }

/* Share modal with QR */
.tools-share-modal { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 18px; opacity: 0; transition: opacity .18s ease; }
.tools-share-modal[hidden] { display: none; }
.tools-share-modal.is-open { opacity: 1; }
.tools-share-backdrop { position: absolute; inset: 0; background: rgba(20, 33, 61, .42); backdrop-filter: blur(3px); }
.tools-share-card { position: relative; width: min(92vw, 390px); max-height: 92vh; overflow: auto; padding: 22px; border: 1px solid var(--tools-line); border-radius: 20px; background: var(--tools-card); box-shadow: 0 26px 70px rgba(20, 33, 61, .24); transform: translateY(8px); transition: transform .18s ease; }
.tools-share-modal.is-open .tools-share-card { transform: translateY(0); }
.tools-share-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f2f5fb; color: var(--tools-muted); cursor: pointer; }
.tools-share-close:hover { color: var(--tools-ink); background: #e8eef9; }
.tools-share-kicker { margin: 0 0 5px; color: var(--tools-blue); font-size: 9.5px; font-weight: 800; letter-spacing: .16em; }
.tools-share-card h2 { margin: 0 0 5px; padding-right: 30px; color: var(--tools-ink); font-size: 20px; letter-spacing: -.03em; }
.tools-share-desc { margin: 0 0 13px; color: var(--tools-muted); font-size: 11.5px; line-height: 1.6; }
.tools-share-qr { display: grid; place-items: center; padding: 12px; border: 1px solid var(--tools-line); border-radius: 14px; background: #fff; }
.tools-share-qr canvas { width: 220px; height: 220px; display: block; image-rendering: pixelated; }
.tools-share-url { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.tools-share-url input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--tools-line); border-radius: 8px; background: #f7f9fe; color: var(--tools-ink); font: inherit; font-size: 11px; }
.tools-share-url button { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--tools-blue); color: #fff; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.tools-share-url button:hover { background: var(--tools-blue-dark); }
.tools-share-note { margin: 9px 0 0; color: var(--tools-muted); font-size: 9.5px; text-align: center; }
body.is-share-open { overflow: hidden; }
@media (max-width: 420px) { .tools-share-card { padding: 18px; } .tools-share-qr canvas { width: 190px; height: 190px; } .tools-share-url { flex-direction: column; align-items: stretch; } .tools-share-url button { justify-content: center; } }

/* AI auto badge: enabled from backend, no checkbox */
.tools-ai-auto { display: inline-flex; align-items: center; gap: 5px; margin: 9px 0 0; color: #5d7196; font-size: 10.5px; }
.tools-ai-auto span { display: inline-grid; place-items: center; height: 17px; padding: 0 5px; border-radius: 4px; background: linear-gradient(135deg, #2f6bff, #6d4aff); color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; }
.m-ai-auto { display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 0; color: #64748b; font-size: 10.5px; }
.m-ai-auto span { display: inline-grid; place-items: center; height: 16px; padding: 0 5px; border-radius: 4px; background: linear-gradient(135deg, #2f6bff, #6d4aff); color: #fff; font-size: 8px; font-weight: 800; }

/* Search pagination: page numbers together */
.search-pager { gap: 12px; }
.search-pages { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.search-page-link { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #e1e9f6; border-radius: 8px; background: #fff; color: #4e6280; font-size: 11.5px; font-weight: 600; }
.search-page-link:hover { border-color: #2f6bff; color: #2f6bff; }
.search-page-link.is-current { border-color: #2f6bff; background: #2f6bff; color: #fff; }
.search-pager > span { color: #8795a9; font-size: 10.5px; white-space: nowrap; }
@media (max-width: 640px) { .search-pager { flex-wrap: wrap; justify-content: center; gap: 8px; } .search-pager > span { display: none; } }
