/* ===== 全局重置与基础 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  background: #f8fafc;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1a3c6e, #3b82f6);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #1a3c6e, #2563eb);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(26, 60, 110, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(26, 60, 110, 0.4);
}
.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #2563eb;
  font-weight: 600;
  position: relative;
}
.read-more::after {
  content: ' →';
  transition: margin-left 0.3s;
}
.read-more:hover::after {
  margin-left: 6px;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: #94a3b8;
}
.breadcrumb a:hover {
  color: #1a3c6e;
}

/* ===== 头部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s, box-shadow 0.3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  width: 140px;
  height: auto;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  color: #1e293b;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1a3c6e;
  transition: width 0.3s;
}
.main-nav a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Banner 渐变 ===== */
.banner {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}
.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 1s ease;
  background: linear-gradient(135deg, #0f172a 0%, #1a3c6e 40%, #2563eb 70%, #7c3aed 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}
.banner-slide.active {
  opacity: 1;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.banner-content {
  max-width: 700px;
  text-align: center;
  color: #fff;
  animation: fadeInUp 1s ease;
}
.banner-content h1, .banner-content h2 {
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.banner-content h2::after { display: none; }
.banner-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.banner-controls {
  position: absolute;
  bottom: 2rem;
  display: flex;
  gap: 0.75rem;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.dot.active {
  background: #fff;
  border-color: #1a3c6e;
  transform: scale(1.2);
}

/* ===== 品牌介绍 ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.brand-grid article {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transition: transform 0.4s, box-shadow 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.brand-grid article:nth-child(1) { animation-delay: 0.1s; }
.brand-grid article:nth-child(2) { animation-delay: 0.2s; }
.brand-grid article:nth-child(3) { animation-delay: 0.3s; }
.brand-grid article:nth-child(4) { animation-delay: 0.4s; }
.brand-grid article:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(26, 60, 110, 0.15);
}

/* ===== 主营产品 ===== */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-list article {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.product-list article:nth-child(1) { animation-delay: 0.1s; }
.product-list article:nth-child(2) { animation-delay: 0.2s; }
.product-list article:nth-child(3) { animation-delay: 0.3s; }
.product-list article:nth-child(4) { animation-delay: 0.4s; }
.product-list article:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(26, 60, 110, 0.12);
  border-color: #1a3c6e20;
}

/* ===== 解决方案 ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.solution-grid article {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.solution-grid article:nth-child(1) { animation-delay: 0.1s; }
.solution-grid article:nth-child(2) { animation-delay: 0.2s; }
.solution-grid article:nth-child(3) { animation-delay: 0.3s; }
.solution-grid article:nth-child(4) { animation-delay: 0.4s; }
.solution-grid article:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(26, 60, 110, 0.12);
}

/* ===== 客户案例 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.case-grid blockquote {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 20px;
  padding: 2rem;
  border-left: 5px solid #1a3c6e;
  position: relative;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.case-grid blockquote:nth-child(1) { animation-delay: 0.1s; }
.case-grid blockquote:nth-child(2) { animation-delay: 0.2s; }
.case-grid blockquote:nth-child(3) { animation-delay: 0.3s; }
.case-grid blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #1a3c6e20;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
}
.case-grid blockquote:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* ===== 新闻中心 ===== */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.article-list article {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}
.article-list article:nth-child(1) { animation-delay: 0.05s; }
.article-list article:nth-child(2) { animation-delay: 0.1s; }
.article-list article:nth-child(3) { animation-delay: 0.15s; }
.article-list article:nth-child(4) { animation-delay: 0.2s; }
.article-list article:nth-child(5) { animation-delay: 0.25s; }
.article-list article:nth-child(6) { animation-delay: 0.3s; }
.article-list article:nth-child(7) { animation-delay: 0.35s; }
.article-list article:nth-child(8) { animation-delay: 0.4s; }
.article-list article:nth-child(9) { animation-delay: 0.45s; }
.article-list article:nth-child(10) { animation-delay: 0.5s; }
.article-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 60, 110, 0.08);
  border-color: #1a3c6e20;
}
.article-list p {
  font-size: 0.95rem;
  color: #475569;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-list details {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
  cursor: pointer;
}
.faq-list details[open] {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.faq-list summary {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #1a3c6e;
  transition: transform 0.3s;
}
.faq-list details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-list details p {
  padding: 0.75rem 0 0.25rem;
  color: #475569;
}

/* ===== HowTo ===== */
#howto article {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
#howto h3 {
  margin-top: 1.5rem;
  color: #1a3c6e;
}
#howto ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin: 1rem 0;
}
#howto ol li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* ===== 联系我们 ===== */
.contact-info {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}
.contact-info p {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-info strong {
  min-width: 120px;
  color: #1a3c6e;
}

/* ===== 底部 ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
  text-align: center;
}
.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-links a {
  color: #94a3b8;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}
.copyright p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* ===== 返回顶部 ===== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3c6e, #2563eb);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26, 60, 110, 0.3);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(26, 60, 110, 0.4);
}

/* ===== 动画关键帧 ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  .banner {
    min-height: 60vh;
    margin-top: 65px;
  }
  .banner-content h1, .banner-content h2 {
    font-size: 1.6rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .brand-grid, .product-list, .solution-grid, .case-grid, .article-list {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 1.5rem;
  }
  #howto article {
    padding: 1.5rem;
  }
  #back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }
  .logo img {
    width: 110px;
  }
  .banner-content p {
    font-size: 1rem;
  }
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== 暗色模式 ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #e2e8f0;
  }
  .site-header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255,255,255,0.05);
  }
  .main-nav a { color: #e2e8f0; }
  .hamburger span { background: #e2e8f0; }
  .breadcrumb { color: #94a3b8; }
  .breadcrumb a:hover { color: #60a5fa; }
  .brand-grid article,
  .solution-grid article,
  .faq-list details,
  .contact-info,
  #howto article {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255,255,255,0.06);
  }
  .product-list article {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: rgba(255,255,255,0.04);
  }
  .case-grid blockquote {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-left-color: #3b82f6;
  }
  .case-grid blockquote::before { color: #3b82f640; }
  .article-list article {
    background: #1e293b;
    border-color: #334155;
  }
  .article-list p { color: #94a3b8; }
  .faq-list details p { color: #94a3b8; }
  .faq-list summary::after { color: #60a5fa; }
  #howto h3 { color: #60a5fa; }
  .contact-info strong { color: #60a5fa; }
  .read-more { color: #60a5fa; }
  .btn-primary {
    background: linear-gradient(135deg, #1e3a5f, #3b82f6);
  }
  .site-footer {
    background: #020617;
  }
  .footer-links a { color: #64748b; }
  .footer-links a:hover { color: #e2e8f0; }
  .main-nav {
    background: rgba(15, 23, 42, 0.95);
  }
  .main-nav a { border-bottom-color: #334155; }
  @media (max-width: 768px) {
    .main-nav {
      background: rgba(15, 23, 42, 0.95);
    }
  }
}