/* ============================================================
   深圳市跨境电子商务协会 · 克隆站样式 v2 (修复版)
   对齐原站 Shoplazza (Lexend, #121B17, #A4FAFD) 设计系统
   修复: md-hidden/lg-hidden 类名 (原站 md:hidden/lg:hidden 冒号
   未转义导致选择器失效 → 双购物车/双 logo)
   ============================================================ */
:root {
  --page-width: 1440px;
  --page-spacing: 16px;
  --color-white: #fff;
  --color-border: #eaeaea;
  --color-body-text-default: #888a8b;
  --color-shadow: rgba(0, 0, 0, .08);

  --font-body-family: Lexend, sans-serif;
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-heading-family: Lexend, sans-serif;
  --font-nav-family: Lexend, sans-serif;

  --color-body-bg: #FFFFFF;
  --color-heading-text: rgba(18, 27, 23, 1);
  --color-body-text: rgba(18, 27, 23, 1);
  --color-primary-btn-bg: rgba(164, 250, 253, 1);
  --color-primary-btn-text: rgba(14, 32, 249, 1);
  --color-sale-tag-bg: #2C676A;
  --color-header-bg: #ffffff;
  --color-header-text: #121B17;
  --color-footer-bg: rgba(26, 27, 27, 0.81);
  --color-footer-border: #2C676A;
  --color-footer-text: rgba(0, 0, 0, 1);

  --color-body-text-80: rgba(18, 27, 23, 0.8);
  --color-header-text-70: rgba(18, 27, 23, 0.7);
  --color-footer-text-80: rgba(0, 0, 0, 0.8);

  --font-heading-size: 25px;
  --font-body-size: 16px;
  --font-nav-size: 15px;
  --font-section-heading-size: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body-family);
  font-size: var(--font-body-size);
  font-weight: 400;
  color: var(--color-body-text);
  background-color: var(--color-body-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.page-container {
  max-width: calc(var(--page-width) + var(--page-spacing) * 2);
  padding-left: var(--page-spacing);
  padding-right: var(--page-spacing);
  margin-left: auto;
  margin-right: auto;
}

.content-max-width { max-width: calc(1240px + var(--page-spacing) * 2) !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.break-words { overflow-wrap: break-word; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-7 { margin-top: 28px; }
.mt-8 { margin-top: 32px; }
.mr-2 { margin-right: 8px; }
.mr-5 { margin-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.rounded { border-radius: 8px; }
.rounded-md { border-radius: 6px; }
.rounded-xl { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 10px 40px var(--color-shadow); }
.z-10 { z-index: 10; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-0 { font-size: 0; }
.text-uppercase { text-transform: uppercase; }
.tracking-1 { letter-spacing: 0.01em; }

.body-text-xl { font-size: 20px; line-height: 30px; }
.color-body-default { color: var(--color-body-text-default); }
.color-body-80 { color: var(--color-body-text-80); }
.color-header-text-70 { color: var(--color-header-text-70); }
.color-footer-text-80 { color: var(--color-footer-text-80); }

.line-clamp-2, .line-clamp-4 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-4 { -webkit-line-clamp: 4; }

/* ============ RESPONSIVE CLASSES ============
   原站语义: md:hidden = 移动端隐藏(桌面显示)
             lg:hidden = 桌面端隐藏(移动显示)
   克隆站改用无冒号类名 md-hidden / lg-hidden 避免转义坑 */
.lg-hidden { display: none !important; }
@media (max-width: 959.98px) {
  .md-hidden { display: none !important; }
  .lg-hidden { display: block !important; }
}

/* ============ HEADER ============ */
.header-container {
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner-container { min-height: 66px; }

.header__logo { font-size: 22px; line-height: 28px; font-weight: 600; }

.header-menu-container {
  margin: 0 48px;
  overflow: visible;
}
.header-menu { display: flex; align-items: center; justify-content: center; }

.header-menu-item { position: relative; }
.header-menu > .header-menu-item > .menu-item-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 24px 16px;
  font-family: var(--font-nav-family);
  font-size: var(--font-nav-size);
  transition: color 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
  white-space: nowrap;
  cursor: pointer;
}
.header-menu-item:hover > .menu-item-label { color: var(--color-header-text); }
.menu-arrow { opacity: 0.5; }

.header-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  max-width: 288px;
  border-radius: 12px;
  border-top-left-radius: 0;
  box-shadow: 0 10px 40px var(--color-shadow);
  padding: 12px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 100;
}
.header-menu-item:hover .header-menu-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.header-submenu li a,
.header-submenu li > span {
  display: block;
  padding: 10px 24px;
  font-family: var(--font-nav-family);
  font-size: calc(var(--font-nav-size) * 0.95);
  color: var(--color-header-text-70);
  white-space: nowrap;
  transition: color 300ms ease;
}
.header-submenu li a:hover { color: var(--color-header-text); }
.header-submenu li > span { color: var(--color-body-text-default); cursor: default; }

.header__icons { gap: 8px; }
.header__icons-item { margin-left: 22px; color: var(--color-header-text); }
.header__account { margin: 0 20px -4px 0; padding-bottom: 4px; position: relative; }
.header__account-icon {
  padding: 10px;
  transition: background-color 300ms ease;
  color: var(--color-header-text);
}
.header__account:hover .header__account-icon { background-color: #F6F6F6; }
.header__account-dropdown {
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.header__account:hover .header__account-dropdown { opacity: 1; pointer-events: auto; }
.header__account-dropdown-item {
  padding: 8px 20px;
  font-family: var(--font-nav-family);
  font-size: calc(var(--font-nav-size) * 0.9);
  color: var(--color-header-text-70);
}
.header__account-dropdown-item:hover { color: var(--color-header-text); }

.header-mobile-toggle {
  display: none;
  border: none;
  background: none;
  padding: 10px;
  color: var(--color-header-text);
  cursor: pointer;
}

/* mobile menu */
.header-menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  z-index: 1060;
  overflow-y: auto;
  box-shadow: 0 10px 40px var(--color-shadow);
  transform: translateX(-105%);
  transition: transform 300ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.header-menu-mobile.open { transform: translateX(0); }
.mobile-menu-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-menu-mask.open { opacity: 1; pointer-events: auto; }
.mobile-menu-header { border-bottom: 1px solid var(--color-border); }
.mobile-menu-header button {
  border: none; background: none;
  font-size: 20px; cursor: pointer; color: var(--color-header-text);
}
.mobile-menu-list > li {
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu-list > li > a,
.mobile-menu-list > li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 15px;
  color: var(--color-header-text);
  cursor: pointer;
}
.mobile-menu-list > li > span i { font-style: normal; font-size: 12px; transition: transform 200ms; }
.mobile-menu-list > li.open > span i { transform: rotate(180deg); }
.mobile-menu-list ul { display: none; background: #F8F8F8; }
.mobile-menu-list li.open > ul { display: block; }
.mobile-menu-list ul a, .mobile-menu-list ul span {
  display: block;
  padding: 11px 32px;
  font-size: 14px;
  color: var(--color-header-text-70);
}
.mobile-menu-list ul span { color: var(--color-body-text-default); }

/* ============ SLIDESHOW ============ */
.slideshow-container { max-width: 1440px; position: relative; }
.slideshow-carousel { position: relative; height: 480px; overflow: hidden; }
.slideshow-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.slideshow-carousel-item { flex: 0 0 100%; height: 100%; position: relative; }
.slideshow-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slideshow-carousel-item-content { padding: 30px; pointer-events: none; }
.slideshow-carousel-item-content[data-layout="bottom"] { align-items: flex-end; justify-content: center; }
.slideshow-carousel-item-inner-content { pointer-events: auto; align-items: flex-start; }
.slideshow-carousel-item-btn {
  padding: 16px 20px;
  font-size: 16px;
  line-height: 24px;
  margin-top: 24px;
}
.slideshow-carousel-item-btn svg { margin-left: 4px; }

.spz-carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: none;
  background: #fff;
  box-shadow: 0 10px 40px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--color-body-text);
  transition: background-color 300ms ease;
}
.spz-carousel-button:hover { background-color: #F6F6F6; }
.spz-carousel-button-prev { left: 40px; }
.spz-carousel-button-next { right: 40px; }
.spz-carousel-button-prev svg { transform: rotate(180deg); }

.slideshow-bar-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  z-index: 5;
}
.slideshow-bar-item {
  position: relative;
  width: 60px;
  height: 3px;
  margin: 0 4px;
  border-radius: 1px;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 300ms ease;
}
.slideshow-bar-item[data-active="true"] { background-color: var(--color-white); }

/* single-image slideshows keep natural aspect */
.slideshow-single .slideshow-carousel-item img { position: static; }
.slideshow-single .slideshow-carousel-item { height: auto; }
.slideshow-single .slideshow-carousel-item img { height: auto; }

/* ============ BLOG POST ============ */
#shoplaza-section-1662088620550 { padding: 40px 0 80px; }
.blog-section-header { display: flex; align-items: center; justify-content: space-between; }
.card-heading {
  font-size: var(--font-section-heading-size);
  font-weight: 600;
  color: var(--color-heading-text);
}
.blog-post-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}
.blog-post-item {
  background: #fff;
  transition: transform 650ms cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-post-item:hover { transform: translateY(-2px); }
.blog-post-hero { position: relative; overflow: hidden; padding: 55.83% 0 0; }
.blog-post-hero-img { overflow: hidden; }
.blog-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 650ms cubic-bezier(0.23, 1, 0.32, 1);
}
.blog-post-item:hover .blog-post-img { transform: scale(1.0001); }
.blog-post-tag {
  top: 20px;
  left: 20px;
  padding: 4px 8px;
  color: var(--color-primary-btn-bg);
  font-size: 13px;
  background: #fff;
}
.blog-post-info { padding: 24px; }
.blog-post-info-heading { font-size: 20px; line-height: 30px; font-weight: 500; }
.blog-post-info-heading { transition: color 300ms ease; }
.blog-post-item:hover .blog-post-info-heading { color: var(--color-primary-btn-bg); }

/* ============ FOOTER ============ */
.footer {
  color: var(--color-footer-text);
  background-color: var(--color-footer-bg);
}
.footer-menu-container { padding-top: 24px; }
.footer-menu-item { padding: 40px 20px 0; }
.footer .body-text-xl { color: var(--color-footer-text); }
.footer-additional-container { padding: 24px 0 32px; }
.footer-copyright-text {
  color: var(--color-footer-text);
  font-size: 14px;
  opacity: 0.85;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1279.98px) {
  .header-menu > .header-menu-item > .menu-item-label { padding: 24px 12px; }
}

@media (max-width: 959.98px) {
  .header-inner-container { min-height: 64px; }
  .header-menu-container { display: none; }
  .header-mobile-toggle { display: block; }

  .slideshow-carousel { height: auto; }
  .slideshow-carousel-item { height: auto; }
  .slideshow-carousel-img { position: static; height: auto; }
  .slideshow-carousel-item-content { padding: 16px; }
  .slideshow-carousel-item-btn { padding: 12px 16px; font-size: 14px; margin-top: 16px; }
  .slideshow-bar-container { bottom: 16px; }
  .slideshow-bar-item { width: 20px; }
  .spz-carousel-button { width: 32px; height: 32px; }
  .spz-carousel-button-prev { left: 12px; }
  .spz-carousel-button-next { right: 12px; }

  #shoplaza-section-1662088620550 { padding: 20px 0; }
  .blog-post-content { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .blog-post-hero { padding: 67.05% 0 0; }
  .blog-post-item + .blog-post-item { margin-top: 0; }
}
