:root {
  color-scheme: light;
  --bg: #fff6f8;
  --bg-deep: #ffe5ed;
  --paper: rgba(255, 255, 255, 0.84);
  --paper-strong: #fff;
  --ink: #4d2d30;
  --muted: #8b6268;
  --line: rgba(232, 143, 166, 0.32);
  --pink: #f67fa2;
  --pink-deep: #dc557f;
  --rose: #ffd4e0;
  --mint: #b6e6da;
  --lavender: #d6c6ff;
  --honey: #ffe3a8;
  --shadow: 0 18px 52px rgba(218, 116, 146, 0.2);
  --soft-shadow: 0 10px 24px rgba(218, 116, 146, 0.12);
  --radius: 26px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #24181d;
  --bg-deep: #3a202b;
  --paper: rgba(54, 35, 43, 0.86);
  --paper-strong: #402934;
  --ink: #fff1f4;
  --muted: #ddb8c2;
  --line: rgba(255, 177, 199, 0.28);
  --pink: #ff8dac;
  --pink-deep: #ff6f99;
  --rose: #5b3142;
  --mint: #91d9cc;
  --lavender: #cbbdff;
  --honey: #f4c56f;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 16%, rgba(255, 185, 209, 0.36) 0 7%, transparent 8%),
    radial-gradient(circle at 86% 14%, rgba(214, 198, 255, 0.28) 0 6%, transparent 7%),
    linear-gradient(180deg, var(--bg) 0%, #fffafd 48%, var(--bg-deep) 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: 150px;
  height: 150px;
  color: rgba(246, 127, 162, 0.2);
  font-size: 86px;
  line-height: 1;
  pointer-events: none;
}

body::before {
  content: "☆";
  top: 140px;
  right: 8vw;
  transform: rotate(14deg);
}

body::after {
  content: "♡";
  left: 6vw;
  bottom: 90px;
  transform: rotate(-12deg);
}

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

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

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.site-header {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 76px;
  height: 58px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  color: var(--pink-deep);
  font-size: 28px;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 34px);
  min-width: 0;
}

.main-nav a {
  position: relative;
  padding: 12px 8px 18px;
  color: #674349;
  font-weight: 700;
  white-space: nowrap;
}

:root[data-theme="dark"] .main-nav a {
  color: var(--ink);
}

.main-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--pink);
  content: "";
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 72%;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  display: grid;
  grid-template-columns: 20px minmax(0, 96px);
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--pink-deep);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: rgba(139, 98, 104, 0.7);
}

.theme-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-strong);
  color: #7b473c;
  cursor: pointer;
  box-shadow: var(--soft-shadow);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 52px;
  min-height: 372px;
  margin-bottom: 22px;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.56);
  border-radius: 36% 44% 36% 28% / 22% 20% 34% 32%;
  background: #ffe2ed;
  box-shadow: var(--shadow);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  min-height: 346px;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  padding: 8px 0;
}

.hero-copy::before,
.hero-copy::after {
  position: absolute;
  color: rgba(246, 127, 162, 0.38);
  font-size: 46px;
  content: "✦";
}

.hero-copy::before {
  top: -38px;
  left: -52px;
}

.hero-copy::after {
  right: 18px;
  bottom: -46px;
  transform: rotate(18deg);
}

.kicker {
  margin: 0 0 6px;
  font-size: 38px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: inline-block;
  margin-top: 8px;
  padding: 0 8px 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent 48%, rgba(246, 127, 162, 0.28) 49%);
  color: #6b383a;
}

:root[data-theme="dark"] .hero-copy h1 span {
  color: #ffe5ed;
}

.hero-copy p:not(.kicker) {
  max-width: 350px;
  margin: 26px 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  font-weight: 650;
}

.primary-link,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9ab7, #ef668e);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(239, 102, 142, 0.3);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.stats-strip article {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  min-height: 96px;
  padding: 18px 18px;
  border: 1px solid rgba(232, 143, 166, 0.2);
  border-radius: 20px;
  background: var(--paper);
}

.stat-icon {
  grid-row: span 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--rose);
}

.stat-icon::before {
  color: var(--pink-deep);
  font-weight: 900;
}

.stat-icon.doc::before {
  content: "□";
}

.stat-icon.eye::before {
  content: "◇";
}

.stat-icon.paw::before {
  content: "♧";
}

.stat-icon.heart::before {
  content: "♡";
}

.stats-strip p {
  margin: 0 0 5px;
  color: var(--pink-deep);
  font-size: 14px;
  font-weight: 800;
}

.stats-strip strong {
  display: block;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.05;
}

.stats-strip small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  align-items: start;
  gap: 26px;
}

.left-rail,
.right-rail {
  display: grid;
  gap: 22px;
}

.music-card,
.memo-card,
.date-card,
.posts-panel,
.tag-panel,
.visit-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.music-card {
  position: relative;
  min-height: 142px;
  padding: 28px 24px;
  border-radius: 26px;
  background: linear-gradient(145deg, #ffd4e2, #fff6fb);
}

.music-card span,
.music-card small {
  display: block;
  color: rgba(132, 73, 83, 0.72);
  font-size: 12px;
}

.music-card strong {
  display: block;
  margin: 12px 0 5px;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 1px 0 rgba(132, 73, 83, 0.24);
}

.music-card img {
  position: absolute;
  right: 13px;
  bottom: 12px;
  width: 66px;
}

.memo-card {
  position: relative;
  padding: 28px 24px 30px;
  border-radius: 7px;
  background: #fffdf3;
  transform: rotate(-4deg);
}

.memo-card::before {
  position: absolute;
  top: -12px;
  left: 42%;
  width: 66px;
  height: 22px;
  border-radius: 3px;
  background: rgba(255, 211, 151, 0.82);
  content: "";
  transform: rotate(9deg);
}

.memo-card span {
  display: block;
  margin-bottom: 14px;
  color: #8a505d;
  font-weight: 800;
}

.memo-card p,
.date-card p {
  margin: 0;
  color: #6b4a4f;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 650;
}

.date-card {
  position: relative;
  min-height: 168px;
  padding: 34px 16px 20px;
  border-radius: 48% 48% 28px 28px;
  background: linear-gradient(180deg, #ffd7e4, #fff);
  text-align: center;
}

.date-card::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 60px;
  height: 36px;
  border-radius: 50% 50% 12px 12px;
  background: var(--pink);
  content: "";
  transform: translateX(-50%);
}

.date-card strong,
.date-card span {
  display: block;
}

.date-card strong {
  font-size: 15px;
}

.date-card span {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.posts-panel,
.tag-panel,
.visit-panel {
  border-radius: 22px;
}

.posts-panel {
  padding: 22px 22px 24px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h2,
.panel-heading h2,
.visit-panel h2 {
  margin: 0;
  font-size: 20px;
}

.section-heading h2::before,
.panel-heading h2::before,
.visit-panel h2::before {
  content: "✿";
  margin-right: 8px;
  color: var(--pink);
}

.section-heading a,
.panel-heading a {
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 800;
}

.posts-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 246, 249, 0.86), rgba(255, 255, 255, 0.72));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  box-shadow: 0 16px 28px rgba(218, 116, 146, 0.16);
  transform: translateY(-2px);
}

.post-cover {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 112px;
  border-radius: 14px;
  background:
    url("./mini-card.svg") center / cover no-repeat,
    linear-gradient(135deg, #ffd0df, #d7f0ef);
}

.post-cover span {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 34px;
  font-weight: 900;
}

.post-body {
  min-width: 0;
  padding: 4px 4px 2px 0;
}

.post-title {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.post-title:hover {
  color: var(--pink-deep);
}

.post-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 50px;
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #a86a77;
  font-size: 12px;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 217, 227, 0.65);
}

.more-link {
  width: fit-content;
  margin: 22px auto 0;
}

.tag-panel,
.visit-panel {
  padding: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-list a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 13px;
  background: rgba(255, 214, 225, 0.74);
  color: #7d4652;
  font-size: 13px;
  font-weight: 750;
}

:root[data-theme="dark"] .tag-list a {
  color: #ffe9ef;
}

.visit-panel {
  overflow: hidden;
}

.visit-panel h2 {
  margin-bottom: 18px;
}

.visit-panel dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.visit-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visit-panel dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.visit-panel dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
}

.visit-panel img {
  width: 100%;
  margin: 20px auto -8px;
}

.post-skeleton,
.empty-state {
  min-height: 116px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 214, 225, 0.64), rgba(255, 255, 255, 0.78), rgba(255, 214, 225, 0.64));
  background-size: 260% 100%;
  animation: shimmer 1.4s linear infinite;
}

.empty-state {
  display: grid;
  min-height: 120px;
  place-items: center;
  margin: 0;
  color: var(--muted);
  animation: none;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  padding: 20px 10px 0;
  color: #9a6671;
  font-size: 13px;
  text-align: center;
}

@keyframes shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .header-actions {
    width: min(440px, 100%);
  }

  .search-box {
    grid-template-columns: 20px 1fr;
    flex: 1;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy p:not(.kicker) {
    margin-right: auto;
    margin-left: auto;
  }

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

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .left-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 560px);
    padding-top: 16px;
  }

  .brand strong {
    font-size: 24px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .main-nav a {
    padding-bottom: 12px;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-art {
    border-width: 5px;
    border-radius: 28px;
  }

  .hero-art img {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .stats-strip,
  .content-grid,
  .left-rail,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .stats-strip article {
    min-height: 84px;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-cover {
    min-height: 152px;
  }

  .post-body {
    padding: 0;
  }

  .site-footer {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 18px, 390px);
  }

  .header-actions {
    align-items: stretch;
  }

  .search-box {
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .kicker {
    font-size: 32px;
  }

  .posts-panel,
  .tag-panel,
  .visit-panel {
    padding: 18px;
  }
}
