
:root {
  --primary-color: #2563eb;
  --secondary-color: #f97316;
  --accent-color: #10b981;
  --text-color: #1f2937;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --gradient-start: #3b82f6;
  --gradient-end: #1d4ed8;
  --hover-transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
}

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

header {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 1.2rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--hover-transition);
}

header.scrolled {
  padding: 0.8rem 0;
  background: rgba(37, 99, 235, 0.95);
  backdrop-filter: blur(10px);
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  list-style-type: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--hover-transition);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--hover-transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1600x900/?technology');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.7), rgba(249, 115, 22, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.8rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease 0.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--secondary-color), #ea580c);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--hover-transition);
  animation: fadeInUp 1s ease 1s;
  opacity: 0;
  animation-fill-mode: forwards;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

section {
  padding: 8rem 0;
}

section:nth-child(even) {
  background-color: #f1f5f9;
}

h1, h2 {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary-color);
  position: relative;
}

h1::after, h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-item {
  background-color: var(--card-background);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--hover-transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-item i {
  font-size: 3.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding: 2rem;
}

.team-member {
  text-align: center;
  transition: var(--hover-transition);
}

.team-member img {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--hover-transition);
}

.team-member:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-form, .login-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea,
.login-form input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: var(--hover-transition);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
  height: 180px;
  resize: vertical;
}

footer {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.social-links {
  margin: 2rem 0;
}

.social-links a {
  color: white;
  font-size: 1.8rem;
  margin: 0 15px;
  transition: var(--hover-transition);
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

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

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 6rem 0;
  }

  .hero {
    height: 80vh;
  }

  .team-member img {
    width: 180px;
    height: 180px;
  }

  .service-item i {
    font-size: 2.5rem;
  }

  .btn {
    padding: 0.8rem 2rem;
  }
}

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

  .hero p {
    font-size: 1.2rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
  }

  .team-member img {
    width: 150px;
    height: 150px;
  }

  .service-item i {
    font-size: 2rem;
  }
}

/* 添加汉堡菜单按钮样式 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: var(--hover-transition);
}

/* 导航菜单样式修改 */
nav {
  transition: var(--hover-transition);
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  list-style-type: none;
}

/* 移动端样式 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 2rem;
    top: 1.2rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--gradient-start);
    padding: 4rem 2rem;
    transition: 0.3s ease-in-out;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* 添加遮罩层 */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .overlay.active {
    display: block;
  }
}
