/* 全局变量 */
:root {
  --primary-color: #7c3aed;
  --primary-hover: #6d28d9;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* 通用类 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* 导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
}

.nav-btn::after {
  display: none;
}

.nav-btn:hover {
  background: var(--primary-hover);
}

/* 移动端菜单 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow-md);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-link:hover {
  color: var(--primary-color);
}

/* Hero区域 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

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

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* 卡片 */
.card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 特色卡片 */
.feature-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  border: none;
}

/* 图文布局 */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.feature-row:nth-child(even) {
  direction: rtl;
}

.feature-row:nth-child(even) > * {
  direction: ltr;
}

.feature-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.feature-link:hover {
  gap: 12px;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 新闻卡片 */
.news-card {
  overflow: hidden;
}

.news-image {
  height: 200px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-image svg {
  width: 64px;
  height: 64px;
  color: var(--primary-color);
  opacity: 0.5;
}

.news-content {
  padding: 24px;
}

.news-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.news-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #ede9fe;
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 新闻列表项 */
.news-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.news-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.news-item-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-item-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FAQ折叠面板 */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: white;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question svg {
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 联系信息 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-map {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* 团队卡片 */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.team-avatar svg {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 价值观卡片 */
.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-icon {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
}

.value-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-secondary);
}

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* 页脚 */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

/* 页面标题 */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* 分隔线 */
.separator {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto 48px;
  border-radius: 2px;
}

/* CTA区域 */
.cta-section {
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* 动画效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .hero-icon {
    width: 200px;
    height: 200px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row:nth-child(even) {
    direction: ltr;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: 120px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .feature-content h3 {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

/* 微信二维码占位 */
.wechat-qr {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.wechat-placeholder {
  width: 180px;
  height: 180px;
  background: white;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wechat-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--text-secondary);
  opacity: 0.5;
}

.wechat-qr p {
  font-weight: 600;
  color: var(--text-primary);
}
