/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 - 高端玻璃态设计 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-item {
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  transition: width 0.3s ease;
}

.navbar-item:hover {
  color: #3b82f6;
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-button {
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.navbar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 章节样式 */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.section-title p {
  font-size: 18px;
  color: #6b7280;
  font-weight: 400;
}

/* 成功案例页面 */
.cases-page {
  padding-top: 60px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.case-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }
.case-card:nth-child(4) { animation-delay: 0.4s; }
.case-card:nth-child(5) { animation-delay: 0.5s; }
.case-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.case-image {
  overflow: hidden;
  position: relative;
}

.case-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image img {
  transform: scale(1.1);
}

.case-content {
  padding: 28px;
}

.case-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1e40af;
  letter-spacing: -0.3px;
}

.case-content p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* 案例详情 */
.case-details {
  margin-bottom: 80px;
}

.case-detail-item {
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.case-detail-item:nth-child(1) { animation-delay: 0.1s; }
.case-detail-item:nth-child(2) { animation-delay: 0.2s; }
.case-detail-item:nth-child(3) { animation-delay: 0.3s; }

.case-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 48px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.case-detail-content.reverse {
  direction: rtl;
}

.case-detail-content.reverse > * {
  direction: ltr;
}

.case-detail-text h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e40af;
  letter-spacing: -0.5px;
}

.case-detail-text p {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 20px;
}

.case-detail-text ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.case-detail-text ul li {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 12px;
  position: relative;
  padding-left: 8px;
}

.case-detail-text ul li::marker {
  color: #3b82f6;
}

.case-detail-image img {
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-detail-image:hover img {
  transform: scale(1.02);
}

/* 页脚 - 高端渐变设计 */
.footer {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2942 100%);
  color: #fff;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 28px;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: -0.3px;
}

.footer-section p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 14px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-section ul li a::after {
  content: '→';
  margin-left: 6px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #60a5fa;
}

.footer-section ul li a:hover {
  color: #60a5fa;
  padding-left: 8px;
}

.footer-section ul li a:hover::after {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .case-detail-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }
  
  .case-detail-content.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1.2rem 1rem;
  }
  
  .navbar-menu {
    margin-top: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .section {
    padding: 60px 0;
  }
}
