/* ============================================================
   广州跨峰精密科技有限公司 官网 · 全局样式
   共享样式表（五模块 + 产品详情统一）
   ============================================================ */

:root {
  --primary-color: #4498d9;
  --primary-dark: #2c7cb0;
  --primary-light: #6bb0e6;
  --secondary-color: #6c757d;
  --accent-color: #ff7e30;
  --accent-dark: #ff6a00;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #e9ecef;
  --transition: all 0.3s ease;
  --nav-bg: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark-color);
  position: relative;
}

.section-title h2 {
  font-size: 2.4rem;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 600;
}

.section-title p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--secondary-color);
  font-size: 1.05rem;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* ==================== 导航栏 ==================== */
header {
  background-color: var(--nav-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 11px 18px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--dark-color);
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(68, 152, 217, 0.08);
}

.nav-links a.active {
  color: #fff;
  background: var(--primary-color);
}

.nav-links a.active:hover {
  color: #fff;
  background: var(--primary-dark);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--primary-color);
  background: rgba(68, 152, 217, 0.1);
  width: 46px;
  height: 46px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

/* ==================== 通用内容区 ==================== */
main {
  min-height: 60vh;
}

.page-section {
  padding: 120px 0 80px;
}

.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  text-align: center;
}

/* ==================== 首页 hero ==================== */
.hero {
  padding-top: 76px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  overflow: hidden;
}

.product-showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.scroll-down-text {
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.scroll-down-arrow {
  width: 28px;
  height: 46px;
  border: 2px solid #fff;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
}

.scroll-down-arrow::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 11px;
  background: #fff;
  border-radius: 2px;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  60% { opacity: 1; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* 首页详情长图 */
.product-detail-section {
  padding: 70px 0;
  background: #f8f9fa;
}

.product-detail-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.detail-image-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.detail-image-title {
  text-align: center;
  font-size: 1.6rem;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.detail-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* 首页特性卡片 */
.product-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
}

.feature-item {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex: 1;
  min-width: 240px;
  max-width: 275px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark-color);
  font-weight: 600;
}

.feature-item p {
  color: #666;
  line-height: 1.6;
}

/* ==================== 产品中心 ==================== */
.products-section,
.cases-section,
.news-section,
.contact-section {
  padding: 120px 0 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

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

.product-image-container {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-content {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content .product-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--dark-color);
  font-weight: 600;
}

.product-content .product-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.product-feature {
  background: var(--light-color);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-feature i {
  color: var(--primary-color);
}

.product-link {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.product-link:hover {
  color: var(--primary-dark);
  gap: 12px;
}

/* 产品详情长图 */
.product-detail-container {
  margin: 0 auto 50px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.product-detail-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== 客户案例 ==================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.case-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.case-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-card:hover .case-image-container img {
  transform: scale(1.06);
}

.case-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.case-content {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.case-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark-color);
  font-weight: 600;
}

.case-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.7;
}

.case-details {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: #555;
}

.case-detail i {
  color: var(--primary-color);
  margin-top: 3px;
}

.case-effect {
  background: var(--light-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

.case-effect-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-effect-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.case-link {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* ==================== 技术交流 ==================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-card-body {
  padding: 26px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--secondary-color);
}

.news-category {
  background: rgba(68, 152, 217, 0.1);
  color: var(--primary-color);
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: 600;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.5;
}

.news-excerpt {
  color: #666;
  line-height: 1.7;
  flex-grow: 1;
}

/* ==================== 联系我们 ==================== */
.contact-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
  color: var(--secondary-color);
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.contact-image-container {
  height: 200px;
  overflow: hidden;
}

.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.contact-card:hover .contact-image {
  transform: scale(1.08);
}

.contact-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-title i {
  color: var(--primary-color);
}

.contact-info {
  flex-grow: 1;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-color);
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.info-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.info-label {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.info-value {
  font-size: 1.1rem;
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.5;
  word-break: break-all;
}

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

.contact-footer {
  padding-top: 20px;
  border-top: 1px solid var(--gray-color);
  text-align: center;
}

.contact-hours {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.contact-hours strong {
  color: var(--dark-color);
}

/* ==================== CTA 区域 ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.cta-content p {
  max-width: 640px;
  margin: 0 auto 26px;
  opacity: 0.92;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary-color);
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.cta-btn:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
}

/* ==================== 页脚 ==================== */
footer {
  background: var(--dark-color);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 38px;
  margin-right: 10px;
}

.footer-about {
  margin-bottom: 18px;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 0;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
  padding-left: 6px;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-light);
  width: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ==================== 悬浮联系按钮 ==================== */
.float-contact {
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-color);
  color: #fff;
  padding: 14px 20px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 26px rgba(255, 126, 48, 0.4);
  transition: var(--transition);
}

.float-contact i {
  font-size: 1.2rem;
}

.float-contact:hover {
  background: var(--accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(255, 126, 48, 0.5);
}

.float-contact::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  background: #ff3b30;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==================== 联系弹窗 ==================== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-overlay.open {
  display: flex;
}

.contact-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--gray-color);
}

.contact-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-modal-header h3 i {
  color: var(--primary-color);
}

.contact-modal-close {
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--secondary-color);
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close:hover {
  background: var(--gray-color);
  color: var(--dark-color);
}

.contact-modal-subheader {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 14px 26px;
  background: var(--light-color);
  border-bottom: 1px solid var(--gray-color);
  font-size: 0.95rem;
  color: var(--dark-color);
}

.contact-modal-subheader span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-modal-subheader i {
  color: var(--primary-color);
}

.contact-modal-body {
  padding: 26px;
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-color);
}

.contact-form-group label .required {
  color: #e53e3e;
  margin-left: 4px;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dbe0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(68, 152, 217, 0.12);
}

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

.contact-form-hint {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-top: 6px;
}

.contact-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-submit:hover {
  background: var(--primary-dark);
}

.contact-submit:disabled {
  background: #a8c8e2;
  cursor: not-allowed;
}

.contact-form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
  line-height: 1.5;
}

.contact-form-status.success {
  display: block;
  background: #eafaf1;
  color: #1d9e5c;
  border: 1px solid #b6e6cc;
}

.contact-form-status.error {
  display: block;
  background: #fdecea;
  color: #d64545;
  border: 1px solid #f5c2c2;
}

.contact-modal-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 3.4rem;
  color: #1d9e5c;
  margin-bottom: 16px;
}

.contact-modal-success h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.contact-modal-success p {
  color: var(--secondary-color);
  margin-bottom: 24px;
}

/* ==================== Barba 页面切换过渡 ==================== */
.fade-transition {
  opacity: 1;
  transition: opacity 0.3s ease;
}

html.is-animating .fade-transition {
  opacity: 0;
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
  .products-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    width: 90%;
    margin: 6px 0;
  }

  .nav-links a {
    padding: 15px 22px;
    border-radius: 10px;
    justify-content: center;
    font-size: 1.05rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 68px;
  }

  .feature-item {
    min-width: 100%;
    max-width: 100%;
  }

  .cta-section {
    padding: 36px 24px;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .float-contact {
    right: 16px;
    bottom: 90px;
    padding: 12px 16px;
  }

  /* 移动端产品卡片图完整显示（不裁切） */
  .product-image-container img,
  .case-image-container img {
    object-fit: contain;
    background: #f5f7fa;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .product-image-container {
    height: auto;
  }

  .product-image-container img {
    height: auto;
  }

  .contact-image-container {
    height: 180px;
  }

  .contact-modal-body {
    padding: 20px;
  }

  .contact-modal-header {
    padding: 18px 20px;
  }

  .contact-modal-subheader {
    padding: 12px 20px;
  }
}

/* ============================================================
   首页 V2601 完整版新增板块
   ============================================================ */

/* ---------- 新版 Hero ---------- */
.hero-v2 {
  position: relative;
  padding: 118px 0 78px;
  background: linear-gradient(180deg, #f7f9fb 0%, #edf1f5 100%);
  overflow: hidden;
}

.hero-v2-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
}

.hero-v2-text {
  flex: 1 1 380px;
  max-width: 400px;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(68, 152, 217, 0.10);
  color: var(--primary-dark);
  border: 1px solid rgba(68, 152, 217, 0.22);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-v2-text h1 {
  font-size: 2.75rem;
  line-height: 1.22;
  color: var(--dark-color);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--secondary-color);
  line-height: 1.75;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

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

/* 4:3 车间场景画框，整体靠右并向屏幕右侧延伸 */
.hero-v2-scene {
  position: relative;
  flex: 0 0 auto;
  width: min(780px, 62vw);
  aspect-ratio: 4 / 3;
  margin-left: auto;
  margin-right: -20px;
  border-radius: 20px;
  overflow: hidden;
  background: #10201a url('../img/factory-hero-43.jpg') center center / cover no-repeat;
  box-shadow: 0 30px 64px rgba(16, 32, 26, 0.24), 0 2px 6px rgba(16, 32, 26, 0.08);
}

/* 设备与地面接触阴影，避免悬浮感 */
.hero-v2-scene::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1.2%;
  width: 46%;
  height: 6%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.16) 48%,
    rgba(0, 0, 0, 0) 74%);
  z-index: 0;
  pointer-events: none;
}

/* 画框底部轻压暗，设备落地更实 */
.hero-v2-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 52%,
    rgba(0, 0, 0, 0.10) 82%,
    rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
  z-index: 2;
}

/* 产品抠图：按画框高度定比例，几乎撑满画面 */
.scene-product {
  position: absolute;
  left: 50%;
  bottom: 2%;
  height: 96%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.36));
  z-index: 1;
}

/* ---------- 数据条 ---------- */
.stats-bar {
  background: #1c2836;
  padding: 40px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.6rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item strong span {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-left: 4px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* ---------- 通用板块 ---------- */
.section-solution,
.section-models,
.section-values,
.section-advantages,
.section-specs,
.section-clients {
  padding: 75px 0;
}

.section-models,
.section-specs {
  background: var(--light-color);
}

/* ---------- 产品方案总览 ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.solution-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

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

.solution-card i {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.15rem;
  color: var(--dark-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.solution-card p {
  color: var(--secondary-color);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- 型号对比 ---------- */
.model-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.model-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: var(--transition);
}

.model-card.is-v {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.model-card img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 20px;
}

.model-card h3 {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-card h3 span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(68, 152, 217, 0.1);
  padding: 4px 12px;
  border-radius: 14px;
}

.model-card.is-v h3 span {
  color: #fff;
  background: var(--primary-color);
}

.model-more {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.model-card ul {
  list-style: none;
}

.model-card li {
  padding: 9px 0 9px 26px;
  color: #555;
  font-size: 0.95rem;
  position: relative;
  border-bottom: 1px dashed #eef1f4;
}

.model-card li:last-child {
  border-bottom: none;
}

.model-card li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 0.85rem;
}

/* ---------- 六大价值 ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.value-card i {
  font-size: 1.9rem;
  color: var(--accent-color);
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.15rem;
  color: var(--dark-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.value-card p {
  color: var(--secondary-color);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ---------- 优势（图文交替） ---------- */
.adv-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

.adv-row:last-child {
  margin-bottom: 0;
}

.adv-row.is-reverse {
  flex-direction: row-reverse;
}

.adv-media {
  flex: 1 1 46%;
  text-align: center;
}

.adv-media img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.adv-text {
  flex: 1 1 50%;
}

.adv-text h3 {
  font-size: 1.6rem;
  color: var(--dark-color);
  margin-bottom: 14px;
  font-weight: 700;
}

.adv-text > p {
  color: var(--secondary-color);
  line-height: 1.8;
  margin-bottom: 16px;
}

.adv-text ul {
  list-style: none;
}

.adv-text li {
  padding: 7px 0 7px 24px;
  color: #555;
  position: relative;
}

.adv-text li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.85rem;
}

/* ---------- 参数表 ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef1f4;
}

.spec-table tr:nth-child(even) {
  background: #fafbfc;
}

.spec-table th {
  color: var(--secondary-color);
  font-weight: 600;
  width: 20%;
  white-space: nowrap;
}

.spec-table td {
  color: var(--dark-color);
  width: 30%;
}

.spec-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--secondary-color);
}

/* ---------- 客户案例 ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.client-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.client-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.client-card h3 {
  font-size: 1.1rem;
  color: var(--dark-color);
  padding: 18px 20px 8px;
  font-weight: 600;
}

.client-card p {
  color: var(--secondary-color);
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0 20px 20px;
  flex-grow: 1;
}

/* ---------- 首页新增板块响应式 ---------- */
@media (max-width: 992px) {
  .hero-v2-inner {
    flex-direction: column;
    gap: 34px;
    text-align: center;
  }

  .hero-v2-text {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .hero-v2-scene {
    width: 100%;
    max-width: 640px;
    margin-left: 0;
  }

  .scene-product {
    height: 90%;
  }

  .hero-v2-text h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .model-compare {
    grid-template-columns: 1fr;
  }

  .adv-row,
  .adv-row.is-reverse {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 45px;
  }

  .spec-table th {
    width: 30%;
  }
}

@media (max-width: 576px) {
  .hero-v2 {
    padding: 100px 0 45px;
  }

  .hero-v2-text h1 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .stat-item strong {
    font-size: 2rem;
  }

  .solution-grid,
  .value-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .section-solution,
  .section-models,
  .section-values,
  .section-advantages,
  .section-specs,
  .section-clients {
    padding: 50px 0;
  }

  .spec-table {
    font-size: 0.85rem;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 8px;
  }

  .spec-table th {
    width: 32%;
    white-space: normal;
  }

  .adv-text h3 {
    font-size: 1.3rem;
  }
}

.cta-social {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

.cta-social i {
  margin-right: 6px;
}

/* ---------- 资质证书（软著 + 外观专利） ---------- */
.adv-media-certs {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}

.adv-media-certs img {
  width: 47%;
  max-height: none;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: var(--transition);
}

.adv-media-certs img:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

@media (max-width: 576px) {
  .adv-media-certs {
    gap: 12px;
  }

  .adv-media-certs img {
    width: 48%;
  }
}
