/* Liaoxi site fixes: missing Tailwind utils + Chinese font rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif !important;
  font-synthesis: none;
  letter-spacing: 0 !important;
  line-height: 1.7;
  color: #1e293b;
}

a, p, h1, h2, h3, h4, li, span, div, button, input, textarea, label {
  font-synthesis: none;
  letter-spacing: 0;
}

/* Missing utilities used by templates */
.gap-7 { gap: 1.75rem; }
.pt-28 { padding-top: 7rem; }
.pb-28 { padding-bottom: 7rem; }

/* Header — align with Sihsoft nav scale */
.site-header {
  font-size: 16px;
}
.site-header .h-20,
.site-header > div > div {
  min-height: 5rem;
}
.site-brand {
  font-size: 1.625rem; /* ~26px, 中文品牌名加大 */
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: 0;
}
.site-brand > span:first-child {
  font-size: 1.625rem;
  font-weight: 700;
}
.site-brand-en {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
nav .nav-links {
  display: none;
  align-items: center;
  gap: 2rem; /* space-x-8 */
  height: 4rem;
}
@media (min-width: 768px) {
  nav .nav-links {
    display: flex !important;
  }
}
nav .nav-links > a,
nav .nav-links .nav-trigger {
  white-space: nowrap;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  height: 100%;
}
nav .nav-links > a:hover,
nav .nav-links .nav-trigger:hover,
nav .nav-item:hover > .nav-trigger {
  color: #2563eb;
}
nav .nav-chevron {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  transition: transform .25s ease;
}
nav .nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
nav .nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}
nav .nav-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 11rem;
  margin-top: 0;
  padding: 0.5rem 0;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
/* hover bridge so menu doesn't close when moving cursor down */
nav .nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.5rem;
}
nav .nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
nav .nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
}
nav .nav-dropdown a:hover {
  background: #eff6ff;
  color: #2563eb;
}
.site-header-cta {
  background: #2563eb;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
  transition: background .2s ease;
}
.site-header-cta:hover {
  background: #1d4ed8;
}

/* Inner page blue banner — taller than before */
.page-hero {
  padding-top: 8.5rem !important;   /* clear fixed header */
  padding-bottom: 5rem !important;  /* taller banner */
}
.page-hero .hero-title {
  font-size: 2.25rem;
  margin-top: 0.25rem;
}
@media (min-width: 768px) {
  .page-hero {
    padding-top: 9rem !important;
    padding-bottom: 5.5rem !important;
  }
  .page-hero .hero-title {
    font-size: 2.75rem;
  }
}

/* Hero title: avoid synthetic extrabold double-draw */
.hero-title {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
.hero-sub {
  font-weight: 700;
  line-height: 1.4;
  background: linear-gradient(90deg, #93c5fd, #e0f2fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #bfdbfe; /* fallback if clip unsupported */
}

.gradient-text {
  background: linear-gradient(to right, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #38bdf8;
}

.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .15);
}

.article-content h2,
.article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0 .75rem;
  letter-spacing: 0;
}
.article-content p {
  line-height: 1.9;
  margin-bottom: 1rem;
  color: #334155;
  letter-spacing: 0;
}
.article-content ul {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
}

/* Case study metric strip — scannable numbers for GEO / AI citation */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
}
@media (min-width: 640px) {
  .case-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.case-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.case-metric-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.case-metric-label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0;
}

/* Service FAQ — Sihsoft-style accordion (div-based, CMS-safe) */
.faq-item .faq-q {
  cursor: pointer;
  user-select: none;
}
.faq-item .faq-chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #3b82f6;
  border-bottom: 2px solid #3b82f6;
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-top: -0.2rem;
}
.faq-item .faq-a {
  display: none;
}
.faq-item.is-open .faq-a {
  display: block;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}
.faq-item .faq-a strong {
  color: #0f172a;
  font-weight: 600;
}
.service-faq h3 {
  margin-top: 0;
}
