/* ========================================
   周方智能官网 - 现代化样式
   ======================================== */

/* ---- 全局重置与基础 ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: #1a1a2e;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- 工具类 ---- */
.container-new {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

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

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

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

/* ---- 按钮 ---- */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 91, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ---- 导航栏 ---- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0;
  transition: all 0.4s ease;
  background: transparent;
}

#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#main-nav.scrolled .nav-logo,
#main-nav.scrolled .nav-menu a,
#main-nav.scrolled .nav-phone {
  color: #1a1a2e;
}

#main-nav.scrolled .nav-menu a::after {
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-phone {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-phone i {
  font-size: 18px;
}

/* ---- Hero区域 ---- */
#hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #0d3b66 50%, #1a5f7a 100%);
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 900px;
}

.hero-subtitle {
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00d4aa;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title span {
  background: linear-gradient(135deg, #00d4aa 0%, #635bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s infinite;
}

/* ---- 区域标题 ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  color: #635bff;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- 数据展示 ---- */
#stats {
  background: #f6f9fc;
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #635bff15 0%, #00d4aa15 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.stat-num {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: #5a6c7d;
}

/* ---- 产品与方案 ---- */
#products {
  background: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  border: 1px solid #eef2f7;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-5px);
  border-color: transparent;
}

.product-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 24px;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 15px;
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-link {
  font-size: 14px;
  color: #635bff;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-link:hover {
  gap: 10px;
}

/* ---- 解决方案 ---- */
#solutions {
  background: #f6f9fc;
}

.solution-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.solution-row:last-child {
  margin-bottom: 0;
}

.solution-row.reverse {
  flex-direction: row-reverse;
}

.solution-img {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.solution-img img {
  width: 100%;
  display: block;
}

.solution-content {
  flex: 1;
}

.solution-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #635bff15 0%, #00d4aa15 100%);
  color: #635bff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.solution-title {
  font-size: 28px;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 16px;
}

.solution-desc {
  font-size: 16px;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 24px;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #1a1a2e;
}

.solution-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ---- 案例 ---- */
#cases {
  background: #fff;
}

.case-swiper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.case-swiper img {
  width: 100%;
  display: block;
}

/* ---- 资质 ---- */
#qualifications {
  background: #0a2540;
  color: #fff;
}

#qualifications .section-title {
  color: #fff;
}

#qualifications .section-desc {
  color: rgba(255,255,255,0.7);
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.qual-item {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.qual-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.qual-item img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.qual-item-name {
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

/* ---- 关于我们 ---- */
#about {
  background: #f6f9fc;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-img img {
  width: 100%;
  display: block;
}

.about-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0a2540;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.value-item {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.value-item .value-num {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #635bff 0%, #00d4aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.value-item .value-label {
  font-size: 14px;
  color: #5a6c7d;
}

/* ---- 页脚 ---- */
#footer-new {
  background: #061624;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contact i {
  color: #00d4aa;
  font-size: 16px;
  margin-top: 2px;
}

.footer-qr {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-bottom-new {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- 动画 ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 响应式 ---- */
@media (max-width: 991px) {
  .hero-title {
    font-size: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .qual-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .solution-row,
  .solution-row.reverse {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .section-title {
    font-size: 28px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .qual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-padding {
    padding: 60px 0;
  }
}
