:root {
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f9fc;
  color: #1f2937;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.navbar-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.navbar-brand .brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-logo {
  height: 70px;
  margin-right: 0.75rem;
}

.brand-text {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #3b82f6;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 220px;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: white;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 5px 18px rgba(148, 163, 184, 0.12);
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  width: 250px;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.search-btn:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.btn-outline {
  padding: 0.5rem 1rem;
  border: 1px solid #3b82f6;
  background: transparent;
  color: #3b82f6;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #4b5563;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.24), transparent 35%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.18), transparent 25%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #f8fafc;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.carousel-section {
  position: relative;
  margin-top: 80px;
  min-height: 420px;
  overflow: hidden;
}

.carousel-slide {
  min-height: 420px;
}

/* 轮播样式 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
  transform: translateX(100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.slide-inner {
  width: min(840px, 100%);
  padding: 2.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.slide-inner .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.slide-inner h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.slide-inner p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
  max-width: 760px;
}

.carousel-slide.leaving-left {
  transform: translateX(-100px);
  opacity: 0;
}

.carousel-slide.leaving-right {
  transform: translateX(100px);
  opacity: 0;
}

.carousel-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.carousel-arrow {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.carousel-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero-branding {
  flex: 1 1 320px;
  min-width: 240px;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  max-width: 760px;
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  margin: 0 0 1.8rem;
  font-size: 1.08rem;
  color: rgba(248, 250, 252, 0.9);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 3.5rem 0;
}

.section-light {
  background: #ffffff;
}

.section-dark {
  background: #111827;
  color: #e5e7eb;
}

.section-accent {
  background: #eff6ff;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.section p {
  margin: 0 0 2rem;
  max-width: 780px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  border: none;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.75rem;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.license-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.license-card h3 {
  margin-top: 0;
  color: #bfdbfe;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.feature-item h4 {
  margin-top: 0;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.footer {
  padding: 1.5rem 0;
  background: #0f172a;
  color: #cbd5e1;
}

.footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
  }

  .contact-block {
    flex-direction: column;
    align-items: stretch;
  }

  /* 移动端导航栏 */
  .navbar-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-menu .nav-link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .navbar-menu .nav-link:last-child {
    border-bottom: none;
  }

  /* 移动端搜索 */
  .mobile-search {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .mobile-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px; /* 防止iOS缩放 */
    outline: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* 移动端轮播 */
  .carousel-controls {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}

/* 悬浮按钮样式 */
.floating-container {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.floating-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100px);
  transition: all 0.3s ease;
}

.floating-buttons.expanded {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
}

.floating-btn:hover {
  background: #2563eb;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.floating-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-btn:hover::before {
  opacity: 1;
  visibility: visible;
}

.floating-btn::after {
  content: '';
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

.floating-main-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  margin-top: 10px;
}

.floating-main-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.plus-icon {
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .floating-container {
    right: 10px;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
  }

  .floating-main-btn {
    width: 50px;
    height: 50px;
  }

  .floating-btn::before {
    display: none;
  }

  .floating-btn::after {
    display: none;
  }
}

/* 涟漪效果 */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 模拟效果提示框 */
.simulation-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.simulation-box.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.simulation-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.simulation-icon {
  font-size: 24px;
  animation: bounce 0.6s ease infinite alternate;
}

.simulation-text {
  font-size: 16px;
  font-weight: 500;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .simulation-box {
    padding: 15px 20px;
  }

  .simulation-content {
    gap: 10px;
  }

  .simulation-icon {
    font-size: 20px;
  }

  .simulation-text {
    font-size: 14px;
  }
}

/* 搜索模态框样式 */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.search-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.search-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.search-modal-header h3 {
  margin: 0;
  color: #1f2937;
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.search-results {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.3s ease;
}

.search-result-item:hover {
  background: #f9fafb;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.search-result-title:hover {
  text-decoration: underline;
}

.search-result-snippet {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.search-no-results {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .search-container {
    display: none; /* 移动端隐藏搜索框 */
  }

  .search-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .simulation-box {
    padding: 15px 20px;
  }

  .simulation-content {
    gap: 10px;
  }

  .simulation-icon {
    font-size: 20px;
  }

  .simulation-text {
    font-size: 14px;
  }
}
