/* ===== 全局重置 & 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, system-ui, sans-serif; }
body { background: #f6f4f0; color: #1e1e1e; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 10px; }

/* ===== 头部 ===== */
.header {
  background: #1e2a3a; 
  color: #f0eee9; 
  padding: 0.8rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky; 
  top: 0; 
  z-index: 1000;
}
.header .container {
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  justify-content: space-between;
  position: relative;
}
.header-nav{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
}
/* ===== Banner + 热门列表 双栏布局 ===== */
.banner-hot-wrapper {
  display: flex;
  gap: 1.2rem;
  max-width: 1280px;
  margin: 1.5rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: #1e2a3a;
  min-height: 160px;
}
.banner-left {
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #1e2a3a;
}
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.banner-slider .banner-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  position: relative;
}
.banner-slider .banner-slide.active {
  display: block;
}
.banner-slider .banner-slide .slide-inner {
  position: relative;
  width: 100%;
  padding-bottom: 45%;
  min-height: 140px;
  overflow: hidden;
  background: #1e2a3a;
}
.banner-slider .banner-slide .slide-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.banner-slider .banner-slide .banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 5;
}
.banner-slider .banner-slide .banner-overlay .banner-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.2rem;
}
.banner-slider .banner-slide .banner-overlay .banner-intro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
}
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 20;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.banner-btn:hover {
  background: rgba(243, 179, 76, 0.85);
  transform: translateY(-50%) scale(1.05);
}
.banner-btn.prev { left: 10px; }
.banner-btn.next { right: 10px; }
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}
.banner-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.3s;
}
.banner-dots span.active {
  background: #f3b34c;
  width: 22px;
  border-radius: 6px;
}

.hot-right {
  width: 270px;
  flex-shrink: 0;
  background: #1e2a3a;
  padding: 1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.hot-right .hot-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3b34c;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(243, 179, 76, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hot-right .hot-list {
  flex: 1;
  overflow: hidden;
  padding-top: 0.5rem;
}
.hot-right .hot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: 0.15s;
  border-radius: 4px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.hot-right .hot-item:hover {
  background: rgba(255,255,255,0.06);
  padding-left: 0.5rem;
}
.hot-right .hot-item .hot-rank {
  flex-shrink: 0;
  width: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-align: center;
  font-size: 0.88rem;
}
.hot-right .hot-item .hot-rank.top1 { color: #f3b34c; font-weight: 700; }
.hot-right .hot-item .hot-rank.top2 { color: #b0bccb; font-weight: 700; }
.hot-right .hot-item .hot-rank.top3 { color: #d4a373; font-weight: 700; }
.hot-right .hot-item .hot-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-right .hot-item .hot-name a {
  color: inherit;
  transition: 0.15s;
}
.hot-right .hot-item .hot-name a:hover {
  color: #f3b34c;
}
.hot-right .hot-item .hot-num {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
}
.logo {
  width: 153px;
  height: 40px;
  background: url(https://pic.rmb.bdstatic.com/bjh/240701/16bb47346e08de516bec397efc41be1d2207.png)no-repeat;
  background-size: auto;
  background-size: 100%;
}
.logo a {
  display: block;
  text-indent: -999em;
}

/* ===== 导航链接 (桌面) ===== */
.nav-links {
  display: flex; 
  gap: 1.8rem; 
  font-weight: 500; 
  font-size: 1.05rem;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  padding: 0.4rem 0; 
  border-bottom: 2px solid transparent; 
  transition: 0.15s;
}
.fa-language {
  margin-right: 3px;
}
.nav-links a:hover, .nav-links a.active {
  border-bottom-color: #f3b34c; 
  color: #f3b34c;
}

/* ===== 搜索栏 (桌面) ===== */
.search-bar {
  display: flex; 
  background: #2c3d52; 
  border-radius: 30px;
  padding: 0.2rem 0.2rem 0.2rem 1rem; 
  align-items: center;
}
.search-bar input {
  background: transparent; 
  border: none; 
  padding: 0.5rem 0;
  color: #f0eee9; 
  width: 300px; 
  outline: none;
}
.search-bar input::placeholder { color: #b0bccb; font-weight: 300; }
.search-bar button {
  background: #f3b34c; 
  border: none; 
  border-radius: 30px;
  padding: 0.5rem 1.2rem; 
  font-weight: 600; 
  color: #1e2a3a;
  cursor: pointer; 
  transition: 0.15s;
}
.search-bar button:hover { background: #e6a33a; }

/* ===== 移动端专用：汉堡菜单 & 搜索图标 ===== */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: 0.2s;
  color: #f0eee9;
  background: transparent;
  border: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.mobile-nav-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.mobile-search-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: 0.2s;
  color: #f0eee9;
  background: transparent;
  border: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.mobile-search-toggle:hover {
  background: rgba(255,255,255,0.08);
}

/* ===== 用户区域（桌面端） ===== */
.user-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f0eee9;
  font-size: 0.95rem;
}
.user-info i {
  font-size: 1.2rem;
  color: #f3b34c;
}
.user-info .username {
  font-weight: 500;
}
.user-info .user-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  background: #2c3d52;
  color: #b0bccb;
}
.user-info .user-badge.email {
  background: #2d6a4f;
  color: #95d5b2;
}
.user-info .user-badge.account {
  background: #4a4a6a;
  color: #b8b8d8;
}
.logout-btn {
  color: #f0eee9;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  transition: 0.15s;
  background: rgba(255,255,255,0.08);
}
.logout-btn:hover {
  background: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.history-btn {
  color: #f0eee9;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  transition: 0.15s;
  background: rgba(255,255,255,0.08);
}
.history-btn:hover {
  background: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.user-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.login-btn,
.register-btn {
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.15s;
  cursor: pointer;
}
.login-btn {
  background: transparent;
  color: #f0eee9;
  border: 1px solid #f3b34c;
}
.login-btn:hover {
  background: #f3b34c;
  color: #1e2a3a;
}
.register-btn {
  background: #f3b34c;
  color: #1e2a3a;
  border: 1px solid #f3b34c;
}
.register-btn:hover {
  background: #e0a03a;
  border-color: #e0a03a;
}

/* ===== 移动端用户菜单 ===== */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}
.mobile-user-info i {
  color: #f3b34c;
  font-size: 1rem;
  margin-right: 5px;
}
.mobile-user-info .username {
  color: #f0eee9;
  font-weight: 500;
}
.mobile-user-info .user-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  background: #2c3d52;
  color: #b0bccb;
}
.mobile-user-info .user-badge.email {
  background: #2d6a4f;
  color: #95d5b2;
}
.mobile-user-info .user-badge.account {
  background: #4a4a6a;
  color: #b8b8d8;
}
.mobile-user-info .logout-btn {
  color: #f0eee9;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.mobile-user-info .logout-btn:hover {
  background: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.mobile-user-info .history-btn {
  color: #f0eee9;
  font-size: 0.95rem;
  padding: 0.55rem 0.86rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}
.mobile-user-info .history-btn:hover {
  background: rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}
.mobile-user-buttons {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}
.mobile-user-buttons .login-btn,
.mobile-user-buttons .register-btn {
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
}

/* 移动端导航弹出层 */
.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e2a3a;
  padding: 1rem 1.5rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 999;
  flex-direction: column;
  gap: 0.8rem;
  border-top: 1px solid #2c3d52;
}
.mobile-nav-overlay.open {
  display: flex;
}
.mobile-nav-overlay a {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #f0eee9;
  font-size: 1.05rem;
  transition: 0.15s;
}
.mobile-nav-overlay a:hover {
  color: #f3b34c;
  padding-left: 0.5rem;
}
.mobile-nav-overlay a:last-child {
  border-bottom: none;
}
.mobile-nav-overlay.open .active {
  color: #f3b34c;
}

/* 移动端搜索弹出层 */
.mobile-search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e2a3a;
  padding: 1rem 1.5rem;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 999;
  border-top: 1px solid #2c3d52;
}
.mobile-search-overlay.open {
  display: block;
}
.mobile-search-overlay .search-bar {
  width: 100%;
  background: #2c3d52;
}
.mobile-search-overlay .search-bar input {
  width: 100%;
  flex: 1;
}

/* ===== 通用卡片 ===== */
.section-title {
  font-size: 1rem; font-weight: 600; 
  display: flex; align-items: center; justify-content: space-between;
  color: #1e2a3a;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid #f0eeea;
  gap: 8px;
  margin: 2rem 0 0;
}
.section-title i { color: #f3b34c; font-size: 1.5rem; margin-right: 0.55rem;}
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.8rem;padding: 1.15rem 0.55rem;border-radius: 0 0 16px 16px;background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
}
.book-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}
.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.1);
}
.book-cover {
    background: #d9d2c5;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: #5f5342;
    position: relative;
    overflow: hidden;
}
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.book-card:hover .book-cover img {
    transform: scale(1.05);
}
.book-cover i {
    opacity: 0.6;
}
.book-cover .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-image: linear-gradient(-90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #f0eee9;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
}
/* 播放按钮 - 悬停显示 */
.book-cover .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(2px);
}
.book-card:hover .book-cover .play-overlay {
    opacity: 1;
}
.book-cover .play-overlay .play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(243, 179, 76, 0.9);
    border: none;
    color: #1e2a3a;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.2s ease;
    box-shadow: 0 4px 20px rgba(243, 179, 76, 0.3);
}
.book-cover .play-overlay .play-btn:hover {
    transform: scale(1.1);
    background: #f3b34c;
}
.book-cover .play-overlay .play-btn i {
    margin-top: 4px;
}
.book-info { padding: 0.9rem 1rem 1.2rem; }
.book-info h4 {
  font-size: 1rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.book-info .meta {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: #666; margin-top: 0.4rem;
}
.book-info .meta i { margin-right: 3px; }

/* ===== 分类标签 ===== */
.category-tags {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 1.2rem;
}
.category-tags a {
  background: #eae7e1; padding: 0.5rem 1.48rem; border-radius: 40px;
  font-weight: 500; transition: 0.1s;
  cursor: pointer;
  white-space: nowrap;
}
.category-tags a.active, .category-tags a:hover {
  background: #1e2a3a; color: #f0eee9;
}

/* 移动端分类折叠 */
.category-tags-wrapper {
  position: relative;
  margin-bottom: 1.2rem;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: 0 0 16px 16px;
}
.category-tags-wrapper .category-tags {
  margin-bottom: 0;
}
.category-toggle-btn {
  display: none;
  background: #1e2a3a;
  color: #f0eee9;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.category-toggle-btn:hover {
  background: #2c3d52;
}
.category-toggle-btn i {
  font-size: 0.9rem;
}
.category-toggle-btn .current-display {
  margin-left: 4px;
}

/* 移动端分类下拉面板 */
.category-dropdown {
  display: none;
  background: white;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.6rem;
  border: 1px solid #eae7e1;
}
.category-dropdown.open {
  display: flex;
}
.category-dropdown a {
  background: #f0eeea;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.1s;
  cursor: pointer;
  white-space: nowrap;
}
.category-dropdown a:hover,
.category-dropdown a.active {
  background: #1e2a3a;
  color: #f0eee9;
}

/* ===== 书籍列表 - 详细列表模式 ===== */
.book-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.book-list-item {
  display: flex;
  gap: 1.2rem;
  background: white;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  align-items: flex-start;
}
.book-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.book-list-cover {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d2c5;
  position: relative;
}
.book-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-list-cover .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #f0eee9;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  letter-spacing: 0.3px;
}
.book-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.2rem;
}
.book-list-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e2a3a;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-list-title a {
  color: inherit;
}
.book-list-title a:hover {
  color: #f3b34c;
}
.book-list-title .hot {
  color: #f56c6c;
  font-weight: 600;
  font-size: 1rem;
  margin-right: .2rem;
}
.book-list-title .hot i {
  color: #f56c6c;
}
.book-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  font-size: 0.9rem;
  color: #666;
}
.book-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.book-list-meta i {
  color: #f3b34c;
  width: 16px;
}
.book-list-desc {
  font-size: 0.88rem;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  margin-top: 0.2rem;
}
.book-list-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.2rem;
}
.book-list-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.book-list-stats i {
  color: #f3b34c;
  font-size: 0.75rem;
}
.book-list-stats .hot {
  color: #f56c6c;
  font-weight: 600;
}
.book-list-stats .hot i {
  color: #f56c6c;
}
.book-list-stats .greed {
  color: #158c04;
  font-weight: 600;
}
.book-list-stats .greed i {
  color: #158c04;
}

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 0.6rem; margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-block; padding: 0.5rem 1rem;
  border-radius: 30px; font-weight: 500;
  background: white; color: #1e2a3a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: 0.15s; min-width: 44px; text-align: center;
  cursor: pointer; border: 1px solid transparent;
  font-size: 0.95rem;
}
.pagination a:hover {
  background: #f3b34c; color: #1e2a3a; border-color: #f3b34c;
}
.pagination a.active {
  background: #1e2a3a; color: #f0eee9; border-color: #1e2a3a;
  cursor: default;
}
.pagination .disabled {
  opacity: 0.4; pointer-events: none; cursor: default;
}

/* ===== 详情页 ===== */
.book-detail {
  background: white; border-radius: 24px; padding: 2rem 2.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05); margin: 1.5rem 0;
}
.detail-row { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.detail-cover {
  flex: 0 0 220px; background: #d9d2c5; height: 238px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #5f5342;
}
.detail-cover img {
  width: 238px;
  height: 238px;
  border-radius: 20px;
  object-fit: cover;
}
.detail-meta { flex: 1; }
.detail-meta h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.detail-meta .author { 
  font-size: 1.1rem; 
  color: #4a4a4a; 
  margin-bottom: 0.8rem; 
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  align-items: center;
}
.detail-meta .author a {
  color: #4a4a4a;
  transition: 0.15s;
}
.detail-meta .author a:hover {
  color: #f3b34c;
}
.detail-meta .desc-wrapper {
  position: relative;
}
.detail-meta .desc {
  background: #f4f1ec; 
  padding: 1rem 1.4rem 0.5rem 1.4rem; 
  border-radius: 16px;
  margin: 1.2rem 0 0.5rem 0; 
  line-height: 1.8;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: all 0.3s ease;
  position: relative;
}
.detail-meta .desc.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}
.detail-meta .desc .quote-icon {
  color: #f3b34c;
  opacity: 0.7;
  margin-right: 4px;
}
.desc-toggle-btn {
  background: transparent;
  border: none;
  color: #f3b34c;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  font-size: 0.9rem;
  display: inline-block;
  float: right;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}
.desc-toggle-btn:hover {
  color: #e0a03a;
}
.desc-toggle-btn i {
  margin-left: 4px;
}
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.btn {
  background: #1e2a3a; color: white; padding: 0.7rem 2rem;
  border-radius: 40px; font-weight: 600; border: none; cursor: pointer;
  transition: 0.15s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: #f3b34c; color: #fff; }
.btn-primary:hover { background: #e0a03a; }
.btn-geerd { background: #259a63; color: #fff; }
.btn-geerd:hover { background: #176842; }
.btn-outline { background: transparent; border: 2px solid #1e2a3a; color: #1e2a3a; }
.btn-outline:hover { background: #1e2a3a; color: white; }

/* ===== 目录页 ===== */
.chapter-list {
  background: white; 
  border-radius: 20px; 
  padding: 0.3rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.chapter-item {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 0.9rem 1.5rem; 
  border-bottom: 1px solid #edeae4;
  transition: background 0.1s; 
  cursor: pointer;
  gap: 0.8rem;
}
.chapter-item:hover { background: #f8f6f2; }
.chapter-item:last-child { border-bottom: none; }
.chapter-item .left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.chapter-item .left i { 
  color: #f3b34c; 
  font-size: 0.9rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.chapter-item .left .chapter-name {
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.chapter-item .right { 
  color: #6b6b6b; 
  font-size: 0.85rem;
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

/* ===== 播放页 ===== */
.player-section {
  background: #1e2a3a; border-radius: 28px; padding: 2rem 2rem 1.8rem;
  color: #f0eee9; margin: 1.8rem 0;
}
.player-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem;
}
.player-cover-mini {
  background: #3d4f64; width: 80px; height: 80px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #b9b09c;
}
.player-controls {
  display: flex; align-items: center; gap: 1.8rem; font-size: 1.6rem;
}
#playBtn i {margin-top: 4px;}
.player-controls i { cursor: pointer; transition: 0.1s; }
.player-controls i:hover { color: #f3b34c; }
.progress-wrapper { flex: 1; min-width: 140px; }
.progress-bar {
  background: #3d4f64; height: 6px; border-radius: 10px;
  margin: 0.2rem 0 0.4rem; width: 100%; position: relative;
}
.progress-fill {
  background: #f3b34c; height: 6px; border-radius: 10px; width: 37%;
}
.time-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: #b0bccb; }

/* ===== 登录/注册容器 ===== */
.login-wrapper,
.register-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
}
.login-container,
.register-container {
  background: white;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

.login-logo,
.register-logo {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e2a3a;
  margin-bottom: 0.5rem;
}
.login-logo i,
.register-logo i {
  color: #f3b34c;
  margin-right: 8px;
}
.login-logo small,
.register-logo small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #999;
  margin-top: 2px;
}

.register-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

/* ===== 登录方式切换 ===== */
.login-tabs {
  display: flex;
  border-radius: 12px;
  background: #f0eeea;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.login-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.6rem 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}
.login-tabs button.active {
  background: white;
  color: #1e2a3a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.login-tabs button:hover {
  color: #1e2a3a;
}

/* ===== 登录面板 ===== */
.login-panel {
  display: none !important;
}
.login-panel.active {
  display: block !important;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 5px;
}
.form-group .input-wrapper {
  position: relative;
  display: flex !important;
  align-items: center;
  border: 2px solid #eae7e1;
  border-radius: 12px;
  transition: 0.2s;
  background: #faf9f7;
  width: 100%;
}
.form-group .input-wrapper:focus-within {
  border-color: #f3b34c;
  box-shadow: 0 0 0 3px rgba(243, 179, 76, 0.15);
}
.form-group .input-wrapper i {
  padding: 0 12px;
  color: #aaa;
  font-size: 1rem;
  flex-shrink: 0;
}
.form-group .input-wrapper input {
  border: none;
  background: transparent;
  padding: 0.7rem 0.7rem 0.7rem 0;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
  color: #1e2a3a;
  display: block !important;
}
.form-group .input-wrapper input::placeholder {
  color: #bbb;
}

/* ===== 密码输入框特殊样式 ===== */
.password-wrapper {
  position: relative;
}
.password-wrapper .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  z-index: 10;
}
.password-wrapper .toggle-password:hover {
  color: #666;
}

/* ===== 随机密码按钮 ===== */
.random-password-btn {
  background: transparent;
  border: 1px solid #f3b34c;
  color: #f3b34c;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  margin-left: 8px;
}
.random-password-btn:hover {
  background: #f3b34c;
  color: #1e2a3a;
}

/* ===== 密码强度指示器 ===== */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.password-strength .strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: #eae7e1;
  transition: 0.3s;
}
.password-strength .strength-bar.active.weak {
  background: #e74c3c;
}
.password-strength .strength-bar.active.medium {
  background: #f39c12;
}
.password-strength .strength-bar.active.strong {
  background: #27ae60;
}
.password-strength-text {
  font-size: 0.7rem;
  color: #999;
  margin-top: 2px;
}

/* ===== 选图验证 ===== */
.captcha-wrapper {
  background: #f5f3f0;
  border-radius: 14px;
  padding: 16px 14px 14px 14px;
  position: relative;
  user-select: none;
  border: 2px solid #eae7e1;
}
.captcha-wrapper .captcha-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: #1e2a3a;
  font-weight: 500;
  margin-bottom: 12px;
  background: #eae7e1;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  width: 100%;
}
.captcha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.captcha-grid .captcha-item {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #e8e4de;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  overflow: hidden;
  position: relative;
}
.captcha-grid .captcha-item:hover {
  transform: scale(1.03);
}
.captcha-grid .captcha-item.selected {
  border-color: #f3b34c;
  box-shadow: 0 0 0 3px rgba(243, 179, 76, 0.25);
}
.captcha-grid .captcha-item .check-mark {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #f3b34c;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.captcha-grid .captcha-item.selected .check-mark {
  display: flex;
}
.captcha-grid .captcha-item .emoji {
  font-size: 2.4rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.captcha-status {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  min-height: 22px;
  margin-top: 4px;
}
.captcha-status.success {
  color: #158c04;
}
.captcha-status.error {
  color: #e74c3c;
}

.captcha-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.captcha-actions button {
  background: transparent;
  border: 1px solid #ddd9d0;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #666;
  cursor: pointer;
  transition: 0.15s;
}
.captcha-actions button:hover {
  background: #eae7e1;
}

/* ===== 验证码按钮 ===== */
.code-btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.code-btn-group .input-wrapper {
  flex: 1;
}
.code-btn-group .btn-code {
  flex-shrink: 0;
  background: #1e2a3a;
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
  height: 48px;
}
.code-btn-group .btn-code:hover {
  background: #2c3d52;
}
.code-btn-group .btn-code:disabled {
  background: #bbb;
  cursor: not-allowed;
}

/* ===== 登录/注册按钮 ===== */
.btn-login,
.btn-register {
  width: 100%;
  padding: 0.8rem;
  background: #f3b34c;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e2a3a;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 0.5rem;
}
.btn-login:hover,
.btn-register:hover {
  background: #e0a03a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(243, 179, 76, 0.3);
}
.btn-login:active,
.btn-register:active {
  transform: translateY(0);
}

/* ===== 登录/注册底部链接 ===== */
.login-footer,
.register-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: #888;
}
.login-footer a,
.register-footer a {
  color: #f3b34c;
  font-weight: 600;
  text-decoration: none;
}
.login-footer a:hover,
.register-footer a:hover {
  text-decoration: underline;
}

/* ===== 协议勾选 ===== */
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #888;
  margin-top: -0.2rem;
}
.agreement input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #f3b34c;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.agreement a {
  color: #f3b34c;
  font-weight: 500;
}
.agreement a:hover {
  text-decoration: underline;
}

/* ===== 辅助 ===== */
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.text-muted { color: #999; font-weight: 400;}
.gap-1 { gap: 0.8rem; }

/* ================================================================
   个人中心样式
   ================================================================ */
.profile-wrapper {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 20px;
}

/* 用户信息卡片 */
.profile-header {
  background: white;
  border-radius: 20px;
  padding: 2rem 2rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2rem;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #eae7e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #1e2a3a;
  flex-shrink: 0;
  border: 3px solid #f3b34c;
  overflow: hidden;
  position: relative;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar .avatar-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.55rem;
  text-align: center;
  padding: 2px 0;
  opacity: 0;
  transition: 0.3s;
}
.profile-avatar:hover .avatar-hint {
  opacity: 1;
}
.profile-info {
  flex: 1;
}
.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.profile-info .profile-meta {
  display: flex;
  flex-direction: column;      /* 一行一个，纵向排列 */
  gap: 0.5rem;                 /* 每行之间的间距 */
  font-size: 0.9rem;
  color: #888;
}
.profile-info .profile-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}
.profile-info .profile-meta .meta-item > i {
  color: #f3b34c;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.profile-info .profile-meta .vip-item {
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 0.2rem;
}

.profile-info .profile-meta .vip-icon {
  width: 30px;
  height: auto;
  flex-shrink: 0;
  vertical-align: middle;
}

.profile-info .profile-meta .vip-text {
  display: inline-flex;
  align-items: center;
}

/* VIP 开通/续费按钮 */
.profile-info .profile-meta .vip-btn {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  line-height: 1.2;
  font-size: 12px;
  border-radius: 20px;
  background: #f5f3f0;
  color: #1e2a3a;
  border: 1px solid #e0ddd6;
  transition: 0.15s;
  white-space: nowrap;
}

.profile-info .profile-meta .vip-btn:hover {
  background: #f3b34c;
  border-color: #f3b34c;
  color: #1e2a3a;
}

/* VIP 到期时间 */
.profile-info .profile-meta .vip-time {
  font-size: 13px;
  color: #888888;
}
.profile-info .profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-info .profile-meta i {
  color: #f3b34c;
  width: 18px;
}

/* Tab 导航 */
.profile-tabs {
  display: flex;
  gap: 0.5rem;
  background: #f0eeea;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  min-width: 80px;
}
.profile-tabs button.active {
  background: white;
  color: #1e2a3a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.profile-tabs button:hover {
  color: #1e2a3a;
}
.profile-tabs button i {
  margin-right: 6px;
}

/* 内容面板 */
.profile-panel {
  display: none !important;
  background: white;
  border-radius: 20px;
  padding: 1.5rem 2rem 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.profile-panel.active {
  display: block !important;
}
.profile-panel .panel-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-panel .panel-title i {
  color: #f3b34c;
}

/* 书架 */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.2rem;
}
.bookshelf-item {
  background: #faf9f7;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.2s;
  cursor: pointer;
  border: 1px solid #f0eeea;
  position: relative;
}
.bookshelf-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.bookshelf-cover {
  height: 160px;
  background: #d9d2c5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #5f5342;
  position: relative;
  overflow: hidden;
}
.bookshelf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bookshelf-cover .play-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
}
.bookshelf-cover .play-icon:hover {
  background: rgba(243, 179, 76, 0.8);
}
.bookshelf-info {
  padding: 0.7rem 0.8rem 0.9rem;
}
.bookshelf-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bookshelf-info .progress-text {
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
}
.bookshelf-info .progress-bar-mini {
  height: 3px;
  background: #eae7e1;
  border-radius: 4px;
  margin-top: 4px;
  overflow: hidden;
}
.bookshelf-info .progress-bar-mini .fill {
  height: 100%;
  background: #f3b34c;
  border-radius: 4px;
  width: 0%;
}
/* 书架删除按钮 */
.bookshelf-item .delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(231, 76, 60, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
}
.bookshelf-item:hover .delete-btn {
  opacity: 1;
}
.bookshelf-item .delete-btn:hover {
  background: #e74c3c;
  transform: scale(1.1);
}

/* 查看更多按钮 */
.view-more-wrapper {
  text-align: center;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
}
.view-more-btn {
  display: inline-block;
  padding: 0.5rem 2rem;
  background: transparent;
  border: 2px solid #f3b34c;
  border-radius: 40px;
  color: #f3b34c;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
}
.view-more-btn:hover {
  background: #f3b34c;
  color: #1e2a3a;
}
.view-more-btn i {
  margin-left: 6px;
}

/* 收听记录 */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  transition: 0.15s;
  cursor: pointer;
  border-bottom: 1px solid #f0eeea;
  position: relative;
}
.history-item:hover {
  background: #faf9f7;
}
.history-item .history-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #d9d2c5;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #5f5342;
}
.history-item .history-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-item .history-info {
  flex: 1;
  min-width: 0;
}
.history-item .history-info h4 {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item .history-info .history-meta {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.history-item .history-time {
  font-size: 0.75rem;
  color: #bbb;
  flex-shrink: 0;
}
.history-item .history-play-btn,.history-mark-btn {
  background: #da9628;
  color: #f5f3f0;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
  flex-shrink: 0;
}
.history-item .history-mark-btn {
  background: #119528;
}
.history-item .history-play-btn:hover {
  background: #e0a03a;
}
.history-item .history-mark-btn:hover {
  background: #45d25e;
}
/* 历史记录删除按钮 */
.history-item .history-delete-btn {
  background: transparent;
  color: #ccc;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s;
  padding: 4px 8px;
  flex-shrink: 0;
}
.history-item .history-delete-btn:hover {
  color: #e74c3c;
}

/* 资料修改 */
.profile-form {
  max-width: 500px;
}
.profile-form .form-group {
  margin-bottom: 1.2rem;
}
.profile-form .form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 4px;
}
.profile-form .form-group .input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #eae7e1;
  border-radius: 12px;
  transition: 0.2s;
  background: #faf9f7;
  padding: 0 14px;
}
.profile-form .form-group .input-wrapper:focus-within {
  border-color: #f3b34c;
  box-shadow: 0 0 0 3px rgba(243, 179, 76, 0.15);
}
.profile-form .form-group .input-wrapper i {
  color: #aaa;
  font-size: 1rem;
  margin-right: 10px;
}
.profile-form .form-group .input-wrapper input {
  border: none;
  background: transparent;
  padding: 0.7rem 0;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
  color: #1e2a3a;
}
.profile-form .form-group .input-wrapper input:disabled {
  color: #bbb;
  cursor: not-allowed;
}
.profile-form .btn-save {
  background: #f3b34c;
  border: none;
  padding: 0.7rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  color: #1e2a3a;
  cursor: pointer;
  transition: 0.15s;
}
.profile-form .btn-save:hover {
  background: #e0a03a;
}

/* 头像上传 */
.avatar-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #f3b34c;
  overflow: hidden;
  background: #eae7e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #aaa;
  flex-shrink: 0;
}
.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-upload-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.avatar-upload-actions .btn-upload {
  background: #f3b34c;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e2a3a;
  cursor: pointer;
  transition: 0.15s;
}
.avatar-upload-actions .btn-upload:hover {
  background: #e0a03a;
}
.avatar-upload-actions .btn-upload:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.avatar-upload-actions .btn-remove {
  background: transparent;
  border: 1px solid #e74c3c;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.85rem;
  color: #e74c3c;
  cursor: pointer;
  transition: 0.15s;
}
.avatar-upload-actions .btn-remove:hover {
  background: #e74c3c;
  color: white;
}
.avatar-upload-actions .file-input {
  display: none;
}
.avatar-upload-hint {
  font-size: 0.7rem;
  color: #999;
  width: 100%;
  margin-top: 4px;
}

/* 加载状态 */
.upload-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3b34c;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: #999;
}
.loading-spinner i {
  font-size: 2rem;
  animation: spin 0.8s linear infinite;
  display: block;
  margin-bottom: 0.5rem;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #999;
  grid-column: 1 / -1;  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-state i {
  font-size: 3rem;
  color: #ddd;
  display: block;
  margin-bottom: 0.8rem;
}
.empty-state p {
  font-size: 0.95rem;
}

/* ===== 性别单选按钮 ===== */
.gender-radio-group {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.gender-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  transition: 0.15s;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  border: 2px solid #eae7e1;
  background: #faf9f7;
}

.gender-radio:hover {
  border-color: #f3b34c;
}

.gender-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  transition: 0.15s;
  flex-shrink: 0;
  position: relative;
}

.gender-radio input[type="radio"]:checked {
  border-color: #f3b34c;
  background: #f3b34c;
}

.gender-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #1e2a3a;
  border-radius: 50%;
}

.gender-radio input[type="radio"]:checked + .radio-label {
  color: #1e2a3a;
}

.gender-radio .radio-label i {
  margin-right: 4px;
  color: #f3b34c;
}

.isovers {
  display: none;
}

/* ================================================================
   排行榜样式
   ================================================================ */
.rank-wrapper {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 0 20px;
}
.rank-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1rem;
  background: white;
  border-radius: 16px 16px 0 0;
  border-bottom: 2px solid #f0eeea;
}
.rank-title i { color: #f3b34c; font-size: 1.5rem; }

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0eeea;
}
.rank-tabs .tab-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #888;
  cursor: pointer;
  transition: 0.15s;
}
.rank-tabs .tab-btn:hover {
  color: #1e2a3a;
  background: #f0eeea;
}
.rank-tabs .tab-btn.active {
  background: #1e2a3a;
  color: #f0eee9;
}
.rank-tabs .tab-btn i {
  margin-right: 4px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.rank-card {
  background: white;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 0.8rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}
.rank-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #f0eeea;
  margin-bottom: 0.8rem;
}
.rank-card-header .rank-icon {
  font-size: 1.2rem;
  color: #f3b34c;
  width: 28px;
  text-align: center;
}
.rank-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e2a3a;
}
.rank-card-header .rank-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: #f0eeea;
  color: #888;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}

.rank-list {
  flex: 1;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid #f6f4f0;
  cursor: pointer;
  transition: 0.1s;
  border-radius: 6px;
}
.rank-item:hover {
  background: #faf9f7;
  padding-left: 0.6rem;
}
.rank-item:last-child {
  border-bottom: none;
}
.rank-num {
  flex-shrink: 0;
  width: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #999;
  text-align: center;
}
.rank-num.top1 { color: #f3b34c; font-size: 0.9rem; }
.rank-num.top2 { color: #b0bccb; font-size: 0.9rem; }
.rank-num.top3 { color: #d4a373; font-size: 0.9rem; }

.rank-item-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e2a3a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-item-name a {
  color: inherit;
  transition: 0.15s;
}
.rank-item-name a:hover {
  color: #f3b34c;
}
.rank-item-extra {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: #bbb;
}

/* 排行榜空状态 */
.rank-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #999;
}
.rank-loading i {
  font-size: 2.5rem;
  animation: spin 0.8s linear infinite;
  display: block;
  margin-bottom: 0.8rem;
}
/* ================================================================
   播放器样式
   ================================================================ */
.player-wrapper {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 20px;
    display: flex;
    gap: 1.5rem;
}

/* 左侧播放器 */
.player-left {
    flex: 1;
    min-width: 0;
}

.player-container {
    background: white;
    border-radius: 20px;
    padding: 1.8rem 2rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.player-info {
    text-align: center;
    margin-bottom: 1.5rem;
}
.player-info .book-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e2a3a;
}
.player-info .chapter-name {
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.2rem;
}

.player-cover {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 16 / 16;
    margin: 0 auto 1.2rem;
    border-radius: 14px;
    overflow: hidden;
    background: #d9d2c5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin: 1.2rem 0 1rem;
}
.player-controls .ctrl-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    transition: 0.15s;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-controls .ctrl-btn:hover {
    color: #f3b34c;
}
.player-controls .ctrl-btn.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f3b34c;
    color: #1e2a3a;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(243, 179, 76, 0.3);
}
.player-controls .ctrl-btn.play-btn:hover {
    background: #e0a03a;
    transform: scale(1.05);
}
.player-controls .ctrl-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.player-controls .ctrl-btn.skip-btn {
    font-size: 1.1rem;
    color: #999;
}
.player-controls .ctrl-btn.skip-btn:hover {
    color: #f3b34c;
}

.progress-wrapper {
    margin: 0.5rem 0 0.8rem;
}
.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: #eae7e1;
    border-radius: 4px;
    cursor: pointer;
}
.progress-bar .progress-fill {
    height: 100%;
    background: #f3b34c;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s;
}
.progress-bar .progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f3b34c;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: none;
    transition: left 0.1s;
}
.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.player-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.2rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0eeea;
}
.player-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.6rem 1.2rem;
    flex-wrap: wrap;
}
.player-toolbar .toolbar-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    background: #f5f3f0;
}
.player-toolbar .toolbar-btn:hover {
    color: #f3b34c;
    background: #f0eeea;
}
.player-toolbar .toolbar-btn.active {
    color: #f3b34c;
    background: #fff3e0;
}
.player-toolbar .toolbar-btn i {
    font-size: 0.9rem;
}

/* ===== 修改：节点按钮容器（工具栏内） ===== */
.player-toolbar .node-wrapper {
    position: relative;
    display: inline-block;
}

.speed-dropdown {
    position: relative;
    display: inline-block;
}
.speed-dropdown .speed-menu {
    display: none;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.4rem 0;
    min-width: 80px;
    z-index: 50;
}
.speed-dropdown .speed-menu.open {
    display: block;
}
.speed-dropdown .speed-menu .speed-item {
    display: block;
    width: 100%;
    padding: 0.4rem 1rem;
    border: none;
    background: none;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: 0.1s;
}
.speed-dropdown .speed-menu .speed-item:hover {
    background: #f5f3f0;
}
.speed-dropdown .speed-menu .speed-item.active {
    color: #f3b34c;
    font-weight: 600;
}

.timer-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.timer-popup.open {
    display: flex;
}
.timer-popup .timer-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}
.timer-popup .timer-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.timer-popup .timer-box p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.2rem;
}
.timer-popup .timer-box .timer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.timer-popup .timer-box .timer-options button {
    padding: 0.5rem;
    border: 2px solid #eae7e1;
    border-radius: 10px;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.15s;
}
.timer-popup .timer-box .timer-options button:hover {
    border-color: #f3b34c;
    background: #fff8f0;
}
.timer-popup .timer-box .timer-options button.active {
    border-color: #f3b34c;
    background: #f3b34c;
    color: #1e2a3a;
    font-weight: 600;
}
.timer-popup .timer-box .timer-close-btn {
    background: #eae7e1;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
}
.timer-popup .timer-box .timer-close-btn:hover {
    background: #ddd9d0;
}
.timer-popup .timer-box .timer-cancel-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    margin-left: 0.5rem;
}
.timer-popup .timer-box .timer-cancel-btn:hover {
    background: #c0392b;
}

.skip-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.skip-input-group input {
    width: 50px;
    padding: 0.2rem 0.3rem;
    border: 1px solid #ddd9d0;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
}
.skip-input-group span {
    font-size: 0.8rem;
    color: #999;
}

/* ===== 跳过设置弹窗 ===== */
.skip-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.skip-popup.open {
    display: flex;
}
.skip-popup .skip-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.skip-popup .skip-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.skip-popup .skip-box p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.2rem;
    text-align: center;
}
.skip-popup .skip-box .skip-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.skip-popup .skip-box .skip-row label {
    width: 70px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    flex-shrink: 0;
}
.skip-popup .skip-box .skip-row input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 2px solid #eae7e1;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    width: 60px;
}
.skip-popup .skip-box .skip-row input:focus {
    border-color: #f3b34c;
    outline: none;
}
.skip-popup .skip-box .skip-row span {
    font-size: 0.85rem;
    color: #999;
    flex-shrink: 0;
}
.skip-popup .skip-box .skip-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.5rem;
}
.skip-popup .skip-box .skip-actions .btn-skip-confirm {
    background: #f3b34c;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    color: #1e2a3a;
    cursor: pointer;
    transition: 0.15s;
}
.skip-popup .skip-box .skip-actions .btn-skip-confirm:hover {
    background: #e0a03a;
}
.skip-popup .skip-box .skip-actions .btn-skip-cancel {
    background: #eae7e1;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: 0.15s;
}
.skip-popup .skip-box .skip-actions .btn-skip-cancel:hover {
    background: #ddd9d0;
}
.skip-popup .skip-box .skip-actions .btn-skip-clear {
    background: transparent;
    border: 1px solid #e74c3c;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    color: #e74c3c;
    cursor: pointer;
    transition: 0.15s;
}
.skip-popup .skip-box .skip-actions .btn-skip-clear:hover {
    background: #e74c3c;
    color: white;
}

/* ===== 修改：节点切换弹窗（白底，与定时/跳过弹窗风格统一） ===== */
.node-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.node-popup.open {
    display: flex;
}
.node-popup .node-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}
.node-popup .node-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.node-popup .node-box p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.2rem;
}
.node-popup .node-box .node-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.node-popup .node-box .node-options button {
    padding: 0.6rem;
    border: 2px solid #eae7e1;
    border-radius: 10px;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.15s;
    color: #333;
}
.node-popup .node-box .node-options button:hover {
    border-color: #f3b34c;
    background: #fff8f0;
}
.node-popup .node-box .node-options button.active {
    border-color: #f3b34c;
    background: #f3b34c;
    color: #1e2a3a;
    font-weight: 600;
}
.node-popup .node-box .node-close-btn {
    background: #eae7e1;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: 0.15s;
}
.node-popup .node-box .node-close-btn:hover {
    background: #ddd9d0;
}

/* ===== 修改：底部导航收藏按钮（书本和目录之间） ===== */
.player-nav .nav-btn.collect-nav-btn {
    background: transparent;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
    font-family: inherit;
}
.player-nav .nav-btn.collect-nav-btn:hover {
    background: #e74c3c;
    color: white;
}
.player-nav .nav-btn.collect-nav-btn.collected {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}
.player-nav .nav-btn.collect-nav-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 底部导航按钮 ===== */
.player-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem 1rem;
    margin-top: 0.7rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.player-nav .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #1e2a3a;
    background: #f5f3f0;
    transition: 0.15s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.player-nav .nav-btn:hover {
    background: #f3b34c;
    color: #1e2a3a;
}
.player-nav .nav-btn i {
    font-size: 0.9rem;
}
.player-nav .nav-btn.prev-btn {
    background: #eae7e1;
}
.player-nav .nav-btn.prev-btn:hover {
    background: #f3b34c;
}
.player-nav .nav-btn.next-btn {
    background: #f3b34c;
    color: #1e2a3a;
}
.player-nav .nav-btn.next-btn:hover {
    background: #e0a03a;
}
.player-nav .nav-btn.book-btn {
    background: #1e2a3a;
    color: #f0eee9;
}
.player-nav .nav-btn.book-btn:hover {
    background: #2c3d52;
}
.player-nav .nav-btn.dir-btn {
    background: #eae7e1;
}
.player-nav .nav-btn.dir-btn:hover {
    background: #f3b34c;
}
.player-nav .nav-divider {
    width: 1px;
    height: 24px;
    background: #eae7e1;
}   

 /* ===== 右侧推荐列表 ===== */
.player-right {
    width: 280px;
    flex-shrink: 0;
}
.player-right .recommend-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e2a3a;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 16px 16px 0 0;
    border-bottom: 2px solid #f0eeea;
    display: flex;
    align-items: center;
    gap: 8px;
}
.player-right .recommend-title i {
    color: #f3b34c;
}
.player-right .recommend-list {
    background: white;
    border-radius: 0 0 16px 16px;
    padding: 0.5rem 0.8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    max-height: 650px;
    overflow-y: auto;
}
.player-right .recommend-list::-webkit-scrollbar {
    width: 4px;
}
.player-right .recommend-list::-webkit-scrollbar-thumb {
    background: #ddd9d0;
    border-radius: 4px;
}
.player-right .recommend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.3rem;
    border-bottom: 1px solid #f6f4f0;
    cursor: pointer;
    transition: 0.15s;
    border-radius: 6px;
}
.player-right .recommend-item:hover {
    background: #faf9f7;
}
.player-right .recommend-item .rec-rank {
    flex-shrink: 0;
    width: 22px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bbb;
    text-align: center;
}
.player-right .recommend-item .rec-rank.top1 { color: #f3b34c; font-size: 0.85rem; }
.player-right .recommend-item .rec-rank.top2 { color: #b0bccb; font-size: 0.85rem; }
.player-right .recommend-item .rec-rank.top3 { color: #d4a373; font-size: 0.85rem; }
.player-right .recommend-item .rec-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #d9d2c5;
    flex-shrink: 0;
}
.player-right .recommend-item .rec-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player-right .recommend-item .rec-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e2a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-right .recommend-item .rec-name a {
    color: inherit;
    transition: 0.15s;
}
.player-right .recommend-item .rec-name a:hover {
    color: #f3b34c;
}
.player-right .recommend-item .rec-hot {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #bbb;
}
/* ================================================================
   全局底部
   ================================================================ */
.footer {
    background: #1e2a3a;
    color: #b0bccb;
    padding: 2rem 0 1.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.footer .footer-col h4 {
    color: #f0eee9;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.footer .footer-col ul li {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}
.footer .footer-col ul li a:hover {
    color: #f3b34c;
}
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #7a8799;
}
.footer .footer-bottom .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.footer .footer-bottom .footer-links a:hover {
    color: #f3b34c;
}
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #999;
}
.loading-spinner i {
    font-size: 2.5rem;
    animation: spin 0.8s linear infinite;
    display: block;
    margin-bottom: 0.5rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.rank-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem;
  color: #999;
}
.rank-empty i {
  font-size: 2.5rem;
  color: #ddd;
  display: block;
  margin-bottom: 0.8rem;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e2a3a;
  color: #f0eee9;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover {
  background: #f3b34c;
  color: #1e2a3a;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(243, 179, 76, 0.3);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top i {
  font-size: 1.3rem;
}
.pagecontent p {
  line-height: 1.8;
  color: #595555;
}
.pagecontent .title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2d2c2c;
}
/* ===== 音量控制 ===== */
.volume-wrapper {
    position: relative;
    display: inline-block;
}

.volume-popup {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 50;
    min-width: 160px;
    text-align: center;
}
.volume-popup.open {
    display: block;
}

.volume-popup .volume-slider-wrapper {
    position: relative;
    height: 6px;
    background: #eae7e1;
    border-radius: 4px;
    margin: 0.5rem 0;
    cursor: pointer;
}
.volume-popup .volume-slider-wrapper input[type="range"] {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    z-index: 2;
    cursor: pointer;
    margin: 0;
}
.volume-popup .volume-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f3b34c;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.volume-popup .volume-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f3b34c;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.volume-popup .volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #f3b34c;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}

.volume-popup .volume-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}
.volume-popup .volume-info button {
    background: none;
    border: none;
    font-size: 1rem;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    transition: 0.15s;
}
.volume-popup .volume-info button:hover {
    color: #f3b34c;
}
/* ===== 控制区加载/错误状态 ===== */
#controlArea {
    min-height: 120px;   /* 防止内容切换时高度跳动，可按实际调整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.control-loading {
    text-align: center;
    padding: 1.5rem 0;
    color: #999;
}
.control-loading i {
    font-size: 2.2rem;
    animation: spin 0.8s linear infinite;
    display: block;
    margin-bottom: 0.5rem;
    color: #f3b34c;
}
.control-loading p {
    font-size: 0.9rem;
}
.control-error {
    text-align: center;
    padding: 1.2rem 0.5rem;
    color: #e74c3c;
    font-size: 0.9rem;
    line-height: 1.6;
}
.control-error i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}
.control-error a {
    color: #0f65d4;
    font-weight: 500;
}
/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .hot-right { width: 210px; padding: 0.8rem; }
  .hot-right .hot-item { font-size: 0.75rem; padding: 0.4rem 0.2rem; }
  .section-title{ font-size: 0.95rem; }
  .banner-slider .banner-slide .banner-overlay .banner-title { font-size: 1.1rem; }
  .banner-slider .banner-slide .banner-overlay .banner-intro { font-size: 0.78rem; }
  .banner-slider .banner-slide .slide-inner { padding-bottom: 35%; }
}
/* ===== 响应式 ===== */
@media (min-width: 769px) {
  .mobile-nav-toggle,
  .mobile-search-toggle,
  .mobile-nav-overlay,
  .mobile-search-overlay {
    display: none !important;
  }
  .nav-links,
  .search-bar {
    display: flex !important;
  }
  .category-tags-wrapper .category-tags {
    display: flex !important;
  }
  .category-toggle-btn {
    display: none !important;
  }
  .category-dropdown {
    display: none !important;
  }
  .mobile-user-info,
  .mobile-user-buttons {
    display: none !important;
  }
  .user-area {
    display: flex !important;
  }
  .player-right { display: block !important; }
}

/* 移动端 (宽度 ≤ 768px) */
@media (max-width: 768px) {
  .header .container {
    justify-content: center;
    position: relative;
    padding: 0 48px;
  }
  .section-title{ font-size: 0.9rem; }
  .book-cover .play-overlay .play-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
  .book-info h4{ font-size: 0.90rem; }
  .book-info .meta{ font-size: 0.75rem; }
  .logo {
    flex: none;
    text-align: center;
    font-size: 1.4rem;
  }
  .nav-links {
    display: none !important;
  }
  .search-bar {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block;
    left: 8px;
  }
  .mobile-search-toggle {
    display: block;
    right: 8px;
  }

  .mobile-nav-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e2a3a;
    padding: 1rem 1.5rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    z-index: 999;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid #2c3d52;
  }
  .mobile-nav-overlay.open {
    display: flex;
  }
  .mobile-nav-overlay a {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #f0eee9;
    font-size: 1rem;
    transition: 0.15s;
  }
  .mobile-nav-overlay a:hover {
    color: #f3b34c;
    padding-left: 0.5rem;
  }
  .mobile-nav-overlay.open .active {
    color: #f3b34c;
  }

  .mobile-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e2a3a;
    padding: 1rem 1.5rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    z-index: 999;
    border-top: 1px solid #2c3d52;
  }
  .mobile-search-overlay.open {
    display: block;
  }
  .mobile-search-overlay .search-bar {
    display: flex !important;
    width: 100%;
    background: #2c3d52;
  }
  .mobile-search-overlay .search-bar input {
    width: 100%;
    flex: 1;
    display: block !important;
  }
  .mobile-search-overlay .search-bar button {
    display: inline-flex !important;
  }

  .category-tags-wrapper .category-tags {
    display: none !important;
  }
  .category-toggle-btn {
    display: inline-flex !important;
  }
  .category-dropdown {
    display: none;
  }
  .category-dropdown.open {
    display: flex;
  }

  /* 移动端列表样式调整 */
  .book-list-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  .book-list-cover {
    width: 90px;
    height: 120px;
  }
  .book-list-title {
    font-size: 1rem;
  }
  .book-list-meta {
    font-size: 0.78rem;
    gap: 0.4rem 1rem;
  }
  .book-list-desc {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }
  .book-list-stats {
    font-size: 0.7rem;
    gap: 0.5rem 0.8rem;
  }

  /* 详情页移动端优化 */
  .book-detail {
    padding: 1.2rem 1rem;
    border-radius: 16px;
  }
  .detail-row {
    gap: 1.2rem;
    flex-direction: column;
    align-items: center;
  }
  .detail-cover {
    flex: none;
    width: 160px;
    height: 160px;
  }
  .detail-cover img {
    width: 160px;
    height: 160px;
    border-radius: 16px;
  }
  .detail-meta {
    width: 100%;
  }
  .detail-meta h2 {
    font-size: 1.4rem;
    text-align: center;
  }
  .detail-meta .author {
    font-size: 0.9rem;
    justify-content: center;
    gap: 0.2rem 0.6rem;
  }
  .detail-meta .author i {
    margin: 2px !important;
  }
  .detail-meta .desc {
    font-size: 0.9rem;
    padding: 0.8rem 1rem 0.2rem 1rem;
    -webkit-line-clamp: 3;
  }
  .btn-group {
    justify-content: center;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* 章节列表移动端优化 */
  .chapter-item {
    padding: 0.7rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }
  .chapter-item .left {
    align-items: flex-start;
  }
  .chapter-item .left i {
    margin-top: 0.2rem;
    font-size: 0.85rem;
  }
  .chapter-item .left .chapter-name {
    -webkit-line-clamp: 2;
    font-size: 0.95rem;
  }
  .chapter-item .right {
    text-align: left;
    padding-left: 1.8rem;
    font-size: 0.75rem;
    color: #999;
  }
  .chapter-item .right i {
    margin-right: 4px;
  }

  .flex-between {
    align-items: flex-start;
    gap: 0.3rem;
  }
  .flex-between h2 {
    font-size: 1.2rem;
  }
  .flex-between .text-muted {
    font-size: 0.85rem;
  }

  /* 移动端分页 */
  .pagination a:not(.page-nav) {
    display: none !important;
  }
  .pagination a.page-nav {
    display: inline-block !important;
  }
  .pagination .current-page-mobile {
    display: inline-block !important;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    color: #1e2a3a;
    background: #f0eee9;
    border-radius: 30px;
    font-size: 0.85rem;
    min-width: auto;
  }

  /* 移动端用户 */
  .user-area { display: block !important; }
  #desktopUserArea .user-info,
  #desktopUserArea > a,
  #desktopUserArea > img { display: none !important; }
  .mobile-user-info,
  .mobile-user-buttons {
    display: flex !important;
  }
  .mobile-nav-overlay .mobile-user-info,
  .mobile-nav-overlay .mobile-user-buttons {
    display: flex !important;
  }
  .player-container {
        padding: 1.2rem 1rem 1.5rem;
        border-radius: 14px;
    }
    .player-controls { gap: 1.2rem; }
    .player-controls .ctrl-btn { font-size: 1.2rem; }
    .player-controls .ctrl-btn.play-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .player-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }
    .player-toolbar .toolbar-group {
        justify-content: center;
        gap: 0.6rem 0.5rem;
    }
    .volume-popup {
        left: auto;
        right: 0;
        transform: none;
        min-width: 140px;
    }
        /* ===== 移动端弹窗统一居中修复 ===== */
    .timer-popup,
    .skip-popup,
    .node-popup {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        display: none;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .timer-popup.open,
    .skip-popup.open,
    .node-popup.open {
        display: flex;
    }
    .timer-popup .timer-box,
    .skip-popup .skip-box,
    .node-popup .node-box {
        margin: auto;
        width: 100%;
        max-width: 340px;
        padding: 1.5rem;
    }
    .timer-popup .timer-box .timer-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    .node-popup .node-box .node-options {
        gap: 0.4rem;
    }
  /* 登录/注册页面移动端 */
  .login-container,
  .register-container {
    padding: 1.8rem 1.2rem;
    border-radius: 16px;
  }
  .login-logo,
  .register-logo {
    font-size: 1.4rem;
  }
  .code-btn-group {
    flex-wrap: wrap;
  }
  .code-btn-group .btn-code {
    width: 100%;
    height: auto;
    padding: 0.6rem;
  }
  .captcha-grid {
    gap: 6px;
  }
  .captcha-grid .captcha-item .emoji {
    font-size: 1.8rem;
  }
  .register-subtitle {
    font-size: 0.8rem;
  }
  .random-password-btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }

  /* 个人中心移动端 */
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  .profile-info .profile-meta {
    align-items: center;
    text-align: center;
  }
  .profile-info .profile-meta .meta-item {
    justify-content: center;
  }
  .profile-tabs {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .profile-tabs button {
    flex: none;
    min-width: 60px;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
  }
  .profile-panel {
    padding: 1.2rem 1rem 1.5rem;
  }
  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
  }
  .bookshelf-cover {
    height: 130px;
  }
  .history-item {
    flex-wrap: wrap;
    padding: 0.6rem 0.8rem;
  }
  .history-item .history-time {
    width: 100%;
    padding-left: 56px;
    font-size: 0.7rem;
    display: none;
  }
  .profile-form {
    max-width: 100%;
  }
  .avatar-upload-wrapper {
    justify-content: center;
  }
  .bookshelf-item .delete-btn {
    opacity: 1;
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
    top: 4px;
    right: 4px;
  }

  /* 排行榜移动端：一排2个框 */
  .rank-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .rank-card {
    padding: 0.8rem 0.8rem 0.5rem;
    border-radius: 12px;
  }
  .rank-card-header h3 {
    font-size: 0.9rem;
  }
  .rank-card-header .rank-icon {
    font-size: 1rem;
    width: 22px;
  }
  .rank-card-header .rank-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }
  .rank-item {
    padding: 0.35rem 0.2rem;
    gap: 0.5rem;
  }
  .rank-num {
    width: 18px;
    font-size: 0.7rem;
  }
  .rank-num.top1, .rank-num.top2, .rank-num.top3 {
    font-size: 0.75rem;
  }
  .rank-item-name {
    font-size: 0.78rem;
  }
  .rank-item-extra {
    font-size: 0.6rem;
  }
  .rank-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .rank-wrapper {
    margin-top: 1rem;
    padding: 0 12px;
  }
  .rank-tabs {
    gap: 0.3rem 0.6rem;
    margin-bottom: 1rem;
  }
  .rank-tabs .tab-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
  }
  .banner-hot-wrapper {
    flex-direction: column;
    border-radius: 12px;
    min-height: auto;
    margin: 1rem auto 0;
  }
  .banner-left { flex: none; width: 100%; }
  .banner-slider .banner-slide .slide-inner { padding-bottom: 40%; min-height: 100px; }
  .banner-slider .banner-slide .banner-overlay { padding: 0.8rem 1rem 1.2rem; }
  .banner-slider .banner-slide .banner-overlay .banner-title { font-size: 1rem; }
  .banner-slider .banner-slide .banner-overlay .banner-intro { font-size: 0.75rem; -webkit-line-clamp: 1; max-height: 1.6em; }
  .banner-btn { width: 30px; height: 30px; font-size: 0.8rem; }
  .banner-btn.prev { left: 6px; }
  .banner-btn.next { right: 6px; }
  .banner-dots span { width: 6px; height: 6px; }
  .banner-dots span.active { width: 16px; }
  .hot-right { display: none !important; }
  .player-wrapper {
        flex-direction: column;
        padding: 0 12px;
    }
    .player-right {
        display: none !important;
    }
  .skip-popup .skip-box {
        padding: 1.5rem;
    }
    .skip-popup .skip-box .skip-row {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .skip-popup .skip-box .skip-row label {
        width: 100%;
    }
    /* 底部导航移动端 */
    .player-nav {
        gap: 0.4rem 0.6rem;
        padding: 0.6rem 0.8rem;
        border-radius: 12px;
    }
    .player-nav .nav-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    /* ===== 修改：移动端底部收藏按钮 ===== */
    .player-nav .nav-btn.collect-nav-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    .player-nav .nav-divider {
        display: none;
    }
    /* 底部移动端 */
    .footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .footer .footer-bottom .footer-links {
        gap: 0.8rem;
    }
    .footer .footer-bottom .footer-links a {
        font-size: 0.75rem;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .back-to-top i {
        font-size: 1.1rem;
    }
    #controlArea { min-height: 100px; }
    .control-loading i { font-size: 1.8rem; }

  /* 移动端隐藏个人中心按钮与弹出面板，保留原移动菜单 */
  .personal-center-btn,
  .personal-popup { display: none !important; }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .section-title{ font-size: 0.85rem; }
  .book-info {
      padding: 0.4rem .6rem .6rem;
    }
  .book-info h4{ font-size: 0.85rem; }
  .book-info .meta{ font-size: 0.65rem; }
  .book-list-cover {
    width: 75px;
    height: 100px;
  }
  .book-cover {
    height: 150px;
  }
  .book-cover .play-overlay .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
  .book-list-title {
    font-size: 0.9rem;
  }
  .book-list-meta {
    font-size: 0.7rem;
    gap: 0.2rem 0.6rem;
    flex-wrap: wrap;
  }
  .book-list-desc,.marktext,.isover,.lasttime {
    display: none;
  }
  .isovers {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    position: absolute;
    margin-left: .5rem;
    color: #056142;
  }
  .book-list-stats {
    font-size: 0.65rem;
    gap: 0.3rem 0.6rem;
  }

  .book-detail {
    padding: 1rem 0.8rem;
    border-radius: 12px;
  }
  .detail-cover {
    width: 180px;
    height: 180px;
    border-radius: 8px;
  }
  .detail-cover img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
  }
  .detail-meta h2 {
    font-size: 1.2rem;
  }
  .detail-meta .author {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  .detail-meta .desc {
    font-size: 0.82rem;
    padding: 0.6rem 0.8rem 0.2rem 0.8rem;
    -webkit-line-clamp: 3;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    gap: 4px;
  }
  .chapter-item {
    padding: 0.6rem 0.8rem;
  }
  .chapter-item .left .chapter-name {
    font-size: 0.88rem;
  }
  .chapter-item .right {
    font-size: 0.7rem;
    padding-left: 1.6rem;
  }

  .header .container {
    padding: 0 40px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .mobile-nav-toggle,
  .mobile-search-toggle {
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
  }
  .player-container {
        padding: 1rem 0.8rem 1.2rem;
    }
    .player-info .book-name { font-size: 1rem; }
    .player-info .chapter-name { font-size: 0.82rem; }
    .player-controls { gap: 0.8rem; }
    .player-controls .ctrl-btn { font-size: 1rem; }
    .player-controls .ctrl-btn.play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .player-toolbar .toolbar-btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    .skip-input-group input { width: 40px; font-size: 0.7rem; }
    .player-cover { max-width: 200px; }
  /* 登录/注册页面小屏 */
  .login-container,
  .register-container {
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
  }

  /* 个人中心小屏 */
  .profile-header {
    padding: 1rem 0.8rem;
    gap: 1rem;
  }
  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  .profile-info h2 {
    font-size: 1.2rem;
  }
  .profile-info .profile-meta {
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .profile-info .profile-meta .vip-icon {
    width: 24px;
  }
  .profile-info .profile-meta .vip-btn {
    font-size: 11px;
    padding: 0.15rem 0.5rem;
  }
  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
  }
  .bookshelf-cover {
    height: 110px;
  }
  .profile-panel {
    padding: 1rem 0.6rem 1.2rem;
  }
  .profile-tabs button {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    min-width: 50px;
  }
  .avatar-preview {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  .avatar-upload-actions .btn-upload,
  .avatar-upload-actions .btn-remove {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  .gender-radio-group {
    gap: 0.8rem;
  }
  .gender-radio {
    padding: 0.2rem 0.6rem;
    font-size: 0.85rem;
  }
  .gender-radio input[type="radio"] {
    width: 16px;
    height: 16px;
  }
  .progress-text-item {
    display: none;
  }

  /* 排行榜：一排1个框 */
  .rank-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .rank-card {
    padding: 0.8rem 0.8rem 0.5rem;
    border-radius: 12px;
  }
  .rank-card-header h3 {
    font-size: 0.95rem;
  }
  .rank-card-header .rank-icon {
    font-size: 1.05rem;
    width: 24px;
  }
  .rank-card-header .rank-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  .rank-item {
    padding: 0.4rem 0.25rem;
    gap: 0.6rem;
  }
  .rank-num {
    width: 20px;
    font-size: 0.75rem;
  }
  .rank-num.top1, .rank-num.top2, .rank-num.top3 {
    font-size: 0.8rem;
  }
  .rank-item-name {
    font-size: 0.85rem;
  }
  .rank-item-extra {
    font-size: 0.65rem;
  }
  .rank-title {
    font-size: 1.2rem;
  }
  .rank-tabs .tab-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .banner-slider .banner-slide .slide-inner { padding-bottom: 45%; min-height: 80px; }
  .banner-slider .banner-slide .banner-overlay .banner-title { font-size: 0.85rem; }
  .banner-slider .banner-slide .banner-overlay .banner-intro { font-size: 0.65rem; }
  .banner-btn { width: 24px; height: 24px; font-size: 0.65rem; }
  .banner-dots { bottom: 6px; gap: 4px; }
  .banner-dots span { width: 5px; height: 5px; }
  .banner-dots span.active { width: 12px; }
  .player-nav .nav-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    .player-nav .nav-btn i {
        font-size: 0.75rem;
    }
    /* ===== 修改：小屏底部收藏按钮 ===== */
    .player-nav .nav-btn.collect-nav-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    .footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        display: none;
    }
    .footer .footer-col h4 {
        font-size: 0.9rem;
    }
    .footer .footer-col ul li {
        font-size: 0.8rem;
    }
    .footer .footer-bottom {
        font-size: 0.7rem;
    }
    .footer .footer-bottom .footer-links {
        gap: 0.6rem;
    }
    .footer .footer-bottom .footer-links a {
        font-size: 0.7rem;
    }
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .back-to-top i {
        font-size: 1rem;
    }
    .timer-popup,
    .skip-popup,
    .node-popup {
        padding: 16px;
    }
    .timer-popup .timer-box,
    .skip-popup .skip-box,
    .node-popup .node-box {
        max-width: 100%;
        padding: 1.2rem;
    }
}


/* ================================================================
   个人中心按钮 + 弹出面板（整合：personal-center-btn / personal-popup）
   ================================================================ */
.personal-center-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 30px;
  background: #2c3d52;
  border: 1px solid #3d4f64;
  color: #f0eee9;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.personal-center-btn:hover {
  background: #3a4f68;
  border-color: #f3b34c;
}
.personal-center-btn i {
  color: #f3b34c;
  font-size: 1.05rem;
}
.personal-center-btn .pc-btn-text {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.personal-center-btn .pc-btn-arrow {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s;
}
.personal-center-btn[aria-expanded="true"] .pc-btn-arrow {
  transform: rotate(180deg);
}

/* 弹出面板 */
.personal-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #1e2a3a;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px #3a4b62;
  padding: 18px 14px 12px;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  color: #f0eee9;
}
.personal-popup.open {
  display: flex;
  animation: ppFadeIn 0.18s ease;
}
@keyframes ppFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3b34c, #d18f2c);
  color: #1e2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  overflow: hidden;
  box-shadow: 0 0 0 3px #2f4057;
  margin-bottom: 6px;
}
.pp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-avatar-guest {
  background: #3f536b;
  color: #b0c4de;
}
.pp-vip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e2a3a;
  background: linear-gradient(45deg, #f5d742, #f3b34c);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.pp-nickname {
  font-size: 1rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-guest-title {
  font-size: 0.9rem;
  color: #aabbd0;
  font-weight: 500;
}
.pp-divider {
  width: 100%;
  height: 1px;
  background: #33475f;
  margin: 10px 0 6px;
}
.pp-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #cfddee;
  font-size: 0.88rem;
  text-decoration: none;
  transition: 0.15s;
}
.pp-menu a i {
  width: 18px;
  text-align: center;
  color: #f3b34c;
  font-size: 0.95rem;
}
.pp-menu a:hover {
  background: #2f4057;
  color: #fff;
}

/* 桌面端才生效的定位（popup 的 absolute 基准） */
@media (min-width: 769px) {
  .user-area { position: relative; }
}
