/* 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; }
.brand-showcase-section { padding-top: 18px; padding-bottom: 18px; background: #f4fbfb; }
.brand-showcase { display: grid; gap: 16px; }
.brand-showcase-group { border: 1px solid #d8ecec; border-radius: 10px; background: #fff; padding: 14px; }
.brand-showcase-link { display: block; color: inherit; text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.brand-showcase-link:hover, .brand-showcase-link:focus-visible { border-color: #008080; background: #f7fcfc; box-shadow: 0 10px 24px rgba(0,128,128,0.12); transform: translateY(-2px); outline: none; }
.brand-showcase-link:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,128,128,0.16); }
.brand-showcase-head { margin-bottom: 12px; color: #007070; font-size: 13px; font-weight: bold; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-showcase-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cert-badge, .partner-badge { border: 1px solid #e1eeee; border-radius: 10px; background: #fbffff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-badge { flex: 1 1 140px; min-height: 112px; padding: 14px; }
.cert-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.partner-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.partner-badge { min-width: 0; aspect-ratio: 1 / 1; min-height: 96px; padding: 14px; }
.partner-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.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, minmax(0, 1fr)); gap: 10px; }
.cert-card { appearance: none; border: 1px solid #ddd; border-radius: 4px; background: #fff; padding: 0; overflow: hidden; display: block; cursor: pointer; width: 100%; }
.cert-card img { width: 100%; height: auto; display: block; object-fit: contain; background: #fff; }
.product-content img, .media-img { width: 100%; height: auto; object-fit: contain; border-radius: 6px; margin: 15px 0; display: block; }
.cert-modal { display: none; position: fixed; inset: 0; z-index: 3200; background: rgba(0,0,0,0.65); padding: 20px 14px; align-items: center; justify-content: center; }
.cert-modal.open { display: flex; }
.cert-dialog { position: relative; width: min(100%, 920px); max-height: 100%; background: #fff; border-radius: 8px; padding: 20px 16px 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cert-dialog h3 { margin: 0; font-size: 1.1em; }
.cert-close { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: none; background: transparent; color: #666; font-size: 30px; line-height: 1; cursor: pointer; }
.cert-preview-img { width: auto; max-width: 100%; max-height: calc(100vh - 140px); display: block; object-fit: contain; }
.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; }
.footer { background: #222; color: #ccc; text-align: center; padding: 20px; font-size: 12px; }

.product2-page {
  --product2-red: #b32020;
  --product2-red-soft: #fff3f2;
  --product2-black: #171717;
  --product2-black-soft: #f3f3f3;
  --product2-accent: #0d6f6f;
  background:
    radial-gradient(circle at top right, rgba(179, 32, 32, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbfb 0%, #f5f7f7 100%);
}

.product2-page .section {
  background: transparent;
  margin-bottom: 0;
}

.product2-layout {
  max-width: 1120px;
  margin: 0 auto;
}

.product2-intro {
  max-width: 860px;
}

.product2-hero,
.product2-tag-preview,
.product2-rule-grid,
.product2-category-grid {
  display: grid;
  gap: 16px;
}

.product2-hero {
  margin-top: 24px;
}

.product2-image-card,
.product2-rule-card,
.product2-category-card,
.product2-alert,
.product2-materials {
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.product2-image-card {
  border: 1px solid #d9e7e7;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
}

.product2-image-head {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--product2-accent);
}

.product2-origin-card img {
  margin: 0;
  border-radius: 12px;
}

.tag-card-red {
  border-color: rgba(179, 32, 32, 0.18);
  background: linear-gradient(180deg, #fff 0%, var(--product2-red-soft) 100%);
}

.tag-card-red .product2-image-head {
  background: var(--product2-red);
}

.tag-card-black {
  border-color: rgba(23, 23, 23, 0.18);
  background: linear-gradient(180deg, #fff 0%, var(--product2-black-soft) 100%);
}

.tag-card-black .product2-image-head {
  background: var(--product2-black);
}

.product2-tag-preview p,
.product2-image-card p {
  margin: 12px 0 0;
}

.product2-alert {
  margin-top: 22px;
  padding: 18px 18px 18px 20px;
  border: 1px solid #ead6b1;
  background: linear-gradient(135deg, #fff9ea 0%, #fff3cf 100%);
  position: relative;
  overflow: hidden;
}

.product2-alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #c8901f;
}

.product2-alert strong {
  display: block;
  margin-bottom: 6px;
  color: #7c5a12;
}

.product2-alert p {
  margin: 0;
}

.product2-rule-card,
.product2-category-card,
.product2-materials {
  padding: 18px;
  border: 1px solid #dce8e8;
  background: rgba(255, 255, 255, 0.95);
}

.product2-rule-card h3,
.product2-materials h3 {
  margin-bottom: 10px;
}

.product2-rule-red {
  border-color: rgba(179, 32, 32, 0.22);
  background: linear-gradient(180deg, #fff 0%, var(--product2-red-soft) 100%);
}

.product2-rule-black {
  border-color: rgba(23, 23, 23, 0.2);
  background: linear-gradient(180deg, #fff 0%, var(--product2-black-soft) 100%);
}

.product2-category-card ul,
.product2-material-list {
  margin: 0;
  padding-left: 20px;
}

.product2-category-card li,
.product2-material-list li {
  margin-bottom: 10px;
}

.product2-category-card li:last-child,
.product2-material-list li:last-child {
  margin-bottom: 0;
}

.product2-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: #fff;
}

.product2-category-red .product2-category-pill {
  background: var(--product2-red);
}

.product2-category-black .product2-category-pill {
  background: var(--product2-black);
}

.product2-category-red {
  border-color: rgba(179, 32, 32, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fff4f4 100%);
}

.product2-category-black {
  border-color: rgba(23, 23, 23, 0.22);
  background: linear-gradient(180deg, #fff 0%, #f6f6f6 100%);
}

.product2-materials {
  margin-top: 22px;
}

@media (min-width: 768px) {
  body { font-size: 18px; line-height: 1.7; }
  .header { height: 64px; padding: 0 32px; }
  .logo { font-size: 22px; }
  .back-btn { left: 32px; font-size: 17px; }
  .hero h1 { font-size: 48px; line-height: 1.15; margin-bottom: 18px; }
  .hero-text p { max-width: 820px; font-size: 20px; line-height: 1.7; margin-bottom: 24px; }
  .section { padding: 56px 48px; margin-bottom: 16px; }
  .brand-showcase-section { padding-top: 28px; padding-bottom: 28px; }
  .brand-showcase { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr); gap: 20px; }
  .brand-showcase-group { padding: 18px 20px; }
  .brand-showcase-head { font-size: 15px; margin-bottom: 16px; }
  .certification-row { flex-wrap: nowrap; }
  .cert-badge { min-height: 136px; }
  .cert-badge img { width: 100%; height: 100%; }
  .partner-badge { min-height: 118px; }
  .partner-badge img { width: 100%; height: 100%; }
  .section-title, .product-content > h2 { color: #222; font-size: 32px; line-height: 1.25; margin-bottom: 28px; }
  .section-lead, .product-content p, .product-content li { color: #333; font-size: 18px; line-height: 1.8; }
  .section-lead { max-width: 920px; margin-bottom: 28px; color: #333; font-size: 18px; line-height: 1.8; }
  .product-content h3 { color: #222; font-size: 24px; line-height: 1.35; margin: 34px 0 14px; }
  .feature-card, .product-tile, .card, .contact-card { font-size: 18px; line-height: 1.65; padding: 24px; }
  .feature-card strong, .product-tile strong, .card h3 { color: #007070; font-size: 22px; line-height: 1.35; }
  .card-cta, .tile-cta { font-size: 16px; }
  .btn { font-size: 17px; }
  .stat-item { min-height: 110px; padding: 20px 14px; }
  .stat-item strong { font-size: 30px; }
  .stat-item span { font-size: 16px; }
  .cert-dialog h3 { font-size: 22px; }

  .about-page .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
  }

  .about-page .cert-card {
    height: 220px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-page .cert-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product2-page .section {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .product2-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
    align-items: start;
    gap: 22px;
  }

  .product2-tag-preview,
  .product2-rule-grid,
  .product2-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product2-image-card,
  .product2-rule-card,
  .product2-category-card,
  .product2-materials,
  .product2-alert {
    padding: 24px;
  }

  .product2-image-head,
  .product2-category-pill {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .product2-main-visual .product2-image-card {
    height: 100%;
  }

  .product2-main-visual img {
    min-height: 100%;
  }

  .product2-materials {
    margin-top: 28px;
  }
}

@media (max-width: 359px) {
  .partner-row {
    grid-template-columns: 1fr;
  }
}
