* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #e6f3f6 0%, #f4f8f9 40%);
  color: #0f3a42;
}

.app-body {
  min-height: 100dvh;
}

.body--loading {
  overflow: hidden;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  position: relative;
}

.page--with-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.site-icp {
  margin: 20px 0 0;
  padding: 0 4px 8px;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.4;
}

.site-icp a {
  color: #7a949c;
  text-decoration: none;
}

.site-icp a:active {
  color: #197e92;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.subtitle {
  margin: 0;
  color: #567580;
  font-size: 0.95rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 4px 24px rgba(25, 126, 146, 0.08);
}

.upload {
  display: block;
  margin-bottom: 16px;
  cursor: pointer;
}

.dropzone {
  position: relative;
  margin-bottom: 16px;
  padding: 28px 16px;
  border: 2px dashed #8ec4d0;
  border-radius: 12px;
  background: #f6fafb;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:focus-visible {
  outline: 2px solid #197e92;
  outline-offset: 2px;
}

.dropzone--dragover {
  border-color: #197e92;
  background: #e6f3f6;
}

.dropzone--has-file {
  border-style: solid;
  border-color: #197e92;
}

.dropzone input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.dropzone-label {
  display: block;
  font-weight: 600;
  color: #197e92;
  margin-bottom: 6px;
}

.dropzone-hint,
.dropzone-file {
  display: block;
  font-size: 0.85rem;
  color: #567580;
}

.dropzone-file {
  margin-top: 8px;
  color: #197e92;
  word-break: break-all;
}

.dropzone-error {
  margin: -8px 0 12px;
  font-size: 0.85rem;
  color: #c0392b;
  text-align: center;
}

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

.capture-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 108px;
  padding: 16px 10px;
  border: 2px solid #c5e0e8;
  border-radius: 14px;
  background: #f6fafb;
  color: #197e92;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.capture-btn:focus-visible {
  outline: 2px solid #197e92;
  outline-offset: 2px;
}

.capture-btn--active {
  border-color: #197e92;
  background: #e8f6f9;
  box-shadow: 0 4px 16px rgba(25, 126, 146, 0.14);
}

.capture-btn--filled:not(.capture-btn--active) {
  border-color: #8ec4d0;
  background: #fff;
}

.capture-btn {
  position: relative;
}

.capture-btn--filled::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #197e92;
}

.capture-btn__icon {
  display: flex;
  line-height: 0;
  opacity: 0.92;
}

.capture-btn__label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.capture-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.capture-status {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: #567580;
  text-align: center;
}

.capture-error {
  margin: 4px 0 10px;
  font-size: 0.85rem;
  color: #c0392b;
  text-align: center;
}

.angle-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}

.angle-slot {
  position: relative;
  aspect-ratio: 3 / 5;
  min-height: 0;
  border: 2px dashed #c5e0e8;
  border-radius: 10px;
  background: #f6fafb;
  overflow: hidden;
}

.angle-slot--filled {
  border-style: solid;
  border-color: #8ec4d0;
  background: #fff;
}

.angle-slot__title {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 700;
  color: #197e92;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
}

.angle-slot__pick {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #8ec4d0;
  cursor: pointer;
}

.angle-slot__pick:focus-visible {
  outline: 2px solid #197e92;
  outline-offset: -4px;
}

.angle-slot__plus {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.85;
}

.angle-slot__thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.angle-slot__change {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 5px;
  z-index: 3;
  padding: 4px 2px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #197e92;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(25, 126, 146, 0.12);
  text-align: center;
}

.angle-slot__change:focus-visible {
  outline: 2px solid #197e92;
  outline-offset: 2px;
}

.identify-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 999px;
  background: #e6f3f6;
}

.identify-modes__btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #567580;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.identify-modes__btn--active {
  background: #fff;
  color: #197e92;
  box-shadow: 0 2px 8px rgba(25, 126, 146, 0.12);
}

.shooting-guide__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: #3d5a62;
  line-height: 1.65;
}

.shooting-guide__list li + li {
  margin-top: 8px;
}

.shooting-guide .section-title {
  margin-bottom: 10px;
}

.identify-meta {
  margin-top: 16px;
  margin-bottom: 18px;
  padding-top: 0;
}

.identify-meta > .meta-fold > .meta-fold__summary {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: calc(0.92rem - 1px);
}

.identify-meta > .meta-fold > .meta-fold__summary .meta-fold__badge {
  font-size: calc(0.75rem - 1px);
}

.identify-form > .btn {
  margin-top: 0;
}

.meta-fold {
  border-radius: 12px;
  border: 1px solid #d4e8ee;
  background: #f8fcfd;
  overflow: visible;
}

.meta-fold--child {
  background: #fff;
  border-color: #e0eff3;
}

.meta-fold + .meta-fold--child,
.meta-fold__body--stack > .meta-fold--child + .meta-fold--child {
  margin-top: 8px;
}

.meta-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2d4a52;
  user-select: none;
}

.meta-fold__summary::-webkit-details-marker {
  display: none;
}

.meta-fold__summary::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6e8a94;
  border-bottom: 2px solid #6e8a94;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-left: 8px;
}

.meta-fold[open] > .meta-fold__summary::after {
  transform: rotate(45deg);
  margin-top: -4px;
}

.meta-fold__title {
  font-weight: 700;
}

.meta-fold__badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6e8a94;
  max-width: 58%;
  text-align: right;
  line-height: 1.35;
}

.meta-fold__badge--ip {
  color: #197e92;
  font-weight: 600;
}

.meta-fold__badge--sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #197e92;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-fold__body {
  padding: 0 12px 12px;
}

.meta-fold__body--stack {
  padding-top: 4px;
}

.meta-fold:not([open]) .meta-fold__body {
  padding-bottom: 0;
}

.meta-fold--child .meta-fold__summary {
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.meta-fold--child .meta-fold__body {
  padding: 0 10px 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.identify-meta__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #6e8a94;
  line-height: 1.5;
}

.identify-meta__hint kbd {
  padding: 1px 6px;
  border-radius: 4px;
  background: #eef6f8;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}

.field-label--sub {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #567580;
}

.identify-meta__hint--ip strong {
  color: #197e92;
  font-weight: 600;
}

.source-location-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  margin-bottom: 4px;
}

.source-location-toolbar__text {
  flex: 1 1 12rem;
  margin-bottom: 0;
}

.source-location-clear {
  flex: 0 0 auto;
  width: auto;
  min-width: 7.5rem;
  padding: 8px 14px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.location-picker {
  position: relative;
  margin-bottom: 0;
}

.location-picker__search {
  margin-bottom: 0;
}

.meta-fold__body .field-input:last-child {
  margin-bottom: 0;
}

.location-picker__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #8ec4d0;
  box-shadow: 0 8px 24px rgba(25, 126, 146, 0.12);
}

.location-picker__option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 0.9rem;
  color: #2d4a52;
  cursor: pointer;
}

.location-picker__option:hover,
.location-picker__option:focus-visible {
  background: #eef8fa;
  outline: none;
}

.knife-scratch {
  margin: 0;
  padding: 0;
  border: none;
}

.knife-scratch__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knife-scratch__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #c5e0e8;
  background: #f8fcfd;
  font-size: 0.85rem;
  color: #3d5a62;
  cursor: pointer;
  user-select: none;
}

.knife-scratch__option:has(input:checked) {
  border-color: #197e92;
  background: #e8f6f9;
  color: #197e92;
  font-weight: 600;
}

.knife-scratch__option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shooting-guide {
  margin-top: 14px;
}

.identify-analysis {
  font-size: calc(1em - 2px);
  line-height: 1.65;
  color: #2a4a52;
}

.identify-analysis p {
  margin: 0 0 0.85em;
}

.identify-analysis p:last-child {
  margin-bottom: 0;
}

.result-refine__input {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  margin-bottom: 10px;
}

.result-refine__log {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: calc(1em - 2px);
  color: #3d5a62;
  line-height: 1.55;
}

.result-refine__log li {
  margin-bottom: 0.45em;
}

.result-refine__quota {
  margin: 0 0 10px;
}

.result-refine__error {
  margin-top: 10px;
  text-align: left;
}

.result-reject {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecea;
  text-align: left;
}

.card--reject .name {
  color: #c0392b;
}

  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  background: #eff4f6;
}

.upload input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 999px;
  background: #197e92;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline {
  background: #fff;
  color: #197e92;
  border: 2px solid #197e92;
}

.tips,
.caution {
  font-size: 0.85rem;
  color: #567580;
  line-height: 1.6;
}

.tips--center {
  text-align: center;
  margin: 4px 0 0;
}

.tips--identify-legal {
  font-size: calc(0.85rem - 1px);
}

.error {
  color: #c0392b;
  text-align: center;
}

.photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.name {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.name-en {
  margin: 0 0 12px;
  color: #6e8a94;
  font-size: 0.9rem;
}

.tags {
  margin: 0;
}

.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e6f3f6;
  color: #197e92;
  font-size: 0.85rem;
}

.tag-warn {
  background: #fff4e6;
  color: #b8860b;
}

.highlight {
  background: linear-gradient(135deg, #eef6f8 0%, #fff 100%);
}

.card--value {
  border: 1px solid rgba(25, 126, 146, 0.2);
  background: linear-gradient(135deg, #f4fafb 0%, #fff 85%);
}

.tag-member {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(25, 126, 146, 0.15);
  color: #156574;
  vertical-align: middle;
}

.value-estimate {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #123828;
}

.value-disclaimer {
  margin: 0;
  font-size: 0.82rem;
}

.value-locked {
  margin: 0 0 12px;
  color: #5a7268;
}

.card--value .btn-sm {
  width: auto;
}

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

li {
  margin-bottom: 6px;
}

/* —— Gemini 连接 Loading（Windows 风格圆点环） —— */
.gemini-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(244, 248, 249, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gemini-loading[hidden] {
  display: none !important;
}

.gemini-loading__panel {
  text-align: center;
  padding: 28px 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(25, 126, 146, 0.15);
  max-width: 320px;
  width: 100%;
}

.gemini-loading__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f3a42;
}

.gemini-loading__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #567580;
}

.win-dots {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
}

.win-dots__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #197e92;
  animation: win-dot-orbit 1.35s ease-in-out infinite;
}

.win-dots__dot:nth-child(1) {
  animation-delay: 0s;
  --start: 0deg;
}

.win-dots__dot:nth-child(2) {
  animation-delay: -0.225s;
  --start: 60deg;
}

.win-dots__dot:nth-child(3) {
  animation-delay: -0.45s;
  --start: 120deg;
}

.win-dots__dot:nth-child(4) {
  animation-delay: -0.675s;
  --start: 180deg;
}

.win-dots__dot:nth-child(5) {
  animation-delay: -0.9s;
  --start: 240deg;
}

.win-dots__dot:nth-child(6) {
  animation-delay: -1.125s;
  --start: 300deg;
}

@keyframes win-dot-orbit {
  0% {
    opacity: 1;
    transform: rotate(var(--start)) translateY(-21px) scale(1.15);
  }
  35% {
    opacity: 0.35;
    transform: rotate(calc(var(--start) + 120deg)) translateY(-21px) scale(0.75);
  }
  70% {
    opacity: 0.55;
    transform: rotate(calc(var(--start) + 240deg)) translateY(-21px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(calc(var(--start) + 360deg)) translateY(-21px) scale(1.15);
  }
}

/* —— Android 风格底部导航 —— */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(25, 126, 146, 0.1);
  box-shadow: 0 -4px 24px rgba(25, 126, 146, 0.06);
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 4px 2px;
  text-decoration: none;
  color: #6e8a94;
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}

.bottom-nav__item:active {
  background: rgba(25, 126, 146, 0.06);
}

.bottom-nav__item--active {
  color: #197e92;
}

.bottom-nav__icon {
  display: flex;
  width: 26px;
  height: 26px;
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav__label {
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* —— 管理页 —— */
.section-title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.card--muted {
  background: #f6fafb;
}

.list-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #e6f3f6;
  color: #197e92;
  text-decoration: none;
  font-weight: 600;
}

.list-link:last-child {
  border-bottom: none;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field-input {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #8ec4d0;
  border-radius: 10px;
  font-size: 1rem;
}

.admin-dl {
  margin: 0;
}

.admin-dl dt {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #6e8a94;
}

.admin-dl dt:first-child {
  margin-top: 0;
}

.admin-dl dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.mono {
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
}

.route-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.route-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e6f3f6;
  border-radius: 12px;
  cursor: pointer;
}

.route-option:has(input:checked) {
  border-color: #197e92;
  background: #eef6f8;
}

.route-option input {
  margin-top: 4px;
  flex-shrink: 0;
}

.route-option strong {
  display: block;
  margin-bottom: 4px;
}

.route-option small {
  display: block;
  color: #567580;
  line-height: 1.45;
  font-size: 0.82rem;
}

.route-msg {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #197e92;
  text-align: center;
}

.route-msg--err {
  color: #c0392b;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #c5e0e8;
  background: #fff;
  color: #197e92;
  text-decoration: none;
  font-size: 0.88rem;
}

.admin-tab--active {
  background: #197e92;
  color: #fff;
  border-color: #197e92;
}

.admin-hint {
  margin-bottom: 12px;
}

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

.admin-cms-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-cms-search .field-input {
  flex: 1;
  min-width: 140px;
}

.admin-cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: nowrap;
}

.admin-cms-actions a {
  color: #197e92;
  font-weight: 600;
}

.admin-cms-form .field-label {
  margin-top: 12px;
}

.admin-textarea {
  resize: vertical;
  min-height: 4em;
  font-family: inherit;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.admin-cms-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-cms-delete {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e6f3f6;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #e6f3f6;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #567580;
  font-weight: 600;
}

.admin-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.85rem;
}

.admin-pager a {
  color: #197e92;
}

.admin-empty {
  color: #6e8a94;
  text-align: center;
  padding: 16px;
}

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.admin-thumb {
  border: 1px solid #e6f3f6;
  border-radius: 10px;
  overflow: hidden;
  background: #f9fbfc;
}

.admin-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ecf4f6;
}

.admin-thumb-meta {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.72rem;
  color: #567580;
  line-height: 1.35;
}

.admin-thumb-meta strong {
  color: #145a66;
  font-size: 0.8rem;
}

.admin-thumb-meta__location {
  word-break: break-word;
}

.admin-filter-clear {
  font-size: 0.82rem;
  font-weight: normal;
  margin-left: 8px;
}

.admin-delete-form {
  margin-top: 6px;
}

.admin-delete-btn {
  width: 100%;
  padding: 4px 8px;
  font-size: 0.72rem;
}

/* —— 个人中心 —— */
.profile-logout-btn {
  margin: 0 0 0 auto;
  padding: 6px 2px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a7268;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.profile-logout-btn:active {
  color: #197e92;
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-head__meta {
  flex: 1;
  min-width: 0;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #197e92;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-name {
  margin: 0;
  font-size: 1.35rem;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  width: 100%;
}

.profile-name-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: rgba(25, 126, 146, 0.1);
  color: #197e92;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-name-edit-panel {
  margin-bottom: 10px;
}

.profile-name-input {
  margin-bottom: 8px;
}

.profile-name-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.profile-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(25, 126, 146, 0.12);
  color: #197e92;
}

.profile-tag--tier {
  background: rgba(90, 114, 104, 0.12);
  color: #5a7268;
}

.profile-tag--tier-member {
  background: rgba(25, 126, 146, 0.18);
  color: #156574;
}

.profile-tag--tier-fan {
  background: rgba(233, 30, 99, 0.12);
  color: #c2185b;
}

.profile-subline {
  margin: 0;
  font-size: 0.85rem;
  color: #7a8f86;
}

.card--quota {
  border: 1px solid rgba(25, 126, 146, 0.12);
  padding: 14px 12px;
  margin: 12px 0;
}

.quota-line {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #3d5248;
  line-height: 1.5;
}

.quota-line--emph {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.upgrade-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(25, 126, 146, 0.1);
}

.upgrade-block__lead {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #5a7268;
}

.upgrade-block__hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #7a8f86;
}

.pay-dev-only {
  margin-top: 10px;
  opacity: 0.75;
  font-size: 0.8rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sm {
  width: auto;
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.sms-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.sms-row__code {
  flex: 1;
}

.tips--warn {
  color: #b8860b;
}

.oauth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.card--login {
  margin-top: 8px;
}

.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 72px - 56px - env(safe-area-inset-bottom, 0px));
  padding: 16px 8px 32px;
  text-align: center;
}

.login-screen--compact {
  min-height: 0;
  padding: 8px 8px 24px;
  justify-content: flex-start;
}

.profile-guest {
  margin: -24px -16px 0;
}

.profile-login-hero {
  background: #fff;
  padding: 28px 20px 24px;
  box-shadow: 0 8px 32px rgba(25, 126, 146, 0.1);
  text-align: left;
}

.profile-login-hero .login-screen__head {
  text-align: center;
  margin-bottom: 28px;
}

.profile-login-hero .login-icons {
  margin-bottom: 0;
}

.login-divider--secondary {
  margin-top: 32px;
  margin-bottom: 18px;
}

.account-auth--secondary .account-auth__tabs {
  background: #f4f8f9;
}

.account-auth--secondary .account-auth__tab {
  font-size: 0.88rem;
  font-weight: 600;
  color: #7a949c;
}

.account-auth--secondary .account-auth__tab--active {
  color: #3d6d78;
  box-shadow: 0 1px 6px rgba(25, 126, 146, 0.1);
}

.account-auth--secondary .field-label {
  font-size: 0.82rem;
  color: #7a949c;
}

.account-auth--secondary .field-input {
  font-size: 0.92rem;
}

.profile-login-hero .login-screen__err {
  max-width: 360px;
  margin: 0 auto 16px;
}

.profile-login-hero .login-legal {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #7a949c;
}

.account-auth__lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3d6d78;
  text-align: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 28px auto 24px;
  color: #8aa8b0;
  font-size: 0.78rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d4e8ed;
}

.account-auth {
  max-width: 360px;
  margin: 0 auto;
}

.account-auth__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: #eef7f9;
  border-radius: 10px;
}

.account-auth__tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #567580;
  cursor: pointer;
}

.account-auth__tab--active {
  background: #fff;
  color: #0f3a42;
  box-shadow: 0 2px 8px rgba(25, 126, 146, 0.12);
}

.account-auth__panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-auth__panel[hidden] {
  display: none;
}

.account-auth__panel .field-label {
  margin-top: 8px;
}

.account-auth__panel .field-label:first-child {
  margin-top: 0;
}

.account-auth__submit {
  margin-top: 16px;
  width: 100%;
}

.login-screen__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.login-screen__err {
  width: 100%;
  max-width: 360px;
  margin-bottom: 8px;
}

.login-screen__head {
  margin-bottom: 0;
}

.login-screen__title {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 700;
}

.login-screen__sub {
  margin: 0;
  font-size: 0.92rem;
  color: #567580;
}

.login-icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
}

.login-icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-icons__label {
  font-size: 0.82rem;
  color: #567580;
  font-weight: 500;
}

.login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(25, 126, 146, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-icon:active:not(.login-icon--off):not(:disabled) {
  transform: scale(0.96);
}

.login-icon__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
}

.login-icon__glyph--douyin img {
  display: block;
  width: 32px;
  height: 32px;
}

.login-icon__glyph--wechat .fa-weixin {
  font-size: 2.25rem;
  line-height: 1;
  color: #fff;
}

.login-icon__glyph img {
  display: block;
  width: 32px;
  height: 32px;
}

.login-icon--wechat {
  background: #07c160;
}

.login-icon--douyin {
  background: #111;
}

.login-icon--sms {
  background: #197e92;
}

.login-icon--off,
.login-icon:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.body--modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.login-modal[hidden] {
  display: none;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 58, 66, 0.45);
}

.login-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 20px 20px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(25, 126, 146, 0.22);
}

.login-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #6e8a94;
  cursor: pointer;
  padding: 4px 8px;
}

.login-modal__title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

.login-modal__lead {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #3d5a64;
}

.login-modal__url {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-all;
  color: #197e92;
  background: #f0f8fa;
  border-radius: 10px;
}

.login-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-modal__code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.login-modal__send {
  width: auto;
  padding: 10px 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-bottom: 2px;
}

.login-modal__submit {
  margin-top: 4px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.oauth-btn--wechat {
  background: #07c160;
}

.oauth-btn--douyin {
  background: #111;
}

.oauth-btn--alipay {
  background: #1677ff;
}

.oauth-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.history-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.history-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.history-item img,
.history-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #e6f3f6;
}

.history-item__title {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.history-item__meta {
  display: block;
  font-size: 0.75rem;
  color: #6e8a94;
}

.login-sms-fold summary {
  cursor: pointer;
  list-style: none;
}

.login-sms-fold summary::-webkit-details-marker {
  display: none;
}

.card--member {
  border: 1px solid rgba(25, 126, 146, 0.15);
}

.member-badge {
  margin: 0 0 8px;
  color: #197e92;
  font-weight: 600;
}

.member-badge--fan {
  color: #c2185b;
}

.member-quota {
  margin: 12px 0;
  font-size: 1.05rem;
}

.pay-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 10px;
}

.pay-row .pay-btn {
  flex: 1;
  width: auto;
  min-width: 0;
  padding: 10px 6px;
  font-size: 0.82rem;
  line-height: 1.25;
}

.pay-btn--alipay {
  background: #1677ff;
}

.pay-btn--wechat {
  background: #07c160;
}

.pay-btn:disabled {
  opacity: 0.45;
}

.tips--ok {
  color: #197e92;
}

/* —— 关于 / 设置与帮助 —— */
.page-back {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.page-back a {
  color: #197e92;
  text-decoration: none;
  font-weight: 600;
}

.card--settings {
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.settings-panel {
  margin: 20px 16px 24px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.settings-panel .section-title {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8aa8b0;
  letter-spacing: 0.02em;
}

.settings-panel .settings-list {
  border: 1px solid #c8dde3;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}

.settings-panel .settings-list__row {
  padding: 14px 16px;
  border-bottom: 1px solid #d4e8ed;
  font-weight: 500;
}

.settings-panel .settings-list__label {
  color: #3d6d78;
  font-weight: 500;
}

.settings-panel .settings-list__chev {
  color: #a8c4cc;
  font-size: 1.1rem;
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 14px 0;
  border-bottom: 1px solid #e6f3f6;
  color: #0f3a42;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(25, 126, 146, 0.12);
  position: relative;
  z-index: 1;
}

.settings-list__label {
  flex: 1;
  color: #197e92;
}

.settings-list__row:last-child {
  border-bottom: none;
}

.settings-list__row:active {
  opacity: 0.75;
}

.settings-list__chev {
  color: #8ec4d0;
  font-size: 1.25rem;
  line-height: 1;
}

.about-brand {
  text-align: center;
  margin-bottom: 20px;
  padding: 8px 0 4px;
}

.about-brand__logo {
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(25, 126, 146, 0.15);
}

.about-brand__title {
  margin: 14px 0 4px;
  font-size: 1.5rem;
}

.about-brand__tagline {
  margin: 0;
  color: #6e8a94;
  font-size: 0.95rem;
}

.doc-prose {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* about / help 等：class 直接加在 <p> 上 */
p.doc-prose {
  margin: 0 0 14px;
}

p.doc-prose:last-child {
  margin-bottom: 0;
}

.doc-prose p,
.doc-prose ul {
  margin: 0 0 12px;
}

.doc-prose p:last-child,
.doc-prose ul:last-child {
  margin-bottom: 0;
}

.doc-prose ul {
  padding-left: 1.25rem;
}

.doc-prose h2 {
  margin: 20px 0 10px;
  font-size: 1rem;
}

.doc-prose h2:first-child {
  margin-top: 0;
}

.doc-article .doc-prose h2 {
  margin-top: 24px;
}

.about-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6e8a94;
}

.about-footer__version {
  margin: 0 0 8px;
}

.about-footer__legal {
  margin: 0 0 8px;
}

.about-footer__legal a {
  color: #197e92;
  font-weight: 600;
}

.about-footer__entity {
  margin: 0;
}

.login-legal {
  margin: 20px 16px 0;
  max-width: 280px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6e8a94;
  text-align: center;
}

.login-legal a {
  color: #197e92;
}

.tips--legal {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.tips--legal a {
  color: #197e92;
  font-weight: 600;
}

.result-legal-link {
  margin: 0 0 16px;
  text-align: center;
}

.result-legal-link a {
  color: #197e92;
  font-weight: 600;
}

.gallery-hero {
  margin-bottom: 4px;
}

.gallery-search {
  margin: 12px 0 8px;
}

.gallery-search__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c5dde3;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: #0f3a42;
}

.gallery-search__input:focus {
  outline: 2px solid #197e92;
  outline-offset: 1px;
  border-color: #197e92;
}

.gallery-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-cats::-webkit-scrollbar {
  display: none;
}

.gallery-cats__chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #567580;
  background: #fff;
  border: 1px solid #d4e8ed;
}

.gallery-cats__chip--active {
  color: #fff;
  background: #197e92;
  border-color: #197e92;
}

.gallery-count {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #7a949c;
}

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

.gallery-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(25, 126, 146, 0.08);
}

.gallery-card__media {
  aspect-ratio: 1;
  background: #eef6f8;
  overflow: hidden;
  position: relative;
}

.gallery-card__media--standard {
  background: #f8fbfc;
}

.gallery-card__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  background: rgba(15, 58, 66, 0.72);
  color: #fff;
  line-height: 1.4;
}

.gallery-card__media--category .gallery-card__badge {
  background: rgba(86, 117, 128, 0.85);
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  font-weight: 700;
  color: #8ec4d0;
}

.gallery-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-card__title {
  font-size: 0.95rem;
  color: #0f3a42;
}

.gallery-card__en {
  font-size: 0.72rem;
  color: #7a949c;
  line-height: 1.3;
}

.gallery-card__cat {
  font-size: 0.72rem;
  color: #197e92;
  margin-top: 4px;
}

.gallery-attribution,
.gallery-source {
  margin-top: 16px;
}

.gallery-back {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.gallery-back a {
  color: #197e92;
  text-decoration: none;
  font-weight: 600;
}

.gallery-detail__photo {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 4px;
  box-shadow: 0 4px 24px rgba(25, 126, 146, 0.12);
  aspect-ratio: 1;
  object-fit: cover;
  background: #eef6f8;
}

.gallery-detail__figure {
  margin: 0 0 4px;
  position: relative;
}

.gallery-detail__badge {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #7a949c;
  text-align: center;
}

.gallery-detail__pending {
  margin: 10px 0 0;
}

.gallery-detail__name {
  font-size: 1.5rem;
}

.gallery-detail__summary {
  margin: 12px 0 0;
  line-height: 1.55;
  color: #3d5a63;
}

.gallery-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-related__item {
  padding: 8px 12px;
  border-radius: 8px;
  background: #e6f3f6;
  color: #197e92;
  text-decoration: none;
  font-size: 0.88rem;
}

.gallery-result-link {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.gallery-result-link a {
  color: #197e92;
  font-weight: 600;
}

.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0 8px;
}

.gallery-pager__btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d4e8ed;
  color: #197e92;
  text-decoration: none;
  font-size: 0.9rem;
}

.gallery-pager__info {
  font-size: 0.85rem;
  color: #7a949c;
}

.discover-hero {
  margin-bottom: 0.75rem;
}

.discover-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 1rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.discover-cats::-webkit-scrollbar {
  display: none;
}

.discover-cats__chip {
  flex: 0 0 auto;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #3d5a62;
  background: #eef6f8;
  border: 1px solid transparent;
}

.discover-cats__chip--active {
  background: #197e92;
  color: #fff;
  border-color: #197e92;
}

.discover-count {
  margin: 0 1rem 0.5rem;
  font-size: 0.8rem;
  color: #7a949c;
}

.discover-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}

.discover-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dceef2;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(25, 126, 146, 0.06);
}

.discover-card--pinned {
  border-color: #b8dce4;
  background: linear-gradient(135deg, #f8fdfe 0%, #fff 55%);
}

.discover-card__media {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8f4f6;
}

.discover-card__photo,
.discover-detail__cover--photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discover-card__media--type-topic {
  background: linear-gradient(145deg, #7ec4b8 0%, #197e92 100%);
}

.discover-card__media--type-tip {
  background: linear-gradient(145deg, #b8a998 0%, #7a6b5c 100%);
}

.discover-card__media--type-link {
  background: linear-gradient(145deg, #9ecae8 0%, #6ba3c7 100%);
}

.discover-card__media--type-activity {
  background: linear-gradient(145deg, #f0c674 0%, #e8a317 100%);
}

.discover-card__media--type-topic::before,
.discover-card__media--type-tip::before,
.discover-card__media--type-link::before,
.discover-card__media--type-activity::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.discover-card__media--type-tip::before {
  border-radius: 8px;
  inset: 22% 28%;
  transform: rotate(-8deg);
}

.discover-card__media--type-link::before {
  clip-path: polygon(50% 12%, 88% 38%, 75% 88%, 25% 88%, 12% 38%);
  border-radius: 0;
  inset: 20%;
}

.discover-card__type {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  background: rgba(25, 126, 146, 0.88);
  color: #fff;
}

.discover-card__pin {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  background: #e8a317;
  color: #fff;
}

.discover-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.discover-card__title {
  font-size: 1rem;
  line-height: 1.35;
  color: #1a3a42;
}

.discover-card__summary {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #5a727a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discover-card__date {
  margin-top: auto;
  font-size: 0.75rem;
  color: #9ab0b8;
}

.discover-footnote {
  padding: 0 1rem 1.25rem;
}

.discover-back {
  padding: 0.75rem 1rem 0;
}

.discover-back a {
  color: #197e92;
  text-decoration: none;
  font-size: 0.9rem;
}

.discover-detail__cover-wrap {
  position: relative;
  margin: 0.5rem 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f4f6;
  min-height: 120px;
  height: 140px;
}

.discover-detail__cover-wrap--type-topic {
  background: linear-gradient(135deg, #7ec4b8 0%, #197e92 100%);
}

.discover-detail__cover-wrap--type-tip {
  background: linear-gradient(135deg, #b8a998 0%, #7a6b5c 100%);
}

.discover-detail__cover-wrap--type-link {
  background: linear-gradient(135deg, #9ecae8 0%, #6ba3c7 100%);
}

.discover-detail__cover-wrap--type-activity {
  background: linear-gradient(135deg, #f0c674 0%, #e8a317 100%);
}

.discover-detail__cover--photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.discover-detail__cover:not(.discover-detail__cover--photo) {
  display: none;
}

.discover-detail__type {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(25, 126, 146, 0.9);
  color: #fff;
}

.discover-detail__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.discover-detail__date {
  display: block;
  font-size: 0.8rem;
  color: #9ab0b8;
  margin-bottom: 0.5rem;
}

.discover-detail__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3d5a62;
}

.discover-detail__list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.discover-detail__gallery-link {
  padding: 0 1rem;
  font-size: 0.9rem;
}

.discover-detail__gallery-link a {
  color: #197e92;
  font-weight: 600;
}

.discover-detail__cta {
  display: block;
  margin: 0.75rem 1rem 0;
  text-align: center;
}

.discover-topic-banner {
  margin: 0 1rem 0.75rem;
  padding: 0.85rem 1rem;
  border-color: #b8dce4;
  background: linear-gradient(135deg, #f0fafc 0%, #fff 70%);
}

.discover-topic-banner__label {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #197e92;
}

.discover-topic-banner__text {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3d5a62;
}

.discover-topic-banner__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #197e92;
  text-decoration: none;
}

/* —— 前台 CMS（管理登录后）—— */
.cms-top-admin {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 800;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: #197e92;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(25, 126, 146, 0.25);
  box-shadow: 0 2px 8px rgba(25, 126, 146, 0.12);
  -webkit-tap-highlight-color: transparent;
}

.cms-top-admin:active {
  background: #eef6f8;
}

.cms-card-wrap {
  position: relative;
}

.gallery-card-wrap .gallery-card,
.discover-card-wrap .discover-card {
  display: flex;
}

.cms-card-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
  align-items: center;
}

.cms-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.cms-card-btn svg {
  width: 14px;
  height: 14px;
}

.cms-card-btn--delete {
  background: rgba(180, 55, 45, 0.9);
}

.cms-card-btn--delete:disabled {
  opacity: 0.5;
  cursor: wait;
}

.cms-card-btn--edit {
  background: rgba(15, 58, 66, 0.82);
}

.cms-card-btn:active {
  filter: brightness(1.08);
}

.feed-status {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #7a949c;
}

.feed-status--busy {
  color: #197e92;
}

.feed-sentinel {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

