/* 对齐 xingyuande365.com 浅色专题页：顶栏、卡片、轮播、页脚 */

.ref-body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "WenQuanYi Micro Hei", system-ui, sans-serif;
  background: #f9fafb;
  color: #111827;
  padding-top: 64px;
}

.ref-container {
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .ref-container {
    width: min(1280px, 100% - 48px);
  }
}

/* 顶栏 */
.ref-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ref-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.ref-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.ref-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.ref-brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ref-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.ref-nav a {
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
}

.ref-nav a:hover {
  color: #2563eb;
}

.ref-nav a.is-active {
  color: #2563eb;
}

.ref-btn-contact {
  display: none;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  text-decoration: none;
}

.ref-btn-contact:hover {
  filter: brightness(1.05);
  color: #fff;
}

@media (min-width: 768px) {
  .ref-nav,
  .ref-btn-contact {
    display: flex;
  }

  .ref-nav-toggle {
    display: none !important;
  }
}

.ref-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ref-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 1px;
  margin-inline: auto;
}

.ref-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e5e7eb;
}

.ref-nav-mobile.is-open {
  display: flex;
}

.ref-nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
}

.ref-nav-mobile a:last-of-type {
  border-bottom: none;
}

.ref-nav-mobile .ref-btn-contact {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* 通用区块 */
.ref-section {
  padding: 5rem 0;
}

.ref-section--white {
  background: #fff;
}

.ref-section--muted {
  background: #f9fafb;
}

.ref-section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.ref-section-head h1,
.ref-section-head > h2:not(.ref-seo-subhead) {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
}

.ref-section-head h2.ref-seo-subhead {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: #4b5563;
  line-height: 1.5;
}

a.seo-internal-keyword {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 500;
}

a.seo-internal-keyword:hover {
  color: #1d4ed8;
}

.ref-section-head p {
  margin: 0;
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 48rem;
  margin-inline: auto;
}

/* 解决方案卡片 */
.ref-card-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ref-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ref-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ref-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ref-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2);
}

.ref-feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.ref-feature-icon svg {
  width: 2rem;
  height: 2rem;
  color: #fff;
}

.ref-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.ref-card p {
  margin: 0 0 1.5rem;
  color: #4b5563;
  line-height: 1.6;
}

.ref-card-link {
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.ref-card-link:hover {
  color: #1d4ed8;
}

/* 产品 Splide 卡片 */
.ref-product-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 0 0.5rem;
  height: 100%;
}

.ref-product-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

.ref-product-card .ref-product-body {
  padding: 1.5rem;
}

.ref-product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.ref-product-card p {
  margin: 0;
  color: #4b5563;
}

/* Splide 微调 */
.ref-splide .splide__arrow {
  background: #fff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ref-splide .splide__pagination__page.is-active {
  background: #2563eb;
}

/* 关于我们 */
.ref-about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ref-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ref-about-copy h1,
.ref-about-copy h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #111827;
}

.ref-about-copy p {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  color: #4b5563;
  line-height: 1.75;
}

.ref-about-copy p:last-of-type {
  margin-bottom: 2rem;
}

.ref-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.ref-stat strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.ref-stat span {
  font-size: 0.9375rem;
  color: #4b5563;
}

.ref-about-visual img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: block;
}

/* 页脚 */
.ref-footer {
  background: #111827;
  color: #fff;
  padding: 3rem 0 0;
}

.ref-footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ref-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.ref-footer-brand p {
  color: #9ca3af;
  line-height: 1.7;
  max-width: 28rem;
  margin: 0 0 1.5rem;
}

.ref-footer h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.ref-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ref-footer li {
  margin-bottom: 0.5rem;
}

.ref-footer a {
  color: #9ca3af;
  text-decoration: none;
}

.ref-footer a:hover {
  color: #3b82f6;
}

.ref-footer .ref-footer-contact li {
  color: #9ca3af;
}

.ref-footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 2rem;
  padding: 2rem 0;
  text-align: center;
}

.ref-footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.ref-footer-legal-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.ref-footer-copy-line {
  margin: 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

.ref-footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.6rem;
  line-height: 1.65;
}

.ref-footer-legal-sep {
  opacity: 0.45;
  user-select: none;
}

.ref-footer-bottom a {
  color: #9ca3af;
}

.ref-footer-bottom a:hover {
  color: #3b82f6;
}

.ref-social {
  display: flex;
  gap: 1rem;
}

.ref-social a {
  color: #9ca3af;
}

.ref-social a:hover {
  color: #3b82f6;
}

.ref-social svg {
  width: 1.5rem;
  height: 1.5rem;
}
