/* ===== 百宝箱 ===== */
.tzb-page {
  font-family: var(--pz-font-family);
  color: var(--pz-font);
  padding: 0 0 40px;
}
.tzb-header {
  position: relative;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  margin: 20px auto 30px;
  max-width: 1120px;
  color: #fff;
  box-shadow: var(--pz-shadow);
}
.tzb-header-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.tzb-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.55));
}
.tzb-header-title {
  position: absolute; left: 30px; top: 40px;
  text-shadow: 0 4px 18px rgba(0,0,0,.4);
}
.tzb-header-sub { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.tzb-header-main { font-size: 36px; font-weight: 700; margin-top: 16px; line-height: 1.4; }
.tzb-header-desc { margin-top: 12px; color: rgba(255,255,255,.85); }

.tzb-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 30px;
  padding: 0 20px;
}
.tzb-card {
  flex: 1 1 200px;
  min-width: 180px;
  border-radius: 18px;
  padding: 22px 24px;
  cursor: pointer;
  background: linear-gradient(135deg, #f6d365, #fda085);
  color: #fff;
  box-shadow: var(--pz-shadow);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.tzb-card:hover { transform: translateY(-6px); box-shadow: var(--pz-shadow-h); }
.tzb-card:nth-child(2) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.tzb-card:nth-child(3) { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.tzb-card:nth-child(4) { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.tzb-card.active { box-shadow: 0 0 0 3px var(--pz-theme), var(--pz-shadow); }
.tzb-card-icon { font-size: 34px; }
.tzb-card-name { font-size: 24px; font-weight: 700; margin-top: 12px; }
.tzb-card-name:after { content: ''; display: block; width: 22px; height: 2px; background: #fff; margin-top: 8px; border-radius: 1px; }
.tzb-card-desc { margin-top: 10px; font-size: 13px; opacity: .9; }

.tzb-panels {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.tzb-panel { display: none; }
.tzb-panel.active { display: block; }
.tzb-sec-title { font-size: 26px; font-weight: 700; margin-bottom: 24px; }

/* 书库卡片（强制覆盖旧 databank.css 的 #app 规则） */
#app .bank_main { color: var(--pz-font); display: block !important; }
#app .bank_main .item { margin-bottom: 30px !important; }
#app .item .class_title {
  display: flex !important; align-items: center; justify-content: flex-start !important;
  font-size: 20px; font-weight: 700;
  color: var(--pz-font);
  margin: 20px 0 16px !important;
}
#app .item .class_title img { width: 26px !important; margin: 0 !important; }
#app .item .class_title .cnt {
  margin-left: 10px; font-size: 13px; font-weight: 700;
  background: var(--pz-border); color: var(--pz-grey);
  padding: 2px 10px; border-radius: 2rem;
}
#app .item .content_class {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}
#app .item .content_class .website {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
  background: var(--pz-card2);
  border: 1px solid var(--pz-border) !important;
  border-bottom: 2px solid var(--pz-accent) !important;
  border-radius: 16px !important;
  box-shadow: var(--pz-shadow);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
#app .item .content_class .website:hover { box-shadow: var(--pz-shadow-h); transform: translateY(-4px); bottom: 0 !important; }
#app .item .content_class .website a { text-decoration: none; color: inherit; }
#app .item .content_class .website .img { width: 100% !important; display: block !important; position: relative; }
#app .item .content_class .website .img img { margin: 0 !important; width: 100% !important; height: 110px !important; border-radius: 0 !important; object-fit: cover; display: block; }
#app .item .content_class .website .img .title { position: absolute !important; bottom: 0; left: 0; right: 0; padding: 24px 14px 10px !important; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)) !important; color: #fff !important; display: block !important; }
#app .item .content_class .website .img .title .one i { font-style: normal; font-weight: 700; font-size: 16px; color: #fff !important; }
#app .item .content_class .website .img .title .two { font-size: 12px !important; color: rgba(255,255,255,.85) !important; margin-top: 0 !important; }
#app .item .content_class .website .about { position: static !important; padding: 10px 14px; display: block !important; }
#app .item .content_class .website .about p { margin: 0 !important; font-size: 13px; color: var(--pz-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 音乐 */
.music-box { background: var(--pz-card2); border: 1px solid var(--pz-border); border-radius: 18px; box-shadow: var(--pz-shadow); padding: 24px; }
.music-title { font-size: 24px; font-weight: 700; margin-bottom: 18px; color: var(--pz-font); }
.music-list { list-style: none; padding: 0; margin: 18px 0 0; }
.music-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  border-bottom: 1px solid var(--pz-border);
  transition: background .2s;
}
.music-item:hover { background: var(--pz-border); }
.music-item.playing { background: linear-gradient(90deg, var(--pz-red), var(--pz-red2)); color: #fff; }
.music-item .mi { font-weight: 700; width: 20px; text-align: center; color: var(--pz-theme); }
.music-item.playing .mi { color: #fff; }
.music-item .mname { font-weight: 600; }
.music-item .mauthor { color: var(--pz-grey); font-size: 13px; }

/* 收藏夹 */
.fav-grid, .friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 16px;
  background: var(--pz-card2); border: 1px solid var(--pz-border);
  box-shadow: var(--pz-shadow); text-decoration: none;
  transition: box-shadow .3s, transform .3s, background .3s;
}
.fav-item:hover { box-shadow: var(--pz-shadow-h); transform: translateY(-4px); background: linear-gradient(135deg, var(--pz-red), var(--pz-red2)); color: #fff; }
.fav-cover, .friend-avatar { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: 0 0 48px; }
.fav-cover-empty, .friend-avatar-empty { display: flex; align-items: center; justify-content: center; background: var(--pz-border); color: var(--pz-grey); font-size: 20px; }
.fav-info, .friend-info { min-width: 0; }
.fav-title, .friend-name { font-weight: 700; font-size: 16px; color: var(--pz-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-desc, .friend-desc { font-size: 13px; color: var(--pz-grey); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-item:hover .fav-title, .fav-item:hover .friend-name,
.fav-item:hover .fav-desc, .fav-item:hover .friend-desc { color: #fff; }

/* 友链 */
.friend-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: 16px;
  background: var(--pz-card2); border: 1px solid var(--pz-border);
  box-shadow: var(--pz-shadow); text-decoration: none;
  transition: box-shadow .3s, transform .3s, background .3s;
}
.friend-item:hover { box-shadow: var(--pz-shadow-h); transform: translateY(-4px); background: linear-gradient(135deg, #425AEF, #7a6ff0); color: #fff; }
.friend-item:hover .friend-name, .friend-item:hover .friend-desc { color: #fff; }

@media (max-width: 700px) {
  .tzb-header { height: 220px; }
  .tzb-header-main { font-size: 26px; }
  .tzb-cards { gap: 12px; }
  .tzb-card { min-width: 150px; padding: 16px; }
}



/* ===== 分区 hero（曲乐/收藏夹/友链） ===== */
.pz-section-hero {
  position: relative; height: 180px; border-radius: 18px; overflow: hidden;
  margin-bottom: 30px; box-shadow: var(--pz-shadow);
  background-size: cover; background-position: center;
}
.pz-section-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(0,0,0,.5), rgba(0,0,0,.25)); }
.pz-section-hero-title { position:absolute; left:40px; top:34px; color:#fff; text-shadow:0 3px 14px rgba(0,0,0,.45); }
.pz-section-hero-title .sub { font-size:12px; letter-spacing:3px; opacity:.85; }
.pz-section-hero-title .main { font-size:32px; font-weight:700; margin-top:6px; }
.pz-section-hero-title .desc { margin-top:8px; font-size:14px; opacity:.92; }

/* ===== 曲乐：圆图专辑 ===== */
.pz-douban { font-size:22px; font-weight:700; margin:6px 0 24px; }
.music-grid { display:flex; flex-wrap:wrap; gap:26px; }
.m-item { width:120px; text-align:center; cursor:pointer; }
.m-cover { width:118px; height:118px; border-radius:50%; object-fit:cover; box-shadow:0 8px 22px rgba(0,0,0,.18); transition:transform .25s; }
.m-item:hover .m-cover { transform:scale(1.05); }
.m-cover-empty { display:flex; align-items:center; justify-content:center; background:var(--pz-border); color:var(--pz-grey); font-size:32px; }
.m-name { margin-top:12px; font-size:14px; color:var(--pz-font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ===== 收藏夹：分类卡片 ===== */
.collect-classify { font-size:24px; font-weight:700; text-align:center; margin:28px 0 18px; }
.favorite-item-wrap { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:16px; }
.favorite-item {
  display:flex; align-items:center; gap:12px;
  padding:14px; border-radius:12px; background:var(--pz-card2);
  border:1px solid var(--pz-border); box-shadow:var(--pz-shadow);
  text-decoration:none; color:inherit; transition:box-shadow .3s, transform .3s;
}
.favorite-item:hover { box-shadow:var(--pz-shadow-h); transform:translateY(-2px); }
.favorite-item-image { width:48px; height:48px; border-radius:10px; object-fit:cover; flex:0 0 48px; }
.favorite-item-image-empty { display:flex; align-items:center; justify-content:center; background:var(--pz-border); color:var(--pz-grey); font-size:20px; }
.favorite-item-body { min-width:0; }
.favorite-item-title { font-weight:700; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.favorite-item-introduction { font-size:13px; color:var(--pz-grey); margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ===== 友链：信封 + 本站信息 ===== */
.envelope { width:280px; margin:10px auto 30px; position:relative; }
.envelope-body {
  position:relative; width:280px; height:180px;
  background: linear-gradient(135deg,#3a6ea5,#4f88c0); border-radius:6px;
  display:flex; align-items:center; justify-content:center; box-shadow:0 14px 30px rgba(0,0,0,.18);
}
.envelope-body img { width:120px; height:120px; border-radius:50%; border:5px solid #fff; object-fit:cover; box-shadow:0 6px 16px rgba(0,0,0,.25); z-index:2; }
.envelope-flap {
  position:absolute; top:-2px; left:0; width:0; height:0; z-index:1;
  border-left:140px solid transparent; border-right:140px solid transparent;
  border-top:90px solid #2f5a86; filter:brightness(.9);
}
.site-info {
  max-width:640px; margin:0 auto; padding:22px 26px; border-radius:14px;
  background:var(--pz-card2); border:1px solid var(--pz-border); box-shadow:var(--pz-shadow);
}
.site-info-title { font-size:18px; font-weight:700; margin-bottom:12px; }
.site-info .row { display:flex; gap:10px; padding:9px 0; border-bottom:1px dashed var(--pz-border); font-size:14px; }
.site-info .row label { color:var(--pz-grey); min-width:78px; }
.site-info .row .val { color:var(--pz-font); overflow-wrap:anywhere; }
.site-info .row img { width:28px; height:28px; border-radius:50%; object-fit:cover; vertical-align:middle; }
.site-friends-title { font-size:18px; font-weight:700; margin:36px 0 18px; }

/* ===== 曲乐：poetize 折叠面板 ===== */
.pz-collapse {
  border: 1px solid var(--pz-border); border-radius: 14px;
  background: var(--pz-card); box-shadow: var(--pz-shadow);
  overflow: hidden; margin-bottom: 20px;
}
.pz-collapse-item + .pz-collapse-item { border-top: 1px solid var(--pz-border); }
.pz-collapse-title {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer;
  font-size: 18px; font-weight: 700; color: var(--pz-font);
  user-select: none;
}
.pz-collapse-title:hover { background: var(--pz-border); }
.pz-collapse-bar { width: 4px; height: 18px; background: var(--pz-theme, #425AEF); border-radius: 2px; flex: 0 0 4px; }
.pz-collapse-arrow { margin-left: auto; transition: transform .3s; color: var(--pz-grey); }
.pz-collapse-item.collapsed .pz-collapse-arrow { transform: rotate(-180deg); }
.pz-collapse-item.collapsed .pz-collapse-body { display: none; }
.pz-collapse-body { padding: 6px 20px 22px; }

/* ===== 友链：本站信息微调 ===== */
.site-info-title { display: flex; align-items: center; gap: 8px; }
.site-info-title::before { content: ''; width: 4px; height: 18px; background: linear-gradient(180deg, var(--pz-red, #ff4b2b), var(--pz-red2, #ff416c)); border-radius: 2px; }
/* ===== 百宝箱页：随内容自适应 + 浏览器原生滚动（去掉 el-scrollbar 内嵌滚动条）===== */
/* 页面容器不再锁死 100vh，内容多高就多高，由浏览器原生滚动条滚动 */
#app { height: auto !important; }
#app .el-scrollbar { height: auto !important; }
#app .el-scrollbar__wrap { overflow: visible !important; height: auto !important; }
#app .el-scrollbar__bar { display: none !important; }

/* 分区 hero 在手机/窄屏下自适应 */
@media (max-width: 700px) {
  .pz-section-hero { height: 130px !important; margin-bottom: 20px; }
  .pz-section-hero-title { left: 20px; top: 18px; }
  .pz-section-hero-title .main { font-size: 24px; }
  .pz-section-hero-title .desc { font-size: 13px; }
  .pz-douban { font-size: 18px; margin: 4px 0 16px; }
  .pz-collapse-title { font-size: 16px; padding: 14px 16px; }
  .pz-collapse-body { padding: 4px 14px 16px; }
  .m-item { width: 90px; }
  .m-cover { width: 88px; height: 88px; }
  .music-grid { gap: 18px; }
  .site-info { padding: 16px 18px; }
}
/* ===== 友链表单优化：填满一行、描述换行、头像占位美化 ===== */
.friend-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.friend-item { padding: 16px 18px; min-height: 92px; }
.friend-avatar, .friend-avatar-empty { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; }
.friend-avatar-empty { background: linear-gradient(135deg, #425AEF, #7a6ff0); color: #fff; font-size: 24px; }
.friend-name { font-size: 17px; }
.friend-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }