﻿:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef5f0;
  --ink: #1c292b;
  --muted: #5d6c70;
  --line: #d7e1dc;
  --green: #3f806b;
  --blue: #3e6f98;
  --coral: #c86c55;
  --yellow: #e7bd58;
  --shadow: 0 22px 65px rgba(29, 48, 50, 0.12);
  --shadow-soft: 0 14px 38px rgba(29, 48, 50, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(235, 242, 239, 0.94), rgba(247, 248, 245, 0) 410px),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 248, 245, 0.84);
  border-bottom: 1px solid rgba(215, 225, 220, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(63, 128, 107, 0.45);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(226,241,235,.92) 54%, rgba(244,224,216,.92)),
    #fff;
  box-shadow: 0 10px 22px rgba(63, 128, 107, 0.18);
}

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--green);
}

.text-link,
.card-link {
  color: var(--green);
  font-weight: 700;
}

.text-link:hover,
.card-link:hover,
.note-card h3 a:hover,
.gallery-card a:hover {
  color: var(--blue);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(820px, calc(100vh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(350px, 1.04fr);
  align-items: center;
  gap: 56px;
  padding: 42px 0 74px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker,
.date,
.tag {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 14px 0 18px;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-media {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.96) 0%, rgba(239,246,242,.92) 58%, rgba(236,242,248,.88) 100%),
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(238,247,243,.86));
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(31, 43, 44, 0.16);
}

.photo-stack {
  padding: 18px;
}

.hero-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 24px 68px rgba(31, 43, 44, 0.18);
}

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

.hero-photo-1 {
  inset: 22px 22px 118px 84px;
}

.hero-photo-2 {
  left: 24px;
  bottom: 34px;
  width: 42%;
  height: 175px;
}

.hero-photo-3 {
  right: 34px;
  bottom: 26px;
  width: 39%;
  height: 198px;
}

.hero-status {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(31, 43, 44, 0.13);
}

.hero-status span {
  color: var(--green);
  font-weight: 800;
}

.hero-status strong {
  font-size: 14px;
  color: var(--ink);
}

.hero-empty {
  height: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
}

.hero-empty span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.hero-empty strong {
  color: var(--muted);
}

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

.primary-link,
.ghost-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
}

.primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #2f6758);
  box-shadow: 0 16px 38px rgba(63, 128, 107, 0.25);
}

.ghost-link {
  color: var(--green);
  border: 1px solid rgba(77, 138, 118, 0.28);
  background: rgba(255, 255, 255, 0.7);
}

.sun {
  position: absolute;
  top: 48px;
  right: 54px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 18px rgba(240, 200, 104, 0.16);
}

.window {
  position: absolute;
  left: 46px;
  top: 42px;
  width: 210px;
  height: 220px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.window span {
  border-radius: 8px;
  background: linear-gradient(180deg, #d8edf6, #ffffff);
  border: 1px solid rgba(77, 121, 168, 0.2);
}

.desk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  background: #f7dfd5;
  border-top: 1px solid rgba(216, 118, 88, 0.22);
}

.notebook {
  position: absolute;
  left: 64px;
  bottom: 48px;
  width: 230px;
  height: 112px;
  padding: 24px 26px;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 35px rgba(74, 48, 40, 0.15);
  transform: rotate(-4deg);
}

.notebook i {
  display: block;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #dbe7e2;
}

.notebook i:nth-child(2) {
  width: 76%;
  background: #c6d9dd;
}

.notebook i:nth-child(3) {
  width: 54%;
  background: #ead1c5;
}

.cup {
  position: absolute;
  right: 86px;
  bottom: 54px;
  width: 66px;
  height: 72px;
  border-radius: 8px 8px 24px 24px;
  background: var(--green);
  box-shadow: inset 0 12px 0 rgba(255, 255, 255, 0.18);
}

.cup::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 18px;
  width: 28px;
  height: 32px;
  border: 7px solid var(--green);
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.pencil {
  position: absolute;
  right: 178px;
  bottom: 70px;
  width: 120px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--yellow) 70%, var(--coral) 70%);
  transform: rotate(18deg);
}

.section {
  padding: 78px 0;
  border-top: 1px solid rgba(215, 225, 220, 0.92);
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.intro h2,
.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.intro p:last-child {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.admin-panel {
  border-top: 0;
  padding-top: 38px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(219, 231, 226, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,252,.9)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 138, 118, 0.38);
  box-shadow: 0 26px 64px rgba(31, 43, 44, 0.13);
}

.admin-card.primary {
  background:
    linear-gradient(135deg, rgba(77,138,118,.96), rgba(47,103,88,.96)),
    var(--green);
  color: #fff;
  border-color: transparent;
}

.admin-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf6f2;
  color: var(--green);
  font-weight: 900;
}

.admin-card.primary .admin-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.admin-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.admin-card em {
  color: var(--muted);
  font-style: normal;
}

.admin-card.primary em {
  color: rgba(255, 255, 255, 0.82);
}

.note-list,
.idea-grid,
.album-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.note-card,
.idea-card,
.album-card,
.gallery-card,
.empty-gallery {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,252,.94)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.note-card.featured {
  background:
    linear-gradient(135deg, rgba(238,245,240,.98), rgba(255,255,255,.92)),
    var(--surface-soft);
}

.gallery-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(238, 247, 243, 0.42));
}

.album-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 240px 1fr;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.note-card,
.idea-card,
.gallery-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.note-card:hover,
.idea-card:hover,
.album-card:hover,
.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 128, 107, 0.28);
  box-shadow: 0 22px 58px rgba(31, 43, 44, 0.12);
}

.album-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-soft);
}

.album-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.album-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.album-body p {
  margin: 0;
  color: var(--muted);
}

.album-meta {
  color: var(--green) !important;
  font-weight: 800;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--surface-soft);
}

.gallery-card figcaption {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}

.gallery-card strong {
  font-size: 17px;
}

.gallery-card span,
.photo-tile span,
.empty-gallery p {
  color: var(--muted);
}

.album-photos {
  padding-top: 26px;
}

.photo-masonry {
  column-count: 3;
  column-gap: 16px;
}

.photo-tile {
  break-inside: avoid;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.photo-tile-image {
  display: block;
  background: var(--surface-soft);
}

.photo-tile-image img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-tile figcaption {
  display: grid;
  gap: 7px;
  padding: 13px 14px 14px;
}

.photo-tile strong {
  font-size: 16px;
  line-height: 1.3;
}

.photo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(16, 24, 24, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-panel {
  margin: 0;
  min-width: 0;
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.lightbox-panel img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: #111818;
}

.lightbox-panel figcaption {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
}

.lightbox-panel p {
  margin: 0;
  color: var(--muted);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 14px;
}

.lightbox-nav {
  width: 56px;
  height: 64px;
  font-size: 42px;
  line-height: 1;
}

.empty-gallery {
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
}

.empty-gallery p {
  margin: 0;
}

.note-card h3,
.idea-card h3 {
  margin: 16px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.note-card p:last-child,
.idea-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
}

.page-hero {
  padding: 86px 0 42px;
}

.page-hero h1,
.detail-page h1 {
  margin: 12px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.wide-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 82px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 700;
}

.note-body {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 43, 44, 0.06);
  font-size: 18px;
}

.note-body p {
  margin: 0 0 18px;
}

.note-body p:last-child {
  margin-bottom: 0;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.button-link.secondary {
  background: var(--surface-soft);
  color: var(--green);
  border: 1px solid var(--line);
}

.photo-detail {
  max-width: 1080px;
}

.photo-frame {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.photo-frame img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(77, 138, 118, 0.28);
  border-radius: 8px;
  background: #f3fbf8;
  color: var(--green);
  text-transform: none;
}

.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .nav {
    height: auto;
    min-height: 64px;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 0 58px;
  }

  .hero-media {
    min-height: 360px;
    order: -1;
  }

  .hero-photo-1 {
    inset: 18px 18px 108px 18px;
  }

  .hero-photo-2 {
    left: 18px;
    bottom: 26px;
    width: 45%;
    height: 150px;
  }

  .hero-photo-3 {
    right: 18px;
    bottom: 26px;
    width: 45%;
    height: 150px;
  }

  .hero-status {
    left: 18px;
    right: 18px;
    bottom: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .intro,
  .note-list,
  .idea-grid,
  .album-grid,
  .gallery-grid,
  .admin-grid,
  .wide-list {
    grid-template-columns: 1fr;
  }

  .photo-masonry {
    column-count: 2;
  }

  .lightbox {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 14px;
  }

  .lightbox-nav {
    width: 42px;
    height: 52px;
    font-size: 34px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .page-hero,
  .detail-page {
    padding: 52px 0;
  }

  .note-body {
    padding: 20px;
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    display: block;
  }

  .section-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .photo-masonry {
    column-count: 1;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .lightbox-panel {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-nav {
    grid-row: 2;
    width: 100%;
  }
}

