/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6963F0;
  --primary-dark: #5a54d0;
  --secondary-color: #9B96F5;
  --accent-color: #FFD93D;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --text-light: #999;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --border-color: #e5e5e5;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

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

/* ==================== 顶部导航 ==================== */
.header {
  background: var(--bg-white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  padding: 8px 0;
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ==================== Banner ==================== */
.banner {
  margin-top: 70px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-slides {
  position: relative;
  height: 100%;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: cover;
  background-position: center;
}

.banner-slide.active {
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45,129,255,0.7);
}

.banner-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.banner-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease;
}

.banner-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent-color);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 217, 61, 0.4);
}

/* Banner指示器 */
.banner-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* ==================== 内容区块 ==================== */
.section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-gray);
}

/* 特色卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

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

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* ==================== 产品展示 ==================== */
.product-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

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

.product-image {
  height: 240px;
  background: #6963F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #fff;
}

.product-info {
  padding: 28px;
}

.product-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-info .short-desc {
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feature-tag {
  padding: 6px 14px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-gray);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-weight: 500;
}

.product-link:hover {
  gap: 10px;
}

/* ==================== 新闻列表 ==================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.news-image {
  height: 200px;
  background: #6963F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.news-content {
  padding: 24px;
}

.news-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.news-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-content p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 横向新闻卡片 */
.news-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  max-width: 100% !important;
}

.news-list > * {
  width: 100% !important;
}

.news-card-horizontal {
  display: flex !important;
  flex-direction: row !important;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  width: 100% !important;
  max-width: 100% !important;
  text-align: left !important;
}

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

.news-card-image {
  width: 320px !important;
  min-width: 320px !important;
  height: 220px !important;
  background: #6963F0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0 !important;
}

.news-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.news-card-image svg {
  width: 60px;
  height: 60px;
  fill: #fff;
}

.news-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-color);
}

.news-card-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-light);
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-meta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.news-card-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: left !important;
}

.news-card-content p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
  text-align: left !important;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 15px;
}

.news-card-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .news-card-horizontal {
    flex-direction: column !important;
  }

  .news-card-image {
    width: 100% !important;
    min-width: auto !important;
    height: 200px !important;
  }
}

/* ==================== 关于页面 ==================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 15px;
}

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

.team-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.team-avatar {
  width: 100%;
  height: 280px;
  background: #6963F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.team-info {
  padding: 24px;
}

.team-info h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-info .position {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 12px;
}

.team-info p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ==================== 联系页面 ==================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-text p {
  color: var(--text-gray);
  font-size: 14px;
}

/* 联系表单 */
.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45,129,255,0.1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

/* ==================== 页脚 ==================== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 60px 0 0;
}

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

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact p svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .banner {
    height: 400px;
  }

  .banner-title {
    font-size: 28px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

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

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

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

/* ==================== 消息提示 ==================== */
.message {
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: var(--transition);
  z-index: 9999;
}

.message.show {
  transform: translateX(0);
}

.message.success {
  border-left: 4px solid #52c41a;
}

.message.error {
  border-left: 4px solid #ff4d4f;
}

.message-icon {
  font-size: 20px;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
