/**
 * 电玩城游戏机销售合作落地页样式
 * 作者: 三体智能科技
 * 版本: 1.0.0
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

/* ==================== 导航栏 ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background: rgba(26, 26, 46, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.logo i {
  margin-right: 10px;
  color: #ff6b35;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ff6b35;
}

.phone-btn {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s;
}

.phone-btn:hover {
  transform: scale(1.05);
}

.phone-btn i {
  margin-right: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.98);
  padding: 20px;
}

.mobile-menu.active {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* ==================== Hero区域 ==================== */
.hero {
  padding-top: 100px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 60px 0;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
}

.hero-text h2 {
  font-size: 36px;
  color: #ff6b35;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-text p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat .number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: #ff6b35;
}

.stat .label {
  font-size: 14px;
  color: #999;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ==================== 按钮样式 ==================== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #ff6b35;
}

.btn-secondary:hover {
  background: #ff6b35;
}

.btn-outline {
  background: transparent;
  color: #ff6b35;
  border: 2px solid #ff6b35;
}

.btn-outline:hover {
  background: #ff6b35;
  color: #fff;
}

/* ==================== Hero图片 ==================== */
.hero-image {
  flex: 1;
}

.image-container {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.image-container img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f5f5f5' fill-opacity='1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,197.3C1248,203,1344,245,1392,266.7L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
}

/* ==================== 产品展示区 ==================== */
.products {
  padding: 80px 0;
  background: #f5f5f5;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.section-header p {
  font-size: 18px;
  color: #666;
}

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

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.product-price {
  margin-bottom: 15px;
}

.product-price .price {
  font-size: 28px;
  color: #ff6b35;
  font-weight: bold;
}

.product-price .unit {
  font-size: 14px;
  color: #999;
}

.product-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.product-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.view-more {
  text-align: center;
  margin-top: 40px;
}

/* ==================== 合作优势区 ==================== */
.advantages {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.advantages .section-header h2 {
  color: #fff;
}

.advantages .section-header p {
  color: #999;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.advantage-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
}

.advantage-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon i {
  font-size: 36px;
  color: #fff;
}

.advantage-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 15px;
  font-weight: bold;
}

.advantage-card p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

/* ==================== 客户案例区 ==================== */
.cases {
  padding: 80px 0;
  background: #f5f5f5;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.case-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.case-card:hover {
  transform: translateY(-10px);
}

.case-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-info {
  padding: 20px;
}

.case-info h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
  font-weight: bold;
}

.case-info p {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.case-stats {
  display: flex;
  gap: 20px;
}

.case-stats span {
  font-size: 14px;
  color: #ff6b35;
  font-weight: bold;
}

/* ==================== 联系表单区 ==================== */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  color: #fff;
}

.contact-info h2 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: bold;
}

.contact-info p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-item i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.detail-item .label {
  display: block;
  font-size: 14px;
  opacity: 0.8;
}

.detail-item .value {
  font-size: 18px;
  font-weight: bold;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff6b35;
}

.contact-form textarea {
  resize: none;
  height: 100px;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-form button:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* ==================== 底部悬浮按钮 ==================== */
.float-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.phone {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.float-btn.chat {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1a1a2e;
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-logo i {
  margin-right: 10px;
  color: #ff6b35;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
}

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

.footer-copyright p {
  color: #666;
  font-size: 12px;
}

/* ==================== 弹窗 ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  z-index: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.modal-image img {
  width: 100%;
  border-radius: 15px;
}

.modal-info {
  padding: 20px 0;
}

.modal-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.modal-info p {
  color: #666;
  margin-bottom: 20px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.product-specs .spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 10px;
}

.product-specs .label {
  color: #999;
}

.product-specs .value {
  font-weight: bold;
}

.modal-content.success {
  text-align: center;
  padding: 40px;
  max-width: 400px;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon i {
  font-size: 50px;
  color: #fff;
}

.modal-content.success h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.modal-content.success p {
  color: #666;
  margin-bottom: 30px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .nav-links,
  .phone-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .products-grid,
  .advantages-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .detail-item {
    width: calc(50% - 12px);
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text h2 {
    font-size: 22px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat .number {
    font-size: 28px;
  }

  .detail-item {
    width: 100%;
  }
}