:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --text: #151826;
  --muted: #6f778b;
  --line: #e8ecf4;
  --blue: #1f6cff;
  --blue-dark: #144fd7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-bg {
  min-height: 100vh;
}

.home-top-ad-section[hidden],
.home-floating-ad[hidden] {
  display: none !important;
}

.home-top-ad-section {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1300;
  transition:
    max-height 0.82s cubic-bezier(0.2, 0.78, 0.18, 1),
    opacity 0.32s ease;
}

.home-top-ad-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(48, 121, 255, 0.34), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(255, 135, 39, 0.3), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(53, 198, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(4, 12, 28, 0.88) 0%, rgba(8, 19, 44, 0.84) 48%, rgba(5, 11, 28, 0.9) 100%);
  backdrop-filter: blur(12px);
}

.home-top-ad-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 16%, rgba(255, 255, 255, 0.1) 34%, transparent 50%),
    linear-gradient(300deg, transparent 18%, rgba(95, 180, 255, 0.1) 42%, transparent 58%);
  opacity: 0.9;
  animation: homeTopAdBackdropShift 8s linear infinite;
}

.home-top-ad-section.is-open {
  max-height: 100vh;
  opacity: 1;
  pointer-events: auto;
}

.home-top-ad-section.is-closing {
  max-height: 100vh;
  opacity: 0;
  pointer-events: none;
}

.home-top-ad-inner {
  position: relative;
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0;
  transform: translateY(26px) scale(0.78);
  transform-origin: center center;
  transition:
    transform 0.82s cubic-bezier(0.2, 0.78, 0.18, 1),
    opacity 0.28s ease;
  z-index: 1;
}

.home-top-ad-inner::before,
.home-top-ad-inner::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.home-top-ad-inner::before {
  top: -26px;
  left: -10px;
  width: 210px;
  height: 48px;
  background: linear-gradient(90deg, rgba(104, 184, 255, 0.1), rgba(255, 255, 255, 0.6), rgba(104, 184, 255, 0.1));
}

.home-top-ad-inner::after {
  right: -28px;
  bottom: 44px;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(255, 153, 77, 0.42), transparent 68%);
}

.home-top-ad-section.is-open .home-top-ad-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-top-ad-section.is-closing .home-top-ad-inner {
  opacity: 0;
  transform-origin: center right;
  transform: translate(42vw, 14vh) scale(0.22);
}

.home-top-ad-dismiss {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 15, 34, 0.46);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(5, 15, 36, 0.22);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.home-top-ad-dismiss:hover {
  transform: translateY(-1px);
  background: rgba(14, 27, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.28);
}

.home-top-ad-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(76vh, 760px);
  padding: 34px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(17, 44, 97, 0.96), rgba(13, 93, 231, 0.94));
  box-shadow:
    0 36px 80px rgba(6, 22, 48, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 70px rgba(54, 138, 255, 0.18);
  backdrop-filter: blur(10px);
  animation: homeTopAdCardFloat 4.2s ease-in-out infinite;
}

.home-top-ad-link.is-disabled,
.home-floating-ad.is-disabled {
  cursor: default;
}

.home-top-ad-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.22) 36%, transparent 54%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 40%);
  transform: translateX(-62%);
  animation: homeTopAdShine 3.6s linear infinite;
  pointer-events: none;
}

.home-top-ad-link::after {
  content: '精选推荐';
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 159, 66, 0.96), rgba(255, 88, 88, 0.92));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 12px 24px rgba(255, 117, 76, 0.24);
}

.home-top-ad-image {
  position: relative;
  display: block;
  width: 100%;
  height: min(70vh, 680px);
  object-fit: contain;
  filter:
    drop-shadow(0 24px 38px rgba(8, 20, 44, 0.34))
    drop-shadow(0 0 34px rgba(117, 187, 255, 0.18));
  z-index: 1;
}

.home-floating-ad {
  position: fixed;
  top: 52%;
  right: 18px;
  width: 126px;
  padding: 9px 9px 44px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(110, 180, 255, 0.35), transparent 38%),
    linear-gradient(160deg, rgba(16, 48, 109, 0.96), rgba(29, 108, 255, 0.94));
  box-shadow:
    0 22px 44px rgba(12, 38, 80, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, -50%) scale(0.88);
  transition:
    opacity 0.28s ease,
    transform 0.32s ease,
    box-shadow 0.32s ease;
  z-index: 1180;
  animation: homeFloatingAdPulse 2.8s ease-in-out infinite;
}

.home-floating-ad::after {
  content: 'SDR销售助手';
  position: absolute;
  bottom: 9px;
  left: 50%;
  z-index: 2;
  max-width: calc(100% - 18px);
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(149, 206, 255, 0.16));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(8, 24, 60, 0.16);
  pointer-events: none;
  transform: translateX(-50%);
}

.home-floating-ad.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}

.home-floating-ad:hover {
  box-shadow:
    0 28px 56px rgba(12, 38, 80, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.home-floating-ad-image {
  display: block;
  width: 100%;
  max-height: 188px;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  z-index: 0;
}

@keyframes homeTopAdShine {
  0% {
    transform: translateX(-62%);
  }
  100% {
    transform: translateX(62%);
  }
}

@keyframes homeFloatingAdPulse {
  0%,
  100% {
    box-shadow:
      0 22px 44px rgba(12, 38, 80, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  }
  50% {
    box-shadow:
      0 26px 54px rgba(12, 38, 80, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 0 22px rgba(92, 173, 255, 0.28);
  }
}

@keyframes homeTopAdBackdropShift {
  0% {
    transform: translate3d(-4%, -2%, 0);
  }
  50% {
    transform: translate3d(4%, 2%, 0);
  }
  100% {
    transform: translate3d(-4%, -2%, 0);
  }
}

@keyframes homeTopAdCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.container {
  width: 90%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .home-top-ad-section.is-open {
    max-height: 100vh;
  }

  .home-top-ad-inner {
    width: calc(100% - 24px);
  }

  .home-top-ad-dismiss {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .home-top-ad-link {
    min-height: min(52vh, 420px);
    padding: 30px 14px 18px;
    border-radius: 24px;
  }

  .home-top-ad-image {
    height: min(46vh, 360px);
  }

  .home-floating-ad {
    top: auto;
    right: 12px;
    bottom: 110px;
    width: 104px;
    padding: 8px 8px 38px;
    transform: translateY(18px) scale(0.9);
  }

  .home-floating-ad.is-visible {
    transform: translateY(0) scale(1);
  }

  .home-top-ad-section.is-closing .home-top-ad-inner {
    transform: translate(24vw, 18vh) scale(0.2);
  }

  .home-floating-ad-image {
    max-height: 128px;
    border-radius: 16px;
  }

  .home-floating-ad::after {
    bottom: 8px;
    left: 50%;
    max-width: calc(100% - 16px);
    height: 26px;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: 0.02em;
    transform: translateX(-50%);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(32, 53, 90, 0.06);
}

.hero-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  position: relative;
  align-items: start;
}

.category {
  padding: 16px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.category h3 {
  margin: 0 0 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category ul {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category ul::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.category ul.is-loading {
  overflow: hidden;
}

.category li {
  padding: 10px 8px;
  border-radius: 8px;
  color: #424c67;
  font-size: 14px;
}

.category-loading-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.category-loading-text.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.category-loading-item {
  pointer-events: none;
}

.category-loading-line {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2fb 12%, #dfe8f7 50%, #edf2fb 88%);
  background-size: 200% 100%;
  animation: categoryLoadingShimmer 1.15s linear infinite;
}

@keyframes categoryLoadingShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.category li a {
  color: inherit; /* 让 li 的 color/hover 生效 */
  text-decoration: none;
  display: block;
}

.category li:hover a {
  text-decoration: underline;
}

.category li:hover {
  background: #f3f7ff;
  color: var(--blue);
}

/* 首页左侧分类：二级、三级悬浮面板 */
.cat-tier-popover {
  position: absolute;
  top: 0;
  width: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 30, 60, 0.12);
  padding: 12px 10px;
  z-index: 30;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  /* 让二/三级分类面板高度固定时，不把内容撑出面板本体 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cat-tier-popover.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.cat-tier2 {
  left: 0;
}

.cat-tier3 {
  left: 0;
}

.cat-tier-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  flex: 0 0 auto;
}

.cat-tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* 为滚动条预留空间，避免遮住最右侧文字 */
  padding-right: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 三级分类：横向优先，宽度不够自动换行（标签风格） */
.cat-tier3 .cat-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  overflow-x: hidden;
  /* 保持左上对齐，避免换行时视觉跳动 */
  justify-content: flex-start;
}

/* 隐藏内部滚动条，保留滚轮/触控滚动 */
.cat-tier-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.cat-tier-list li {
  padding: 9px 10px;
  border-radius: 10px;
  color: #424c67;
  font-size: 14px;
  flex: 0 0 auto;
}

.cat-tier3 .cat-tier-list li {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid rgba(31, 108, 255, 0.14);
  background: rgba(31, 108, 255, 0.05);
}

.cat-tier3 .cat-tier-list li a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  min-width: 0;
}

.cat-tier-list li:hover {
  background: #f3f7ff;
  color: var(--blue);
}

.cat-tier3 .cat-tier-list li:hover {
  border-color: rgba(31, 108, 255, 0.38);
  background: #eef5ff;
}

.cat-tier-list li a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hero-banner {
  padding: 32px 50px;
  height: 450px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  background: linear-gradient(118deg, #1b55eb, #2f86ff 52%, #0d47cf, #225ee8);
  background-size: 240% 240%;
  animation: heroGradientShift 8s ease-in-out infinite;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-tag {
  margin: 0;
  opacity: 0.86;
  font-size: 13px;
  letter-spacing: 1px;
}

.hero-banner h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.28;
}

.hero-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  max-width: 640px;
  opacity: 0.95;
}

.hero-actions {
  margin-top: 0;
  display: flex;
  gap: 10px;
}

.hero-actions button {
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
}

.btn-white {
  background: #fff;
  color: #0e4cd3;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
}

.stat-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: none;
  flex: 0 0 auto;
  align-self: center;
}

.stat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.stat-title {
  color: #2f3f61;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.stat .stat-num {
  display: block;
  color: #9aa4ba;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}

.section {
  margin-top: 30px;
}

.section-head {
  min-height: 44px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.section-head h2 {
  margin: 0;
  color: #e06d1d;
  font-size: 22px;
  line-height: 1.2;
}

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

.product {
  padding: 12px;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(22, 42, 84, 0.14);
}

.product:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(22, 42, 84, 0.18);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff7a00;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.thumb {
  height: clamp(200px, 18vw, 260px);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f4f7fb, #e3eaf6);
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 12px;
}

.thumb-gray {
  background: linear-gradient(145deg, #f1f3f7, #cfd6e4);
}

.thumb-yellow {
  background: linear-gradient(145deg, #ffdb37, #ffb800);
}

.product h4 {
  margin: 0;
  font-size: 13px;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.product p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.product strong {
  display: none;
}

.factory-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.factory {
  padding: 22px;
}

.factory-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
}

.factory-brand-card {
  border-radius: 28px;
  padding: 24px 20px;
  background:
    linear-gradient(180deg, rgba(247, 249, 253, 0.98), rgba(242, 246, 252, 0.96)),
    #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.factory-brand-card h4 {
  width: 100%;
  margin: 18px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  color: #15233d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.factory-main-products {
  margin: 0;
  color: #1f2b42;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
  min-height: 48px;
}

.factory-code {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1b4fcf;
  font-weight: 800;
  font-size: 38px;
}

.factory-brand-logo {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff, #edf3fb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow:
    0 16px 36px rgba(20, 42, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.factory-brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.factory-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  height: 100%;
  align-content: start;
  align-self: stretch;
}

.factory-photo {
  aspect-ratio: 1 / 1;
  min-height: 150px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(189, 202, 226, 0.95);
  background: linear-gradient(145deg, #edf2fb, #dfe8f6);
  box-shadow:
    0 10px 26px rgba(20, 42, 83, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.factory-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #fff;
}

.factory-photo-empty {
  position: relative;
}

.factory-photo-empty::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(88, 109, 148, 0.22);
}

.factory button {
  border: 0;
  background: linear-gradient(180deg, #2464e8, #1457d5);
  color: #fff;
  padding: 12px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  min-width: 150px;
}

.factory-summary {
  border-radius: 28px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f5f8fd, #eef3fb);
  display: grid;
  gap: 16px;
  min-height: 140px;
}

.factory-summary-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.factory-summary-label {
  color: #7382a0;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.factory-summary-value {
  color: #1b2438;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  line-height: 1.5;
  word-break: break-word;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service {
  min-height: 124px;
  padding: 24px 26px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service h4 {
  margin: 0 0 8px;
}

.service p {
  margin: 0;
  font-size: 13px;
  opacity: 0.95;
}

.purple {
  background: linear-gradient(135deg, #5237ff, #7b6fff);
}

.green {
  background: linear-gradient(135deg, #009f86, #21c594);
}

.blue {
  background: linear-gradient(135deg, #1753db, #2e89ff);
}

.contact {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 18px;
}

.contact-left h3 {
  margin: 0;
  font-size: 34px;
  color: #17316e;
  line-height: 1.2;
}

.contact-left p {
  color: var(--muted);
  margin: 12px 0;
}

.contact-left ul {
  margin: 0;
  padding-left: 18px;
  color: #2f3d62;
}

.contact-left li {
  margin-bottom: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: grid;
  gap: 10px;
}

.contact-form .row:last-of-type {
  min-height: 72px;
  align-items: center;
}

.row.two {
  grid-template-columns: 1fr 1fr;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.contact-form textarea {
  min-height: 88px;
  resize: vertical;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  min-height: 56px;
  padding: 0 20px;
}

.footer {
  margin-top: 34px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding: 26px 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer h3,
.footer h4 {
  margin: 0 0 10px;
}

.footer p,
.footer small {
  color: var(--muted);
}

.footer a {
  display: block;
  text-decoration: none;
  color: #3f4b6b;
  margin-bottom: 8px;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .category {
    display: none;
  }

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

  .factory-shell {
    grid-template-columns: 1fr;
  }

  .factory-brand-card {
    padding: 26px 22px;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 112px;
  }

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

@media (max-width: 700px) {
  .hero-banner h1 {
    font-size: 30px;
  }

  .stats-row,
  .footer-grid,
  .row.two {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product {
    padding: 10px;
  }

  .badge {
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 3px 7px;
  }

  .thumb {
    height: clamp(136px, 26vw, 180px);
    margin-bottom: 8px;
  }

  .thumb img {
    padding: 8px;
  }

  .product h4 {
    min-height: 42px;
    font-size: 14px;
    line-height: 1.4;
    align-items: flex-start;
  }

  .product p {
    min-height: 40px;
    font-size: 12px;
    line-height: 1.5;
    align-items: flex-start;
  }

  .factory-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .factory {
    padding: 14px;
  }

  .factory-brand-logo {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    padding: 10px;
  }

  .factory-brand-card h4 {
    margin: 12px 0 6px;
    font-size: 16px;
    line-height: 1.45;
  }

  .factory-main-products {
    font-size: 12px;
    min-height: 40px;
  }

  .factory-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-photo {
    min-height: 96px;
    border-radius: 16px;
  }

  .factory button {
    min-width: 0;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero-layout {
    margin-top: 12px;
  }

  .hero-banner {
    height: auto;
    min-height: 0;
    padding: 24px 18px;
    gap: 14px;
  }

  .hero-banner h1 {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a,
  .hero-actions button,
  .factory button,
  .submit-btn {
    width: 100%;
  }

  .factory-brand-card {
    padding: 20px 16px;
  }

  .factory-summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact {
    padding: 16px;
  }

  .contact-left h3 {
    font-size: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px 0 22px;
    gap: 12px;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
    padding: 0 0 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid #e8edf6;
  }

  .footer-grid > :not(:first-child) {
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #f3f7fd);
    border: 1px solid #e7edf8;
  }

  .footer h3,
  .footer h4 {
    margin-bottom: 8px;
  }

  .footer p {
    margin: 0 0 8px;
    line-height: 1.7;
  }

  .footer small {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .footer a {
    margin-bottom: 6px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    gap: 8px;
  }

  .product {
    padding: 8px;
    border-radius: 12px;
  }

  .thumb {
    height: clamp(124px, 28vw, 152px);
    border-radius: 9px;
  }

  .product h4 {
    min-height: 38px;
    font-size: 13px;
  }

  .product p {
    min-height: 36px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .thumb {
    height: 200px;
  }

  .factory-row {
    gap: 8px;
  }

  .factory {
    padding: 12px;
  }

  .factory-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .factory-brand-card h4 {
    font-size: 14px;
  }

  .footer {
    margin-top: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 0 20px;
  }

  .footer-grid > :not(:first-child) {
    padding: 10px 10px 8px;
    border-radius: 12px;
  }

  .footer h3 {
    font-size: 18px;
  }

  .footer h4 {
    font-size: 15px;
  }

  .footer p,
  .footer a {
    font-size: 13px;
  }
}
