:root {
  --bg: #fff8f2;
  --bg-soft: #fff3ea;
  --cream: #ffeedf;
  --primary: #f08dad;
  --primary-deep: #db6c90;
  --ink: #5f4b4b;
  --line: #f2cdd6;
  --card: #fffdfb;
  --shadow: 0 12px 30px rgba(224, 149, 173, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, #fff 80%);
  min-height: 100vh;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.blob-1 {
  width: 260px;
  height: 260px;
  left: -90px;
  top: -80px;
  background: #ffd9e6;
}

.blob-2 {
  width: 320px;
  height: 320px;
  right: -120px;
  top: 120px;
  background: #ffe9c9;
}

.blob-3 {
  width: 220px;
  height: 220px;
  left: 35%;
  bottom: -110px;
  background: #f9e6ff;
}

.site-header,
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  padding: 32px 0 18px;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--primary-deep);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
}

.subtitle {
  margin: 14px 0 0;
  line-height: 1.6;
  max-width: 600px;
}

.line-dog-card,
.module-card,
.detail-card {
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.line-dog-card {
  padding: 16px 16px 8px;
  color: #7b5b5b;
}

.line-dog-card svg {
  width: 100%;
  display: block;
}

.line-dog-card p {
  margin: 10px 0 4px;
  text-align: center;
  font-size: 14px;
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 0 38px;
}

.module-card {
  text-decoration: none;
  color: inherit;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: #ebb2c2;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  font-size: 18px;
}

.module-card h2 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.module-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

.detail-page {
  padding: 26px 0 38px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 600;
}

.detail-card {
  padding: 20px;
  margin-bottom: 16px;
}

.detail-head h1 {
  font-size: clamp(24px, 4vw, 34px);
}

.detail-head p {
  margin-top: 8px;
}

.entry-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.entry-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
}

button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), #f3a1ba);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

.entry-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.entry-item {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--bg-soft);
}

.entry-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.entry-item h3 {
  margin: 0;
  font-size: 16px;
}

.entry-item p {
  margin: 8px 0 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.entry-actions button {
  padding: 6px 10px;
  font-size: 12px;
  background: #ffd2e2;
  color: #7f4f63;
}

.period-tip {
  margin-top: 10px;
  border: 2px dashed #f2b8cb;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff5fa;
}

.period-tip h3 {
  margin: 0 0 6px;
}

.period-tip p {
  margin: 0;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 16px;
  }
}
