/* ========================================
   磁帖 - 品牌静态网站样式
   风格：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; }
.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; }
.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; }
.hero__divider { width: 48px; height: 1px; background-color: #e4e4e7; }
.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-hint { font-size: 0.8125rem; color: #a1a1aa; letter-spacing: 0.01em; }
.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; }
.hero__downloads { width: 100%; display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
.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 --- */
.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 a { text-decoration: underline; text-underline-offset: 3px; }
.legal__content a:hover { color: #09090b; }

/* --- Site Navigation --- */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #f4f4f5; padding: 0.75rem 1.5rem; }
.site-nav__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.site-nav__logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 700; color: #09090b; }
.site-nav__logo img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav__links { display: flex; gap: 1.5rem; }
.site-nav__links a { font-size: 0.875rem; color: #71717a; transition: color 0.2s; }
.site-nav__links a:hover { color: #09090b; }

/* --- Hero Intro --- */
.hero__intro { max-width: 480px; text-align: center; font-size: 0.9375rem; color: #52525b; line-height: 1.7; animation: fadeInUp 0.6s 0.25s ease-out both; }
.hero__intro strong { color: #18181b; font-weight: 600; }

/* --- Features Section --- */
.features { padding: 4rem 1.5rem; background-color: #fafafa; border-top: 1px solid #f4f4f5; }
.features__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.features__title { font-size: 2rem; font-weight: 700; color: #09090b; margin-bottom: 0.5rem; }
.features__subtitle { font-size: 1rem; color: #71717a; margin-bottom: 3rem; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.features__item { background: #fff; border: 1px solid #f4f4f5; border-radius: 12px; padding: 2rem 1.5rem; text-align: center; transition: box-shadow 0.2s, transform 0.2s; }
.features__item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.features__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.features__item h3 { font-size: 1.125rem; font-weight: 650; color: #09090b; margin-bottom: 0.5rem; }
.features__item p { font-size: 0.875rem; color: #71717a; line-height: 1.6; }

/* --- About Section --- */
.about { padding: 4rem 1.5rem; border-top: 1px solid #f4f4f5; }
.about__inner { max-width: 860px; margin: 0 auto; }
.about__title { font-size: 2rem; font-weight: 700; color: #09090b; text-align: center; margin-bottom: 2rem; }
.about__content { font-size: 1rem; color: #27272a; line-height: 1.75; }
.about__content p { margin-bottom: 1rem; }
.about__content strong { font-weight: 650; }
.about__info { margin-top: 2rem; background: #fafafa; border: 1px solid #f4f4f5; border-radius: 12px; padding: 1.5rem 2rem; }
.about__info-item { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f4f4f5; }
.about__info-item:last-child { border-bottom: none; }
.about__info-label { width: 100px; font-size: 0.875rem; color: #71717a; flex-shrink: 0; }
.about__info-value { font-size: 0.9375rem; color: #18181b; font-weight: 500; }
.about__info-value a { color: #18181b; text-decoration: underline; text-underline-offset: 3px; }
.about__info-value a:hover { color: #52525b; }

/* --- Footer Links --- */
.footer__links { margin-bottom: 0.5rem; font-size: 0.8125rem; }
.footer__links a { color: #71717a; transition: color 0.2s; }
.footer__links a:hover { color: #18181b; }
.footer__sep { color: #d4d4d8; margin: 0 0.5rem; }

/* --- Invite Modal --- */
.invite-modal__backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 9998; }
.invite-modal__dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 12px; padding: 32px 28px 24px; width: 320px; max-width: 90vw; z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,0.12); text-align: center; }
.invite-modal__title { font-size: 18px; font-weight: 700; color: #18181b; margin: 0 0 8px; }
.invite-modal__desc { font-size: 14px; color: #71717a; margin: 0 0 20px; }
.invite-modal__input { width: 100%; padding: 10px 14px; font-size: 15px; border: 1px solid #e4e4e7; border-radius: 8px; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.invite-modal__input:focus { border-color: #18181b; }
.invite-modal__error { font-size: 13px; color: #ef4444; margin: 8px 0 0; }
.invite-modal__actions { display: flex; gap: 12px; margin-top: 20px; }
.invite-modal__btn { flex: 1; padding: 10px 0; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; border: none; }
.invite-modal__btn--cancel { background: #f4f4f5; color: #71717a; }
.invite-modal__btn--confirm { background: #18181b; color: #fff; }

/* --- QR Overlay --- */
.qr-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; }
.qr-overlay__line1 { font-size: 20px; font-weight: 700; color: #18181b; margin-bottom: 4px; }
.qr-overlay__line2 { font-size: 14px; color: #71717a; }

/* --- 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; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .site-nav__links { gap: 1rem; }
  .site-nav__links a { font-size: 0.8125rem; }
  .about__info-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

@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; }
  .features__grid { grid-template-columns: 1fr; }
  .site-nav__links { display: none; }
  .features { padding: 3rem 1rem; }
  .about { padding: 3rem 1rem; }
  .about__info { padding: 1rem; }
}

.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; }
