/* cooper-website/assets/molly.css — Molly 相册页样式
   风格：暖色治愈系 · 杂志感排版 · 柔和圆角 */

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

:root {
  --cream: #fdf8f3;
  --cream-2: #f7ede2;
  --ink: #3a322c;
  --ink-soft: #7a6a5d;
  --peach: #ffb38a;
  --peach-deep: #f0824f;
  --rose: #e88c9a;
  --sun: #ffd18c;
  --card: #ffffff;
  --border: rgba(122, 106, 93, 0.16);
  --shadow: 0 12px 40px rgba(122, 90, 60, 0.12);
  --shadow-lg: 0 24px 70px rgba(122, 90, 60, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 12% -5%, rgba(255, 179, 138, 0.30), transparent 60%),
    radial-gradient(1000px 620px at 92% 8%, rgba(232, 140, 154, 0.22), transparent 62%),
    radial-gradient(900px 700px at 50% 115%, rgba(255, 209, 140, 0.28), transparent 60%),
    var(--cream);
  background-attachment: fixed;
}

a { color: var(--peach-deep); text-decoration: none; transition: 0.25s var(--ease); }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem 1.6rem;
  background: rgba(253, 248, 243, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: "Caveat", cursive; font-size: 1.7rem; font-weight: 600;
  color: var(--peach-deep); letter-spacing: 0.5px; margin-right: auto;
}
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.94rem; font-weight: 500;
  padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--peach); }
.back-link {
  font-size: 0.86rem; padding: 0.45rem 0.95rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border); color: var(--ink-soft);
}
.back-link:hover { background: #fff; color: var(--peach-deep); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 4rem; overflow: hidden;
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 138, 0.42), transparent 68%);
  filter: blur(20px); animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }

.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.paw-badge {
  font-size: 3.4rem; width: 108px; height: 108px; margin: 0 auto 1.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow);
  animation: float 3.2s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-kicker {
  font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--peach-deep);
  margin-bottom: 0.2rem;
}
.hero-name {
  font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(3.2rem, 12vw, 6rem); line-height: 1.05; letter-spacing: 2px;
  background: linear-gradient(120deg, var(--peach-deep), var(--rose) 55%, var(--sun));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.6rem;
}
.hero-tagline { font-size: 1.22rem; font-weight: 500; color: var(--ink); margin-bottom: 0.9rem; }
.hero-desc { color: var(--ink-soft); max-width: 30em; margin: 0 auto; }

.hero-stats {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem;
}
.stat {
  min-width: 120px; padding: 1rem 1.3rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--border);
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(122, 90, 60, 0.07);
}
.stat-num {
  display: block; font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: 1.9rem; color: var(--peach-deep); line-height: 1.2;
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); }

.scroll-hint {
  position: absolute; bottom: 2rem; display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem; font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 1px;
}
.scroll-hint .arrow { animation: bob 1.8s ease-in-out infinite; font-size: 1.1rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== 相册 ===== */
.gallery-section { padding: 4rem 1.5rem 5rem; max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-title {
  font-family: "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 0.4rem;
}
.section-sub { color: var(--ink-soft); font-size: 0.95rem; }

.gallery {
  columns: 3 280px; column-gap: 18px;
}
.gallery-item {
  break-inside: avoid; margin-bottom: 18px; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--card); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(26px) scale(0.98);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item.show { opacity: 1; transform: none; }
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 0.9rem;
  color: #fff; font-size: 0.88rem; opacity: 0; transform: translateY(8px);
  background: linear-gradient(to top, rgba(40, 24, 14, 0.72), transparent);
  transition: 0.35s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

.gallery-empty {
  text-align: center; color: var(--ink-soft); padding: 3rem 1rem;
  background: rgba(255,255,255,.6); border: 1px dashed var(--border); border-radius: var(--radius);
}
.gallery-empty code { background: var(--cream-2); padding: .15rem .45rem; border-radius: 6px; }

/* ===== 关于 ===== */
.about-section { padding: 1rem 1.5rem 5rem; display: grid; place-items: center; }
.about-card {
  max-width: 640px; width: 100%; text-align: center;
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.8rem 2rem; box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.about-avatar {
  font-size: 2.6rem; width: 84px; height: 84px; margin: 0 auto 1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,179,138,.35), rgba(232,140,154,.30));
}
.about-text { color: var(--ink-soft); margin: 1rem auto 1.8rem; max-width: 34em; }
.about-facts { list-style: none; display: grid; gap: 0.7rem; text-align: left; max-width: 380px; margin: 0 auto 1.8rem; }
.about-facts li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  background: var(--cream-2);
}
.about-facts span { color: var(--ink-soft); font-size: 0.9rem; }
.about-facts strong { font-weight: 600; }
.about-sign { font-family: "Caveat", cursive; font-size: 1.4rem; color: var(--peach-deep); }

/* ===== 灯箱 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32, 22, 16, 0.9); backdrop-filter: blur(10px);
  padding: 4.5rem 4.5rem;
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-figure { max-width: min(92vw, 1100px); max-height: 86vh; text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 78vh; border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5); object-fit: contain;
}
.lb-figure figcaption { color: #f3e7dd; font-size: .95rem; margin-top: .9rem; }

.lb-close, .lb-nav {
  position: absolute; border: none; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: .25s var(--ease);
}
.lb-close { top: 1.2rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-counter {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: #f3e7dd; font-size: .85rem; letter-spacing: 1px;
}

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 2.4rem 1.5rem 3rem;
  color: var(--ink-soft); font-size: .88rem; border-top: 1px solid var(--border);
}
.footer-quote { font-family: "Caveat", cursive; font-size: 1.25rem; color: var(--peach-deep); margin-top: .3rem; }

/* ===== 响应式 ===== */
@media (max-width: 900px) { .gallery { columns: 2 220px; } }
@media (max-width: 640px) {
  .navbar { padding: .75rem 1rem; gap: .6rem; }
  .nav-links { display: none; }
  .back-link { font-size: .8rem; padding: .4rem .7rem; }
  .gallery { columns: 2 150px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; border-radius: var(--radius-sm); }
  .lightbox { padding: 3.5rem 1rem; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
