
/* ═══════════════════════════════════════════
   M7: Mobile Responsive & UI Enhancement
   Deson Power — Industrial/Utilitarian
   ═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --cf-primary: #335DA7;
  --cf-primary-dark: #264780;
  --cf-accent: #eaa931;
  --cf-accent-dark: #d49920;
  --cf-bg-dark: #1a1a2e;
  --cf-bg-light: #f4f6fa;
  --cf-text: #2c3e50;
  --cf-text-muted: #7f8c8d;
  --cf-white: #ffffff;
  --cf-radius: 8px;
  --cf-shadow: 0 2px 12px rgba(0,0,0,.06);
  --cf-transition: 0.25s ease;
}

/* ── Typography ── */
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cf-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section ── */
.section {
  padding: 80px 0;
}
.section__title {
  text-align: center;
  margin-bottom: 48px;
}
.section__title h2 {
  color: var(--cf-primary);
  margin: 0 0 8px;
}
.section__title p {
  color: var(--cf-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Header / Nav ── */
.cf-header {
  background: var(--cf-white);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cf-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.cf-header__logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.cf-header__logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.cf-logo-text { letter-spacing: 0.02em; }

/* ── Navigation ── */
.cf-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.cf-nav__link {
  display: block;
  padding: 8px 14px;
  color: var(--cf-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--cf-radius);
  transition: all var(--cf-transition);
}
.cf-nav__link:hover {
  color: var(--cf-primary);
  background: rgba(51,93,167,.06);
}
.cf-nav__item.active .cf-nav__link {
  color: var(--cf-primary);
  background: rgba(51,93,167,.1);
}

/* ── Mobile Nav Toggle ── */
.cf-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.cf-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cf-primary);
  border-radius: 2px;
  transition: all var(--cf-transition);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--cf-radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--cf-transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--cf-primary);
  color: var(--cf-white);
}
.btn--primary:hover { background: var(--cf-primary-dark); }
.btn--accent {
  background: var(--cf-accent);
  color: var(--cf-white);
}
.btn--accent:hover { background: var(--cf-accent-dark); }
.btn--outline {
  background: transparent;
  color: var(--cf-primary);
  border-color: var(--cf-primary);
}
.btn--outline:hover {
  background: var(--cf-primary);
  color: var(--cf-white);
}

/* ── Hero Section ── */
.cf-hero {
  background: linear-gradient(135deg, var(--cf-bg-dark) 0%, #16213e 100%);
  color: var(--cf-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.cf-hero__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cf-hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 700px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.cf-hero__content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin: 0 0 32px;
}

/* ── Card Grids ── */
.cf-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cf-card {
  background: var(--cf-white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--cf-shadow);
  transition: transform var(--cf-transition), box-shadow var(--cf-transition);
}
.cf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.cf-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.cf-card h3 {
  color: var(--cf-primary);
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.cf-card p {
  color: var(--cf-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.cf-card a {
  color: var(--cf-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ── Two-Column Layout ── */
.cf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cf-two-col__content {
  padding: 40px;
  background: var(--cf-bg-light);
  border-radius: 12px;
  border-left: 4px solid var(--cf-primary);
}
.cf-two-col__content h2 {
  color: var(--cf-primary);
  margin: 0 0 12px;
}
.cf-two-col__content p {
  color: var(--cf-text-muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

/* ── Footer ── */
.cf-footer {
  background: var(--cf-bg-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.cf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cf-footer__col h4 {
  color: var(--cf-white);
  margin: 0 0 16px;
  font-size: 1rem;
}
.cf-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cf-footer__col ul li {
  margin-bottom: 10px;
}
.cf-footer__col ul li a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--cf-transition);
}
.cf-footer__col ul li a:hover { color: var(--cf-accent); }

/* ── Static Hero (Replace Animations) ── */
.cf-static-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.cf-static-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* ── Product Explode (Static replacement) ── */
.cf-product-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.cf-product-showcase__item {
  background: var(--cf-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--cf-shadow);
  transition: transform var(--cf-transition);
}
.cf-product-showcase__item:hover {
  transform: translateY(-4px);
}
.cf-product-showcase__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.cf-product-showcase__item h4 {
  padding: 16px 20px 8px;
  margin: 0;
  color: var(--cf-primary);
  font-size: 1rem;
}
.cf-product-showcase__item p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--cf-text-muted);
  font-size: 0.85rem;
}

/* ── Stats Bar — senmarck 风格: 居中大数字 + 竖线分隔 + 短描述 ── */
.cf-stats {
  background: var(--cf-primary);
  color: var(--cf-white);
  padding: 56px 0;
}
.cf-stats .container {
  max-width: 1100px;
}
.cf-stats__row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}
.cf-stats__cell {
  flex: 1 1 200px;
  text-align: center;
  padding: 0 20px;
  min-width: 180px;
}
.cf-stats__sep {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}
.cf-stats__num {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cf-stats__num sup {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: .85;
  margin-left: 2px;
  top: -0.6em;
}
.cf-stats__lbl {
  font-size: 0.9rem;
  opacity: .9;
  font-weight: 500;
  letter-spacing: 0.02em;
}

  font-size: 0.85rem;
  color: var(--cf-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── FAQ Section ── */
.cf-faq-section h2 {
  color: var(--cf-primary);
  text-align: center;
  margin-bottom: 32px;
}
.cf-faq-section details {
  background: var(--cf-bg-light);
  padding: 20px 24px;
  border-radius: var(--cf-radius);
  border-left: 4px solid var(--cf-primary);
  margin-bottom: 12px;
}
.cf-faq-section summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--cf-primary);
  font-size: 1rem;
}
.cf-faq-section summary::-webkit-details-marker { display: none; }
.cf-faq-section p {
  margin-top: 12px;
  color: var(--cf-text);
  line-height: 1.8;
}


/* ── Floating Contact Widget ── */
.cf-float-contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cf-float-contact__item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cf-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--cf-transition);
  font-size: 1.2rem;
}
.cf-float-contact__item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
}
.cf-float-contact__item--whatsapp:hover { background: #25D366; color: white; }
.cf-float-contact__item--telegram:hover { background: #0088cc; color: white; }
.cf-float-contact__item--messenger:hover { background: #0084ff; color: white; }
.cf-float-contact__item--email:hover { background: var(--cf-primary); color: white; }
.cf-float-contact__item--inquiry:hover { background: var(--cf-accent); color: white; }
.cf-float-contact__item--top:hover { background: var(--cf-bg-dark); color: white; }

.cf-float-contact__tooltip {
  position: absolute;
  right: 60px;
  background: var(--cf-bg-dark);
  color: var(--cf-white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all var(--cf-transition);
}
.cf-float-contact__item:hover .cf-float-contact__tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media screen and (max-width: 768px) {
  .cf-float-contact { right: 12px; bottom: 16px; gap: 8px; }
  .cf-float-contact__item { width: 42px; height: 42px; font-size: 1rem; }
  .cf-float-contact__tooltip { display: none; }
}

/* ── Newsletter ── */
.cf-newsletter {
  background: var(--cf-bg-light);
  padding: 48px 20px;
  text-align: center;
  border-top: 3px solid var(--cf-primary);
}
.cf-newsletter h3 { color: var(--cf-primary); margin: 0 0 8px; }
.cf-newsletter p { color: var(--cf-text-muted); margin: 0 0 20px; }
.cf-newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.cf-newsletter-form input[type="email"] {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--cf-radius);
  min-width: 300px;
  font-size: 0.95rem;
  font-family: inherit;
}
.cf-newsletter-form button {
  background: var(--cf-primary);
  color: var(--cf-white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--cf-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--cf-transition);
}
.cf-newsletter-form button:hover { background: var(--cf-primary-dark); }

/* ─── MOBILE RESPONSIVE (Media Queries) ─── */

/* Tablet (≤1024px) */
@media screen and (max-width: 1024px) {
  .cf-stats__sep, .cf-metrics__sep { display: none; }
  .cf-stats__row, .cf-metrics__row { gap: 16px; }
  .cf-card-grid,
  .cf-product-showcase { grid-template-columns: repeat(2, 1fr); }
  .cf-footer__grid { grid-template-columns: 1fr 1fr; }
  .cf-two-col { grid-template-columns: 1fr; gap: 24px; }
  .cf-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cf-audience-grid[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile (≤768px) */
@media screen and (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  
  /* Header */
  .cf-header__inner { height: 56px; padding: 0 16px; }
  
  /* Mobile Nav */
  .cf-nav-toggle { display: flex; }
  .cf-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cf-white);
    padding: 24px;
    z-index: 99;
    overflow-y: auto;
  }
  .cf-nav--open { display: block; }
  .cf-nav__list {
    flex-direction: column;
    gap: 4px;
  }
  .cf-nav__link {
    padding: 12px 16px;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
  }
  
  /* Card grids */
  .cf-card-grid,
  .cf-product-showcase { grid-template-columns: 1fr; }
  .cf-two-col { grid-template-columns: 1fr; }
  .cf-two-col__content { padding: 24px; }
  .cf-stats__grid { grid-template-columns: 1fr 1fr; }
  .cf-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  
  /* Hero */
  .cf-hero { padding: 60px 0 48px; }
  .cf-hero__content h1 { font-size: 1.6rem; }
  .cf-hero__content p { font-size: 1rem; }
  
  /* Audience grid */
  .cf-audience-grid[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .cf-solutions-grid[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Newsletter */
  .cf-newsletter-form { flex-direction: column; align-items: center; }
  .cf-newsletter-form input[type="email"] { min-width: 100%; width: 100%; }
  
  /* FAQ */
  .cf-faq-section { padding: 0 16px; }
  .cf-faq-section h2 { font-size: 1.4rem; }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
  .cf-stats__grid { grid-template-columns: 1fr; }
  .cf-stats__item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .cf-stats__item:last-child { border-bottom: none; }
  .cf-solutions-grid[style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr !important; }
}

/* ── Print styles ── */
@media print {
  .cf-nav-toggle, .cf-nav__lang, .cf-newsletter { display: none; }
  .cf-header { position: static; box-shadow: none; }
}
