/* ===========================================================
   ZhanQun 前台基础样式层（base layer）
   说明：本文件先于「站点模板 CSS」加载，只负责：
         1) 基础重置与排版  2) 骨架默认样式（模板可覆盖）
         3) 移动端适配（带 !important，保证任何模板都能兼容手机）
   =========================================================== */

/* ---------- A. 基础重置 ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { border: 0; }
a { -webkit-tap-highlight-color: transparent; }
ul { margin: 0; }
input, textarea, select, button { font-family: inherit; }

/* ---------- B. 骨架默认样式（低特异性，模板可覆盖） ---------- */

/* 顶部导航容器 */
header.header { position: relative; z-index: 50; }
header.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Logo：上传图则为 <img>，否则为文字 */
.logo { flex-shrink: 0; max-width: 45%; }
.logo a { display: flex; align-items: center; gap: 8px; }
.logo img.logo-img {
    display: block; max-height: 44px; width: auto; max-width: 240px;
    object-fit: contain;
}

.zq-nav-wrap { min-width: 0; }
/* 注意：Tpl::nav() 输出的是 <ul class="nav">，因此选择器直接作用于该 ul 本身 */
.zq-nav-wrap ul.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.zq-nav-wrap .nav li { list-style: none; }
.zq-nav-wrap .nav a { display: block; }

/* 顶部「更多」下拉：菜单超过一行上限时，多出来的栏目收进来 */
.zq-nav-wrap .nav > li.zq-nav-more { position: relative; }
.zq-nav-wrap .nav > li.zq-nav-more > a { cursor: pointer; user-select: none; }
/* 「更多」后面的下拉三角：CSS 绘制，跟随文字颜色；展开时翻转成朝上箭头 */
.zq-nav-wrap .nav > li.zq-nav-more .zq-nav-caret {
    display: inline-block;
    width: 0; height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;   /* 收起：朝下 */
    opacity: .65;
}
.zq-nav-wrap .nav > li.zq-nav-more.open .zq-nav-caret {
    border-top: 0;
    border-bottom: 5px solid currentColor; /* 展开：朝上 */
    opacity: .9;
}
.zq-nav-wrap .nav > li.zq-nav-more > ul {
    /* 展开后按 2 列排布，栏目多时面板不会拉得过长 */
    display: none; position: absolute; top: 100%; left: 0; z-index: 60;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 4px;
    min-width: 320px; max-width: min(520px, calc(100vw - 32px));
    max-height: 62vh; overflow-y: auto;
    margin: 4px 0 0; padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}
.zq-nav-wrap .nav > li.zq-nav-more.open > ul { display: grid; }
.zq-nav-wrap .nav > li.zq-nav-more > ul > li { list-style: none; min-width: 0; }
.zq-nav-wrap .nav > li.zq-nav-more > ul > li > a {
    display: block; padding: 8px 12px;
    font-size: 14px; line-height: 1.6;
    color: #333; text-decoration: none;
    border: 0; border-radius: 6px; background: transparent;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zq-nav-wrap .nav > li.zq-nav-more > ul > li > a:hover,
.zq-nav-wrap .nav > li.zq-nav-more > ul > li.on > a {
    background: rgba(127, 127, 127, .12); color: #111;
}

/* 汉堡按钮（桌面隐藏） */
.zq-nav-toggle {
    display: none;
    width: 40px; height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.zq-nav-toggle span,
.zq-nav-toggle span::before,
.zq-nav-toggle span::after {
    position: absolute;
    left: 50%; width: 18px; height: 2px;
    margin-left: -9px;
    background: currentColor;
    border-radius: 2px;
    opacity: .8;
    transition: transform .22s ease, opacity .18s ease;
}
.zq-nav-toggle span { top: 50%; margin-top: -1px; }
.zq-nav-toggle span::before { content: ""; top: -6px; }
.zq-nav-toggle span::after  { content: ""; top: 6px; }
.zq-nav-toggle.on span { opacity: 0; }
.zq-nav-toggle.on span::before { transform: translateY(6px) rotate(45deg); opacity: .95; }
.zq-nav-toggle.on span::after  { transform: translateY(-6px) rotate(-45deg); opacity: .95; }

/* 主区域 */
.main { display: flex; gap: 20px; align-items: flex-start; }
.main > .content { flex: 1; min-width: 0; }
.main > .sidebar { flex-shrink: 0; }

/* 侧栏公告：顶部第 1 项，黑色细边强调"需要被看见" */
.sidebar .zq-announce { border-left: 3px solid #111; background: #fafafa; }
.sidebar .zq-announce h3 { color: #111; }
.sidebar .zq-announce ul li a { color: #111; }
.sidebar .zq-announce ul li .zq-ann-open { cursor: pointer; }

/* 公告详情弹层：点击无外链的公告时弹出（内容以纯文本写入，不解析 HTML） */
.zq-ann-modal {
    position: fixed; inset: 0; z-index: 999;
    display: flex; align-items: center; justify-content: center; padding: 18px;
}
.zq-ann-modal[hidden] { display: none; }
.zq-ann-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.zq-ann-panel {
    position: relative; width: 100%; max-width: 440px; max-height: 78vh; overflow: auto;
    padding: 22px 24px 20px; border-radius: 14px;
    background: #fff; color: #111; box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.zq-ann-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.zq-ann-panel h4 { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 700; }
.zq-ann-close {
    flex-shrink: 0; margin: -4px -6px 0 0; padding: 0 4px;
    font-size: 24px; line-height: 1; color: inherit; opacity: .5;
    background: transparent; border: 0; cursor: pointer;
}
.zq-ann-close:hover { opacity: 1; }
.zq-ann-time { margin-top: 5px; font-size: 12px; opacity: .5; }
.zq-ann-body {
    margin-top: 12px; font-size: 14px; line-height: 1.9;
    white-space: pre-wrap; word-break: break-word; opacity: .85;
}

/* 内容默认值（模板未定义时兜底） */
.content { word-break: break-word; }
.content h1, .content h2 { line-height: 1.45; }
.list-item { padding: 16px 0; }
.list-item h2 { font-size: 19px; line-height: 1.5; margin: 0 0 6px; }
.list-item h2 a { color: inherit; }
.list-item .meta { font-size: 12.5px; opacity: .65; margin-bottom: 6px; }
.list-item p { margin: 0; font-size: 14px; line-height: 1.8; opacity: .8; }

.article .body { font-size: 16px; line-height: 1.95; overflow-wrap: break-word; }
.article .body p { margin: 0 0 15px; }
.article .body img { max-width: 100%; height: auto; border-radius: 6px; }
.article .body h2, .article .body h3 { margin: 22px 0 12px; line-height: 1.5; }
.article .body ul, .article .body ol { margin: 0 0 15px; padding-left: 22px; }
.article .body li { margin-bottom: 6px; }
.article .body blockquote {
    margin: 0 0 15px; padding: 10px 14px;
    border-left: 3px solid rgba(127, 127, 127, .35);
    background: rgba(127, 127, 127, .06);
}

.box ul { list-style: none; padding: 0; margin: 0; }
.box li { padding: 6px 0; font-size: 14px; }
.tags a, .friend-links a { display: inline-block; margin: 3px 6px 3px 0; }

/* 标签中心 /tags/：全部标签以药丸按钮排布 */
.zq-tag-center { margin-bottom: 4px; }
.zq-tag-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin: 0 0 16px;
}
.zq-tag-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.zq-tag-head span { font-size: 12.5px; opacity: .6; }
.zq-tags-all a {
    margin: 0 8px 10px 0; padding: 6px 13px;
    border: 1px solid rgba(127, 127, 127, .3); border-radius: 15px;
    font-size: 13.5px; color: inherit; text-decoration: none;
}
.zq-tags-all a:hover { background: rgba(127, 127, 127, .12); border-color: currentColor; }
.zq-tag-empty { margin: 0; font-size: 14px; opacity: .7; }

/* 站点地图 /sitemap/ */
.zq-sitemap { margin-bottom: 4px; }
.zq-map-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin: 0 0 16px;
}
.zq-map-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.zq-map-head span { font-size: 12.5px; opacity: .6; }
.zq-map-sec { margin: 0 0 22px; }
.zq-map-sec > h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.zq-map-links { list-style: none; margin: 0; padding: 0; }
.zq-map-links li {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding: 6px 0;
    border-bottom: 1px dashed rgba(127, 127, 127, .14);
}
.zq-map-links li:last-child { border-bottom: 0; }
.zq-map-links a {
    flex: 1; min-width: 0;
    color: inherit; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zq-map-links a:hover { text-decoration: underline; }
.zq-map-links span { font-size: 12px; opacity: .5; flex-shrink: 0; }
/* 分类区两列排布，栏目多时页面不会太长 */
.zq-map-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.zq-map-cat { margin: 0 0 16px; }
.zq-map-cat h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.zq-map-cat h3 a { color: inherit; text-decoration: none; }
.zq-map-cat h3 a:hover { text-decoration: underline; }
.zq-map-empty { margin: 0; font-size: 13px; opacity: .55; }

/* 侧栏「查看全部标签」等更多链接 */
.zq-box-more { margin: 10px 0 0; font-size: 12.5px; }
.zq-box-more a {
    color: inherit; opacity: .7; text-decoration: none;
    border-bottom: 1px dashed rgba(127, 127, 127, .5);
}
.zq-box-more a:hover { opacity: 1; border-bottom-style: solid; }

/* 分页 */
.pager { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pager a {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: 6px;
    color: inherit;
    font-size: 14px;
    opacity: .85;
}
.pager a.active { opacity: 1; font-weight: 600; border-color: currentColor; }

/* 相关推荐 / 上下篇 */
.related-box ul { list-style: none; padding: 0; margin: 0; }
.related-box li { padding: 5px 0; font-size: 14.5px; }

footer.footer { text-align: center; }
footer.footer .friend-links { margin-bottom: 8px; }
footer.footer a { margin: 0 6px; }
/* 通用页面链接（隐私政策 / 关于我们 …） */
footer.footer .footer-pages { margin: 6px 0 10px; line-height: 2; }
footer.footer .footer-pages a { margin: 0 8px; }
.page-content h2 { font-size: 21px; margin: 0 0 14px; }
.page-content h3 { font-size: 17px; margin: 18px 0 8px; }
.page-content p { margin: 0 0 12px; line-height: 1.9; }

/* 顶部搜索框 */
.zq-search { display: flex; align-items: center; gap: 0; margin: 0 0 0 auto; flex-shrink: 0; }
.zq-search input {
    width: 168px;
    min-width: 0;                 /* 允许被压缩，避免把按钮挤成竖排 */
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1.4;
    color: inherit;
    background: rgba(127, 127, 127, .08);
    border: 1px solid rgba(127, 127, 127, .28);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    outline: none;
}
.zq-search input::placeholder { color: inherit; opacity: .5; }
.zq-search input:focus { border-color: currentColor; }
.zq-search button {
    flex: 0 0 auto;               /* 按钮按内容宽，不参与压缩 */
    white-space: nowrap;          /* “搜索”两个字永不换行竖排 */
    padding: 7px 14px;
    font-size: 13px;
    line-height: 1.4;
    color: inherit;
    cursor: pointer;
    background: rgba(127, 127, 127, .12);
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: 0 6px 6px 0;
}
.zq-search button:hover { background: rgba(127, 127, 127, .22); }

/* 首页：轮播下方「独家推荐 / 热门信息」双栏 */
.zq-home-blocks { display: flex; gap: 16px; margin: 0 0 18px; }
.zq-home-block {
    flex: 1 1 0; min-width: 0; padding: 14px 16px 10px;
    border: 1px solid rgba(127, 127, 127, .22); border-radius: 12px;
    background: rgba(127, 127, 127, .03);
}
.zq-home-block h2 {
    display: flex; align-items: center; gap: 7px;
    margin: 0 0 8px; font-size: 16px; font-weight: 800; letter-spacing: 1px;
}
.zq-home-block h2::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: #111; }
.zq-home-block ul { list-style: none; margin: 0; padding: 0; }
.zq-home-block li {
    display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 14px;
    border-bottom: 1px dashed rgba(127, 127, 127, .16);
}
.zq-home-block li:last-child { border-bottom: 0; padding-bottom: 2px; }
.zq-home-block li a {
    flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: inherit; text-decoration: none;
}
.zq-home-block li a:hover { text-decoration: underline; }
.zq-home-block li span { flex-shrink: 0; font-size: 12px; opacity: .5; }

/* 首页栏目调用 */
.cat-blocks { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.cat-block-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(127, 127, 127, .18);
}
.cat-block-head h2 { font-size: 18px; margin: 0; }
.cat-block-head h2 a { color: inherit; }
.cat-block-more { font-size: 13px; opacity: .7; }
.cat-block-list { list-style: none; margin: 0; padding: 0; }
.cat-block-list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(127, 127, 127, .16);
    font-size: 15px;
}
.cat-block-list li a { color: inherit; flex: 1; min-width: 0; }
.cat-block-list li span { font-size: 12.5px; opacity: .55; flex-shrink: 0; }

/* 海报入口 */
.zq-poster-link { margin: 16px 0 0; font-size: 14px; }
.zq-poster-link a {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: 20px;
    color: inherit;
    opacity: .85;
}
.zq-poster-link a:hover { opacity: 1; background: rgba(127, 127, 127, .08); }

/* 评论区 */
.zq-comments { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(127, 127, 127, .18); }
.zq-comments-title { font-size: 17px; margin: 0 0 14px; }
.zq-comments-title span { font-size: 13px; opacity: .6; font-weight: 400; }
.zq-comments-tip { font-size: 14px; opacity: .65; margin: 6px 0; }
.zq-comments-msg {
    margin: 0 0 12px; padding: 9px 12px;
    font-size: 13.5px;
    border: 1px solid rgba(37, 99, 235, .35);
    background: rgba(37, 99, 235, .08);
    border-radius: 6px;
}
.zq-comment-form { margin-bottom: 18px; }
.zq-comment-row { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.zq-comment-form input, .zq-comment-form textarea {
    width: 100%;
    padding: 9px 11px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    color: inherit;
    background: rgba(127, 127, 127, .06);
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: 6px;
    outline: none;
    resize: vertical;
}
.zq-comment-form input { max-width: 260px; }
.zq-comment-form button {
    padding: 8px 20px;
    font-size: 14px;
    color: inherit;
    cursor: pointer;
    background: rgba(127, 127, 127, .14);
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: 6px;
}
.zq-comment-form button:hover { background: rgba(127, 127, 127, .24); }
.zq-comment-note { font-size: 12.5px; opacity: .6; }
.zq-comment-list { list-style: none; margin: 0; padding: 0; }
.zq-comment-list li { padding: 12px 0; border-bottom: 1px dashed rgba(127, 127, 127, .16); }
.zq-comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.zq-comment-head b { font-size: 14px; }
.zq-comment-head span { font-size: 12px; opacity: .55; }
.zq-comment-body { font-size: 14.5px; line-height: 1.8; opacity: .88; }

/* 评论列表滚动区：最多展示 20 条，超出在区域内滚动，不把正文挤到很下面 */
.zq-comment-scroll {
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.zq-comment-scroll::-webkit-scrollbar { width: 6px; }
.zq-comment-scroll::-webkit-scrollbar-thumb {
    background: rgba(127, 127, 127, .35); border-radius: 3px;
}
.zq-comment-scroll::-webkit-scrollbar-thumb:hover { background: rgba(127, 127, 127, .55); }
.zq-comments-more { margin: 10px 0 0; font-size: 12.5px; opacity: .6; }

/* 侧栏「热门评论」 */
.zq-hot-comments ul { list-style: none; margin: 0; padding: 0; }
.zq-hot-comments li {
    padding: 9px 0;
    border-bottom: 1px dashed rgba(127, 127, 127, .16);
}
.zq-hot-comments li:last-child { border-bottom: 0; }
.zq-hot-comments .zq-hc-title {
    display: block;
    font-size: 13.5px; font-weight: 600;
    color: inherit; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zq-hot-comments .zq-hc-title:hover { text-decoration: underline; }
.zq-hot-comments .zq-hc-text {
    margin: 3px 0 2px;
    font-size: 13px; line-height: 1.6; opacity: .8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.zq-hot-comments .zq-hc-meta { font-size: 12px; opacity: .5; }
.zq-hot-comments .zq-hc-empty { opacity: .6; }

/* 会员入口 / 会员页 */
.zq-member { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-left: 4px; }
.zq-member a { color: inherit; opacity: .75; white-space: nowrap; }
.zq-member a:hover { opacity: 1; text-decoration: underline; }
.zq-member .zq-member-hi {
    font-weight: 600; opacity: 1; padding: 3px 10px; border-radius: 14px;
    background: rgba(127, 127, 127, .12);
}
.zq-member-page { max-width: 460px; margin: 0 auto; }
.zq-member-title { font-size: 20px; margin: 0 0 16px; }
.zq-member-sub { font-size: 15px; margin: 22px 0 10px; }
.zq-member-msg {
    padding: 10px 13px; margin-bottom: 16px; font-size: 13.5px; border-radius: 10px;
    background: #fafafa; border: 1px solid #e6e6e6; border-left: 3px solid #111; color: #222;
}

/* 认证页容器（登录 / 注册 / 找回 / 重置）：整屏居中，该页不输出右侧栏 */
.zq-auth-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 56vh; padding: 34px 0 10px; border-radius: 16px;
    background:
        radial-gradient(760px 340px at 50% -12%, rgba(15, 23, 42, .07), rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, rgba(127, 127, 127, .05), rgba(127, 127, 127, 0) 62%);
}
.zq-auth-shell { width: 100%; max-width: 440px; }

/* 登录 / 注册卡片（黑白配色，不引入任何彩色） */
.zq-auth-card {
    position: relative; overflow: hidden;
    padding: 36px 34px 30px;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .05);
}
/* 顶部黑色细条：增加层次 */
.zq-auth-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #111;
}
.zq-auth-head { text-align: center; margin-bottom: 24px; }
/* 圆形图标徽标 */
.zq-auth-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%;
    background: linear-gradient(180deg, #2b2b2b, #000); color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}
.zq-auth-badge svg { width: 24px; height: 24px; fill: currentColor; }
.zq-auth-head .zq-member-title {
    font-size: 22px; margin: 0 0 6px; font-weight: 800;
    letter-spacing: 1.5px; color: #111;
}
.zq-auth-head p { margin: 0; font-size: 13px; opacity: .62; }

/* 忘记密码等辅助链接：右对齐、虚线下划线 */
.zq-auth-tools { display: flex; justify-content: flex-end; margin: -6px 0 0; font-size: 13px; }
.zq-auth-tools a {
    font-weight: 600; color: #111; text-decoration: none; opacity: .72;
    border-bottom: 1px dashed rgba(127, 127, 127, .5); padding-bottom: 1px;
}
.zq-auth-tools a:hover { opacity: 1; border-bottom-style: solid; }

/* 卡片下方「返回首页」 */
.zq-auth-foot { margin: 16px 0 0; text-align: center; font-size: 13px; opacity: .62; }
.zq-auth-foot a { color: inherit; text-decoration: none; }
.zq-auth-foot a:hover { text-decoration: underline; }

.zq-member-form .zq-member-row { margin-top: 20px; margin-bottom: 0; }
.zq-member-form .zq-field { margin-bottom: 15px; }
.zq-member-form label,
.zq-member-form .zq-field > label {
    display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
    opacity: .72; margin-bottom: 7px;
}
.zq-field { margin-bottom: 15px; }
.zq-input-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.zq-input-icon { position: absolute; left: 13px; display: flex; opacity: .42; pointer-events: none; }
.zq-input-icon svg { width: 17px; height: 17px; fill: currentColor; }
.zq-input-wrap input {
    flex: 1 1 auto; min-width: 0;
    width: 100%; box-sizing: border-box; padding: 11px 14px 11px 40px; font-size: 14.5px;
    border: 1px solid #e0e0e0; border-radius: 10px;
    background: #fff; color: #111;
    transition: border-color .18s, box-shadow .18s;
}
.zq-input-wrap input:hover { border-color: #c4c4c4; }
.zq-input-wrap input::placeholder { color: rgba(127, 127, 127, .5); }
.zq-input-wrap input:focus {
    outline: none; border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .07);
}
/* 浏览器自动填充会强行盖掉背景与文字色，是「密码被挡住看不见」的主因 */
.zq-input-wrap input:-webkit-autofill,
.zq-input-wrap input:-webkit-autofill:hover,
.zq-input-wrap input:-webkit-autofill:focus,
.zq-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #111;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    caret-color: #111;
    transition: background-color 9999s ease-in-out 0s;
}
/* 选中密码时的反色高亮，避免选区颜色与被选文字同色 */
.zq-member-form input::selection { background: #111; color: #fff; }
.zq-member-form input::-moz-selection { background: #111; color: #fff; }
/* 小图标按钮：小眼睛 / 换验证码，统一为输入框旁的独立方块按钮 */
.zq-pwd-btn, .zq-cap-refresh {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border-radius: 10px;
    border: 1px solid #e0e0e0; background: #ebebeb; color: inherit;
    opacity: .8; cursor: pointer;
    transition: opacity .15s, background .15s, border-color .15s;
}
.zq-pwd-btn svg, .zq-cap-refresh svg { width: 17px; height: 17px; fill: currentColor; }
.zq-pwd-btn:hover, .zq-cap-refresh:hover { opacity: 1; background: #dcdcdc; border-color: #111; }
.zq-pwd-btn:focus-visible, .zq-cap-refresh:focus-visible {
    outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(0, 0, 0, .07);
}
/* 小眼睛：黑底白图标，更醒目 */
.zq-input-wrap .zq-pwd-btn {
    position: static; flex: 0 0 40px;
    background: #000; border-color: #000; color: #fff; opacity: 1;
}
.zq-input-wrap .zq-pwd-btn:hover { background: #333; border-color: #000; }

/* 验证码行 */
.zq-captcha { display: flex; align-items: center; gap: 8px; }
.zq-captcha .zq-input-wrap { flex: 1 1 auto; min-width: 0; }
.zq-captcha-img {
    width: 112px; height: 40px; flex: 0 0 112px; display: block; cursor: pointer;
    border: 1px solid #e0e0e0; border-radius: 10px; background: #f5f5f5;
    transition: border-color .15s;
}
.zq-captcha-img:hover { border-color: #c4c4c4; }
.zq-captcha .zq-cap-refresh { position: static; flex: 0 0 40px; }

/* 提交按钮 */
.zq-member-form .zq-member-row button {
    width: 100%; height: 46px; padding: 0; cursor: pointer;
    font-size: 15.5px; font-weight: 600; letter-spacing: 3px; color: #fff;
    background: linear-gradient(180deg, #1c1c1c, #000);
    border: 0; border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transition: background .18s, box-shadow .18s, transform .1s;
}
.zq-member-form .zq-member-row button:hover {
    background: linear-gradient(180deg, #2e2e2e, #111);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}
.zq-member-form .zq-member-row button:active {
    transform: translateY(1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
/* 底部切换：胶囊按钮，hover 反色 */
.zq-member-switch { margin-top: 18px; font-size: 13.5px; opacity: .85; text-align: center; }
.zq-member-switch a {
    display: inline-block; margin-left: 6px;
    color: #111; font-weight: 600; text-decoration: none;
    padding: 6px 16px; border-radius: 999px; border: 1px solid #111; background: #fff;
    transition: background .15s, color .15s;
}
.zq-member-switch a:hover { background: #111; color: #fff; }
.zq-member-card {
    padding: 16px; border: 1px solid rgba(127, 127, 127, .16); border-radius: 10px;
    background: rgba(127, 127, 127, .04);
}
.zq-member-card p { margin: 0 0 8px; font-size: 14px; }
.zq-member-tag {
    display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px;
    background: rgba(0, 0, 0, .08); color: #333;
}
.zq-member-meta { font-size: 13px; opacity: .65; }
.zq-member-btn {
    display: inline-block; margin-top: 6px; padding: 6px 16px; font-size: 13.5px;
    border: 1px solid rgba(127, 127, 127, .3); border-radius: 18px; color: inherit;
}
.zq-member-comments { list-style: none; margin: 0; padding: 0; }
.zq-member-comments li {
    padding: 10px 0; border-bottom: 1px dashed rgba(127, 127, 127, .2); font-size: 14px;
}
.zq-member-comments p { margin: 4px 0 0; font-size: 13px; opacity: .7; }
.zq-member-cmt-state {
    font-size: 12px; padding: 1px 7px; border-radius: 9px;
    background: rgba(127, 127, 127, .14); margin-right: 4px;
}

/* 会员：按钮组 / 收藏列表 */
.zq-member-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.zq-member-btn { margin-top: 0; }
.zq-member-btn-plain { background: rgba(127, 127, 127, .06); }
.zq-member-num {
    display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
    font-size: 12px; line-height: 18px; text-align: center; border-radius: 9px;
    background: #111; color: #fff;
}
.zq-member-count {
    margin-left: 8px; padding: 1px 8px; font-size: 12.5px; font-weight: 400;
    border-radius: 10px; background: rgba(127, 127, 127, .14);
}
.zq-member-favorites { list-style: none; margin: 0; padding: 0; }
.zq-member-favorites li {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
    padding: 11px 0; border-bottom: 1px dashed rgba(127, 127, 127, .2); font-size: 14px;
}
.zq-member-favorites li > a:first-child { flex: 1 1 220px; min-width: 0; }
.zq-fav-time { font-size: 12.5px; opacity: .6; }
.zq-fav-del {
    padding: 3px 11px; font-size: 12.5px; color: inherit; cursor: pointer;
    border: 1px solid rgba(127, 127, 127, .3); border-radius: 14px; background: transparent;
}
.zq-fav-del:hover { border-color: #dc2626; color: #dc2626; }

/* 文章底部：收藏 + 分享操作条 */
.zq-actions-wrap { margin-top: 22px; }
.zq-actions {
    position: relative;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
    padding: 12px 14px; font-size: 13.5px;
    border: 1px dashed rgba(127, 127, 127, .3); border-radius: 10px;
    background: rgba(127, 127, 127, .03);
}
.zq-act {
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 5px 13px; font-size: 13.5px; color: inherit; white-space: nowrap;
    border: 1px solid rgba(127, 127, 127, .3); border-radius: 16px; background: #fff;
    text-decoration: none !important; font-family: inherit;
}
.zq-act:hover { border-color: #2563eb; color: #2563eb; }
.zq-act-fav.is-on { border-color: #f59e0b; color: #b45309; background: #fffbeb; }
/* 海外平台：hover 用各自品牌色区分 */
.zq-act.zq-act-fb:hover { border-color: #1877f2; color: #1877f2; }
.zq-act.zq-act-x:hover  { border-color: #111827; color: #111827; }
.zq-act.zq-act-in:hover { border-color: #0a66c2; color: #0a66c2; }
.zq-act.zq-act-wa:hover { border-color: #25d366; color: #128c7e; }
.zq-act.zq-act-tg:hover { border-color: #229ed9; color: #229ed9; }
.zq-act.zq-act-rd:hover { border-color: #ff4500; color: #ff4500; }
.zq-act.zq-act-pi:hover { border-color: #e60023; color: #e60023; }
.zq-actions-split { width: 1px; height: 18px; background: rgba(127, 127, 127, .25); }
.zq-actions-label { font-size: 13px; opacity: .6; }
.zq-actions-tip { margin-left: 2px; font-size: 12.5px; color: #16a34a; }

/* 微信二维码弹层 */
.zq-wechat-pop {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .55);
}
.zq-wechat-pop[hidden] { display: none; }
.zq-wechat-inner {
    position: relative;
    padding: 18px; border-radius: 12px; background: #fff; text-align: center;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .28);
}
.zq-wechat-inner img { width: 180px; height: 180px; display: block; }
.zq-wechat-inner p { margin: 10px 0 0; font-size: 13px; color: #64748b; }
/* 关闭方式：右上角 × / 点击遮罩空白处 / Esc */
.zq-wechat-close {
    position: absolute; top: -12px; right: -12px;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0;
    font-size: 20px; line-height: 1; color: #475569; cursor: pointer;
    border: 1px solid rgba(127, 127, 127, .3); border-radius: 50%;
    background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
.zq-wechat-close:hover { border-color: #dc2626; color: #dc2626; }
.zq-wechat-tip { margin-top: 6px !important; font-size: 12px !important; opacity: .65; }

/* 关键词聚合 */
.kw-tags { margin: 18px 0; font-size: 13.5px; }
.kw-tags span { opacity: .6; margin-right: 6px; }
.kw-tags a {
    display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; font-size: 13px;
    border: 1px solid rgba(127, 127, 127, .25); border-radius: 14px; color: inherit; opacity: .85;
}
.kw-tags a:hover { opacity: 1; background: rgba(127, 127, 127, .08); }
.kw-related {
    margin-bottom: 16px; padding: 14px 16px; border-radius: 10px;
    background: rgba(127, 127, 127, .05);
}
.kw-related h3 { margin: 0 0 8px; font-size: 15px; }
.zq-comment-badge {
    font-size: 11px !important; padding: 1px 6px; border-radius: 8px;
    background: #dbeafe; color: #1d4ed8; opacity: 1 !important;
}
.zq-comment-user { font-size: 13.5px; opacity: .8; }
.zq-comment-user b { opacity: 1; }
.zq-comment-user a { margin-left: 8px; font-size: 13px; color: #2563eb; }
.zq-comment-login { margin-left: 8px; font-size: 13px; }
.zq-comment-login a { color: #2563eb; }

/* 右下角「回到顶部」悬浮按钮：滚动超过一屏后出现 */
.zq-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; cursor: pointer;
    font-size: 20px; line-height: 1; color: #333;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(127, 127, 127, .28);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
    opacity: .88;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.zq-top:hover { opacity: 1; background: #fff; transform: translateY(-2px); }
.zq-top:active { transform: translateY(0); }
.zq-top:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.zq-top[hidden] { display: none; }

/* 隐私提示悬浮条 */
.zq-privacy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    padding: 0 16px; background: rgba(17, 17, 17, .95); color: #f5f5f5;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, .2);
    transform: translateY(100%);
    transition: transform .26s ease;
}
.zq-privacy.zq-privacy-on { transform: translateY(0); }
.zq-privacy-inner {
    max-width: 1140px; margin: 0 auto; padding: 13px 0;
    display: flex; align-items: center; gap: 18px;
}
.zq-privacy-text {
    flex: 1; min-width: 0; margin: 0;
    font-size: 13.5px; line-height: 1.75; color: #e8e8e8;
}
.zq-privacy-link {
    color: #e8e8e8; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.zq-privacy-link:hover { color: #fff; }
.zq-privacy-btns { display: flex; gap: 10px; flex-shrink: 0; }
.zq-privacy-btns button {
    padding: 7px 20px; font-size: 13.5px; line-height: 1.5; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .32); border-radius: 6px;
    background: transparent; color: #f5f5f5; font-family: inherit;
    transition: background .15s, border-color .15s;
}
.zq-privacy-btns button:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); }
.zq-privacy-btns .zq-privacy-agree { background: #fff; border-color: #fff; color: #111; }
.zq-privacy-btns .zq-privacy-agree:hover { background: #dcdcdc; border-color: #dcdcdc; }

/* ---------- C. 移动端适配（≤860px，!important 保证生效） ---------- */
@media (max-width: 860px) {
    /* 容器 */
    .wrap { max-width: 100% !important; padding-left: 12px !important; padding-right: 12px !important; }
    header.header .wrap { min-height: 56px !important; height: auto !important; padding-top: 10px !important; padding-bottom: 10px !important; }

    /* 顶部：logo 左 / 汉堡右 */
    .logo { font-size: 20px !important; line-height: 1.3 !important; }
    header.header .logo a { display: inline-block; max-width: calc(100vw - 90px); }
    .logo img.logo-img { max-height: 34px !important; max-width: calc(100vw - 110px) !important; }

    .zq-nav-toggle { display: block !important; }

    /* 导航：默认收起，展开为下拉面板 */
    .zq-nav-wrap { display: none !important; }
    .zq-nav-wrap.open {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        flex-basis: 100% !important;
        background: #fff;
        color: #333;
        border-bottom: 1px solid rgba(0, 0, 0, .08);
        box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .zq-nav-wrap.open ul.nav { flex-direction: column !important; gap: 0 !important; padding: 6px 0 !important; }
    .zq-nav-wrap.open .nav li { width: 100% !important; }
    .zq-nav-wrap.open .nav a {
        display: block !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, .05) !important;
        background: transparent !important;
        color: #333 !important;
    }
    .zq-nav-wrap.open .nav a:hover,
    .zq-nav-wrap.open .nav li.on a {
        background: rgba(0, 0, 0, .04) !important;
        color: #1a1a1a !important;
    }
    /* 汉堡菜单展开时不再折叠：隐藏「更多」按钮，把里面的栏目直接列出来 */
    .zq-nav-wrap.open .nav > li.zq-nav-more > a { display: none !important; }
    .zq-nav-wrap.open .nav > li.zq-nav-more > ul {
        display: block !important; position: static !important;
        min-width: 0 !important; max-width: none !important;
        max-height: none !important; overflow: visible !important;
        margin: 0 !important; padding: 0 !important;
        border: 0 !important; border-radius: 0 !important;
        background: transparent !important; box-shadow: none !important;
    }
    .zq-nav-wrap.open .nav > li.zq-nav-more > ul > li > a {
        padding: 12px 16px !important;
        font-size: 15px !important;
        color: #333 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 0, 0, .05) !important;
        border-radius: 0 !important;
        white-space: normal !important;
    }

    /* 主体：单列堆叠 */
    .main {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        margin: 14px auto !important;
    }
    .main > .content,
    .main > .sidebar,
    .main > aside { width: 100% !important; max-width: 100% !important; flex: none !important; }
    .main > .sidebar { order: 2 !important; }

    /* 内边距收窄 */
    .content { padding: 16px 14px !important; }
    .box { padding: 14px !important; margin-bottom: 12px !important; }

    /* 字号 */
    .article h1 { font-size: 21px !important; line-height: 1.45 !important; }
    .article .meta { font-size: 12.5px !important; }
    .article .body { font-size: 16px !important; line-height: 1.9 !important; }
    .list-item { padding: 14px 0 !important; }

    /* 会员入口：移动端紧凑排布 */
    .zq-member { margin-left: 0 !important; gap: 8px !important; font-size: 12.5px !important; }
    .zq-member-page { max-width: 100% !important; }
    .zq-auth-card { padding: 24px 18px 20px !important; }
    /* 认证页：移动端去掉居中背景，卡片自然撑满 */
    .zq-auth-wrap { min-height: 0; padding: 12px 0 0; border-radius: 0; background: none; }
    .zq-auth-shell { max-width: 100%; }
    .zq-member-favorites li > a:first-child { flex-basis: 100% !important; }

    /* 收藏 / 分享操作条：紧凑排布 */
    .zq-actions { padding: 10px 12px !important; gap: 8px !important; }
    .zq-act { padding: 5px 11px !important; font-size: 13px !important; }
    .zq-actions-label { display: none !important; }

    /* 隐私条：窄屏改为上下堆叠，按钮靠右 */
    .zq-privacy { padding: 0 12px !important; }
    .zq-privacy-inner {
        flex-direction: column !important; align-items: stretch !important;
        gap: 10px !important; padding: 12px 0 !important;
    }
    .zq-privacy-text { font-size: 13px !important; line-height: 1.7 !important; }
    .zq-privacy-link { white-space: normal !important; }
    .zq-privacy-btns { justify-content: flex-end !important; }
    .zq-privacy-btns button { padding: 8px 22px !important; }
    .list-item h2 { font-size: 17px !important; }
    .list-item p { font-size: 14px !important; }

    /* 长内容防溢出 */
    .content img, .article .body img { max-width: 100% !important; height: auto !important; }
    .content table { display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    .content pre { overflow-x: auto !important; }
    .tags a, .friend-links a { font-size: 13px !important; }
    /* 标签中心：窄屏缩小标题与标签按钮 */
    .zq-tag-head h1 { font-size: 19px !important; }
    /* 站点地图：窄屏标题缩小、分类区改单列 */
    .zq-map-head h1 { font-size: 19px !important; }
    .zq-map-sec > h2 { font-size: 16px !important; }
    .zq-map-cats { grid-template-columns: 1fr !important; }
    .zq-tag-head span { font-size: 12px !important; }
    .zq-tags-all a { padding: 5px 11px !important; font-size: 13px !important; margin: 0 7px 9px 0 !important; }

    /* 页脚 */
    footer.footer { padding: 20px 0 !important; margin-top: 20px !important; font-size: 12.5px !important; }

    /* 搜索框：移动端独占一行，输入框自适应，按钮保持一行文字 */
    .zq-search {
        order: 3 !important; flex-basis: 100% !important;
        margin: 8px 0 0 !important; max-width: 100% !important;
    }
    .zq-search input {
        width: auto !important; max-width: none !important;
        flex: 1 1 auto !important; min-width: 0 !important;
    }
    .zq-search button {
        flex: 0 0 auto !important; white-space: nowrap !important;
        padding: 7px 12px !important;
    }
    /* 回到顶部按钮：手机上稍微收小，避免挡内容 */
    .zq-top { right: 14px !important; width: 40px !important; height: 40px !important; font-size: 18px !important; }

    /* 首页推荐双栏：窄屏上下堆叠 */
    .zq-home-blocks { flex-direction: column !important; gap: 12px !important; margin: 0 0 14px !important; }
    .zq-home-block { padding: 12px 13px 8px !important; }

    /* 公告弹层：窄屏更贴边、可滚动区域更高 */
    .zq-ann-modal { padding: 12px !important; }
    .zq-ann-panel { padding: 18px 18px 16px !important; max-height: 84vh !important; }
    .zq-ann-panel h4 { font-size: 16px !important; }
    .zq-comment-form input { max-width: 100% !important; }
    /* 手机端评论区滚动区收窄，正文更容易触达 */
    .zq-comment-scroll { max-height: 320px !important; }
}

/* ---------- D. 小屏手机（≤420px） ---------- */
@media (max-width: 420px) {
    .logo { font-size: 18px !important; }
    .article h1 { font-size: 19px !important; }
    .article .body { font-size: 15.5px !important; }
    .list-item h2 { font-size: 16px !important; }
    .content { padding: 14px 12px !important; }
    .pager a { padding: 6px 11px !important; font-size: 13.5px !important; }
}

/* ---------- E. 留言专区（/guestbook） ---------- */
.zq-guest-page { max-width: 620px; margin: 0 auto; }
.zq-guest-card {
    position: relative; overflow: hidden;
    padding: 30px 28px 26px;
    border: 1px solid #e8e8e8; border-radius: 18px; background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .07);
}
.zq-guest-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #111;
}
.zq-guest-tip { font-weight: 400; opacity: .6; }
.zq-guest-text {
    width: 100%; box-sizing: border-box; padding: 11px 14px;
    font-size: 14.5px; line-height: 1.85; font-family: inherit; resize: vertical;
    border: 1px solid #e0e0e0; border-radius: 10px; background: #fff; color: #111;
    transition: border-color .18s, box-shadow .18s;
}
.zq-guest-text:hover { border-color: #c4c4c4; }
.zq-guest-text:focus { outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(0, 0, 0, .07); }

/* 已审核留言列表 */
.zq-guest-list { margin-top: 24px; }
.zq-guest-list-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.zq-guest-list ul { list-style: none; margin: 0; padding: 0; }
.zq-guest-item { padding: 14px 0; border-bottom: 1px dashed rgba(127, 127, 127, .2); }
.zq-guest-item:last-child { border-bottom: 0; }
.zq-guest-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.zq-guest-meta span { opacity: .55; }
.zq-guest-body { font-size: 14.5px; line-height: 1.85; opacity: .9; }

/* ---------- F. 网站海报（首页内容区左侧） ---------- */
.zq-poster-zone { float: left; width: 240px; max-width: 45%; margin: 0 20px 16px 0; }
.zq-poster-item { margin-bottom: 14px; }
.zq-poster-item:last-child { margin-bottom: 0; }
.zq-poster-zone img {
    display: block; max-width: 100%; height: auto;
    border: 1px solid #e8e8e8; border-radius: 10px;
}
.zq-poster-zone a { display: block; text-decoration: none; }
.zq-poster-mb { display: none; }
@media (max-width: 860px) {
    /* 手机端：取消左浮动，改整行展示手机图 */
    .zq-poster-zone { float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 0 16px !important; }
    .zq-poster-pc { display: none !important; }
    .zq-poster-mb { display: block !important; }
}

/* ---------- G. 顶部轮播（后台「海报」：导航菜单下方 / 正文上方） ---------- */
.zq-slider {
    position: relative; overflow: hidden; width: 100%;
    /* 位于左列内容容器顶部，只占内容区宽度，右侧栏自然顶上来 */
    margin: 0 0 18px; border-radius: 12px;
    background: rgba(127, 127, 127, .06);
    /* 竖版 / 超长海报的高度上限：超过后图片按 contain 居中留白，仍然完整不裁切 */
    max-height: 82vh;
}
/* 等比占位撑出高度：默认是横幅比例，JS 会按当前这张海报的真实宽高比
   改写 --zq-slide-ratio，让任何尺寸的海报都完整显示、不变形、不裁切 */
.zq-slider::before {
    content: ""; display: block;
    padding-top: var(--zq-slide-ratio, 31.5%);
    transition: padding-top .25s ease;
}
.zq-slider-track { position: absolute; inset: 0; }
.zq-slide { position: absolute; inset: 0; display: none; }
.zq-slide.is-active { display: block; }
.zq-slide-link { display: block; width: 100%; height: 100%; text-decoration: none; }
/* contain：整张海报完整显示（不再按横幅比例裁切） */
.zq-slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.zq-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; cursor: pointer;
    font-size: 24px; line-height: 1; color: #fff;
    border: 0; border-radius: 50%; background: rgba(15, 23, 42, .38);
    opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.zq-slider-prev { left: 12px; }
.zq-slider-next { right: 12px; }
.zq-slider:hover .zq-slider-arrow { opacity: 1; }
.zq-slider-arrow:hover { background: rgba(15, 23, 42, .62); }
.zq-slider-arrow:focus-visible { opacity: 1; outline: 2px solid #fff; }
.zq-slider-dots {
    position: absolute; left: 0; right: 0; bottom: 10px;
    display: flex; justify-content: center; gap: 7px;
}
.zq-dot {
    width: 9px; height: 9px; padding: 0; cursor: pointer;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .35); transition: background .2s ease;
}
.zq-dot.is-on { background: #fff; }
@media (max-width: 860px) {
    .zq-slider { margin: 0 0 14px; border-radius: 10px; max-height: 88vh; }
    /* 手机端默认按竖屏比例（约 3:4），同样会被 JS 按海报真实比例覆盖 */
    .zq-slider::before { padding-top: var(--zq-slide-ratio, 133%); }
    /* 手机端没有 hover，箭头常显（半透明） */
    .zq-slider-arrow { opacity: .8; width: 30px; height: 30px; font-size: 20px; }
    .zq-slider-prev { left: 8px; }
    .zq-slider-next { right: 8px; }
}
