/* SanerDirect Help Center — shared styles */
:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --ink: #0f1f24;
  --ink-soft: #4a5b61;
  --ink-faint: #7c8a8f;
  --line: #e3e9ea;
  --brand: #0f8a7e;
  --brand-dark: #0a6b61;
  --brand-soft: #e6f4f1;
  --accent: #f4a83d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 36, .06), 0 1px 3px rgba(15, 31, 36, .04);
  --shadow-md: 0 10px 30px -12px rgba(15, 31, 36, .25);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.brand small { color: var(--ink-faint); font-weight: 500; font-size: 12px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand-dark); text-decoration: none; }
.nav .btn { color: #fff; }
@media (max-width: 680px) { .nav a.nav-link { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--brand-soft); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 50% -120px, var(--brand-soft), transparent),
              linear-gradient(180deg, #ffffff, var(--bg));
  padding: 64px 0 52px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 700; background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { color: var(--ink-soft); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }

.search {
  max-width: 580px; margin: 0 auto; position: relative;
}
.search input {
  width: 100%; font-size: 16px; padding: 16px 18px 16px 50px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-md); outline: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.search-hint { margin-top: 12px; color: var(--ink-faint); font-size: 13px; }
.search-hint a { color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.01em; }
.section-head p { color: var(--ink-faint); margin: 0; }

/* ---------- Category grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: block; color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3dedb; text-decoration: none; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; color: var(--brand-dark); margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; }
.card .count { font-size: 13px; color: var(--ink-faint); font-weight: 500; }

/* ---------- Article list ---------- */
.articles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 720px) { .articles { grid-template-columns: 1fr; } }
.articles a {
  display: flex; align-items: center; gap: 10px; padding: 14px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 15.5px;
}
.articles a:hover { color: var(--brand-dark); text-decoration: none; }
.articles a svg { color: var(--brand); flex: none; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; color: var(--ink-faint); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Contact CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius); padding: 44px 32px; text-align: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.cta h2 { margin: 0 0 8px; font-size: 26px; }
.cta p { margin: 0 auto 22px; max-width: 480px; color: rgba(255, 255, 255, .9); }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { background: #f1f1f1; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn.outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.cta .btn.outline:hover { background: rgba(255,255,255,.12); }

/* ---------- No results ---------- */
.noresults { text-align: center; color: var(--ink-faint); padding: 30px; display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0; margin-top: 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-grid .col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin: 0 0 12px; }
.footer-grid .col a { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Article page ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-faint); padding: 22px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px clamp(22px, 5vw, 56px); box-shadow: var(--shadow-sm); margin: 18px 0 0; }
.article h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; letter-spacing: -.02em; }
.article .meta { color: var(--ink-faint); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 20px; margin: 32px 0 10px; }
.article h3 { font-size: 17px; margin: 24px 0 8px; }
.article p, .article li { color: var(--ink-soft); font-size: 16px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 22px 0; color: var(--ink); }
.article .steps { counter-reset: step; list-style: none; padding: 0; }
.article .steps li { position: relative; padding-left: 44px; margin-bottom: 16px; }
.article .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.article-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.feedback { color: var(--ink-soft); font-size: 14.5px; }
.feedback button { margin-left: 8px; }

.muted { color: var(--ink-faint); }
.center { text-align: center; }
