/* suppliers — Canton Fair exhibitor directory on bosch-cn.com.
   Same card/hero shape as the study-in-China directory that already lives on this
   domain, in the Canton Fair palette (China red + gold) rather than its crimson,
   so the two read as sister sections of one site. */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: rgba(148, 163, 184, 0.24);
  --text: #0f172a;
  --muted: #4b5563;
  --accent: #c30d09;          /* Canton Fair red */
  --accent-dark: #9c0a07;
  --gold: #a97a14;
  --gold-soft: #f5edda;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

* { box-sizing: border-box; }

body.sp-site {
  margin: 0;
  font-family: "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbf9f8 0%, var(--bg) 240px);
}

/* ── Sponsor bar ─────────────────────────────────────────────────────────── */
.sp-topbar {
  background: linear-gradient(90deg, #7f1d1d, var(--accent) 55%, #a51410);
  color: #fff;
  font-size: 13.5px;
}
.sp-topbar-in {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
}
.sp-topbar-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.sp-topbar-brand { color: #fff; text-decoration: none; font-size: 15px; letter-spacing: 0.01em; }
.sp-topbar-brand:hover { text-decoration: underline; }
.sp-topbar-sep { color: rgba(255, 255, 255, 0.45); }
.sp-topbar-line { color: rgba(255, 255, 255, 0.9); }
.sp-topbar-cta {
  margin-left: auto; padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap;
}
.sp-topbar-cta:hover { background: #fff; color: var(--accent-dark); }

.sp-shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 72px; }

/* ── Shared blocks ───────────────────────────────────────────────────────── */
.sp-cn { color: var(--muted); font-weight: 500; font-size: 0.86em; }
.sp-cn-lg { display: inline-block; font-size: 0.48em; vertical-align: middle; margin-left: 8px; }

.sp-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
  color: var(--muted); font-size: 13.5px;
}
.sp-breadcrumbs a { color: var(--accent); text-decoration: none; }
.sp-breadcrumbs a:hover { text-decoration: underline; }

.sp-hero, .sp-card {
  border: 1px solid var(--border); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.sp-hero {
  padding: 26px; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #fdf6f5 70%, #fbf1e6);
}
.sp-kicker {
  margin: 0 0 10px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.13em; font-size: 11.5px; font-weight: 700;
}
.sp-hero h1 { margin: 0; font-size: clamp(1.55rem, 2.8vw, 2.35rem); line-height: 1.15; letter-spacing: -0.02em; }
.sp-summary, .sp-card p { margin: 13px 0 0; color: var(--muted); line-height: 1.65; font-size: 15.5px; }

.sp-card { padding: 22px; margin-bottom: 20px; }
.sp-card h2 { margin: 0 0 12px; font-size: 20px; }
.sp-card h3 { margin: 20px 0 6px; font-size: 16px; color: var(--text); }

.sp-hero-cta {
  margin-top: 14px; padding: 10px 14px; border-radius: 11px;
  background: #fdf2f2; border: 1px solid rgba(195, 13, 9, 0.2); font-size: 14.5px;
}
.sp-hero-cta a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.sp-hero-cta a:hover { text-decoration: underline; }

/* Facts */
.sp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sp-fact { padding: 13px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(148, 163, 184, 0.16); }
.sp-fact dt { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.sp-fact dd { margin: 7px 0 0; font-size: 15.5px; line-height: 1.45; }
.sp-note-inline { color: var(--muted); font-size: 12px; }

.sp-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.sp-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid rgba(169, 122, 20, 0.3);
  color: #7a5710; font-size: 12.5px; font-weight: 600;
}
.sp-source, .sp-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.sp-note a { color: var(--accent); }

/* Product chips */
.sp-chips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chips li {
  padding: 7px 12px; border-radius: 12px; background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18); font-size: 14px;
}
.sp-chip-en { font-weight: 600; }
.sp-chips .sp-cn { margin-left: 6px; }
.sp-kw { font-size: 14px; }

.sp-list { margin: 8px 0 0; padding-left: 20px; line-height: 1.65; color: var(--muted); }
.sp-list li { margin: 6px 0; }

/* Sponsor block */
.tc-ad {
  margin: 18px 0 0; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(169, 122, 20, 0.07), rgba(217, 168, 60, 0.03));
  border: 1px solid rgba(169, 122, 20, 0.26); border-left: 4px solid var(--gold);
}
.tc-ad p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.6; }
.tc-ad-label {
  margin: 0 0 5px !important; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.tc-ad a { color: #8a6210; font-weight: 700; text-decoration: none; }
.tc-ad a:hover { text-decoration: underline; }

/* FAQ */
.sp-faq { font-size: 14px; }
.sp-faq h2 { font-size: 17px; }
.sp-faq-item { border-top: 1px solid var(--border); padding: 11px 0 2px; }
.sp-faq-item:first-of-type { border-top: 0; }
.sp-faq-q { font-weight: 700; margin: 0 0 4px !important; color: var(--text); font-size: 14.5px; }
.sp-faq-a { margin: 0 !important; color: var(--muted); }

/* Lists */
.sp-related, .sp-landing-list { list-style: none; margin: 0; padding: 0; }
.sp-related li, .sp-landing-list li {
  padding: 9px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.15); font-size: 14.5px;
}
.sp-related li:last-child, .sp-landing-list li:last-child { border-bottom: 0; }
.sp-related a, .sp-landing-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.sp-related a:hover, .sp-landing-list a:hover { text-decoration: underline; }
.sp-related-meta, .sp-landing-meta { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.sp-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #f1f5f9; color: var(--muted); font-size: 11px; font-weight: 700;
}
.sp-tag-brand { background: var(--gold-soft); color: #7a5710; }
.sp-tag-run { background: #fdf2f2; color: var(--accent-dark); }

/* Stats + chips */
.sp-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sp-stat {
  flex: 1; min-width: 120px; padding: 14px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(148, 163, 184, 0.18); text-align: center;
}
.sp-stat-n { display: block; font-size: 25px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.sp-stat-l { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.sp-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sp-chip {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  background: #f8fafc; border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text); text-decoration: none; font-size: 13px;
}
.sp-chip span { color: var(--muted); }
.sp-chip:hover { background: #fdf2f2; border-color: rgba(195, 13, 9, 0.3); }

/* Footer */
.sp-footer { margin-top: 30px; padding-top: 20px; border-top: 2px solid var(--border); }
.sp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 16px; }
.sp-footer-links a { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.sp-footer-links a:hover { text-decoration: underline; }
.sp-publisher { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; text-align: center; }
.sp-publisher a { color: var(--accent); text-decoration: none; }

/* ── Browse UI ───────────────────────────────────────────────────────────── */
.sp-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sp-search {
  flex: 1 1 260px; min-width: 200px; padding: 12px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; font-size: 15px; color: var(--text);
}
.sp-filter {
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; color: var(--text); max-width: 100%;
}
.sp-result-count { margin: 18px 0 12px; color: var(--muted); font-size: 14px; }

.sp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 15px; }
.sp-co-card {
  display: block; padding: 17px; border-radius: 15px; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.12s, border-color 0.12s;
}
.sp-co-card:hover { transform: translateY(-2px); border-color: rgba(195, 13, 9, 0.32); }
.sp-co-name { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; }
.sp-co-cn { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.sp-co-meta { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }
.sp-co-kw { margin: 7px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.45; }
.sp-co-tags { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-mini {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  background: #f1f5f9; color: var(--muted);
}
.sp-mini-brand { background: var(--gold-soft); color: #7a5710; }
.sp-mini-award { background: #fdf2f2; color: var(--accent-dark); }
.sp-mini-latest { background: #ecfdf5; color: #146c43; }

.sp-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 0; }
.sp-page {
  min-width: 38px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; text-align: center;
}
.sp-page:hover { border-color: rgba(195, 13, 9, 0.45); background: #fdf2f2; }
.sp-page-cur { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.sp-page-cur:hover { background: var(--accent); }
.sp-page-off { color: #cbd5e1; cursor: default; }
.sp-page-off:hover { border-color: var(--border); background: #fff; }
.sp-page-gap { padding: 0 4px; color: var(--muted); }
.sp-cards[aria-busy="true"] { opacity: 0.5; transition: opacity 0.15s; }
.sp-empty { text-align: center; color: var(--muted); padding: 36px 0; grid-column: 1 / -1; }

@media (max-width: 760px) {
  .sp-facts { grid-template-columns: 1fr; }
  .sp-hero, .sp-card { padding: 17px; border-radius: 15px; }
  .sp-topbar-cta { margin-left: 0; }
  .sp-topbar-line { flex-basis: 100%; }
}

/* ── Language switcher ───────────────────────────────────────────────────────
   Fifteen endonyms on every landing page. A static row of links rather than a
   <select>: it has to be crawlable, because these links are how the language
   variants are discovered alongside the hreflang cluster. */
.sp-lang-switch {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7px 0 2px;
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--border);
}
.sp-lang-link { color: var(--muted); text-decoration: none; white-space: nowrap; }
.sp-lang-link:hover { color: var(--accent); text-decoration: underline; }
.sp-lang-link.is-current { color: var(--text); font-weight: 700; }

/* ── Right-to-left (ar, fa) ──────────────────────────────────────────────────
   The layout is flex/grid throughout, so direction alone does most of the work.
   These are the places that pin a physical side and would otherwise strand the
   text on the wrong edge. */
[dir="rtl"] .sp-breadcrumbs,
[dir="rtl"] .sp-hero,
[dir="rtl"] .sp-card { text-align: right; }
[dir="rtl"] .sp-landing-list,
[dir="rtl"] .sp-list,
[dir="rtl"] .sp-related { padding-right: 1.1em; padding-left: 0; }
[dir="rtl"] .sp-facts dt { text-align: right; }
[dir="rtl"] .sp-topbar-cta { margin-left: 0; margin-right: auto; }
/* Slugs, IDs and company names in these pages stay Latin; isolating them keeps
   the bidi algorithm from reordering punctuation around them. */
[dir="rtl"] .sp-co-name,
[dir="rtl"] .sp-landing-meta,
[dir="rtl"] .sp-chip { unicode-bidi: isolate; }
