/* 藏在科技 · cz930.com */
:root {
  --ink: #12151c;
  --ink-soft: #3a3f4a;
  --muted: #7a808c;
  --paper: #f4f5f7;
  --paper-2: #eef0f3;
  --white: #ffffff;
  --gold: #c9a87c;
  --gold-2: #dfc09a;
  --gold-deep: #b8925f;
  --teal: #2f4a45;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* 锚点跳转时预留固定顶栏高度，避免遮住区块顶部 */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 12, 18, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 40px);
}

.nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after,
.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  margin: 7px 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4.25px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 14, 0.72) 0%, rgba(6, 8, 14, 0.35) 48%, rgba(6, 8, 14, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 8, 14, 0.35) 0%, transparent 28%, rgba(6, 8, 14, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(20px, 4vw, 56px) 96px;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.05;
}

.hero__slogan {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.hero__desc {
  margin: 1.35rem 0 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hero__desc-line {
  display: inline;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #1a140e;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 10px 28px rgba(184, 146, 95, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 14px 34px rgba(184, 146, 95, 0.38);
}

.btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
  animation: bob 2.2s var(--ease) infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* ——— Products ——— */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--paper-2);
}

.product {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(18, 21, 28, 0.08);
  background: #dde2e8;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.product__bg {
  position: absolute;
  inset: 0;
}

.product__bg picture,
.product__bg img,
.more__bg picture,
.more__bg img {
  width: 100%;
  height: 100%;
}

.product__bg img {
  object-fit: cover;
  object-position: right center;
  transition: transform 0.8s var(--ease);
}

.product:hover .product__bg img {
  transform: scale(1.03);
}

.product__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(244, 246, 248, 0.96) 0%,
    rgba(244, 246, 248, 0.88) 38%,
    rgba(244, 246, 248, 0.35) 68%,
    rgba(244, 246, 248, 0.08) 100%
  );
}

.product__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3vw, 40px);
}

.product__icon {
  width: 56px;
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.product__icon--tools {
  width: 52px;
}

.product h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product p {
  margin: 0.7rem 0 0;
  max-width: 16em;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.qr {
  margin: auto 0 0;
  padding: 12px 12px 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 21, 28, 0.1);
  text-align: center;
}

.qr img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 4px;
}

.qr figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* ——— Business ——— */
.business,
.more,
.products {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.business {
  background: var(--white);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 56px);
}

.business__grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.biz {
  padding: 8px clamp(18px, 3vw, 40px);
  text-align: center;
}

.biz + .biz {
  border-left: 1px solid rgba(18, 21, 28, 0.08);
}

.biz__icon {
  color: var(--teal);
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.biz h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.biz p {
  margin: 0.75rem auto 0;
  max-width: 16em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ——— More / About ——— */
.more {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #dfe4ea;
}

.more__bg {
  position: absolute;
  inset: 0;
}

.more__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: 1;
}

.more__veil {
  position: absolute;
  inset: 0;
  /* 只在文字区略提亮，保留山景层次 */
  background: linear-gradient(
    180deg,
    rgba(244, 245, 247, 0.42) 0%,
    rgba(244, 245, 247, 0.22) 45%,
    rgba(244, 245, 247, 0.18) 70%,
    rgba(244, 245, 247, 0.35) 100%
  );
}

.more__content {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 110px) 24px;
}

.more__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.28em;
}

.more__label span {
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(122, 128, 140, 0.55);
}

.more h2 {
  margin: 1.1rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 12px rgba(244, 245, 247, 0.85);
}

.more__tags {
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 10px rgba(244, 245, 247, 0.8);
}

/* ——— Footer ——— */
.site-footer {
  background: #1a1d24;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  padding: 22px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0;
}

.site-footer__beian {
  margin-top: 8px;
}

.site-footer__beian a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s var(--ease);
}

.site-footer__beian a:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* ——— Motion ——— */
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateX(-50%) translateY(6px);
    opacity: 1;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

.product,
.biz,
.more__content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.product.is-in,
.biz.is-in,
.more__content.is-in {
  opacity: 1;
  transform: none;
}

.biz:nth-child(2) {
  transition-delay: 0.08s;
}

.biz:nth-child(3) {
  transition-delay: 0.16s;
}

/* ——— Mobile (matches design 2) ——— */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: calc(var(--header-h) + 12px) 24px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(10, 12, 18, 0.94);
    backdrop-filter: blur(16px);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-hide-sm {
    display: none;
  }

  .hero__content {
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 120px;
  }

  .hero__brand {
    letter-spacing: 0.1em;
  }

  .hero__desc-line {
    display: block;
    margin-top: 0.35rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: var(--paper);
  }

  .product {
    min-height: 560px;
    border-radius: 0;
    box-shadow: none;
  }

  .product__bg img {
    object-position: 70% center;
  }

  .product__fade {
    background: linear-gradient(
      180deg,
      rgba(245, 247, 249, 0.94) 0%,
      rgba(245, 247, 249, 0.78) 42%,
      rgba(245, 247, 249, 0.2) 72%,
      rgba(245, 247, 249, 0.05) 100%
    );
  }

  #product-tools .product__fade {
    background: linear-gradient(
      180deg,
      rgba(236, 239, 243, 0.92) 0%,
      rgba(236, 239, 243, 0.7) 40%,
      rgba(236, 239, 243, 0.18) 70%,
      rgba(20, 22, 28, 0.08) 100%
    );
  }

  .product__inner {
    padding: 48px 28px 40px;
  }

  .qr {
    margin-top: 28px;
  }

  .business__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .biz + .biz {
    border-left: 0;
    border-top: 1px solid rgba(18, 21, 28, 0.08);
    padding-top: 36px;
  }

  .more {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    max-width: none;
  }

  .qr img {
    width: 136px;
    height: 136px;
  }
}

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

  .hero__media img,
  .hero__scroll,
  .reveal,
  .product,
  .biz,
  .more__content {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
