/* ══════════════════════════════════════════════════════
   天创金农 · 移动端共享样式
══════════════════════════════════════════════════════ */
: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: 'PingFang SC','Microsoft YaHei','Helvetica Neue',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: var(--text-h); border-radius: 2px;
  transition: all 0.28s cubic-bezier(0.22,1,0.36,1);
}
.m-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(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;
  height: auto; max-height: calc(100vh - var(--nav-h));
  background: #fff; z-index: 999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
  overflow-y: auto; padding: 8px 0 16px;
}
.m-drawer.open { transform: translateX(0); }
.m-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; font-size: 15px; font-weight: 600;
  color: var(--text-h); border-bottom: 1px solid #f0f5f2;
}
.m-drawer-link.active { color: var(--brand); }
.m-drawer-phone {
  margin-top: 8px; color: var(--brand);
  background: rgba(0,156,103,0.06); border-top: 2px solid var(--border);
}
.m-drawer-contact {
  margin: 10px 16px 0;
  padding: 12px 14px;
  background: #f6fdf9; border: 1px solid #c8e8d8;
  border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
}
.m-drawer-contact img {
  width: 78px; height: 78px; object-fit: contain;
  border-radius: 8px; flex-shrink: 0;
}
.m-drawer-contact-info { flex: 1; min-width: 0; }
.m-drawer-contact-label {
  font-size: 13px; font-weight: 700; color: var(--text-h); margin-bottom: 3px;
}
.m-drawer-contact-hint { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.m-drawer-contact-phone {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--brand); text-decoration: none;
}
.m-drawer-sub { background: var(--bg-alt); display: none; }
.m-drawer-sub.open { display: block; }
.m-drawer-sub a {
  display: block; padding: 11px 20px 11px 32px;
  font-size: 13px; color: var(--text-body);
  border-bottom: 1px solid #e8f2eb;
}
.m-drawer-sub a:last-child { border-bottom: none; }
.m-drawer-arrow { font-size: 12px; color: var(--text-muted); transition: transform 0.2s; }
.m-drawer-arrow.open { transform: rotate(180deg); }

/* Mask */
.m-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.28); z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.m-mask.show { opacity: 1; pointer-events: auto; }

/* ── Hero ── */
.m-hero {
  position: relative; padding: 44px 16px 40px;
  background: linear-gradient(150deg, #071a0f 0%, #0c2f18 100%);
  overflow: hidden;
}
.m-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.3;
}
.m-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5,18,10,0.55), rgba(5,18,10,0.75));
}
.m-hero-content { position: relative; z-index: 1; }
.m-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 1px solid rgba(0,200,130,0.35);
  border-radius: 20px; font-size: 11px; color: var(--brand-light);
  margin-bottom: 14px; letter-spacing: 0.5px;
  background: rgba(0,156,103,0.12);
}
.m-hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand-light);
  animation: m-blink 2s ease-in-out infinite;
}
@keyframes m-blink { 0%,100%{opacity:1}50%{opacity:0.3} }
.m-hero h1 {
  font-size: 28px; font-weight: 900; color: #fff;
  line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.01em;
}
.m-hero h1 span { color: var(--brand-light); }
.m-hero p {
  font-size: 13px; color: rgba(255,255,255,0.62);
  line-height: 1.8; margin-bottom: 24px;
}
.m-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Buttons ── */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s; white-space: nowrap;
}
.m-btn-primary { background: var(--brand); color: #fff; }
.m-btn-primary:active { background: var(--brand-dark); }
.m-btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.38); }
.m-btn-outline:active { background: rgba(255,255,255,0.1); }
.m-btn-white { background: #fff; color: var(--brand); }
.m-btn-ghost { background: rgba(0,156,103,0.08); color: var(--brand); border: 1px solid rgba(0,156,103,0.22); }

/* ── Stats bar ── */
.m-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-bottom: 1px solid var(--border);
}
.m-stat {
  padding: 16px 12px; text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.m-stat:nth-child(2n) { border-right: none; }
.m-stat:nth-last-child(-n+2) { border-bottom: none; }
.m-stat-num { font-size: 22px; font-weight: 900; color: var(--brand); line-height: 1.1; }
.m-stat-num em { font-style: normal; font-size: 13px; color: var(--text-h); font-weight: 600; }
.m-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── Section ── */
.m-section { padding: 36px 16px; }
.m-section-alt { background: var(--bg-alt); }
.m-section-dark { background: #081a0e; }
.m-section-label {
  font-size: 11px; font-weight: 700; color: var(--brand);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}
.m-section-title {
  font-size: 22px; font-weight: 900; color: var(--text-h);
  line-height: 1.3; margin-bottom: 8px;
}
.m-section-title span { color: var(--brand); }
.m-section-dark .m-section-title { color: #fff; }
.m-section-dark .m-section-label { color: rgba(0,200,130,0.8); }
.m-section-desc {
  font-size: 13px; color: #666;
  line-height: 1.8; margin-bottom: 20px;
}

/* ── Cards (single col) ── */
.m-cards { display: flex; flex-direction: column; gap: 14px; }
.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;
  background: #e8f2eb; overflow: hidden;
}
.m-card-img img { width: 100%; height: 100%; object-fit: cover; }
.m-card-body { padding: 14px 16px 18px; }
.m-card-tag {
  display: inline-block; padding: 2px 8px;
  background: rgba(0,156,103,0.08); color: var(--brand);
  border-radius: 4px; font-size: 11px; font-weight: 600; margin-bottom: 7px;
}
.m-card-title { font-size: 16px; font-weight: 700; color: var(--text-h); margin-bottom: 5px; }
.m-card-desc { font-size: 12px; color: #666; line-height: 1.8; }
.m-card-result {
  margin-top: 8px; padding: 6px 10px;
  background: rgba(0,156,103,0.06); border-left: 3px solid var(--brand);
  font-size: 12px; color: var(--brand); border-radius: 0 6px 6px 0;
}

/* ── Grid 2-col ── */
.m-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-grid-2 .m-card-body { padding: 12px; }
.m-grid-2 .m-card-title { font-size: 13px; }
.m-grid-2 .m-card-desc { font-size: 12px; }
a.m-prod-card { text-decoration: none; color: inherit; display: block; transition: box-shadow .2s, transform .2s; }
a.m-prod-card:hover { box-shadow: 0 4px 16px rgba(0,156,103,.18); transform: translateY(-2px); }

/* ── List items ── */
.m-list { display: flex; flex-direction: column; gap: 10px; }
.m-list-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; background: var(--bg-alt); border-radius: 10px;
  border: 1px solid var(--border);
}
.m-list-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.m-list-text h4 { font-size: 14px; font-weight: 700; color: var(--text-h); }
.m-list-text p { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.8; }
a.m-list-item { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.m-list-item:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0,156,103,.12); }

/* ── Module chips ── */
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip {
  padding: 6px 10px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; color: var(--text-body); font-weight: 500;
}

/* ── Tag ── */
.m-tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; margin: 2px;
}
.m-tag-gold { background: rgba(200,150,0,0.1); color: #b38600; border: 1px solid rgba(200,150,0,0.25); }
.m-tag-brand { background: rgba(0,156,103,0.08); color: var(--brand); border: 1px solid rgba(0,156,103,0.2); }
.m-tag-blue { background: rgba(45,125,210,0.08); color: #2d7dd2; border: 1px solid rgba(45,125,210,0.2); }

/* ── CTA strip ── */
.m-cta-strip {
  background: linear-gradient(135deg, #071a0f 0%, #0d2a18 100%);
  padding: 36px 16px; text-align: center;
  color: #fff;
}
.m-cta-strip h2 { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.m-cta-strip p { font-size: 13px; color: rgba(255,255,255,0.72); margin-bottom: 22px; line-height: 1.7; }
.m-cta-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 16px;
  text-decoration: none;
}
.m-cta-phone-label { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ── Highlight box ── */
.m-highlight {
  background: rgba(0,156,103,0.06); border: 1px solid rgba(0,156,103,0.18);
  border-radius: 10px; padding: 14px 16px;
}
.m-highlight p { font-size: 13px; color: var(--text-body); line-height: 1.8; }

/* ── Divider ── */
.m-divider { height: 1px; background: var(--border); margin: 0 16px; }

/* ── Float buttons ── */
.m-float {
  position: fixed; bottom: 24px; right: 14px;
  z-index: 900; display: flex; flex-direction: column; gap: 10px;
}
.m-float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  text-decoration: none; border: none; cursor: pointer;
  font-size: 20px; transition: transform 0.15s;
}
.m-float-btn:active { transform: scale(0.9); }
.m-float-phone { background: var(--brand); color: #fff; }
.m-float-wx { background: #07c160; color: #fff; font-size: 13px; font-weight: 700; }

/* ── QR Modal ── */
.m-qr-wrap {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.48);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s;
}
.m-qr-wrap.show { opacity: 1; pointer-events: auto; }
.m-qr-box {
  background: #fff; border-radius: 16px;
  padding: 28px 24px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.m-qr-box img { width: 160px; height: 160px; border-radius: 10px; display: block; margin: 0 auto; }
.m-qr-box h4 { font-size: 15px; font-weight: 700; color: var(--text-h); margin-top: 14px; }
.m-qr-box p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.m-qr-close {
  display: block; width: 100%; margin-top: 16px;
  padding: 11px; background: var(--bg-alt);
  border: none; border-radius: 8px;
  font-size: 14px; cursor: pointer; color: var(--text-body);
}

/* ── Footer ── */
.m-footer {
  background: #071408; padding: 40px 16px 96px;
  color: rgba(255,255,255,0.55); font-size: 12px;
}
.m-desktop-link {
  display: block; text-align: center; padding: 11px;
  background: rgba(255,255,255,0.05); border-radius: 8px;
  color: rgba(255,255,255,0.4); font-size: 12px;
  margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.08);
}
.m-footer img { height: 26px; margin-bottom: 14px; }
.m-footer-contact { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.m-footer-contact a { color: rgba(255,255,255,0.55); }
.m-footer-nav { display: flex; flex-wrap: nowrap; gap: 8px 14px; margin-bottom: 20px; justify-content: space-between; }
.m-footer-nav a { color: rgba(255,255,255,0.45); font-size: 13px; white-space: nowrap; }
.m-footer-qr-row { display: flex; gap: 18px; margin-bottom: 18px; }
.m-footer-qr-item { text-align: center; }
.m-footer-qr-item img { width: 52px; height: 52px; border-radius: 6px; }
.m-footer-qr-item span { display: block; font-size: 11px; margin-top: 4px; color: rgba(255,255,255,0.4); }
.m-footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px; font-size: 11px; color: rgba(255,255,255,0.28);
}

/* ── Page Hero (三层结构：背景图 / 遮罩 / 文字) ── */
.m-page-hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(150deg, #071a0f 0%, #0c2f18 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
/* 层1：背景图容器 */
.m-bg-wrap {
  position: absolute; inset: 0; z-index: 0;
}
.m-bg-wrap .m-img-ph {
  width: 100%; height: 100%;
  border-radius: 0; border: none; min-height: 280px;
}
.m-bg-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* 层2：遮罩 */
.m-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(5,18,10,0.48) 0%, rgba(5,18,10,0.82) 100%);
}
/* 层3：文字内容 */
.m-hero-content {
  position: relative; z-index: 2;
  padding: 56px 16px 36px;
}
.m-hero-content h1 { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.m-hero-content h1 span { color: var(--brand-light); }
.m-hero-content p { font-size: 13px; color: rgba(255,255,255,0.62); line-height: 1.8; }

/* ── Tab bar ── */
.m-tabs {
  display: flex; overflow-x: auto; gap: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 50;
  scrollbar-width: none;
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  flex: 0 0 auto; padding: 14px 20px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
  background: none; border-left: none; border-right: none; border-top: none;
  cursor: pointer;
}
.m-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ── Timeline ── */
.m-timeline { display: flex; flex-direction: column; gap: 0; }
.m-timeline-item { display: flex; gap: 14px; padding-bottom: 20px; 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%;
  background: var(--brand); flex-shrink: 0; margin-top: 2px;
  box-shadow: 0 0 0 3px rgba(0,156,103,0.15);
}
.m-timeline-year { font-size: 13px; font-weight: 700; color: var(--brand); }
.m-timeline-text { font-size: 13px; color: var(--text-body); line-height: 1.8; }

/* ── Number badge ── */
.m-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ── Honor certs ── */
.m-cert-list { display: flex; flex-direction: column; gap: 8px; }
.m-cert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
}
.m-cert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.m-cert-text { font-size: 13px; font-weight: 500; color: var(--text-h); }

/* ── Contact form ── */
.m-form { display: flex; flex-direction: column; gap: 10px; }
.m-form input, .m-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text-h);
  background: #fff; outline: none;
  transition: border-color 0.2s;
}
.m-form input:focus, .m-form textarea:focus { border-color: var(--brand); }
.m-form textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.m-form-submit {
  background: var(--brand); color: #fff; border: none;
  padding: 13px; border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; width: 100%;
}

/* ── Img placeholder ── */
.m-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e8f2eb 0%, #d4e8db 100%);
  display: flex; align-items: center; justify-content: center;
}
.m-img-ph span { display: none; }

/* ── Partner logos ── */
.m-partner-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.m-partner-item {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 8px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-muted); text-align: center; min-height: 52px;
}

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

/* ── Service item ── */
.m-service-item {
  padding: 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px;
}
.m-service-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.m-service-icon { font-size: 28px; }
.m-service-name { font-size: 15px; font-weight: 700; color: var(--text-h); }
.m-service-sub { font-size: 12px; color: var(--text-muted); }
.m-service-desc { font-size: 13px; color: var(--text-body); line-height: 1.8; }
.m-check-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.m-check-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-body); }
.m-check-item::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── CTA WeChat block ── */
.m-cta-wechat {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.m-cta-wechat img {
  width: 148px; height: 148px; border-radius: 12px; flex-shrink: 0;
  background: #fff; padding: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.m-cta-wechat-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; text-align: center; }
.m-cta-wechat-sub { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.6; text-align: center; }

img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
