* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,"PingFang SC","Microsoft YaHei",Arial,sans-serif; background:#f5f6f8; color:#222; line-height:1.6; }
a { color:#2e6df6; text-decoration:none; }
a:hover { text-decoration:underline; }
.nav { background:#fff; border-bottom:1px solid #e8e8e8; position:sticky; top:0; z-index:10; }
.nav-inner { max-width:1080px; margin:0 auto; padding:0 16px; height:56px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-size:19px; font-weight:700; color:#111; }
.nav nav { display:flex; align-items:center; gap:16px; font-size:14px; }
.nav .user { color:#666; }
.vip { background:#ffe9c2; color:#b26a00; font-style:normal; font-size:12px; padding:1px 7px; border-radius:10px; margin-left:4px; }
.novip { background:#eee; color:#999; font-style:normal; font-size:12px; padding:1px 7px; border-radius:10px; margin-left:4px; }
.btn-mini { background:#2e6df6; color:#fff !important; padding:5px 12px; border-radius:6px; font-size:13px; }
.container { max-width:1080px; margin:24px auto; padding:0 16px; min-height:60vh; }
.card { background:#fff; border-radius:10px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,.06); }
.card + .card { margin-top:16px; }
h1.page-title { font-size:22px; margin-bottom:18px; }
h2 { font-size:17px; margin-bottom:12px; }
.form-row { margin-bottom:14px; }
.form-row label { display:block; font-size:14px; color:#555; margin-bottom:6px; }
.form-row input, .form-row select { width:100%; padding:9px 12px; border:1px solid #dcdfe6; border-radius:6px; font-size:14px; outline:none; }
.form-row input:focus { border-color:#2e6df6; }
.btn { display:inline-block; background:#2e6df6; color:#fff; border:none; padding:10px 20px; border-radius:6px; font-size:14px; cursor:pointer; }
.btn:hover { opacity:.92; text-decoration:none; }
.btn-block { width:100%; }
.btn-gray { background:#888; }
.btn-sm { padding:6px 12px; font-size:13px; }
.btn-danger { background:#e5484d; }
.alert { padding:10px 14px; border-radius:6px; font-size:14px; margin-bottom:14px; }
.alert-error { background:#fdecec; color:#c0392b; }
.alert-ok { background:#eaf7ee; color:#1a7f37; }
.book-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.book-item { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06); transition:transform .15s; }
.book-item:hover { transform:translateY(-2px); }
.book-cover { height:200px; display:flex; align-items:center; justify-content:center; font-size:40px; color:#fff; font-weight:700; background:linear-gradient(135deg,#5b8def,#3d5afe); }
.book-cover.epub { background:linear-gradient(135deg,#f6a13b,#f56c2d); }
.book-cover.doc, .book-cover.docx { background:linear-gradient(135deg,#4a90e2,#2b6cb0); }
.book-meta { padding:12px; }
.book-meta h3 { font-size:14px; font-weight:600; margin-bottom:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.book-meta p { font-size:12px; color:#888; }
.badge { display:inline-block; font-size:11px; padding:1px 6px; border-radius:4px; background:#eef1f6; color:#667; margin-left:6px; }
.badge.vip-badge { background:#fff3d6; color:#b26a00; }
.empty { text-align:center; color:#999; padding:60px 0; }
.reader-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; flex-wrap:wrap; }
#viewer { background:#fff; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,.06); min-height:70vh; }
#viewer iframe { width:100%; height:78vh; border:none; border-radius:10px; }
.vip-wall { text-align:center; padding:80px 20px; background:#fff; border-radius:10px; }
.vip-wall h2 { font-size:20px; margin-bottom:12px; }
.vip-wall p { color:#777; margin-bottom:20px; }
table.tbl { width:100%; border-collapse:collapse; font-size:14px; }
table.tbl th, table.tbl td { padding:10px 12px; border-bottom:1px solid #eee; text-align:left; }
table.tbl th { background:#fafbfc; color:#555; font-weight:600; }
.foot { text-align:center; color:#aaa; font-size:13px; padding:30px 0; }
/* ===== 视频封面与播放器补充样式（追加到 style.css 末尾）===== */

.book-cover.video { background: linear-gradient(135deg, #a855f7, #7c3aed); }

.video-wrap {
  background: #000;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.video-wrap video {
  width: 100%;
  max-width: 960px;
  max-height: 76vh;
  border-radius: 8px;
  background: #000;
}
.video-tip {
  color: #aaa;
  font-size: 12px;
  margin-top: 12px;
}