/* 自写的简化响应式样式，视觉尽量贴近原站（dm 版本） */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

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

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  color: #da1f2e;
}

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

.flex {
  display: flex;
}

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

.section {
  padding: 40px 0;
}

/* 内页通用 */
.page-hero {
  width: 100%;
  height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.breadcrumb {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.breadcrumb-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #363636;
  font-size: 14px;
}

.breadcrumb a {
  color: #363636;
}

.breadcrumb a:hover {
  color: #da1f2e;
}

.page-wrapper {
  padding: 40px 0 56px;
  min-height: 240px;
}

.page-title {
  text-align: center;
  position: relative;
  margin-bottom: 26px;
}

.page-title h2 {
  font-size: 24px;
  line-height: 30px;
  margin: 0;
  font-weight: 600;
}

.page-content {
  font-size: 14px;
  line-height: 30px;
  color: #555;
}

.page-content p {
  margin: 0 0 12px;
}

.page-content img {
  margin: 18px auto;
  max-width: 100%;
  height: auto;
}

.breadcrumb-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.breadcrumb-menu a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: #666;
  background: #f5f5f5;
  white-space: nowrap;
}

.breadcrumb-menu a:hover {
  color: #fff;
  background: #da1f2e;
}

.breadcrumb-menu a.active {
  color: #fff;
  background: #da1f2e;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.catalog-card h3 {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  font-size: 14px;
}

.pager a:hover {
  border-color: #da1f2e;
  color: #da1f2e;
}

.pager .current {
  border-color: #da1f2e;
  background: #da1f2e;
  color: #fff;
}

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 12px;
}

.responsive-iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.recommend {
  padding: 10px 0 30px;
}

@media (max-width: 992px) {
  .page-hero {
    height: 220px;
  }

  .breadcrumb-inner {
    height: 52px;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-hero {
    height: 180px;
  }

  .page-wrapper {
    padding: 28px 0 40px;
  }

  .breadcrumb-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    padding: 12px 0;
  }

  .breadcrumb-menu {
    justify-content: flex-start;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title-left {
  font-size: 18px;
  font-weight: 500;
  padding-left: 14px;
  background: none;
}

.section-title-left span {
  margin-left: 14px;
  font-size: 14px;
}

.section-title-right a {
  font-size: 14px;
  color: #666;
}

.section-title-right a.more {
  margin-left: 24px;
}

/* 顶部欢迎条 */
.topbar {
  background: #fff;
  border-bottom: 1px solid #ccc;
  font-size: 12px;
  color: #b5b5b5;
}

.topbar-inner {
  height: 35px;
}

.topbar-left {
  display: block;
  white-space: nowrap;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right-links a {
  color: #b5b5b5;
  margin-left: 10px;
}

.topbar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-phone-icon {
  width: 13px;
  height: 12px;
  background: none;
}

/* 头部 logo + 电话 */
.header {
  background: #fff;
  padding: 12px 0;
}

.logo img {
  height: 72px;
}

.header-phone-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 38px;
  border-radius: 2px;
  background-color: #da1f2e;
  color: #fff;
  font-size: 16px;
}

/* 导航 */
.nav {
  position: relative;
  z-index: 20;
  background: #f5f5f5;
}

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

.nav-menu {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0 34px;
  font-size: 17px;
  line-height: 52px;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

.nav-item.active .nav-link,
.nav-link:hover {
  background: #da1f2e;
  color: #fff;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #da1f2e;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}

.nav-item:hover .nav-submenu {
  display: block;
}

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.nav-submenu a:hover {
  background: #cf2b38;
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #000;
}

/* banner */
.banner {
  position: relative;
  overflow: hidden;
}

.banner-list {
  display: flex;
  transition: transform 0.6s ease;
}

.banner-item {
  min-width: 100%;
}

.banner-item img {
  width: 100%;
  display: block;
  height: 480px;
  object-fit: cover;
}

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

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.7;
  cursor: pointer;
}

.banner-dot.active {
  background: #da1f2e;
  opacity: 1;
}

/* 产品中心 - 简化为响应式网格 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

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

.product-card-title {
  padding: 8px 10px 10px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* 公司风貌 */
.style-tabs {
  margin-top: 24px;
}

.style-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.style-tab-nav a {
  min-width: 120px;
  padding: 8px 14px;
  text-align: center;
  border-radius: 18px;
  background: #f5f5f5;
  color: #999;
  font-size: 14px;
}

.style-tab-nav a.active {
  background: #da1f2e;
  color: #fff;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.style-card {
  position: relative;
  overflow: hidden;
}

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

.style-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 14px;
}

/* 公司荣誉 - 横向滚动 */
.honor-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 4px;
}

.honor-card {
  flex: 0 0 180px;
}

.honor-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* 合作伙伴 */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.partner-card {
  border: 1px solid #dcdcdc;
  padding: 4px;
}

.partner-card img {
  width: 100%;
  height: 70px;
  object-fit: contain;
}

/* 新闻中心 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.news-card {
  border: 1px solid #eee;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.news-card-title {
  padding: 10px 10px 12px;
  font-size: 15px;
}

.news-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* 新闻中心 - 列表（贴近老站：左图+右侧标题/摘要+日期） */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  border: 1px solid #eee;
  background: #fff;
}

.news-item a {
  display: flex;
  gap: 16px;
  padding: 14px;
}

.news-thumb {
  flex: 0 0 220px;
}

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

.news-body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.news-title {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-time {
  flex: 0 0 auto;
  text-align: right;
  line-height: 1.1;
  color: #888;
}

.news-time .day {
  display: block;
  font-size: 16px;
  color: #da1f2e;
  font-weight: 700;
}

.news-time .year {
  display: block;
  font-size: 12px;
}

.news-excerpt {
  margin-top: 10px;
  font-size: 14px;
  line-height: 24px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.empty-tip {
  text-align: center;
  color: #888;
  padding: 18px 0;
}

/* 新闻详情 */
.article {
  max-width: 920px;
  margin: 0 auto;
}

.article-title {
  margin: 0;
  font-size: 26px;
  line-height: 36px;
  color: #000;
  text-align: center;
  font-weight: 700;
}

.article-meta {
  margin-top: 10px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.article-content {
  margin-top: 18px;
  color: #444;
  font-size: 14px;
  line-height: 30px;
}

.article-content p {
  margin: 0 0 14px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 14px auto;
  display: block;
  border: 1px solid #eee;
}

.article-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #666;
}

.article-links a {
  color: #333;
}

.article-links a:hover {
  color: #da1f2e;
}

/* 底部 */
.footer {
  background: #f9f9f9;
  padding-top: 20px;
}

.footer-links {
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #d2d2d2;
  font-size: 14px;
}

.footer-links span {
  font-weight: 500;
  margin-right: 8px;
}

.footer-links a {
  color: #000;
  margin-right: 8px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  flex: 1 1 260px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 10px;
}

.footer-nav a {
  font-size: 15px;
}

.footer-contact {
  flex: 1 1 260px;
  display: flex;
  gap: 16px;
}

.footer-contact-info {
  font-size: 14px;
  color: #666;
}

.footer-contact-info .phone-main {
  font-size: 18px;
  color: #000;
  margin-bottom: 12px;
}

.footer-qrcode img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #d2d2d2;
}

.footer-qrcode p {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-top: 6px;
}

.copyright {
  background: #000;
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 14px 0;
}

.copyright a {
  color: #999;
}

/* 响应式 */
@media (max-width: 992px) {
  .topbar-left {
    display: none;
  }

  .header-phone-btn {
    display: none;
  }

  .banner-item img {
    height: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    background: #fff;
    flex-direction: column;
    border-top: 1px solid #eee;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    text-align: left;
    padding: 0 16px;
  }

  .nav-item:hover .nav-submenu {
    display: none;
  }

  .nav-submenu {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-thumb {
    flex-basis: 200px;
  }
}

@media (max-width: 640px) {
  .topbar-right {
    font-size: 11px;
  }

  .topbar-left {
    display: none;
  }

  .logo img {
    height: 52px;
  }

  .section {
    padding: 28px 0;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .style-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .news-item a {
    flex-direction: column;
  }

  .news-thumb {
    flex-basis: auto;
  }

  .news-thumb img {
    height: 180px;
  }

  .news-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-nav ul {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

