:root {
  --bg: #07080b;
  --panel: #101116;
  --panel-2: #171923;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7fb;
  --muted: #a8adbb;
  --soft: #767b8b;
  --pink: #ff4f9a;
  --pink-2: #ff8fc1;
  --pink-soft: rgba(255, 79, 154, 0.16);
  --focus: 0 0 0 3px rgba(255, 79, 154, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at top right, rgba(255, 79, 154, 0.14), transparent 34rem),
    linear-gradient(180deg, #0b0c11 0%, var(--bg) 28rem);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

.detail-page {
  position: relative;
  touch-action: pan-y;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
}

.detail-page .site-header,
.detail-page .container {
  max-width: 100vw;
  overflow-x: hidden;
}

.detail-page .container {
  width: min(920px, calc(100vw - 20px));
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button,
input,
select {
  font: inherit;
}

svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.container {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 11, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), #8f2cff);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 79, 154, 0.32);
}

.brand-swan {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  font-size: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-list a {
  border-radius: 8px;
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-list a:hover,
.nav-list .active {
  background: rgba(255, 255, 255, 0.035);
  color: var(--pink-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 79, 154, 0.42);
  border-radius: 8px;
  background: rgba(255, 79, 154, 0.12);
  color: #ffd8ea;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.login-btn:hover {
  border-color: rgba(255, 143, 193, 0.68);
  background: rgba(255, 79, 154, 0.18);
  transform: translateY(-1px);
}

body.guest-browse .login-btn,
body.guest-browse [data-open-auth],
body.guest-browse .auth-modal {
  display: none !important;
}

body.guest-browse .nav-actions.guest-empty {
  display: none !important;
}

.search-panel {
  display: grid;
  grid-template-columns: max-content 150px 150px 1fr auto auto;
  gap: 10px;
  padding: 0 0 16px;
}

.search-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--pink-2);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.search-panel select,
.search-panel input,
.search-panel button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.search-panel input {
  padding: 0 14px;
}

.search-panel select:focus,
.search-panel input:focus {
  outline: none;
  border-color: rgba(255, 79, 154, 0.58);
  background: rgba(16, 17, 22, 0.96);
}

.search-panel select {
  padding: 0 12px;
}

.search-panel button {
  padding: 0 22px;
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  cursor: pointer;
}

.search-panel button:hover {
  background: #ff63a6;
  border-color: #ff63a6;
}

.search-panel .search-clear {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.search-panel .search-clear:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.search-panel button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.content-section {
  padding: 34px 0 44px;
}

.section-head {
  margin-bottom: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--pink-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.section-copy {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.tag-category-row {
  display: flex;
  gap: 8px;
  margin: -4px 0 18px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tag-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.tag-category em {
  color: var(--pink-2);
  font-style: normal;
  font-size: 0.72rem;
}

.tag-category.active,
.tag-category:hover {
  border-color: rgba(255, 79, 154, 0.58);
  background: rgba(255, 79, 154, 0.12);
  color: #fff;
}

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

.post-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 154, 0.42);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 79, 154, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge.soft {
  background: rgba(255, 255, 255, 0.15);
  color: #ffd8ea;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.media {
  display: block;
  aspect-ratio: 2 / 3;
  background-color: #1b1d26;
  background-position: center;
  background-size: cover;
  transition: transform 0.24s ease, filter 0.24s ease;
}

.post-card:hover .media,
.post-card:focus-within .media {
  filter: saturate(1.06);
  transform: scale(1.015);
}

.media::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, transparent 58%, rgba(7, 8, 11, 0.58)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.media-01 { background-image: linear-gradient(145deg, #1b1d26 0%, #3d1530 42%, #ff4f9a 100%); }
.media-02 { background-image: linear-gradient(145deg, #101116 0%, #342353 52%, #ff8fc1 100%); }
.media-03 { background-image: linear-gradient(145deg, #171923 0%, #202b37 44%, #ff4f9a 100%); }
.media-04 { background-image: linear-gradient(145deg, #11131c 0%, #4b1232 50%, #ff6dae 100%); }
.media-05 { background-image: linear-gradient(145deg, #0d0e13 0%, #24242d 52%, #ff4f9a 100%); }
.media-06 { background-image: linear-gradient(145deg, #1b1d26 0%, #5c2442 45%, #ff9dcc 100%); }
.media-07 { background-image: linear-gradient(145deg, #15161c 0%, #343846 48%, #ff4f9a 100%); }
.media-08 { background-image: linear-gradient(145deg, #08090d 0%, #2d1630 45%, #ff77b6 100%); }
.media-09 { background-image: linear-gradient(145deg, #101116 0%, #44213a 46%, #ff5da3 100%); }
.media-10 { background-image: linear-gradient(145deg, #0c0d12 0%, #252833 48%, #e84a91 100%); }
.media-11 { background-image: linear-gradient(145deg, #171923 0%, #3a1631 44%, #ff9ac9 100%); }
.media-12 { background-image: linear-gradient(145deg, #0f1016 0%, #4d2250 50%, #ff4f9a 100%); }
.media-13 { background-image: linear-gradient(145deg, #15161d 0%, #2b2d37 42%, #f45c9d 100%); }
.media-14 { background-image: linear-gradient(145deg, #08090d 0%, #35122b 48%, #ff83bd 100%); }
.media-15 { background-image: linear-gradient(145deg, #11131a 0%, #202a38 47%, #ff4f9a 100%); }
.media-16 { background-image: linear-gradient(145deg, #181923 0%, #562744 50%, #ffafd3 100%); }
.media-17 { background-image: linear-gradient(145deg, #0f1015 0%, #421a35 46%, #ff5fa7 100%); }
.media-18 { background-image: linear-gradient(145deg, #161821 0%, #2e3140 48%, #ff8dc1 100%); }
.media-19 { background-image: linear-gradient(145deg, #090a0f 0%, #30162d 44%, #f44f97 100%); }
.media-20 { background-image: linear-gradient(145deg, #191a22 0%, #5b2449 50%, #ffb3d6 100%); }

.tag-media {
  background-image:
    linear-gradient(180deg, rgba(7, 8, 11, 0.05), rgba(7, 8, 11, 0.28)),
    linear-gradient(145deg, #101116 0%, #44213a 46%, #ff5da3 100%);
}

.grid-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 79, 154, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.ad-slot {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 79, 154, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 154, 0.16), rgba(255, 255, 255, 0.035) 52%),
    rgba(16, 17, 22, 0.92);
  color: var(--muted);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
}

.ad-slot-grid {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 18px;
}

.ad-kicker {
  color: var(--pink-2);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-title {
  color: var(--text);
  font-weight: 900;
}

.ad-slot p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
}

.ad-slot a {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 79, 154, 0.42);
  border-radius: 8px;
  background: rgba(255, 79, 154, 0.12);
  color: #ffd8ea;
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.ad-slot a:hover {
  border-color: rgba(255, 143, 193, 0.72);
  background: rgba(255, 79, 154, 0.2);
}

.entry {
  padding: 12px 12px 13px;
}

.entry h2 {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry h2 a:hover {
  color: var(--pink-2);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-size: 0.78rem;
}

.meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 14px;
}

.page {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}

.page.current,
.page:not(:disabled):hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #fff;
}

.page.disabled {
  color: var(--soft);
}

.page:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page.next {
  min-width: 82px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0b0f;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.35fr;
  gap: 28px;
  padding: 30px 0 34px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--pink-2);
}

.legal-main {
  padding: 40px 0 56px;
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-hero {
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-content {
  display: grid;
  gap: 22px;
  padding: 24px 0 0;
}

.legal-block {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-block h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.1rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-block p {
  margin: 0 0 10px;
}

.legal-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.legal-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 79, 154, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-links a:hover {
  border-color: rgba(255, 79, 154, 0.46);
  color: var(--pink-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.detail-main {
  padding: 16px 0 96px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
  touch-action: pan-y;
}

.detail-summary {
  width: min(100%, 920px);
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 154, 0.15), rgba(255, 255, 255, 0.03) 48%),
    rgba(16, 17, 22, 0.92);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.summary-kicker {
  margin-bottom: 8px;
  color: var(--pink-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-summary h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-stats span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 79, 154, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.image-detail-list {
  width: min(100%, 920px);
  max-width: 100%;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: hidden;
  overflow-y: visible;
  touch-action: pan-y;
}

.detail-pager {
  width: min(100%, 920px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.detail-pager[hidden] {
  display: none;
}

.detail-pager button,
.detail-pager span {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 17, 22, 0.92);
  color: var(--muted);
  padding: 0 14px;
}

.detail-pager button {
  cursor: pointer;
}

.detail-pager button:not(:disabled):hover {
  border-color: rgba(255, 79, 154, 0.46);
  color: var(--pink-2);
}

.detail-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.detail-pager span {
  display: grid;
  place-items: center;
}

.detail-image-item {
  position: relative;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.detail-image-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: initial;
  background: #08090d;
}

.ad-slot-detail {
  width: min(100%, 920px);
  margin: 14px auto;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.locked-preview img {
  filter: blur(8px);
  transform: scale(1.01);
}

.login-overlay {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  display: grid;
  min-height: 96px;
  place-items: center;
  gap: 10px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 8, 11, 0.56);
  backdrop-filter: blur(14px);
}

.login-overlay button {
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.ad-slot-lock {
  width: min(92%, 520px);
  padding: 12px 14px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 79, 154, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(7, 8, 11, 0.64);
}

.ad-slot-lock .ad-kicker,
.ad-slot-lock p {
  display: none;
}

.ad-slot-lock a {
  justify-self: center;
}

.login-overlay button {
  padding: 11px 18px;
  border: 1px solid rgba(255, 79, 154, 0.38);
  border-radius: 999px;
  background: rgba(255, 79, 154, 0.16);
  color: #ffd8ea;
  font-weight: 800;
  cursor: pointer;
}

.login-overlay button:hover {
  border-color: rgba(255, 143, 193, 0.7);
  background: rgba(255, 79, 154, 0.24);
}

.auth-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
}

.auth-modal.open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(12px);
}

.auth-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(255, 79, 154, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 79, 154, 0.14), rgba(255, 255, 255, 0.03) 42%),
    #101116;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  padding: 18px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 36px 0 18px;
}

.auth-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button.active {
  border-color: rgba(255, 79, 154, 0.5);
  background: rgba(255, 79, 154, 0.16);
  color: #ffd8ea;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 13px;
}

.auth-form h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0 12px;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(255, 79, 154, 0.62);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle.active {
  color: var(--pink-2);
  background: rgba(255, 255, 255, 0.06);
}

.auth-submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), #c1368b);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.auth-message {
  min-height: 20px;
  color: #ffb3c8;
  font-size: 0.86rem;
}

.auth-message.success {
  color: #9ff0c1;
}

.login-btn.logged-in {
  border-color: rgba(159, 240, 193, 0.36);
  background: rgba(159, 240, 193, 0.1);
  color: #c8f8dc;
}

.logout-dialog h2 {
  margin: 36px 0 8px;
  font-size: 1.35rem;
}

.logout-copy {
  margin: 0 0 18px;
  color: var(--muted);
}

.logout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.logout-cancel {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.payment-dialog h2 {
  margin: 36px 0 6px;
  font-size: 1.35rem;
}

.payment-subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.payment-methods button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.payment-methods button.active {
  border-color: rgba(255, 79, 154, 0.52);
  background: rgba(255, 79, 154, 0.15);
  color: #ffd8ea;
}

.payment-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.mock-qr {
  display: grid;
  width: 128px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 79, 154, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    #0b0c11;
  background-size: 12px 12px;
  color: var(--pink-2);
  font-size: 1.6rem;
  font-weight: 900;
}

.payment-info {
  display: grid;
  gap: 8px;
}

.payment-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.payment-info strong {
  color: var(--text);
  text-align: right;
}

.superuser-panel {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 35;
  width: min(280px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255, 79, 154, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 79, 154, 0.16), rgba(255, 255, 255, 0.04) 48%),
    rgba(16, 17, 22, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.detail-scroll-top {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 34;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 79, 154, 0.42);
  border-radius: 10px;
  background: rgba(16, 17, 22, 0.92);
  color: #ffd8ea;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  backdrop-filter: blur(14px);
}

.detail-scroll-top[hidden] {
  display: none;
}

.detail-scroll-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.detail-scroll-top:hover {
  border-color: rgba(255, 143, 193, 0.72);
  background: rgba(255, 79, 154, 0.18);
}

.detail-scroll-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.superuser-title {
  margin-bottom: 10px;
  color: var(--pink-2);
  font-weight: 900;
}

.superuser-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.superuser-row strong {
  color: var(--text);
  font-weight: 800;
}

.superuser-panel button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), #c1368b);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.superuser-panel button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.superuser-status {
  min-height: 18px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.membership-panel {
  border-color: rgba(159, 240, 193, 0.28);
}

.membership-copy {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.membership-panel.attention {
  border-color: rgba(255, 143, 193, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 79, 154, 0.2), 0 22px 70px rgba(0, 0, 0, 0.42);
}

@media (max-width: 980px) {
  .nav-list {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ad-slot-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
    overflow-x: hidden;
  }

  .navbar {
    min-height: 58px;
    gap: 12px;
    max-width: 100%;
  }

  .brand-text {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .login-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .search-panel {
    grid-template-columns: 1fr;
    padding-bottom: 12px;
  }

  .search-label {
    min-height: auto;
  }

  .content-section {
    padding-top: 24px;
  }

  .tag-category-row {
    margin: -6px -10px 14px;
    padding: 0 10px 6px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .detail-scroll-top {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .entry {
    padding: 10px;
  }

  .entry h2 {
    font-size: 0.88rem;
  }

  .meta {
    font-size: 0.72rem;
  }

  .ad-slot-grid,
  .ad-slot-detail {
    padding: 13px;
  }

  .ad-slot p {
    font-size: 0.82rem;
  }

  .ad-slot-lock {
    width: calc(100% - 20px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .detail-main {
    padding-top: 16px;
    padding-bottom: 96px;
  }

  .image-detail-list {
    width: 100%;
  }

  .detail-image-item {
    padding: 10px 0;
    overflow: visible;
  }

  .login-overlay {
    bottom: 10px;
    min-height: 82px;
  }

  .detail-image-item img {
    width: 100%;
    max-width: 100%;
  }

}
