/*
Theme Name: Dynaforce Sensor
Theme URI: https://dynaforce-sensor.com
Description: Custom WordPress theme for Dynaforce Sensor (丹纳福传感技术) — industrial pressure, level, flow, differential pressure and temperature transmitters.
Version: 1.0.0
Author: Dynaforce Sensor
Author URI: https://dynaforce-sensor.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dynaforce
Tags: one-column, custom-logo, translation-ready
*/

   Dynaforce Sensor - Main Stylesheet
   ========================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #0a3d6b;   /* deep navy */
  --primary-light: #1565a8;
  --accent:    #e8a020;   /* warm amber */
  --accent-dark: #c47a10;
  --dark:      #111827;
  --gray-800:  #1f2937;
  --gray-600:  #4b5563;
  --gray-400:  #9ca3af;
  --gray-100:  #f3f4f6;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.16);
  --transition: .3s ease;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }

/* ---- Typography ---- */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ==========================================
   NAVBAR (always solid white)
   ========================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar .nav-cta .btn-primary {
  background: var(--primary);
  color: #fff;
}
#navbar .nav-cta .btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 16px rgba(10,61,107,.3);
}
#navbar .nav-dropdown-menu {
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
#navbar .nav-dropdown-menu a {
  color: var(--gray-700) !important;
}
#navbar .nav-dropdown-menu a:hover {
  color: var(--primary) !important;
  background: var(--gray-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo .logo-en {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
  line-height: 1;
}
.nav-logo .logo-cn {
  font-size: .68rem;
  color: var(--gray-600);
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--primary);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--primary-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary-light); }
.nav-links a.active::after { width: 100%; }

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  padding: 8px 0;
  z-index: 100;
  animation: fadeIn .2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--dark) !important;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  border-radius: 0;
}
.nav-dropdown-menu li a:hover {
  background: var(--gray-100);
  color: var(--primary-light) !important;
}
.nav-dropdown-menu li a::after {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
#hero {
  min-height: 100dvh;
  min-height: 100vh; /* fallback for browsers without dvh support */
  background:
    linear-gradient(135deg, rgba(10,61,107,.92) 0%, rgba(21,101,168,.82) 60%, rgba(10,61,107,.95) 100%),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(232,160,32,.15) 0%, transparent 60%);
}

/* animated grid lines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  animation: fadeUp .8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,160,32,.18);
  border: 1px solid rgba(232,160,32,.4);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span { color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce 2s infinite;
}
.scroll-down svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   FEATURES / WHY US
   ========================================== */
#features {
  background: var(--gray-100);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; stroke-width: 1.8; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ==========================================
   PRODUCTS
   ========================================== */
#products { background: var(--white); }

.products-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 8px 22px;
  border-radius: 99px;
  border: 1.5px solid var(--gray-400);
  background: transparent;
  color: var(--gray-600);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-img {
  height: 210px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img svg {
  width: 80px; height: 80px;
  stroke: rgba(255,255,255,.9);
  fill: none;
  stroke-width: 1.5;
}
.product-img .prod-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.product-body {
  padding: 24px;
}
.product-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.product-body p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 16px;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.spec-tag {
  font-size: .75rem;
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 99px;
  border: 1px solid rgba(0,0,0,.08);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary-light);
  transition: gap var(--transition);
}
.product-link:hover { gap: 10px; color: var(--accent); }

/* ==========================================
   ABOUT
   ========================================== */
#about { background: var(--gray-100); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-img-wrap svg {
  width: 120px; height: 120px;
  stroke: rgba(255,255,255,.85);
  fill: none;
  stroke-width: 1.2;
}

.about-float-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  min-width: 180px;
}
.about-float-card .big-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.about-float-card p {
  font-size: .82rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.about-content .section-sub {
  max-width: 100%;
  margin-bottom: 28px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-list-item .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.about-list-item .check svg {
  width: 12px; height: 12px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
}
.about-list-item p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid rgba(10,61,107,.15);
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
}
.cert-badge svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* ==========================================
   APPLICATIONS
   ========================================== */
#applications { background: var(--primary); }
#applications .section-title { color: var(--white); }
#applications .section-sub  { color: rgba(255,255,255,.7); }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.app-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.app-card:hover {
  background: rgba(255,255,255,.14);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.app-card svg {
  width: 40px; height: 40px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 14px;
}
.app-card h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.app-card p {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
}

/* ==========================================
   CTA BANNER
   ========================================== */
#cta-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  padding: 72px 0;
}
#cta-banner .section-title { color: var(--white); }
#cta-banner .section-sub  { color: rgba(255,255,255,.85); margin-bottom: 36px; }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

/* ==========================================
   CONTACT
   ========================================== */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 56px;
}

.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item .ci-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item .ci-icon svg {
  width: 20px; height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
}
.contact-item .ci-text .label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-item .ci-text .value {
  font-size: .92rem;
  color: var(--dark);
  font-weight: 500;
}

/* Form */
.contact-form {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--radius);
  font-size: .92rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(21,101,168,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ==========================================
   FOOTER
   ========================================== */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo .logo-en {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-logo .logo-cn {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-logo p {
  font-size: .85rem;
  line-height: 1.75;
  max-width: 280px;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.footer-col a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* ==========================================
   MOBILE MENU OVERLAY
   ========================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: opacity var(--transition);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

/* ==========================================
   PAGE HERO BANNER (inner pages)
   ========================================== */
.page-hero {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(10,61,107,.92) 0%, rgba(21,101,168,.82) 60%, rgba(10,61,107,.95) 100%);
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px; /* navbar height */
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(232,160,32,.15) 0%, transparent 60%);
}

/* ==========================================
   PRODUCTS PAGE LAYOUT
   ========================================== */
.products-page-section {
  padding: 80px 0;
}

/* ---- Category Overview Cards ---- */
.cat-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 16px;
}
.cat-stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.cat-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.cat-stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  letter-spacing: .04em;
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cat-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.cat-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: rgba(255,255,255,.9);
  fill: none;
  stroke-width: 1.5;
}

.cat-card-body {
  flex: 1;
}
.cat-card-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.cat-card-cn {
  font-size: .82rem;
  color: var(--gray-400);
  margin-bottom: 10px;
}
.cat-card-body > p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cat-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-card-tags span {
  font-size: .72rem;
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 99px;
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
}

.cat-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.cat-card-count {
  font-size: .82rem;
  color: var(--gray-400);
  font-weight: 600;
}
.cat-card-arrow {
  font-size: 1.2rem;
  color: var(--primary-light);
  font-weight: 700;
  transition: transform var(--transition);
}
.cat-card:hover .cat-card-arrow {
  transform: translateX(4px);
}

.cat-oem-cta {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--gray-100);
  border-radius: 16px;
  border: 2px dashed rgba(10,61,107,.15);
}
.cat-oem-left h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.cat-oem-left p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Products Page Layout (sidebar removed, replaced by category pages) ---- */
.products-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--gray-100);
  border-radius: 12px;
  align-items: center;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,.1);
}
.filter-search svg {
  flex-shrink: 0;
  opacity: .4;
}
.filter-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: .9rem;
  font-family: inherit;
  background: transparent;
  color: var(--dark);
}
.filter-search input::placeholder {
  color: var(--gray-400);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-controls select {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,.1);
  background: var(--white);
  font-size: .85rem;
  font-family: inherit;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filter-controls select:focus {
  border-color: var(--primary-light);
}

.filter-reset {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,.15);
  background: transparent;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.filter-reset:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

.filter-results-info {
  margin-bottom: 20px;
}
.filter-results-info span {
  font-size: .85rem;
  color: var(--gray-400);
  font-weight: 600;
}

.filter-no-results {
  text-align: center;
  padding: 64px 20px;
}
.filter-no-results h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-top: 16px;
}
.filter-no-results p {
  font-size: .9rem;
  color: var(--gray-400);
  margin-top: 8px;
}

/* ---- Product List (table-like) ---- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pli-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  transition: opacity var(--transition);
}
.pli-img:hover {
  opacity: 0.85;
}
.pli-img svg {
  width: 36px;
  height: 36px;
  stroke: rgba(255,255,255,.9);
  fill: none;
  stroke-width: 1.5;
}
.pli-img .prod-badge {
  top: -6px;
  right: -6px;
  font-size: .65rem;
  padding: 2px 8px;
}

.pli-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.pli-cn {
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: 6px;
}
.pli-desc {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pli-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.pli-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pli-spec-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
}
.pli-spec-value {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark);
}

.pli-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 130px;
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---- Breadcrumb ---- */
.breadcrumb a {
  transition: color var(--transition);
}
.breadcrumb a:hover {
  color: rgba(255,255,255,1) !important;
}

/* ---- Digital Display page ---- */
.display-info-banner {
  padding: 36px 40px;
  background: var(--gray-100);
  border-radius: 16px;
  margin-bottom: 40px;
}
.display-info-left {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.display-info-left h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.display-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.display-type-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.display-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.display-type-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.display-type-icon svg {
  width: 26px;
  height: 26px;
  stroke: rgba(255,255,255,.9);
  fill: none;
  stroke-width: 1.5;
}
.display-type-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.display-type-card p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}
.display-type-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-light);
  transition: gap var(--transition);
}
.display-type-card:hover .display-type-link {
  color: var(--accent);
}


/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-page-section {
  padding: 80px 0;
}

.key-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.key-number-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--gray-100);
  border-radius: 12px;
}
.key-number-card .kn-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.key-number-card .kn-label {
  font-size: .9rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* ==========================================
   APPLICATIONS PAGE
   ========================================== */
.applications-page-section {
  padding: 80px 0;
}

.app-grid-full {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-detail-card {
  display: flex;
  gap: 36px;
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.app-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-detail-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-detail-icon svg {
  width: 40px;
  height: 40px;
  stroke: rgba(255,255,255,.9);
  fill: none;
  stroke-width: 1.5;
}

.app-detail-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.app-detail-body > p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.app-use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.app-use-cases span {
  font-size: .78rem;
  padding: 5px 14px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 99px;
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
}

.app-products-used {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(10,61,107,.04);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}
.app-products-used strong {
  color: var(--primary);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 480px; }
  /* Fix float card overflow on smaller screens */
  .about-float-card { bottom: 0; right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-grid .section-sub { margin: 0 auto 36px; }
  .product-list-item { grid-template-columns: auto 1fr auto; }
  .pli-specs { display: none; }
  .cat-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .products-page-section { padding: 48px 0; }
  .about-page-section { padding: 48px 0; }
  .applications-page-section { padding: 48px 0; }
  /* Navbar: hide desktop links, show hamburger */
  .nav-links { display: none; }
  /* Hide "Get a Quote" button on mobile, keep hamburger */
  .nav-cta .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  /* Hero stats: allow wrapping on small screens */
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat { min-width: 80px; }
  /* Page hero padding */
  .page-hero { padding-top: 80px; min-height: 220px; }
  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* About */
  .about-float-card { right: 0; bottom: 0; }
  /* Products header */
  .products-header { flex-direction: column; align-items: flex-start; }
  /* Applications */
  .app-detail-card { flex-direction: column; gap: 20px; padding: 24px; }
  .app-detail-icon { width: 60px; height: 60px; border-radius: 12px; }
  /* Category stats bar */
  .cat-stats-bar { gap: 16px; padding: 20px; }
  .cat-stat-num { font-size: 1.6rem; }
  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-controls { flex-wrap: wrap; }
  /* Product list */
  .product-list-item {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .pli-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: unset;
  }
  .pli-img { width: 56px; height: 56px; }
  .pli-img svg { width: 28px; height: 28px; }
  /* OEM CTA */
  .cat-oem-cta { flex-direction: column; gap: 24px; text-align: center; }
  /* Display types grid */
  .display-types-grid { grid-template-columns: 1fr 1fr; }
  /* Mobile menu: reduce font size to prevent overflow */
  .mobile-menu a { font-size: 1.15rem; }
  /* Container: slightly tighter on mobile */
  .container { padding: 0 16px; }
  /* Buttons: ensure full-width CTAs are usable */
  .cat-oem-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  /* Hero buttons: full width stacked */
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  /* Hero stats: 2-column grid on very small screens */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stat { min-width: 0; }
  /* Contact form */
  .contact-form { padding: 20px 16px; }
  /* Key numbers */
  .key-numbers-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  /* Category stats: single column */
  .cat-stats-bar { flex-direction: column; gap: 12px; }
  .cat-card { padding: 20px; }
  /* Filter controls */
  .filter-controls select { flex: 1; min-width: 0; }
  /* Display grid: single column */
  .display-types-grid { grid-template-columns: 1fr; }
  /* Product list item */
  .product-list-item { padding: 14px; gap: 12px; }
  /* Section padding reduction */
  section { padding: 48px 0; }
  /* Navbar height reduction */
  .nav-inner { height: 60px; }
  /* Logo font size reduction */
  .nav-logo .logo-en { font-size: 1.05rem; }
  .nav-logo .logo-cn { display: none; }
  /* Page hero */
  .page-hero { padding-top: 68px; min-height: 180px; }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
