/* ========================================
   家韧自动化官网 - 响应式样式表
   自适应：电脑端高大上 / 手机端清晰明了
   ======================================== */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a5fb4; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0d47a1; }
ul, ol { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; }

/* === Variables === */
:root {
  --primary: #1a5fb4;
  --primary-dark: #0d47a1;
  --primary-light: #e3f2fd;
  --accent-red: #d32f2f;
  --text-dark: #333;
  --text-gray: #666;
  --text-light: #999;
  --bg-white: #fff;
  --bg-gray: #f5f5f5;
  --border: #e0e0e0;
  --max-width: 1200px;
  --nav-height: 64px;
}

/* === Layout Container === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.section-white {
  background: var(--bg-white);
  width: 100%;
}
.section-gray {
  background: var(--bg-gray);
}

/* ====================================
   顶部导航栏
   ==================================== */
.topbar {
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-gray);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.topbar-welcome { font-size: 13px; }
.topbar-contact { display: flex; align-items: center; gap: 20px; }
.topbar-contact span { display: flex; align-items: center; gap: 4px; }
.topbar-phone {
  color: var(--accent-red);
  font-weight: bold;
  font-size: 15px;
}

/* === Main Header === */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}
.logo-img {
  width: 200px;
  height: 60px;
  object-fit: contain;
}
.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
}
.logo-text small { font-size: 12px; font-weight: normal; color: var(--text-gray); display: block; }

/* === Desktop Nav === */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu > li > a {
  display: block;
  padding: 0 18px;
  line-height: var(--nav-height);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--primary);
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
  width: 60%;
}
/* Dropdown */
.nav-menu .dropdown { position: relative; }
.nav-menu .dropdown > a::before {
  content: '▾';
  margin-left: 4px;
  font-size: 10px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  background: var(--bg-white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 0 0 6px 6px;
  min-width: 140px;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text-dark);
  font-size: 14px;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* === Hamburger Button (Mobile) === */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-right: 5px;
  z-index: 10000;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: 0.3s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* === Mobile Nav Overlay === */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: -280px;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: var(--bg-white);
  padding: 20px 0;
  overflow-y: auto;
  transition: right 0.3s;
}
.mobile-nav.open .mobile-nav-panel { right: 0; }
.mobile-nav-panel li a {
  display: block;
  padding: 14px 24px;
  color: var(--text-dark);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-panel li a:hover,
.mobile-nav-panel li a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.mobile-nav-panel .nav-phone-btn {
  margin: 20px 24px 0;
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
}
.mobile-nav-panel .mobile-nav-item > a { display: block; padding: 14px 24px; color: var(--text-dark); font-size: 16px; border-bottom: 1px solid var(--border); }
.mobile-nav-panel .mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-panel .mobile-nav-link > a {
  flex: 1;
  padding: 14px 0 14px 24px;
  color: var(--text-dark);
  font-size: 16px;
  border-bottom: none;
}
.mobile-nav-panel .mobile-nav-arrow {
  padding: 14px 24px 14px 12px;
  color: var(--text-gray);
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.3s;
  user-select: none;
}
.mobile-nav-panel .has-sub.open .mobile-nav-arrow {
  transform: rotate(180deg);
}
.mobile-nav-panel .mobile-submenu {
  display: none;
  background: var(--bg-gray);
}
.mobile-nav-panel .has-sub.open .mobile-submenu {
  display: block;
}
.mobile-nav-panel .mobile-submenu li a {
  display: block;
  padding: 12px 24px 12px 48px;
  color: var(--text-gray);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-panel .mobile-submenu li a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* ====================================
   Banner 轮播
   ==================================== */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
}
.banner-slides {
  display: flex;
  transition: transform 0.5s ease;
}
.banner-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 200px;
  max-height: 600px;
  overflow: hidden;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-slide .slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0,0,0,0.35);
}
.banner-slide .slide-title {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}
.banner-slide .slide-desc {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.banner-slide .slide-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.banner-slide .slide-btn:hover { background: var(--primary-dark); }
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.banner-dots span.active { background: #fff; }

/* ====================================
   内页 Banner
   ==================================== */
.inner-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 160px;
}
.inner-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inner-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
}
.inner-banner-title {
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin: 0;
}

/* ====================================
   产品图集
   ==================================== */
.product-gallery {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.product-gallery h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 16px;
}
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.product-gallery-item {
  position: relative;
  padding-top: 75%;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  cursor: pointer;
  transition: transform 0.2s;
}
.product-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 产品详情主图 */
.detail-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* ====================================
   面包屑导航
   ==================================== */
.breadcrumb {
  background: var(--bg-white);
  padding: 10px 0;
}
.breadcrumb .container { display: flex; align-items: center; gap: 2px; font-size: 13px; color: var(--text-gray); }
.breadcrumb a { color: var(--text-gray); margin-left: 3px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 4px; }
.breadcrumb .current { color: var(--text-dark); margin-left: 3px; }

/* ====================================
   通用 Section 标题
   ==================================== */
.section-header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.section-header p {
  margin-top: 10px;
  color: var(--text-gray);
  font-size: 15px;
}

/* ====================================
   公司简介（首页）
   ==================================== */
.about-section { padding: 0 0 40px; }
.about-section .about-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 2;
  text-align: justify;
}
.about-section .about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.about-feature {
  text-align: center;
  padding: 24px 20px;
  background: var(--bg-gray);
  border-radius: 8px;
}
.about-feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}
.about-feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.about-feature p { font-size: 13px; color: var(--text-gray); }

/* ====================================
   产品网格
   ==================================== */
.products-section { padding: 0 0 50px; }
.product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.product-filter {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-white);
}
.product-filter:hover,
.product-filter.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card .product-img {
  display: block;
  width: 100%;
  /*! aspect-ratio: 4 / 3; */
  overflow: hidden;
  background: var(--bg-gray);
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-info {
  padding: 14px 20px;
  background: #fff;
  display: block !important;
}
.product-card .product-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-info h3 a { color: var(--text-dark); }
.product-card .product-info h3 a:hover { color: var(--primary); }
.product-card .product-info p {
  font-size: 13px;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================================
   新闻列表
   ==================================== */
.news-section { padding: 0 0 50px; }
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
}
.news-tab {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-gray);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.news-tab:hover,
.news-tab.active { color: var(--primary); }
.news-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
}
.news-list { max-width: 1200px; margin: 0 auto; }
.news-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.news-list.two-col .news-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.news-item:hover { background: var(--primary-light); }
.news-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--bg-gray);
  border-radius: 6px;
  padding: 8px 0;
}
.news-date .day { font-size: 22px; font-weight: bold; color: var(--primary); }
.news-date .month { font-size: 12px; color: var(--text-gray); }
.news-info { flex: 1; }
.news-info .news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.news-info .news-title a { color: var(--text-dark); }
.news-info .news-title a:hover { color: var(--primary); }
.news-info .news-title .news-meta-date {
  font-size: 12px;
  color: var(--text-light);
  font-weight: normal;
  flex-shrink: 0;
  margin-right: 5px;
}
.news-info .news-desc {
  font-size: 14px;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
/* --- 友情链接 --- */
.friend-links {
  background: var(--bg-white);
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}

.friend-links h4 {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.friend-links-list a {
  font-size: 0.88rem;
  color: var(--ink-light);
  transition: color 0.3s ease;
}

.friend-links-list a:hover {
  color: var(--accent);
}

/* ====================================
   详情页
   ==================================== */
.detail-wrap {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}
.detail-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: left;
  margin-bottom: 12px;
  line-height: 1.4;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-gray);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-content {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 2;
}
.detail-content h3,
.detail-content h4 { margin: 20px 0 10px; font-weight: 600; color: var(--text-dark); }
.detail-content h3 { font-size: 18px; }
.detail-content h4 { font-size: 16px; }
.detail-content p { margin-bottom: 12px; }
.detail-content ul, .detail-content ol { padding-left: 20px; margin-bottom: 12px; }
.detail-content li { margin-bottom: 6px; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content table th,
.detail-content table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
}
.detail-content table th {
  background: var(--bg-gray);
  font-weight: 600;
}
.detail-content img { border-radius: 6px; margin: 12px 0; }

/* Detail tags */
.detail-tags {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.detail-tags span { font-size: 13px; color: var(--text-gray); margin-right: 4px; }
.detail-tags .tag {
  padding: 3px 12px;
  background: var(--bg-gray);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-gray);
}

/* Detail nav (prev/next) */
.detail-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.detail-nav a {
  font-size: 14px;
  color: var(--text-gray);
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-nav a:hover { color: var(--primary); }

/* Related products */
.related-section {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
}
.related-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Detail consult button */
.detail-consult {
  margin-top: 20px;
  text-align: center;
}
.detail-consult a {
  display: inline-block;
  padding: 12px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}
.detail-consult a:hover { background: var(--primary-dark); }

/* ====================================
   分页
   ==================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-gray);
  background: var(--bg-white);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-info { border: none; background: none; color: var(--text-light); font-size: 13px; padding: 0 10px; min-width: auto; height: auto; }

/* ====================================
   关于我们
   ==================================== */
.about-page { padding: 30px 0 50px; }
.about-page .about-block { margin-bottom: 30px; }
.about-page h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}
.about-page p {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 2;
  text-align: justify;
}

/* ====================================
   联系我们
   ==================================== */
.contact-page { padding: 30px 0 50px; }
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-card-info h4 { font-size: 14px; color: var(--text-gray); margin-bottom: 4px; font-weight: normal; }
.contact-card-info p { font-size: 16px; color: var(--text-dark); font-weight: 600; }
.contact-card-info .phone-num {
  color: var(--accent-red);
  font-size: 16px;
  font-weight: bold;
}
.contact-map {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}
.contact-map iframe { width: 100%; height: 300px; border: 0; border-radius: 6px; }

/* === 留言表单 === */
.message-form {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group label .required { color: var(--accent-red); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--primary-dark); }
.form-msg {
  text-align: center;
  padding: 10px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}
.form-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-msg.error { background: #ffebee; color: #c62828; display: block; }

/* ====================================
   页脚
   ==================================== */
.site-footer {
  background: #1a2332;
  color: #b0b8c4;
  padding: 36px 0 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-about h4,
.footer-nav h4,
.footer-contact h4,
.footer-subsites h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
}
.footer-about p { font-size: 14px; line-height: 1.9; }
.footer-nav ul li,
.footer-subsites ul li { margin-bottom: 8px; }
.footer-nav ul li a,
.footer-subsites ul li a { color: #b0b8c4; font-size: 14px; }
.footer-nav ul li a:hover,
.footer-subsites ul li a:hover { color: #fff; }
.footer-nav ul { padding-left: 10px; }
.footer-subsites ul { padding-left: 0; }
.footer-contact p { font-size: 14px; margin-bottom: 8px; }
.footer-contact .footer-phone { color: #fff; font-size: 18px; font-weight: bold; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
.footer-bottom a { color: #6b7280; margin: 0 4px; }

/* ====================================
   返回顶部
   ==================================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
  font-size: 20px;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); }

/* ====================================
   移动端底部吸附导航
   ==================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid var(--border);
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.mobile-bottom-nav ul {
  display: flex;
}
.mobile-bottom-nav li {
  flex: 1;
  text-align: center;
}
.mobile-bottom-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0 6px;
  color: var(--text-gray);
  font-size: 12px;
  gap: 2px;
  position: relative;
  transition: color 0.2s;
}
.mobile-bottom-nav li a svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.mobile-bottom-nav li a.active { color: var(--primary); }
.mobile-bottom-nav li a.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 0 0 2px 2px;
}
.mobile-bottom-nav li.nav-call a { color: var(--accent-red); }
.mobile-bottom-nav li.nav-call a svg { stroke: var(--accent-red); }

/* ====================================
   404 页面
   ==================================== */
.error-page {
  text-align: center;
  padding: 60px 20px;
}
.error-page h1 { font-size: 72px; color: var(--primary); margin-bottom: 10px; }
.error-page p { font-size: 18px; color: var(--text-gray); margin-bottom: 24px; }
.error-page a {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
}

/* ====================================
   响应式断点
   ==================================== */

/* Tablet */
@media (max-width: 991px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-section .about-features { gap: 12px; }
  .banner-slide { min-height: 170px; }
  .banner-slide .slide-title { font-size: 24px; }
  .banner-slide .slide-desc { font-size: 14px; }
  .inner-banner { height: 130px; }
  .inner-banner-title { font-size: 22px; }
  .product-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar-welcome { display: none; }
}

/* Mobile */
@media (max-width: 767px) {
  body { padding-bottom: 60px; font-size: 14px; }

  /* Hide desktop nav, show hamburger */
  .nav-menu { display: none; }
  .nav-toggle { display: block; }

  /* Topbar simplified */
  .topbar { display: none; }

  /* Logo */
  .logo-text { font-size: 16px; }
  .logo-text small { font-size: 10px; }
  .logo-icon { width: 34px; height: 34px; font-size: 15px; }

  /* Banner */
  .banner-slide { min-height: 130px; }
  .banner-slide .slide-title { font-size: 17px; margin-bottom: 6px; }
  .banner-slide .slide-desc { font-size: 12px; margin-bottom: 10px; }
  .banner-slide .slide-btn { padding: 5px 14px; font-size: 12px; }
  .inner-banner { height: 100px; }
  .inner-banner-title { font-size: 16px; }
  .product-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Section header */
  .section-header { padding-top: 24px; margin-bottom: 20px; }
  .section-header h2 { font-size: 20px; }
  .section-header p { font-size: 13px; }

  /* Container padding */
  .container { padding: 0 15px; }

  /* Product grid - 2 columns */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .product-img { aspect-ratio: 4 / 3; }
  .product-card .product-info { padding: 8px 10px; }
  .product-card .product-info h3 { font-size: 13px; -webkit-line-clamp: 1; margin-bottom: 3px; }
  .product-card .product-info p { font-size: 11px; -webkit-line-clamp: 1; }

  /* Related grid */
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* About features */
  .about-section .about-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-feature { padding: 16px; }

  /* News */
  .news-tabs { gap: 16px; }
  .news-tab { font-size: 14px; }
  .news-list.two-col { grid-template-columns: 1fr; }
  .news-item { flex-direction: row; gap: 12px; padding: 12px 0; }
  .news-date { width: 48px; padding: 6px 0; }
  .news-date .day { font-size: 18px; }
  .news-info .news-title { font-size: 14px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .news-info .news-title .news-meta-date { font-size: 11px; }
  .news-info .news-desc { font-size: 12px; -webkit-line-clamp: 2; }

  /* Detail */
  .detail-wrap { padding: 16px; border-radius: 0; }
  .detail-title { font-size: 18px; }
  .detail-meta { gap: 12px; font-size: 12px; flex-wrap: wrap; }
  .detail-content { font-size: 14px; line-height: 1.8; }
  .detail-content h3 { font-size: 16px; }
  .detail-content h4 { font-size: 15px; }
  .detail-content table th,
  .detail-content table td { font-size: 12px; padding: 6px 8px; }

  /* About page */
  .about-page h3 { font-size: 17px; }
  .about-page p { font-size: 14px; }

  /* Contact */
  .contact-info { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { padding: 16px; }
  .contact-card-icon { width: 40px; height: 40px; font-size: 18px; }
  .contact-card-info p { font-size: 15px; }
  .contact-card-info .phone-num { font-size: 15px; }
  .contact-map iframe { height: 200px; }
  .message-form { padding: 20px; }

  /* Footer */
  .site-footer { padding: 24px 0 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav ul { padding-left: 0; }
  .footer-subsites ul { padding-left: 0; }

  /* Show mobile bottom nav */
  .mobile-bottom-nav { display: block; }

  /* Back to top adjust */
  .back-to-top { bottom: 70px; right: 15px; width: 40px; height: 40px; font-size: 18px; }

  /* Pagination */
  .pagination a,
  .pagination span { min-width: 32px; height: 32px; font-size: 13px; }

  /* Product filters */
  .product-filters { gap: 6px; }
  .product-filter { padding: 4px 14px; font-size: 13px; }

  /* Breadcrumb */
  .breadcrumb .container { font-size: 12px; }
}

/* Extra small phones */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .banner-slide .slide-title { font-size: 16px; }
}
/* --- 响应式设计 --- */
@media (max-width: 1024px) {
.friend-links {
    display: none;
  }
}
/* Print */
@media print {
  .site-header, .mobile-bottom-nav, .back-to-top, .nav-toggle, .mobile-nav { display: none !important; }
  body { background: #fff; }
}
