/* 弹窗遮罩 */
.modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 2, 18, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗容器 */
.modal-container {
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.show .modal-container {
    transform: translateY(0) scale(1);
}

.modal-small {
    max-width: 420px;
}
.modal-large {
    max-width: 720px;
}

/* 弹窗头部 */
.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7f8fa;
    border: none;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.modal-close:hover {
    background: #ef4444;
    color: #fff;
}

/* 弹窗主体 */
.modal-body {
    padding: 32px;
}

/* 快捷联系弹窗 */
.contact-list .contact-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.contact-list .contact-item:last-child {
    border-bottom: none;
}
.contact-list i {
    font-size: 20px;
    color: #6C5CE7;
    width: 36px;
}
.contact-item span {
    font-size: 13px;
    color: #999;
    display: block;
}
.contact-item p {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

/* 表单弹窗 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #6C5CE7;
}
.form-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

/* 关于我们 / 服务详情弹窗 */
.about-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 16px 0;
}
.service-item {
    margin-bottom: 20px;
}
.service-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px 0;
}
.service-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ========================== */
/* 首屏数据统计 */
/* ========================== */
.hero .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
  justify-content: center;
  text-align: center;
}
.hero .stat-box {
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: statsFade 1s ease forwards;
}
.hero .stat-number {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}
.hero .stat-label {
  font-size: 16px;
  opacity: 0.9;
  color: #fff;
}

/* ========================== */
/* 底部统计：深色背景 + 超大数字 + 渐入动画 */
/* ========================== */
.stats-section {
  padding: 80px 0;
  background: #111827 !important;
  text-align: center !important;
}
.stats-section .hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto !important;
}
.stats-section .stat-item {
  text-align: center !important;
  min-width: 180px;
  opacity: 0;
  transform: translateY(30px);
  animation: statsFade 1s ease forwards;
}
.stats-section .stat-number {
  font-size: 56px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}
.stats-section .stat-label {
  font-size: 16px !important;
  color: #d1d5db !important;
  line-height: 1.4 !important;
}

/* 渐入动画 */
@keyframes statsFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================== */
/* 移动端 */
/* ========================== */
@media (max-width: 768px) {
  .hero .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .hero .stat-number {
    font-size: 42px;
  }
  .stats-section .hero-stats {
    gap: 40px;
  }
  .stats-section .stat-number {
    font-size: 42px !important;
  }
}