﻿:root {
  --bg: #FFFBF4;
  --card: #FFFFFF;
  --ink: #3D2E22;
  --ink-2: #8C7B68;
  --ink-3: #B3A99D;
  --line: #F3E9DA;
  --gold: #FFC24B;
  --orange: #FF8A3D;
  --green: #23976B;
  --pink: #E8608A;
  --blue: #5B9BE0;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 8px 28px rgba(160, 120, 70, .10);
  --shadow-soft: 0 4px 16px rgba(160, 120, 70, .07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }

#app { min-height: 100vh; min-height: 100dvh; }

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
  background: var(--bg);
}

/* ============ 封面 ============ */

.cover {
  position: relative;
  height: 236px;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #FFD98A 0%, #FFB65C 45%, #FF9350 100%);
}

.cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.55), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.30), transparent 42%);
}

.cover-pets {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 190px;
  height: 190px;
  opacity: .28;
  color: #fff;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(14px + env(safe-area-inset-top)) 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: #7A4413;
  letter-spacing: .5px;
}

.topbar-tag {
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============ 主卡 ============ */

.sheet {
  position: relative;
  margin-top: -50px;
  padding: 0 16px 8px;
}

.card-main {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0 20px 22px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: -52px auto 12px;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  background: linear-gradient(145deg, #FFE3B0, #FFC07A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 600;
  color: #B06A1E;
  box-shadow: 0 6px 20px rgba(200, 140, 60, .22);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.name {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gender {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  line-height: 1.5;
}

.gender.male { color: var(--blue); background: #EAF3FD; }
.gender.female { color: var(--pink); background: #FDEDF2; }

.subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .3px;
}

/* ============ 信息栅格 ============ */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.grid-item {
  padding: 12px 6px;
  text-align: center;
}

.grid-item:nth-child(odd) { border-right: 1px solid var(--line); }
.grid-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

.grid-item .gk {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 3px;
  letter-spacing: .5px;
}

.grid-item .gv {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ============ 徽章 ============ */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.badge {
  font-size: 12px;
  color: var(--green);
  background: #EAF7F1;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 500;
}

/* ============ 统计 ============ */

.stats {
  display: flex;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.stat {
  flex: 1;
  text-align: center;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.stat b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.stat span {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .5px;
}

/* ============ 区块 ============ */

.block {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  margin-top: 12px;
}

.block-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.block-title .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  color: #8A5A1E;
  background: #FFF4E0;
  border-radius: 10px;
  padding: 6px 12px;
}

/* ============ 底部操作 ============ */

.actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 244, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(243, 233, 218, .8);
}

.actions-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .16s ease, opacity .16s ease;
}

.btn:active { transform: scale(.975); }

.btn.ghost {
  color: #A9651C;
  background: #FFF3DF;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #FFC24B, #FF8A3D);
  box-shadow: 0 6px 18px rgba(255, 138, 61, .32);
}

/* ============ 朋友圈 ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255, 251, 244, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-back {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #FFF3DF;
  color: #A9651C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3px;
}

.feed {
  padding: 14px 16px 24px;
}

.post {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  margin-bottom: 12px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FFE3B0, #FFC07A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #B06A1E;
  flex: none;
  overflow: hidden;
}

.post-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.post-time {
  font-size: 11px;
  color: var(--ink-3);
}

.post-text {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #4A3A2C;
  word-break: break-word;
}

.post-foot {
  display: flex;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.foot-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.foot-item svg { width: 15px; height: 15px; }

/* ============ 空状态 ============ */

.empty {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
}

.empty-icon {
  width: 96px;
  height: 96px;
  border-radius: 32px;
  background: #FFF3DF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E0A34E;
  margin-bottom: 22px;
}

.empty-icon svg { width: 48px; height: 48px; }

.empty h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.empty p {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.8;
}

.empty .hint {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ============ 骨架屏 ============ */

.skeleton {
  padding: 0 16px;
}

.sk {
  background: linear-gradient(90deg, #F6EEE2 25%, #FDF8F0 50%, #F6EEE2 75%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: 10px;
}

.sk-cover { height: 268px; border-radius: 0; margin: 0 -16px; }
.sk-avatar { width: 104px; height: 104px; border-radius: 50%; margin: -52px auto 14px; border: 4px solid #fff; }
.sk-line { height: 16px; margin: 10px auto; }
.sk-w40 { width: 40%; }
.sk-w60 { width: 60%; }
.sk-block { height: 90px; margin-top: 14px; }

@keyframes sk {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ============ 小程序引导层 ============ */

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(60, 40, 20, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity .22s ease;
}

.sheet-mask.show { opacity: 1; }

.sheet-box {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  transform: translateY(16px);
  transition: transform .26s ease;
}

.sheet-mask.show .sheet-box { transform: translateY(0); }

.sheet-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.sheet-box p {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}

.qr-slot {
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  border-radius: 16px;
  border: 1px dashed #E5D6C0;
  background: #FFFDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  padding: 10px;
  text-align: center;
  line-height: 1.7;
}

.sheet-close {
  margin-top: 4px;
  height: 46px;
  width: 100%;
  border-radius: 13px;
  background: #FFF3DF;
  color: #A9651C;
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 520px) {
  body { background: #F4EBDD; }
  .page { box-shadow: 0 0 60px rgba(140, 100, 50, .12); }
  .actions { left: 50%; transform: translateX(-50%); max-width: 480px; border-radius: 0; }
}

/* ---------- ICP 备案号 ---------- */
.icp {
  text-align: center;
  padding: 8px 0 16px;
}

/* 名片页有底部悬浮按钮，备案号下移避开 */
body.has-actions .icp {
  padding-bottom: 260px;
}

.icp a {
  font-size: 12px;
  color: #C0B29E;
  text-decoration: none;
}

/* 有底部悬浮按钮的页面，备案号往下挪，别被按钮挡住 */
body:has(.actions) .icp {
  padding-bottom: 260px;
}

.sheet-tip {
  font-size: 12px;
  color: #A89885;
  line-height: 1.7;
}


/* ============================================================
   官网首页 · 宽幅网站画幅（/lnd 前缀不与名片页冲突）
   ============================================================ */

.lnd {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px 56px;
}

/* ---------- 顶部导航 ---------- */

.lnd-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 30px 0 10px;
}

.lnd-brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 3px;
}

.lnd-brand-sub {
  font-size: 14px;
  color: var(--ink-2);
}

.lnd-top-tel {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Hero：左文右图 ---------- */

.lnd-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 46px 0 40px;
}

.lnd-hero-txt {
  flex: 1.1;
  min-width: 0;
}

.lnd-hero-txt h1 {
  margin: 0 0 20px;
  font-size: 58px;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: 2px;
}

.lnd-hero-txt h1::first-line { color: var(--pink); }

.lnd-hero-txt p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-2);
}

.lnd-pill {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: #FDEDF1;
  color: var(--pink);
  font-size: 15px;
  font-weight: 700;
}

.lnd-hero-img {
  flex: .9;
  display: flex;
  justify-content: center;
}

.lnd-hero-img img {
  width: min(340px, 100%);
  animation: lnd-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 26px rgba(160,120,70,.18));
}

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

/* ---------- 区块通用 ---------- */

.lnd-sec { padding: 26px 0 6px; }

.lnd-sec h2 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 1px;
}

.lnd-sec-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- 明星宠物卡片墙 ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.wall-card {
  display: block;
  background: var(--card);
  border-radius: 26px;
  padding: 14px 14px 18px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
  animation: lnd-up .6s ease backwards;
}

/* 交错入场 */
.wall-card:nth-child(1) { animation-delay: .05s; }
.wall-card:nth-child(2) { animation-delay: .13s; }
.wall-card:nth-child(3) { animation-delay: .21s; }
.wall-card:nth-child(4) { animation-delay: .29s; }
.wall-card:nth-child(5) { animation-delay: .37s; }

@keyframes lnd-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wall-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(232, 96, 138, .18);
}

.wall-ph {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
}

.wall-ph img {
  width: 78%;
  transform-origin: bottom center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}

.wall-card:hover .wall-ph img {
  animation: lnd-wiggle .55s ease-in-out 2;
}

@keyframes lnd-wiggle {
  0%, 100% { transform: rotate(0) scale(1.06); }
  25% { transform: rotate(-5deg) scale(1.1); }
  65% { transform: rotate(5deg) scale(1.1); }
}

.wall-nm {
  display: block;
  margin-top: 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  transition: color .2s ease;
}

.wall-card:hover .wall-nm { color: var(--pink); }

.wall-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-2);
}

.wall-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.wall-tags i {
  font-style: normal;
  font-size: 12px;
  color: var(--pink);
  background: #FDEDF1;
  border-radius: 999px;
  padding: 3px 11px;
}

/* ---------- 怎么用：三步横排 ---------- */

.lnd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.step b {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.step span {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- 小程序功能：四宫格 ---------- */

.lnd-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feat {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  border-top: 4px solid #FDEDF1;
}

.feat b {
  display: block;
  font-size: 15px;
  color: var(--pink);
  margin-bottom: 6px;
}

.feat span {
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- 关于 ---------- */

.lnd-about {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 30px;
}

.lnd-about p {
  margin: 6px 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.9;
}

.lnd-about p:first-of-type { color: var(--ink); }

/* ---------- 响应式 ---------- */

@media (max-width: 920px) {
  .lnd-hero { flex-direction: column; text-align: center; gap: 8px; }
  .lnd-hero-txt h1 { font-size: 42px; }
  .lnd-hero-img img { width: min(260px, 80%); }
  .wall { grid-template-columns: repeat(3, 1fr); }
  .lnd-steps { grid-template-columns: 1fr; }
  .lnd-feats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .lnd { padding: 0 18px 40px; }
  .lnd-hero-txt h1 { font-size: 34px; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wall-ph { height: 120px; }
  .lnd-top-tel { display: none; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  .lnd-hero-img img, .wall-card, .wall-card:hover .wall-ph img { animation: none; }
  .wall-card, .wall-ph img { transition: none; }
}
