/* ailiangshi.com — home stylesheet
   Design: minimal, fast, trustworthy. White base, indigo accent, card layout. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --paper: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #94a3b8;
  --line: #e8eaef;
  --line-2: #f0f2f5;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-soft: #eef2ff;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .10);
  --maxw: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.brand .muted-word { color: var(--text-2); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 76px 0 56px;
  background:
    radial-gradient(60% 120% at 50% -10%, rgba(99, 102, 241, .10), transparent 60%),
    linear-gradient(180deg, #fbfbfe, #ffffff);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.hero h1 {
  margin: 22px auto 14px;
  max-width: 760px;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 820;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), #7c3aed 55%, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-2);
  font-size: 17px;
}

/* search */
.search {
  margin: 30px auto 16px;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 7px 7px 18px;
  box-shadow: var(--shadow-md);
  transition: border-color .18s, box-shadow .18s;
}
.search:focus-within {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12), var(--shadow-md);
}
.search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--text);
  font-family: inherit;
}
.search button {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.search button:hover { background: var(--brand-600); }
.pop-tags { font-size: 13.5px; color: var(--muted); }
.pop-tags a { color: var(--text-2); font-weight: 550; }
.pop-tags a:hover { color: var(--brand); }

/* ---------- Section scaffolding ---------- */
section.block { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
  font-weight: 760;
}
.section-head a.more { font-size: 14px; color: var(--brand); font-weight: 600; }
.section-head a.more:hover { color: var(--brand-600); }

/* ---------- Intent cards (Pricing / Coupons / Alternatives) ---------- */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.intent {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.intent:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ee; }
.intent .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.intent .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.intent h3 { margin: 0 0 6px; font-size: 17px; font-weight: 720; letter-spacing: -.01em; }
.intent p { margin: 0; color: var(--text-2); font-size: 14px; }
.intent .arr { position: absolute; top: 24px; right: 22px; color: var(--muted); transition: transform .18s, color .18s; }
.intent:hover .arr { transform: translateX(3px); color: var(--brand); }

/* ---------- Tool cards ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dfe3ee; }
.tool-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.logo {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex: none;
}
.tool-card .name { font-weight: 720; font-size: 16px; letter-spacing: -.01em; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.tool-card .desc { color: var(--text-2); font-size: 13.5px; margin: 0 0 16px; flex: 1; }
.tool-card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.tool-card .price { font-weight: 720; font-size: 14px; }
.tool-card .price small { color: var(--muted); font-weight: 500; }
.tool-card .go { font-size: 13px; font-weight: 650; color: var(--brand); }

/* ---------- Categories ---------- */
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, background .15s;
}
.cat:hover { border-color: #c7d2fe; color: var(--brand); background: var(--brand-soft); }
.cat .count { color: var(--muted); font-weight: 500; font-size: 12.5px; }

/* ---------- Recently updated table ---------- */
.upd-section { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
thead th {
  background: #fbfcfe;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
td .tname { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
td .logo-sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
.deal { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.deal.neutral { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.deal.good { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
.deal.watch { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
td .date { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 32px; background: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--text-2); font-size: 14px; max-width: 280px; margin: 0; }
.foot-col h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.foot-col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 14px; }
.foot-col a:hover { color: var(--brand); }
.foot-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Search no-results note ---------- */
.no-results { display: none; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 56px 0 44px; }
  .intent-grid { grid-template-columns: 1fr; }
  section.block { padding: 44px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
  .search button { padding: 11px 16px; }
  .foot-grid { grid-template-columns: 1fr; }
}
