﻿/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
/* 导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo h1 {
  color: #2c3e50;
  font-size: 26px;
  font-weight: 800;
  position: relative;
  padding-left: 35px;
  transition: all 0.3s ease;
}

.nav-logo h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: white;
  content: 'MC';
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-logo h1:hover {
  color: #667eea;
}

.nav-logo h1:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.nav-menu {
  display: flex;
  list-style: none;
}
.nav-menu li {
  margin-left: 30px;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #3498db;
}
/* 首页横幅 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

/* 高亮文本样式 */
.highlight-text {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.2em;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite;
  position: relative;
  display: inline-block;
}

.highlight-text::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.2;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 30px rgba(255, 142, 83, 0.4);
  }
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  margin: 0 10px;
  transition: all 0.3s;
}
.btn-primary {
  background: #e74c3c;
  color: white;
}
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}
/* 服务项目 */
.services {
  padding: 80px 0;
  background: #f8f9fa;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  text-align: left;
  padding: 0;
}

.service-features li {
  color: #555;
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: '✓';
  color: #27ae60;
  font-weight: bold;
  margin-right: 8px;
}
/* 关于我们 */
.about {
  padding: 80px 0;
}
.about p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #555;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.feature {
  background: #3498db;
  color: white;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}
/* 防骗指南 */
.guide {
  padding: 80px 0;
  background: #f8f9fa;
}
.guide-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #555;
}
.guide-list {
  display: grid;
  gap: 20px;
}
.guide-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.guide-item h3 {
  color: #e74c3c;
  margin-bottom: 10px;
}
.guide-item p {
  color: #666;
}
/* 联系方式 */
.contact {
  padding: 80px 0;
  background: #f8f9fa;
}
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}
.contact-item {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}
.contact-item h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-icon {
  font-style: normal;
  font-size: 1.4rem;
}
.contact-item p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.contact-item p:last-child {
  margin-bottom: 0;
}
.contact-desc {
  color: #888 !important;
  font-size: 0.95rem !important;
  line-height: 1.5;
  margin-top: 8px;
}
.contact-item a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.contact-item a:hover {
  color: #764ba2;
}
.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
}
.contact-form h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}
.contact-form textarea {
  resize: vertical;
}
/* 页脚 */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 60px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-section h3 {
  margin-bottom: 20px;
  color: #ecf0f1;
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}
.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* 品牌介绍区域 */
.footer-slogan {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ecf0f1;
  margin-bottom: 10px;
}
.footer-desc {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 15px;
}
.footer-highlight {
  color: #667eea;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  border-left: 4px solid #667eea;
}
.footer-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-feature {
  color: #95a5a6;
  font-size: 0.95rem;
}

/* 服务列表 */
.footer-services {
  list-style: none;
}
.footer-services li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: #bdc3c7;
  transition: color 0.3s ease;
}
.footer-services li:hover {
  color: #667eea;
}
.service-icon {
  margin-right: 10px;
  font-style: normal;
  font-size: 1.1rem;
}

/* 技术领域 */
.footer-tech {
  list-style: none;
}
.footer-tech li {
  margin-bottom: 10px;
  color: #bdc3c7;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  transition: all 0.3s ease;
}
.footer-tech li:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  transform: translateX(5px);
}

/* 联系信息 */
.contact-info-footer {
  margin-bottom: 20px;
}
.contact-info-footer p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  color: #bdc3c7;
}
.contact-icon-footer {
  margin-right: 10px;
  font-style: normal;
  font-size: 1.1rem;
}
.contact-info-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.contact-info-footer a:hover {
  color: #764ba2;
}

/* 页脚CTA按钮 */
.footer-cta {
  margin-top: 20px;
}
.footer-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 页脚底部 */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #34495e;
}
.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-tags {
  color: #95a5a6;
  font-size: 0.9rem;
  line-height: 1.5;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-logo h1 {
    font-size: 22px;
    padding-left: 30px;
  }
  .nav-logo h1::before {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .hero h1 {
    font-size: 2rem;
  }

  .highlight-text {
    font-size: 1.1em;
  }

  .service-card {
    padding: 25px 20px;
  }

  .service-card .service-icon {
    font-size: 2.5rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 18px;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-item {
    padding: 20px;
  }
  .contact-item h3 {
    font-size: 1.1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .btn {
    display: block;
    margin: 10px 0;
  }

  /* 移动端footer样式 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-section h3 {
    font-size: 1.2rem;
  }
  .footer-slogan {
    font-size: 1.1rem;
  }
  .footer-highlight {
    font-size: 1rem;
    padding: 8px 12px;
  }
  .footer-tech li {
    padding: 6px 10px;
  }
  .footer-bottom-content {
    gap: 8px;
  }
  .footer-tags {
    font-size: 0.85rem;
  }
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-to-top span {
  display: block;
  line-height: 1;
}
