@charset "utf-8";
/* CSS Document */

/* BASE */

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827; /* slate-900 */
  background-color: #ffffff;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #f59e0b; /* amber-500 */
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1440px; /* 保持电商网站常见宽度 */
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #111827;
}
p {
  margin-bottom: 1rem;
  color: #374151; /* gray-700 */
}

.btn {
  display: inline-block;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  transition: all 0.25s ease;
}

.card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding: 0 0.75rem;
  }
}

/* 初始（未滚动） */
#siteNav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255, 255, 255, 0.65);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* 滚动后 */
#siteNav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 深色模式可选 */
@media (prefers-color-scheme: dark) {
  #siteNav {
    background: rgba(15, 23, 42, 0.55);
  }
  #siteNav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }
}

/* 覆盖 Bootstrap 的 container-xxl 宽度 */
@media (min-width: 1400px) {
  .container {
    max-width: 1440px !important;
  }
}
