/* =============================================
   德欧品贸易(苏州)有限公司 - 全局样式
   DEOPING TRADING(SUZHOU) CO.,LTD
   ============================================= */

/* CSS Variables */
:root {
  --primary: #1a3a6b;        /* 深蓝主色 */
  --primary-dark: #122a52;   /* 深蓝深色 */
  --primary-light: #2550a0;  /* 蓝色高亮 */
  --accent: #c8a951;         /* 金色点缀 */
  --text-dark: #222222;
  --text-gray: #555555;
  --text-light: #888888;
  --bg-light: #f5f6f8;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --footer-bg: #14161c;      /* 深色页脚背景 */
  --font-zh: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
  --radius: 4px;
  --container-width: 1200px;
  --header-height: 64px;
}

/* =============================================
   i18n FOUC 防护：翻译未完成前隐藏可翻译文本
   页面加载时 .i18n-pending 已在 <head> 中添加，
   翻译完成后由 i18n.js 移除，杜绝语言闪烁
   ============================================= */
.i18n-pending [data-i18n],
.i18n-pending [data-i18n-html],
.i18n-pending [data-i18n-ph],
.i18n-pending [data-i18n-title],
.i18n-pending [data-i18n-aria] {
  visibility: hidden;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* 固定 header 会遮挡锚点目标，为锚点跳转/scrollIntoView 预留顶部间距 */
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-zh);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

/* =============================================
   Container
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Header / Navigation
   ============================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  height: var(--header-height);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--text-dark);
}

.site-logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo .logo-text {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.site-logo .logo-text span {
  display: block;
  letter-spacing: 0.5px;
}

/* 中文名（第一行）：加大加粗 */
.site-logo .logo-text span:first-child {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 1px;
}

/* 英文名（第二行）：缩小弱化 */
.site-logo .logo-text span:last-child {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

/* Header 左侧组合（logo + 商城入口） */
.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

/* Header 右侧（语言切换） */
.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}

/* 语言切换按钮：地球图标 + 目标语言文字 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-gray);
}

.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: #fff;
}

.lang-toggle:hover svg {
  color: var(--primary);
}

/* 商城跳转入口：左边图标，右边两行店铺名称 */
.mall-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding-left: 18px;
  border-left: 1px solid var(--border-color);
  text-decoration: none;
  flex-shrink: 0;
}

.mall-entry .mall-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(26,58,107,0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.mall-entry .mall-logo svg {
  width: 22px;
  height: 22px;
}

.mall-entry .mall-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.mall-entry .mall-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  transition: color var(--transition);
}

.mall-entry .mall-sub {
  font-size: 9px;
  color: var(--text-light);
  letter-spacing: 1.5px;
}

.mall-entry:hover .mall-name {
  color: var(--primary);
}

.mall-entry:hover .mall-logo {
  background: var(--primary);
  color: #fff;
}

/* Main Navigation */
#main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: var(--header-height);
  color: var(--text-gray);
  font-size: 14px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item.active > a {
  color: var(--primary);
  background: rgba(26,58,107,0.06);
}

.nav-item > a .arrow {
  font-size: 10px;
  transition: transform var(--transition);
}

.nav-item:hover > a .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  width: max-content;
  background: #fff;
  box-shadow: var(--shadow-md);
  border-top: 2px solid var(--primary-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 全宽下层面板的向下弹出动画（产品中心/品牌中心） */
.dropdown.dropdown-mega,
.dropdown.dropdown-cards {
  transform: translateY(-14px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.nav-item:hover .dropdown.dropdown-mega,
.nav-item:hover .dropdown.dropdown-cards {
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  transition: all var(--transition);
  white-space: nowrap;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 22px;
}

/* =============================================
   Mega Dropdown（Bambu Lab 风格全宽面板）
   产品中心 / 品牌中心：占满全屏宽度
   高度按入口数量自适应，每行最多 3 个图片+标题
   ============================================= */
.dropdown.dropdown-mega,
.dropdown.dropdown-cards {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 0;
  background: #fff;
  border-top: 2px solid var(--primary-light);
  box-shadow: 0 18px 40px rgba(15, 30, 60, 0.12);
}

/* 内容居中容器，与页头对齐 */
.dropdown-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 28px 20px 32px;
}

/* 每行最多 3 个入口的网格 */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 22px;
}

/* 单个入口：图 + 标题 + 描述 */
.dropdown .mega-grid .mega-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border-bottom: none;
  white-space: normal;
  text-align: left;
  color: var(--text-dark);
  transition: background var(--transition);
}

.dropdown .mega-grid .mega-card:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 14px;
}

.dropdown .mega-grid .mega-card .mega-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown .mega-grid .mega-card .mega-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dropdown .mega-grid .mega-card:hover .mega-thumb img {
  transform: scale(1.06);
}

.dropdown .mega-grid .mega-card .mega-thumb svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.dropdown .mega-grid .mega-card .mega-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dropdown .mega-grid .mega-card .mega-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition);
}

.dropdown .mega-grid .mega-card:hover .mega-title {
  color: var(--primary);
}

.dropdown .mega-grid .mega-card .mega-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Page Banner (hero for inner pages)
   ============================================= */
.page-banner {
  margin-top: var(--header-height);
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  overflow: hidden;
  position: relative;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

/* =============================================
   Breadcrumb
   ============================================= */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .sep {
  color: #ccc;
}

.breadcrumb .current {
  color: var(--primary);
}

/* Sub-tab bar */
.sub-tabs {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.sub-tabs ul {
  display: flex;
  gap: 0;
}

.sub-tabs ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-gray);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.sub-tabs ul li a:hover,
.sub-tabs ul li.active a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* =============================================
   Section Common
   ============================================= */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.section-header .subtitle {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.section-header .divider {
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-zh);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

/* =============================================
   Cards
   ============================================= */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Product Card */
.product-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: all var(--transition);
  text-align: center;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card .img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card .img-wrap img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease, opacity 0.45s ease;
}

/* hover 时切换到第二张图（laban 风格） */
.product-card .img-wrap img.img-alt {
  position: absolute;
  top: 10%;
  left: 10%;
  opacity: 0;
}

.product-card:hover .img-wrap img.img-main {
  opacity: 0;
}

.product-card:hover .img-wrap img.img-alt {
  opacity: 1;
  transform: scale(1.03);
}

.product-card:hover .img-wrap img {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 14px;
}

.product-card .brand {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .name {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 12px;
  line-height: 1.5;
  height: 36px;
  overflow: hidden;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* =============================================
   Pagination
   ============================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 0;
}

/* prev / next 箭头 */
.pagination > a.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--text-gray);
  transition: all var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.pagination > a.page-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination > a.page-arrow[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

/* 数字按钮容器 */
.page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.page-numbers .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-gray);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.page-numbers .page-num:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-numbers .page-num.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-num-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  color: var(--text-light);
  font-size: 14px;
  user-select: none;
  flex-shrink: 0;
}

/* =============================================
   Footer（深色多栏布局，参考 xtool）
   ============================================= */
#footer {
  color: rgba(0,0,0,0.62);
  padding: 56px 0 0;
  box-shadow: var(--shadow-md);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .company-name-zh {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand .company-name-en {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-brand .hotline-label {
  font-size: 12px;
  margin-bottom: 2px;
}

.footer-brand .hotline-number {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-brand .footer-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-brand .footer-email:hover {
  color: var(--primary);
}

/* 页脚链接栏 */
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-qr {
  text-align: center;
}

.footer-qr .qr-box {
  width: 92px;
  height: 92px;
  background: #fff;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-gray);
  border-radius: var(--radius);
}

.footer-qr .qr-label {
  font-size: 12px;
}

.footer-bottom {
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
}

.footer-bottom .footer-legal {
  line-height: 2.2;
}

.footer-bottom .footer-sep {
  margin: 0 8px;
  color: rgba(0,0,0,0.25);
}

.footer-bottom a {
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* =============================================
   Back to top
   ============================================= */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
  border: none;
}

#back-top.show {
  opacity: 1;
  visibility: visible;
}

#back-top:hover {
  background: var(--primary-dark);
}

/* =============================================
   Utility classes
   ============================================= */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* =============================================
   Responsive - Mid-range Desktop (≤1200px)
   防止英文模式下 header 内容溢出屏幕
   ============================================= */
@media (max-width: 1200px) {
  /* 收紧导航项间距与字号 */
  .nav-item > a {
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-item > a .arrow {
    font-size: 9px;
  }

  /* 隐藏商城入口，释放空间 */
  .mall-entry {
    display: none;
  }

  /* 隐藏 logo 英文副标题，缩小主标题字号 */
  .site-logo .logo-text span:first-child {
    font-size: 14px;
  }

  .site-logo .logo-text span:last-child {
    display: none;
  }

  /* 紧凑语言切换按钮 */
  .lang-toggle {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* 允许 header-left 和 logo 收缩，防止溢出 */
  .header-left {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .site-logo {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }

  .site-logo .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

/* =============================================
   Responsive - Narrow Desktop / English only (769px–860px)
   仅英文模式：桌面窄屏隐藏 logo 文字，进一步收紧导航
   （min-width: 769px 确保不影响 ≤768px 移动端布局）
   ============================================= */
@media (max-width: 860px) and (min-width: 769px) {
  html[lang="en"] .site-logo .logo-text {
    display: none;
  }

  html[lang="en"] .site-logo {
    gap: 0;
  }

  html[lang="en"] .nav-item > a {
    padding: 0 8px;
    font-size: 12px;
  }
}

/* 英文全宽（>1200px）下隐藏商城入口，避免 header 溢出 */
@media (min-width: 1201px) {
  html[lang="en"] .mall-entry {
    display: none;
  }
}

/* =============================================
   Responsive - Tablet (≤900px)
   ============================================= */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-main .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =============================================
   Responsive - Mobile (≤768px)
   ============================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .hamburger {
    display: flex;
  }

  /* 移动端语言切换按钮：紧凑化 */
  .lang-toggle {
    padding: 5px 10px;
    font-size: 12px;
  }
  .lang-toggle svg {
    width: 14px;
    height: 14px;
  }

  /* 移动端 Logo 缩小，防止 header 溢出 */
  .site-logo { gap: 8px; }
  .site-logo .logo-img { height: 36px; }
  .site-logo .logo-text span:first-child { font-size: 14px; }
  .site-logo .logo-text span:last-child { font-size: 9px; display: block; }

  #main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  #main-nav.open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-item > a {
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  .dropdown {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-item.open .dropdown {
    max-height: 300px;
  }

  .dropdown a {
    color: var(--text-gray);
    border-bottom-color: #eee;
    padding-left: 36px;
  }

  .dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 40px;
  }

  /* 移动端隐藏商城入口副标题，压缩空间 */
  .mall-entry { margin-left: 10px; padding-left: 12px; display: flex; }
  .mall-entry .mall-sub { display: none; }
  .mall-entry .mall-name { font-size: 13px; }

  /* Mega / Cards 下拉在移动端改为静态纵向堆叠 */
  .dropdown.dropdown-mega,
  .dropdown.dropdown-cards {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    border-top: none;
    box-shadow: none;
  }

  .dropdown.dropdown-mega .dropdown-inner,
  .dropdown.dropdown-cards .dropdown-inner {
    padding: 8px 16px 14px;
  }

  .dropdown.dropdown-mega .mega-grid,
  .dropdown.dropdown-cards .mega-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dropdown.dropdown-mega .mega-card,
  .dropdown.dropdown-cards .mega-card {
    padding: 8px 12px;
  }

  .dropdown.dropdown-mega .mega-card .mega-thumb,
  .dropdown.dropdown-cards .mega-card .mega-thumb {
    width: 44px;
    height: 44px;
  }

  .nav-item.open .dropdown.dropdown-mega,
  .nav-item.open .dropdown.dropdown-cards {
    max-height: none;
  }

  .page-banner {
    height: 180px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .sub-tabs ul {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .sub-tabs ul li a {
    padding: 12px 16px;
    font-size: 13px;
  }

  .footer-brand .hotline-number {
    font-size: 22px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-main .footer-brand,
  .footer-main .footer-qr {
    grid-column: 1 / -1;
  }

  #back-top {
    bottom: 20px;
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* =============================================
   Responsive - Small Tablet / Large Phone (≤600px)
   ============================================= */
@media (max-width: 600px) {
  /* 商城入口：仅保留图标，隐藏文字 */
  .mall-entry .mall-text { display: none; }
  .mall-entry .mall-logo { width: 28px; height: 28px; }
  .mall-entry .mall-logo svg { width: 18px; height: 18px; }

  .page-banner {
    height: 150px;
  }

  .section {
    padding: 32px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header h2 {
    font-size: 20px;
  }
}

/* =============================================
   Responsive - Phone (≤480px)
   ============================================= */
@media (max-width: 480px) {
  :root {
    --header-height: 52px;
  }

  /* Logo 进一步缩小，英文隐藏 */
  .site-logo { gap: 6px; }
  .site-logo .logo-img { height: 30px; }
  .site-logo .logo-text span:first-child { font-size: 12px; }
  .site-logo .logo-text span:last-child { display: none; }

  /* 商城入口隐藏（空间不足） */
  .mall-entry { display: none; }

  /* 语言按钮极简 */
  .lang-toggle {
    padding: 4px 8px;
    font-size: 11px;
  }
  .lang-toggle svg {
    width: 13px;
    height: 13px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 12px;
  }

  .page-banner {
    height: 120px;
  }

  .section {
    padding: 28px 0;
  }

  .section-header h2 {
    font-size: 19px;
  }

  .section-header .subtitle {
    font-size: 12px;
  }

  /* 页脚单列 */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-brand .company-name-zh {
    font-size: 17px;
  }

  .footer-brand .hotline-number {
    font-size: 20px;
  }

  #back-top {
    bottom: 16px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
