:root {
  --paper: #fbfffd;
  --paper-2: #ffffff;
  --ink: #2b3a42;
  --muted: #6a7c86;
  --line: #d7ebe3;
  --sage: #3db89a;
  --sage-deep: #2a9b80;
  --sage-soft: #d8f5ec;
  --coral: #ff8fab;
  --coral-deep: #f07189;
  --peach: #ffb4a2;
  --gold: #ffe066;
  --lemon: #fff3b0;
  --sky: #caf0f8;
  --lilac: #e9d5ff;
  --shadow: 0 12px 28px rgba(61, 184, 154, .12);
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: #fbfffd;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(255, 186, 205, .14), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(125, 211, 192, .12), transparent 32%),
    radial-gradient(circle at 80% 88%, rgba(255, 236, 153, .10), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfffd 45%, #f5fbff 100%);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip {
  position: absolute; left: 12px; top: -40px; background: #fff; padding: 8px 12px; z-index: 9;
}
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 255, 251, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 184, 154, .12);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 160px; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .04em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: .78rem; }
.planet {
  width: 42px; height: 42px; border-radius: 12px;
  overflow: hidden; flex: none;
  background: transparent;
}
.planet img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nav a, .hero-pills a {
  text-decoration: none;
  border: 1.5px solid rgba(43, 58, 66, .18);
  border-radius: 999px;
  padding: 6px 12px;
  background: #ffffff;
  font-size: .92rem;
}
.nav a { background: var(--sage-soft); }
.hero-pills a { background: var(--lemon); }
.nav a:hover, .hero-pills a:hover, .q-card:hover { transform: translate(-2px, -2px); }
.nav-toggle { display: none; }
.nav-burger { display: none; }
.search-form {
  margin-left: auto; display: flex; background: #fff;
  border: 1.5px solid rgba(61, 184, 154, .35); border-radius: 999px; overflow: hidden;
  box-shadow: 3px 3px 0 rgba(255, 143, 171, .25);
}
.search-form input, .auth-card input, .auth-card textarea, .auth-card select {
  border: 0; background: transparent; padding: 10px 14px; font: inherit; color: inherit; width: 220px; outline: none;
}
.search-form button, .btn, .auth-card button, .pager a, .pager .on {
  border: 0; background: var(--sage); color: #fff; font: inherit; padding: 10px 16px; cursor: pointer; text-decoration: none;
}
.search-form button:hover, .btn:hover { background: var(--sage-deep); }
.search-form.big { margin: 18px 0 0; width: min(560px, 100%); }
.search-form.big input { flex: 1; width: auto; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; padding: 28px 0 10px; }
.eyebrow { letter-spacing: .16em; text-transform: uppercase; color: var(--coral-deep); font-size: .78rem; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; margin: 0; }
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.8; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-art { position: relative; min-height: 240px; }
.blob {
  width: 230px; height: 230px; margin-left: auto;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 40%),
    linear-gradient(145deg, var(--sage-soft), var(--sky) 55%, var(--lilac));
  border: 2px solid rgba(43, 58, 66, .16);
  border-radius: 58% 42% 55% 45%;
  box-shadow: 8px 8px 0 rgba(255, 180, 162, .35);
}
.note {
  position: absolute; left: 0; bottom: 18px; width: min(260px, 80%);
  background: #ffffff; border: 1.5px solid rgba(43, 58, 66, .16); border-radius: 18px 22px 16px 20px;
  padding: 14px; box-shadow: 4px 4px 0 var(--gold); transform: rotate(-2deg);
}
.note span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 40% 50%; background: var(--coral); color: white; font-weight: 700; }
.note strong { display: block; margin-top: 8px; }
.note em { color: var(--sage-deep); font-style: normal; font-size: .85rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; padding-bottom: 48px; align-items: start; }
.layout.solo { grid-template-columns: 1fr; }
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.layout > .side { min-width: 0; }
.feed-head, .page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.page-head { display: block; padding-top: 22px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.stamp {
  border: 1.5px dashed var(--coral-deep); color: var(--coral-deep); border-radius: 8px;
  padding: 4px 8px; transform: rotate(6deg); font-size: .85rem; background: rgba(255, 143, 171, .12);
}
.q-list { display: grid; gap: 14px; }
.q-card {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; text-decoration: none;
  background: var(--paper-2); border: 1.5px solid rgba(61, 184, 154, .22);
  border-radius: 22px 18px 24px 16px; padding: 16px 16px 14px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.q-card:hover { box-shadow: 0 14px 32px rgba(255, 143, 171, .18); }
.q-card h2 { font-size: 1.12rem; margin: 0 0 6px; line-height: 1.45; }
.q-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.q-badge {
  width: 42px; height: 42px; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(145deg, #ff9ebb, var(--coral)); color: white;
  border-radius: 46% 54% 42% 58%;
  box-shadow: 2px 3px 0 rgba(240, 113, 137, .35); transform: rotate(-8deg);
}
.q-badge.big { width: 54px; height: 54px; font-size: 1.3rem; }
.ad-flag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: #8a5a12; background: #fff1c9; border: 1px solid rgba(196, 149, 58, .35);
}
.meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: .86rem; line-height: 1.4; margin-top: 8px;
}
.like-btn {
  appearance: none; border: 1px solid rgba(240, 113, 137, .28); background: #ffe8ef;
  color: #b04a63; border-radius: 999px; padding: 1px 8px; font: inherit; font-size: .75rem;
  font-weight: 700; line-height: 1.35; cursor: pointer;
}
.like-btn:hover, .like-btn.on { background: #ffd0dd; }
.like-btn.done { opacity: .75; cursor: default; }
.meta .pill, a.pill, span.pill {
  display: inline-flex; align-items: center; vertical-align: middle;
  text-decoration: none; background: var(--sky); color: #1f6f8b;
  border: 1px solid rgba(90, 170, 190, .28); border-radius: 999px;
  padding: 1px 7px; font-size: .75rem; line-height: 1.35; font-weight: 600;
}
.side { display: grid; gap: 14px; align-content: start; }
.side-card, .answer-card, .auth-card, .empty {
  background: var(--paper-2); border: 1.5px solid rgba(61, 184, 154, .2);
  border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
}
.side-card h3, .more-answers h2 { margin: 0 0 10px; font-size: 1rem; }
.topic-list, .link-list, .side-card ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topic-list a, .link-list a, .site-footer a { text-decoration: none; border-bottom: 1px dashed transparent; }
.topic-list a:hover, .link-list a:hover, .site-footer a:hover { border-bottom-color: var(--coral); color: var(--sage-deep); }
.topic-card {
  padding: 14px 12px 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 143, 171, .16), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(233, 213, 255, .28), transparent 44%),
    #ffffff;
  border-color: rgba(240, 113, 137, .18);
}
.topic-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 4px 12px; padding: 0 2px 10px;
  border-bottom: 1px dashed rgba(240, 113, 137, .28);
}
.topic-head h3 { margin: 0; font-size: 1.02rem; letter-spacing: .02em; }
.topic-mark {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: #7a4fb3; background: rgba(233, 213, 255, .55);
  border: 1px solid rgba(167, 139, 250, .35); border-radius: 999px;
  padding: 3px 8px; transform: rotate(-3deg);
}
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; text-decoration: none; font-size: .88rem; line-height: 1.3;
  padding: 7px 11px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topic-chip:hover {
  transform: translate(-1px, -2px) rotate(-1deg);
  box-shadow: 3px 3px 0 rgba(43, 58, 66, .08);
}
.topic-hash { font-weight: 800; opacity: .55; }
.topic-chip.t1 { background: #ffe8ef; color: #b04a63; border-color: rgba(240, 113, 137, .22); }
.topic-chip.t2 { background: var(--sage-soft); color: var(--sage-deep); border-color: rgba(61, 184, 154, .24); }
.topic-chip.t3 { background: var(--lemon); color: #8a6d1d; border-color: rgba(214, 176, 40, .28); }
.topic-chip.t4 { background: var(--sky); color: #1f6f8b; border-color: rgba(90, 170, 190, .28); }
.topic-chip.t5 { background: #f3e8ff; color: #6b3fa0; border-color: rgba(167, 139, 250, .3); }
.topic-chip.t1:hover { background: #ffd6e3; }
.topic-chip.t2:hover { background: #c8f0e3; }
.topic-chip.t3:hover { background: #ffe89a; }
.topic-chip.t4:hover { background: #b7eaf5; }
.topic-chip.t5:hover { background: #e9d5ff; }
.rand-card {
  padding: 14px 12px 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 224, 102, .22), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(202, 240, 248, .35), transparent 46%),
    #ffffff;
  border-color: rgba(61, 184, 154, .2);
}
.rand-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 4px 12px; padding: 0 2px 10px;
  border-bottom: 1px dashed rgba(61, 184, 154, .28);
}
.rand-head h3 { margin: 0; font-size: 1.02rem; letter-spacing: .02em; }
.rand-mark {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: var(--coral-deep); background: rgba(255, 143, 171, .14);
  border: 1px solid rgba(240, 113, 137, .28); border-radius: 999px;
  padding: 3px 8px; transform: rotate(4deg);
}
.rand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rand-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  text-decoration: none; padding: 9px 10px; border-radius: 14px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rand-item:hover {
  transform: translate(-1px, -1px);
  background: rgba(216, 245, 236, .55);
  border-color: rgba(61, 184, 154, .22);
  box-shadow: 3px 3px 0 rgba(255, 224, 102, .35);
}
.rand-no {
  width: 28px; height: 28px; display: grid; place-items: center; flex: none;
  border-radius: 40% 60% 45% 55%; font-size: .72rem; font-weight: 800;
  color: var(--sage-deep); background: var(--sage-soft);
  border: 1px solid rgba(61, 184, 154, .22);
}
.rand-item:nth-child(3n+1) .rand-no { background: #ffe8ef; color: var(--coral-deep); border-color: rgba(240, 113, 137, .22); }
.rand-item:nth-child(3n+2) .rand-no { background: var(--lemon); color: #8a6d1d; border-color: rgba(214, 176, 40, .28); }
.rand-item:nth-child(3n) .rand-no { background: var(--sky); color: #1f6f8b; border-color: rgba(90, 170, 190, .28); }
.rand-title {
  font-size: .92rem; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rand-item:hover .rand-title { color: var(--sage-deep); }
.rand-arrow {
  opacity: 0; transform: translateX(-4px); color: var(--coral-deep);
  font-size: .9rem; transition: opacity .15s ease, transform .15s ease; margin-top: 2px;
}
.rand-item:hover .rand-arrow { opacity: 1; transform: translateX(0); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.steps b {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); border: 1.5px solid rgba(43, 58, 66, .16); color: var(--ink);
}
.q-article { padding-top: 18px; }
.q-head { display: flex; gap: 14px; align-items: flex-start; }
.q-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .88rem; padding-top: 18px; }
.crumb a { color: var(--sage-deep); text-decoration: none; }
.crumb a:hover { text-decoration: none; }
.answer-card { margin-top: 16px; }
.answer-label { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.answer-label span {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: linear-gradient(145deg, #6ed6b8, var(--sage)); color: white; border-radius: 40% 60%;
}
.answer-label em { color: var(--muted); font-style: normal; font-size: .85rem; }
.answerer {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  margin: 0 0 14px; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(216,245,236,.75), rgba(202,240,248,.55));
  border: 1px solid rgba(61,184,154,.18); border-radius: 16px;
}
.answerer-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  overflow: hidden; flex: none; background: #fff;
}
.answerer-avatar img {
  width: 50px; height: 50px; display: block; object-fit: cover;
}
.answerer-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.answerer-name { font-size: 1rem; }
.level-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 2px 9px; font-size: .78rem; font-weight: 700;
  border: 1px solid transparent;
}
.level-badge.lv1 { background: #eef2f4; color: #5d6b74; }
.level-badge.lv2 { background: var(--sky); color: #1f6f8b; }
.level-badge.lv3 { background: var(--sage-soft); color: var(--sage-deep); }
.level-badge.lv4 { background: var(--lemon); color: #8a6d1d; }
.level-badge.lv5 { background: linear-gradient(135deg, #ffd6e7, #ffe8a3); color: #b04a63; border-color: rgba(240,113,137,.25); }
.answerer-title {
  font-size: .8rem; color: var(--sage-deep); background: rgba(255,255,255,.7);
  border-radius: 999px; padding: 2px 8px;
}
.answerer-bio { margin: 6px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.answerer-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.answerer-tag {
  background: #fff; border: 1px solid rgba(61,184,154,.22);
  border-radius: 999px; padding: 1px 8px; color: var(--sage-deep);
}
.content { line-height: 1.9; font-size: 1.03rem; overflow-wrap: break-word; }
.content p { margin: 0 0 1em; }
.content h2, .content h3 { line-height: 1.4; }
.content ul, .content ol { padding-left: 1.2em; }
.content img { border-radius: 16px; border: 1px solid var(--line); margin: 8px 0; }
.content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.content iframe, .content video { max-width: 100%; }
.reply-box textarea, .auth-card textarea { width: 100%; min-height: 140px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.reply-box { margin-top: 16px; }
.reply-box button, .auth-card button, .btn {
  margin-top: 10px; border-radius: 999px; border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--coral), var(--peach)); color: white;
  padding: 10px 18px; text-decoration: none; display: inline-block;
}
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 8px; }
.pager a, .pager .on { border-radius: 12px; min-width: 40px; text-align: center; border: 1.5px solid rgba(61, 184, 154, .3); line-height: 1.2; }
.pager .on { background: var(--gold); color: var(--ink); }
.pager a { background: #fff; color: var(--ink); }
.ad-slot:empty { display: none; }
.ad-slot { width: min(1120px, calc(100% - 32px)); margin: 12px auto 0; }
.site-footer { border-top: 1px solid rgba(61, 184, 154, .14); padding: 28px 0 40px; margin-top: 10px; }
.foot { display: grid; gap: 14px; }
.foot p { color: var(--muted); line-height: 1.7; }
.copy { font-size: .85rem; }
.auth-card { max-width: 460px; margin: 32px auto; }
.auth-card.wide { max-width: 680px; }
.auth-card h1 { font-size: 2rem; }
.auth-card label { display: grid; gap: 6px; margin: 12px 0; font-size: .92rem; }
.auth-card input, .auth-card select { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.alert { background: #ffe8ef; border: 1px solid var(--coral); padding: 8px 10px; border-radius: 10px; }
.fine { color: var(--muted); }
.empty { text-align: center; }
@media (max-width: 900px) {
  body {
    background-color: #ffffff;
    background-image:
      radial-gradient(circle at 20% 0%, rgba(255, 186, 205, .08), transparent 42%),
      radial-gradient(circle at 100% 0%, rgba(125, 211, 192, .07), transparent 40%),
      linear-gradient(180deg, #ffffff 0%, #fcfffe 55%, #f8fcff 100%);
  }
  .topbar { background: rgba(255, 255, 255, .94); }
  .hero, .layout { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; padding: 10px 0; }
  .search-form { margin-left: 0; width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .nav-burger { display: inline-flex; margin-left: auto; border: 1.5px solid rgba(61, 184, 154, .35); border-radius: 999px; padding: 6px 12px; background: #fff; }
  .nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .blob { margin: 10px auto; }
  .note { position: relative; bottom: auto; left: auto; margin: -40px auto 0; }
  .answerer {
    background: #f7fffb;
    border-color: rgba(61, 184, 154, .14);
  }
  .rand-item { padding: 10px 8px; }
  .rand-arrow { display: none; }
  .topic-chip { font-size: .86rem; padding: 7px 10px; }
}
