@import url('https://fonts.bunny.net/css?family=manrope:500,600,700|ibm-plex-sans:400,500,600&display=swap');

:root {
  --bg: #eef3f1;
  --bg-accent: #dfeae5;
  --ink: #18231f;
  --muted: #5a6a63;
  --line: #cfdad4;
  --card: #f7faf8;
  --brand: #0f6b57;
  --brand-deep: #0a4b3d;
  --tag: #d9ebe3;
  --shadow: 0 10px 30px rgba(24, 35, 31, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #cfe4db 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #d5e3ef 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 241, 235, 0.88);
  border-bottom: 1px solid rgba(213, 221, 215, 0.8);
}
.header-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 10px;
}
.brand {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
}
.search {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
}
.search input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
}
.search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.search button:hover { background: var(--brand-deep); }

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: thin;
}
.cats a {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.cats a span {
  margin-left: 6px;
  color: #8a9790;
  font-size: 0.8rem;
}
.cats a.active,
.cats a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.cats a.active span,
.cats a:hover span { color: rgba(255,255,255,0.8); }

.main { padding: 28px 0 60px; }

.notice {
  position: relative;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 6px 1fr;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 107, 87, 0.18);
  background: #f7fbf9;
  box-shadow: 0 12px 28px rgba(15, 107, 87, 0.06);
}
.notice-accent {
  background: linear-gradient(180deg, #12856c 0%, #0a4b3d 100%);
}
.notice-body {
  padding: 16px 18px 16px 16px;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(15, 107, 87, 0.08), transparent 70%),
    linear-gradient(180deg, #f9fcfb 0%, #f3f8f6 100%);
}
.notice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 87, 0.12);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.notice-head strong {
  font-family: Manrope, sans-serif;
  font-size: 1.08rem;
  color: var(--brand-deep);
}
.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #2d3c36;
  line-height: 1.7;
}
.notice-list li {
  position: relative;
  padding-left: 1em;
}
.notice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12856c;
}
.notice-list li + li { margin-top: 6px; }
.notice-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 107, 87, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.notice-wx {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}
.notice-wx b {
  color: var(--brand-deep);
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  font-family: Manrope, sans-serif;
}
.notice-copy {
  border: 0;
  background: linear-gradient(135deg, #12856c, #0a4b3d);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 107, 87, 0.22);
}
.notice-copy:hover {
  filter: brightness(1.05);
}
.notice-copy.copied {
  background: #2f6f4e;
}

.buy-box {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed #9fcebd;
  background: #f1f8f4;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.buy-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}
.buy-box em {
  font-style: normal;
  color: #c45c26;
  font-weight: 700;
}
.buy-wx {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 140px;
}
.buy-wx span { color: var(--muted); font-size: 0.85rem; }
.buy-wx b { color: var(--brand-deep); font-size: 1.1rem; }

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar h1 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}
.toolbar .meta { margin: 0; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(28, 36, 33, 0.1);
}
.cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d7e8e0, #efe6d6);
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-fallback {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(15,107,87,.18), rgba(240,230,212,.5)),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,.25) 8px, rgba(255,255,255,.25) 9px);
}
.card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h2 {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 1.02rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card .row, .tagline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--tag);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 500;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.pager a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }

.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  background: rgba(255,252,247,.7);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.detail {
  width: min(820px, 100%);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px clamp(16px, 4vw, 36px) 40px;
  box-shadow: var(--shadow);
}
.detail-head .back {
  display: inline-block;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 500;
}
.detail-head h1 {
  margin: 10px 0 12px;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
}
.lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.hero-cover {
  margin: 22px 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-accent);
}
.hero-cover img { width: 100%; }
.content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #24302c;
}
.content h2, .content h3, .content h4 {
  font-family: Manrope, sans-serif;
  margin: 1.4em 0 0.6em;
}
.content p { margin: 0.85em 0; }
.content img {
  margin: 1em auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.content ul, .content ol { padding-left: 1.2em; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.9rem;
}
.footer-inner p { margin: 0 0 6px; line-height: 1.6; }
.footer-inner b { color: var(--brand-deep); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
}

@media (max-width: 720px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .site-header {
    background: rgba(238, 243, 241, 0.94);
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0 8px;
    gap: 10px;
  }
  .brand { font-size: 1.2rem; }
  .search { max-width: none; }
  .search input,
  .search button { min-height: 42px; }
  .cats {
    margin: 0 calc(50% - 50vw);
    padding: 0 12px 12px;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
  }
  .cats a { padding: 8px 12px; font-size: 0.88rem; }
  .main { padding: 16px 0 48px; }
  .notice { border-radius: 14px; }
  .notice-body { padding: 14px; }
  .notice-head { gap: 8px; }
  .notice-list { font-size: 0.92rem; }
  .notice-actions { flex-direction: column; align-items: stretch; }
  .notice-wx { justify-content: space-between; }
  .notice-copy { width: 100%; min-height: 42px; }
  .toolbar { flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
  .toolbar h1 { font-size: 1.25rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 14px; }
  .card .body { padding: 10px; gap: 6px; }
  .card h2 { font-size: 0.92rem; }
  .card p { display: none; }
  .card .row { font-size: 0.75rem; }
  .tag { padding: 2px 8px; }
  .pager { gap: 10px; margin-top: 20px; }
  .pager a { padding: 10px 14px; min-height: 42px; display: inline-flex; align-items: center; }
  .detail {
    border-radius: 16px;
    padding: 18px 14px 28px;
  }
  .buy-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .buy-wx { align-items: stretch; min-width: 0; }
  .buy-wx .notice-copy { width: 100%; min-height: 42px; }
  .content { font-size: 0.98rem; overflow-wrap: anywhere; }
  .content img { border-radius: 8px; }
  .empty { padding: 48px 16px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
