/* ============================================
   田东晓 · Daisy Soft
   Floral header · Clean stack · No side-by-side text+image
   ============================================ */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #2c2c2c;
  --ink-2: #5a5a5a;
  --muted: #9a9590;
  --mint: #c8e6c9;
  --mint-deep: #7cb342;
  --mint-soft: #e8f5e9;
  --pink: #f8bbd9;
  --accent: #e57373;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "KaiTi", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --max: 920px;
  --r: 10px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

.bg-scene {
  display: none;
}

.orb {
  display: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

a:hover {
  color: var(--accent);
}

img, video {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ========== Header：雏菊条 + 导航一体，无多余空隙 ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  /* 顶栏雏菊图案，紧贴导航，下面不再挂一条空白带 */
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-nav::before {
  content: "";
  display: block;
  height: 36px;
  background-color: #d4edda;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='36' viewBox='0 0 48 36'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Ccircle cx='12' cy='18' r='4'/%3E%3Ccircle cx='12' cy='18' r='1.5' fill='%23fff59d' stroke='%23fff59d'/%3E%3Ccircle cx='36' cy='18' r='4'/%3E%3Ccircle cx='36' cy='18' r='1.5' fill='%23fff59d' stroke='%23fff59d'/%3E%3C/g%3E%3Cpath d='M12 14c0-2 1.5-3.5 0-5M16 18c2 0 3.5-1.5 5 0M12 22c0 2 1.5 3.5 0 5M8 18c-2 0-3.5-1.5-5 0' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M36 14c0-2 1.5-3.5 0-5M40 18c2 0 3.5-1.5 5 0M36 22c0 2 1.5 3.5 0 5M32 18c-2 0-3.5-1.5-5 0' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 48px 36px;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0.85rem 0;
  min-height: auto;
}

/* 品牌藏进导航流，不占第二行怪空隙 */
.nav-brand {
  display: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.35rem;
  width: 100%;
}

.nav-links li {
  border: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-radius: 6px;
  text-transform: none;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--mint-soft);
}

.nav-links a.active {
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  background: #eee;
  color: var(--ink);
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--ink);
}

.btn-primary {
  background: #1a1a1a;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  color: #fff;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px #ddd;
}

.btn-ghost:hover {
  background: #f5f5f5;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #ccc;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

/* ========== Hero ========== */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 3.5rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  align-self: center;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--mint-deep);
  background: var(--mint-soft);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s var(--ease) both;
}

.hero-badge::before {
  display: none;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
  text-transform: none;
  animation: fadeUp 0.55s 0.05s var(--ease) both;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: 0.2em;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.55s 0.1s var(--ease) both;
}

.hero-subtitle a {
  color: inherit;
}

.hero-subtitle a:hover {
  color: var(--accent);
}

.hero-divider {
  display: none;
}

.hero-msg {
  max-width: 28rem;
  margin: 0 auto 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.85;
  animation: fadeUp 0.55s 0.15s var(--ease) both;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  animation: fadeUp 0.6s 0.2s var(--ease) both;
  border: none;
  background: transparent;
}

.feature-card {
  padding: 1.35rem 1.25rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  border: none;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: var(--surface);
  color: var(--ink);
}

.feature-card:hover h3,
.feature-card:hover p,
.feature-card:hover .feature-num,
.feature-card:hover .arrow {
  color: inherit;
}

.feature-card:hover .arrow {
  color: var(--accent);
}

.feature-num {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.feature-icon {
  display: none;
}

.feature-card h3 {
  font-size: 1.15rem;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.86rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.6;
}

.feature-card .arrow {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--mint-deep);
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-body);
}

.hint {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  animation: fadeUp 0.6s 0.28s var(--ease) both;
}

/* ========== Page header ========== */
.page-header {
  padding: 2rem 0 1rem;
  border: none;
  margin-bottom: 1.25rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.page-header h1::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--mint-deep);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.page-header p {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
  font-family: var(--font-body);
  margin-top: 0.65rem;
}

/* ========== Photos ========== */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-swap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
}

.photo-swap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.35s ease;
}

.photo-swap img.swap-main {
  position: relative;
  z-index: 1;
}

.photo-swap img.swap-alt {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
}

.photo-swap:hover img.swap-alt {
  opacity: 1;
}

/* 生日页：单行人生计数 */
.life-stats {
  font-size: 0.9rem !important;
  letter-spacing: 0.06em !important;
  color: var(--ink-2) !important;
  margin-top: 0.75rem !important;
}

/* 首页轻标签 */
.hero-bday-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s var(--ease) both;
}

.hero-bday-row .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: #fff5f7;
  color: var(--accent);
}

.hero-bday-row .pill.mint {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

/* 生日图：圆角、等分，小间距；保证图片真正铺满 */
.pics-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  border: none;
  background: transparent;
}

.pics-2 > * {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r);
  background: #f0eeea;
  position: relative;
  min-height: 160px;
}

.pics-2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pics-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  margin: 1.25rem 0 0.5rem;
  border: none;
  background: transparent;
}

.pics-3 > * {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r);
  background: #f0eeea;
  min-height: 120px;
  position: relative;
}

.pics-3 img,
.pics-3 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.hint-line {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.75rem 0 0.5rem;
}

/* ========== 网瘾少女：全部上下堆叠，不并排 ========== */
.game-intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.game-intro .avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.game-intro .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-intro .quote {
  max-width: 28rem;
  margin: 0 auto;
}

.game-intro .quote p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.75;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.game-intro .quote .highlight {
  color: var(--accent);
}

/* 截图：纯图片网格，文字不夹在图中间 */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  border: none;
  background: transparent;
}

.shots figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r);
  background: #f0eeea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shots figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 最后一张图单独全宽，吐槽在图下方 */
.game-finale.banter,
.banter {
  margin: 1.25rem 0 0.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.6;
  padding: 0;
  background: transparent;
  border: none;
}

/* 兼容旧 class 名，避免残留 */
.game-top,
.game-end {
  display: none;
}

/* ========== 文摘 ========== */
.nuli-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.92), rgba(250, 248, 244, 0.95)),
    url("../photo/1604749734701.jpg") center / cover no-repeat fixed;
}

.note-stack {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.note-card {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: none;
}

.note-card .tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.note-card .excerpt {
  font-size: 0.98rem;
  color: var(--ink-2);
  text-indent: 2em;
  line-height: 1.95;
  margin-bottom: 0.75rem;
}

.note-card .source {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
}

.note-card.emphasis {
  background: linear-gradient(145deg, var(--mint-soft), #fff5f7);
  text-align: center;
  border-top: none;
  padding-top: 1.5rem;
}

.note-card.emphasis p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-align: center;
}

/* ========== Footer ========== */
.site-footer {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.5rem 0 2rem;
  border: none;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
  font-family: var(--font-body);
}

.site-footer::before {
  display: none;
}

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

.fade-in { animation: fadeUp 0.45s var(--ease) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }

@media (max-width: 720px) {
  .pics-3 {
    grid-template-columns: 1fr;
  }

  .pics-3 > * {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .feature-grid,
  .pics-2,
  .shots {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
