/* 全局基础样式 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #050816;
  color: #f5f5f5;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

/* 布局辅助 */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #60a5fa, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.logo-text {
  font-size: 16px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #a855f7);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a:hover::after {
  width: 100%;
}

/* 头图区域 */
.hero {
  padding: 72px 0 72px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.25), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.25), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 14px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 12px;
  color: #9ca3af;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
}

.btn-small:hover {
  background: rgba(31, 41, 55, 0.95);
  transform: translateY(-1px);
}

/* 右侧悬浮卡片 */
.hero-image-wrap {
  position: relative;
  min-height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.45), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.45), transparent 55%),
    linear-gradient(145deg, #020617, #020617);
  border-radius: 28px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.hero-img {
  border-radius: 20px;
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.hero-card-info {
  margin-top: 12px;
}

.hero-card-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.hero-card-info p {
  margin: 0;
  font-size: 13px;
  color: #d1d5db;
}

/* 悬浮动画 */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) translateX(4px) rotate(-1.2deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
}

/* 角落标记 */
.hero-badge {
  position: absolute;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  backdrop-filter: blur(10px);
}

.badge-1 {
  top: 18%;
  right: 6%;
}

.badge-2 {
  bottom: 18%;
  left: 2%;
}

/* 通用 section 样式 */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section-head p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

/* 商品展示 */
.products {
  background-color: #020617;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.15), transparent 60%),
    #050816;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.9);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform-origin: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
}

.product-image {
  height: 190px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-title {
  font-size: 15px;
  margin: 0;
}

.product-desc {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: #d1d5db;
}

.product-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tags li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.products-footer {
  margin-top: 32px;
  text-align: center;
}

.products-footer p {
  margin-bottom: 12px;
  font-size: 13px;
  color: #9ca3af;
}

/* 优势区域 */
.advantages {
  background-color: #050816;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.adv-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 16px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
}

.adv-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.adv-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.adv-card p {
  margin: 0;
  font-size: 13px;
  color: #d1d5db;
}

/* 关于我们 */
.about {
  background-color: #020617;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.about-text p {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.7;
}

.about-text p + p {
  margin-top: 10px;
}

.about-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-stat {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 14px 12px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  text-align: center;
}

.about-number {
  display: block;
  font-size: 22px;
  font-weight: 600;
  background: linear-gradient(135deg, #60a5fa, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.about-label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

/* 联系方式 */
.contact {
  background-color: #050816;
}

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 14px;
}

.contact-card p {
  margin: 4px 0;
}

.contact-card a {
  color: #93c5fd;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  padding: 14px 0;
  font-size: 12px;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.footer-right {
  text-align: right;
}

/* 出场动画 - 渐显向上 */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image-wrap {
    order: -1;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-highlight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 响应式设计：手机端优化导航样式 */
@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 10px 0 12px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .logo-text {
    font-size: 15px;
  }

  /* 顶部导航在手机端改成居中圆角标签 */
  .nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
    font-size: 13px;
  }

  .nav a {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
  }

  /* 手机端取消下划线动画，避免文字和线条挤在一起 */
  .nav a::after {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .adv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-highlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
