/* ===== 成都恩思真空设备有限公司 - 官网样式 ===== */

:root {
  --primary: #e87d1e;
  --primary-light: #f5a03c;
  --primary-dark: #b85e0e;
  --accent: #ffb61e;
  --accent-light: #ffd97a;
  --gold: #f5a623;
  --green: #28a745;
  --green-dark: #218838;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg: #fff;
  --bg-gray: #f5f7fa;
  --bg-dark: #241407;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 6px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

/* ===== 顶部信息条 ===== */
.top-bar {
  background: var(--primary-dark);
  color: #f3d9b0;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 24px;
}

.top-bar-left i {
  color: var(--accent);
  margin-right: 6px;
}

.top-bar-right a {
  margin-left: 18px;
}

.top-bar-right a:hover {
  color: var(--accent);
}

/* ===== 头部导航 ===== */
.header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text h1 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-text p {
  font-size: 11px;
  color: var(--text-lighter);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;
  padding: 28px 22px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav > li > a:hover,
.nav > li.active > a {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav .dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}

.nav .dropdown li a:hover {
  background: var(--bg-gray);
  color: var(--primary);
  padding-left: 26px;
}

.mobile-toggle {
  display: none;
  font-size: 26px;
  color: var(--primary);
  cursor: pointer;
}

/* ===== Banner 轮播 ===== */
.banner {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 20, 7, 0.85) 0%, rgba(36, 20, 7, 0.4) 60%, rgba(36, 20, 7, 0.1) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
}

.banner-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.3;
  letter-spacing: 2px;
}

.banner-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 12px 34px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

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

.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.banner-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dots span.active {
  background: var(--accent);
  width: 36px;
  border-radius: 6px;
}

/* ===== 产品分类快捷导航 ===== */
.product-cats {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

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

.cat-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.cat-item:hover {
  background: var(--bg-gray);
  transform: translateY(-4px);
}

.cat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
}

.cat-item:hover .cat-icon {
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.cat-item h4 {
  font-size: 13px;
  white-space: nowrap;
  color: var(--text);
  font-weight: 500;
}

/* ===== 通用区块标题 ===== */
.section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-lighter);
  font-size: 15px;
  margin-top: 18px;
  letter-spacing: 1px;
}

/* ===== 产品展示 ===== */
.products {
  background: var(--bg-gray);
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.product-tab {
  padding: 10px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}

.product-tab.active,
.product-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5efe6;
  flex-shrink: 0;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

.product-info {
  padding: 18px;
  flex: 1;
}

.product-info h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.product-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}

.product-more:hover {
  color: var(--primary);
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* ===== 公司简介 ===== */
.about-section {
  background: #fff;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text .lead {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 500;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--bg-gray);
  border-radius: var(--radius);
}

.stat-item .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.stat-item .num span {
  font-size: 18px;
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-lighter);
  margin-top: 6px;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===== 服务项目 ===== */
.services {
  background: var(--bg-gray);
}

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

.service-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--accent);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 19px;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 行业应用 ===== */
.applications {
  background: var(--primary-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.applications::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.5;
}

.applications .section-title h2 {
  color: #fff;
}

.applications .section-title p {
  color: rgba(255, 255, 255, 0.6);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.app-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
}

.app-item:hover {
  background: rgba(255, 182, 30, 0.14);
  border-color: var(--accent);
  transform: translateY(-6px);
}

.app-item .app-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.app-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.app-item p {
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
}

/* ===== 新闻动态 ===== */
.news-section {
  background: #fff;
}

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

.news-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

.news-img {
  height: 180px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  padding: 20px;
}

.news-date {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 联系CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.cta h2 {
  font-size: 30px;
  margin-bottom: 14px;
}

.cta p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta .btn {
  background: var(--accent);
}

/* ===== 页脚 ===== */
.footer {
  background: #1c0f04;
  color: #cbb69b;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
}

.footer-about p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.footer-about .footer-logo {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}

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

.footer-links li a {
  font-size: 14px;
  color: #cbb69b;
}

.footer-links li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact li {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #cbb69b;
}

/* ===== 悬浮按钮 ===== */
.float-btns {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
  background: var(--green-dark);
}

.float-btn.phone {
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(232, 125, 30, 0.45);
}

.float-btn.phone:hover {
  background: var(--primary-light);
}

.float-btn .tooltip {
  position: absolute;
  right: 70px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.float-btn:hover .tooltip {
  opacity: 1;
  visibility: visible;
  right: 68px;
}

.float-btn.phone .tooltip {
  background: var(--green);
}

.back-top {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(232, 125, 30, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--primary);
}

/* ===== 内页通用 ===== */
.page-banner {
  height: 260px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M0 100 Q50 50 100 100 T200 100" stroke="rgba(255,255,255,0.05)" fill="none" stroke-width="1"/></svg>');
}

.page-banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.page-banner p {
  font-size: 16px;
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  background: var(--bg-gray);
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-light);
}

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-lighter);
}

/* ===== 产品详情页 ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #faf2e6;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 案例画廊 */
.case-gallery {
  margin-top: 40px;
  display: grid;
  gap: 16px;
  align-items: start;
}
.case-gallery.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.case-gallery.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.case-gallery.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.case-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}
.case-gallery img:hover {
  transform: scale(1.03);
}

/* 单张大图展示 */
.case-photo {
  margin-top: 40px;
  text-align: center;
}

.case-photo img {
  display: inline-block;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.case-photo img:hover {
  transform: scale(1.02);
}

/* 竖版照片：等比完整显示，不裁切 */
.case-gallery img.fit-contain {
  object-fit: contain;
  background: #f5efe6;
}

/* 服务案例网格 */
.service-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.service-case-grid > div {
  text-align: center;
}
.service-case-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

/* 服务页内联配图：统一 4:3 */
.svc-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.service-case-grid img:hover {
  transform: scale(1.03);
}
.service-case-grid h4 {
  color: var(--primary);
}

.product-detail-info h1 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 16px;
}

.product-detail-info .desc {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.spec-table th {
  background: var(--bg-gray);
  color: var(--primary);
  width: 40%;
}

/* ===== 联系表单 ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-box {
  background: var(--primary);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
}

.contact-info-box h3 {
  font-size: 24px;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info-item .ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.contact-info-item p {
  font-size: 16px;
  font-weight: 500;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 125, 30, 0.15);
}

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-cats .container {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-wrap,
  .product-detail,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow-y: auto;
  }
  .nav.open {
    left: 0;
  }
  .nav > li > a {
    padding: 16px 24px;
  }
  .mobile-toggle {
    display: block;
  }
  .logo-text h1 {
    font-size: 17px;
    letter-spacing: 0;
  }
  .logo-text p {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .logo img {
    height: 42px;
  }
  .banner {
    height: 380px;
  }
  .banner-content h2 {
    font-size: 26px;
  }
  .banner-content p {
    font-size: 15px;
  }
  .product-cats .container {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid,
  .service-grid,
  .app-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .case-gallery.cols-2,
  .case-gallery.cols-3,
  .case-gallery.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 50px 0;
  }
  .section-title h2 {
    font-size: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .float-btns {
    right: 14px;
    bottom: 60px;
  }
}

@media (max-width: 480px) {
  .product-cats .container,
  .product-grid,
  .service-grid,
  .app-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .case-gallery.cols-2,
  .case-gallery.cols-3,
  .case-gallery.cols-4 {
    grid-template-columns: 1fr;
  }
  .service-case-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .banner-content h2 {
    font-size: 22px;
  }
}
