/* ============================================
   赣州市豪鹏科技有限公司 - 纯静态站点样式
   ============================================ */

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  min-height: 100%;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}

/* ===== Layout Container ===== */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrap {
  width: 85%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0 60px;
  min-height: 500px;
}

.content-wrap.with-sidebar {
  display: flex;
  gap: 30px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* ===== Header ===== */
.header-wrapper {
  background: url("../images/公共/Line.png") no-repeat center bottom;
  width: 100%;
}

.header-box {
  height: 70px;
  margin: 0 auto;
  width: 80%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-box .logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.header-box .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weixin-label {
  font-size: 12px;
  color: #666;
}

.weixin-icon {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.weixin-icon a {
  display: block;
  width: 30px;
  height: 30px;
  background: url("../images/公共/weixin.png") no-repeat center top;
}

.weixin-icon:hover a {
  background: url("../images/公共/weixin.png") no-repeat left bottom;
}

.weixin-popup {
  position: absolute;
  z-index: 99;
  top: 45px;
  left: -45px;
  display: none;
  padding: 10px;
  width: 100px;
  height: 100px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.weixin-popup img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.weixin-popup .arrow {
  position: absolute;
  top: -10px;
  left: 50px;
  width: 0;
  height: 0;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  border-left: 10px solid transparent;
}

.weixin-icon:hover .weixin-popup {
  display: block;
}

/* ===== Navigation ===== */
.nav {
  width: 80%;
  max-width: 1200px;
  height: 55px;
  margin: 0 auto;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  width: 100%;
}

.nav-item {
  cursor: pointer;
  height: 55px;
  position: relative;
}

.nav-item a {
  display: block;
  padding: 0 18px;
  height: 55px;
  line-height: 55px;
  font-size: 15px;
  color: #595959;
  transition: all 0.2s;
}

.nav-item a:hover,
.nav-item a.active {
  background: #e60012;
  color: #fff;
}

/* ===== Page Banner ===== */
.page-banner {
  width: 100%;
  height: 120px;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.banner-about {
  background-image: url("../images/公共/aboutpic.jpg");
}
.banner-news {
  background-image: url("../images/公共/newsbanner.jpg");
}
.banner-contact {
  background-image: url("../images/公共/contactbanner.jpg");
}

/* ===== Sidebar ===== */
.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-title {
  width: 100%;
  height: 50px;
  background: #e60012;
  color: #fff;
  text-indent: 20px;
  font-size: 20px;
  line-height: 50px;
}

.sidebar-item {
  width: 100%;
  border-bottom: 1px #eceaea solid;
  text-indent: 30px;
  font-size: 15px;
  line-height: 42px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}

.sidebar-item:hover {
  background: #f5f5f5;
  color: #e60012;
}

.sidebar-item.active {
  background: #eceaea;
  color: #e60012;
  font-weight: bold;
}

/* ===== Home Page ===== */
.home-banner {
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1682px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 550px;
}

.carousel-slide img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}
.carousel-btn.prev {
  left: 0;
}
.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #fff;
}

.section-header {
  font-size: 20px;
  font-weight: 700;
  padding: 10px 0;
  width: 100%;
  background: url("../images/公共/Line.png") no-repeat center bottom;
  margin-bottom: 15px;
}

.home-content {
  width: 85%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
}

.home-intro {
  text-indent: 30px;
  line-height: 2;
  font-size: 15px;
  color: #444;
}

.home-row {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.home-col-news {
  flex: 1.8;
}
.home-col-qr {
  flex: 0.6;
}
.home-col-video {
  flex: 0.8;
}

.news-list-home .news-item {
  padding: 8px 5px;
  display: flex;
  cursor: pointer;
  color: #545353;
  border-bottom: 1px dashed #eee;
  transition: all 0.2s;
}

.news-list-home .news-item:hover {
  color: #409eff;
  background: #f9f9f9;
}

.news-list-home .news-item .title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-home .news-item .date {
  text-align: right;
  color: #999;
  font-size: 13px;
  white-space: nowrap;
  margin-left: 10px;
}

.home-qr img {
  width: 80%;
}

.home-video video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== News List Page ===== */
.news-list-page .news-item {
  height: 100px;
  border-bottom: 1px solid #c99c03;
  cursor: pointer;
  margin-top: 5px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.news-list-page .news-item:hover {
  background: #f9f9f9;
}

.news-list-page .news-item .cover {
  width: 170px;
  height: 85px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-list-page .news-item .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-page .news-item .news-body {
  flex: 1;
  padding: 0 15px;
}

.news-list-page .news-item .news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list-page .news-item .news-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.news-list-page .news-item:hover .news-title {
  color: #409eff;
}

.news-list-page .news-item .news-date {
  color: gray;
  font-size: 13px;
}

.news-list-page .news-item .news-summary {
  margin-top: 5px;
  color: #999;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== News Detail Page ===== */
.news-detail {
  text-align: center;
}

.news-detail .detail-title {
  padding: 10px 0;
  font-weight: bold;
  font-size: 20px;
  color: #333;
}

.news-detail .detail-info {
  font-size: 14px;
  color: #999;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.news-detail .detail-content {
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.news-detail .detail-content img {
  max-width: 100%;
  margin: 10px 0;
}

.news-detail .detail-content p {
  margin: 8px 0;
}

.news-back {
  display: inline-block;
  margin-top: 30px;
  padding: 8px 24px;
  background: #e60012;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.news-back:hover {
  background: #c50010;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination button {
  padding: 5px 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}

.pagination button:hover {
  border-color: #e60012;
  color: #e60012;
}
.pagination button.active {
  background: #e60012;
  color: #fff;
  border-color: #e60012;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Product Page ===== */
.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.product-item {
  width: 45%;
  text-align: center;
  border: 1px solid #d7dae2;
  border-radius: 4px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.product-item:hover {
  border-color: #409eff;
  color: #409eff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-item img {
  width: 80%;
  margin: 0 auto 10px;
}

/* ===== Content Display ===== */
.content-display {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}
.content-display img {
  max-width: 100%;
  margin: 10px 0;
}
.content-display p {
  margin: 8px 0;
}
.content-display a {
  color: #409eff;
}
.content-display table {
  border-collapse: collapse;
  width: 100%;
}
.content-display td,
.content-display th {
  border: 1px solid #ddd;
  padding: 6px 10px;
}

.abouttxt {
  text-indent: 30px;
}

/* ===== No Data ===== */
.nodata {
  text-align: center;
  color: gray;
  font-size: 15px;
  padding: 40px 0;
}

/* ===== Footer ===== */
.footer {
  background: #004f88;
  width: 100%;
  padding: 15px 0;
  margin-top: auto;
}

.footer-inner {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.footer-links {
  display: flex;
  gap: 5px;
}

.footer-links a {
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  line-height: 30px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copyright {
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.footer-logo img {
  width: 237px;
  height: 35px;
}

/* ===== Dialog Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  background: #e8e0d8;
  width: 50%;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 0;
}

.modal-title {
  width: 100%;
  height: 40px;
  background: #b08862;
  color: #fff;
  font-size: 20px;
  text-indent: 20px;
  line-height: 40px;
  border-radius: 20px;
}

.modal-body {
  margin-top: 15px;
  padding: 0 20px 20px;
}

.modal-body .label {
  font-size: 14px;
  color: #b08862;
  line-height: 25px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

/* ===== Related Sites (home) ===== */
.related-sites {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.related-site {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.related-site:hover {
  opacity: 0.85;
}

.related-site img {
  width: 45px;
  margin-right: 10px;
}

.related-site-0 {
  background: url("../images/公共/bg_gongyl.jpg") center/cover;
}
.related-site-1 {
  background: #80b9ff;
}
.related-site-2 {
  background: url("../images/公共/bg_xias.jpg") center/cover;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-box,
  .nav,
  .footer-inner {
    width: 95%;
  }
  .content-wrap,
  .home-content {
    width: 92%;
  }
  .content-wrap.with-sidebar {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .home-row {
    flex-direction: column;
  }
  .carousel-slide {
    height: 300px;
  }
  .carousel-slide img {
    height: 300px;
  }
  .nav-menu {
    flex-wrap: wrap;
    height: auto;
  }
  .nav-item a {
    padding: 0 10px;
    font-size: 13px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .product-item {
    width: 100%;
  }
}
