/* 机构门户克隆站样式 —— 提取规格见 docs/research/wanwang-homepage/SPEC.md */
:root {
  --green: #2ecc71;
  --blue: #609ee9;
  --ink: #333;
  --body-gray: #444;
  --sub-gray: #666;
  --light-gray: #999;
  --dark-bg: #000;
  --font: system-ui, "Microsoft YaHei", 微软雅黑, arial, tahoma, "MicrosoftJhengHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ 导航 ============ */
.site-header {
  height: 89px;
  background: var(--dark-bg);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: 1432px;
  height: 100%;
  margin: 0 auto;
  padding: 0 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 62px; width: auto; }

.main-nav ul { display: flex; }

.main-nav li {
  padding: 0 15px;
  line-height: 47px;
  font-size: 14px;
  position: relative;
}

.main-nav li.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green);
}

.main-nav li a { color: #fff; transition: color .2s; }
.main-nav li a:hover { color: var(--green); }
.main-nav li.active a { color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ============ Banner 轮播 ============ */
.banner {
  position: relative;
  height: 880px;
  overflow: hidden;
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform .6s ease;
}

.banner-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slide-1 { background-image: url("../img/banner-1.jpg"); }
.slide-2 { background-image: url("../img/banner-2.jpg"); }

.slide-1-content {
  text-align: center;
  padding-top: 254px;
}

.slide-1-content h1 {
  font-size: 48px;
  line-height: 48px;
  font-weight: 700;
  color: #000;
}

.slide-1-content .divider {
  width: 351px;
  height: 32px;
  margin: 32px auto 34px;
}

.slide-1-content p {
  max-width: 736px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 28px;
  color: #000;
}

.banner-btns {
  margin-top: 72px;
  display: flex;
  justify-content: center;
  gap: 59px;
}

.banner-btns a {
  width: 167px;
  height: 47px;
  border: 2px solid #fff;
  line-height: 43px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  transition: background .2s;
}

.banner-btns a:hover { background: rgba(255, 255, 255, .2); }

.about-card {
  position: absolute;
  left: 16.1%;
  top: 328px;
  width: 781px;
  padding: 30px 110px 36px;
  background: rgba(255, 255, 255, .95);
  text-align: center;
}

.about-card .card-sub { font-size: 24px; line-height: 24px; color: #000; }
.about-card h2 {
  margin-top: 38px;
  font-size: 62px;
  line-height: 62px;
  font-weight: 400;
  color: #000;
}
.about-card .card-desc {
  margin-top: 25px;
  font-size: 16px;
  line-height: 28px;
  color: #000;
}

.banner-more {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 646px;
}

.btn-outline-green {
  display: inline-block;
  width: 167px;
  height: 47px;
  border: 2px solid var(--green);
  line-height: 43px;
  text-align: center;
  color: var(--green);
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
}

.btn-outline-green:hover { background: var(--green); color: #fff; }

.banner-arrow {
  position: absolute;
  top: 431px;
  width: 34px;
  height: 58px;
  background: rgba(0, 0, 0, .2);
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
}

.banner-arrow:hover { background: rgba(0, 0, 0, .4); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

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

.banner-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}

.banner-dots span.active { background: #fff; }

.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 17px;
  width: 70px;
  z-index: 4;
}

.scroll-down img { width: 100%; }

/* ============ 解决方案（服务四列） ============ */
.services { background: #fff; padding: 95px 0 75px; }

.services-grid {
  max-width: 1432px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 221px);
  justify-content: center;
  column-gap: 89px;
}

.service-item { text-align: center; }

.service-item img { height: 117px; width: auto; margin: 0 auto; }

.service-item h3 {
  margin-top: 4px;
  font-size: 24px;
  line-height: 27px;
  font-weight: 400;
  color: var(--green);
}

.service-item p {
  margin-top: 30px;
  font-size: 14px;
  line-height: 24.5px;
  color: var(--body-gray);
}

/* ============ 关于我们 ============ */
.about { background: #fff; padding: 15px 0 60px; }

.about-inner {
  max-width: 1432px;
  margin: 0 auto;
  padding: 0 123px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-img { flex: 0 0 526px; }
.about-img img { width: 100%; }

.about-text h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.about-text p {
  margin-top: 22px;
  max-width: 560px;
  font-size: 14px;
  line-height: 28px;
  color: var(--sub-gray);
}

.about-text .btn-outline-green { margin-top: 30px; }

/* ============ 数据统计 ============ */
.stats {
  height: 414px;
  background: url("../img/stats-bg.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 118px;
}

.stat-item { text-align: center; }

.stat-item img { width: 124px; margin: 0 auto; }

.stat-item .num {
  margin-top: 45px;
  font-size: 36px;
  line-height: 54px;
  color: #fff;
}

.stat-item .label {
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

/* ============ 产品中心 ============ */
.products { background: #fff; padding: 55px 0 130px; }

.products > h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
}

.products .section-sub {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--light-gray);
}

.products-carousel {
  margin-top: 120px;
  position: relative;
}

.products-track {
  max-width: 1432px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.products-track::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 236px;
  text-align: center;
}

.product-card img {
  width: 236px;
  height: 285px;
  object-fit: cover;
}

.product-card h5 {
  font-size: 16px;
  line-height: 35px;
  font-weight: 400;
  color: #404040;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-arrow {
  position: absolute;
  top: 113px;
  width: 34px;
  height: 58px;
  background: rgba(0, 0, 0, .2);
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
  transition: background .2s;
}

.carousel-arrow:hover { background: rgba(0, 0, 0, .4); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* ============ 联系我们 ============ */
.contact { background: var(--dark-bg); padding: 55px 0 90px; text-align: center; }

.contact-slogan {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

.contact-title {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
}

.contact-more { margin-top: 25px; }

.contact-body {
  max-width: 1432px;
  margin: 60px auto 0;
  padding: 0 187px;
  display: flex;
  justify-content: space-between;
  text-align: left;
}

.contact-info { flex: 0 0 420px; }

.contact-info li {
  display: flex;
  align-items: center;
  height: 50px;
  font-size: 16px;
  color: #ccc;
}

.contact-info li a { color: #ccc; transition: color .2s; }
.contact-info li a:hover { color: #fff; }

.contact-info svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
  margin-right: 12px;
  flex: none;
}

.contact-info li strong { color: #fff; font-weight: 700; }

.contact-form { flex: 0 0 576px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #333;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  line-height: 22px;
  color: #ccc;
  padding: 7px 0;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #666; }

.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--green); }

.contact-form textarea {
  height: 130px;
  resize: none;
  line-height: 22.4px;
  padding: 7px 12px 0 0;
}

.contact-form .captcha-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.captcha-row input { flex: 1; }

.captcha-box {
  flex: none;
  width: 100px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  background: #3a3a3a;
  user-select: none;
}

.captcha-row button {
  flex: none;
  width: 100px;
  height: 36px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s;
}

.captcha-row button:hover { opacity: .85; }

/* ============ 页脚 ============ */
.site-footer { background: var(--dark-bg); }

.footer-simple { background: #202020; }

.footer-simple .footer-social {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 45px;
}

.footer-simple .footer-social img { height: 32px; width: auto; }

.footer-simple .copyright {
  padding: 10px 0 32px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
}

/* ============ 关于我们页（/gywm） ============ */
.page-banner {
  height: 520px;
  background: var(--dark-bg);
  position: relative;
}

.page-banner .about-card {
  position: absolute;
  top: 204px;
  left: calc(50% - 390px);
}

.page-banner .about-card h2 { font-weight: 700; }

.page-about { background: #fff; }

.page-about-inner {
  max-width: 1432px;
  margin: 0 auto;
  padding: 32px 142px 39px;
}

.page-about-inner h1 {
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  color: #444;
}

.page-about-desc {
  margin-top: 36px;
  font-size: 14px;
  line-height: 26px;
  color: #7f8c8d;
}

.page-about-photos {
  position: relative;
  height: 868px;
  margin-top: 149px;
}

.page-about-photos img {
  position: absolute;
  object-fit: cover;
}

.page-about-photos .photo-left  { left: 0;     top: 14px;  width: 639px; height: 415px; }
.page-about-photos .photo-right { left: 630px; top: 0;     width: 592px; height: 444px; }
.page-about-photos .photo-bottom { left: 9px;  top: 443px; width: 623px; height: 415px; }

.footer-simple { background: #202020; }

.footer-simple .footer-social { margin-top: 24px; }

.footer-simple .copyright { padding-top: 10px; padding-bottom: 32px; }

.footer-mini .copyright { padding-top: 35px; }

/* ============ 方案/文章列表页（/jjfa） ============ */
.page-list { background: #fff; }

.page-list-inner {
  max-width: 1432px;
  margin: 0 auto;
  padding: 55px 121px 60px;
}

.page-list-inner h1 {
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  color: #444;
  margin-left: 27px;
}

.news-list { margin-top: 49px; }

.news-list li {
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 28px;
}

.news-list li:last-child { margin-bottom: 0; }

.news-title {
  display: block;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: #404040;
  transition: color .2s;
}

.news-title:hover { color: var(--green); }

.news-summary {
  margin-top: 5px;
  font-size: 12px;
  line-height: 18px;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 20px;
  color: #bbb;
}

.pager {
  margin-top: 68px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #666;
}

.pager-btn { line-height: 30px; cursor: default; }

.pager-num {
  width: 30px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  background: #eee;
  color: #666;
}

/* ============ 产品中心页（/cpzx） ============ */
.page-banner-high .about-card { top: 132px; }

.page-products { background: #fff; }

.page-products-inner {
  max-width: 1432px;
  margin: 0 auto;
  padding: 55px 121px 60px;
}

.products-bar {
  display: flex;
  align-items: center;
}

.products-bar h1 {
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  color: #444;
  margin-left: 27px;
}

.category-tabs {
  margin-left: auto;
  display: flex;
}

.category-tabs a {
  width: 179px;
  height: 47px;
  line-height: 47px;
  text-align: center;
  font-size: 14px;
  color: #444;
  transition: color .2s;
}

.category-tabs a:hover { color: var(--green); }

.product-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

.product-item h5 {
  padding: 12px 10px 0;
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
  color: #404040;
}

/* ============ 联系我们页（/lxwm） ============ */
.page-contact { background: #fff; }

.page-contact-inner {
  max-width: 1432px;
  margin: 0 auto;
  padding: 55px 121px 60px;
}

.page-contact-inner h1 {
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  color: #444;
  margin-left: 37px;
}

.contact-columns {
  margin-top: 81px;
  display: flex;
  gap: 80px;
}

.lxwm-info { flex: 0 0 493px; }

.info-row {
  display: flex;
  font-size: 16px;
  line-height: 36px;
  font-weight: 700;
  color: #444;
}

.info-row .label {
  flex: 0 0 48px;
  text-align: right;
}

.info-row .value {
  margin-left: 0;
  color: #444;
}

.info-row a.value:hover { color: var(--green); }

.map-placeholder {
  margin-top: 15px;
  width: 493px;
  height: 168px;
  background: #f2f2f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #999;
}

.map-placeholder svg { width: 32px; height: 32px; fill: #2ecc71; }
.map-placeholder p { font-size: 13px; font-weight: 400; }

.lxwm-form { flex: 1; }

.lxwm-form input,
.lxwm-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  line-height: 22px;
  color: #666;
  padding: 7px 0;
  outline: none;
}

.lxwm-form input::placeholder,
.lxwm-form textarea::placeholder { color: #999; }

.lxwm-form input:focus,
.lxwm-form textarea:focus { border-bottom-color: var(--green); }

.lxwm-form textarea {
  margin-top: 22px;
  height: 130px;
  resize: none;
  line-height: 22.4px;
}

.lxwm-form input + input { margin-top: 22px; }

.lxwm-form .captcha-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.captcha-row input { flex: 1; }

.lxwm-form .captcha-box {
  flex: none;
  width: 100px;
  height: 32px;
  line-height: 32px;
}

.submit-btn {
  margin-top: 13px;
  float: right;
  width: 100px;
  height: 38px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  line-height: 36px;
  cursor: pointer;
  transition: opacity .2s;
}

.submit-btn:hover { opacity: .85; }

/* ============ 详情页与富文本 ============ */
.detail-meta {
  margin: 20px 0 10px;
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
}

.detail-meta a { color: var(--green); }

.detail-image { max-width: 620px; margin-top: 24px; }

.detail-summary {
  margin-top: 18px;
  font-size: 14px;
  line-height: 26px;
  color: #666;
}

.rich-content {
  margin-top: 24px;
  font-size: 14px;
  line-height: 26px;
  color: #444;
  word-break: break-word;
}

.rich-content img { max-width: 100%; height: auto; }
.rich-content p { margin: 0 0 14px; }
.rich-content h1, .rich-content h2, .rich-content h3 { margin: 22px 0 12px; color: #333; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin: 0 0 14px; }
.rich-content blockquote {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--green);
  background: #f7f7f7;
  color: #666;
}
.rich-content pre {
  margin: 14px 0;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
}

.map-frame {
  margin-top: 15px;
  width: 493px;
  height: 168px;
  border: 0;
}

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 221px); row-gap: 50px; }
  .stats-grid { gap: 50px; flex-wrap: wrap; padding: 0 30px; }
  .stats { height: auto; padding: 50px 0; }
  .contact-body { padding: 0 40px; flex-direction: column; gap: 50px; }
  .contact-form, .contact-info { flex: none; width: 100%; max-width: 576px; margin: 0 auto; }
  .about-inner { padding: 0 40px; }
  .header-inner { padding: 0 30px; }
}

@media (max-width: 900px) {
  .banner { height: 520px; }
  .slide-1-content { padding-top: 60px; }
  .slide-1-content h1 { font-size: 30px; line-height: 36px; }
  .slide-1-content .divider { width: 220px; height: 20px; margin: 18px auto; }
  .slide-1-content p { font-size: 13px; line-height: 22px; padding: 0 16px; }
  .banner-btns { margin-top: 30px; gap: 20px; }
  .banner-btns a { width: 130px; height: 42px; line-height: 38px; }
  .about-card { position: static; width: auto; margin: 60px 6% 0; padding: 26px 22px 30px; }
  .about-card h2 { font-size: 30px; line-height: 36px; margin-top: 16px; }
  .banner-more { display: none; }
  .banner-arrow { top: 40%; }
  .scroll-down { display: none; }

  .about-inner { flex-direction: column; }
  .about-img { flex: none; width: 100%; max-width: 526px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 89px;
    left: 0;
    right: 0;
    background: #000;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav li { text-align: center; }

  .page-banner { height: 420px; }
  .page-banner .about-card {
    position: static;
    width: auto;
    max-width: 781px;
    margin: 80px 6% 0;
    transform: none;
    padding: 26px 22px 30px;
  }
  .page-banner .about-card h2 { font-size: 30px; line-height: 36px; margin-top: 16px; }

  .page-about-inner { padding: 24px 20px 30px; }
  .page-about-photos {
    height: auto;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-about-photos img { position: static; width: 100% !important; height: auto !important; }

  .page-list-inner { padding: 24px 20px 30px; }
  .page-list-inner h1 { margin-left: 0; }

  .page-products-inner { padding: 24px 20px 30px; }
  .products-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .products-bar h1 { margin-left: 0; }
  .category-tabs { margin-left: 0; flex-wrap: wrap; }
  .category-tabs a { width: auto; padding: 0 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-item img { height: auto; }

  .page-contact-inner { padding: 24px 20px 30px; }
  .page-contact-inner h1 { margin-left: 0; }
  .contact-columns { margin-top: 40px; flex-direction: column; gap: 40px; }
  .lxwm-info { flex: none; }
  .map-placeholder { width: 100%; }
  .map-frame { width: 100%; }
  .detail-image { width: 100%; }
}
