/* 懒宠官网 - 科技感深色主题 */
:root {
  --bg: #070d14;
  --bg-2: #0a1420;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8eef5;
  --text-2: #93a4b5;
  --green: #34d399;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #34d399, #22d3ee);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============ 背景装饰：网格 + 光晕 ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(52, 211, 153, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.glow-1 {
  top: -200px;
  left: 10%;
  background: #34d399;
}

.glow-2 {
  top: 200px;
  right: -150px;
  background: #22d3ee;
}

.glow-3 {
  bottom: -250px;
  left: 35%;
  background: #10b981;
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 13, 20, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav .brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4);
}

.nav .links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  margin-left: 26px;
  transition: color 0.2s;
}

.nav .links a:hover {
  color: var(--text);
}

.nav .download-btn {
  background: var(--grad);
  color: #04120c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.4);
}

/* ============ Hero ============ */
.hero {
  padding: 160px 20px 110px;
  text-align: center;
  position: relative;
}

.hero .app-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 24px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  box-shadow: 0 20px 60px rgba(52, 211, 153, 0.45);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--text-2);
  max-width: 620px;
  margin: 0 auto 46px;
  letter-spacing: 1px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--grad);
  color: #04120c;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 46px;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.hero .cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(52, 211, 153, 0.5);
}

.hero .store-tip {
  margin-top: 18px;
  font-size: 12px;
  color: #5b6b7c;
  letter-spacing: 1px;
}

/* ============ 数据条 ============ */
.stats {
  max-width: 820px;
  margin: -30px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 10px;
  text-align: center;
}

.stat-card .num {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card .label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 2px;
}

/* ============ 功能区 ============ */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 2px;
}

.section-title p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 34px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: rgba(52, 211, 153, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-2);
}

/* ============ 下载区 ============ */
.download-section {
  text-align: center;
  padding: 100px 20px 120px;
  position: relative;
}

.download-section .store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 30px;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s;
}

.download-section .store-badge:hover {
  transform: scale(1.05);
  border-color: rgba(52, 211, 153, 0.6);
}

.store-badge .apple {
  font-size: 34px;
}

.store-badge .text .top {
  color: #9aa8b5;
  font-size: 11px;
  letter-spacing: 1px;
}

.store-badge .text .bottom {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.download-section .qr-tip {
  margin-top: 26px;
  color: var(--text-2);
  font-size: 13px;
}

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 20px 30px;
  text-align: center;
  background: var(--bg-2);
}

.footer .f-links {
  margin-bottom: 18px;
}

.footer .f-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  margin: 0 12px;
  transition: color 0.2s;
}

.footer .f-links a:hover {
  color: var(--green);
}

.footer .copyright {
  font-size: 12px;
  color: #5b6b7c;
  line-height: 2;
}

.footer .copyright a {
  color: #5b6b7c;
  text-decoration: none;
}

/* ============ 入场动画 ============ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 0.8, 0.36, 1) forwards;
}

.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ 协议页（亮色，阅读舒适）============ */
.doc {
  max-width: 760px;
  margin: 80px auto 60px;
  padding: 48px 36px 64px;
  background: #0e1722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.doc h1 {
  font-size: 26px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.doc .update {
  font-size: 12px;
  color: #5b6b7c;
  margin-bottom: 30px;
}

.doc h2 {
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--green);
}

.doc p {
  font-size: 14px;
  color: #c3cdd8;
  margin-bottom: 10px;
}

.doc ol {
  padding-left: 22px;
  margin-bottom: 10px;
}

.doc li {
  font-size: 14px;
  color: #c3cdd8;
  margin-bottom: 8px;
}

.doc .back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
}

/* ============ 移动端 ============ */
@media (max-width: 640px) {
  .nav {
    padding: 14px 18px;
  }
  .nav .links {
    display: none;
  }
  .hero {
    padding: 130px 18px 90px;
  }
  .stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .section {
    padding: 64px 18px;
  }
  .doc {
    margin: 20px 12px 40px;
    padding: 32px 22px 44px;
    border-radius: 18px;
  }
}
