/* =========================================================
   ny-export.com responsive theme
   PC 版式完整复刻原站，移动端改编为 H5
   ========================================================= */

:root {
  --green: #349835;
  --green-dark: #2b7d2c;
  --green-soft: #f2f8f1;
  --link: #116ec3;
  --text: #333333;
  --muted: #666666;
  --light: #999999;
  --line: #cccccc;
  --line-soft: #e8e8e8;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

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

a:hover {
  color: var(--link);
  text-decoration: underline;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.m-only {
  display: none !important;
}

/* ---------------- 头部（PC 完整复刻） ---------------- */

.site-header {
  position: relative;
  width: 1000px;
  height: 340px;
  margin: 0 auto;
  background: url(../images/top.jpg) no-repeat center top;
}

.main-nav {
  position: absolute;
  top: 145px;
  left: 415px;
  width: 520px;
  height: 40px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  width: 130px;
}

.main-nav a {
  display: block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  color: var(--green);
}

.main-nav a:hover {
  color: #fe0000;
  text-decoration: none;
}

.main-nav li.active > a {
  color: var(--green);
}

.main-nav li.active > a:hover {
  color: #fe0000;
}

.search-box {
  position: absolute;
  top: 285px;
  left: 700px;
  width: 269px;
  height: 31px;
  background: url(../images/searchbg.png) no-repeat left top;
}

.search-box form {
  margin: 0;
  height: 31px;
}

.search-input {
  float: left;
  width: 180px;
  height: 29px;
  margin: 1px 0 0;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--light);
  font-size: 14px;
  line-height: 29px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-btn {
  float: right;
  width: 72px;
  height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0;
  color: transparent;
}

/* ---------------- 移动端头部 ---------------- */

.m-header {
  display: none;
}

.m-drawer,
.m-mask {
  display: none;
}

/* ---------------- 主体布局 ---------------- */

.body-wrap {
  width: 1000px;
  margin: 0 auto;
}

.layout {
  display: flex;
  align-items: flex-start;
}

.side {
  flex: 0 0 250px;
  width: 250px;
  padding-bottom: 20px;
  font-size: 14px;
}

.side-title {
  display: block;
  width: 250px;
  height: 30px;
  padding: 0;
  border: 0;
  background: url(../images/navtitle.png) no-repeat left top;
  font-family: inherit;
  font-size: 14px;
  line-height: 30px;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
}

.side-title-text {
  display: none;
}

.side-nav {
  padding-top: 35px;
}

.side-nav a {
  display: block;
  height: 30px;
  padding-left: 20px;
  background: url(../images/navbg.png) no-repeat center top;
  line-height: 30px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav a:hover {
  color: var(--green);
  text-decoration: none;
}

.main-col {
  flex: 0 0 730px;
  width: 730px;
  margin-left: 20px;
  padding-bottom: 30px;
  min-width: 0;
}

.page-title {
  font-size: 20px;
  font-weight: bold;
  line-height: 35px;
  color: var(--green);
  border-bottom: 2px solid var(--line);
}

.page-title a {
  color: var(--green);
}

.main-body {
  padding: 5px 10px;
  font-size: 14px;
  line-height: 200%;
  min-width: 0;
}

/* ---------------- 富文本内容 ---------------- */

.rich-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rich-content p {
  padding: 5px 0;
  line-height: 200%;
}

.rich-content img {
  max-width: 100%;
  height: auto;
}

.rich-content table {
  border-collapse: collapse;
  margin: 10px 0;
  max-width: 100%;
}

.rich-content td,
.rich-content th {
  padding: 6px 8px;
  vertical-align: middle;
}

.rich-content strong {
  font-weight: bold;
}

/* ---------------- 产品列表 ---------------- */

.pro-list {
  padding-top: 5px;
}

.pro-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.pro-thumb {
  flex: 0 0 138px;
  width: 138px;
  margin-right: 20px;
}

.pro-thumb img {
  display: block;
  width: 130px;
  height: 130px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.pro-info {
  flex: 1 1 auto;
  min-width: 0;
}

.pro-name {
  font-size: 15px;
  font-weight: bold;
  line-height: 30px;
}

.pro-name a {
  color: var(--green);
}

.pro-name a:hover {
  color: #fe0000;
  text-decoration: none;
}

.pro-intro {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  color: var(--light);
  font-size: 13px;
  line-height: 20px;
}

.pro-empty {
  padding: 30px 0;
  color: var(--light);
  text-align: center;
}

/* ---------------- 分页 ---------------- */

.pager {
  padding: 18px 0 6px;
  text-align: center;
  font-size: 12px;
  line-height: 26px;
  color: var(--muted);
}

.pager ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.pager li {
  display: inline-block;
  margin: 3px;
}

.pager a,
.pager span {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #dededc;
  color: var(--link);
}

.pager a:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

.pager li.active a,
.pager .current,
.pager .on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* ---------------- 产品详情 ---------------- */

.pro-detail-title {
  padding: 10px 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: normal;
  line-height: 1.5;
  text-align: center;
}

.pro-detail .rich-content img {
  display: block;
  margin: 0 auto;
}

/* ---------------- 单页 ---------------- */

.page-content {
  padding-top: 5px;
}

/* ---------------- 搜索页 ---------------- */

.search-summary {
  padding: 8px 0 2px;
  color: var(--muted);
}

.search-summary strong {
  color: var(--green);
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  width: 100%;
  padding: 20px 0 30px;
  border-top: 2px solid var(--green);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer p {
  line-height: 25px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--green);
}

/* ---------------- 返回顶部（H5） ---------------- */

.back-top {
  display: none;
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid #d7e6d6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  font-size: 18px;
  line-height: 42px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   平板 / 手机（H5）
   ========================================================= */

@media (max-width: 999px) {
  .m-only {
    display: block !important;
  }

  .site-header,
  .search-box,
  .main-nav {
    display: none;
  }

  .m-header {
    position: sticky;
    top: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .m-brand {
    position: relative;
    display: block;
    min-width: 0;
    max-width: calc(100% - 58px);
    padding-left: 13px;
    color: var(--green-dark);
  }

  .m-brand::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 30px;
    margin: 0;
    border-radius: 2px;
    background: var(--green);
    transform: translateY(-50%);
  }

  .m-brand-text {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-brand-sub {
    display: block;
    overflow: hidden;
    color: #888;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 0.4px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .m-toggle {
    position: relative;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .m-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: var(--green);
    transition: transform 0.25s, opacity 0.2s, top 0.25s;
  }

  .m-toggle span:nth-child(1) {
    top: 15px;
  }

  .m-toggle span:nth-child(2) {
    top: 21px;
  }

  .m-toggle span:nth-child(3) {
    top: 27px;
  }

  body.nav-open .m-toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  body.nav-open .m-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .m-toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  .m-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: min(86vw, 350px);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 34px rgba(0, 0, 0, 0.16);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .m-drawer {
    transform: translateX(0);
  }

  .m-mask {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: rgba(0, 0, 0, 0.46);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }

  body.nav-open .m-mask {
    opacity: 1;
    visibility: visible;
  }

  .m-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
  }

  .m-drawer-close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .m-nav {
    padding: 8px 0;
    border-bottom: 8px solid #f6f7f6;
  }

  .m-nav a {
    display: block;
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    color: var(--text);
    font-size: 15px;
  }

  .m-nav li.active > a,
  .m-nav a:hover {
    background: var(--green-soft);
    color: var(--green-dark);
    text-decoration: none;
  }

  .m-cats {
    padding: 14px 18px 6px;
  }

  .m-cats-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.4px;
    cursor: pointer;
  }

  .m-cats-toggle::after {
    content: "+";
    color: var(--green);
    font-size: 20px;
    font-weight: normal;
  }

  .m-cats.open .m-cats-toggle::after {
    content: "\2212";
  }

  .m-cats ul {
    display: none;
    padding-bottom: 8px;
  }

  .m-cats.open ul {
    display: block;
  }

  .m-cats li a {
    display: block;
    padding: 0 12px;
    height: 42px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 42px;
    color: var(--muted);
    font-size: 13px;
  }

  .m-cats li:first-child a {
    border-top: 1px solid #f0f0f0;
  }

  .m-cats a:hover {
    color: var(--green);
    text-decoration: none;
  }

  .m-search {
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid var(--line-soft);
    background: #fafbfa;
  }

  .m-search form {
    display: flex;
    height: 42px;
    border: 1px solid #d9e4d8;
    border-radius: 3px;
    background: #fff;
    overflow: hidden;
  }

  .m-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .m-search button {
    flex: 0 0 72px;
    border: 0;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
  }

  .body-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }

  .layout {
    display: block;
  }

  .side {
    width: 100%;
    padding: 12px 0 0;
  }

  .side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #dbe6d9;
    border-radius: 3px;
    background: #f5f9f4;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: bold;
    line-height: 46px;
    text-indent: 0;
    cursor: pointer;
  }

  .side-title::after {
    content: "+";
    color: var(--green);
    font-size: 22px;
    font-weight: normal;
  }

  .side.is-open .side-title::after {
    content: "\2212";
  }

  .side-title-text {
    display: block;
    text-indent: 0;
  }

  .side-nav {
    display: none;
    padding-top: 8px;
  }

  .side.is-open .side-nav {
    display: block;
  }

  .side-nav a {
    height: 42px;
    padding-left: 14px;
    border: 1px solid #e9e9e9;
    border-top: 0;
    background: #fafafa;
    line-height: 42px;
    font-size: 13px;
  }

  .side-nav a:first-child {
    border-top: 1px solid #e9e9e9;
  }

  .main-col {
    width: 100%;
    margin: 14px 0 0;
    padding-bottom: 22px;
  }

  .page-title {
    font-size: 19px;
    line-height: 34px;
  }

  .main-body {
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.9;
  }

  .rich-content p {
    padding: 4px 0;
    line-height: 1.9;
  }

  .rich-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  .rich-content td,
  .rich-content th {
    min-width: 100px;
  }

  .pro-item {
    padding: 12px 0;
  }

  .pro-thumb {
    flex: 0 0 104px;
    width: 104px;
    margin-right: 12px;
  }

  .pro-thumb img {
    width: 96px;
    height: 96px;
    padding: 2px;
  }

  .pro-name {
    font-size: 15px;
    line-height: 24px;
  }

  .pro-intro {
    -webkit-line-clamp: 4;
    font-size: 12.5px;
    line-height: 19px;
  }

  .pro-detail-title {
    padding: 12px 0;
    font-size: 19px;
    line-height: 1.45;
  }

  .search-summary {
    padding: 6px 0 0;
  }

  .site-footer {
    padding: 18px 15px 26px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .site-footer p {
    line-height: 22px;
  }

  .back-top {
    display: block;
  }
}

@media (max-width: 380px) {
  .pro-thumb {
    flex-basis: 94px;
    width: 94px;
    margin-right: 10px;
  }

  .pro-thumb img {
    width: 88px;
    height: 88px;
  }

  .pro-intro {
    -webkit-line-clamp: 3;
  }
}
