/* ============================================================
   Huarun Plastics · Phenolic Molding Compound B2B website — main stylesheet
   Works alongside the Tailwind CSS v3 CDN; holds custom component styles
   ============================================================ */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(27, 96, 174, 0.18);
}

/* Layout container (== max-w-7xl mx-auto px-4) */
.wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

#bannerTitle{

color:#1b60ae;

}


/* ---------- Navigation ---------- */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #222222;
  border-radius: 9999px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: #1b60ae;
  background: #dbe6f4;
}
.nav-link.active {
  color: #1b60ae;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: #ffffff;
  border: 1px solid #efebe2;
  border-radius: 0.875rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 50;
}
.group:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.55rem 0.875rem;
  font-size: 0.875rem;
  color: #222222;
  border-radius: 0.625rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.dropdown a:hover {
  background: #faf8f3;
  color: #1b60ae;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #1b60ae;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(27, 96, 174, 0.28);
}
.btn-primary:hover {
  background: #1b60ae;
  box-shadow: 0 8px 22px rgba(27, 96, 174, 0.36);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #ffffff;
  color: #222222;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: 1px solid #e5e0d4;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  border-color: #1b60ae;
  color: #1b60ae;
}

/* ---------- Checkmark badge ---------- */
.check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;

  color: #1b60ae;
  font-weight: 700;
}

/* ---------- Cards ---------- */
.category-card,
.article-card,
.card {
  display: block;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover,
.article-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.10);
}
.category-card img,
.article-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card img { aspect-ratio: 4 / 5; }
.article-card img { aspect-ratio: 3 / 2; }
.category-card:hover img,
.article-card:hover img {
  transform: scale(1.04);
}

/* Generic image card used by product/cert/case lists */
.img-card {
  display: block;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.10);
}
.img-card .img-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2efe8;
}
.img-card .img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.img-card:hover .img-frame img {
  transform: scale(1.05);
}

/* ---------- Tech-point accordion ---------- */
.tech-item {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.tech-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #222222;
  text-align: left;
  transition: color 0.2s ease;
}
.tech-head:hover { color: #1b60ae; }
.tech-arrow { transition: transform 0.25s ease; color: #1b60ae; }
.tech-item.open .tech-arrow { transform: rotate(180deg); color: #1b60ae; }
.tech-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.tech-body p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #666666;
}

/* ---------- Stat card ---------- */
.stat-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.10);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #666666;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-btn:hover { background: #1b60ae; color: #ffffff; transform: translateY(-2px); }

/* ---------- Horizontal scroll ---------- */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.product-card {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.10);
}
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #222222;
  border: 1px solid #e5e0d4;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.scroll-btn:hover { background: #1b60ae; color: #ffffff; border-color: #1b60ae; }

/* ---------- Forms ---------- */
input::placeholder,
textarea::placeholder { color: #9a938a; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: #222222;
  color: #ffffff;
  font-size: 0.875rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #dc2626; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Inner-page components
   ============================================================ */

/* Page hero banner */
.page-hero {
  background: #ffffff url("../images/bb6.jpg") center / cover no-repeat;
  border-bottom: 1px solid #efebe2;
}
.page-hero .eyebrow {
  color: #1b60ae;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-hero h1 {
  color: #222222;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
}
.page-hero .sub {
  color: #666666;
  margin-top: 0.75rem;
  max-width: 40rem;
  line-height: 1.65;
}
@media (min-width: 1024px) {
  .page-hero h1 { font-size: 2.5rem; }
}

/* Left sidebar */
.sidebar {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #efebe2;
  overflow: hidden;
}
.sidebar-head {
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: #1b60ae;
  font-size: 1rem;
}
.sidebar-list { padding: 0.5rem; }
.side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.875rem;
  font-size: 0.9rem;
  color: #444444;
  border-radius: 0.625rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-link:hover {  color: #1b60ae;   font-size: 0.9rem;   text-decoration: underline;}
.side-linkon {
  color: #1b60ae;  font-size: 0.9rem;
  padding: 0.7rem 0.875rem;
  text-decoration: underline;
}
.side-link.on { color: #1b60ae;  font-weight: 700; text-decoration: underline; }
.side-sub {
  padding: 0.6rem 0.875rem 0.6rem 1.75rem;
  font-size: 0.85rem;
  color: #666666;
  border-radius: 0.625rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-sub:hover { color: #1b60ae; }
.side-sub.on { color: #1b60ae; font-weight: 600; }

/* Contact mini-card in sidebar */
.side-contact {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid #efebe2;
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.9;
}
.side-contact .name { font-size: 1rem; font-weight: 600; color: #222222; margin-bottom: 0.5rem; }

/* Rich-text body for DB content (rich HTML from editor) */
.rich-text {
  color: #555555;
  line-height: 1.8;
  font-size: 0.95rem;
}
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 {
  color: #222222;
  font-weight: 700;
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
}
.rich-text h1 { font-size: 1.6rem; }
.rich-text h2 { font-size: 1.4rem; }
.rich-text h3 { font-size: 1.2rem; }
.rich-text h4 { font-size: 1.05rem; }
.rich-text p { margin: 0.75em 0; }
.rich-text ul, .rich-text ol { margin: 0.75em 0; padding-left: 1.5em; }
.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text li { margin: 0.3em 0; }
.rich-text a { color: #1b60ae; text-decoration: underline; }
.rich-text img { max-width: 100%; height: auto; border-radius: 0.75rem; margin: 1em 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.9rem; }
.rich-text table th, .rich-text table td {
  border: 1px solid #e5e0d4;
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.rich-text table th { background: #faf8f3; color: #222222; font-weight: 600; }
.rich-text blockquote {
  border-left: 3px solid #1b60ae;
  padding-left: 1rem;
  margin: 1em 0;
  color: #666666;
}

/* Pagination (ThinkPHP <{$page}> output) */
.page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.page a,
.page .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #555555;
  border: 1px solid #e5e0d4;
  background: #ffffff;
  transition: all 0.15s ease;
}
.page a:hover { border-color: #1b60ae; color: #1b60ae; }
.page .current { background: #1b60ae; border-color: #1b60ae; color: #ffffff; font-weight: 600; }
