/* ============================================================
   天功自动化 - 工业模组专属样式
   稳重硬朗，强调精密制造与自动化能力
   ============================================================ */

:root {
  --tg-primary: #1a3a5c;
  --tg-primary-light: #2d5f8a;
  --tg-accent: #e8791d;
  --tg-accent-dark: #c96515;
  --tg-bg: #f4f6f9;
  --tg-bg-card: #ffffff;
  --tg-text: #1e293b;
  --tg-text-light: #64748b;
  --tg-border: #e2e8f0;
  --tg-success: #059669;
  --tg-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --tg-shadow-lg: 0 4px 16px rgba(0,0,0,.1);
  --tg-radius: 6px;
  --tg-max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--tg-text);
  background: var(--tg-bg);
}

a {
  color: var(--tg-primary-light);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--tg-primary);
  text-decoration: underline;
}

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

.container {
  max-width: var(--tg-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   顶部导航
   ============================================================ */
.b2b-shop-header {
  background: var(--tg-bg-card);
  border-bottom: 3px solid var(--tg-primary);
  box-shadow: var(--tg-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.b2b-shop-header-inner {
  max-width: var(--tg-max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b2b-shop-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--tg-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.b2b-shop-logo:hover {
  text-decoration: none;
  color: var(--tg-primary-light);
}

.b2b-shop-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.b2b-shop-nav a {
  padding: 6px 14px;
  border-radius: 4px;
  color: var(--tg-text);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}

.b2b-shop-nav a:hover {
  background: #e8eef5;
  color: var(--tg-primary);
  text-decoration: none;
}

.b2b-shop-tel a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tg-accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.b2b-shop-tel a:hover {
  background: var(--tg-accent-dark);
  text-decoration: none;
}

/* ============================================================
   Banner
   ============================================================ */
.b2b-shop-banner {
  background: linear-gradient(135deg, var(--tg-primary) 0%, #0f2a44 100%);
  color: #fff;
  padding: 48px 0 40px;
}

.b2b-shop-banner-inner {
  max-width: var(--tg-max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.b2b-shop-banner-text {
  flex: 1;
}

.b2b-shop-banner h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.b2b-shop-banner .banner-sub {
  font-size: 15px;
  opacity: .88;
  margin-bottom: 6px;
  line-height: 1.6;
}

.b2b-shop-banner .banner-area {
  font-size: 14px;
  opacity: .75;
  margin-bottom: 16px;
}

.b2b-shop-banner-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--tg-accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.4;
  transition: background .2s;
}

.b2b-shop-banner-cta:hover {
  background: var(--tg-accent-dark);
  text-decoration: none;
  color: #fff;
}

.b2b-shop-banner-cta .cta-tel {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.b2b-shop-banner-cta .cta-label {
  font-size: 13px;
  opacity: .9;
  margin-top: 2px;
}

/* ============================================================
   通用板块
   ============================================================ */
.b2b-shop-section {
  padding: 40px 0;
}

.b2b-shop-section:nth-child(even) {
  background: #fff;
}

.b2b-shop-section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 4px solid var(--tg-primary);
  color: var(--tg-text);
  line-height: 1.4;
}

.b2b-shop-section-en {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--tg-text-light);
  margin-top: 2px;
}

.b2b-shop-section-desc {
  color: var(--tg-text-light);
  font-size: 14px;
  margin-bottom: 24px;
  padding-left: 14px;
}

/* ============================================================
   关于我们
   ============================================================ */
.b2b-about-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
}

.b2b-about-text-wrap {
  flex: 1;
  min-width: 0;
}

.b2b-about-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--tg-text);
  margin-bottom: 20px;
}

.b2b-about-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
}

.b2b-about-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--tg-primary);
  line-height: 1.2;
}

.b2b-about-stat-label {
  font-size: 13px;
  color: var(--tg-text-light);
  margin-top: 4px;
}

.b2b-about-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #f0f4f8;
  border-radius: var(--tg-radius);
  font-size: 14px;
  color: var(--tg-text);
}

.b2b-about-contact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b2b-about-contact a {
  color: var(--tg-primary);
  font-weight: 600;
}

.b2b-about-image {
  flex-shrink: 0;
  width: 340px;
  border-radius: var(--tg-radius);
  overflow: hidden;
  box-shadow: var(--tg-shadow-lg);
}

.b2b-about-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   产品网格
   ============================================================ */
.b2b-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.b2b-product-card {
  background: var(--tg-bg-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  overflow: hidden;
  box-shadow: var(--tg-shadow);
  transition: box-shadow .2s, transform .2s;
}

.b2b-product-card:hover {
  box-shadow: var(--tg-shadow-lg);
  transform: translateY(-2px);
}

.b2b-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--tg-bg);
  display: block;
}

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

.b2b-product-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tg-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   核心优势
   ============================================================ */
.b2b-advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.b2b-advantage-card {
  background: var(--tg-bg-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--tg-shadow);
  transition: box-shadow .2s, transform .2s;
}

.b2b-advantage-card:hover {
  box-shadow: var(--tg-shadow-lg);
  transform: translateY(-2px);
}

.b2b-advantage-icon {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}

.b2b-advantage-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 8px;
}

.b2b-advantage-desc {
  font-size: 13px;
  color: var(--tg-text-light);
  line-height: 1.6;
}

/* ============================================================
   服务流程
   ============================================================ */
.b2b-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.b2b-process-card {
  background: var(--tg-bg-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--tg-shadow);
  position: relative;
}

.b2b-process-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.b2b-process-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 6px;
}

.b2b-process-desc {
  font-size: 13px;
  color: var(--tg-text-light);
  line-height: 1.5;
}

/* ============================================================
   联系我们
   ============================================================ */
.b2b-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.b2b-contact-card {
  background: var(--tg-bg-card);
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--tg-shadow);
}

.b2b-contact-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.b2b-contact-label {
  font-size: 13px;
  color: var(--tg-text-light);
  margin-bottom: 6px;
}

.b2b-contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-text);
}

.b2b-contact-value a {
  color: var(--tg-primary);
}

/* ============================================================
   合作伙伴与友情链接
   ============================================================ */
.b2b-recommend-wrap {
  max-width: var(--tg-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.b2b-recommend-group {
  margin-bottom: 20px;
}

.b2b-recommend-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tg-border);
}

.b2b-recommend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-recommend-links a {
  font-size: 13px;
  color: var(--tg-text-light);
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--tg-bg);
  border: 1px solid var(--tg-border);
  transition: color .2s, background .2s;
}

.b2b-recommend-links a:hover {
  color: var(--tg-primary);
  background: #e8eef5;
  text-decoration: none;
}

/* ============================================================
   底部
   ============================================================ */
.b2b-shop-footer {
  background: #111827;
  color: #d1d5db;
  padding: 32px 0 20px;
  margin-top: 0;
}

.b2b-shop-footer p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 4px;
  text-align: center;
}

.b2b-shop-footer a {
  color: #93c5fd;
}

.b2b-shop-footer a:hover {
  color: #bfdbfe;
}

/* ============================================================
   移动端悬浮按钮
   ============================================================ */
.b2b-mobile-call-float {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 8px 16px;
  background: var(--tg-primary);
  box-shadow: 0 -2px 8px rgba(0,0,0,.15);
  display: none;
}

.b2b-mobile-call-btn {
  display: block;
  text-align: center;
  background: var(--tg-accent);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
}

.b2b-mobile-call-btn:hover {
  background: var(--tg-accent-dark);
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .b2b-about-wrap {
    flex-direction: column;
  }
  .b2b-about-image {
    width: 100%;
  }
  .b2b-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .b2b-shop-header-inner {
    height: auto;
    flex-direction: column;
    padding: 10px 16px;
    gap: 8px;
  }
  .b2b-shop-nav {
    justify-content: center;
  }
  .b2b-shop-banner {
    padding: 28px 0 24px;
  }
  .b2b-shop-banner-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .b2b-shop-banner h1 {
    font-size: 22px;
  }
  .b2b-shop-banner .banner-sub {
    font-size: 14px;
  }
  .b2b-about-stats {
    justify-content: center;
  }
  .b2b-about-contact {
    flex-direction: column;
    gap: 8px;
  }
  .b2b-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .b2b-advantage-grid {
    grid-template-columns: 1fr 1fr;
  }
  .b2b-process-grid {
    grid-template-columns: 1fr 1fr;
  }
  .b2b-mobile-call-float {
    display: block;
  }
  .b2b-shop-section {
    padding: 28px 0;
  }
  .b2b-shop-section-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .b2b-shop-banner h1 {
    font-size: 20px;
  }
  .b2b-about-stats {
    gap: 16px;
  }
  .b2b-about-stat-num {
    font-size: 22px;
  }
  .b2b-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .b2b-advantage-grid {
    grid-template-columns: 1fr;
  }
  .b2b-process-grid {
    grid-template-columns: 1fr;
  }
}
