/* pyq-base.css —— 通用基础样式（原创重写）
 * 仅包含 reset / 排版 / 滚动条 / 折叠文本等全局通用规则，
 * 主题具体的卡片、顶栏、弹窗等样式见 pengyouquan.css。 */

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bodys, #f2f2f2);
    color: var(--textqh, #2c2c2c);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;   /* 兜底：老浏览器 */
    overflow-x: clip;     /* clip 不建立滚动容器，避免破坏顶栏 position:sticky 吸顶 */
}

a {
    color: var(--thetitle, #2b7de0);
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

img {
    max-width: 100%;
    border: 0;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--gdwys, #cdcdcd);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* 正文超长折叠（content-pyq.php 的 .wzndhycyc） */
.wzndhycyc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.pyq-content-quanwenan {
    display: inline-block;
    margin-top: 4px;
    color: var(--thetitle, #2b7de0);
    font-size: 14px;
    cursor: pointer;
}

/* 全局轻提示 toast（pyq-comment.js 动态创建 #pyq-toast） */
#pyq-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    max-width: 80%;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    border-radius: 8px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#pyq-toast.pyq-toast-show {
    opacity: 1;
}
