/* style.css (纯移动端) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; } /* 平滑滚动 */
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #333; line-height: 1.6; background-color: #f9f9f9; -webkit-font-smoothing: antialiased; padding-bottom: 80px; /* 底部留白防遮挡 */ }

/* 中英双语逻辑 */
body.cn .en-text { display: none !important; }
body.en .cn-text { display: none !important; }

/* --- 顶部导航栏 --- */
.header { display: flex; align-items: center; justify-content: center; position: sticky; top: 0; background: #fff; z-index: 1000; box-shadow: 0 1px 5px rgba(0,0,0,0.08); height: 50px; padding: 0 15px; }
/* 首页Header特殊布局 */
.header.home-header { justify-content: space-between; }
.menu-btn { font-size: 24px; cursor: pointer; color: #333; width: 30px;}
.logo { font-size: 18px; font-weight: bold; color: #008080; white-space: nowrap; text-align: center;}
.header-spacer { width: 30px; } /* 首页用于占位让Logo绝对居中 */

/* 子页面返回按钮 */
.back-btn { position: absolute; left: 15px; font-size: 15px; color: #008080; cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 5px;}

/* --- 首页侧边栏 --- */
.sidebar { position: fixed; top: 0; left: -280px; width: 260px; height: 100%; background: #fff; box-shadow: 2px 0 10px rgba(0,0,0,0.1); z-index: 2000; transition: left 0.3s ease; overflow-y: auto; }
.sidebar.open { left: 0; }
.sidebar-header { padding: 15px 20px; font-size: 18px; font-weight: bold; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.close-btn { font-size: 28px; cursor: pointer; color: #999; }
.sidebar a { display: block; padding: 15px 20px; color: #333; text-decoration: none; border-bottom: 1px solid #f5f5f5; font-size: 16px; }

/* 遮罩层 */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; }
.overlay.active { display: block; }

/* --- 右下角悬浮按钮组 (FAB) --- */
.fab-container { position: fixed; bottom: 20px; right: 15px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; }
.fab { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #008080; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); text-decoration: none; cursor: pointer; padding: 0; }
.fab:active { background: #f0f0f0; }
.fab-top { font-size: 18px; }
.fab-home { font-size: 20px; }

/* --- 页面内容基础排版 --- */
h1, h2, h3 { color: #222; margin-top: 0; }
.hero { height: 45vh; background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg') center/cover; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 1.8em; margin-bottom: 10px; color: #fff; }
.hero-text p { max-width: 620px; margin: 0 auto 18px; font-size: 15px; color: #f4f8f8; }
.section { padding: 25px 15px; background: #fff; margin-bottom: 10px; }
.section-title { text-align: center; margin-bottom: 20px; font-size: 1.4em; }
.section-lead { max-width: 720px; margin: 0 auto 20px; color: #444; }
.btn { display: inline-block; background: #008080; padding: 10px 20px; color: #fff; text-decoration: none; border-radius: 4px; font-weight: bold; width: 100%; text-align: center; box-sizing: border-box; margin-bottom: 15px;}
.grid { display: flex; flex-direction: column; gap: 15px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; text-decoration: none; color: #333; text-align: center; display: block; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.card h3 { color: #008080; font-size: 1.2em; margin-bottom: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat-item { border: 1px solid #e4eeee; border-radius: 8px; padding: 14px 8px; text-align: center; background: #f7fbfb; min-height: 86px; display: flex; flex-direction: column; justify-content: center; }
.stat-item strong { color: #007070; font-size: 1.3em; line-height: 1.1; margin-bottom: 7px; }
.stat-item span { font-size: 12px; color: #555; }
.feature-grid, .product-list { display: grid; gap: 12px; }
.feature-card, .product-tile { position: relative; border: 1px solid #d7e8e8; border-radius: 8px; padding: 16px; color: #333; text-decoration: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.03); cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.feature-card::before, .product-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 8px 0 0 8px; background: #008080; opacity: 0.85; }
.feature-card:hover, .feature-card:focus-visible, .product-tile:hover, .product-tile:focus-visible { border-color: #008080; background: #f4fbfb; box-shadow: 0 8px 20px rgba(0,128,128,0.14); transform: translateY(-2px); outline: none; }
.feature-card:active, .product-tile:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(0,128,128,0.16); }
.feature-card strong, .product-tile strong { display: block; color: #007070; margin-bottom: 6px; }
.feature-card span, .product-tile span { display: block; }
.card-cta, .tile-cta { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4eeee; color: #008080; font-size: 14px; font-weight: bold; }
.card-cta span, .tile-cta span { display: inline; }
.cta-arrow { width: 28px; height: 28px; border-radius: 50%; background: #008080; color: #fff !important; display: inline-flex !important; align-items: center; justify-content: center; font-size: 22px; line-height: 1; flex: 0 0 auto; }
.product-tag { width: 34px; height: 34px; border-radius: 50%; background: #008080; color: #fff !important; display: flex !important; align-items: center; justify-content: center; font-weight: bold; margin-bottom: 10px; }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: center; justify-items: center; }
.brand-grid img { max-width: 75%; filter: grayscale(100%); opacity: 0.8; }
.customers-img { width: 100%; border: 1px solid #e6eeee; border-radius: 8px; display: block; }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cert-grid img { width: 100%; height: 180px; object-fit: cover; object-position: top; border: 1px solid #ddd; border-radius: 4px; }
.product-content img, .media-img { width: 100%; border-radius: 6px; margin: 15px 0; display: block; }
.product-content ul { padding-left: 20px; }
.product-content li { margin-bottom: 10px; }
.contact-card { margin-top: 20px; border: 1px solid #d7e8e8; border-radius: 8px; padding: 18px; background: #f7fbfb; }
.contact-qr-btn { border: none; cursor: pointer; margin-top: 8px; margin-bottom: 0; }
.qr-modal { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.58); padding: 24px 16px; align-items: center; justify-content: center; }
.qr-modal.open { display: flex; }
.qr-dialog { position: relative; width: min(100%, 360px); background: #fff; border-radius: 8px; padding: 24px 18px 18px; text-align: center; box-shadow: 0 18px 44px rgba(0,0,0,0.28); }
.qr-dialog h3 { margin-bottom: 8px; }
.qr-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: none; background: transparent; color: #666; font-size: 28px; line-height: 1; cursor: pointer; }
.qr-img { width: min(100%, 260px); border: 1px solid #e4eeee; border-radius: 8px; margin: 14px auto 10px; display: block; }
.qr-note { margin: 0; color: #777; font-size: 13px; }
.footer { background: #222; color: #ccc; text-align: center; padding: 20px; font-size: 12px; }
