/* 维核官网静态 · 网安/ICP 友好：浅色、可点击备案号、移动端优先 */
:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --foreground: #111111;
  --muted: #52525b;
  --border: rgba(24, 24, 27, 0.12);
  --primary: #b8860b;
  --primary-hover: #9a7209;
  --primary-fg: #1a1408;
  --headline: #8b6914;
  --icon-bg: rgba(184, 134, 11, 0.12);
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 520px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    gap: 0.65rem;
  }

  .nav {
    justify-content: flex-start;
  }
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--foreground);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--headline);
  border-bottom-color: var(--primary);
}

.nav-cta {
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem !important;
  border-radius: 0.5rem;
  background: var(--card);
}

.nav-cta:hover {
  background: rgba(184, 134, 11, 0.08);
  border-color: var(--primary);
}

.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 1.25rem clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(184, 134, 11, 0.06) 0%,
    transparent 45%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.hero .sub {
  display: block;
  margin-top: 0.5rem;
  color: var(--headline);
  font-weight: 600;
}

.hero p {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--muted);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

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

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(24, 24, 27, 0.04);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section--card {
  background: var(--card);
}

.section__title {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.section__title h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__title p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(184, 134, 11, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--headline);
}

.badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--headline);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.grid-3 {
  max-width: 64rem;
  margin: 3rem auto 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  max-width: 56rem;
  margin: 3rem auto 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.section--card .card {
  background: var(--card);
}

.card:hover {
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow: 0 12px 40px rgba(184, 134, 11, 0.06);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.product-card {
  display: block;
  text-align: left;
}

.product-card .more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--headline);
}

.product-card:hover .more span {
  transform: translateX(4px);
}

.more span {
  display: inline-block;
  transition: transform 0.2s;
}

/* 锚点：固定顶栏偏移 */
#values,
#products,
#strength,
#contact {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem 2rem;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a:hover {
  color: var(--headline);
  text-decoration: underline;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}

.footer-legal p {
  margin: 0 0 0.35rem;
}

.footer-legal .icp a {
  color: var(--headline);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal .icp a:hover {
  color: var(--primary-hover);
}

.subpage-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vw, 6.5rem) 1.25rem 4rem;
}

.subpage-main h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
}

.subpage-main .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.subpage-main section + section {
  margin-top: 2rem;
}

.subpage-main h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.subpage-main ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--headline);
}

.back-link:hover {
  text-decoration: underline;
}
