:root {
  --ink: #1b2240;
  --ink-soft: #3a4266;
  --muted: #626b8a;
  --faint: #8b93ad;
  --line: rgba(122, 132, 178, .16);
  --glass: rgba(255, 255, 255, .56);
  --glass-strong: rgba(255, 255, 255, .74);
  --accent: #6a5bf0;
  --accent-2: #9481ff;
  --danger: #c2453f;
  --radius: 20px;
  --shadow: 0 10px 34px rgba(60, 72, 130, .09), 0 2px 6px rgba(60, 72, 130, .05);
}

* { box-sizing: border-box; }
img, video { max-width: 100%; }

html {
  background:
    radial-gradient(880px 620px at 2% -8%, #b8ccff 0%, rgba(184, 204, 255, 0) 58%),
    radial-gradient(820px 640px at 100% -2%, #ffc6dd 0%, rgba(255, 198, 221, 0) 56%),
    radial-gradient(1000px 720px at 46% 108%, #a8e4ff 0%, rgba(168, 228, 255, 0) 62%),
    radial-gradient(700px 560px at 78% 52%, #ffe1c9 0%, rgba(255, 225, 201, 0) 60%),
    linear-gradient(180deg, #f3f5fe 0%, #e8ecf9 100%);
  background-attachment: fixed;
  min-height: 100%;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 400 14px/1.65 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.aura {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .72;
  pointer-events: none;
}
.aura-1 { width: 520px; height: 520px; top: -140px; left: -80px; background: #9fb6ff; }
.aura-2 { width: 460px; height: 460px; top: 60px; right: -120px; background: #ffaed0; }
.aura-3 { width: 560px; height: 560px; bottom: -200px; left: 26%; background: #93dcff; }

.glass {
  background: linear-gradient(158deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .32) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: var(--radius);
  box-shadow:
    0 14px 42px rgba(54, 66, 124, .10),
    0 2px 6px rgba(54, 66, 124, .04),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .52);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, #7a68ff, #a98cff 55%, #ffb9d8);
  box-shadow: 0 6px 16px rgba(106, 91, 240, .32), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.brand strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.brand em { display: block; font-size: 11.5px; font-style: normal; color: var(--faint); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.stat { font-size: 12px; color: var(--muted); }

.shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 22px clamp(14px, 4vw, 26px) 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(106, 91, 240, .28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(106, 91, 240, .38); }
.btn-ghost {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .6);
  border-color: rgba(255, 255, 255, .8);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .85); }
.btn-quiet {
  color: var(--accent);
  background: rgba(106, 91, 240, .09);
  border-color: rgba(106, 91, 240, .16);
  padding: 8px 13px;
}
.btn-quiet:hover { background: rgba(106, 91, 240, .14); }

.field {
  width: 100%;
  padding: 10px 13px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(124, 134, 180, .2);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field::placeholder { color: #9aa2ba; }
.field:focus {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(106, 91, 240, .55);
  box-shadow: 0 0 0 4px rgba(106, 91, 240, .12);
}
textarea.field { resize: vertical; line-height: 1.7; }

.composer { padding: 16px 16px 14px; margin-bottom: 22px; }
.composer-top { display: flex; gap: 10px; margin-bottom: 10px; }
.name-field { flex: 0 0 168px; }
.title-field { flex: 1; font-size: 15px; font-weight: 500; }
.body-field { margin-top: 0; min-height: 78px; }

.composer-foot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.attach-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hint { font-size: 11.5px; color: var(--faint); min-width: 0; }

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 6px 8px 6px 6px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 12px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.chip img, .chip .thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #eceffa;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--accent);
}
.chip b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.chip small { color: var(--faint); }
.chip button {
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
}
.chip button:hover { color: var(--danger); }
.composer.dragging { border-color: rgba(106, 91, 240, .6); box-shadow: 0 0 0 4px rgba(106, 91, 240, .12), var(--shadow); }

.feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.post { min-width: 0; padding: 16px 18px 14px; transition: transform .2s ease, box-shadow .25s ease; }
.post:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 52px rgba(54, 66, 124, .14),
    0 2px 6px rgba(54, 66, 124, .05),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
.post-head { display: flex; align-items: center; gap: 10px; }
.avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(140deg, #8b7bff, #b394ff 60%, #ffb6d5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.who { display: flex; flex-direction: column; line-height: 1.35; }
.who strong { font-size: 13.5px; font-weight: 500; }
.who span { font-size: 11.5px; color: var(--faint); }

.bubble {
  margin-left: auto;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
}
.bubble:hover { color: var(--accent); }

.post-title { margin: 12px 0 0; font-size: 17.5px; line-height: 1.45; letter-spacing: -.01em; }
.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--accent); }

.excerpt { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; }

.shots { display: grid; gap: 8px; margin-top: 12px; }
.shots.cols-1 { grid-template-columns: minmax(0, 1fr); }
.shots.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .8);
}
.shot img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  transition: transform .4s ease;
}
.shots.cols-1 .shot img { max-height: 520px; object-fit: contain; background: rgba(255, 255, 255, .4); }
.shot:hover img { transform: scale(1.02); }

.clips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.clip { margin: 0; min-width: 0; }
.clip video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  border-radius: 14px;
  background: #10101a;
  border: 1px solid rgba(255, 255, 255, .8);
}
.clip figcaption {
  display: flex;
  justify-content: space-between;
  padding: 5px 4px 0;
  font-size: 11px;
  color: var(--faint);
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.post-foot form { margin: 0; }
.more { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }
.link-danger {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--faint);
  cursor: pointer;
}
.link-danger:hover { color: var(--danger); }
.link-danger.tiny { font-size: 11px; }

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
}

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.pager-now { font-size: 12px; color: var(--faint); }

.back {
  display: inline-block;
  margin: 2px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--accent); }

.detail { padding: 20px 22px; }
.detail-title { margin: 14px 0 0; font-size: 23px; line-height: 1.35; letter-spacing: -.02em; }
.body-text {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  white-space: pre-wrap;
  word-break: break-word;
}

.discuss { margin-top: 20px; }
.discuss-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.discuss-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  padding: 1px 8px;
}

.comment-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 9px; }
.comment { display: flex; gap: 10px; padding: 12px 14px; align-items: flex-start; }
.comment-main { flex: 1; min-width: 0; }
.comment-main p {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}
.empty-line { color: var(--faint); font-size: 12.5px; margin: 0 0 12px 2px; }

.reply { padding: 12px 14px; }
.reply-foot { display: flex; gap: 10px; margin-top: 10px; }
.reply-foot .name-field { flex: 0 0 168px; }
.reply-foot .btn { margin-left: auto; }

.note { max-width: 460px; margin: 60px auto; padding: 34px 28px; text-align: center; }
.note-code { display: block; font-size: 34px; font-weight: 600; color: var(--accent); letter-spacing: -.03em; }
.note p { margin: 8px 0 20px; color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(22, 26, 48, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.foot {
  padding: 0 20px 34px;
  text-align: center;
  font-size: 11.5px;
  color: #9aa2ba;
}
.foot code { font-size: 11px; color: #6f7794; }

@media (max-width: 640px) {
  .composer-top { flex-direction: column; }
  .name-field, .reply-foot .name-field { flex: 1 1 auto; }
  .shots.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { padding: 16px; }
  .detail-title { font-size: 19px; }
  .brand em { display: none; }
  .composer-foot { align-items: center; }
  .hint { order: 3; flex: 1 1 100%; }
  .composer-foot .btn-primary { margin-left: auto; }
  .reply-foot .btn { margin-left: auto; }
}
