/* 全局样式 */
:root {
  --primary-color: #2C5282;
  --secondary-color: #4A5568;
  --accent-color: #4299E1;
  --background-color: #F7FAFC;
  --text-color: #1A202C;
  --light-text: #718096;
  --white: #FFFFFF;
  --section-padding: 100px 0;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  margin: 0;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 导航栏 */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  font-size:14px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 2rem;
  padding: 0.5rem;
  border: 0px solid rgba(226, 232, 240, 0.8);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lang-switch button {
  padding: 0.25rem 0.75rem;
  border: none;
  background: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lang-switch button.active {
  background: var(--primary-color);
  color: var(--white);
  border-radius: 4px;
}

[lang="en"] .zh-content,
[lang="zh"] .en-content {
  display: none;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

/* 主要内容 */
main {
  padding-top: 80px;
}

section {
  padding: var(--section-padding);
  text-align: center;
}

section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

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

section p, section ul {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  font-size: 14px;
}

.about-text, .about-text p {
  text-align: left;
}

.about-text p {
  margin-bottom: 1.5rem;
}

section ul {
  list-style-position: inside;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/banner.png');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  margin-top: 250px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #FFFFFF, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300%;
  height: 300%;
}

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

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 关于我们 */
.about {
  background: var(--white);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2.5rem;
  background: #e7f6ff;
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--card-shadow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: var(--accent-color);
}

.feature-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

/* 服务项目 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

/* 招贤纳士 */
.careers {
  background: var(--white);
}

.careers-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.positions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.position-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

.position-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
  border-color: var(--accent-color);
}

/* 联系我们 */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-item img {
  width: 32px;
  height: 32px;
}

.contact-qr {
  text-align: center;
}

.contact-qr img {
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
}

/* 页脚 */
footer {
  background: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 应用动画 */
.hero h1,
.hero .subtitle,
.hero .cta-buttons {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero .subtitle {
  animation-delay: 0.2s;
}

.hero .cta-buttons {
  animation-delay: 0.4s;
}

.feature-card,
.service-card,
.position-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.4s;
}

.service-card:nth-child(4) {
  animation-delay: 0.6s;
}

.info-item {
  opacity: 0;
  animation: slideIn 0.6s ease-out forwards;
}

.info-item:nth-child(2) {
  animation-delay: 0.2s;
}

.info-item:nth-child(3) {
  animation-delay: 0.4s;
}

.info-item:nth-child(4) {
  animation-delay: 0.6s;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .careers-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-qr {
    order: -1;
  }

  section h2 {
    font-size: 2rem;
  }

  .feature-card,
  .service-card {
    padding: 2rem;
  }
}

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

  .subtitle {
    font-size: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .positions {
    grid-template-columns: 1fr;
  }

  section {
    padding: var(--section-padding) 1rem;
  }
}

.no-underline {
    text-decoration: none;
}