/* ============================================================
   小英 · 网站样式
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --bg: #fdf6ee;          /* 奶油底色 */
  --bg-soft: #fffbf4;
  --ink: #4a3728;         /* 暖棕文字 */
  --ink-soft: #8a7565;
  --accent: #f08a4b;      /* 暖橙 */
  --accent-deep: #e0712b;
  --accent-2: #f3b8a0;    /* 浅杏 */
  --line: #f0e2d2;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(160, 120, 80, 0.14);
  --shadow-sm: 0 6px 18px rgba(160, 120, 80, 0.10);
  --radius: 22px;
  --font-display: "ZCOOL KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(253, 246, 238, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 226, 210, 0.7);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-paw { font-size: 26px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; }
.logo-en { font-size: 10px; letter-spacing: 2px; color: var(--ink-soft); }

.nav { display: flex; gap: 8px; }
.nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.nav a:hover { color: var(--accent-deep); background: rgba(240, 138, 75, 0.10); }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vh, 90px) clamp(18px, 5vw, 48px) 60px;
  background:
    radial-gradient(circle at 12% 20%, rgba(243, 184, 160, 0.25), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(240, 138, 75, 0.18), transparent 40%),
    var(--bg);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 96px);
  line-height: 1;
  letter-spacing: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-en {
  font-family: var(--font-body);
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent);
}

.hero-tagline {
  margin-top: 16px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
}

.hero-intro {
  margin-top: 12px;
  max-width: 520px;
  color: var(--ink-soft);
}

.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(240, 138, 75, 0.35);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.btn-big { padding: 16px 36px; font-size: 18px; }

/* ---------- 首屏照片（拍立得） ---------- */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.polaroid {
  background: #fff;
  padding: 12px 12px 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
  transition: transform 0.3s;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid img {
  width: min(320px, 72vw);
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.polaroid-caption {
  display: block;
  text-align: center;
  padding: 12px 4px 14px;
  font-family: var(--font-display);
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.float-paw {
  position: absolute;
  font-size: 30px;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(160, 120, 80, 0.2));
}
.paw-1 { top: 4%; left: 6%; }
.paw-2 { bottom: 14%; left: -2%; animation-delay: 1.2s; }
.paw-3 { top: 16%; right: 2%; animation-delay: 2.4s; }

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

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 44px;
  color: var(--ink-soft);
  font-size: 14px;
}
.scroll-hint span { font-size: 20px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- 分区通用 ---------- */
.section {
  padding: clamp(56px, 9vw, 100px) clamp(18px, 5vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
}
.section-tint {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 44px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 48px);
  letter-spacing: 3px;
}
.section-sub { margin-top: 6px; color: var(--ink-soft); }

/* ---------- 照片墙（瀑布流） ---------- */
.gallery {
  columns: 3;
  column-gap: 18px;
}
.photo {
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}
.photo img {
  width: 100%;
  transition: transform 0.35s;
}
.photo:hover img { transform: scale(1.06); }
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.photo:hover .photo-caption { opacity: 1; transform: translateY(0); }

/* ---------- 生活记录（时间线） ---------- */
.diary {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.diary::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.diary-item {
  position: relative;
  padding: 0 0 28px 52px;
}
.diary-dot {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-2);
}
.diary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.diary-head { display: flex; align-items: center; gap: 12px; }
.diary-emoji { font-size: 28px; }
.diary-meta { flex: 1; }
.diary-title { font-size: 17px; }
.diary-date { font-size: 13px; color: var(--ink-soft); }
.diary-text { margin-top: 8px; color: var(--ink-soft); }

/* ---------- 互动区 ---------- */
.fan-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px 28px;
  box-shadow: var(--shadow);
}
.fan-emoji { font-size: 56px; }
.fan-text { margin: 14px 0 22px; font-size: 18px; }
.fan-text strong { color: var(--accent-deep); font-size: 22px; }
.fan-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

#pat-btn.pop { animation: pop 0.35s; }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* 点击飘出的小表情 */
.burst {
  position: fixed;
  z-index: 200;
  font-size: 26px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: burst 0.9s ease-out forwards;
}
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -160px) scale(1.4) rotate(20deg); }
}

/* ---------- 页脚 ---------- */
.site-footer {
  text-align: center;
  padding: 48px 20px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--ink);
}
.contact-list { margin: 14px 0 8px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact-item { font-size: 14px; }
.copyright { font-size: 13px; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(30, 20, 12, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: min(88vw, 720px);
  max-height: 74vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-caption { margin-top: 16px; color: #fff; font-size: 15px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 40px;
  color: #fff;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 46px;
  color: #fff;
  background: none;
  border: none;
  padding: 10px 20px;
  opacity: 0.7;
}
.lightbox-nav:hover { opacity: 1; }
#lightbox-prev { left: 8px; }
#lightbox-next { right: 8px; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s;
  z-index: 60;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 滚动渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 1; }
  .hero-photo { order: 2; }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .polaroid img { width: min(280px, 66vw); }
  .gallery { columns: 2; }
  .nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 400px) {
  .gallery { columns: 1; }
}
