/* ══════════════════════════════════════════════════════
   Tianchuang Jinnong · Mobile Shared Styles (English)
══════════════════════════════════════════════════════ */
:root {
  --brand:      #009c67;
  --brand-dark: #007a52;
  --brand-light:#00c882;
  --text-h:     #081a0e;
  --text-body:  #2d4a35;
  --text-muted: #888;
  --bg:         #ffffff;
  --bg-alt:     #f4fbf6;
  --border:     #d4e8db;
  --nav-h:      52px;
  --radius:     12px;
  --shadow:     0 2px 16px rgba(0,0,0,0.08);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg);
  padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
  word-break: break-word;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ── Nav ── */
.m-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.m-nav-logo img { height: 28px; display: block; }
.m-nav-lang {
  margin-left: auto; margin-right: 6px;
  display: inline-flex; align-items: center;
  padding: 0 10px; height: 30px;
  border: 1.5px solid var(--brand); border-radius: 4px;
  font-size: 12px; font-weight: 600; color: var(--brand);
  text-decoration: none; opacity: 0.85;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.m-nav-lang:hover { opacity: 1; }
.m-hamburger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; background: none; border: none; padding: 4px;
}
.m-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #333; border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.m-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-hamburger.open span:nth-child(2) { opacity: 0; }
.m-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Drawer ── */
.m-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  z-index: 900; overflow-y: auto; padding: 16px 0 40px;
  display: flex; flex-direction: column;
}
.m-drawer.open { transform: translateX(0); }
.m-drawer-link {
  display: block; padding: 14px 20px;
  font-size: 16px; font-weight: 600; color: var(--text-h);
  border-bottom: 1px solid var(--border);
}
.m-drawer-link.active { color: var(--brand); }
.m-drawer-contact {
  display: flex; align-items: center; gap: 14px;
  padding: 20px;
  margin-top: auto;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.m-drawer-contact img { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; }
.m-drawer-contact-label { font-size: 13px; font-weight: 700; color: var(--text-h); }
.m-drawer-contact-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.m-drawer-contact-phone { display: block; font-size: 13px; color: var(--brand); font-weight: 700; margin-top: 6px; }
.m-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 800; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.m-mask.show { opacity: 1; pointer-events: auto; }

/* ── Hero (video) ── */
.m-hero {
  position: relative; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #071a0f;
}
.m-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.m-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(4,20,10,0.72) 0%, rgba(8,30,16,0.65) 100%);
}
.m-hero-content {
  position: relative; z-index: 2; padding: 32px 20px;
  width: 100%;
}
.m-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,156,103,0.45); border-radius: 20px;
  padding: 5px 14px; margin-bottom: 16px;
  background: rgba(0,156,103,0.12);
}
.m-hero-badge-dot {
  width: 6px; height: 6px; background: var(--brand-light);
  border-radius: 50%; flex-shrink: 0;
  animation: badge-blink 2s ease-in-out infinite;
}
@keyframes badge-blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.m-hero-content h1 {
  font-size: 26px; font-weight: 900; color: #fff;
  line-height: 1.25; margin-bottom: 12px;
}
.m-hero-content h1 span { color: var(--brand-light); }
.m-hero-content p {
  font-size: 13px; color: rgba(255,255,255,0.70);
  line-height: 1.8; margin-bottom: 20px;
}
.m-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Page Hero (static bg) ── */
.m-page-hero {
  position: relative; min-height: 220px;
  display: flex; align-items: center;
  overflow: hidden; background: #071a0f;
}
.m-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
}
.m-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(4,20,10,0.78) 0%, rgba(8,30,16,0.72) 100%);
}

/* ── Buttons ── */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s;
}
.m-btn:active { opacity: 0.8; }
.m-btn-primary { background: var(--brand); color: #fff; }
.m-btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.m-btn-white { background: #fff; color: var(--brand); }

/* ── Stats bar ── */
.m-stats {
  display: flex; background: #071a0f; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.m-stats::-webkit-scrollbar { display: none; }
.m-stat {
  flex: 1 0 25%; padding: 16px 8px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.m-stat:last-child { border-right: none; }
.m-stat-num { font-size: 20px; font-weight: 900; color: var(--brand-light); line-height: 1; }
.m-stat-num em { font-style: normal; font-size: 13px; }
.m-stat-label { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ── Section ── */
.m-section {
  padding: 32px 16px;
}
.m-section-alt { background: var(--bg-alt); }
.m-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--brand); text-transform: uppercase;
  margin-bottom: 8px;
}
.m-section-title {
  font-size: 22px; font-weight: 900; color: var(--text-h);
  line-height: 1.25; margin-bottom: 8px;
}
.m-section-title span { color: var(--brand); }
.m-section-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 4px;
}

/* ── Cards ── */
.m-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.m-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.m-card-img {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: #e8f2eb;
}
.m-card-body { padding: 14px 16px; }
.m-card-title { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.m-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
.m-card-result {
  font-size: 11px; color: var(--brand); font-weight: 600;
  background: rgba(0,156,103,0.08); padding: 5px 10px;
  border-radius: 6px; display: inline-block;
}

/* ── Grid ── */
.m-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 16px;
}

/* ── Image placeholder ── */
.m-img-ph {
  width: 100%; height: 100%; min-height: 120px;
  background: #c8e6d8;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #888;
  overflow: hidden; position: relative;
}
.m-img-ph span {
  position: absolute; bottom: 8px; left: 0; right: 0;
  text-align: center; font-size: 10px; color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); pointer-events: none;
}

/* ── Chips ── */
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
  background: rgba(0,156,103,0.08); color: var(--brand);
  border: 1px solid rgba(0,156,103,0.18);
}

/* ── Highlight block ── */
.m-highlight {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px;
}

/* ── Tags ── */
.m-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.m-tag-brand { background: rgba(0,156,103,0.12); color: var(--brand); border: 1px solid rgba(0,156,103,0.25); }

/* ── Timeline ── */
.m-timeline { list-style: none; padding: 0; }
.m-timeline-item {
  display: flex; gap: 14px; padding-bottom: 28px;
  position: relative;
}
.m-timeline-item::before {
  content: '';
  position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px;
  background: var(--border);
}
.m-timeline-item:last-child::before { display: none; }
.m-timeline-dot {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand); border: 2px solid var(--brand);
  margin-top: 2px;
}
.m-timeline-year { font-size: 14px; font-weight: 900; color: var(--brand); margin-bottom: 4px; }
.m-timeline-text { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

/* ── Cert list ── */
.m-cert-list { list-style: none; }
.m-cert-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.m-cert-item:last-child { border-bottom: none; }
.m-cert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.m-cert-text { font-size: 13px; color: var(--text-h); }

/* ── Hero product card (horizontal) ── */
.m-hero-card {
  display: flex; flex-direction: row; align-items: stretch;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.m-hero-card-img {
  width: 120px; flex-shrink: 0;
  overflow: hidden; background: #e8f2eb;
}
.m-hero-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-hero-card-img .m-img-ph { width: 100%; height: 100%; border-radius: 0; border: none; min-height: 100px; }
.m-hero-card-body {
  padding: 12px 14px; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.m-hero-card-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.m-hero-card-title { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 4px; }
.m-hero-card-desc {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.m-hero-card .m-chips { gap: 5px; }
.m-hero-card .m-chip { padding: 4px 8px; font-size: 11px; border-radius: 5px; }

.m-hero-card--sense .m-hero-card-label  { color: #009c67; }
.m-hero-card--control .m-hero-card-label { color: #2d7dd2; }
.m-hero-card--water .m-hero-card-label  { color: #0096a0; }
.m-hero-card--manage .m-hero-card-label  { color: #6b46c1; }

/* ── Tabs ── */
.m-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  flex: none; padding: 13px 18px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent; white-space: nowrap;
  transition: all 0.2s;
}
.m-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.m-tab-panel { }

/* ── CTA strip ── */
.m-cta-strip {
  background: linear-gradient(135deg, #071a0f, #0a2415);
  padding: 32px 20px; margin: 0; text-align: center; color: #fff;
}
.m-cta-wechat {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 14px 16px;
  max-width: 320px; margin: 12px auto;
}
.m-cta-wechat img { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; }
.m-cta-wechat-title { font-size: 14px; font-weight: 700; }
.m-cta-wechat-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; }

/* ── Footer ── */
.m-footer {
  background: #071a0f; padding: 28px 20px;
  text-align: center; color: rgba(255,255,255,0.6);
}
.m-footer img { height: 28px; margin: 0 auto 16px; }
.m-desktop-link {
  display: inline-block; font-size: 12px;
  color: rgba(255,255,255,0.4); margin-bottom: 16px;
  text-decoration: underline;
}
.m-footer-contact { font-size: 12px; line-height: 2; margin-bottom: 16px; }
.m-footer-contact a { display: block; }
.m-footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 16px; margin-bottom: 16px;
}
.m-footer-nav a { font-size: 12px; color: rgba(255,255,255,0.5); }
.m-footer-qr-row { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.m-footer-qr-item { text-align: center; }
.m-footer-qr-item img { width: 56px; height: 56px; border-radius: 6px; margin: 0 auto 4px; }
.m-footer-qr-item span { font-size: 11px; display: block; }
.m-footer-copy { font-size: 11px; color: rgba(255,255,255,0.3); }

/* ── Float buttons ── */
.m-float {
  position: fixed; bottom: 24px; right: 16px;
  display: flex; flex-direction: column; gap: 10px; z-index: 500;
}
.m-float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,156,103,0.38);
  border: none; cursor: pointer; text-decoration: none;
}
.m-float-phone { font-size: 20px; }

/* ── WeChat QR popup ── */
.m-qr-wrap {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.m-qr-wrap.show { opacity: 1; pointer-events: auto; }
.m-qr-box {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  text-align: center; max-width: 260px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.m-qr-box img { width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 8px; }
.m-qr-box h4 { font-size: 16px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.m-qr-box p { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.m-qr-close {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 24px; font-size: 13px; cursor: pointer;
}

/* ── Fade-in animation ── */
.m-fade { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.m-fade.visible { opacity: 1; transform: translateY(0); }

/* ── Partner logos ── */
.m-logo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 16px;
}
.m-logo-item {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 8px; text-align: center;
  font-size: 11px; font-weight: 600; color: var(--text-h);
  line-height: 1.4;
}

/* ── Services tiles ── */
.m-service-tile {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.m-service-icon { font-size: 28px; margin-bottom: 10px; }
.m-service-title { font-size: 16px; font-weight: 800; color: var(--text-h); margin-bottom: 6px; }
.m-service-desc { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
