/* 六只懒猫科技官网 — 与 App 图标一致的橙色主色，留白、少装饰 */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #18181b;
  --color-muted: #64748b;
  --color-link: #ea580c;
  --color-brand: #ff7a00;
  --color-brand-hover: #ea580c;
  --color-brand-soft: #fff8f0;
  --color-border: #e7e5e4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --max-width: 1040px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-link);
  text-underline-offset: 3px;
}

.site-header,
main,
.site-footer {
  position: relative;
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--color-surface);
  border-radius: 8px;
  z-index: 1000;
  outline: 2px solid var(--color-brand);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* 不使用 backdrop-filter：其在部分浏览器会为后代建立包含块，导致 nav position:fixed 相对 header 裁切、移动端菜单展示不全 */
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover .logo-product {
  color: var(--color-brand-hover);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.logo-product {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.logo-company {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a:not(.btn):hover {
  color: var(--color-brand-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-brand);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-text);
  border-radius: 1px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

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

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.35);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-hover);
}

.btn-outline {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-brand-hover);
  border-color: #d6d3d1;
}

.btn-light {
  background: #fff;
  color: var(--color-text);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  color: var(--color-brand-hover);
}

.btn-compact {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Hero — 官方 App 图标为主视觉 */

.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 12px 40px rgba(255, 122, 0, 0.18);
}

.hero-company {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-brand-hover);
}

.hero-pet-lead {
  margin: 0 auto 14px;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: center;
}

.hero-pet-lead strong {
  color: var(--color-brand-hover);
}

.hero-desc {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.hero-trust {
  margin: 0 auto 10px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero-trust-num {
  font-weight: 800;
  color: var(--color-brand);
}

.hero-platform-card {
  margin: 0 auto 14px;
  max-width: 520px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  background: var(--color-brand-soft);
  border: 1px solid rgba(255, 122, 0, 0.18);
  box-shadow: none;
}

.hero-platform-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-muted);
}

.hero-platform-part--second {
  position: relative;
  padding-left: 14px;
}

.hero-platform-part--second::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: #d6d3d1;
  font-weight: 400;
  pointer-events: none;
}

.hero-platform-part strong {
  margin-right: 2px;
  font-weight: 700;
  color: var(--color-text);
}

.hero-platform-tail {
  color: var(--color-muted);
}

.hero-platform-tail strong {
  font-weight: 700;
  color: var(--color-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-pills li {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section-eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand-hover);
}

.section-eyebrow-on-dark {
  color: rgba(255, 255, 255, 0.85);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 auto 40px;
  max-width: 560px;
  text-align: center;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.product-tools-note {
  margin: 28px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .feature-card--emphasis {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    gap: 8px 20px;
    align-items: start;
    padding: 28px 26px;
  }

  .feature-card--emphasis .feature-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .feature-card--emphasis h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.25rem;
    margin: 0;
  }

  .feature-card--emphasis p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
}

/* 电子萌宠专题条 */

.pet-highlight {
  padding: 56px 0 60px;
  background: linear-gradient(180deg, var(--color-brand-soft) 0%, #fff 100%);
  border-block: 1px solid rgba(255, 122, 0, 0.15);
  scroll-margin-top: 72px;
}

.pet-highlight .section-eyebrow {
  color: var(--color-brand-hover);
}

.pet-highlight h2 {
  margin-bottom: 16px;
}

.pet-lead {
  margin: 0 auto 28px;
  max-width: 720px;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-muted);
}

.pet-lead strong {
  color: var(--color-text);
}

.pet-flow {
  list-style: none;
  margin: 0 auto 32px;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pet-flow-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.pet-flow-step {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 800;
  color: #fff;
  background: var(--color-brand);
}

.pet-flow-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--color-text);
}

.pet-flow-item span:last-child {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.pet-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
}

.pet-trust-item {
  flex: 1 1 240px;
  max-width: 340px;
  padding: 16px 20px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.pet-trust-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.pet-trust-value {
  font-size: 1.05rem;
  color: var(--color-text);
}

/* Assessment band */

.assessment-band {
  background: #27272a;
  color: #fafafa;
  padding: 56px 0;
}

.assessment-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.assessment-band h2 {
  color: #fff;
}

.assessment-lead {
  margin: 0 0 12px;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.7;
}

.assessment-note {
  margin: 0 0 24px;
  font-size: 0.9375rem;
  opacity: 0.75;
}

/* 底部 — 商务合作 */

.contact-final {
  scroll-margin-top: 72px;
  padding-bottom: 72px;
}

.contact-lead {
  max-width: 520px;
}

.contact-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 36px;
  margin-top: 8px;
}

.contact-qr-frame {
  padding: 16px;
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-qr-frame img {
  display: block;
  width: 220px;
  border-radius: 14px;
}

.contact-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  max-width: 320px;
  text-align: center;
}

.contact-wechat-block {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-soft);
  border: 1px solid rgba(255, 122, 0, 0.2);
}

.contact-footnote {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.wechat-id {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text);
  word-break: break-all;
}

/* 右下角 — 仅快捷按钮，点击打开弹窗 */

.biz-float-trigger {
  position: fixed;
  /* 在安全区之上再多留一截，避免贴底条 / Home 指示条 */
  right: max(16px, calc(12px + env(safe-area-inset-right, 0px)));
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 14px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-brand);
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.38);
  transition: background 0.15s ease, transform 0.12s ease;
}

.biz-float-trigger:hover {
  background: var(--color-brand-hover);
}

.biz-float-trigger:active {
  transform: scale(0.98);
}

.biz-float-trigger:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.biz-float-trigger-icon {
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .biz-float-trigger-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .biz-float-trigger {
    padding: 14px;
    border-radius: 50%;
  }
}

/* 商务合作弹窗 */

.biz-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 160;
}

.biz-modal.is-open {
  display: block;
}

body.biz-modal-open {
  overflow: hidden;
}

.biz-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.biz-modal-panel {
  position: relative;
  z-index: 1;
  margin: min(10vh, 80px) auto 24px;
  max-width: 380px;
  width: calc(100% - 32px);
  padding: 22px 20px 18px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.biz-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.biz-modal-close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.biz-modal-heading {
  margin: 0 36px 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.biz-modal-desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.biz-modal-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.biz-modal-qr img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.biz-modal-wechat {
  margin-bottom: 12px;
  padding: 12px;
  text-align: center;
  background: var(--color-brand-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 122, 0, 0.2);
}

.biz-modal-copy {
  width: 100%;
  min-height: 46px;
}

.biz-modal-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
  text-align: center;
}

/* Footer */

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-beian {
  font-size: 0.8125rem;
}

.footer-beian a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.beian-sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  padding: 14px 22px;
  background: #1e293b;
  color: #fff;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile nav */

@media (max-width: 400px) {
  .logo-company {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 24px max(40px, env(safe-area-inset-bottom));
    /* 不透明底：避免半透明在部分移动端合成异常导致「透到 Hero」 */
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* 双保险：动态视口高度，避免底栏/地址栏导致可滚动区域视觉「缺一块」 */
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.22s ease,
      opacity 0.22s ease,
      visibility 0.22s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}
