.detail-page {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  overflow: hidden;
}

.detail-topbar {
  flex-shrink: 0;
  height: 82px;
  background-color: #f8fafc;
  z-index: 20;
}

.detail-statusbar {
  height: 42px;
  padding: 12px 18px 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-statusbar-time {
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #1a1b1e;
}

.detail-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-icon-signal {
  width: 16px;
  height: 11px;
}

.detail-statusbar-5g {
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  color: #1a1b1e;
}

.detail-icon-battery {
  width: 24px;
  height: 12px;
}

.detail-navbar {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-back-btn {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-back-btn img {
  width: 20px;
  height: 20px;
}

.detail-nav-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #1a1b1e;
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.detail-hero {
  height: 166px;
  padding: 14px 16px 0;
  background: linear-gradient(180deg, #28364a 0%, #182230 100%);
}

.detail-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 114px;
}

.detail-cover-wrap {
  position: relative;
  width: 84px;
  height: 114px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

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

.detail-ai-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 16px;
  border-radius: 0 8px 0 6px;
  background: linear-gradient(90deg, #3370ff 0%, #1d5bff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
}

.detail-meta-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-book-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  white-space: nowrap;
}

.detail-like-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  user-select: none;
  flex-shrink: 0;
}

.detail-like-pill img {
  width: 12px;
  height: 12px;
}

.detail-like-pill span {
  font-size: 10.5px;
  font-weight: 500;
  color: #ffffff;
}

.detail-meta-author {
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.detail-meta-press {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.detail-meta-isbn {
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.detail-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-tag-primary {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.detail-tag-secondary {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.detail-sheet {
  position: relative;
  margin-top: -20px;
  min-height: calc(100% - 146px);
  background-color: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-module {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.detail-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-module-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.detail-module-more {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  user-select: none;
}

.detail-video-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
}

.detail-video-card {
  width: 186px;
  height: 72px;
  padding: 8px;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  user-select: none;
}

.detail-video-thumb {
  position: relative;
  width: 64px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.detail-video-thumb-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.25);
}

.detail-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
}

.detail-video-info {
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-video-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  word-break: break-word;
}

.detail-video-meta {
  font-size: 10px;
  font-weight: 400;
  color: #64748b;
  white-space: nowrap;
}

.detail-ai-card {
  position: relative;
  width: 100%;
  height: 106px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(90deg, #e0f2fe 0%, #eff6ff 55%, #dbeafe 100%);
  overflow: hidden;
}

.detail-ai-copy {
  position: relative;
  z-index: 2;
  padding: 13px 0 0 13px;
  width: 198px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.detail-ai-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.detail-ai-desc {
  font-size: 10.5px;
  font-weight: 400;
  color: #475569;
}

.detail-ai-btn {
  padding: 5px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #3370ff 0%, #1d5bff 100%);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

.detail-ai-illus {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 86px;
  height: 98px;
  pointer-events: none;
}

.detail-agent-card {
  width: 100%;
  height: 68px;
  padding: 10px 12px;
  border-radius: 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-agent-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.detail-agent-bubble {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background-color: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.detail-agent-bubble span {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
}

.detail-agent-bubble img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.detail-audio-tab {
  position: absolute;
  right: 0;
  top: 428px;
  width: 32px;
  height: 30px;
  padding-left: 4px;
  border-radius: 15px 0 0 15px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-right: 0;
  box-shadow: -2px 2px 8px rgba(15, 23, 41, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

.detail-audio-tab img {
  width: 14px;
  height: 14px;
}

.detail-bottom-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 52px;
  padding: 0 14px 0 16px;
  border-radius: 26px;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.detail-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 28px;
  user-select: none;
}

.detail-bar-item img {
  width: 15px;
  height: 15px;
}

.detail-bar-item span {
  font-size: 10px;
  font-weight: 500;
  color: #334155;
}

.detail-bar-item.is-listen span {
  color: #2563eb;
}

.detail-read-btn {
  width: 118px;
  height: 38px;
  border-radius: 19px;
  background: linear-gradient(90deg, #3370ff 0%, #1d5bff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
