.card-hover {
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.brand-logo {
  width: 22px;
  height: 22px;
  display: block;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
}

/* 更克制的悬浮效果 */
@media (prefers-reduced-motion: reduce) {
  .card-hover {
    transition: none;
  }
  .card-hover:hover {
    transform: none;
  }
  .story-card-cover::before {
    transition: none;
  }
}

.chapter-pre {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.85;
  font-family: ui-serif, Georgia, "Times New Roman", Times, "Noto Serif SC", serif;
  font-size: 1.03rem;
}

.story-summary {
  line-height: 1.75;
  font-size: 0.98rem;
  color: rgba(0, 0, 0, 0.72);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.story-summary-empty {
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.35);
}

.story-cover {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 3 / 4;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.story-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  background: radial-gradient(120% 120% at 0% 0%, rgba(79, 70, 229, 0.92), rgba(14, 165, 233, 0.85), rgba(16, 185, 129, 0.82));
  padding: 1rem;
  text-align: center;
}

.story-cover-badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.story-cover-placeholder-inner {
  width: 100%;
}

.story-cover-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  font-size: 1.05rem;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.story-cover-sub {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.story-meta {
  min-height: 1.4rem;
}

.chapter-search {
  width: min(260px, 55vw);
}

.chapter-item {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  text-decoration: none;
  background: #fff;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.chapter-item:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.chapter-item:active {
  transform: translateY(0);
}

/* 首页小说卡片 */
.story-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.story-card-cover {
  position: relative;
  width: 100%;
  height: 168px;
  background: rgba(0, 0, 0, 0.04);
}

.story-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
  transition: opacity 140ms ease;
  pointer-events: none;
  z-index: 2;
}

.story-card:hover .story-card-cover::before {
  opacity: 0;
}

.story-card-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.story-card-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 3;
}

.filter-card .filter-label {
  min-width: 2.25rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.55);
}

.story-card-cover-badges {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  z-index: 4;
}

.story-card-badge {
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.story-card-body {
  padding: 0.9rem 1rem;
}

.story-card-title {
  font-weight: 700;
  line-height: 1.2;
  font-size: 1.05rem;
}

.story-tag {
  font-size: 0.78rem;
  font-weight: 500;
}

.story-card-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-height: 2.2rem;
  overflow: hidden;
}

.story-card-summary {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(0.92rem * 1.6 * 2);
}

@media (min-width: 992px) {
  .story-card-cover {
    height: 186px;
  }
  .story-cover {
    max-width: 260px;
  }
}

@media (max-width: 767.98px) {
  .story-cover {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* 后台 */
.admin-table th,
.admin-table td {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.admin-cover-thumb {
  width: 56px;
  height: 74px;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  object-fit: cover;
  display: block;
  background: rgba(0, 0, 0, 0.03);
}

.admin-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.85rem;
}

.admin-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
}

.admin-summary-preview {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.72);
  padding: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.admin-tip {
  width: 22px;
  height: 22px;
  line-height: 22px;
  font-weight: 700;
  font-size: 0.8rem;
}

.admin-badge {
  font-weight: 600;
}

.admin-tag {
  font-size: 0.74rem;
  font-weight: 500;
}

.admin-price.admin-editing {
  background: #fff;
  border-color: rgba(79, 70, 229, 0.55);
  box-shadow: 0 0 0 0.15rem rgba(79, 70, 229, 0.12);
}

.admin-price.admin-saved {
  border-color: rgba(25, 135, 84, 0.55);
  box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.12);
}

.admin-cover-fn {
  max-width: 88px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-badge-free,
.chapter-badge-locked,
.chapter-badge-unlocked {
  font-size: 0.76rem;
  font-weight: 600;
}

