/* ==========================================================================
   Easepal Homepage — Custom Styles
   ========================================================================== */

/* ----- Base ----- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Roobert PRO', 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1A2E;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* iOS Safari auto-zooms when a focused input's font-size is < 16px,
   which leaves the page horizontally scrollable. Force >=16px on touch sizes. */
@media (max-width: 1023px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ----- Typography scale ----- */
.hero-display    { font-size: 80px; font-weight: 500; line-height: 1.05; letter-spacing: -2px; }
.display-lg      { font-size: 60px; font-weight: 500; line-height: 1.10; letter-spacing: -1.5px; }
.heading-1       { font-size: 48px; font-weight: 500; line-height: 1.15; letter-spacing: -1px; }
.heading-2       { font-size: 36px; font-weight: 500; line-height: 1.20; letter-spacing: -0.5px; }
.heading-3       { font-size: 28px; font-weight: 500; line-height: 1.25; }
.heading-4       { font-size: 22px; font-weight: 500; line-height: 1.30; }
.heading-5       { font-size: 18px; font-weight: 500; line-height: 1.40; }
.subtitle        { font-size: 18px; font-weight: 400; line-height: 1.50; }
.body-md         { font-size: 16px; font-weight: 400; line-height: 1.50; }
.body-sm         { font-size: 14px; font-weight: 400; line-height: 1.50; }
.caption         { font-size: 13px; font-weight: 400; line-height: 1.40; }
.micro-uppercase { font-size: 11px; font-weight: 600; line-height: 1.40; letter-spacing: 0.5px; text-transform: uppercase; }

@media (max-width: 1023px) { .hero-display { font-size: 60px; letter-spacing: -1.5px; } }
@media (max-width: 767px)  { .hero-display { font-size: 48px; letter-spacing: -1px; }   .heading-1 { font-size: 36px; } .heading-2 { font-size: 28px; } }
@media (max-width: 479px)  { .hero-display { font-size: 36px; letter-spacing: -0.5px; } }

/* ----- Hero carousel ----- */
.carousel               { position: relative; overflow: hidden; border-radius: 16px; box-shadow: rgba(5,0,56,0.08) 0px 12px 32px -4px; }
.carousel.carousel-full { border-radius: 0; box-shadow: none; }
.carousel-track         { display: flex; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.carousel-slide         { min-width: 100%; }
.carousel-dot           { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,0.55); transition: width .25s ease, background .25s ease; }
.carousel-dot.active    { width: 28px; background: #FFFFFF; }
.carousel-arrow         { width: 44px; height: 44px; border-radius: 9999px; background: rgba(255,255,255,0.92); color: #1A1A2E; display: flex; align-items: center; justify-content: center; box-shadow: rgba(5,0,56,0.06) 0px 4px 12px 0px; }
.carousel-arrow:hover   { background: #FFFFFF; }

/* ----- Navigation underline animation ----- */
.nav-link          { position: relative; }
.nav-link::after   { content: ''; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 0; height: 2px; background: #FFFFFF; transition: width .25s ease; }
.nav-link:hover::after,
.nav-link.active::after { width: 24px; }

/* ----- About image carousel ----- */
.about-track { display: flex; align-items: flex-start; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
/* 展会图按原图比例等比显示：容器高度由 JS 同步成当前图片高度，过渡更顺滑 */
#about-carousel { transition: height .45s cubic-bezier(.22,.61,.36,1); }
.about-slide img { display: block; width: 100%; height: auto; }

/* ----- Form input focus ----- */
.input-field        { transition: border-color .15s ease, box-shadow .15s ease; }
.input-field:focus  { outline: none; border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }

/* ----- Logo wall scroll fade ----- */
.logo-wall::before,
.logo-wall::after  { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; pointer-events: none; z-index: 2; }
.logo-wall::before { left: 0;  background: linear-gradient(to right, #FFFFFF, rgba(255,255,255,0)); }
.logo-wall::after  { right: 0; background: linear-gradient(to left,  #FFFFFF, rgba(255,255,255,0)); }


/* ----- Mega menu (PRODUCTS dropdown) ----- */
.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  pointer-events: none;
  z-index: 50;
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
#products-menu.open svg { transform: rotate(180deg); }

.mega-item        { display: block; padding: 8px; border-radius: 12px; transition: background .2s ease; }
.mega-item:hover  { background: #FAFAF8; }

/* 横向滚动（PRODUCTS 大菜单分类全展示，用左右角标按钮控制） */
.mega-scroll { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.mega-scroll::-webkit-scrollbar { display: none; }

.mega-nav {
  position: absolute;
  top: 80px;                       /* 对齐方形图片中部（图片高 = 卡片宽 160px） */
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A2E;
  border: 1px solid #E8E8E4;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.mega-nav:hover  { background: #C8102E; color: #FFFFFF; box-shadow: 0 6px 18px rgba(200,16,46,0.30); }
.mega-nav[hidden] { display: none; }
.mega-nav-prev { left: -48px; }    /* 移到卡片外侧留白，不压图片 */
.mega-nav-next { right: -48px; }

/* Hide mega menu on small screens (mobile uses dropdown instead) */
@media (max-width: 1023px) {
  .mega-menu { display: none !important; }
}

/* ----- Mobile menu links (light theme, matches delivery sidebar) ----- */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  color: #1A1A2E;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 1px solid #F5F5F2;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, padding-left .2s ease;
}
.mobile-nav-link > span     { flex: 1 1 auto; min-width: 0; }
.mobile-nav-link:hover,
.mobile-nav-link:active     { background: #FAFAF8; color: #C8102E; padding-left: 10px; }
.mobile-nav-link-last       { border-bottom: none; }

.mobile-nav-arrow,
.mobile-nav-chevron {
  width: 16px; height: 16px;
  color: #B0B0BA;
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform .25s ease, color .15s ease;
}
.mobile-nav-link:hover .mobile-nav-arrow,
.mobile-nav-link:hover .mobile-nav-chevron { color: #C8102E; }

/* PRODUCTS expandable group */
.mobile-nav-group .mobile-nav-toggle { font: inherit; }
.mobile-nav-group.open .mobile-nav-chevron { transform: rotate(180deg); color: #C8102E; }
.mobile-nav-group.open .mobile-nav-toggle  { background: #FAFAF8; color: #C8102E; border-bottom-color: transparent; }

.mobile-subnav {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #FAFAF8;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  border-bottom: 1px solid #F5F5F2;
}
.mobile-nav-group.open .mobile-subnav { max-height: 520px; }

.mobile-subnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px 11px 16px;
  color: #4A4A5A;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  border-bottom: 1px solid #F0F0EC;
  transition: color .15s ease, padding-left .2s ease, background .15s ease;
}
.mobile-subnav li:last-child .mobile-subnav-link { border-bottom: none; }
.mobile-subnav-link:hover,
.mobile-subnav-link:active { color: #C8102E; padding-left: 22px; background: #FFFFFF; }
.mobile-subnav-link-all {
  color: #C8102E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.mobile-subnav-link-all .mobile-nav-arrow { color: #C8102E; }

#mobile-menu-btn[aria-expanded="true"] #mobile-menu-icon { transform: rotate(90deg); }

/* ==========================================================================
   Contact page
   ========================================================================== */

/* ----- Quick contact method cards (4 across top) ----- */
.contact-method-card {
  display: block;
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-method-card:hover {
  transform: translateY(-3px);
  border-color: #C8102E;
  box-shadow: rgba(200,16,46,0.12) 0px 12px 24px -8px;
}
.contact-method-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FCE7EA 0%, #FFFFFF 100%);
  color: #C8102E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(200,16,46,0.15);
  transition: background .25s ease, color .25s ease;
}
.contact-method-card:hover .contact-method-icon {
  background: linear-gradient(135deg, #C8102E 0%, #9E0C24 100%);
  color: #FFFFFF;
  box-shadow: none;
}
.contact-method-label {
  font-size: 11px;
  color: #8E8E9A;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-method-value {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A2E;
  word-break: break-word;
}

/* ----- Contact info card (left column) ----- */
.contact-info-card {
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 18px;
  padding: 28px;
}
.contact-info-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list > li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #FCE7EA;
  color: #C8102E;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 11px;
  color: #8E8E9A;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-info-text {
  font-size: 14px;
  color: #1A1A2E;
  font-weight: 500;
  line-height: 1.5;
}
.contact-info-text a { color: inherit; }

.contact-social-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #EFEFEC;
}
.contact-social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  color: #6E6E7E;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.contact-social-btn:hover { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }

/* ----- Inquiry form ----- */
.contact-form {
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 18px;
  padding: 32px;
  box-shadow: rgba(5,0,56,0.04) 0px 4px 12px 0px;
}

/* Chip checkboxes (product interest) */
.contact-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: #FAFAF8;
  border: 1.5px solid #E5E5E0;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #4A4A5A;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.contact-chip:hover { border-color: #C8102E; color: #C8102E; }
.contact-chip input { display: none; }
.contact-chip:has(input:checked) {
  background: #C8102E;
  border-color: #C8102E;
  color: #FFFFFF;
}

/* ----- Office location cards ----- */
.office-card {
  background: #FFFFFF;
  border: 1.5px solid #EFEFEC;
  border-radius: 14px;
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.office-card:hover {
  transform: translateY(-3px);
  border-color: #C8102E;
  box-shadow: rgba(200,16,46,0.10) 0px 14px 28px -10px;
}
.office-card-hq {
  background: linear-gradient(135deg, #FCE7EA 0%, #FFFFFF 100%);
  border-color: #C8102E;
}
.office-card-us {
  background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
  border-color: #1565C0;
}
.office-card-us:hover { border-color: #1565C0; box-shadow: rgba(21,101,192,0.12) 0px 14px 28px -10px; }

.office-city {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #C8102E;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 3px 10px;
  background: #FCE7EA;
  border-radius: 4px;
}
.office-city-pt { color: #1565C0; background: #E3F2FD; }
.office-city-us { color: #1565C0; background: #E3F2FD; }

.office-name {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 8px;
  line-height: 1.3;
}
.office-address {
  font-size: 13px;
  color: #4A4A5A;
  line-height: 1.5;
  margin-bottom: 12px;
}
.office-contact {
  padding-top: 10px;
  border-top: 1px solid #EFEFEC;
  font-size: 13px;
  color: #C8102E;
  font-weight: 600;
}
.office-contact a { color: inherit; }
.office-contact a:hover { text-decoration: underline; }

/* ----- Responsive ----- */
@media (max-width: 767px) {
  .contact-info-card { padding: 22px; }
  .contact-form { padding: 22px; }
  .office-card { padding: 18px; }
}

/* ==========================================================================
   News List & Detail pages
   ========================================================================== */

/* ----- Category filter chips ----- */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.news-chip {
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1.5px solid #E5E5E0;
  background: #FFFFFF;
  color: #4A4A5A;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.news-chip:hover { border-color: #C8102E; color: #C8102E; }
.news-chip.active { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }

/* ----- Featured article ----- */
.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.news-featured:hover {
  border-color: #C8102E;
  transform: translateY(-3px);
  box-shadow: rgba(200,16,46,0.12) 0px 14px 32px -8px;
}
.news-featured-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.news-featured-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.news-featured:hover .news-featured-img img { transform: scale(1.04); }
.news-featured-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-featured-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: #1A1A2E;
  margin: 14px 0 14px;
  letter-spacing: -0.5px;
}
.news-featured-excerpt {
  font-size: 15px;
  color: #4A4A5A;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ----- News grid + card ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: #C8102E;
  box-shadow: rgba(200,16,46,0.12) 0px 14px 28px -10px;
}
.news-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F6F6F4;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A2E;
  line-height: 1.35;
  margin: 8px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: 13px;
  color: #6E6E7E;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-readmore {
  font-size: 13px;
  color: #C8102E;
  font-weight: 600;
  margin-top: auto;
}

/* Meta line (category · date · readtime) */
.news-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: #8E8E9A;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.news-category {
  color: #C8102E;
  font-weight: 700;
}
.news-dot { color: #C8102E; opacity: 0.5; }

/* Tags inside images */
.news-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #FFFFFF;
  background: #1A1A2E;
}
.news-tag-featured { background: #C8102E; }

/* ----- Newsletter CTA card ----- */
.news-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #FCE7EA 0%, #FFFFFF 70%);
  border: 1.5px solid #FCE7EA;
  border-radius: 20px;
  flex-wrap: wrap;
}
.news-cta-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #C8102E;
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.news-cta-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 280px;
}
.news-cta-form input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid #E5E5E0;
  background: #FFFFFF;
  font-size: 14px;
}
.news-cta-form input:focus { outline: none; border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,0.12); }
.news-cta-form button {
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: #C8102E;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.news-cta-form button:hover { background: #9E0C24; }

/* ----- Article (detail page) ----- */
.article-head { margin-bottom: 24px; }
.article-category {
  display: inline-block;
  padding: 5px 12px;
  background: #FCE7EA;
  color: #C8102E;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #1A1A2E;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: #6E6E7E;
}
.article-meta-item { display: inline-flex; align-items: center; gap: 6px; }

.article-hero {
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
}
.article-hero img { width: 100%; height: auto; display: block; }
.article-hero figcaption,
.article-body figure figcaption {
  padding: 10px 14px;
  background: #FAFAF8;
  color: #6E6E7E;
  font-size: 12px;
  font-style: italic;
  border-radius: 0 0 12px 12px;
}

.article-body { font-size: 16px; color: #2E2E3A; line-height: 1.7; }
.article-body p { margin-bottom: 18px; }
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A2E;
  letter-spacing: -0.5px;
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid #C8102E;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1A1A2E;
  margin: 24px 0 12px;
}
.article-body figure {
  margin: 22px 0;
  border-radius: 14px;
  overflow: hidden;
}
.article-body figure img { width: 100%; height: auto; display: block; }
/* 正文里后台直接插入的图片也等比例缩放、不超出容器 */
.article-body img { max-width: 100%; height: auto; }
.article-body strong { color: #1A1A2E; font-weight: 700; }
.article-lead {
  font-size: 18px !important;
  color: #1A1A2E !important;
  font-weight: 500;
  border-left: 4px solid #C8102E;
  padding-left: 18px;
  margin-bottom: 28px !important;
  line-height: 1.55 !important;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 22px;
  background: linear-gradient(135deg, #FCE7EA 0%, #FFFFFF 100%);
  border-radius: 14px;
}
.article-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: #C8102E;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.article-stat-label {
  font-size: 11px;
  color: #6E6E7E;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tags */
.article-tags {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #EFEFEC;
  margin-top: 30px;
}
.article-tags-label { font-size: 13px; color: #6E6E7E; font-weight: 600; margin-right: 4px; }
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #FAFAF8;
  color: #4A4A5A;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #EFEFEC;
  text-decoration: none;
  transition: all .15s ease;
}
.article-tag:hover { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }

/* Share row */
.article-share {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #EFEFEC;
}
.article-share-label { font-size: 13px; color: #6E6E7E; font-weight: 600; margin-right: 6px; }
.article-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  color: #6E6E7E;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.article-share-btn:hover { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }
.article-share-link {
  margin-left: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  color: #4A4A5A;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.article-share-link:hover { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }

/* Author bio */
.article-author {
  display: flex; gap: 16px;
  padding: 20px;
  background: #FAFAF8;
  border-radius: 14px;
  margin-top: 24px;
}
.article-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C8102E, #9E0C24);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.article-author-name { font-size: 15px; font-weight: 700; color: #1A1A2E; margin-bottom: 4px; }
.article-author-bio { font-size: 13px; color: #6E6E7E; line-height: 1.5; }

/* Prev / next article navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.article-nav-prev, .article-nav-next {
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.article-nav-prev:hover, .article-nav-next:hover {
  border-color: #C8102E;
  transform: translateY(-2px);
}
.article-nav-next { text-align: right; }
.article-nav-label {
  display: block;
  font-size: 11px;
  color: #C8102E;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.article-nav-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1A1A2E;
  line-height: 1.4;
}

/* ----- Sidebar (news detail) ----- */
.news-aside { display: flex; flex-direction: column; gap: 20px; }
.news-aside-card {
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 14px;
  padding: 22px;
}
.news-aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #C8102E;
  display: inline-block;
}
.news-aside-title-cta {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 6px;
}
.news-aside-list { list-style: none; padding: 0; margin: 0; }
.news-aside-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #F5F5F2;
  font-size: 13px;
  color: #4A4A5A;
  transition: color .15s ease, padding-left .2s ease;
}
.news-aside-list li:last-child a { border-bottom: none; }
.news-aside-list li a:hover { color: #C8102E; padding-left: 4px; }
.news-count {
  font-size: 11px;
  font-weight: 600;
  color: #C8102E;
  background: #FCE7EA;
  padding: 2px 8px;
  border-radius: 9999px;
}

.news-aside-popular { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.news-aside-popular li a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.news-aside-popular li a img {
  width: 72px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.news-aside-popular li a h4 {
  font-size: 13px;
  color: #1A1A2E;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color .15s ease;
}
.news-aside-popular li a:hover h4 { color: #C8102E; }
.news-aside-date { font-size: 11px; color: #8E8E9A; }

.news-aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.news-aside-cta {
  background: linear-gradient(135deg, #FCE7EA 0%, #FFFFFF 70%);
  border-color: #FCE7EA;
}

/* ----- Responsive ----- */
@media (max-width: 1023px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-body { padding: 24px; }
  .news-featured-title { font-size: 24px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: 30px; }
}
@media (max-width: 767px) {
  .news-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 24px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 20px; }
  .article-stats { grid-template-columns: repeat(2, 1fr); }
  .article-nav { grid-template-columns: 1fr; }
  .news-cta { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
  .news-cta-icon { margin: 0 auto; }
}

/* ==========================================================================
   Product Detail page
   ========================================================================== */

/* ----- Image gallery ----- */
.pd-gallery { position: relative; }
.pd-main-img {
  position: relative;
  background: #F6F6F4;
  border: 1px solid #EFEFEC;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
/* 大屏：画廊固定方形舞台、不随右栏拉伸；顶部对齐 + sticky 跟随滚动（行业标准）*/
@media (min-width: 1024px) {
  .pd-gallery {
    position: sticky;
    top: 96px;
    max-width: 460px;   /* 限制主图舞台尺寸，避免半屏方图过大 */
  }
}

/* ===== 桌面 / 手机两套画廊：≥1024 用主图+缩略图，<1024 用滑动相册 ===== */
.pd-gallery-desktop { display: none; }
.pd-mcar { display: block; position: relative; max-width: 460px; margin-inline: auto; }
@media (min-width: 1024px) {
  .pd-gallery-desktop { display: block; }
  .pd-mcar { display: none; }
}
/* 手机滑动相册：scroll-snap 横滑，整图等比、不裁切 */
.pd-mcar-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 1px solid #EFEFEC;
  border-radius: 14px;
  background: #F6F6F4;
}
.pd-mcar-track::-webkit-scrollbar { display: none; }
.pd-mcar-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-in;
}
.pd-mcar-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-mcar-counter {
  position: absolute; top: 10px; right: 10px;
  background: rgba(10,10,11,0.6); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  pointer-events: none;
}
.pd-mcar-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pd-mcar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #D8D8D5; transition: all .2s ease; cursor: pointer;
}
.pd-mcar-dot.active { background: #C8102E; width: 18px; border-radius: 4px; }

/* 面包屑：小屏单行横向滚动，隐藏滚动条 */
.pd-breadcrumb { scrollbar-width: none; -ms-overflow-style: none; }
.pd-breadcrumb::-webkit-scrollbar { display: none; }
.pd-breadcrumb li { flex: 0 0 auto; }

/* 富文本描述：统一收紧段落间距（数据库富文本默认 margin 偏大）*/
.pd-rich p { margin-bottom: 0.75rem; }   /* 只设下边距，不用简写覆盖左右 margin，避免顶掉 Tailwind 的 mx-auto 居中 */
.pd-rich p:last-child { margin-bottom: 0; }
.pd-rich ul, .pd-rich ol { margin-bottom: 0.75rem; padding-left: 1.25rem; }
.pd-rich br + br { display: none; }   /* 折叠连续空行 */
/* 图片/视频按自身比例完整显示：覆盖旧内容内联的 aspect-ratio/object-fit:cover（会把宽图裁成只显示中间一段）*/
.pd-rich img, .pd-rich video { max-width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; }
/* 等比缩放：后台图基本 1600×1600，整图 contain 显示不裁切、不变形 */
.pd-main-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* 放大提示图标 */
.pd-zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,10,11,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: background .2s ease;
}
.pd-main-img:hover .pd-zoom-hint { background: rgba(200,16,46,0.85); }
.pd-zoom-hint svg { width: 18px; height: 18px; }
.pd-badge-water {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  background: #1565C0;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 缩略图：横向滚动条；数量超出时显示左右导航箭头 */
.pd-thumbs-wrap { position: relative; margin-top: 12px; }
.pd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
.pd-thumbs::-webkit-scrollbar { display: none; }  /* Chrome/Safari */
.pd-thumb {
  flex: 0 0 calc((100% - 32px) / 5);  /* 一屏 5 个（4 个 8px 间隙）*/
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #F6F6F4;
  padding: 0;
  transition: border-color .2s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-thumb:hover { border-color: rgba(200,16,46,0.4); }
.pd-thumb.active { border-color: #C8102E; }
/* 左右导航箭头：仅当缩略图溢出时由 JS 加 .is-scrollable 显示 */
.pd-thumb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  color: #475467; display: none;
  align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: all .15s ease;
}
.pd-thumb-nav:hover { background: #FCE7EA; color: #C8102E; border-color: #C8102E; }
.pd-thumb-nav svg { width: 16px; height: 16px; }
.pd-thumb-nav.prev { left: -6px; }
.pd-thumb-nav.next { right: -6px; }
.pd-thumbs-wrap.is-scrollable .pd-thumb-nav { display: flex; }

/* 灯箱：点主图放大浏览 */
.pd-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,11,0.9);
  display: none; align-items: center; justify-content: center;
  padding: 40px 16px; box-sizing: border-box;
}
.pd-lightbox.open { display: flex; }
body.modal-open { overflow: hidden; }
.pd-lightbox-img {
  max-width: 90vw; max-height: 86vh;
  object-fit: contain; display: block;
  border-radius: 6px; user-select: none;
}
.pd-lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s ease; border: none;
}
.pd-lb-btn:hover { background: rgba(255,255,255,0.25); }
.pd-lb-btn svg { width: 24px; height: 24px; }
.pd-lb-close { top: 20px; right: 20px; }
.pd-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.pd-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.pd-lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; letter-spacing: .5px;
  background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: 20px;
}
@media (max-width: 640px) {
  .pd-lb-prev { left: 8px; }
  .pd-lb-next { right: 8px; }
  .pd-thumb { flex-basis: calc((100% - 24px) / 4); }  /* 小屏一屏 4 个 */
}

.pd-share {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
}
.pd-share-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  color: #6E6E7E;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.pd-share-btn:hover { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }

/* ----- Tiered pricing ----- */
.pd-pricing {
  border: 1.5px solid #EFEFEC;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #EFEFEC;
}
.pd-price-row:last-child { border-bottom: none; }
.pd-price-row-best { background: linear-gradient(to right, #FCE7EA 0%, #FFFFFF 100%); }
.pd-price-tier {
  font-size: 13px;
  color: #4A4A5A;
  font-weight: 600;
}
.pd-price-value {
  font-size: 20px;
  font-weight: 800;
  color: #C8102E;
  letter-spacing: -0.5px;
}

/* ----- Attribute grid ----- */
.pd-attr dt { font-size: 11px; color: #8E8E9A; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.pd-attr dd { font-size: 14px; color: #1A1A2E; font-weight: 500; }

/* ----- Variations ----- */
.pd-variation { margin-bottom: 18px; }
.pd-variation-label {
  font-size: 13px;
  color: #6E6E7E;
  font-weight: 600;
  margin-bottom: 8px;
}
.pd-variation-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-option-btn {
  padding: 8px 14px;
  border: 1.5px solid #E5E5E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1A1A2E;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.pd-option-btn:hover { border-color: #C8102E; }
.pd-option-btn.active {
  background: rgba(200,16,46,0.08);
  border-color: #C8102E;
  color: #C8102E;
}

.pd-color-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  outline: 1.5px solid #E5E5E0;
  cursor: pointer;
  position: relative;
  transition: outline-color .15s ease, transform .15s ease;
  padding: 0;
}
.pd-color-btn:hover { transform: scale(1.08); }
.pd-color-btn.active { outline-color: #C8102E; outline-width: 2.5px; }
.pd-color-custom {
  background: linear-gradient(135deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF) !important;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ----- Quantity stepper ----- */
.pd-qty { display: inline-flex; align-items: center; gap: 0; }
.pd-qty input {
  width: 80px;
  height: 36px;
  border: 1.5px solid #E5E5E0;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.pd-qty input:focus { border-color: #C8102E; }
.pd-qty-btn {
  width: 36px; height: 36px;
  border: 1.5px solid #E5E5E0;
  background: #FAFAF8;
  color: #1A1A2E;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.pd-qty-btn:first-of-type { border-radius: 8px 0 0 8px; }
.pd-qty-btn:nth-of-type(2) { border-radius: 0 8px 8px 0; }
.pd-qty-btn:hover { background: #FCE7EA; color: #C8102E; }

/* ----- Action buttons ----- */
.pd-actions { display: flex; gap: 10px; margin-top: 8px; }
.pd-btn-primary {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  background: #C8102E;
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: background .2s ease, transform .2s ease;
  box-shadow: rgba(200,16,46,0.32) 0px 6px 16px -4px;
}
.pd-btn-primary:hover { background: #9E0C24; transform: translateY(-1px); }

.pd-btn-secondary {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  background: #FFFFFF;
  color: #1A1A2E;
  border: 1.5px solid #E5E5E0;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.pd-btn-secondary:hover { background: #FCE7EA; border-color: #C8102E; color: #C8102E; }

.pd-btn-icon {
  width: 48px; height: 48px;
  border: 1.5px solid #E5E5E0;
  background: #FFFFFF;
  color: #6E6E7E;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.pd-btn-icon:hover { background: #FCE7EA; border-color: #C8102E; color: #C8102E; }

/* ----- Quick info strip ----- */
.pd-quick {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 10px;
}
.pd-quick-label { font-size: 11px; color: #8E8E9A; text-transform: uppercase; letter-spacing: 0.5px; }
.pd-quick-value { font-size: 13px; color: #1A1A2E; font-weight: 700; }

/* ----- Tabs ----- */
.pd-tab-nav {
  display: flex; gap: 4px;
  border-bottom: 2px solid #EFEFEC;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tab-nav::-webkit-scrollbar { display: none; }
.pd-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6E6E7E;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.pd-tab:hover { color: #C8102E; }
.pd-tab.active {
  color: #C8102E;
  border-bottom-color: #C8102E;
}
.pd-tab-panel { display: none; animation: pdFadeIn .25s ease; }
.pd-tab-panel.active { display: block; }
@keyframes pdFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 详情 TAB 点击定位模式：菜单吸顶、所有分节默认全部展开 ===== */
.pd-tab-anchor-nav { position: sticky; top: 0; z-index: 20; background: #FFFFFF; }
.pd-tab-anchor-nav .pd-tab { text-decoration: none; }
.pd-tab-section { display: block; animation: none; scroll-margin-top: 140px;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #EFEFEC; }
.pd-tab-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* Spec table */
.pd-specs-table { width: 100%; border-collapse: collapse; }
.pd-specs-table th, .pd-specs-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #EFEFEC;
  font-size: 14px;
}
.pd-specs-table th { background: #FAFAF8; color: #4A4A5A; font-weight: 600; width: 30%; }
.pd-specs-table td { color: #1A1A2E; }

/* Bullets list */
.pd-list { margin: 0; padding-left: 18px; color: #4A4A5A; font-size: 14px; }
.pd-list li { padding: 4px 0; }

/* Features inside Description */
.pd-feature {
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  border-radius: 12px;
  padding: 16px;
}

/* Customization cards */
.pd-customize-card {
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  border-radius: 12px;
  padding: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.pd-customize-card:hover { border-color: #C8102E; transform: translateY(-2px); }
.pd-customize-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #C8102E, #9E0C24);
  color: #FFFFFF;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

/* Company stat */
.pd-company-stat {
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  border-radius: 10px;
  padding: 14px 18px;
}

/* FAQ accordion */
.pd-faq {
  background: #FAFAF8;
  border: 1px solid #EFEFEC;
  border-radius: 10px;
  padding: 16px 18px;
}
.pd-faq[open] { border-color: #C8102E; background: #FFFFFF; }
.pd-faq summary {
  font-weight: 600;
  font-size: 14px;
  color: #1A1A2E;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #C8102E;
  transition: transform .2s ease;
}
.pd-faq[open] summary::after { content: '−'; }
.pd-faq p {
  margin-top: 10px;
  font-size: 13px;
  color: #4A4A5A;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 767px) {
  .pd-actions { flex-direction: column; }
  .pd-btn-primary, .pd-btn-secondary { width: 100%; }
  .pd-btn-icon { width: 100%; height: 44px; border-radius: 22px; }
  .pd-specs-table th { width: 40%; font-size: 12px; }
  .pd-specs-table td { font-size: 12px; }
  .pd-tab { padding: 10px 14px; font-size: 13px; }

  /* 手机端整体收紧段落/区块间距 */
  #pd-info .mb-6 { margin-bottom: 10px; }
  #pd-info .mb-5 { margin-bottom: 9px; }
  #pd-info .mb-3 { margin-bottom: 6px; }
  .pd-pricing { margin-bottom: 10px; }
  .pd-variation { margin-bottom: 9px; }
  .pd-tab-nav { margin-bottom: 10px; }
  .pd-tab-panel h3 { margin-bottom: 6px; }
  .pd-tab-panel .mb-4 { margin-bottom: 8px; }
  .pd-tab-panel .mb-6 { margin-bottom: 10px; }
  .pd-rich p { margin-bottom: 8px; }
  .pd-rich ul, .pd-rich ol { margin-bottom: 8px; }
  .pd-share { margin-top: 10px; }
}

/* ==========================================================================
   Delivery page — Sidebar + Product Grid
   ========================================================================== */
.delivery-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

/* Left sidebar */
.delivery-sidebar {
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 84px;
}
.delivery-sidebar-header {
  background: #C8102E;
  color: #FFFFFF;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.delivery-categories { list-style: none; padding: 6px 0; margin: 0; }
.delivery-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 13px;
  color: #4A4A5A;
  border-bottom: 1px solid #F5F5F2;
  transition: background .15s ease, color .15s ease, padding-left .2s ease;
}
.delivery-cat::after {
  content: '';
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E9A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
  transition: transform .2s ease, filter .2s ease;
  opacity: 0.7;
}
.delivery-cat:hover, .delivery-cat:focus {
  background: #FCE7EA;
  color: #C8102E;
  padding-left: 24px;
}
.delivery-cat:hover::after, .delivery-cat:focus::after {
  /* Recolor arrow to brand red */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  opacity: 1;
  transform: translateX(2px);
}
.delivery-cat.active {
  background: #FCE7EA;
  color: #C8102E;
  font-weight: 700;
  border-left: 3px solid #C8102E;
  padding-left: 15px;
}
.delivery-cat.active::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  opacity: 1;
}
.delivery-cat-pin {
  background: #FFFBE6;
  color: #C8102E;
  font-weight: 700;
  border-top: 2px solid #FFCC00;
}

/* Right main area */
.delivery-main { min-width: 0; }

/* ===== 二级分类「产品页介绍」：自定义菜单内容 + 右侧锚点导航 ===== */
.intro-wrap { min-width: 0; }
.intro-content { min-width: 0; }
/* 二级分类自身介绍：图片 + 名称 + 描述 */
.intro-head { margin-bottom: 16px; }
.intro-head.has-img { display: flex; gap: 24px; align-items: flex-start; }
.intro-head-img { flex: 0 0 340px; border-radius: 12px; overflow: hidden; line-height: 0; }
.intro-head-img img { display: block; width: 100%; height: auto; }
.intro-head-text { min-width: 0; flex: 1; }
@media (max-width: 760px) {
  .intro-head.has-img { flex-direction: column; }
  .intro-head-img { flex: 0 0 auto; width: 100%; }
}
.intro-section { scroll-margin-top: 80px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #EFEFEC; }
.intro-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
/* 分节标题：与 About 页「ABOUT US」眼纹标题统一（居中红色大写 + 两侧渐变红线，由内联 Tailwind 类驱动） */
.intro-section-title { margin: 0; }

/* 横向锚点菜单：与内容放在一起，吸顶（背景同 surface-soft，滚动时盖住下方内容） */
.intro-menu {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: sticky; top: 0;            /* 实际 top 由 JS 设为顶栏高度 */
  z-index: 20; background: #FAFAF8;
  padding: 12px 0; margin-bottom: 8px;
  border-bottom: 1px solid #EFEFEC;
}
.intro-menu-link {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #FFFFFF; color: #4A4A5A; border: 1px solid #EFEFEC;
  white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.intro-menu-link:hover { background: #FCE7EA; color: #C8102E; border-color: #F3C9D0; }
.intro-menu-link.active { background: #C8102E; color: #FFFFFF; border-color: #C8102E; }

/* 富文本正文排版（wangEditor 输出裸 HTML，无 Tailwind 样式） */
.rt-content { color: #4A4A5A; font-size: 15px; line-height: 1.65; }
.rt-content > *:first-child { margin-top: 0; }
.rt-content > *:last-child { margin-bottom: 0; }
.rt-content h1, .rt-content h2, .rt-content h3, .rt-content h4, .rt-content h5 { color: #1A1A24; font-weight: 700; line-height: 1.3; margin: 1em 0 .4em; }
.rt-content h1 { font-size: 26px; }
.rt-content h2 { font-size: 22px; }
.rt-content h3 { font-size: 18px; }
.rt-content h4 { font-size: 16px; }
.rt-content p { margin: 0 0 .7em; }
.rt-content a { color: #C8102E; text-decoration: underline; }
.rt-content img, .rt-content video { max-width: 100%; height: auto; border-radius: 10px; }
.rt-content ul, .rt-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.rt-content ul { list-style: disc; }
.rt-content ol { list-style: decimal; }
.rt-content li { margin: .3em 0; }
.rt-content blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 3px solid #C8102E; background: #FAFAF8; color: #6A6A78; }
.rt-content table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 14px; display: block; overflow-x: auto; }
.rt-content th, .rt-content td { border: 1px solid #E5E5E0; padding: 8px 12px; text-align: left; }
.rt-content th { background: #FAFAF8; font-weight: 600; }
.rt-content pre { background: #1A1A24; color: #F5F5F5; padding: 14px; border-radius: 8px; overflow-x: auto; margin: 0 0 1em; }
.rt-content hr { border: 0; border-top: 1px solid #EFEFEC; margin: 1.5em 0; }

@media (max-width: 760px) {
  /* 窄屏菜单可横向滑动，避免占多行 */
  .intro-menu { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .intro-menu::-webkit-scrollbar { display: none; }
  .intro-menu-link { flex: 0 0 auto; }
}
.delivery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 10px;
}
.delivery-sort {
  height: 32px;
  padding: 0 30px 0 12px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E7E' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  border: 1px solid #E5E5E0;
  border-radius: 6px;
  font-size: 13px;
  color: #1A1A2E;
  cursor: pointer;
  appearance: none;
}
.delivery-sort:focus { outline: 2px solid #C8102E; outline-offset: 1px; border-color: #C8102E; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #C8102E;
  box-shadow: rgba(200,16,46,0.15) 0px 14px 28px -10px;
}

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #F6F6F4;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 4px;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-badge-water { background: #1565C0; }
.product-badge-oem   { background: #FFCC00; color: #1A1A2E; }
.product-badge-new   { background: #229F44; }
.product-badge-hot   { background: #EB1C24; }

.product-card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #1A1A2E;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.product-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #C8102E;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.product-card-moq {
  font-size: 11px;
  color: #8E8E9A;
  margin-top: auto;        /* keeps cards aligned even with multi-line titles */
}

/* Pagination */
.delivery-pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E5E0;
  color: #4A4A5A;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { background: #FCE7EA; border-color: #C8102E; color: #C8102E; }
.page-btn-active { background: #C8102E; border-color: #C8102E; color: #FFFFFF; }
.page-btn-active:hover { background: #9E0C24; color: #FFFFFF; }
.page-btn-arrow svg { display: block; }
.page-ellipsis { color: #8E8E9A; padding: 0 4px; font-weight: 600; }

/* ----- Responsive ----- */
@media (max-width: 1023px) {
  .delivery-layout { grid-template-columns: 180px 1fr; gap: 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card-title { font-size: 12px; }
}
@media (max-width: 767px) {
  .delivery-layout { grid-template-columns: 1fr; gap: 14px; }
  .delivery-sidebar {
    position: static;
    /* Horizontal scrolling cat list on mobile */
  }
  .delivery-categories {
    display: flex;
    overflow-x: auto;
    padding: 4px;
    gap: 6px;
    scrollbar-width: none;
  }
  .delivery-categories::-webkit-scrollbar { display: none; }
  .delivery-cat {
    border-bottom: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    white-space: nowrap;
    background: #FAFAF8;
  }
  .delivery-cat::after { display: none; }    /* hide arrow in chip layout */
  .delivery-cat:hover, .delivery-cat:focus { padding-left: 12px; }
  .delivery-cat.active {
    border-left: none;
    padding-left: 12px;
    background: #C8102E;
    color: #FFFFFF;
  }
  .delivery-sidebar-header { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .product-grid { grid-template-columns: 1fr; }
  .delivery-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   About page — Text Introduction
   ========================================================================== */
.about-block { position: relative; padding-left: 18px; }
.about-block::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 4px;
  width: 3px;
  background: linear-gradient(to bottom, #C8102E 0%, rgba(200,16,46,0.15) 100%);
  border-radius: 2px;
}
.about-subheading {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  position: relative;
}
.about-subheading::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: #C8102E;
  margin-top: 8px;
  border-radius: 2px;
}

/* Mission / Vision / Values cards */
.mvv-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF8 100%);
  border: 1px solid #EFEFEC;
  border-radius: 16px;
  padding: 24px;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.mvv-card:hover {
  border-color: #C8102E;
  transform: translateY(-3px);
  box-shadow: rgba(200,16,46,0.12) 0px 12px 28px -8px;
}
.mvv-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FCE7EA 0%, #FFFFFF 100%);
  color: #C8102E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px rgba(200,16,46,0.15);
}
.mvv-title {
  font-size: 17px;
  font-weight: 700;
  color: #C8102E;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

@media (max-width: 767px) {
  .about-subheading { font-size: 18px; }
  .mvv-card { padding: 20px; }
  .mvv-title { font-size: 16px; }
}

/* ==========================================================================
   About page — Timeline (center-axis, alternating left/right)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
/* Central dashed red axis */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 0;
  border-left: 2px dashed #C8102E;
  transform: translateX(-50%);
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}
.timeline-item + .timeline-item { padding-top: 28px; }

/* Marker (square logo) — sits on the central axis */
.timeline-marker {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.timeline-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: rgba(200,16,46,0.32) 0px 6px 16px -4px,
              inset 0 0 0 1.5px #C8102E;
  border: 3px solid #FAFAF8;
  overflow: hidden;
}
.timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Content + image cells */
.timeline-content { grid-column: 1; }
.timeline-image   { grid-column: 3; }

.timeline-year {
  font-size: 38px;
  font-weight: 800;
  color: #C8102E;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}
.timeline-title {
  font-size: 17px;
  font-weight: 600;
  color: #1A1A2E;
  margin-bottom: 8px;
  line-height: 1.35;
}
.timeline-desc {
  font-size: 13px;
  color: #4A4A5A;
  line-height: 1.55;
}

.timeline-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: rgba(5,0,56,0.08) 0px 12px 24px -8px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.timeline-image img:hover {
  transform: scale(1.02);
  box-shadow: rgba(5,0,56,0.14) 0px 18px 32px -8px;
}

/* Connector dot from marker to content (visual finishing touch) */
.timeline-marker::before,
.timeline-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: rgba(200,16,46,0.3);
}
.timeline-marker::before { left: -24px;  transform: translateY(-50%); }
.timeline-marker::after  { right: -24px; transform: translateY(-50%); }

/* ----- Alternate sides: even-index items flip content/image ----- */
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; order: 3; }
.timeline-item:nth-child(even) .timeline-image   { grid-column: 1; order: 1; }
.timeline-item:nth-child(even) .timeline-marker  { order: 2; }
.timeline-item:nth-child(odd)  .timeline-content { text-align: right; padding-right: 8px; }
.timeline-item:nth-child(even) .timeline-content { text-align: left;  padding-left: 8px; }

/* ----- Mobile: collapse to single column with axis on the left ----- */
@media (max-width: 767px) {
  .timeline { max-width: 100%; padding-left: 56px; }
  .timeline::before { left: 24px; transform: none; opacity: 0.6; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }
  .timeline-marker {
    position: absolute;
    left: -56px; top: 0;
    grid-column: auto;
    width: 48px;
  }
  .timeline-marker::before, .timeline-marker::after { display: none; }
  .timeline-logo { width: 48px; height: 48px; padding: 6px; }
  .timeline-content, .timeline-image { grid-column: auto; order: initial !important; }
  .timeline-item:nth-child(odd)  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { text-align: left; padding: 0; }
  .timeline-year { font-size: 28px; }
  .timeline-title { font-size: 15px; }
  .timeline-image img { height: 160px; }
}

/* ==========================================================================
   About page — Patent Fan Showcase (red banner + stacked certificates)
   ========================================================================== */
.patent-section {
  background: #FFFFFF;
  padding-bottom: 96px;
}

.patent-banner {
  background: linear-gradient(180deg, #EB1C24 0%, #C8102E 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.patent-banner::before,
.patent-banner::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  opacity: 0.08;
  background: #FFFFFF;
  pointer-events: none;
}
.patent-banner::before { top: -300px;  left: -200px; }
.patent-banner::after  { bottom: -350px; right: -200px; }
.patent-banner-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.patent-banner-sub {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Showcase flows after banner but pulled up via negative margin so certificates
   straddle the banner-bottom edge (top portion in red, bottom in white). */
.patent-showcase {
  position: relative;
  max-width: 1280px;
  margin: -90px auto 0;
  padding: 0 64px;
  height: 380px;
}
.patent-stage {
  position: relative;
  width: 100%; height: 100%;
  perspective: 1500px;
}

/* ----- Patent doc card (fan position controlled via .pos-* class) ----- */
.patent-doc {
  position: absolute;
  left: 50%;
  top: 0;
  width: 240px;
  height: 340px;
  transform-origin: center bottom;
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  z-index: 1;
  transition: transform .55s cubic-bezier(.22,.61,.36,1),
              opacity   .45s ease,
              z-index   0s linear .27s;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25));
}
.patent-doc.pos-c  { transform: translateX(-50%)                            scale(1.10) translateY(-8px); opacity: 1;    z-index: 10; pointer-events: auto; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .45s ease, z-index 0s linear 0s; filter: drop-shadow(0 18px 36px rgba(0,0,0,0.35)); }
.patent-doc.pos-l1 { transform: translateX(calc(-50% - 175px)) scale(0.92) translateY(20px) rotate(-3deg); opacity: 0.95; z-index: 9; }
.patent-doc.pos-r1 { transform: translateX(calc(-50% + 175px)) scale(0.92) translateY(20px) rotate(3deg);  opacity: 0.95; z-index: 9; }
.patent-doc.pos-l2 { transform: translateX(calc(-50% - 320px)) scale(0.82) translateY(40px) rotate(-6deg); opacity: 0.85; z-index: 8; }
.patent-doc.pos-r2 { transform: translateX(calc(-50% + 320px)) scale(0.82) translateY(40px) rotate(6deg);  opacity: 0.85; z-index: 8; }
.patent-doc.pos-l3 { transform: translateX(calc(-50% - 450px)) scale(0.74) translateY(60px) rotate(-9deg); opacity: 0.70; z-index: 7; }
.patent-doc.pos-r3 { transform: translateX(calc(-50% + 450px)) scale(0.74) translateY(60px) rotate(9deg);  opacity: 0.70; z-index: 7; }
.patent-doc.pos-l4 { transform: translateX(calc(-50% - 560px)) scale(0.66) translateY(78px) rotate(-12deg); opacity: 0.55; z-index: 6; }
.patent-doc.pos-r4 { transform: translateX(calc(-50% + 560px)) scale(0.66) translateY(78px) rotate(12deg);  opacity: 0.55; z-index: 6; }

/* ----- Certificate card content ----- */
.patent-doc-inner {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #FBF8F0 0%, #FFFFFF 100%);
  border: 1px solid #DCC68A;
  border-radius: 4px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden; /* 超长文案不溢出卡片，避免把下方元信息/印章顶出可视区 */
  box-shadow: inset 0 0 0 4px rgba(220, 198, 138, 0.18);
}
.patent-doc-inner::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(220, 198, 138, 0.55);
  border-radius: 2px;
  pointer-events: none;
}
.doc-header { text-align: center; padding-bottom: 8px; border-bottom: 1px solid rgba(184, 134, 11, 0.25); margin-bottom: 10px; }
.doc-title-script { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 700; color: #1A1A2E; font-style: italic; line-height: 1.1; margin-bottom: 4px; }
.doc-title-cn     { font-family: 'PingFang SC','Microsoft YaHei',sans-serif; font-size: 17px; font-weight: 700; color: #C8102E; line-height: 1.1; margin-bottom: 4px; letter-spacing: 2px; }
.doc-subtitle     {
  font-size: 8px; color: #6E6E7E; letter-spacing: 0.5px; text-transform: uppercase;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* 超长副标题最多显示 2 行，多余省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-style-cn .doc-subtitle { font-family: 'PingFang SC','Microsoft YaHei',sans-serif; text-transform: none; font-size: 9px; }

.doc-body { flex: 1; display: flex; flex-direction: column; }
.doc-meta-block { margin-bottom: 8px; }
.doc-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 8px;
  line-height: 1.3;
  color: #4A4A5A;
  border-bottom: 1px dotted rgba(0,0,0,0.1);
  padding: 2px 0;
}
.doc-meta-row span { overflow-wrap: anywhere; word-break: break-word; }
.doc-meta-row span:first-child  { color: #8E8E9A; font-weight: 500; min-width: 0; flex: 1; }
.doc-meta-row span:last-child   { color: #1A1A2E; font-weight: 600; text-align: right; }
/* value 为空时（内容全塞在 label 里），隐藏空 value，label 自动占满整行 */
.doc-meta-row span:last-child:empty { display: none; }

.doc-text-lines { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.doc-text-lines span {
  height: 3px;
  background: rgba(74, 74, 90, 0.18);
  border-radius: 2px;
}
.doc-text-lines span.short  { width: 60%; }
.doc-text-lines span.medium { width: 80%; }

.doc-seal-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
  padding-top: 6px;
}
.doc-seal-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #C8102E;
  border: 2px solid rgba(255,255,255,0.95);
  outline: 1.5px solid #C8102E;
  display: flex; align-items: center; justify-content: center;
  color: #FFCC00;
  font-size: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.doc-seal-cn   { background: #C8102E; outline-color: #9E0C24; color: #FFFFFF; font-family: 'PingFang SC','Microsoft YaHei',sans-serif; font-weight: 700; font-size: 22px; }
.doc-seal-blue { background: #1565C0; outline-color: #0D47A1; color: #FFFFFF; }
.doc-signature { width: 60px; height: 18px; border-bottom: 1.5px solid #4A4A5A; align-self: flex-end; }

/* ----- Centered card is clickable (opens detail modal) ----- */
.patent-doc.pos-c { cursor: pointer; }

/* ----- Patent detail modal ----- */
.patent-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.patent-modal.is-open { display: flex; }
.patent-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,15,30,.55);
  backdrop-filter: blur(2px);
}
.patent-modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 85vh; overflow-y: auto;
  background: linear-gradient(180deg, #FBF8F0 0%, #FFFFFF 100%);
  border: 1px solid #DCC68A;
  border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgba(5,0,56,.4);
  padding: 28px 28px 24px;
  animation: patentModalIn .22s ease;
}
@keyframes patentModalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.patent-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 9999px;
  background: rgba(0,0,0,.05); color: #4A4A5A; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.patent-modal-close:hover { background: rgba(0,0,0,.12); color: #1A1A2E; }
.patent-modal-close svg { width: 18px; height: 18px; }
.patent-modal-head { text-align: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(184,134,11,.3); }
.patent-modal-title {
  font-size: 22px; line-height: 1.25; margin: 0 0 8px;
  color: #1A1A2E; font-weight: 700;
  overflow-wrap: anywhere;
}
.patent-modal-title.is-cn { color: #C8102E; font-family: 'PingFang SC','Microsoft YaHei',sans-serif; letter-spacing: 2px; }
.patent-modal-title.is-script { font-family: Georgia,'Times New Roman',serif; font-style: italic; }
.patent-modal-sub {
  font-size: 13px; line-height: 1.6; color: #5A5A68; margin: 0;
  overflow-wrap: anywhere;
}
.patent-modal-sub:empty { display: none; }
.patent-modal-meta { display: flex; flex-direction: column; gap: 0; }
.patent-modal-meta .pm-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px; line-height: 1.5;
  padding: 9px 0; border-bottom: 1px dotted rgba(0,0,0,.12);
}
.patent-modal-meta .pm-row:last-child { border-bottom: none; }
.patent-modal-meta .pm-label { color: #8E8E9A; font-weight: 500; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.patent-modal-meta .pm-value { color: #1A1A2E; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.patent-modal-meta .pm-value:empty { display: none; }
.patent-modal-meta .pm-row.pm-full .pm-label { flex: 1 1 100%; }

/* ----- Arrows + counter ----- */
.patent-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #1A1A2E;
  border: 1px solid #E5E5E0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: rgba(5,0,56,0.08) 0px 8px 18px -4px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  z-index: 20;
}
.patent-arrow:hover { background: #C8102E; color: #FFFFFF; border-color: #C8102E; transform: translateY(-50%) scale(1.05); }
.patent-arrow-prev { left: 24px; }
.patent-arrow-next { right: 24px; }
.patent-counter {
  position: absolute;
  left: 50%; bottom: -52px;
  transform: translateX(-50%);
  font-size: 13px;
  color: #8E8E9A;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ----- Responsive: tablet (5 visible) ----- */
@media (max-width: 1023px) {
  .patent-banner-title { font-size: 48px; letter-spacing: 3px; }
  .patent-banner      .max-w-\[1280px\] { padding-bottom: 128px !important; }
  .patent-showcase    { margin-top: -70px; padding: 0 48px; height: 340px; }
  .patent-doc         { width: 200px; height: 280px; }
  .patent-doc.pos-l1  { transform: translateX(calc(-50% - 140px)) scale(0.90) translateY(18px) rotate(-3deg); }
  .patent-doc.pos-r1  { transform: translateX(calc(-50% + 140px)) scale(0.90) translateY(18px) rotate(3deg); }
  .patent-doc.pos-l2  { transform: translateX(calc(-50% - 250px)) scale(0.80) translateY(38px) rotate(-6deg); }
  .patent-doc.pos-r2  { transform: translateX(calc(-50% + 250px)) scale(0.80) translateY(38px) rotate(6deg); }
  .patent-doc.pos-l3, .patent-doc.pos-r3,
  .patent-doc.pos-l4, .patent-doc.pos-r4 { opacity: 0; }
}

/* ----- Responsive: mobile (single-card focus + swipe-friendly) ----- */
@media (max-width: 767px) {
  .patent-section { padding-bottom: 72px; }
  .patent-banner  .max-w-\[1280px\] { padding-top: 48px !important; padding-bottom: 140px !important; }
  .patent-banner-title { font-size: 34px; letter-spacing: 1.5px; margin-bottom: 12px; }
  .patent-banner-sub   { font-size: 12px; line-height: 1.45; padding: 0 8px; }

  /* Mobile showcase: center card + small peeks on either side */
  .patent-showcase {
    margin-top: -60px;
    padding: 0 16px;
    height: 320px;
  }
  .patent-doc { width: 200px; height: 280px; }

  /* Mobile fan: only show center + 1 on each side */
  .patent-doc.pos-c  { transform: translateX(-50%) scale(1.05) translateY(0); }
  .patent-doc.pos-l1 { transform: translateX(calc(-50% - 95px)) scale(0.78) translateY(20px) rotate(-5deg); opacity: 0.7; }
  .patent-doc.pos-r1 { transform: translateX(calc(-50% + 95px)) scale(0.78) translateY(20px) rotate(5deg);  opacity: 0.7; }
  .patent-doc.pos-l2, .patent-doc.pos-r2,
  .patent-doc.pos-l3, .patent-doc.pos-r3,
  .patent-doc.pos-l4, .patent-doc.pos-r4 { opacity: 0; }

  /* Mobile arrows: bigger touch target, anchored on either side of center card */
  .patent-arrow {
    width: 44px; height: 44px;
    background: #FFFFFF;
    border: 1.5px solid #C8102E;
    color: #C8102E;
    box-shadow: rgba(200,16,46,0.18) 0px 6px 16px -4px;
    top: 50%;
  }
  .patent-arrow-prev { left: 12px; }
  .patent-arrow-next { right: 12px; }

  /* Slightly shrink the certificate inner content for mobile */
  .doc-title-script, .doc-title-cn { font-size: 15px; }
  .doc-subtitle { font-size: 7px; }
  .doc-meta-row { font-size: 7px; }
  .doc-seal-circle { width: 40px; height: 40px; font-size: 16px; }

  .patent-counter { bottom: -42px; font-size: 12px; }
}

/* ----- Tiny phones ----- */
@media (max-width: 479px) {
  .patent-banner-title { font-size: 28px; }
  .patent-doc { width: 180px; height: 252px; }
  .patent-doc.pos-l1 { transform: translateX(calc(-50% - 75px)) scale(0.72) translateY(22px) rotate(-6deg); opacity: 0.55; }
  .patent-doc.pos-r1 { transform: translateX(calc(-50% + 75px)) scale(0.72) translateY(22px) rotate(6deg);  opacity: 0.55; }
}

/* ==========================================================================
   About page — Factory Location (rooster-shape China map + photo cards w/ lines)
   ========================================================================== */
.factory-section { background: #FAFAF8; }

/* Stage container: locked aspect so SVG overlay aligns with card positions.
   container-type 让桌面端用 cqw 单位按 stage 宽度等比缩放（见下方 @media min-width:1024）。 */
.factory-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1216 / 740;
  container-type: inline-size;
}
.factory-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;          /* above map, but the cards (HTML) sit visually above this too */
}
/* 标记叠加层：和地图图片同盒子、同拉伸 → 永远对齐 */
.factory-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
/* 连接线层：覆盖整个 stage，由 JS 实时画线（在地图之上、卡片之下）*/
.factory-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}
@media (max-width: 1023px) { .factory-lines { display: none; } }

/* Grid: top row (map area 7 cols + 3 cards stacked in 5 cols), bottom row (2 cards) */
.factory-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%; height: 100%;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: 5fr 2fr;
  grid-template-areas:
    "map  right"
    "bot  bot";
  gap: 14px;
}
.factory-map-spacer { grid-area: map; position: relative; overflow: hidden; }
.factory-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 等比缩放，不拉伸变形（原为 fill 横向拉伸导致发虚）*/
  display: block;
}
.factory-cards-right  { grid-area: right; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 10; }
.factory-cards-bottom { grid-area: bot;   display: grid; grid-template-columns: 7fr 5fr; gap: 14px; position: relative; z-index: 10; }

.factory-cards-right .factory-card { flex: 1; }

/* Each factory entry */
.factory-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #FFFFFF;
  border: 1.5px solid #EFEFEC;
  border-radius: 12px;
  box-shadow: rgba(5,0,56,0.06) 0px 4px 12px -2px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.factory-card::before {
  /* Arrow tip on the left edge of card, pointing back at the leader line */
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: #FFFFFF;
  border-left: 1.5px solid #EFEFEC;
  border-bottom: 1.5px solid #EFEFEC;
}
.factory-card:hover {
  transform: translateX(4px);
  border-color: #C8102E;
  box-shadow: rgba(200,16,46,0.18) 0px 8px 20px -4px;
}
.factory-card:hover::before { border-color: #C8102E; }

.factory-card > img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ----- Image carousel inside each card (auto-rotates, fades) ----- */
.factory-img-carousel {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #F6F6F4;
}
.factory-img-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.factory-img-carousel img.active { opacity: 1; }
.factory-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.factory-city {
  font-size: 11px;
  color: #C8102E;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.factory-company {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A2E;
  line-height: 1.3;
  margin-bottom: 6px;
}
.factory-address {
  font-size: 12px;
  color: #4A4A5A;
  line-height: 1.45;
}

/* 右侧第一张卡片文字颜色与其它卡片保持一致（不再特殊着色）*/

/* Bottom row cards — no left-arrow tip (line approaches from top) */
.factory-card-bottom::before {
  left: 50%;
  top: -8px;
  transform: translateX(-50%) rotate(45deg);
  border-left: none;
  border-bottom: none;
  border-top: 1.5px solid #EFEFEC;
  border-right: 1.5px solid #EFEFEC;
}
.factory-card-bottom:hover::before { border-color: #C8102E; }
/* 右下卡片：箭头移到左上角，指向左上（引线从厦门方向斜下来）*/
.factory-cards-bottom .factory-card-bottom:last-child::before {
  left: 30px;
  right: auto;
  top: -8px;
  transform: rotate(45deg);
  border-top: 1.5px solid #EFEFEC;
  border-left: 1.5px solid #EFEFEC;
  border-right: none;
  border-bottom: none;
}

/* ----- 桌面端：卡片尺寸用 cqw 跟随 stage 宽度等比缩放，
   保证地图格子比例恒定、标记永远对齐（cqw 基于 .factory-stage 宽度，参考宽 ~1180px）----- */
@media (min-width: 1024px) {
  .factory-grid        { gap: 1.19cqw; }
  .factory-cards-right { gap: 1.0cqw; }
  .factory-cards-bottom{ gap: 1.19cqw; }
  .factory-card        { gap: 0.85cqw; padding: 0.5cqw; border-radius: 1.0cqw; }
  .factory-card > img  { width: 7.5cqw; height: 7.5cqw; border-radius: 0.7cqw; }
  /* 卡片图：占卡片宽度的固定比例 + 拉伸填满卡片高度（行内高度一致、无留白）*/
  .factory-img-carousel{ flex: 0 0 60%; width: auto; height: auto; align-self: stretch; border-radius: 0.85cqw; }
  /* 底部第一张（R&D，宽卡）：图片更宽 */
  .factory-cards-bottom .factory-card:first-child .factory-img-carousel { flex-basis: 70%; }
  .factory-city        { font-size: 0.94cqw; letter-spacing: 0.12cqw; margin-bottom: 0.34cqw; }
  .factory-company     { font-size: 1.27cqw; margin-bottom: 0.5cqw; }
  .factory-address     { font-size: 1.02cqw; }
}

/* ----- Responsive: hide map entirely on small screens, only show cards ----- */
@media (max-width: 1023px) {
  .factory-stage { aspect-ratio: auto; }

  /* Hide map image + SVG overlay (markers, lines, Fujian highlight) entirely */
  .factory-map-spacer,
  .factory-svg { display: none; }

  /* Card-only layout: flex column, cards stack */
  .factory-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: auto;
  }
  .factory-cards-right  { display: flex; flex-direction: column; gap: 14px; }
  .factory-cards-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  .factory-card::before { display: none; }
  .factory-card { padding: 14px; gap: 14px; }
  .factory-img-carousel { width: 160px; height: 160px; }
}

@media (max-width: 767px) {
  /* Single-column card list on phones */
  .factory-cards-bottom { grid-template-columns: 1fr; }

  /* Card layout: image stacks on top, text below — full-width carousel */
  .factory-card { flex-direction: column; padding: 12px; gap: 10px; }
  .factory-img-carousel {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .factory-info { width: 100%; }
  .factory-city { font-size: 11px; }
  .factory-company { font-size: 15px; }
  .factory-address { font-size: 12px; }
}


/* ==========================================================================
   Mobile (<640px): aggressive horizontal-padding reduction across heavy cards
   to reclaim wasted left/right space.
   ========================================================================== */
@media (max-width: 639px) {
  .contact-method-card       { padding: 16px 12px; }
  .contact-info-card,
  .contact-form              { padding: 16px; }
  .office-card               { padding: 14px; }
  .news-featured-body        { padding: 18px; }
  .news-cta                  { padding: 16px 18px; gap: 16px; }
  .news-aside-card,
  .news-card-body            { padding: 16px; }
  .article-stats             { padding: 14px; }
  .article-author            { padding: 14px; }
  .pd-feature                { padding: 14px; }
  .pd-customize-card         { padding: 14px; }
  .mvv-card                  { padding: 16px; }
  .delivery-sidebar-header   { padding: 12px 14px; }
  .delivery-cat              { padding: 10px 14px; }
}

/* ==========================================================================
   Partner Ecosystem — categorized logo wall (index.html, post-About-Us)
   Tabs switch which logo set is shown in the grid below.
   ========================================================================== */
.partner-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 1px solid #E8E8E4;
}
.partner-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #4A4A5A;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.partner-tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: #C8102E;
  transform: translateX(-50%);
  transition: width .25s ease;
}
.partner-tab:hover { color: #1A1A2E; }
.partner-tab.active { color: #C8102E; }
.partner-tab.active::after { width: calc(100% - 28px); }
.partner-tab-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(200,16,46,0.10);
  color: #C8102E;
  transition: background .2s ease, color .2s ease;
}
.partner-tab.active .partner-tab-count {
  background: #C8102E;
  color: #FFFFFF;
}

/* Full-width marquee: one track per category, only the active one is rendered.
   JS clones cells so the visible strip is at least ~3× viewport wide; animation
   then translates by exactly one set width for a perfectly seamless loop. */
.partner-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft fade on left/right edges so logos enter/exit gracefully */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
/* Rows container — vertical stack of 1–3 marquee tracks; visibility per active tab */
.partner-marquee-rows {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.partner-marquee[data-active="all"]      .partner-marquee-rows[data-cat="all"],
.partner-marquee[data-active="factory"]  .partner-marquee-rows[data-cat="factory"],
.partner-marquee[data-active="product"]  .partner-marquee-rows[data-cat="product"],
.partner-marquee[data-active="customer"] .partner-marquee-rows[data-cat="customer"] {
  display: flex;
}

/* Hide raw cells before JS wraps them into row tracks (avoids FOUC) */
.partner-marquee-rows > .partner-cell { display: none; }

.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 4px 0;
  will-change: transform;
  animation: partnerMarquee 40s linear infinite;
}
.partner-marquee-track.partner-track-reverse { animation-direction: reverse; }
.partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }

@keyframes partnerMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--marquee-shift, -50%)), 0, 0); }
}

.partner-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 150px;
  aspect-ratio: 100 / 53;   /* matches 200×106 logos — keeps any landscape brand tile in-proportion */
  background: #FFFFFF;
  border: 1px solid #EFEFEC;
  border-radius: 8px;
  padding: 8px 12px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.partner-cell:hover {
  border-color: #C8102E;
  transform: translateY(-2px);
  box-shadow: rgba(200,16,46,0.12) 0px 8px 20px -6px;
}

/* Image logo — shown at original color, fills the cell with safe inset */
.partner-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Text fallback shown only when the image file is missing (toggled via JS) */
.partner-name { display: none; }
.partner-cell.img-missing .partner-logo { display: none; }
.partner-cell.img-missing .partner-name { display: inline-block; }
.partner-name {
  font-size: 18px;
  color: #5A5A6A;
  text-align: center;
  line-height: 1.2;
  transition: color .2s ease;
}
.partner-cell.img-missing:hover .partner-name { color: #1A1A2E; }

@keyframes partnerFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1023px) {
  .partner-marquee-track { gap: 14px; animation-duration: 32s; }
  .partner-cell { width: 130px; padding: 6px 10px; }
  .partner-tab  { padding: 12px 18px; font-size: 13px; }
  .partner-name { font-size: 16px; }
}
@media (max-width: 639px) {
  /* Small screens drop the marquee entirely and lay logos out as a 3-col grid */
  .partner-marquee {
    -webkit-mask-image: none;
            mask-image: none;
    padding: 0 12px;
  }
  .partner-marquee[data-active="all"]      .partner-marquee-rows[data-cat="all"],
  .partner-marquee[data-active="factory"]  .partner-marquee-rows[data-cat="factory"],
  .partner-marquee[data-active="product"]  .partner-marquee-rows[data-cat="product"],
  .partner-marquee[data-active="customer"] .partner-marquee-rows[data-cat="customer"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  /* Tracks dissolve so their cells become direct grid items */
  .partner-marquee-track {
    display: contents;
    animation: none !important;
  }
  /* Hide duplicate cells that exist only for the seamless loop */
  .partner-cell-clone { display: none !important; }
  .partner-cell { width: 100%; padding: 6px 8px; border-radius: 6px; }

  .partner-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 24px;
  }
  .partner-tabs::-webkit-scrollbar { display: none; }
  .partner-tab { padding: 10px 14px; font-size: 12px; gap: 6px; }
  .partner-tab-count { font-size: 10px; padding: 1px 6px; }
  .partner-name { font-size: 13px; letter-spacing: 0.5px !important; }
}

/* ===== 全站右侧悬浮快捷面板（WhatsApp / 电话 / WeChat / 邮件 / 回顶部）===== */
.float-panel {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #f0eced;
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 8px 28px rgba(5,0,56,0.14);
  overflow: visible;
}
.fp-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 74px;
  padding: 13px 6px;
  color: #475467;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid #f3f0f1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  font-family: inherit;
}
.fp-item:first-child { border-radius: 12px 0 0 0; }
.fp-item:last-child  { border-bottom: none; border-radius: 0 0 0 12px; }
.fp-item:hover { background: #C8102E; color: #fff; }
.fp-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #C8102E;
  transition: color .2s ease;
}
.fp-item:hover .fp-ico { color: #fff; }
.fp-ico svg { width: 24px; height: 24px; }
.fp-label { font-size: 12px; line-height: 1.2; text-align: center; white-space: nowrap; }

/* WeChat 二维码弹层（向左弹出）*/
.fp-pop {
  position: absolute;
  right: 100%;
  top: 50%;
  margin-right: 12px;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  width: 256px;
  box-shadow: 0 12px 34px rgba(5,0,56,0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
}
.fp-item:hover .fp-pop,
.fp-item:focus .fp-pop,
.fp-item:focus-within .fp-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
/* 电话弹层：文字版，宽度自适应 */
.fp-pop-text { width: auto; white-space: nowrap; padding: 10px 16px; }
.fp-tel-row { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; }
.fp-tel-row + .fp-tel-row { border-top: 1px solid #f3f0f1; margin-top: 2px; padding-top: 8px; }
.fp-tel-k { font-size: 11px; color: #98A2B3; min-width: 44px; text-align: left; }
.fp-pop-text a { font-size: 15px; font-weight: 600; color: #C8102E; text-decoration: none; }
.fp-pop-text a:hover { text-decoration: underline; }
.fp-pop img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; border-radius: 6px; }
.fp-pop-title { text-align: center; font-size: 13px; font-weight: 600; color: #0A0A0B; margin-top: 8px; }
.fp-pop-sub   { text-align: center; font-size: 11px; color: #98A2B3; margin-top: 2px; }
.fp-pop::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
}

@media (max-width: 767px) {
  /* 小屏：右侧竖排 → 底部固定横条（整宽、平分按钮，拇指友好）*/
  .float-panel {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    flex-direction: row;
    width: 100%;
    border: none;
    border-top: 1px solid #f0eced;
    border-radius: 0;
    box-shadow: 0 -4px 18px rgba(5,0,56,0.12);
  }
  .fp-item {
    flex: 1 1 0; width: auto;
    padding: 8px 2px; gap: 3px;
    border-bottom: none;
    border-right: 1px solid #f3f0f1;
    border-radius: 0 !important;
  }
  .fp-item:last-child { border-right: none; }
  .fp-ico svg { width: 22px; height: 22px; }
  .fp-label { font-size: 10px; }

  /* 弹层改为从按钮上方居中弹出 */
  .fp-pop {
    right: auto; left: 50%; top: auto; bottom: 100%;
    margin: 0 0 12px 0;
    transform: translateX(-50%) translateY(8px);
    width: 200px;
    max-width: 86vw;
  }
  .fp-pop-text { width: auto; }
  .fp-item:hover .fp-pop,
  .fp-item:focus .fp-pop,
  .fp-item:focus-within .fp-pop {
    transform: translateX(-50%) translateY(0);
  }
  .fp-pop::after {
    right: auto; left: 50%; top: auto; bottom: -6px;
    transform: translateX(-50%) rotate(45deg);
  }

  /* 给页面底部留出横条高度，避免遮挡页脚内容 */
  body { padding-bottom: 62px; }
}
