* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #ec4b49;
  --red-dark: #d43c3a;
  --text: #1f2329;
  --text-muted: #6b7280;
  --border: #e8e8e8;
  --bg: #ffffff;
  --page-bg: #f7f7f8;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

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

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.link-plain {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.link-plain:hover {
  color: var(--red);
}

/* ---------- 导航栏 ---------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-right: auto;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- 主视觉 ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  scroll-margin-top: 80px;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #fdeceb;
  color: var(--red);
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32em;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 右侧展示占位 */
.hero-media {
  display: flex;
  justify-content: center;
}

.media-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.media-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
}

.media-line {
  height: 12px;
  width: 100%;
  border-radius: 6px;
  background: #eee;
}

.media-line.short {
  width: 60%;
}

/* ---------- 三列特性 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0 5rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdeceb;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- 产品展示 ---------- */
.products {
  padding: 4rem 0 2rem;
  scroll-margin-top: 80px;
}

.products-head {
  text-align: center;
  margin-bottom: 3rem;
}

.products-head h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.products-head p {
  color: var(--text-muted);
}

.product-group {
  margin-bottom: 3.5rem;
}

.group-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--red);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.group-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.product-img {
  aspect-ratio: 4 / 3;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.product-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text);
}

/* ---------- 横向内容块 ---------- */
.showcase {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 5rem;
}

.showcase h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.showcase p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.showcase-msg {
  margin-top: 1rem;
  color: var(--red);
  font-weight: 600;
  min-height: 1.6em;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.copyright {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .nav-inner,
  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .nav-actions .link-plain {
    display: none;
  }
}
