:root {
  --bg-soft: rgba(255, 253, 247, 0.9);
  --bg-strong: #fffefb;
  --bg-accent: rgba(185, 65, 50, 0.08);
  --line-soft: rgba(32, 35, 33, 0.08);
  --shadow-soft: 0 18px 48px rgba(46, 41, 33, 0.1);
}

.bg-main {
  min-width: 0;
}

.bg-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}

.bg-panel {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 254, 251, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bg-shell-detail {
  max-width: 980px;
}

.bg-header {
  margin-bottom: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.bg-top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.bg-top-copy {
  min-width: 0;
  text-align: center;
}

.bg-top-spacer {
  width: 42px;
  height: 42px;
  display: block;
}

.bg-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
}

.bg-icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--bg-accent);
  color: var(--cinnabar);
  cursor: pointer;
}

.bg-header-body {
  display: grid;
  gap: 16px;
}

.bg-detail-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 243, 0.84)),
    radial-gradient(circle at 88% 18%, rgba(185, 65, 50, 0.18), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(181, 138, 52, 0.15), transparent 24%),
    var(--bg-soft);
  box-shadow: var(--shadow-soft);
}

.bg-intro-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.bg-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-strong);
}

.bg-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.bg-search-submit {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--cinnabar);
  color: #fffdf7;
  font-weight: 700;
  cursor: pointer;
}

.bg-list-section {
  margin-top: 0;
}

.bg-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bg-card {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 20px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 65, 50, 0.28);
  box-shadow: 0 24px 52px rgba(46, 41, 33, 0.14);
}

.bg-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 800;
}

.bg-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.bg-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.bg-pager button {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--bg-soft);
  color: var(--cinnabar);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.bg-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bg-detail-body {
  color: var(--ink);
  font-size: 16px;
  line-height: 2.05;
  word-break: break-word;
}

.bg-detail-rich h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}

.bg-detail-rich h3:not(:first-child) {
  margin-top: 26px;
}

.bg-detail-rich p {
  margin: 0 0 16px;
  line-height: 2.05;
}

.bg-detail-rich p:last-child {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .bg-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bg-shell {
    padding: 16px 14px 32px;
  }

  .bg-header {
    padding: 12px 12px;
    border-radius: 18px;
  }

  .bg-title {
    font-size: 19px;
  }

  .bg-top-spacer,
  .bg-icon-btn {
    width: 38px;
    height: 38px;
  }

  .bg-detail-card {
    padding: 18px;
    border-radius: 18px;
  }

  .bg-intro-text {
    display: none;
  }

  .bg-search-box {
    min-height: 52px;
    padding: 0 14px;
  }

  .bg-search-submit {
    padding: 7px 14px;
    font-size: 13px;
  }

  .bg-card {
    min-height: 68px;
    padding: 0 16px;
  }

  .bg-card-title {
    font-size: 16px;
  }

  .bg-detail-body {
    font-size: 15px;
    line-height: 1.95;
  }

  .bg-detail-rich h3 {
    font-size: 20px;
  }
}
