/* ========================================
   龙虾找人 - 品牌静态网站样式
   风格：shadcn/ui · 黑白主色 · 大气极简
   ======================================== */

/* --- Reset & Base --- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  color: #18181b;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* --- Layout --- */

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* --- Hero Section --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 560px;
  width: 100%;
  gap: 2.5rem;
}

/* Logo */
.hero__logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__logo:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.12);
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand Name */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero__name {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #09090b;
}

.hero__slogan {
  font-size: 1.125rem;
  font-weight: 400;
  color: #71717a;
  letter-spacing: 0.02em;
}

/* Divider */
.hero__divider {
  width: 48px;
  height: 1px;
  background-color: #e4e4e7;
}

/* QR Code */
.hero__qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__qr {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  overflow: hidden;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.hero__qr:hover {
  border-color: #d4d4d8;
}

.hero__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.hero__qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
}

.hero__qr-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: #a1a1aa;
}

.hero__qr-placeholder span {
  font-size: 0.75rem;
}

.hero__qr-hint {
  font-size: 0.8125rem;
  color: #a1a1aa;
  letter-spacing: 0.01em;
}

/* Download Button */
.hero__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background-color: #09090b;
  color: #fafafa;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}

.hero__download:hover {
  background-color: #27272a;
}

.hero__download:active {
  transform: scale(0.98);
}

.hero__download svg {
  width: 18px;
  height: 18px;
}

/* Downloads group */
.hero__downloads {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Secondary download button */
.hero__download--secondary {
  background-color: #f4f4f5;
  color: #09090b;
  border: 1px solid #e4e4e7;
}

.hero__download--secondary:hover {
  background-color: #e4e4e7;
}

.hero__download-hint {
  font-size: 0.8125rem;
  color: #a1a1aa;
  letter-spacing: 0.01em;
}

/* --- Footer --- */

.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #f4f4f5;
}

.footer__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__company {
  font-size: 0.8125rem;
  color: #71717a;
}

.footer__icp {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.footer__icp a {
  color: #a1a1aa;
  transition: color 0.2s ease;
}

.footer__icp a:hover {
  color: #71717a;
}

/* --- Legal Pages (Privacy / Terms) --- */

.legal {
  justify-content: flex-start;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.legal__container {
  max-width: 860px;
  width: 100%;
}

.legal__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #71717a;
}

.legal__back:hover {
  color: #18181b;
}

.legal__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #09090b;
}

.legal__meta {
  font-size: 0.875rem;
  color: #a1a1aa;
}

.legal__content {
  font-size: 1rem;
  color: #27272a;
  line-height: 1.75;
}

.legal__content h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #09090b;
}

.legal__content h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #09090b;
}

.legal__content p + p {
  margin-top: 0.75rem;
}

.legal__content ul,
.legal__content ol {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.legal__content li + li {
  margin-top: 0.375rem;
}

.legal__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.925em;
  background: #fafafa;
  border: 1px solid #f4f4f5;
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.legal__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__content a:hover {
  color: #09090b;
}

/* --- Animations --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__logo {
  animation: fadeInUp 0.6s ease-out both;
}

.hero__brand {
  animation: fadeInUp 0.6s 0.1s ease-out both;
}

.hero__divider {
  animation: fadeInUp 0.6s 0.2s ease-out both;
}

.hero__qr-section {
  animation: fadeInUp 0.6s 0.3s ease-out both;
}

.hero__download {
  animation: fadeInUp 0.6s 0.4s ease-out both;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .hero__name {
    font-size: 2rem;
  }

  .hero__slogan {
    font-size: 1rem;
  }

  .hero__logo {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

  .hero__qr {
    width: 140px;
    height: 140px;
  }

  .hero {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 1.5rem 1rem;
  }

  .hero__name {
    font-size: 1.75rem;
  }

  .hero__slogan {
    font-size: 0.9375rem;
  }

  .hero__logo {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .hero__qr {
    width: 128px;
    height: 128px;
  }

  .hero__download {
    padding: 0.625rem 1.75rem;
    font-size: 0.875rem;
  }
}

/* --- Utilities --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
