@charset "utf-8";

/* ================= 基础重置 ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "微软雅黑", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: #333;
  text-decoration: none;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}

/* ================= 工具类 ================= */
.text-center { text-align: center !important; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ================= 布局系统 ================= */
.main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 10px;
}

/* 头部LOGO */
.titles {
  padding: 15px 50px 15px 0;
  text-align: center;
}

.titles img {
  width: 540px;
  height: 60px;
  margin: 0 auto;
}

/* 轮播模块 */
.addwrap { position: relative; }
.swipe-wrap {
  position: relative;
  overflow: hidden;
}
.swipe-wrap > div { float: left; width: 100%; }

/* 导航系统 */
.navs {
  width: 620px;
  margin: 15px auto 0;
}

.navs ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 -5px;
  padding: 0;
  list-style: none;
}

.navs li {
  background: #116cbf;
  border-radius: 4px;
  text-align: center;
}

.navs a {
  display: block;
  height: 45px;
  line-height: 45px;
  color: #fff;
  font-size: 22px;
}

/* ================= 通用组件 ================= */
/* 标题组件 */
.title {
  margin: 30px 0;
  padding: 10px 0;
  text-align: center;
  position: relative;
}

.title p {
  display: inline-block;
  padding: 0 20px;
  margin: 0 auto;
  font-size: 22px;
  position: relative;
}

.title p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #116cbf;
}

/* 表格组件 */
.gridtable {
  width: 100%;
  max-width: 610px;
  margin: 10px auto;
  border-collapse: collapse;
  background: #f3f3f3;
}

.gridtable td {
  padding: 12px;
  border: 1px solid #e4e4e4;
  text-align: center;
  font-size: 22px;
}

/* 内容模块 */
.mianzi,
.mianzis {
  width: 100%;
  max-width: 620px;
  margin: 20px auto;
}

.mianzis {
  background: #dedede;
  border-radius: 10px;
  padding: 15px 20px;
}

.mianzis span {
  display: block;
  line-height: 40px;
  color: #555;
  font-size: 20px;
}

/* 文章系统 */
.article {
  width: 100%;
  max-width: 615px;
  margin: 0 auto;
}

.v-title {
  font-size: 25px;
  font-weight: normal;
  text-align: center;
  margin: 30px 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #116cbf;
}

.info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 15px 0;
}

.wz img {
  max-width: 100%;
  height: auto;
  margin: 20px auto;
}

/* 产品列表 */
.products ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0 -5px;
  padding: 0;
}

.products li {
  list-style: none;
  border: 1px solid #ececec;
  border-radius: 4px;
  overflow: hidden;
}

.products img {
  height: 200px;
  object-fit: cover;
}

.products span {
  display: block;
  height: 51px;
  line-height: 51px;
  background: #ececec;
  text-align: center;
  font-size: 16px;
}

/* 面包屑导航 */
.titlexian {
  width: 100%;
  max-width: 620px;
  height: 40px;
  line-height: 40px;
  margin: 15px auto;
  padding: 0 15px;
  background: #ececec;
  font-size: 16px;
}

/* 版权信息 */
.copyrs {
  width: 100%;
  max-width: 620px;
  margin: 40px auto 0;
  padding: 20px 10px;
  color: #999;
  font-size: 16px;
  text-align: center;
  border-top: 1px solid #eee;
}

.link-style {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.copyrs a {
  color: #999;
  margin: 0 10px;
}

/* 关联导航 */
.view-assoc { margin: 2rem 0; }
.prev,
.next {
  width: 100%;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 6px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.main-answer {
  text-align: center;
  margin: 1em auto;
  max-width: 800px;
  padding: 0 20px;
}

/* 栏目页标题 */
.titled {
  width: 100%;
  max-width: 620px;
  height: 50px;
  margin: 30px auto;
  line-height: 50px;
  font-size: 20px;
  background: #f3f3f3;
  border-radius: 8px;
  text-align: center;
}

/* 联系方式样式 */
.contact-info {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.contact-item {
  display: block;
  margin: 0.8rem 0;
  font-size: 1.1em;
  color: #2c3e50;
}

.contact-item b {
  font-weight: 500;
}

/* 版权信息美化 */
.copyrs {
  margin: 3rem auto 1rem;
  padding: 1.5rem;
  max-width: 800px;
  border-top: 1px solid #e0e0e0;
}

.copyright-content {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  line-height: 1.8;
}

.beian-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0.8rem 0;
}

.beian-info img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.site-links {
  justify-content: center;
}

.site-links a {
  color: #116cbf;
  transition: opacity 0.3s;
  padding: 0.3rem 0;
}

.site-links a:hover {
  opacity: 0.8;
}

/* 响应式适配 */
@media (max-width: 640px) {
  .contact-item {
    font-size: 1em;
  }
  
  .site-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .copyrs {
    padding: 1rem;
    margin-top: 2rem;
  }
}

.lead strong {
  display: block;
  text-indent: 2em;
  line-height: 1.8;
  text-align: justify;
}

/* 联系方式居中 */
.mianzis {
  text-align: center; /* 水平居中 */
}

/* ================= 响应式设计 ================= */
@media (max-width: 640px) {
  .titles { padding: 15px 20px; }
  .titles img { width: 100%; }
  
  .navs { width: 100%; }
  .navs ul { grid-template-columns: repeat(4, 1fr); }
  
  .products ul { grid-template-columns: repeat(3, 1fr); }
  
  .copyrs {
    font-size: 14px;
    padding: 15px;
  }
  
  .gridtable td { padding: 8px; }
}

@media (max-width: 480px) {
  .title p { font-size: 20px; }
  .v-title { font-size: 24px; }
  .products ul { grid-template-columns: 1fr; }
  
  .prev,
  .next {
    margin: 1rem 0;
    padding: 0.8rem;
  }
}