/* ===== ESSZ 风格 - 企业官网 ===== */
/* 主色: #D94A3E  深蓝灰: #2C3E50  页脚深色: #1A1A2E */

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #D94A3E; }

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

/* ===== 导航栏（粘性，滚动变色） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: all .3s ease;
  height: 65px;
}
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; }
.logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 1px;
}
.logo .logo-text span { color: #D94A3E; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav ul li a {
  display: block;
  padding: 10px 16px;
  font-size: 14.5px;
  color: #2C3E50;
  border-radius: 4px;
  transition: all .2s;
  position: relative;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: #D94A3E;
  border-radius: 2px;
  transition: transform .2s;
}
.main-nav ul li a:hover { color: #D94A3E; }
.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { transform: translateX(-50%) scaleX(1); }
.main-nav ul li a.active { color: #D94A3E; font-weight: 600; }

.nav-right { display: flex; align-items: center; gap: 15px; }
.nav-search {
  width: 36px; height: 36px;
  border: none; background: none;
  font-size: 18px; cursor: pointer;
  color: #2C3E50; border-radius: 50%;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.nav-search:hover { background: #f5f5f5; color: #D94A3E; }

/* 移动端菜单按钮 */
.menu-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 5px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: #2C3E50; border-radius: 2px;
  transition: all .3s;
}

/* ===== Banner 首屏 ===== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 65px;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.8);
}
.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.hero-content .hero-sub {
  font-size: 20px;
  opacity: .9;
  margin-bottom: 8px;
}
.hero-content .hero-desc {
  font-size: 15px;
  opacity: .7;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.btn-hero {
  display: inline-block;
  padding: 14px 40px;
  background: #D94A3E;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
  letter-spacing: 1px;
}
.btn-hero:hover { background: #c13d32; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,74,62,.3); }

/* ===== 成就数据栏 ===== */
.stats-bar {
  background: #2C3E50;
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-item { color: #fff; }
.stat-item .num {
  font-size: 38px;
  font-weight: 700;
  color: #D94A3E;
}
.stat-item .label {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-top: 5px;
}

/* ===== 通用模块标题 ===== */
.section { padding: 70px 0; }
.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 8px;
  position: relative;
}
.section-title-bar {
  width: 50px;
  height: 3px;
  background: #D94A3E;
  margin: 12px auto 0;
}
.section-subtitle {
  text-align: center;
  color: #999;
  font-size: 15px;
  margin-top: 12px;
  margin-bottom: 40px;
}

/* ===== 产品网格（6列，类似essz） ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all .3s ease;
  display: block;
}
.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transform: translateY(-4px);
  border-color: #D94A3E;
}
.product-card .img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f8f8f8;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .info { padding: 18px 20px 20px; }
.product-card .info .name {
  font-size: 17px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 6px;
}
.product-card .info .brief {
  font-size: 13.5px;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .info .price {
  font-size: 18px;
  color: #D94A3E;
  font-weight: 700;
  margin-top: 10px;
}
.product-card .info .price .original {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}

/* ===== 新闻列表 ===== */
.news-list { max-width: 900px; margin: 0 auto; }
.news-item {
  display: flex;
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all .2s;
  align-items: flex-start;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { padding-left: 10px; }
.news-item .img-wrap {
  width: 260px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
}
.news-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.news-item:hover .img-wrap img { transform: scale(1.05); }
.news-item .info { flex: 1; }
.news-item .info .date {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 6px;
}
.news-item .info .title {
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item .info .title:hover { color: #D94A3E; }
.news-item .info .summary {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 联系区域 ===== */
.contact-section {
  background: #f9f9f9;
  padding: 60px 0;
}
.contact-wrap {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.contact-left { flex: 1; }
.contact-left h3 {
  font-size: 22px;
  color: #2C3E50;
  margin-bottom: 10px;
}
.contact-left .contact-slogan {
  font-size: 15px;
  color: #888;
  margin-bottom: 25px;
  line-height: 1.7;
}
.contact-left .contact-row {
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-left .contact-row .icon { width: 20px; text-align: center; color: #D94A3E; }
.contact-left .contact-row a { color: #D94A3E; }
.contact-right { flex-shrink: 0; text-align: center; }
.contact-right .qr-placeholder {
  width: 140px; height: 140px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #bbb;
  margin-bottom: 8px;
}
.contact-right .qr-label { font-size: 13px; color: #999; }

/* ===== 页脚（深色） ===== */
.site-footer {
  background: #1A1A2E;
  color: rgba(255,255,255,.7);
  padding: 50px 0 0;
  font-size: 13.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #D94A3E;
}
.footer-col p { line-height: 1.8; margin-bottom: 4px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); }
.footer-col ul li a:hover { color: #D94A3E; }
.footer-col .qr-wrap { text-align: center; }
.footer-col .qr-placeholder {
  width: 110px; height: 110px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  display: flex; align-items: center;
  justify-content: center;
  font-size: 11px; color: rgba(255,255,255,.3);
  margin: 0 auto 6px;
}
.footer-col .qr-label { font-size: 12px; color: rgba(255,255,255,.4); }

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #D94A3E; }

/* ===== 内页通用 ===== */
.page-hero {
  background: linear-gradient(135deg, #2C3E50, #1A1A2E);
  color: #fff;
  text-align: center;
  padding: 100px 0 60px;
  margin-top: 65px;
}
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero p { font-size: 16px; opacity: .8; margin-top: 8px; }

.page-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-content-box {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,.04);
}
.content-body { line-height: 1.9; color: #555; }
.content-body h2 { color: #2C3E50; margin: 25px 0 10px; font-size: 22px; }
.content-body h3 { color: #2C3E50; margin: 20px 0 8px; font-size: 18px; }
.content-body p { margin-bottom: 12px; }
.content-body img { max-width: 100%; border-radius: 6px; }

/* 产品详情页 */
.prod-detail-wrap {
  display: flex; gap: 50px;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,.04);
  margin-top: 30px;
}
.prod-detail-wrap .gallery { flex: 1; }
.prod-detail-wrap .gallery img { width: 100%; border-radius: 8px; }
.prod-detail-wrap .detail-info { flex: 1; }
.prod-detail-wrap .detail-info h1 { font-size: 22px; color: #2C3E50; }
.prod-detail-wrap .detail-info .price-box {
  background: #fef5f4;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 15px 0;
}
.prod-detail-wrap .detail-info .price-box .price {
  font-size: 28px;
  color: #D94A3E;
  font-weight: 700;
}
.prod-detail-wrap .detail-info .price-box .original {
  font-size: 15px;
  color: #bbb;
  text-decoration: line-through;
  margin-left: 12px;
}
.prod-detail-wrap .detail-info .desc {
  line-height: 1.8;
  color: #666;
  margin-top: 15px;
}

/* ===== 联系我们表单 ===== */
.contact-form-wrap { display: flex; gap: 40px; }
.contact-form-wrap .info-col { flex: 1; }
.contact-form-wrap .form-col { flex: 1; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #333; font-weight: 500; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #D94A3E;
  box-shadow: 0 0 0 2px rgba(217,74,62,.08);
}
.form-group textarea { height: 120px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 11px 32px;
  background: #D94A3E;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .5px;
}
.btn:hover { background: #c13d32; color: #fff; }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-danger { background: #ff4d4f; }
.btn-danger:hover { background: #d9363e; }

.alert {
  padding: 12px 16px;
  border-radius: 5px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 44px; height: 44px;
  background: #D94A3E;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(217,74,62,.3);
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: #c13d32; transform: translateY(-3px); }

/* ===== 标签 ===== */
.tag { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.tag-hot { background: #D94A3E; color: #fff; }
.tag-new { background: #FF6B35; color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-wrap { flex-direction: column; }
  .hero-content h1 { font-size: 36px; }
  .stats-grid { gap: 15px; }
  .stat-item .num { font-size: 30px; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    transform: translateY(-100%);
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; padding: 10px 0; }
  .main-nav ul li a { padding: 12px 20px; }
  .main-nav ul li a::after { display: none; }
  .nav-right { gap: 8px; }

  .hero { height: 60vh; min-height: 400px; }
  .hero-content h1 { font-size: 28px; }
  .hero-content .hero-sub { font-size: 16px; }
  .hero-content .hero-desc { font-size: 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .img-wrap { height: 180px; }

  .news-item { flex-direction: column; }
  .news-item .img-wrap { width: 100%; height: 200px; }

  .contact-form-wrap { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 80px 0 40px; }
  .page-hero h1 { font-size: 24px; }
  .prod-detail-wrap { flex-direction: column; padding: 20px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card .img-wrap { height: 220px; }
  .hero-content h1 { font-size: 24px; }
  .stat-item .num { font-size: 26px; }
}
