@charset "utf-8";

/* ===== Theme (from express/product) ===== */
:root {
  --color-header: #1fb1a2;
  --color-nav: #1a331a;
  --color-nav-link: #f5e6a8;
  --color-header-text: #ffffff;
  --color-header-text-soft: rgba(255, 255, 255, 0.92);
  --color-text-dark: #1a1a1a;
  --color-white: #ffffff;
  --max-width: 1200px;
  --header-pad-y: 20px;
  --header-pad-x: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(31, 177, 162, 0.18);
  --radius-sm: 4px;
  --radius-md: 6px;
}

/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; word-wrap: break-word; }
ul, li, ol { list-style: none; }
.clear { overflow: hidden; height: 0; width: 0; clear: both; font-size: 0; }
u, i { font-style: normal; text-decoration: none; }
address, caption, cite, code, dfn, em, th, var { font-weight: normal; font-style: normal; }
table { border-collapse: collapse; border-spacing: 0; }
img, a img { border: none; max-width: 100%; }
.fl { float: left; }
.fr { float: right; }

html {
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--color-text-dark);
  background: #f8f9fa;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover { text-decoration: none; }

h1 { font-size: 24px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
h4, h5, h6 { font-size: 12px; }

/* ===== Header (teal) ===== */
.site-header {
  width: 100%;
  flex-shrink: 0;
}

.header {
  background: var(--color-header);
  padding: var(--header-pad-y) var(--header-pad-x);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  width: 100%;
  height: auto;
  margin: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.logo.brand {
  float: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62%;
  margin: 0;
  padding: 2px 0 2px 6px;
  display: block;
}

.logo.brand a {
  display: block;
  width: auto;
  height: auto;
  text-indent: 0;
  font-size: clamp(13px, 1.55vw, 16px);
  font-weight: 700;
  color: var(--color-header-text);
  line-height: 1.3;
  letter-spacing: 0.2px;
  max-width: 100%;
  transition: color 0.2s;
}

.logo.brand a:hover {
  color: var(--color-nav-link);
}

.tagline {
  color: var(--color-header-text-soft);
  font-style: italic;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.headerr.top-nav {
  float: none;
  width: auto;
  margin: 0;
  text-align: right;
  display: flex;
  gap: 8px;
}

.headerr.top-nav a {
  display: inline-block;
  width: auto;
  height: auto;
  line-height: normal;
  font-weight: 700;
  font-size: 13px;
  color: var(--color-header-text);
  letter-spacing: 1.2px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.headerr.top-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-nav-link);
}

/* Search */
.search {
  float: none;
  width: auto;
  margin: 0;
  text-align: left;
  clear: none;
  display: flex;
  align-items: stretch;
}

.search form,
.search > * {
  display: flex;
  align-items: stretch;
}

.stxt, .txt {
  float: none;
  width: 200px;
  padding: 8px 10px;
  text-indent: 0;
  border: none;
  background: var(--color-white);
  line-height: 18px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
}

.sselect {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px;
}

.sbtn, .btn {
  float: none;
  margin: 0;
  width: auto;
  height: auto;
  min-height: 34px;
  padding: 0 16px;
  cursor: pointer;
  background: rgba(26, 51, 26, 0.85);
  border: none;
  text-indent: 0;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 34px;
}

.sbtn:hover, .btn:hover {
  background: var(--color-nav);
}

/* ===== Category nav (dark green bar) ===== */
.category-nav {
  background: var(--color-nav);
  padding: 10px 20px;
  width: 100%;
}

.category-nav .nav {
  max-width: var(--max-width);
  margin: 0 auto;
  width: auto;
  height: auto;
  margin-left: auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.category-nav .nav li {
  display: inline-block;
  padding: 0;
  text-align: center;
}

.category-nav .nav li a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 10px;
  color: var(--color-nav-link);
  letter-spacing: 0.6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.category-nav .nav li a:hover {
  color: #ffffff;
  background: rgba(31, 177, 162, 0.45);
}

/* ===== Main layout (fills viewport between header & footer) ===== */
.main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: #f8f9fa;
  padding: 36px clamp(16px, 4vw, 24px) 56px;
  overflow: hidden;
  min-height: 360px;
}

.main::after {
  content: "";
  display: table;
  clear: both;
}

.mainleft {
  float: left;
  width: 200px;
}

.mainright {
  float: right;
  width: calc(100% - 220px);
  margin-top: 0;
  padding: 0;
}

.leftmiddle {
  padding-bottom: 20px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.aboutnav {
  padding: 12px 0;
}

.aboutnav li {
  height: auto;
  line-height: 1.4;
  text-indent: 0;
  padding: 0;
}

.aboutnav li a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.aboutnav li a:hover,
.aboutnav li.active a {
  color: var(--color-header);
  background: rgba(31, 177, 162, 0.08);
  border-left-color: var(--color-header);
}

.aboutnav li.level1 a { padding-left: 20px; }
.aboutnav li.level2 a { padding-left: 32px; }
.aboutnav li.level3 a { padding-left: 44px; }
.aboutnav li.level4 a { padding-left: 56px; }

.rightmiddle {
  width: 100%;
  background: transparent;
  padding: 0;
  min-height: 200px;
}

/* ===== Product / category grid (equal-height cards) ===== */
.proc {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.proc li {
  float: none;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  text-align: center;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
  height: 100%;
}

.proc li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(31, 177, 162, 0.35);
}

.centerimg {
  margin: 0 auto;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  border: none;
  background: linear-gradient(145deg, #f0f0f0 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.centerimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.35s ease;
}

.proc li:hover .centerimg img {
  transform: scale(1.04);
}

.centercontent {
  text-align: center;
  flex: 1 1 auto;
  min-height: 48px;
  line-height: 1.4;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centercontent a {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-nav);
  text-decoration: none;
}

/* ===== Product detail ===== */
.detailtitle {
  width: 100%;
  text-align: left;
  font-size: 26px;
  font-weight: 700;
  padding: 0 0 16px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--color-header);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--color-text-dark);
}

.detailimg {
  float: left;
  width: 48%;
  text-align: center;
}

.detailimg img {
  width: 100%;
  max-width: 400px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
}

.detailcon {
  float: right;
  width: 48%;
  padding: 0;
  line-height: 1.85;
  font-size: 15px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
}

.detailcon * {
  line-height: 1.85;
  font-family: inherit;
  font-size: inherit;
}

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

/* ===== About / page content ===== */
.aboutcontent {
  width: 100%;
  margin: 0;
  line-height: 1.85;
  background: var(--color-white);
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.aboutcontent h1 {
  width: 100%;
  height: auto;
  background: none;
  position: static;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-header);
}

.aboutcontent h1 span {
  position: static;
  font-size: 26px;
  font-weight: 700;
  left: auto;
  top: auto;
  color: var(--color-text-dark);
}

.aboutcontent_txt {
  font-size: 15px;
  color: #333;
}

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

/* ===== Footer (mirror site-header: nav bar + teal bar) ===== */
.site-footer {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  clear: both;
}

.footer-nav {
  background: var(--color-nav);
  padding: 10px var(--header-pad-x);
  width: 100%;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.footer-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav-inner a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-nav-link);
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: color 0.2s, background 0.2s;
}

.footer-nav-inner a:hover {
  color: #ffffff;
  background: rgba(31, 177, 162, 0.45);
}

.footer-bar {
  background: var(--color-header);
  padding: var(--header-pad-y) var(--header-pad-x);
  width: 100%;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.footer-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.5;
  color: var(--color-header-text-soft);
  letter-spacing: 0.3px;
}

/* legacy footer classes (unused) */
.footer, .footer-line, .footer1, .footer2 {
  display: none;
}

/* ===== Pagination ===== */
.page {
  text-align: center;
  line-height: 24px;
  padding: 24px 0;
  clear: both;
  width: 100%;
}

.page a {
  padding: 6px 12px;
  color: var(--color-text-dark);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  margin: 0 4px;
}

.page a:hover {
  border-color: var(--color-header);
  color: var(--color-header);
}

.page span {
  padding: 6px 12px;
  color: var(--color-header);
  font-weight: 700;
}

/* ===== Lists & misc ===== */
.centerlist {
  width: 100%;
  margin: 10px 0;
  padding: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid #e5e5e5;
  padding: 8px 16px;
}

.centerlist li {
  border-bottom: 1px dashed #e5e5e5;
  height: auto;
  line-height: 36px;
  background: none;
  text-indent: 0;
  padding-left: 12px;
}

.centerlist li a {
  color: var(--color-text-dark);
}

.centerlist li a:hover {
  color: var(--color-header);
}

/* ===== Home page blocks ===== */
.banner,
#KinSlideshow,
#KinSlideshow img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.bslide, .boslide, .slide {
  width: 100%;
  max-width: 100%;
}

.news {
  width: 100%;
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.news .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-header);
}

.news ul li {
  line-height: 1.8;
  padding: 4px 0;
}

.main_left,
.main_right {
  width: 100%;
  margin-bottom: 24px;
}

.ask, .anli {
  background: var(--color-white);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.ask_title, .anli_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-header);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.anli_content ul,
.product_list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.anli_content li,
.product_list > li {
  flex: 1 1 220px;
  max-width: 100%;
}

.anli_content img,
.product_img img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
}

.friendlink {
  text-align: center;
  padding: 16px;
  line-height: 2;
}

.friendlink a {
  margin: 0 8px;
  color: var(--color-header);
}

.lefttop, .leftbottom, .righttop, .rightbottom, .cplist, .cplast, .cpa {
  /* legacy blocks */
}

/* ===== Mobile nav toggle ===== */
.nav-toggle {
  display: none;
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-nav-link);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
}

.nav-toggle::after {
  content: " ▾";
  float: right;
}

.category-nav.is-open .nav-toggle::after {
  content: " ▴";
}

.tag {
  float: left;
  width: 100%;
  background: #fafafa;
  padding: 12px;
  clear: both;
  margin-top: 10px;
  line-height: 24px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-sm);
}

.tag a { padding: 0 5px; color: var(--color-header); }

.txtarea {
  margin-left: 5px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
}

.guestbook {
  line-height: 35px;
  width: 100%;
  border: 1px solid #e5e5e5;
  margin: 15px auto;
  border-radius: var(--radius-md);
  background: #fff;
}

.guestbook tr { border-bottom: 1px solid #eee; }
.guestbook td { padding-left: 20px; }

.message {
  width: 100%;
  max-width: 940px;
  margin: 20px auto;
  border: 1px solid #e5e5e5;
  font-size: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
}

.message .title {
  color: var(--color-header);
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
}

.context li a,
.comment li .user {
  color: var(--color-header);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .main,
  .header-inner,
  .category-nav .nav,
  .footer-nav-inner,
  .footer-bar-inner {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .proc { grid-template-columns: repeat(3, 1fr); }
  .mainright { width: calc(100% - 220px); }
  /* 顶栏已有分类导航，平板起隐藏左侧重复菜单 */
  .mainleft { display: none; }
  .mainright { width: 100%; float: none; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }

  .header { padding: 16px; }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .header-right {
    align-items: stretch;
    width: 100%;
  }
  .headerr.top-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .logo.brand {
    max-width: 100%;
    padding-left: 0;
  }
  .logo.brand a {
    font-size: 14px;
    line-height: 1.35;
  }
  .tagline { font-size: 12px; margin-top: 5px; }

  .footer-nav,
  .footer-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-nav-inner {
    justify-content: flex-start;
    gap: 6px 16px;
  }

  .search form,
  .search > * { width: 100%; }
  .stxt, .txt {
    width: 100%;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  }

  .category-nav { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .category-nav .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding-top: 8px;
  }
  .category-nav.is-open .nav { display: flex; }
  .category-nav .nav li { width: 100%; text-align: left; }
  .category-nav .nav li a {
    display: block;
    padding: 10px 12px;
  }

  .main {
    width: 100%;
    padding: 20px 16px 40px;
  }
  .mainleft {
    display: none;
    float: none;
    width: 100%;
    margin-bottom: 20px;
  }
  .mainright {
    float: none;
    width: 100%;
  }
  .proc {
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
  }

  .detailimg, .detailcon {
    float: none;
    width: 100%;
  }
  .detailimg { margin-bottom: 24px; }

  .aboutcontent { padding: 20px 16px; }
  .detailtitle, .aboutcontent h1 span { font-size: 22px; }


  .anli_content li,
  .product_list > li { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .proc { grid-template-columns: 1fr; }
  .main { min-height: 280px; }
  .headerr.top-nav a { padding: 6px 8px; font-size: 12px; }
  .sbtn, .btn { padding: 0 12px; font-size: 12px; }
}

/* Tables & forms on small screens */
@media (max-width: 768px) {
  .zhaopin,
  .guestbook table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .guestbook td { display: block; width: 100% !important; }
  .guestbook input[type="text"],
  .guestbook textarea { width: 100% !important; max-width: 100%; box-sizing: border-box; }
}

/* ===== kefu (keep functional) ===== */
.kefu {
  display: block;
  top: 150px;
  overflow: hidden;
  right: 3px;
  position: fixed;
}
.keful { float: left; width: 29px; margin-top: 20px; height: 180px; cursor: pointer; }
.kefur { width: 110px; float: right; position: relative; display: none; }

/* ===== formvalid (keep) ===== */
.formError { z-index: 990; }
.formError .formErrorContent {
  width: 150px;
  background: #ee0101;
  color: #fff;
  font-size: 11px;
  border: 2px solid #ddd;
  padding: 4px 10px;
  border-radius: 6px;
}
.inputContainer { position: relative; float: left; }
.formError { position: absolute; display: block; cursor: pointer; opacity: 0.87; }
