/* ============================================================
   轻工具 — Design System v3
   Warm Craft · Professional · Ad-Optimized
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Surface */
  --bg:        #f4efe5;   /* warm parchment — distinctive */
  --surface:   #fffefb;   /* card white */
  --surface-2: #faf6ef;   /* inner surface */

  /* Ink */
  --ink:    #1c1712;   /* warm near-black */
  --ink-2:  #443b30;
  --muted:  #7a6d5e;
  --muted-2:#b0a495;

  /* Border */
  --line:   #e4d9cc;
  --line-2: #cdc0b0;

  /* Accent — warm orange-red */
  --accent:     #c2410c;
  --accent-2:   #ea580c;
  --accent-bg:  #fff4ed;
  --accent-line:rgba(194,65,12,.22);

  /* Category palette */
  --cat-blue:    #1d4ed8; --cat-blue-bg:   #eff6ff;
  --cat-amber:   #b45309; --cat-amber-bg:  #fffbeb;
  --cat-violet:  #6d28d9; --cat-violet-bg: #f5f3ff;
  --cat-teal:    #0f766e; --cat-teal-bg:   #f0fdfa;

  /* Radius */
  --r-sm:  6px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  24px;

  /* Shadow */
  --sh-xs: 0 1px 3px rgba(28,23,18,.06);
  --sh-sm: 0 2px 10px rgba(28,23,18,.08), 0 1px 3px rgba(28,23,18,.04);
  --sh-md: 0 8px 28px rgba(28,23,18,.11), 0 2px 8px rgba(28,23,18,.05);
  --sh-lg: 0 24px 64px rgba(28,23,18,.13);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    180ms;
  --t-lg: 260ms;
}

/* ── Reset ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration:  .01ms !important;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,239,229,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.brand-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(28,23,18,.07);
  outline: none;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Decorative circle */
.hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(194,65,12,.1) 0%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px 4px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-tag-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

h1 {
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.04;
  color: var(--ink);
  max-width: 680px;
}

.h1-accent {
  color: var(--accent);
  position: relative;
}

.lead {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Hero stat panel */
.hero-stats {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  min-width: 210px;
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}

.h-stat { line-height: 1; }
.h-stat-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--ink);
}
.h-stat-label {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ── Section chrome ─────────────────────────────────────── */
.section { padding: 60px 0; }

.section-head { margin-bottom: 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 8px;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ── Featured Tools (top 4, larger) ─────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
  color: inherit;
}

.featured-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.featured-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.featured-icon {
  width: 48px; height: 48px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease);
}
.featured-card:hover .featured-icon { transform: scale(1.05); }

.featured-icon svg { width: 22px; height: 22px; }

.featured-body { flex: 1; min-width: 0; }
.featured-body h3 { margin-bottom: 3px; }
.featured-body p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-arrow {
  color: var(--muted-2);
  flex-shrink: 0;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.featured-card:hover .featured-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── Ad Banner ───────────────────────────────────────────── */
.ad-banner {
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0;
}
.ad-banner-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-banner-label::before {
  content: 'AD';
  background: var(--line);
  color: var(--muted);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .68rem;
}
.ad-banner code {
  font-size: .78rem;
  color: var(--muted);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  word-break: break-all;
  flex: 1;
}

/* ── Tool Category Section ───────────────────────────────── */
.cat-section { margin-bottom: 48px; }
.cat-section:last-child { margin-bottom: 0; }

.cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.cat-chip-dot { width: 6px; height: 6px; border-radius: 50%; }
.cat-count {
  font-size: .78rem;
  color: var(--muted-2);
  margin-left: auto;
}

/* Color themes for chips */
.chip-blue   { background: var(--cat-blue-bg);   color: var(--cat-blue); }
.chip-blue   .cat-chip-dot { background: var(--cat-blue); }
.chip-amber  { background: var(--cat-amber-bg);  color: var(--cat-amber); }
.chip-amber  .cat-chip-dot { background: var(--cat-amber); }
.chip-violet { background: var(--cat-violet-bg); color: var(--cat-violet); }
.chip-violet .cat-chip-dot { background: var(--cat-violet); }
.chip-teal   { background: var(--cat-teal-bg);   color: var(--cat-teal); }
.chip-teal   .cat-chip-dot { background: var(--cat-teal); }

/* ── Tool Grid ───────────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
  color: inherit;
}
.tool-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.tool-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
  flex-shrink: 0;
}
.tool-card:hover .tool-icon { transform: scale(1.08); }

.tool-icon svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Icon color variants */
.icon-blue   { background: var(--cat-blue-bg); }
.icon-blue   svg { stroke: var(--cat-blue); }
.icon-amber  { background: var(--cat-amber-bg); }
.icon-amber  svg { stroke: var(--cat-amber); }
.icon-violet { background: var(--cat-violet-bg); }
.icon-violet svg { stroke: var(--cat-violet); }
.icon-teal   { background: var(--cat-teal-bg); }
.icon-teal   svg { stroke: var(--cat-teal); }

.tool-card h3 { font-size: .93rem; }

.tool-card p {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--t) var(--ease);
}
.tool-card:hover .card-cta { gap: 9px; }

/* ── Feature Strip ───────────────────────────────────────── */
.feature-strip {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feat-item h3 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.feat-item p  { color: rgba(255,255,255,.52); font-size: .87rem; line-height: 1.7; }

.feat-num {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -.06em;
  color: #fff;
  opacity: .12;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* ── Article Grid ────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.article-card:hover { border-color: var(--line-2); box-shadow: var(--sh-xs); }

.article-card h3 { font-size: .93rem; margin-bottom: 8px; }
.article-card p  { font-size: .83rem; line-height: 1.65; color: var(--muted); }

/* ── SEO Block ───────────────────────────────────────────── */
.seo-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  margin-top: 24px;
}
.seo-block h2 { font-size: 1.3rem; margin-bottom: 14px; }
.seo-block p  { font-size: .9rem; line-height: 1.85; color: var(--muted); margin-bottom: 10px; }
.seo-block p:last-child { margin-bottom: 0; }

/* ── Hot Links ───────────────────────────────────────────── */
.hot-links {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hot-links-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.hot-link {
  display: inline-block;
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease);
}
.hot-link:hover {
  background: var(--accent-bg);
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ── AdSense documentation cards ────────────────────────── */
.adsense-docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ad-doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.ad-doc-card strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.ad-doc-card p  { font-size: .85rem; line-height: 1.6; color: var(--muted); margin-bottom: 14px; }
.adsense-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.adsense-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.adsense-box code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono","Fira Code","Consolas",monospace;
  font-size: .8rem;
  line-height: 1.75;
  color: var(--ink-2);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: .83rem; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: .83rem;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.footer-links a:hover { color: var(--ink); }

/* ============================================================
   TOOL PAGES
   ============================================================ */

.tool-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* Tool page nav (within shell, not sticky) */
.tool-shell > .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.tool-shell > .nav .brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink);
}
.tool-shell > .nav .nav-links { display: flex; gap: 2px; }
.tool-shell > .nav .nav-links a {
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500; color: var(--muted);
  transition: color var(--t), background var(--t);
}
.tool-shell > .nav .nav-links a:hover { color: var(--ink); background: rgba(28,23,18,.07); }

/* Tool page section heading */
.section-heading {
  padding: 8px 0 24px;
}
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 10px;
}
.section-heading p { font-size: .95rem; color: var(--muted); line-height: 1.7; }

/* Tool layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  align-items: start;
  margin: 24px 0;
}

.tool-panel, .tool-output {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.meta-row strong { font-size: .9rem; font-weight: 700; color: var(--ink-2); }

label, .hint { color: var(--muted); }

.tool-panel textarea,
.tool-panel input[type=text],
.tool-panel input[type=number],
.tool-panel input[type=datetime-local],
.tool-panel select,
.tool-output textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-appearance: none;
}
.tool-panel textarea:focus,
.tool-panel input:focus,
.tool-panel select:focus,
.tool-output textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28,23,18,.08);
}

.tool-panel textarea, .tool-output textarea {
  min-height: 280px;
  resize: vertical;
  font-family: "JetBrains Mono","Fira Code","Consolas",monospace;
  line-height: 1.75;
  font-size: .88rem;
}
.tool-panel input[type=text],
.tool-panel input[type=number],
.tool-panel input[type=datetime-local],
.tool-panel select { min-height: 44px; }

.tool-actions {
  display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px;
}
.stat-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
}
.stat-card strong { display: block; font-size: 1.7rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin-bottom: 5px; }
.stat-card span   { font-size: .78rem; color: var(--muted); }

.hint { font-size: .87rem; line-height: 1.7; margin-top: 14px; }

/* ── Compat: .button → .btn aliases (tool pages) ──────── */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 42px; padding: 0 20px;
  border-radius: var(--r-sm); font-size: .9rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
  font-family: inherit;
}
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button.primary  { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.button.ghost    { background: transparent; color: var(--ink); border-color: var(--line-2); }
.button.ghost:hover { background: var(--surface); border-color: var(--ink); }

/* Tool page seo block & related links (reused from main) */
.seo-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 32px; margin: 24px 0; }
.seo-block h2   { font-size: 1.25rem; margin-bottom: 12px; }
.seo-block p    { font-size: .88rem; line-height: 1.85; color: var(--muted); margin-bottom: 10px; }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block ul   { padding-left: 20px; }
.seo-block li   { font-size: .88rem; line-height: 1.85; color: var(--muted); }

.related-links  { margin: 20px 0 40px; }
.related-links h2 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.related-links ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.related-links a {
  display: inline-block; padding: 5px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t);
}
.related-links a:hover { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-strip { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats  { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; min-width: unset; padding: 20px 24px; }
  .featured-grid  { grid-template-columns: 1fr; }
  .tool-grid      { grid-template-columns: repeat(2, 1fr); }
  .feature-strip  { grid-template-columns: 1fr; padding: 32px 28px; }
  .article-grid   { grid-template-columns: 1fr; }
  .adsense-docs   { grid-template-columns: 1fr; }
  .tool-layout    { grid-template-columns: 1fr; }
  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 48px 0 40px; }
  h1    { font-size: 2.5rem; }
  .nav-links { display: none; }
  .hero-cta  { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 12px; padding: 16px 18px; }
  .h-stat-num { font-size: 1.6rem; }
  .tool-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .tool-actions { flex-direction: column; }
  .seo-block  { padding: 22px 20px; }
  .feature-strip { padding: 28px 20px; }
}

@media (max-width: 420px) {
  .tool-grid { grid-template-columns: 1fr; }
}
