/* =========================================================
   MINPOS 企业官网样式
   ========================================================= */
:root {
  --primary: #1a5cff;
  --primary-dark: #0d3fb8;
  --primary-light: #e8efff;
  --dark: #14213d;
  --text: #333;
  --text-light: #777;
  --bg-gray: #f6f8fc;
  --border: #e5e8f0;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(20, 33, 61, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}

a { color: var(--primary); text-decoration: none; transition: all 0.25s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--dark);
  color: #b8c2d8;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.topbar a { color: #b8c2d8; margin-left: 18px; }
.topbar a:hover { color: #fff; }

/* ---------- 导航 ---------- */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 33, 61, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo .en {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}
.logo .cn { font-size: 14px; color: var(--text); font-weight: 600; }
.logo .divider { width: 1px; height: 20px; background: var(--border); }

.nav-menu { display: flex; gap: 6px; flex: 1; }
.nav-menu li a {
  display: block;
  padding: 26px 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.nav-menu li a:hover,
.nav-menu li a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 轮播 ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); }
.hero .slides { display: flex; transition: transform 0.6s ease; }
.hero .slide { min-width: 100%; position: relative; }
.hero .slide img { width: 100%; height: 520px; object-fit: cover; opacity: 0.9; }
.hero .slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 20, 40, 0.72) 0%, rgba(13, 20, 40, 0.25) 60%, transparent 100%);
}
.hero .slide-text {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  color: #fff;
}
.hero .slide-text h2 { font-size: 44px; margin-bottom: 14px; letter-spacing: 2px; }
.hero .slide-text p { font-size: 18px; color: #d6def2; margin-bottom: 28px; }
.hero .btn {
  display: inline-block;
  padding: 12px 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
}
.hero .btn:hover { background: var(--primary-dark); color: #fff; }
.hero .dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero .dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.hero .dots span.active { background: var(--primary); width: 26px; border-radius: 6px; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.gray { background: var(--bg-gray); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h3 { font-size: 30px; color: var(--dark); letter-spacing: 1px; }
.section-head .line {
  width: 46px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto;
  border-radius: 2px;
}
.section-head p { color: var(--text-light); }

/* ---------- 核心优势 ---------- */
.stats {
  background: linear-gradient(120deg, #0d3fb8 0%, #1a5cff 100%);
  color: #fff;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .num { font-size: 46px; font-weight: 800; letter-spacing: 1px; }
.stat-item .num .suffix { font-size: 24px; }
.stat-item .label { margin-top: 6px; color: #d3ddff; font-size: 14px; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.product-card .img { height: 200px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; }
.product-card .img img { max-height: 150px; object-fit: contain; }
.product-card .body { padding: 18px 20px 22px; border-top: 1px solid var(--border); }
.product-card .body h4 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.product-card .body p { font-size: 13px; color: var(--text-light); height: 60px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.product-card .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; }
.product-card .more::after { content: " →"; }

/* ---------- 解决方案 Tab ---------- */
.solution-tabs { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }
.solution-tabs button {
  padding: 10px 34px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s;
}
.solution-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.solution-panel { display: none; }
.solution-panel.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.solution-row {
  display: flex;
  align-items: center;
  gap: 48px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.solution-row .img { flex: 1; min-height: 320px; max-height: 360px; overflow: hidden; }
.solution-row .img img { width: 100%; height: 100%; object-fit: cover; }
.solution-row .info { flex: 1.1; padding: 36px 44px 36px 0; }
.solution-row .info h4 { font-size: 24px; color: var(--dark); margin-bottom: 14px; }
.solution-row .info p { color: var(--text-light); margin-bottom: 16px; }
.solution-row .info li { color: var(--text); font-size: 14px; padding: 4px 0; }
.solution-row .info li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 8px; }
.solution-row .info .btn { margin-top: 18px; }

.btn-outline {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- 新闻 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.news-card .img { height: 170px; overflow: hidden; }
.news-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .img img { transform: scale(1.06); }
.news-card .body { padding: 18px 20px; }
.news-card .date { font-size: 12px; color: var(--primary); background: var(--primary-light); display: inline-block; padding: 2px 10px; border-radius: 4px; }
.news-card h4 { font-size: 16px; color: var(--dark); margin: 10px 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-card p { font-size: 13px; color: var(--text-light); height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- 页脚 ---------- */
.footer { background: #0f1830; color: #9aa8c6; font-size: 13px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 20px 40px; }
.footer h5 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #9aa8c6; }
.footer ul a:hover { color: #fff; }
.footer .brand p { margin-top: 14px; line-height: 1.9; }
.footer .contact li { margin-bottom: 10px; }
.footer .contact .phone { font-size: 22px; color: #fff; font-weight: 700; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  text-align: center;
  color: #6d7a99;
  font-size: 12px;
}

/* ---------- 页面标题 ---------- */
.page-banner {
  background: linear-gradient(120deg, #0d3fb8, #1a5cff);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-banner h2 { font-size: 32px; letter-spacing: 2px; }
.page-banner .crumb { margin-top: 10px; color: #c6d3ff; font-size: 13px; }

/* ---------- 产品列表页 ---------- */
.filter-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-bar a {
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  font-size: 14px;
}
.filter-bar a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 详情页 ---------- */
.detail-hero { background: var(--bg-gray); padding: 56px 0; }
.detail-flex { display: flex; gap: 56px; align-items: flex-start; }
.detail-flex .gallery { flex: 1; background: #fff; border-radius: 12px; padding: 40px; box-shadow: var(--shadow); }
.detail-flex .gallery img { max-height: 380px; margin: 0 auto; object-fit: contain; }
.detail-flex .info { flex: 1; }
.detail-flex .info h1 { font-size: 30px; color: var(--dark); margin-bottom: 6px; }
.detail-flex .info .model { color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.detail-flex .info .summary { color: var(--text-light); margin-bottom: 20px; }
.detail-flex .info .features li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.detail-flex .info .features li::before { content: "• "; color: var(--primary); font-weight: 700; }
.detail-flex .info .features { margin-bottom: 24px; }

.detail-body { padding: 56px 0; }
.detail-body .content { max-width: 860px; margin: 0 auto; }
.detail-body .content h3 { color: var(--dark); margin: 28px 0 14px; font-size: 22px; }
.detail-body .content h3:first-child { margin-top: 0; }
.detail-body .content p { margin-bottom: 12px; color: #444; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.spec-table td { border: 1px solid var(--border); padding: 12px 18px; font-size: 14px; }
.spec-table td:first-child { background: var(--bg-gray); color: var(--dark); font-weight: 600; width: 160px; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-row {
  display: flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.news-row:hover { box-shadow: var(--shadow); }
.news-row .img { width: 260px; min-height: 150px; overflow: hidden; flex-shrink: 0; }
.news-row .img img { width: 100%; height: 100%; object-fit: cover; }
.news-row .body { padding: 22px 26px; }
.news-row .date { font-size: 13px; color: var(--text-light); }
.news-row h4 { font-size: 19px; color: var(--dark); margin: 8px 0; }
.news-row h4 a { color: var(--dark); }
.news-row h4 a:hover { color: var(--primary); }
.news-row p { font-size: 14px; color: var(--text-light); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-grid .img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.about-grid .img img { width: 100%; height: 380px; object-fit: cover; }
.timeline { margin-top: 12px; }
.timeline li { position: relative; padding: 0 0 26px 30px; border-left: 2px solid var(--border); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline .year { font-weight: 800; color: var(--primary); font-size: 18px; margin-right: 12px; }
.timeline .text { color: #555; }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info .label { color: var(--primary); font-weight: 700; margin-right: 14px; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; color: var(--dark); margin-bottom: 6px; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form .btn { border: none; cursor: pointer; }
.form-ok { background: #e8f7ee; color: #1a7f45; padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 20px; }
.error-page h1 { font-size: 90px; color: var(--primary); }
.error-page p { color: var(--text-light); margin: 10px 0 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .detail-flex, .about-grid, .contact-grid { flex-direction: column; grid-template-columns: 1fr; }
  .solution-row { flex-direction: column; }
  .solution-row .info { padding: 0 30px 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .hero .slide img { height: 340px; }
  .hero .slide-text h2 { font-size: 28px; }
}
