:root {
  color-scheme: light;
  --bg: #f6fbff;
  --panel: #ffffff;
  --panel-soft: #edf8ff;
  --line: #d9edf8;
  --line-strong: #b8dfee;
  --text: #1d3340;
  --muted: #6f8795;
  --primary: #61b9e8;
  --primary-strong: #2694d0;
  --success: #4ebd95;
  --warning: #f5b451;
  --danger: #ee6c75;
  --shadow: 0 16px 38px rgba(60, 142, 188, .14);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, #e9f8ff 0%, var(--bg) 36%, #ffffff 100%);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(142, 218, 247, .22), transparent 34%),
    linear-gradient(180deg, #effaff 0%, #ffffff 100%);
  color: var(--text);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

img {
  display: block;
  max-width: 100%;
}

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

.hidden {
  display: none !important;
}

.public-profile-boot #authView,
.public-profile-boot #bottomNav,
.public-profile-boot #guestBar {
  display: none !important;
}

.public-profile-boot #appView.hidden {
  display: block !important;
}

.public-profile-boot #viewHome {
  display: none !important;
}

.public-profile-boot #viewProfile {
  display: block !important;
}

.public-profile-boot #profileView:empty {
  min-height: 100vh;
}

.mobile-frame {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 255, 255, .76);
  border-left: 1px solid rgba(190, 225, 238, .65);
  border-right: 1px solid rgba(190, 225, 238, .65);
  position: relative;
  overflow-x: hidden;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.auth-panel {
  width: 100%;
  max-width: 380px;
  padding: 34px 22px 24px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 24px;
  color: #ffffff;
  font-weight: 800;
  font-size: 26px;
  background: linear-gradient(135deg, #8eddf8 0%, #55afe1 100%);
  box-shadow: 0 16px 30px rgba(71, 166, 217, .28);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.auth-panel h1,
.topbar h2,
.section-head h3,
.sheet h3,
.admin-card h3,
.admin-page-title h1 {
  margin: 0;
}

.auth-panel h1 {
  font-size: 26px;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.auth-panel .muted {
  margin: 8px 0 22px;
  font-size: 14px;
}

.auth-tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.segmented,
.admin-tabs {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.segmented button,
.admin-tabs button {
  min-height: 36px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
}

.segmented button.active,
.admin-tabs button.active {
  color: var(--primary-strong);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(81, 168, 216, .14);
}

.feed-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.feed-tabs button {
  position: relative;
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
}

.feed-tabs button.active {
  color: var(--primary-strong);
  background: transparent;
}

.feed-tabs button.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary-strong);
}

.form-stack {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  text-align: left;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(97, 185, 232, .16);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.soft-btn,
.text-btn,
.admin-action {
  min-height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  white-space: nowrap;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #6bc8ef, #2d9ed5);
  box-shadow: 0 10px 20px rgba(61, 158, 211, .24);
}

.ghost-btn {
  color: var(--primary-strong);
  background: #eef9ff;
  border: 1px solid var(--line);
}

.danger-btn {
  color: #ffffff;
  background: var(--danger);
}

.soft-btn {
  color: var(--primary-strong);
  background: var(--panel-soft);
}

.text-btn {
  color: var(--primary-strong);
  background: transparent;
  padding: 0 2px;
  min-height: 30px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-strong);
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1;
}

.guest-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.app-view {
  min-height: 100vh;
  padding: 14px 14px 92px;
}

.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 12;
  width: min(100%, 480px);
  transform: translateX(-50%);
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px;
  background: rgba(246, 251, 255, .9);
  border-bottom: 1px solid rgba(217, 237, 248, .75);
  backdrop-filter: blur(16px);
}

.topbar > div {
  min-width: 0;
  flex: 1;
}

.topbar h2 {
  font-size: 20px;
  line-height: 1.15;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.search-line {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  align-items: center;
}

.notice-marquee {
  height: 42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  color: var(--primary-strong);
  white-space: nowrap;
}

.notice-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.notice-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  position: relative;
  z-index: 1;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(145deg, #eefaff, #d8f2fd);
  border: 1px solid rgba(126, 202, 236, .72);
  box-shadow: 0 8px 18px rgba(62, 160, 213, .16), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.notice-icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  width: 14px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #46b6e6, #1688ca);
  clip-path: polygon(0 32%, 38% 32%, 100% 0, 100% 100%, 38% 68%, 0 68%);
}

.notice-icon::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 9px;
  width: 7px;
  height: 14px;
  border: 2px solid #1c96d2;
  border-left: 0;
  border-radius: 0 999px 999px 0;
  opacity: .78;
}

.notice-marquee #noticeText {
  display: inline-block;
  min-width: 0;
  padding-left: 100%;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.search-box {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.search-box span {
  color: var(--primary-strong);
}

.search-box input {
  border: 0;
  padding-left: 0;
  box-shadow: none;
}

.banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 16px -14px 0;
  padding: 0 14px 6px;
}

.banner-track::-webkit-scrollbar {
  display: none;
}

.banner-track-empty {
  grid-auto-columns: 100%;
  overflow: visible;
}

.banner-empty {
  aspect-ratio: 750 / 320;
  min-height: 0;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, .72);
  border: 1px dashed var(--line);
}

.banner-card {
  aspect-ratio: 750 / 320;
  min-height: 0;
  display: block;
  scroll-snap-align: start;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: #e8f7ff;
  box-shadow: var(--shadow);
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-block {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-head h3 {
  font-size: 17px;
}

.article-list,
.rank-list,
.dynamic-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.article-card,
.rank-card,
.dynamic-card,
.mine-profile,
.profile-hero,
.profile-section,
.admin-card,
.admin-table,
.admin-form,
.admin-login-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(79, 153, 191, .08);
}

.article-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 10px;
}

.article-thumb,
.project-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dcf4ff, #f7fcff);
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  font-weight: 700;
}

.article-card h4,
.dynamic-card h4,
.profile-section h3 {
  margin: 0;
  font-size: 15px;
}

.article-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.article-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(79, 153, 191, .07);
}

.article-title-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.article-title-card small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.article-summary-detail {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.tag-row,
.stat-row,
.contact-row,
.project-actions,
.dynamic-actions,
.sort-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: #eef9ff;
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.tag-row {
  gap: 5px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #f5fbff;
  border: 1px solid var(--line);
  font-size: 12px;
}

.rank-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.rank-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rank-main strong {
  flex: 0 1 auto;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.rank-tags {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.rank-tags::-webkit-scrollbar {
  display: none;
}

.rank-tags .tag {
  flex: 0 0 auto;
  min-height: 19px;
  padding: 0 6px;
  font-size: 10.5px;
}

.tag-muted {
  color: var(--muted);
  background: #f7fcff;
}

.rank-no {
  color: var(--primary-strong);
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  justify-items: center;
  justify-self: end;
  line-height: 1;
  min-width: 42px;
}

.rank-no small {
  color: var(--muted);
  font-size: 10px;
}

.rank-no b {
  font-size: 25px;
  font-weight: 800;
}

.rank-card .avatar {
  width: 50px;
  height: 50px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #80d2f2, #3aa5d8);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-card strong,
.mine-profile strong,
.profile-hero strong {
  display: block;
  font-size: 15px;
}

.rank-card small,
.mine-profile small,
.profile-hero small,
.dynamic-card small {
  color: var(--muted);
}

.feed-tabs {
  margin-bottom: 12px;
}

.dynamic-card {
  padding: 12px;
}

.dynamic-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 10px;
}

.dynamic-content {
  margin: 0 0 10px;
  line-height: 1.58;
  font-size: 14px;
}

.dynamic-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.dynamic-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

.dynamic-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.image-viewer {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.dynamic-viewer {
  display: grid;
  gap: 8px;
}

.dynamic-viewer-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f6fbff;
}

.dynamic-watermark {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  overflow: hidden;
}

.dynamic-watermark span {
  position: absolute;
  display: inline-block;
  transform: rotate(28deg);
  transform-origin: left center;
  color: rgba(17, 78, 112, .13);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: none;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(196, 231, 247, .92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: var(--primary-strong);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(32, 120, 160, .16);
}

.viewer-prev {
  left: 10px;
}

.viewer-next {
  right: 10px;
}

.viewer-count {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.loading-state {
  min-height: 132px;
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  background: rgba(255, 255, 255, .72);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  transform: translateY(2px);
}

.loading-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: loading-dot 900ms ease-in-out infinite;
}

.loading-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.loading-dots i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes loading-dot {
  0%, 80%, 100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.dynamic-actions {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.dynamic-actions button {
  color: var(--primary-strong);
  background: transparent;
  padding: 4px 0;
}

.dynamic-manage {
  justify-content: flex-end;
  gap: 14px;
}

.dynamic-manage button:last-child {
  color: var(--danger);
}

.fab {
  position: fixed;
  right: calc((100vw - min(100vw, 480px)) / 2 + 20px);
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  z-index: 11;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #6bc8ef, #2d9ed5);
  box-shadow: 0 14px 30px rgba(56, 157, 213, .32);
  font-size: 28px;
}

.mine-profile {
  padding: 14px;
}

.self-hero-card,
.self-section {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(79, 153, 191, .08);
}

.self-hero-card {
  position: relative;
  padding: 12px 12px 14px;
}

.self-hero-card + .self-section,
.self-section + .self-section {
  margin-top: 12px;
}

.self-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  margin-bottom: 6px;
}

.self-back,
.self-menu-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-strong);
  background: #f5fbff;
  border: 1px solid var(--line);
  font-size: 24px;
  line-height: 1;
}

.self-menu-btn {
  font-size: 20px;
}

.self-report-btn {
  color: #e58a14;
  font-size: 19px;
}

.self-menu-wrap {
  position: relative;
}

.self-menu {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 20;
  width: 152px;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.self-menu button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.self-menu button:last-child {
  border-bottom: 0;
}

.self-profile-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.self-profile-main .avatar {
  width: 64px;
  height: 64px;
}

.self-profile-info {
  min-width: 0;
}

.mine-profile .tag-row,
.self-profile-info .tag-row,
.user-list-item .tag-row {
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-tag-row {
  margin-top: 3px;
  padding: 1px 14px 1px 0;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.profile-tag-row.tag-row-scrollable {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
}

.mine-profile .tag-row::-webkit-scrollbar,
.self-profile-info .tag-row::-webkit-scrollbar,
.user-list-item .tag-row::-webkit-scrollbar {
  display: none;
}

.mine-profile .tag,
.self-profile-info .tag,
.user-list-item .tag {
  flex: 0 0 auto;
  min-height: 19px;
  padding: 0 6px;
  font-size: 10.5px;
}

.self-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.self-profile-info strong {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 16px;
}

.self-follow-btn {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--primary-strong);
  background: #eef9ff;
  border: 1px solid var(--line);
  font-size: 13px;
  white-space: nowrap;
}

.self-profile-info small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.self-profile-stats {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
}

.self-rank {
  min-width: 112px;
  text-align: right;
}

.self-rank.rank-no {
  justify-content: flex-end;
}

.self-rank.rank-no small {
  color: var(--muted);
  font-size: 13px;
}

.self-rank span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.self-rank b {
  display: inline;
  margin-top: 0;
  color: var(--primary-strong);
  font-size: 25px;
  line-height: 1;
}

.self-section {
  position: relative;
  padding: 12px;
}

.self-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.self-section-head h3 {
  margin: 0;
  font-size: 16px;
}

.section-edit-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary-strong);
  background: #eef9ff;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1;
}

.section-floating-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.self-bio-section {
  padding-bottom: 10px;
}

.self-bio-text {
  margin: 0;
  padding-right: 34px;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

.self-bio-empty {
  min-height: 54px;
}

.empty-state.self-bio-empty {
  min-height: 54px;
}

.self-contact-section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.self-contact-list,
.self-project-list {
  display: grid;
  gap: 9px;
}

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

.self-contact-section .empty-state {
  min-height: 54px;
}

.self-contact-section .add-circle-btn {
  width: 42px;
  height: 42px;
  margin-top: 10px;
  font-size: 26px;
}

.self-contact-card {
  min-height: 58px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  background: #f6fbff;
  border: 1px solid var(--line);
}

.self-contact-card b,
.self-contact-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.self-contact-card small {
  color: var(--muted);
  font-size: 12px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #80d2f2, #3aa5d8);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 32px;
}

.contact-icon-image {
  background: #ffffff;
  border: 1px solid var(--line);
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.self-contact-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.self-project-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.self-project-card h4,
.self-project-card p {
  margin: 0;
}

.self-project-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.add-circle-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 14px auto 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #6bc8ef, #2d9ed5);
  box-shadow: 0 10px 22px rgba(56, 157, 213, .24);
  font-size: 30px;
  line-height: 1;
}

.compact-empty {
  min-height: 68px;
  grid-column: 1 / -1;
}

.empty-state.compact-empty {
  min-height: 54px;
}

.mine-head,
.profile-head {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 12px;
}

.mine-head .avatar,
.profile-head .avatar {
  width: 62px;
  height: 62px;
}

.mine-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mine-name-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-edit-btn {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary-strong);
  background: #eef9ff;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1;
}

.mine-rank {
  min-width: 52px;
}

.mine-tags-dialog {
  padding-top: 4px;
}

.tag-dialog-block {
  display: grid;
  gap: 8px;
}

.tag-dialog-block + .tag-dialog-block {
  margin-top: 12px;
}

.tag-dialog-block h4 {
  font-size: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.stat-item {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--panel-soft);
  text-align: center;
}

.stat-button {
  width: 100%;
  cursor: pointer;
}

.stat-button:active {
  transform: translateY(1px);
}

.stat-item b {
  font-size: 16px;
}

.stat-item span {
  color: var(--muted);
  font-size: 12px;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mine-grid button {
  min-height: 56px;
  border-radius: var(--radius);
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(79, 153, 191, .07);
}

.profile-hero {
  padding: 14px;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.profile-section {
  padding: 12px;
  margin-top: 12px;
}

.contact-list,
.project-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.contact-row {
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #f6fbff;
  border: 1px solid var(--line);
}

.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compact-btn {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
}

.user-list-item {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: inherit;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.user-list-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.user-list-item small {
  color: var(--muted);
}

.user-list-item em {
  color: var(--primary-strong);
  font-style: normal;
  font-weight: 700;
}

.blacklist-item {
  grid-template-columns: 44px 1fr auto;
}

.manage-list {
  display: grid;
  gap: 10px;
}

.manage-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.manage-row > span:not(.contact-icon):not(.project-logo-preview) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.manage-row b,
.manage-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-row small {
  color: var(--muted);
}

.danger-text {
  color: #d84d4d;
}

.project-manage-row {
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
}

.project-logo-mini {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.project-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.project-thumb {
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card h4,
.project-card p {
  margin: 0;
}

.project-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 5px;
}

.sort-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sort-line select {
  width: auto;
  min-width: 118px;
  padding: 8px 10px;
}

.sort-tools {
  justify-content: flex-end;
}

.mini-icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #6bc8ef, #2d9ed5);
  box-shadow: 0 8px 18px rgba(56, 157, 213, .24);
  font-size: 24px;
  line-height: 1;
}

.project-logo-upload {
  min-height: 86px;
  grid-template-columns: 58px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #f5fbff;
  color: var(--text);
}

.project-logo-upload input {
  display: none;
}

.project-logo-upload b,
.project-logo-upload small {
  grid-column: 2;
}

.project-logo-upload small,
.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.project-logo-preview {
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary-strong);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.project-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 10px 0 4px;
  text-align: center;
}

.qr-box img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 12;
  width: min(100%, 480px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px);
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
  font-size: 12px;
}

.bottom-nav button span {
  font-size: 20px;
}

.bottom-nav button.active {
  color: var(--primary-strong);
  background: #eef9ff;
}

.sheet-dialog {
  width: min(100% - 24px, 450px);
  max-height: min(86vh, 720px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.sheet-dialog::backdrop {
  background: rgba(23, 52, 68, .08);
  backdrop-filter: none;
}

.sheet {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#actionBody {
  max-height: min(66vh, 560px);
  overflow: auto;
}

.compose-quota {
  display: block;
  margin-top: 5px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 500;
}

.composer-meta,
.check-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.check-line {
  justify-content: flex-start;
}

.check-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-strong);
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.upload-tile {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--primary-strong);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #f5fbff;
}

.upload-tile input {
  display: none;
}

.upload-tile small {
  color: var(--muted);
}

.admin-image-upload,
.admin-icon-upload {
  cursor: pointer;
}

.banner-image-preview {
  width: 112px;
  height: auto;
  aspect-ratio: 750 / 320;
}

.admin-banner-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-banner-thumb {
  width: 112px;
  aspect-ratio: 750 / 320;
  flex: 0 0 112px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f6fbff;
}

.admin-banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: 2147483647;
  pointer-events: none;
  max-width: min(88%, 380px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(28, 60, 78, .92);
  box-shadow: 0 10px 24px rgba(25, 68, 90, .24);
  font-size: 14px;
}

.empty-state {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .6);
  text-align: center;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px 1fr;
  background: var(--bg);
}

.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-logo .brand-mark {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: var(--radius);
  font-size: 15px;
}

.admin-logo strong {
  display: block;
}

.admin-logo small {
  color: var(--muted);
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border-radius: var(--radius);
}

.admin-nav button.active {
  color: var(--primary-strong);
  background: #eef9ff;
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-page-title h1 {
  font-size: 24px;
}

.admin-page-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card {
  padding: 14px;
}

.admin-card b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.admin-card span {
  color: var(--muted);
  font-size: 13px;
}

.admin-card .contact-icon {
  color: #ffffff;
  font-size: 12px;
}

.admin-card .contact-icon-image {
  color: inherit;
}

.admin-card .admin-list-title {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.admin-card .admin-list-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
}

.admin-grid-single {
  grid-template-columns: 1fr;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-inline-form input {
  width: 90px;
  min-height: 36px;
  padding: 0 10px;
}

.admin-toolbar .search-box {
  width: min(360px, 100%);
  margin: 0;
}

.admin-table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  background: #f7fcff;
  font-weight: 600;
}

td .admin-action {
  min-height: 30px;
  padding: 0 8px;
  color: var(--primary-strong);
  background: #eef9ff;
}

td .danger-action {
  color: var(--danger);
  background: #fff4f5;
}

.admin-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-form .row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.field-group {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.admin-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.admin-check-item input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--primary-strong);
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-card {
  width: min(100%, 390px);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-login-card .brand-mark {
  margin: 0;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-list button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--text);
  background: #f5fbff;
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .admin-shell {
    display: block;
  }

  .admin-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 20;
    height: auto;
    padding: 8px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .admin-logo {
    display: none;
  }

  .admin-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    overflow-x: auto;
  }

  .admin-nav button {
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
  }

  .admin-main {
    padding: 18px 12px 82px;
  }

  .admin-page-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-form .row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .app-view {
    padding-left: 10px;
    padding-right: 10px;
  }

  .banner-track {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .rank-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .rank-card .avatar {
    width: 44px;
    height: 44px;
  }

}
