/* XSS安全测试平台 - 页面通用样式 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 15px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #667eea;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #667eea;
}

.nav-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 页面头部 */
.page-header {
  margin-top: 80px;
  padding: 80px 40px;
  text-align: center;
  color: white;
  position: relative;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

.page-subtitle {
  font-size: 20px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease;
}

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

/* 主要内容 */
.page-content {
  background: white;
  position: relative;
  z-index: 10;
}

.section {
  padding: 80px 40px;
}

.section-alt {
  background: #f8f9fa;
}

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

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

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

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

/* 功能特性网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.feature-icon-large {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.feature-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 8px 0;
  color: #555;
  font-size: 14px;
}

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

.advantage-item {
  background: white;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advantage-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.advantage-item:hover::before {
  transform: scaleY(1);
}

.advantage-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.advantage-number {
  font-size: 48px;
  font-weight: 800;
  color: #667eea;
  opacity: 0.2;
  margin-bottom: 15px;
}

.advantage-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #333;
}

.advantage-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* 使用场景 */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.scenario-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.scenario-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.scenario-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.scenario-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* 关于我们 - 介绍区域 */
.about-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-text h2 {
  font-size: 36px;
  margin-bottom: 25px;
  color: #333;
}

.intro-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 20px;
}

.intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.placeholder-icon {
  font-size: 80px;
  margin-bottom: 15px;
}

.image-placeholder p {
  font-size: 20px;
  font-weight: 600;
}

/* 使命愿景 */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.mv-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.mv-icon {
  font-size: 64px;
  margin-bottom: 25px;
}

.mv-card h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.mv-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.9;
}

/* 核心价值观 */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.value-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #333;
}

.value-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* 团队介绍 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.member-avatar {
  font-size: 64px;
  margin-bottom: 20px;
}

.team-member h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #333;
}

.member-role {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 15px;
}

.team-member p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* 发展历程 */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-year {
  order: 2;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 1;
  text-align: right;
}

.timeline-year {
  font-size: 48px;
  font-weight: 800;
  color: #667eea;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}

.timeline-item:nth-child(even) .timeline-year {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.timeline-content h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
}

.timeline-content p {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

/* 合作伙伴 */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.partner-item {
  background: white;
  padding: 50px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.partner-logo {
  font-size: 56px;
  margin-bottom: 15px;
}

.partner-item p {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* 联系我们 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.contact-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #333;
}

.contact-card p {
  font-size: 16px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 14px !important;
  color: #999 !important;
  font-weight: 400 !important;
}

/* CTA区域 */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 40px;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 35px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
}

/* 页面底部 */
.page-footer {
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 50px 40px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 80px;
  }

  .timeline-year {
    position: absolute;
    left: 0;
    padding: 0 !important;
    font-size: 32px;
  }

  .timeline-item:nth-child(even) .timeline-year {
    order: 0;
  }

  .timeline-item:nth-child(even) .timeline-content {
    order: 0;
    text-align: left;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 20px;
  }

  .nav-menu {
    gap: 15px;
    font-size: 13px;
  }

  .logo-text {
    display: none;
  }

  .page-header {
    padding: 60px 20px;
  }

  .page-title {
    font-size: 36px;
  }

  .page-subtitle {
    font-size: 16px;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .features-grid,
  .advantages-grid,
  .scenarios-grid,
  .values-grid,
  .team-grid,
  .partners-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 32px;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }
}
