/*
Theme Name: Kadence Frariv
Template: kadence
Description: Kadence child theme for 芳溪信息科技 official site.
Version: 1.0.4
*/

body {
  color: var(--fr-ink);
  background: #fff;
}
a { color: var(--fr-brand); }
a:hover { color: var(--fr-brand-dark); }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--fr-line);
}
.header-navigation .header-menu-container ul.menu > li > a {
  color: var(--fr-ink);
}
.header-navigation .header-menu-container ul.menu > li > a:hover {
  color: var(--fr-brand);
}

.site-footer {
  background: #0b1b28;
  color: rgba(255,255,255,.82);
}
.site-footer a { color: #d6e6f2; }
.site-footer a:hover { color: #fff; }
.site-footer .site-info a[href*="kadencewp.com"] { display: none; }

.content-bg, .entry-content-wrap { background: #fff; }

:root {
  --fr-brand: #025d92;
  --fr-brand-dark: #014870;
  --fr-soft: #e8f2f8;
  --fr-ink: #12202c;
  --fr-muted: #5b6b77;
  --fr-line: #e4ebf0;
  --fr-bg: #f5f8fb;
  --fr-radius: 12px;
}

.site-branding .custom-logo { max-height: 44px; width: auto; }
.header-navigation .header-menu-container ul.menu > li > a { font-weight: 600; }
.header-navigation .header-menu-container ul.menu > li.current-menu-item > a,
.header-navigation .header-menu-container ul.menu > li.current-menu-ancestor > a {
  color: var(--fr-brand);
}

.fr-hero { position: relative; width: 100%; height: 360px; overflow: hidden; background: #0b1b28; }
.fr-hero-track { display: flex; height: 100%; transition: transform .5s ease; }
.fr-hero-item, .fr-hero-item a { display: block; min-width: 100%; height: 100%; }
.fr-hero-item img { display: block; width: 100%; height: 360px; object-fit: cover; }
.fr-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 8px;
}
.fr-hero-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.fr-hero-dots button.on { background: #fff; width: 22px; border-radius: 999px; }

.fr-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.fr-features { background: var(--fr-bg); }
.fr-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; }
.fr-feature-card {
  display: block; padding: 22px 20px; background: #fff;
  border: 1px solid var(--fr-line); border-radius: var(--fr-radius);
}
.fr-feature-card:hover { border-color: #b7d0e0; }
.fr-feature-card strong { display: block; margin-bottom: 6px; color: var(--fr-brand); font-size: 16px; }
.fr-feature-card span { color: var(--fr-muted); font-size: 13px; }

.fr-section { padding: 56px 0; }
.fr-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.fr-section-head h2 { margin: 0; font-size: 28px; }
.fr-more { color: var(--fr-brand); font-weight: 600; }
.fr-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fr-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fr-line);
  border-radius: var(--fr-radius);
}
.fr-product-card .pic {
  display: block !important;
  width: 100%;
  background: #fff !important;
}
.fr-product-card .pic img,
.fr-product-card .pic img.wp-post-image,
.fr-product-card .pic img.fr-card-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}
.fr-product-card h3 {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.fr-links { padding: 18px 0 40px; color: var(--fr-muted); }
.fr-links ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }

.fr-product-page { background: var(--fr-bg); padding: 36px 0 64px; }
.fr-product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.fr-gallery {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 16px; background: #fff;
  border: 1px solid var(--fr-line); border-radius: var(--fr-radius);
}
.fr-gallery img { width: 100%; height: 100%; object-fit: contain; }
.fr-product-meta h1 {
  margin: 0 0 12px;
  color: var(--fr-ink);
  font-size: 28px;
  line-height: 1.3;
}
.fr-product-meta p { margin: 0; color: var(--fr-muted); }
.fr-product-meta a { color: var(--fr-brand); }

.fr-prose {
  padding: 8px 0 0;
  color: #2a3540;
  font-size: 16px;
  line-height: 1.9;
}
.fr-prose p,
.fr-prose li,
.fr-prose td,
.fr-prose th,
.fr-prose span,
.fr-prose strong,
.fr-prose a {
  background: transparent !important;
  background-color: transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
  white-space: normal !important;
  box-shadow: none !important;
}
.fr-prose > p:first-child {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--fr-soft) !important;
  border-left: 4px solid var(--fr-brand);
  border-radius: 0 8px 8px 0;
  color: var(--fr-ink) !important;
}
.fr-prose h2,
.fr-prose h3,
.fr-prose h4 {
  margin: 1.55em 0 0.7em;
  padding: 0 0 8px;
  border-bottom: 1px solid #e8eef3;
  color: var(--fr-brand) !important;
  font-size: 18px !important;
  font-weight: 600;
}
.fr-prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; background: #fff; }
.fr-prose th, .fr-prose td {
  border: 1px solid #d7e2ea;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.fr-prose th {
  min-width: 18%;
  background: var(--fr-soft) !important;
  color: var(--fr-brand) !important;
  font-weight: 600;
}
.fr-prose ul, .fr-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.fr-prose ul { list-style: disc; }
.fr-prose ol { list-style: decimal; }
.fr-prose a { color: var(--fr-brand) !important; }

.fr-lang a { font-weight: 700; color: var(--fr-brand); }

@media (max-width: 900px) {
  .fr-hero, .fr-hero-item img { height: 220px; }
  .fr-feature-grid, .fr-product-grid, .fr-product-hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .fr-feature-grid, .fr-product-grid, .fr-product-hero { grid-template-columns: 1fr; }
}
