:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8f9fa;
    --border: #e8eaed;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --primary-dark: #4338ca;
    --green: #059669;
    --red: #dc2626;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 2px 8px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
    --max-width: 1080px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; font-size: 16px; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--primary); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img { max-width: 100%; height: auto; }

  /* Nav */
  .nav {
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
  }
  .nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.02em;
  }
  .nav-logo span { color: var(--primary); }
  .nav-links { display: flex; gap: 28px; list-style: none; }
  .nav-links a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; transition: color .15s; }
  .nav-links a:hover { color: var(--text); text-decoration: none; }

  /* Container */
  .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

  /* Hero — clean, no gradient soup */
  .hero {
    background: var(--bg);
    padding: 72px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border);
    font-size: .78rem; font-weight: 600; color: var(--primary); letter-spacing: .01em;
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.03em;
  }
  .hero .highlight { color: var(--primary); }
  .hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto 28px; }
  .hero-search {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
  }
  .hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
  .hero-search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: .95rem;
    outline: none;
    background: transparent;
  }
  .hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
  }
  .hero-search button:hover { background: var(--primary-dark); }
  .hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 32px; }
  .hero-stat .num { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
  .hero-stat .label { font-size: .8rem; color: var(--text-secondary); margin-top: 2px; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-header { text-align: center; margin-bottom: 32px; }
  .section-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
  .section-header p { color: var(--text-secondary); font-size: .95rem; max-width: 480px; margin: 0 auto; }

  /* Category Tabs */
  .tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
  .tab {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    color: var(--text-secondary);
  }
  .tab:hover { border-color: var(--primary); color: var(--primary); }
  .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* Tool Cards */
  .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
  }
  .tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .15s, box-shadow .15s;
  }
  .tool-card:hover { border-color: #d1d5db; box-shadow: var(--shadow-md); }
  .tool-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
  .tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
  }
  .tool-name { font-size: .95rem; font-weight: 700; line-height: 1.3; }
  .tool-tag {
    display: inline-block;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 3px;
    font-weight: 500;
  }
  .tag-free { background: #ecfdf5; color: var(--green); }
  .tag-freemium { background: var(--surface-alt); color: var(--text-secondary); }
  .tag-paid { background: #fef2f2; color: var(--red); }
  .tool-desc { font-size: .85rem; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
  .tool-features { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
  .tool-feature {
    font-size: .7rem;
    padding: 3px 8px;
    background: var(--surface-alt);
    border-radius: 4px;
    color: var(--text-secondary);
  }
  .tool-footer { display: flex; align-items: center; justify-content: space-between; }
  .tool-rating { color: var(--text); font-size: .8rem; font-weight: 600; }
  .tool-rating .star { color: #f59e0b; }
  .tool-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--primary-light);
    transition: all .15s;
  }
  .tool-link:hover { background: var(--primary); color: #fff; text-decoration: none; }

  /* Ad placement — subtle, no ugly dashed boxes */
  .ad-banner {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    text-align: center;
    font-size: .8rem;
    color: var(--text-secondary);
    margin: 32px 0 0;
    grid-column: 1 / -1;
  }
  .ad-banner strong { color: var(--text); }
  .ad-inline {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: .8rem;
    margin: 24px 0;
  }

  /* Comparison Table */
  .comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .comparison-table th, .comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
  }
  .comparison-table th { background: var(--surface-alt); font-weight: 600; font-size: .75rem; text-transform: uppercase; color: var(--text-secondary); letter-spacing: .04em; }
  .comparison-table td:first-child { font-weight: 600; }
  .comparison-table tbody tr:last-child td { border-bottom: none; }
  .check { color: var(--green); }
  .cross { color: #d1d5db; }

  /* Articles */
  .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
  }
  .article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .15s, box-shadow .15s;
  }
  .card-thumb { margin: -6px -6px 14px; border-radius: calc(var(--radius) - 2px); overflow: hidden; background: #f1f5f9; }
  .card-thumb img { display: block; width: 100%; height: 160px; object-fit: cover; }
  .article-card:hover { border-color: #d1d5db; box-shadow: var(--shadow-md); }
  .article-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  .article-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
  .article-body p { font-size: .85rem; color: var(--text-secondary); margin-bottom: 12px; }
  .article-body .read-more { font-size: .85rem; font-weight: 600; }

  /* Footer */
  .footer {
    background: #0f0f1a;
    color: #9ca3af;
    padding: 48px 0 24px;
    margin-top: 48px;
  }
  .footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
  }
  .footer h4 { color: #fff; font-size: .85rem; margin-bottom: 14px; font-weight: 600; }
  .footer ul { list-style: none; }
  .footer ul li { margin-bottom: 8px; }
  .footer ul a { color: #9ca3af; font-size: .85rem; }
  .footer ul a:hover { color: #fff; text-decoration: none; }
  .footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid #1f1f2e;
    text-align: center;
    font-size: .8rem;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-stats { gap: 24px; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .tool-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-search button { padding: 12px 16px; font-size: .85rem; }
  }
  /* How We evaluate cards */
  .cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: border-color .15s, box-shadow .15s;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); text-decoration: none; }
  .cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    background: var(--primary-light);
    color: var(--primary);
  }
  .cat-name { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .cat-count { font-size: .82rem; color: var(--text-secondary); }

  /* .cat-grid was missing display:grid — inline style only set columns, layout never applied */
  .cat-grid { display: grid; gap: 1rem; }
/* --- 内联 style 抽取（20261014a，dedupe_inline_styles.py）---
   来源：五站高频重复的内联 style，逐字符照搬，视觉等价 */
.x-s1{font-size:.9rem;line-height:1.5;color:#4b5563;background:#f8fafc;border-left:3px solid #cbd5e1;padding:.6rem .8rem;margin:0 0 1.2rem;border-radius:0 4px 4px 0}
.x-s2{color:#2563eb}
.x-s3{margin:.5rem 0 0;font-size:.9rem;color:#374151}
.x-s4{font-size:.72rem;opacity:.72;font-weight:400;letter-spacing:.02em}
.x-s5{background:#eef2ff;border-left:4px solid #4f46e5;padding:1rem 1.5rem;margin:1.5rem 0;border-radius:0 8px 8px 0}
.x-s6{margin:0;font-weight:700;color:#4f46e5}
.x-s7{color:#111827}
.x-s8{display:inline-block;background:#ecfdf5;color:#047857;font-size:.78rem;font-weight:600;padding:.2rem .55rem;border-radius:5px;margin-left:.4rem}
.x-s9{display:inline-block;margin-top:.6rem;margin-bottom:1.5rem;font-size:.85rem;padding:.4rem 1rem}
.x-s10{display:inline-block;background:#fff7ed;color:#ea580c;font-size:.75rem;font-weight:600;padding:.15rem .5rem;border-radius:4px;margin-left:.4rem}
.x-s11{background:#eff6ff;border-left:4px solid #1e40af;padding:1rem 1.5rem;margin:1.5rem 0;border-radius:0 8px 8px 0}
.x-s12{margin:0;font-weight:700;color:#1e40af}
.x-s13{background:#fff7ed;border-left:4px solid #ea580c;padding:1rem 1.5rem;margin:1.5rem 0;border-radius:0 8px 8px 0}
.x-s14{margin:0;font-weight:700;color:#ea580c}
.x-s15{display:inline-block;background:#eff6ff;color:#1e40af;font-size:.75rem;font-weight:600;padding:.15rem .5rem;border-radius:4px;margin-left:.4rem}
.x-s16{display:inline-block;background:#ecfdf5;color:#047857;font-size:.75rem;font-weight:600;padding:.15rem .5rem;border-radius:4px;margin-left:.4rem}
.x-s17{margin:0;font-weight:700;color:#0f766e}
.x-s18{background:#ecfdf5;border-left:4px solid #0f766e;padding:1rem 1.5rem;margin:1.5rem 0;border-radius:0 8px 8px 0}
.x-s19{font-size:0.9rem; margin-bottom:0}
.x-s20{background:#4f46e5}
.x-s21{font-size:.85rem;padding:8px 12px;border:1px solid var(--border);border-radius:6px;display:block}
