:root {
  --bg: #f8f2e4;
  --bg-soft: rgba(255, 252, 245, 0.88);
  --panel: rgba(255, 253, 248, 0.82);
  --panel-strong: rgba(255, 253, 248, 0.92);
  --line: rgba(124, 145, 115, 0.18);
  --line-soft: rgba(124, 145, 115, 0.1);
  --ink: #325948;
  --muted: #728479;
  --accent: #4d775b;
  --accent-soft: rgba(104, 136, 109, 0.14);
  --shadow: 0 20px 48px rgba(149, 127, 85, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top center, rgba(255, 244, 212, 0.92), transparent 24%),
    radial-gradient(circle at bottom right, rgba(221, 233, 209, 0.5), transparent 24%),
    linear-gradient(180deg, #fbf7ed 0%, #f8f2e4 100%);
}

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

input,
button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 28px 22px 20px;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.72), rgba(255, 250, 241, 0.52));
  display: grid;
  gap: 26px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 248, 223, 0.95), rgba(240, 228, 191, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 28px;
}

.brand-mark--small {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  font-size: 24px;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-nav {
  display: grid;
  gap: 16px;
}

.nav-section {
  color: #90a090;
  font-size: 13px;
  padding: 0 12px;
}

.nav-group {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.nav-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  color: #4e6258;
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(232, 239, 211, 0.92), rgba(225, 234, 206, 0.76));
  box-shadow: inset 0 0 0 1px rgba(125, 145, 115, 0.18);
}

.nav-item--disabled {
  color: rgba(114, 132, 121, 0.7);
  cursor: not-allowed;
  opacity: 0.78;
}

.nav-item--disabled .nav-icon {
  color: rgba(114, 132, 121, 0.66);
}

.nav-badge {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: #9aa89a;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(233, 235, 228, 0.92);
  border: 1px solid rgba(154, 168, 154, 0.18);
}

.nav-item--footer {
  min-height: 42px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.nav-icon {
  width: 22px;
  text-align: center;
  color: #5f7566;
}

.sidebar-card,
.hero-banner,
.entry-card,
.section-card,
.soft-card,
.quote-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 18px;
  border-radius: 26px;
  display: grid;
  gap: 14px;
  align-self: end;
}

.sidebar-card__copy {
  display: grid;
  gap: 8px;
}

.sidebar-card__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.ghost-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 122, 102, 0.28);
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
}

.ghost-button--disabled {
  border-color: rgba(154, 168, 154, 0.24);
  background: rgba(247, 246, 241, 0.88);
  color: #96a397;
  cursor: not-allowed;
}

.ghost-button--inline {
  min-width: 152px;
}

.sidebar-footer {
  align-self: end;
}

.main-panel {
  padding: 26px 34px 28px;
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.searchbar {
  width: min(100%, 420px);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 141, 112, 0.2);
  background: rgba(255, 255, 255, 0.64);
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
}

.searchbar__icon {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(120, 141, 112, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(120, 141, 112, 0.12);
}

.user-pill__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d9e7c7, #bfcfae);
  color: var(--accent);
  font-weight: 700;
}

.hero-banner {
  min-height: 220px;
  border-radius: 34px;
  padding: 34px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 20px;
  overflow: hidden;
}

.hero-banner--compact {
  min-height: 180px;
  grid-template-columns: 1fr;
}

.hero-banner__copy {
  align-self: center;
  position: relative;
  z-index: 1;
}

.hero-banner__copy h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-banner__copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-banner__art {
  position: relative;
  min-height: 180px;
  align-self: stretch;
}

.art-book,
.art-cup,
.art-leaf {
  position: absolute;
  border-radius: 24px;
}

.art-book {
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(236, 230, 211, 0.96));
  border: 1px solid rgba(171, 185, 143, 0.26);
  box-shadow: 0 18px 30px rgba(169, 144, 105, 0.12);
}

.art-book--back {
  width: 210px;
  height: 126px;
  right: 76px;
  top: 28px;
  transform: rotate(10deg);
}

.art-book--front {
  width: 250px;
  height: 136px;
  right: 10px;
  bottom: 6px;
  transform: rotate(-8deg);
}

.art-cup {
  width: 76px;
  height: 76px;
  left: 28px;
  top: 72px;
  background: linear-gradient(180deg, #f8e6b6, #dfc98d);
  border-radius: 999px 999px 20px 20px;
  box-shadow: 0 14px 22px rgba(176, 150, 97, 0.16);
}

.art-leaf {
  background: radial-gradient(circle at center, rgba(198, 214, 170, 0.62), rgba(157, 186, 133, 0.12));
}

.art-leaf--one {
  width: 180px;
  height: 80px;
  right: 132px;
  top: 10px;
  transform: rotate(18deg);
}

.art-leaf--two {
  width: 160px;
  height: 72px;
  right: -10px;
  top: 18px;
  transform: rotate(8deg);
}

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

.entry-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card {
  border-radius: 30px;
  padding: 20px 22px 22px;
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at top left, rgba(251, 245, 211, 0.66), transparent 28%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(252, 248, 236, 0.9));
}

.entry-card--soft {
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.85), rgba(250, 246, 235, 0.82));
}

.entry-card__illus {
  width: 100%;
  min-height: 132px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 62px;
  color: #5e8268;
  background:
    radial-gradient(circle at center, rgba(233, 240, 220, 0.9), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(251, 248, 238, 0.78));
  border: 1px solid rgba(181, 196, 160, 0.22);
}

.entry-card h2,
.section-card__head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.entry-card p,
.soft-card p,
.soft-card strong,
.quote-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.primary-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #3d6b4e, #567e58);
  color: #fffef9;
  margin-top: 6px;
}

.primary-button--disabled {
  background: linear-gradient(90deg, #b6c0b4, #c5ccc2);
  color: rgba(255, 255, 255, 0.96);
  cursor: not-allowed;
}

.section-card {
  border-radius: 28px;
  padding: 22px 24px;
  display: grid;
  gap: 18px;
}

.section-card--actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.soft-card {
  min-height: 138px;
  border-radius: 24px;
  padding: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  border-style: dashed;
  background: rgba(255, 253, 248, 0.54);
}

.soft-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(227, 237, 214, 0.58);
  color: #6c8e74;
}

.quote-card {
  min-height: 78px;
  border-radius: 22px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-mark {
  font-size: 46px;
  line-height: 1;
  color: #79a278;
}

.quote-card p {
  flex: 1;
}

.quote-fruit {
  font-size: 40px;
}

@media (max-width: 1200px) {
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-grid--three,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .main-panel {
    padding: 18px;
  }

  .hero-banner {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-banner__art {
    min-height: 140px;
  }

  .topbar {
    justify-content: stretch;
  }

  .searchbar {
    width: 100%;
  }
}

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

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

  .quote-card {
    align-items: flex-start;
    padding: 18px;
  }
}
