/* 全局 */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2c3e50;
  background: #fff;
  line-height: 1.7;
  font-weight: 400;
}
:root {
  --primary: #e63946;
  --dark: #1d3557;
  --light: #f1faee;
  --gray: #a8dadc;
  --text: #2c3e50;
  --muted: #6c757d;
  --bg: #fff;
  --bg-alt: #f8f9fa;
  --border: #e9ecef;
  --gold: #ffd166;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* 导航 */
.navbar {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.fact-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: linear-gradient(90deg, #1d3557 0%, #e63946 100%);
  color: #fff;
  padding: 8px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
body { padding-top: 150px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

/* Logo: SVG mark + wordmark */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; border-radius: 8px; }
.logo-mark-img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 18px; font-weight: 800; color: var(--dark); letter-spacing: -0.3px; }
.logo-tagline { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }

.nav-container { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.nav-links { display: flex; list-style: none; gap: 22px; }
.nav-link {
  font-weight: 500;
  position: relative;
  padding: 8px 4px;
  transition: color .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: var(--primary);
  transition: all .2s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.language-switch { display: flex; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.lang-btn { border: none; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: all .2s; }
.lang-btn.active { background: var(--primary); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 3px; background: var(--text); border-radius: 2px; }

/* Inline segmented tab switcher inside navbar */
.nav-segments {
  display: inline-flex;
  background: rgba(29, 53, 87, 0.06);
  border: 1px solid rgba(29, 53, 87, 0.1);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg-pill {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
}
.seg-pill:hover:not(.active) { color: var(--primary); background: rgba(230,57,70,0.08); }
.seg-pill:active { transform: scale(0.97); }
.seg-pill.active {
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(230,57,70,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  font-weight: 700;
}
.seg-pill.active:hover { color: #fff; }

/* Hero 轮播 */
.hero { margin-top: 0; position: relative; }
.hero-slider { position: relative; height: 88vh; min-height: 640px; max-height: 960px; overflow: hidden; background: #000; }
.slider-wrapper { display: flex; height: 100%; transition: transform .8s ease; }
.slide { min-width: 100%; height: 100%; flex-shrink: 0; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: min(90%, 920px);
  padding: 0 16px;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffd166;
  background: rgba(255,209,102,0.12);
  border: 1px solid rgba(255,209,102,0.4);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; pointer-events: auto; }
.hero-cta-primary { font-size: 16px; padding: 14px 32px; }
.hero-cta-secondary { font-size: 16px; padding: 14px 32px; }
.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.22) !important; color: #fff !important; transform: translateY(-2px); }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color: #fff; border: none;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 22px; font-weight: bold;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-dots {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: transparent;
  transition: background .2s;
}
.slider-dots button.active { background: #fff; }

/* 章节通用 */
section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--primary); border-radius: 2px;
  margin: 16px auto 0;
}
.section-subtitle { font-size: 24px; font-weight: 700; color: var(--dark); margin: 40px 0 24px; }
.section-description { text-align: center; color: var(--muted); margin-top: -30px; margin-bottom: 40px; }

/* 优势 */
.advantages { background: var(--bg-alt); }
.advantages-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.advantage-card {
  background: #fff; border-radius: 12px; padding: 30px 24px;
  text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(230,57,70,0.15);
}
.advantage-icon { margin-bottom: 16px; }
.advantage-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.advantage-card p { color: var(--muted); font-size: 14px; }

/* 工厂介绍 */
.factory-intro { background: #fff; }
.intro-content { max-width: 900px; margin: 0 auto; }
.intro-text { font-size: 16px; line-height: 2; }
.intro-text p { margin-bottom: 16px; }

/* 产品 */
.products { background: var(--bg-alt); }
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.product-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-image { width: 100%; height: 200px; overflow: hidden; background: #f0f0f0; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-info { padding: 20px; }
.product-title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.product-description { font-size: 13px; color: var(--muted); margin-bottom: 14px; min-height: 60px; }
.product-link {
  display: inline-block; color: var(--primary);
  font-weight: 500; font-size: 14px;
}
.product-link:hover { text-decoration: underline; }

/* 关于公司 */
.about { background: #fff; }
.workshop-content {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.workshop-item {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  background: #fff;
}
.workshop-image { width: 100%; height: 220px; overflow: hidden; }
.workshop-image img { width: 100%; height: 100%; object-fit: cover; }
.workshop-info { padding: 24px; }
.workshop-info h4 { font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.workshop-info p { color: var(--muted); font-size: 14px; }

.timeline { display: flex; flex-direction: column; gap: 24px; }
.timeline-item {
  display: flex; background: #fff;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.timeline-image { width: 280px; flex-shrink: 0; height: 200px; }
.timeline-image img { width: 100%; height: 100%; object-fit: cover; }
.timeline-info { padding: 24px; flex: 1; }
.timeline-info h4 { font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.timeline-info p { color: var(--muted); font-size: 14px; }

/* 品牌 */
.brands { background: var(--bg-alt); }
.brands-sphere-container {
  display: flex; justify-content: center;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
}
.brands-sphere {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  width: 100%;
}
.brand-sphere-item {
  background: #fff; padding: 18px 14px 14px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 140px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .3s; gap: 8px;
}
.brand-sphere-item:hover { transform: scale(1.05); }
.brand-sphere-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 1; min-height: 0; width: 100%;
}
.brand-sphere-item img { max-width: 100%; max-height: 60px; object-fit: contain; }
.brand-sphere-name {
  font-size: 13px; color: var(--dark); font-weight: 500;
  text-align: center; line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* 代加工 */
.oem-service { background: #fff; }
.oem-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.oem-item {
  background: var(--bg-alt);
  padding: 24px 20px;
  border-radius: 10px;
  border-top: 4px solid var(--primary);
}
.oem-item h3 {
  font-size: 18px; color: var(--dark);
  margin-bottom: 16px;
}
.oem-item ul { list-style: none; }
.oem-item ul li {
  padding: 6px 0; color: var(--text);
  font-size: 14px;
  position: relative; padding-left: 18px;
}
.oem-item ul li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--primary);
}

/* 新闻 */
.news-section { background: var(--bg-alt); }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.news-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  cursor: pointer; transition: transform .3s, box-shadow .3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.news-card-image { width: 100%; height: 180px; overflow: hidden; background: linear-gradient(135deg, #e63946, #1d3557); position: relative; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-image.no-cover { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); font-size: 56px; font-weight: 700; }
.news-card-body { padding: 20px; }
.news-card-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.news-card-summary { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.news-card-date { font-size: 12px; color: var(--muted); }
.news-empty { text-align: center; color: var(--muted); padding: 40px; grid-column: 1/-1; }

/* 联系 */
.contact { background: #fff; }
.contact-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info h3, .contact-map h3 { font-size: 22px; color: var(--dark); margin-bottom: 16px; }
.contact-info p { margin-bottom: 10px; color: var(--text); }
.contact-buttons { margin-top: 20px; }
.btn {
  display: inline-block; padding: 12px 32px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 999px; font-weight: 500;
  transition: all .2s;
}
.btn:hover { background: #c1121f; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(230,57,70,0.3); }
.map-placeholder { width: 100%; border-radius: 12px; overflow: hidden; }
.map-placeholder img { width: 100%; }

/* 页脚 */
.footer { background: var(--dark); color: #c5d2dc; padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.footer-logo h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact p { margin-bottom: 6px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: #c5d2dc; }
.footer-bottom a:hover { color: #fff; }

/* 模态框 */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal.show { display: flex; }
.modal-content {
  background: #fff; max-width: 900px; width: 100%;
  border-radius: 12px; overflow: hidden;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-content .close {
  position: absolute; top: 16px; right: 20px;
  font-size: 28px; cursor: pointer; z-index: 2;
  color: #fff; background: rgba(0,0,0,0.5);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 40px; }
.product-detail-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-info h2 { color: var(--dark); margin-bottom: 16px; font-size: 26px; }
.product-detail-info p { color: var(--muted); margin-bottom: 24px; line-height: 1.8; }
.wechat-qrcode { text-align: center; padding: 20px; }
.wechat-qrcode h2 { font-size: 24px; color: var(--dark); margin-bottom: 16px; }
.qrcode-image { display: flex; justify-content: center; }
.qrcode-image img { width: 240px; height: 240px; border: 1px solid var(--border); padding: 8px; }

/* QR-modal tab switcher (WeChat / WhatsApp) */
.qrcode-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.qrcode-tab { appearance: none; -webkit-appearance: none; background: transparent; border: none; padding: 10px 24px; font-size: 16px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; }
.qrcode-tab:hover { color: var(--dark); }
.qrcode-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.qrcode-pane { display: none; }
.qrcode-pane.active { display: block; }
.qrcode-hint { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* contact buttons (WeChat + WhatsApp) */
.contact-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; }
.btn-whatsapp:hover { background: linear-gradient(135deg, #1da851, #0e7568); }
.btn-wechat { background: linear-gradient(135deg, #07C160, #04A14F); color: #fff; }
.btn-wechat:hover { background: linear-gradient(135deg, #06a856, #038a44); }
#contactWhatsapp a { color: var(--primary); font-weight: 600; text-decoration: none; }
#contactWhatsapp a:hover { text-decoration: underline; }
.news-detail-body h2 { color: var(--dark); font-size: 28px; margin-bottom: 12px; }
.news-modal-date { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.news-modal-content { line-height: 1.9; color: var(--text); white-space: pre-wrap; }
.news-modal-cover { margin-bottom: 18px; border-radius: 8px; overflow: hidden; }
.news-modal-cover picture,
.news-modal-cover img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; background: #f8fafc; }

/* 响应式 */
@media (max-width: 992px) {
  .advantages-grid, .products-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .oem-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 16px; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .logo-tagline { display: none; }
  .nav-segments { display: none; }
  .nav-container {
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 20px; border-bottom: 1px solid var(--border);
    transform: translateY(-100%); transition: transform .3s;
    gap: 16px;
  }
  .nav-container.open { transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 16px; width: 100%; }
  .nav-segments { display: inline-flex; align-self: center; margin-top: 4px; }
  .advantages-grid, .products-grid { grid-template-columns: 1fr; }
  .workshop-content, .oem-grid { grid-template-columns: 1fr; }
  .timeline-item { flex-direction: column; }
  .timeline-image { width: 100%; height: 180px; }
  .brands-sphere { grid-template-columns: repeat(2, 1fr); }
  .contact-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; }
  section { padding: 50px 0; }
  .hero-title { font-size: 28px; }
  .hero-cta-primary, .hero-cta-secondary { font-size: 14px; padding: 10px 22px; }
}

/* ============== Tab Switcher (Food Factory | Packaging) — DEPRECATED, replaced by inline navbar segments ============== */
.tab-switcher { display: none !important; }
.tab-pill {
  padding: 8px 22px;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.tab-pill:hover:not(.active) { background: rgba(255,255,255,0.1); }
.tab-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}
.tab-pane[hidden] { display: none !important; }
.tab-pane.active { display: block; }

/* ============== Packaging Solutions ============== */

/* --- Shared btn-ghost companion to .btn --- */
.btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid #fff;
  margin-left: 8px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12) !important; }

/* --- Hero --- */
.pkg-hero {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 90px 0;
}
.pkg-hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.pkg-hero-subtitle {
  font-size: 18px;
  opacity: 0.92;
  max-width: 720px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.pkg-hero-ctas {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pkg-hero .btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
  padding: 12px 28px;
  font-weight: 700;
}
.pkg-hero .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

/* --- Products (7 pouch types) --- */
.pkg-products { background: var(--bg-alt); }
.pkg-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pkg-product-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 22px;
  box-shadow: 0 2px 12px rgba(29,53,87,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
  text-align: center;
}
.pkg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(29,53,87,0.15);
}
.pkg-product-svg {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pkg-product-svg svg {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  height: auto;
}
.pkg-product-card h3,
.pkg-product-name {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 700;
}
.pkg-product-apps {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.pkg-product-apps li {
  background: var(--bg-alt);
  color: var(--dark);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.pkg-product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.pkg-product-meta strong { color: var(--primary); }

/* --- Capabilities (tabbed) --- */
.pkg-capabilities { background: #fff; }
.pkg-cap-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0;
  border-bottom: 2px solid var(--bg-alt);
}
.pkg-cap-tab {
  padding: 10px 22px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-transform: capitalize;
}
.pkg-cap-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.pkg-cap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pkg-cap-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.pkg-cap-list li:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.pkg-cap-thumb {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 28px;
  color: var(--primary);
}
.pkg-cap-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pkg-cap-list li h4 {
  font-size: 16px;
  color: var(--dark);
  margin: 0;
  font-weight: 600;
}
.pkg-cap-list li p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}
.pkg-cap-panels { position: relative; }
.pkg-cap-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 18px;
}
.pkg-cap-panel.active { display: grid; }
.pkg-cap-subtabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bg-alt);
}
.pkg-cap-subtab {
  padding: 6px 14px; border: none; background: transparent;
  font-size: 13px; font-weight: 500; color: #888;
  cursor: pointer; border-radius: 4px 4px 0 0;
  border-bottom: 2px solid transparent;
}
.pkg-cap-subtab.active {
  color: var(--primary, #c8102e);
  border-bottom-color: var(--primary, #c8102e);
}
.pkg-cap-subpanel { display: none; }
.pkg-cap-subpanel.active { display: block; }
.pkg-cap-item {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 18px 20px;
}
.pkg-cap-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.pkg-cap-item p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* --- Certifications --- */
.pkg-certifications { background: var(--bg-alt); }
.pkg-cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.pkg-cert-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(29,53,87,0.06);
  transition: transform 0.18s;
}
.pkg-cert-card:hover { transform: translateY(-3px); }
.pkg-cert-code {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.pkg-cert-name {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 34px;
}
.pkg-cert-market {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  background: var(--gold);
  padding: 2px 10px;
  border-radius: 999px;
}

/* --- Industries --- */
.pkg-industries { background: #fff; }
.pkg-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pkg-industry-block {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 18px 22px;
  border-top: 3px solid var(--primary);
}
.pkg-industry-block h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.pkg-industry-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pkg-industry-block li {
  font-size: 14px;
  color: #444;
  padding: 3px 0;
  position: relative;
  padding-left: 16px;
}
.pkg-industry-block li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Why Us --- */
.pkg-why-us { background: var(--bg-alt); }
.pkg-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pkg-why-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(29,53,87,0.06);
}
.pkg-why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pkg-why-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pkg-why-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.pkg-why-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* --- Traceability / Anti-Counterfeit QR --- */
.pkg-traceability { background: #fff; padding: 70px 0; }
.pkg-traceability .section-title { margin-bottom: 8px; }
.pkg-traceability .section-subtitle {
  text-align: center; font-size: 16px; color: var(--dark);
  margin: 0 auto 12px; max-width: 720px;
}
.pkg-traceability-desc {
  text-align: center; font-size: 14px; color: #555;
  max-width: 760px; margin: 0 auto 36px; line-height: 1.6;
}
.pkg-trace-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 48px;
}
.trace-benefit { border-top: 3px solid var(--primary); }
.pkg-trace-samples {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.trace-sample {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 22px; text-align: center;
  box-shadow: 0 2px 10px rgba(29,53,87,0.06);
}
.trace-sample-art { width: 100%; max-width: 240px; margin: 0 auto 12px; }
.trace-sample-art svg { width: 100%; height: auto; display: block; }
.trace-sample-name { font-size: 15px; font-weight: 700; color: var(--dark); margin: 6px 0 4px; }
.trace-sample-cap  { font-size: 12px; color: #777; margin: 0; }
@media (max-width: 768px) {
  .pkg-trace-benefits { grid-template-columns: 1fr; }
  .pkg-trace-samples  { grid-template-columns: 1fr; }
}

/* --- Process (4 steps) --- */
.pkg-process { background: #fff; }
.pkg-process-flow {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: pkgstep;
  position: relative;
}
.pkg-process-step {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 24px 20px;
  position: relative;
  text-align: center;
}
.pkg-process-step::before {
  content: "";
  position: absolute;
  top: 38px;
  right: -14px;
  width: 28px;
  height: 2px;
  background: var(--primary);
  z-index: 1;
}
.pkg-process-step:last-child::before { display: none; }
.pkg-process-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.pkg-process-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.pkg-process-step p {
  font-size: 13px;
  color: #555;
  line-height: 1.45;
  margin: 0;
}

/* --- Contact --- */
.pkg-contact { background: var(--dark); color: #fff; }
.pkg-contact .section-title { color: #fff; }
.pkg-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.pkg-contact-cell {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 20px;
}
.pkg-contact-cell strong {
  display: block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pkg-contact-cell p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .pkg-product-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-cert-grid { grid-template-columns: repeat(3, 1fr); }
  .pkg-industry-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-why-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-process-flow { grid-template-columns: repeat(2, 1fr); }
  .pkg-process-step::before { display: none; }
  .pkg-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pkg-hero { padding: 60px 0; }
  .pkg-hero-title { font-size: 30px; }
  .pkg-hero-subtitle { font-size: 16px; }
  .pkg-product-grid,
  .pkg-cert-grid,
  .pkg-industry-grid,
  .pkg-why-grid,
  .pkg-process-flow,
  .pkg-contact-grid,
  .pkg-cap-panel.active {
    grid-template-columns: 1fr;
  }
  .tab-switcher { padding: 8px 12px; }
  .tab-pill { padding: 7px 14px; font-size: 13px; }
}

/* ============================================================
   Trust bar (overlaid on hero — no extra scroll)
   ============================================================ */
.trust-bar-overlay {
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 30%, #fff 100%);
  padding: 60px 0 18px;
  pointer-events: none;
}
.trust-bar-overlay .container { pointer-events: auto; }
.trust-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.trust-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}
.trust-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  border-right: 1px solid var(--border);
}
.trust-num:last-child { border-right: none; }
.trust-num-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.trust-num-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}
.trust-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.trust-certs, .trust-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.trust-certs .trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1px solid #f5c2c7;
  color: #b02a37;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.trust-certs .trust-pill::before { content: '✓'; font-weight: 900; color: #b02a37; }
.trust-countries .trust-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.trust-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  margin-right: 4px;
}
@media (max-width: 768px) {
  .trust-numbers { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .trust-num { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .trust-num:nth-last-child(-n+2) { border-bottom: none; }
  .trust-num-value { font-size: 22px; }
  .trust-meta { gap: 8px 10px; }
  .trust-bar-overlay { padding: 50px 0 14px; }
}

/* ============== Packaging Subcategories (Pouches | Cartons, collapsible + photos) ============== */
.pkg-subcat-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 24px 0 18px;
  border-bottom: 2px solid var(--bg-alt);
}
.pkg-subcat-panel { display: none; }
.pkg-subcat-panel.active { display: block; }
.pkg-subcat-card {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.pkg-subcat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); border-color: var(--primary); transform: translateY(-1px); }
.pkg-subcat-card.expanded { border-color: var(--primary); background: #fff8f8; }
.pkg-subcat-thumb {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--primary);
}
.pkg-subcat-thumb svg { width: 48px; height: 48px; }
.pkg-subcat-icon { font-size: 28px; }
.pkg-subcat-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pkg-subcat-name { font-size: 16px; font-weight: 600; color: var(--dark); }
.pkg-subcat-desc { font-size: 13px; color: #666; line-height: 1.4; }
.pkg-subcat-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.pkg-subcat-count { font-size: 12px; color: var(--primary); font-weight: 500; }
.pkg-subcat-arrow { font-size: 14px; color: var(--primary); transition: transform .2s; }
.pkg-subcat-card.expanded .pkg-subcat-arrow { transform: rotate(0deg); }
.pkg-subcat-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 4px 0 16px 80px;
  margin-bottom: 12px;
  animation: pkgPhotosFade .2s ease-out;
}
.pkg-subcat-photos[hidden] { display: none; }
@keyframes pkgPhotosFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pkg-photo {
  position: relative;
  display: block;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
  transition: transform .15s, box-shadow .15s;
}
.pkg-photo:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.pkg-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-size: 12px; padding: 18px 8px 6px;
  text-align: center;
}
.pkg-subcat-empty { grid-column: 1/-1; text-align: center; color: #999; padding: 24px; }

/* ============== Photo Lightbox ============== */
.photo-modal-content {
  max-width: 1000px;
  background: #111;
  color: #fff;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.photo-modal-content .close {
  position: absolute; top: 10px; right: 14px;
  color: #fff; font-size: 28px; line-height: 1;
  z-index: 2; cursor: pointer; opacity: .85;
}
.photo-modal-content .close:hover { opacity: 1; }
.photo-modal-stage {
  width: 100%; padding: 40px 60px;
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
}
.photo-modal-stage img {
  max-width: 100%; max-height: 70vh;
  object-fit: contain; display: block;
  border-radius: 6px;
}
.photo-modal-caption {
  padding: 12px 24px 20px;
  color: #ddd; font-size: 14px; text-align: center;
  min-height: 20px; max-width: 800px;
}
.photo-modal-prev, .photo-modal-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none; color: #fff;
  font-size: 40px; line-height: 1;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.photo-modal-prev:hover, .photo-modal-next:hover { background: rgba(255,255,255,.3); }
.photo-modal-prev { left: 12px; }
.photo-modal-next { right: 12px; }
@media (max-width: 768px) {
  .pkg-subcat-card { flex-wrap: wrap; }
  .pkg-subcat-photos { padding-left: 0; grid-template-columns: repeat(2, 1fr); }
  .photo-modal-stage { padding: 30px 16px; min-height: 50vh; }
  .photo-modal-prev, .photo-modal-next { width: 40px; height: 40px; font-size: 28px; }
}
