:root {
    --primary-100: #00B0FF;
    --primary-glow: rgba(0, 176, 255, 0.4);
    --text-100: #FFFFFF;
    --text-200: #e0e0e0;
    --bg-100: #05090F;
    --bg-150: #0E1522;
    --bg-200: #161F2E;
    --bg-300: #242F42;
    
    --text80: rgba(255,255,255,0.8);
    --text60: rgba(255,255,255,0.6);
    --text40: rgba(255,255,255,0.3);

    --highlight: #FF8C42; 
    --border-thin: 3px solid rgba(255, 255, 255, 0.06);
    --card-shadow-glow: 0 40px 100px -20px rgba(0, 176, 255, 0.15);
    
    --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-100); }

body {
    background-color: var(--bg-100);
    color: var(--text-100);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}
h1 {
    font-size: 46px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
h2 {
    font-size: 36px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
h3 {
    font-size: 28px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
h4 {
    font-size: 22px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
h5 {
    font-size: 18px;
    color: var(--text80);
    font-weight: bold;
    line-height:36px;
    margin:0;
    padding:0;
}
h6 {
    font-size: 12px;
    color: var(--text40);
    font-weight: lighter;
    line-height:22px;
    margin:0;
    padding:0;
}

/* 布局容器 */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-150);
    border-right: var(--border-thin);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.search-wrapper {
    position: relative;
}
.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}
.search-input:focus {
    border-color: var(--primary-100);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(0, 176, 255, 0.1);
}

.nav-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-tag {
    padding: 14px 20px;
    border-radius: 14px;
    color: var(--text60);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    user-select: none;
}
.nav-tag:hover {
    color: var(--text-100);
    background: rgba(255, 255, 255, 0.03);
}
.nav-tag.active {
    background: rgba(0, 176, 255, 0.1);
    color: var(--primary-100);
    border-color: rgba(0, 176, 255, 0.2);
}

/* 侧边栏底部按钮区域 */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
}
.footer-btns {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.study-btn {
    background: var(--primary-100);
    color: var(--bg-100);
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.study-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}
 .footer-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
}
.footer-link-item {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-thin);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text60);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}
.footer-link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-100);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 工具提示文字提示 */
.footer-link-item[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--bg-300);
    color: var(--text-100);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: var(--border-thin);
    z-index: 10;
}
.footer-link-item:hover::before {
    opacity: 1;
    bottom: 115%;
}

.current-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 12px;
    /* border-top: var(--border-thin); */
}
.current-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-300);
    border: var(--border-thin);
}
.current-user-info {
    display: flex;
    flex-direction: column;
}
.current-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.current-user-status {
    font-size: 0.65rem;
    color: var(--primary-100);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 60px 40px;
    max-width: calc(100vw - var(--sidebar-width));
}

#book-list-container {
    display: grid;
    /* 拉长卡片宽度以适配 4:3 比例 */
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 32px;
}

/* 书单卡片横向排版 */
.book-card {
    background: linear-gradient(145deg, var(--bg-150) 0%, #162235 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 36px;
    display: flex;
    flex-direction: row; 
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    /* 潜藏的扫光层 */
}
.book-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}
.book-card:hover::after {
    left: 150%;
}

.book-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    border-color: rgba(0, 176, 255, 0.4);
    box-shadow: 0 40px 120px -20px rgba(0, 176, 255, 0.3), 0 0 0 1px rgba(0, 176, 255, 0.1);
}

/* 封面区域：移除 padding 确保撑满，设定 4:3 高宽比 */
.poster-section { 
    width: 280px; 
    flex-shrink: 0; 
    background: var(--bg-200); 
    overflow: hidden; 
    position: relative; 
    display: flex;
    align-items: stretch; 
    aspect-ratio: 4 / 3; /* 封面区域高宽比 4:3 */
}

/* 封面图片：设定 4:3 高宽比，使用 object-fit: cover 撑满区域 */
.poster-image { 
    width: 100%; 
    height: 100%; 
    aspect-ratio: 4 / 3; 
    object-fit: cover; /* 撑满区域，消除侧边空隙 */
    display: block; 
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1); 
    border-radius: 0; 
}

.book-card:hover .poster-image { transform: scale(1.08); }

.content-section { flex: 1; padding: 32px; display: flex; flex-direction: column; position: relative; }
.info-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.book-name { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -0.02em; padding-right: 60px; }
.domain-badge { display: inline-block; padding: 4px 12px; background: rgba(0, 176, 255, 0.1); color: var(--primary-100); font-size: 0.6rem; border-radius: 100px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; border: 1px solid rgba(0, 176, 255, 0.2); }
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item { font-size: 0.65rem; color: var(--text60); background: rgba(255,255,255,0.05); padding: 4px 12px; border-radius: 6px; font-weight: 600; border: var(--border-thin); }
.book-intro { font-size: 0.9rem; color: var(--text40); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.golden-sentence { margin-bottom: 24px; padding: 20px 0; border-top: var(--border-thin); }
.quote-text { color: var(--text-200); font-size: 1.05rem; font-weight: 500; font-style: italic; line-height: 1.5; opacity: 0.9; }

.audio-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--primary-100); color: var(--bg-100);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px var(--primary-glow);
}
.audio-btn:hover { transform: scale(1.1); box-shadow: 0 12px 32px var(--primary-glow); }
.audio-btn.playing { background: var(--highlight); box-shadow: 0 8px 24px rgba(255, 140, 66, 0.3); }

.wave-icon { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.wave-bar { width: 3px; background: currentColor; border-radius: 1px; transition: height 0.3s ease; }
.playing .wave-bar { animation: wave-move 0.6s ease-in-out infinite alternate; }
.playing .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.playing .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.playing .wave-bar:nth-child(4) { animation-delay: 0.45s; }
@keyframes wave-move { from { height: 6px; } to { height: 18px; } }

.card-top-action { position: absolute; top: 32px; right: 32px; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.creator { display: flex; align-items: center; gap: 12px; }
.creator-avatar { width: 32px; height: 32px; border-radius: 10px; background: var(--bg-300); object-fit: cover; border: var(--border-thin); }
.creator-name { font-size: 0.8rem; color: var(--text60); font-weight: 700; }
.rating-box { font-size: 1.1rem; font-weight: 900; color: var(--highlight); display: flex; align-items: center; gap: 6px; }

/* 详情悬浮面板样式 */
#modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 5, 10, 0.8);
    backdrop-filter: blur(40px) saturate(150%);
    z-index: 1000;
    display: none; 
    opacity: 0;
    transition: all 0.5s ease;
}
#modal-overlay.active { display: block; opacity: 1; }
.modal-container {
    max-width: 1500px; height: 90vh; margin: 5vh auto;
    background: linear-gradient(145deg, var(--bg-150), rgba(14, 21, 34, 0.8));
    border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; overflow: hidden;
    box-shadow: 0 100px 150px -50px rgba(0,0,0,0.8);
}
.modal-left { width: 22%; padding: 50px; border-right: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2); }
.btn-favorite {
    margin-top: 30px; width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; color: #fff;
    font-size: 0.9rem; font-weight: 700; display: flex; align-items: center;
    justify-content: center; gap: 10px; cursor: pointer; transition: all 0.3s;
}
.btn-favorite:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary-100); transform: translateY(-2px); }
.btn-favorite.active { background: var(--primary-100); color: #000; border-color: var(--primary-100); }
.modal-middle { width: 53%; padding: 50px; overflow-y: auto; }
.sub-books-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 调整卡片宽度 */
    gap: 28px; 
    margin-top: 30px; 
}
.file-box {
    height: auto; /* 改为auto，让内容决定高度 */
    background: var(--bg-200); 
    border-radius: 24px;
    position: relative; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column; /* 垂直排列 */
    padding-bottom: 15px; /* 底部留白 */
}
.file-box:hover { transform: translateY(-8px); border-color: var(--primary-100); background: var(--bg-300); }
.front-page-pic { 
    width: 100%; 
    aspect-ratio: 2 / 3; /* 2:3比例 */
    overflow: hidden; 
    background: #000;
    border-radius: 16px 16px 0 0; /* 只圆角顶部 */
}
.front-page-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.type-badge-overlay {
    position: absolute; 
    top: 15px; 
    left: 15px; 
    padding: 4px 10px; 
    border-radius: 6px;
    font-size: 0.6rem; 
    font-weight: 900; 
    background: var(--primary-100); 
    color: var(--bg-100); 
    z-index: 2;
}
.file-box h1,
.file-box h5 {
    position: static; /* 改为正常文档流 */
}

.file-box h1 {
    font-size: 2.5rem; 
    font-weight: 900;
    color: rgba(255,255,255,0.04); 
    line-height: 1;
    margin: 15px 20px 5px 20px; /* 在图片下方 */
}

.file-box h5 {
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #fff;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    margin: 0 20px 15px 20px; /* 在序号下方 */
}
.file-box .archive-info-box-actions { 
    position: absolute; 
    top: 15px; 
    right: 15px; /* 移动到右上角 */
    z-index: 3; 
}
.modal-right { width: 25%; padding: 40px; border-left: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; background: rgba(0,0,0,0.1); }
.comments-list { flex: 1; overflow-y: auto; padding-right: 10px; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.comment-item {
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.comment-header { display: flex; align-items: center; gap: 10px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-300); }
.comment-username { font-size: 0.85rem; font-weight: 700; color: #fff; }
.comment-time { font-size: 0.7rem; color: var(--text40); }
.comment-body { font-size: 0.9rem; color: var(--text80); line-height: 1.4; }
.comment-actions { display: flex; gap: 15px; }
.action-btn { background: none; border: none; color: var(--text40); cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; transition: color 0.2s; }
.action-btn:hover { color: var(--primary-100); }
.comment-input-area { margin-top: 30px; padding: 20px; background: var(--bg-200); border-radius: 24px; border: 1px solid rgba(255,255,255,0.05); }
.comment-input { width: 100%; background: transparent; border: none; color: #fff; resize: none; margin-bottom: 10px; font-size: 0.95rem; font-family: inherit; }
.btn-submit { background: var(--primary-100); color: #000; border: none; padding: 10px 20px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.close-modal {
    position: absolute; top: 30px; right: 40px; width: 50px; height: 50px; background: rgba(255,255,255,0.05);
    border-radius: 15px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.8rem; transition: all 0.3s; z-index: 1100;
}

@media (max-width: 1100px) {
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: var(--border-thin); padding: 20px; }
    .main-content { max-width: 100%; padding: 30px 20px; }
    .modal-container { flex-direction: column; height: 95vh; margin: 2.5vh auto; overflow-y: auto; }
    .modal-left, .modal-middle, .modal-right { width: 100%; border: none; height: auto; }
}


/* #region 浮动面板样式 */

/* 通用浮动菜单基础样式 */
.floating-menu {
  position: absolute;
  height: 95px;
  width: 200px;
  background-color: var(--bg-200);
  border-radius: 8px;
  box-shadow: 4px 4px 4px 2px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  padding-top: 15px;
  padding-bottom: 15px;
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
}

/* 浮动菜单项 */
.menu-item {
  width: 200px;
  height: 30px;
  box-sizing: border-box;
  padding-left: 30px;
  gap: 5px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
  cursor: pointer;
}

.menu-item:hover {
  background-color: var(--primary-100);
}

/* ============== 个人信息更新浮动面板 ============== */

/* 个人信息更新面板容器 */
.personalinfo-update-floating-menu {
  position: fixed; /* 改为fixed确保在视口居中 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 4px 4px 4px 2px rgba(0, 0, 0, 0.25);
  width: 600px;
  height: 960px;
  border-radius: 8px;
  background-color: #040404;
  box-sizing: border-box;
  padding: 50px;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

/* 头像更新区域 */
.head-pic-update {
  width: 100%;
  height: 75px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 10px;
  box-sizing: border-box;
  margin-top: 70px;
}

/* 主头像展示框 */
.head-pic-main-box {
  width: 105px;
  height: 105px;
  background-image: url(/head-pic.png);
  background-size: cover;
  background-position: center;
  border-radius: 50%; /* 添加圆形效果 */
  cursor: pointer; /* 添加点击反馈 */
}

/* 头像更新按钮文本 */
.head-pic-update h5 {
  color: var(--primary-100);
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 10px;
}

.head-pic-update h5:hover {
  color: var(--accent-100);
}

/* 个人信息表单区域 */
.personal-info-update {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-top: 30px;
  gap: 15px;
}

/* 输入框容器 */
.content-insert-box {
  width: 100%;
  height: 45px;
  resize: none;
  background-color: #101010;
  border-radius: 8px;
  border: 1px solid var(--text40);
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.2s;
}

.content-insert-box:focus-within {
  border-color: var(--primary-100);
}

/* 输入框 */
.input-box {
  width: 100%;
  height: 100%;
  background-color: #101010;
  border: none;
  outline: none;
  font-size: 15px;
  line-height: 15px;
  color: var(--text40);
  font-weight: lighter;
  margin: 0;
  padding: 0;
  text-indent: 10px;
}

.input-box:focus {
  color: var(--text80);
}

/* 反馈消息 */
.feedback-content {
  line-height: 20px;
  font-weight: bold;
  box-sizing: border-box;
  margin-top: 20px;
  color: var(--primary-100);
  text-align: center;
  min-height: 20px;
}

/* 更新按钮 */
.login-btn {
  width: 100%;
  height: 30px;
  border-radius: 8px;
  background-color: var(--primary-100);
  box-sizing: border-box;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-btn:hover {
  background-color: var(--accent-100);
}

/* ============== 头像更新浮动面板 ============== */

/* 头像更新面板容器 */
.headpic-update-floating-menu {
  position: fixed; /* 改为fixed确保在视口居中 */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 4px 4px 4px 2px rgba(0, 0, 0, 0.25);
  width: 600px;
  height: 900px;
  border-radius: 8px;
  background-color: #040404;
  box-sizing: border-box;
  padding: 50px;
  display: none;
  flex-direction: column;
  z-index: 2000; /* 比个人信息面板更高 */
}

/* 头像列表容器 */
.head-pic-list {
  width: 450px;
  height: 510px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  flex-direction: row;
  box-sizing: border-box;
  margin-top: 35px;
  gap: 5px;
  row-gap: 20px;
}

/* 头像选择框 */
.head-pic-box {
  width: 105px;
  height: 105px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.head-pic-box:hover {
  background-color: var(--accent-100);
  transform: scale(1.05);
}

/* 头像选中状态 */
.head-pic-box.selected {
  background-color: var(--primary-100);
  border: 2px solid var(--accent-100);
}

/* 头像图片 */
.head-pic-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

/* 头像更新反馈消息 */
#headpic-update-status {
  line-height: 20px;
  font-weight: bold;
  margin-top: 10px;
  color: var(--primary-100);
  text-align: center;
  min-height: 20px;
}

/* ============== 页面其他头像相关样式 ============== */

/* 左下角当前用户头像 */
.current-user-avatar {
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 50%;
  object-fit: cover;
}

.current-user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--primary-100);
}

/* 页面中其他头像元素 */
#user-avatar,
#user-avatar-1,
#user-avatar-2 {
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 更新成功状态动画 */
@keyframes updateSuccess {
  0% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.update-success {
  animation: updateSuccess 1.5s ease-in-out;
}

/* ============== 响应式调整 ============== */

@media (max-width: 768px) {
  .personalinfo-update-floating-menu,
  .headpic-update-floating-menu {
    width: 90vw;
    height: auto;
    min-height: 80vh;
    padding: 30px;
  }
  
  .head-pic-list {
    width: 100%;
    height: auto;
    justify-content: center;
  }
  
  .head-pic-box {
    width: 80px;
    height: 80px;
  }
  
  .head-pic-box img {
    width: 70px;
    height: 70px;
  }
}

.personalinfo-update-floating-menu h1 {
    font-size: 22px;
    line-height:30px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
.personalinfo-update-floating-menu h2 {
    font-size: 18px;
    line-height:25px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
.personalinfo-update-floating-menu h3 {
    font-size: 16px;
    line-height:24px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
.personalinfo-update-floating-menu h4 {
    font-size: 14px;
    line-height:20px;
    color:var(--text80);
    font-weight: bold;
    margin:0;
    padding:0;
}
.personalinfo-update-floating-menu h5 {
    font-size: 12px;
    line-height:18px;
    color: var(--text60);
    font-weight: normal;
    margin:0;
    padding:0;
}
.personalinfo-update-floating-menu h6 {
    font-size: 10px;
    line-height:15px;
    color: var(--text40);
    font-weight: lighter;
    margin:0;
    padding:0;
}

/* #endregion */

/* 音频播放按钮动画 */
.audio-btn.playing .wave-bar {
  animation: wave-animation 1.2s ease-in-out infinite;
}

.audio-btn.playing .wave-bar:nth-child(1) { animation-delay: -1.2s; }
.audio-btn.playing .wave-bar:nth-child(2) { animation-delay: -1.1s; }
.audio-btn.playing .wave-bar:nth-child(3) { animation-delay: -1.0s; }
.audio-btn.playing .wave-bar:nth-child(4) { animation-delay: -0.9s; }

@keyframes wave-animation {
  0%, 100% { height: 10px; }
  50% { height: 20px; }
}

/* 音频播放器自定义样式 */
#global-audio-player {
  filter: invert(1) hue-rotate(180deg);
}

#global-audio-player::-webkit-media-controls-panel {
  background-color: rgba(30, 30, 40, 0.9);
  border-radius: 10px;
}

#global-audio-player::-webkit-media-controls-play-button,
#global-audio-player::-webkit-media-controls-volume-slider,
#global-audio-player::-webkit-media-controls-mute-button {
  filter: invert(1) hue-rotate(180deg);
}

/* #region 修改悬浮面板样式 */
.book-hover-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 900px;
  max-height: 80vh;
  background: rgba(20, 20, 30, 0.98); /* 原来外框的背景色 */
  border-radius: 20px; /* 原来外框的圆角 */
  z-index: 10000;
  display: none;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1); /* 原来外框的边框 */
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0; /* 关键：去掉内边距 */
}

.book-hover-panel.active {
  display: flex;
  opacity: 1;
}

/* 修改内容区域样式 */
.book-hover-panel-content {
  flex: 1;
  overflow-y: auto;
  color: var(--text40);
  font-size: 1.1rem;
  height: 100%; /* 占满整个面板 */
  padding: 0; /* 关键：去掉内边距 */
  box-sizing: border-box;
}

/* 修改内容显示框样式 */
.content-display-box {
  height: 100%;
  padding: 30px; /* 这是内容的内部间距 */
  border-radius: 20px; /* 和外框保持一致 */
  text-align: left;
  overflow-y: auto;
  box-sizing: border-box;
  /* 移除背景色，因为现在外框已经有背景了 */
  background: none; 
  border: none;
}

.book-hover-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(5px);
}

.book-hover-panel-overlay.active {
  display: block;
}

/* #endregion */

/* #region 书单广场悬浮面板的全书速览样式 */
.book-analysis-content {
    padding: 5px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 28px;
    font-weight: bold;
    color: var(--text60);
    
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

/* 标题字号设置 - 确保h3 > h4 */
.book-analysis-content h1 { font-size: 2em; margin-top: 1.5em; margin-bottom: 0.8em; }
.book-analysis-content h2 { font-size: 1.8em; margin-top: 1.3em; margin-bottom: 0.7em; }
.book-analysis-content h3 { font-size: 1.6em; margin-top: 1.2em; margin-bottom: 0.6em; }
.book-analysis-content h4 { font-size: 1.4em; margin-top: 1.1em; margin-bottom: 0.5em; }
.book-analysis-content h5 { font-size: 1.2em; margin-top: 1em; margin-bottom: 0.5em; }
.book-analysis-content h6 { font-size: 1em; margin-top: 1em; margin-bottom: 0.5em; }

/* 标题通用样式 */
.book-analysis-content h1,
.book-analysis-content h2,
.book-analysis-content h3,
.book-analysis-content h4,
.book-analysis-content h5,
.book-analysis-content h6 {
    font-weight: 700;
    color: var(--text80);
    /* 注意：这里的font-size会被上面的具体设置覆盖 */
}

.book-analysis-content ul {
    margin: 0;
    padding: 0;
    padding-left: 2em;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.book-analysis-content li {
    margin: 0;
    padding: 0;
}

.book-analysis-content hr {
    border-style: solid;
    border-width: 1px 0 0 0;
    border-color: #ccc;
    height: 0;
    margin: 1em 0;
    background: none;
}

/* 其他文本元素样式 */
.book-analysis-content p {
    margin: 0.5em 0;
}

.book-analysis-content strong {
    color: var(--text80);
}

.book-analysis-content em {
    font-style: italic;
}

/* 代码块样式 */
.book-analysis-content code {
    background: var(--bg-150);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.book-analysis-content pre {
    background: var(--bg-150);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
}

.book-analysis-content pre code {
    background: none;
    padding: 0;
}
/* #endregion */