/* 全局重置与变量 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

:root {
  --primary: #e94560;
  --secondary: #0f3460;
  --accent: #16213e;
  --bg: #f8f9fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --glass: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.3);
  --gradient: linear-gradient(135deg, #0f3460, #16213e, #1a1a2e);
}

body.dark {
  --bg: #0d1117;
  --card: #161b22;
  --text: #e6edf3;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  scroll-behavior: smooth;
}

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

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

/* 导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.dark-toggle {
  background: none;
  border: 2px solid var(--text);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  margin-left: 8px;
}

.dark-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(233,69,96,0.1)' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,128C672,107,768,117,864,138.7C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 0 20px;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--secondary);
}

.hero-slider {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-slider span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
}

.hero-slider span.active {
  background: #fff;
  transform: scale(1.3);
}

/* 通用section */
section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-title p {
  color: var(--text);
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 28px;
}

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

.card p {
  opacity: 0.8;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* 企业简介 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.about-text p {
  line-height: 1.9;
  margin-bottom: 16px;
  opacity: 0.85;
}

.about-image {
  background: var(--gradient);
  border-radius: var(--radius);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
}

/* 数据展示 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 30px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.7;
}

/* 团队 */
.team-card {
  text-align: center;
  padding: 24px;
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
}

.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* 客户评价 */
.testimonial-card {
  padding: 28px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 80px;
  position: absolute;
  top: 0;
  left: 20px;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia;
}

.testimonial-card p {
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
}

.testimonial-author strong {
  font-size: 0.95rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  padding: 16px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 0;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  transition: 0.3s;
  color: var(--primary);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 16px;
}

.faq-answer p {
  line-height: 1.7;
  opacity: 0.8;
}

/* 合作伙伴 */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  align-items: center;
}

.partner-item {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  transition: 0.3s;
  border: 1px solid transparent;
}

.partner-item:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

/* 新闻 */
.news-card .card-date {
  font-size: 0.85rem;
  opacity: 0.5;
  margin-bottom: 8px;
  display: block;
}

.news-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.news-card p {
  font-size: 0.9rem;
  opacity: 0.75;
}

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

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */
footer {
  background: var(--gradient);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

footer h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

footer h4::after {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

footer a,
footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 2;
  display: block;
}

footer a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* 返回顶部 */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
  z-index: 999;
  display: none;
  transition: 0.3s;
}

#back-to-top:hover {
  transform: translateY(-3px);
}

/* 搜索 */
.search-box {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 50px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(128, 128, 128, 0.2);
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-box button {
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.search-box button:hover {
  opacity: 0.9;
}

/* 响应式 */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    display: none;
    z-index: 999;
  }
  nav.open {
    display: flex;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
  }
  section {
    padding: 50px 0;
  }
}

/* 懒加载占位 */
.lazy {
  opacity: 0;
  transition: opacity 0.5s;
}

.lazy.loaded {
  opacity: 1;
}

/* 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb span {
  color: var(--primary);
}