/* ===== 牛牛打卡官网 · 奶油暖色主题 ===== */
:root {
  --brand: #F97316;
  --brand-2: #FB923C;
  --brand-soft: #FFF7ED;
  --ink: #1E293B;
  --muted: #64748B;
  --line: #F1F5F9;
  --bg: #FFF8EE;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 32px rgba(249, 115, 22, 0.16);
}

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

html { scroll-behavior: smooth; }

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

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

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 8px 22px rgba(249, 115, 22, .28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid #FED7AA; }
.btn-ghost:hover { background: var(--brand-soft); }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav.scrolled {
  background: rgba(255, 248, 238, .85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-logo {
  width: 36px; height: 36px; flex-shrink: 0;
  object-fit: contain; display: block;
}
.brand-name { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { color: #fff !important; padding: 10px 22px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, #FFE0CC 0%, transparent 42%),
    radial-gradient(circle at 88% 28%, #FFE8D0 0%, transparent 40%),
    linear-gradient(180deg, #FFF8EE 0%, #FFEFDC 100%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1120px; margin: 0 auto;
  padding: 0 24px; display: flex; align-items: center; gap: 56px;
}
.hero-text { flex: 1; max-width: 600px; }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: #fff; color: var(--brand); font-weight: 700; font-size: 13px;
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -.5px; }
.hero-sub { margin: 22px 0 32px; max-width: 520px; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; color: #EA7A2B; font-weight: 800; }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* ===== Hero 手机样机（浅色版） ===== */
.hero-visual { flex-shrink: 0; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; top: -36px; right: -36px;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--brand); opacity: .1; z-index: -1;
}
.phone {
  width: 320px; height: 580px; border-radius: 40px; background: var(--bg);
  border: 1px solid #F0E2D2; box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
  position: relative; padding: 14px;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; border-radius: 11px; background: #E7D9C9;
}
.phone-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 38px 6px 14px;
}
.phone-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.phone-ver { font-size: 11px; font-weight: 600; color: var(--brand-2); }
.phone-user {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #F1E1CF; border-radius: 16px; padding: 12px; position: relative;
}
.cow-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.pu-meta { display: flex; flex-direction: column; line-height: 1.3; }
.pu-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pu-level { font-size: 12px; color: var(--brand); }
.pu-tag {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.phone-hitokoto {
  background: var(--brand-soft); color: #475569; font-size: 13px;
  border-radius: 14px; padding: 12px 14px; margin-top: 12px;
}
.phone-grid-title, .phone-feed-title {
  font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 6px 10px;
}
.phone-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pg { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pg-ic {
  width: 44px; height: 44px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 22px;
}
.pg-ic img { width: 28px; height: 28px; object-fit: contain; }
.pg1 { background: #FFF1E6; } .pg2 { background: #FEF3C7; }
.pg3 { background: #DBEAFE; } .pg4 { background: #FCE7F3; }
.pg5 { background: #DCFCE7; } .pg6 { background: #EDE9FE; }
.pg7 { background: #FFEDD5; } .pg8 { background: #FEF9C3; }
.pg-lb { font-size: 11px; color: #64748B; }
.phone-feed { display: flex; flex-direction: column; gap: 8px; }
.pf {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #F1E1CF; border-radius: 12px;
  padding: 11px 14px; font-size: 13px;
}
.pf-text { color: var(--ink); font-weight: 500; }
.pf-time { color: var(--muted); font-size: 12px; }

/* ===== 通用 section ===== */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, #FFF8EE, #FFEFDC); }
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-desc { text-align: center; color: var(--muted); margin-bottom: 48px; font-size: 16px; }

/* ===== 功能卡片 ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border: 1px solid rgba(254, 215, 170, .3);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-icon { margin-bottom: 14px; line-height: 0; }
.card-icon img { width: 56px; height: 56px; object-fit: contain; display: block; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ===== 步骤 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { text-align: center; padding: 30px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 22px; font-weight: 800;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== 关于 ===== */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.about-text p { color: var(--muted); margin-top: 16px; font-size: 16px; }
.about-mascot { width: 104px; height: 104px; object-fit: contain; margin-bottom: 18px; display: block; }
.about-card { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border-left: 5px solid var(--brand); }
.about-quote { font-size: 18px; font-weight: 600; line-height: 1.7; }
.about-by { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* ===== CTA（暖色协调版） ===== */
.section-cta {
  background: linear-gradient(135deg, #EA7A2B 0%, #C2410C 100%);
  color: #fff; position: relative; overflow: hidden;
}
.section-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, .18) 0%, transparent 46%);
}
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: 32px; margin-bottom: 10px; }
.cta-inner p { color: rgba(255, 255, 255, .88); margin-bottom: 28px; }
.qrcode {
  width: 200px; height: 200px; margin: 0 auto 24px; background: #fff;
  border-radius: 18px; display: flex; align-items: center; justify-content: center;
  padding: 12px; box-shadow: 0 12px 36px rgba(124, 45, 18, .35);
}
.qrcode img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.qrcode-placeholder { text-align: center; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.6; }
.cta-mail { color: rgba(255, 255, 255, .85); }
.cta-mail a { color: #FFE0CC; font-weight: 700; }

/* ===== 页脚（暖色协调版） ===== */
.footer { background: #2E1C10; color: #B8A08E; padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.footer a { color: #FB923C; font-weight: 600; }

/* ===== 滚动动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 620px) {
  .nav-links {
    position: absolute; top: 64px; right: 16px; left: 16px;
    flex-direction: column; gap: 4px; background: #fff; padding: 16px;
    border-radius: 16px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 8px; }
  .nav-toggle { display: flex; }
  .grid, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 24px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 27px; }
}
