/* ============================================================
   deenken.com Mobile Styles
   重庆鼎开科技有限公司 - 移动端专用样式
   B2B 条码标签制造 - 转化优化
   ============================================================ */

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #E65100;
  --success: #2E7D32;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #212121;
  --text-secondary: #616161;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* space for fixed bottom CTA */
  padding-bottom: calc(72px + var(--safe-bottom));
}

/* ===== HEADER ===== */
.m-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-header .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-header .logo span { color: var(--accent); }
.m-menu-btn {
  width: 40px; height: 40px;
  border: none; background: none;
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  cursor: pointer; padding: 8px;
}
.m-menu-btn span {
  display: block; height: 2px; width: 22px;
  background: var(--text); border-radius: 1px;
  transition: all 0.2s;
}
.m-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.m-menu-btn.open span:nth-child(2) { opacity: 0; }
.m-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Slide-out nav */
.m-nav {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
  visibility: hidden; opacity: 0; transition: all 0.25s;
}
.m-nav.open { visibility: visible; opacity: 1; }
.m-nav-inner {
  background: #fff; width: 80%; max-width: 300px; height: 100%;
  padding: 16px; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.25s;
}
.m-nav.open .m-nav-inner { transform: translateX(0); }
.m-nav a {
  display: block; padding: 14px 16px; color: var(--text);
  text-decoration: none; font-size: 16px; border-radius: 8px;
  border-bottom: 1px solid var(--border);
}
.m-nav a:active { background: var(--bg); }
.m-nav .nav-phone {
  margin-top: 16px; padding: 14px 16px;
  background: var(--accent); color: #fff; text-align: center;
  border-radius: 8px; font-size: 18px; font-weight: 700;
  text-decoration: none; display: block;
}

/* ===== HERO ===== */
.m-hero {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
  color: #fff; padding: 40px 20px; text-align: center;
}
.m-hero h1 { font-size: 26px; line-height: 1.3; margin-bottom: 8px; }
.m-hero p { font-size: 15px; opacity: 0.9; margin-bottom: 24px; line-height: 1.5; }
.m-hero .hero-cta {
  display: inline-block; background: #fff; color: var(--primary);
  padding: 14px 32px; border-radius: 28px; font-size: 17px;
  font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.m-hero .hero-cta:active { transform: scale(0.97); }

/* ===== TRUST BAR ===== */
.m-trust {
  display: flex; justify-content: space-around; padding: 16px 12px;
  background: #fff; border-bottom: 1px solid var(--border);
  text-align: center; flex-wrap: wrap; gap: 8px;
}
.m-trust-item { flex: 1; min-width: 70px; }
.m-trust-item .num { font-size: 20px; font-weight: 700; color: var(--primary); }
.m-trust-item .label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ===== SECTIONS ===== */
.m-section { padding: 24px 16px; }
.m-section-title {
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.m-section-title::before {
  content: ''; display: block; width: 4px; height: 20px;
  background: var(--primary); border-radius: 2px;
}

/* ===== PRODUCT CARDS ===== */
.m-product-grid { display: flex; flex-direction: column; gap: 12px; }
.m-product-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; text-decoration: none; color: var(--text);
}
.m-product-card:active { transform: scale(0.98); }
.m-product-card .img {
  width: 120px; min-height: 120px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.m-product-card .img img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.m-product-card .info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.m-product-card .info h3 { font-size: 16px; margin-bottom: 4px; }
.m-product-card .info p { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-product-card .tag {
  display: inline-block; background: #E3F2FD; color: var(--primary);
  font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-top: 6px;
}

/* ===== CATEGORY TABS ===== */
.m-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab {
  flex-shrink: 0; padding: 8px 18px; border-radius: 20px;
  font-size: 14px; border: 1px solid var(--border); background: #fff;
  color: var(--text); cursor: pointer; white-space: nowrap;
}
.m-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== CONTACT FORM ===== */
.m-form { display: flex; flex-direction: column; gap: 12px; }
.m-form input, .m-form textarea, .m-form select {
  width: 100%; padding: 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 16px; font-family: inherit;
  background: #fff; -webkit-appearance: none;
}
.m-form input:focus, .m-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.m-form textarea { min-height: 100px; resize: vertical; }
.m-form .btn {
  background: var(--primary); color: #fff; border: none;
  padding: 16px; border-radius: 8px; font-size: 17px;
  font-weight: 700; cursor: pointer;
}
.m-form .btn:active { opacity: 0.9; }

/* ===== FAQ ===== */
.m-faq-item {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 8px; overflow: hidden;
}
.m-faq-q {
  padding: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px;
}
.m-faq-q::after { content: '+'; font-size: 20px; color: var(--primary); transition: transform 0.2s; }
.m-faq-item.open .m-faq-q::after { content: '\2212'; }
.m-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s;
  padding: 0 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}
.m-faq-item.open .m-faq-a { max-height: 500px; padding: 0 16px 16px; }

/* ===== BOTTOM CTA BAR ===== */
.m-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; gap: 10px; padding: 10px 16px;
  z-index: 200; align-items: center;
  padding-bottom: calc(10px + var(--safe-bottom));
}
.m-cta-bar .btn-phone {
  flex: 1; background: var(--accent); color: #fff;
  text-align: center; padding: 13px; border-radius: 8px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.m-cta-bar .btn-phone:active { opacity: 0.85; }
.m-cta-bar .btn-contact {
  flex: 0.6; background: #fff; color: var(--primary);
  text-align: center; padding: 13px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--primary);
}

/* ===== FOOTER ===== */
.m-footer {
  background: #263238; color: #B0BEC5; padding: 24px 16px;
  font-size: 13px; line-height: 1.8; margin-bottom: -72px;
}
.m-footer .company { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.m-footer a { color: #64B5F6; text-decoration: none; }

/* ===== ABOUT / FACTS ===== */
.m-stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.m-stat {
  flex: 1; min-width: calc(50% - 4px); background: var(--card);
  padding: 16px; border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow);
}
.m-stat .val { font-size: 22px; font-weight: 700; color: var(--primary); }
.m-stat .lbl { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== PRODUCT DETAIL ===== */
.m-pd-gallery { margin-bottom: 16px; }
.m-pd-gallery img { width: 100%; border-radius: var(--radius); background: #f0f0f0; }
.m-pd-info { background: var(--card); padding: 20px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.m-pd-info h1 { font-size: 22px; margin-bottom: 12px; }
.m-pd-specs { margin-top: 16px; }
.m-pd-specs .spec-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.m-pd-specs .spec-row .label { color: var(--text-secondary); width: 80px; flex-shrink: 0; }

/* ===== BREADCRUMB ===== */
.m-breadcrumb { padding: 12px 16px; font-size: 13px; color: var(--text-secondary); }
.m-breadcrumb a { color: var(--primary); text-decoration: none; }

/* ===== COMPARISON TABLE ===== */
.m-compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.m-compare-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.m-compare-table th, .m-compare-table td { padding: 10px 8px; border: 1px solid var(--border); text-align: center; }
.m-compare-table th { background: var(--primary); color: #fff; font-weight: 600; }
.m-compare-table tr:nth-child(even) { background: #FAFAFA; }

/* ===== NEWS/ARTICLES LIST ===== */
.m-article-list { display: flex; flex-direction: column; gap: 10px; }
.m-article-card {
  background: var(--card); padding: 16px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  display: flex; gap: 12px; align-items: center;
}
.m-article-card .date {
  font-size: 11px; color: var(--text-secondary); background: var(--bg);
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
.m-article-card h3 { font-size: 15px; flex: 1; }

/* ===== UTILITY ===== */
.container { max-width: 640px; margin: 0 auto; }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.divider { height: 8px; background: var(--bg); }
.highlight { color: var(--accent); font-weight: 700; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-blue { background: #E3F2FD; color: #1565C0; }
.badge-orange { background: #FFF3E0; color: #E65100; }

/* ===== HERO WITH BACKGROUND IMAGE ===== */
.m-hero.has-bg {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  padding: 48px 20px 40px;
}
.m-hero.has-bg::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(13,71,161,0.9) 0%, rgba(21,101,192,0.85) 100%);
  z-index: 1;
}
.m-hero.has-bg > * { position: relative; z-index: 2; }

/* ===== PRODUCT CARD IMAGES ===== */
.m-product-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.m-card-icon { font-size: 48px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ===== ABOUT PAGE HERO IMAGE ===== */
.m-page-hero {
  height: 180px; background-size: cover !important;
  background-position: center !important; position: relative;
}
.m-page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 50px; background: linear-gradient(transparent, var(--bg));
}
.m-page-hero-tall {
  height: 220px; background-size: cover !important;
  background-position: center !important; position: relative;
}
.m-page-hero-tall::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 50px; background: linear-gradient(transparent, var(--bg));
}

/* ===== ADVANTAGE CARDS WITH ICONS ===== */
.m-advantage-card {
  background: #fff; padding: 16px; border-radius: 12px;
  box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start;
  transition: transform 0.15s;
}
.m-advantage-card:active { transform: scale(0.98); }
.m-advantage-card .icon {
  font-size: 28px; flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: #E3F2FD; border-radius: 12px;
}
.m-advantage-card .content strong { display: block; font-size: 15px; margin-bottom: 4px; }
.m-advantage-card .content p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===== INDUSTRY APPLICATION GRID ===== */
.m-industry-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.m-industry-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.m-industry-card .iwrap {
  height: 110px; background: #f0f0f0; overflow: hidden; position: relative;
}
.m-industry-card .iwrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.m-industry-card .iwrap .itag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff; padding: 8px 10px; font-size: 13px; font-weight: 600; text-align: center;
}

/* ===== MISC PAGE ELEMENTS ===== */
.m-img-rounded { border-radius: var(--radius); width: 100%; display: block; }
.m-section-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.m-highlight-box {
  background: #FFF8E1; border-left: 4px solid #FFB74D;
  padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 12px 0;
  font-size: 14px; line-height: 1.7;
}
.m-float-img {
  float: right; width: 120px; height: 120px; object-fit: cover;
  border-radius: 8px; margin: 0 0 12px 12px;
}
.m-inline-icon { width: 20px; height: 20px; vertical-align: -4px; }
