/* ============================================================================
   陪诊有道 · 官网 2026 视觉基线（pz2026.css）
   ----------------------------------------------------------------------------
   配色严格按《陪诊有道・品牌配色规范》执行：
     核心三色  品牌蓝 #1D1E8C（主）· 品牌金 #FFEC20（点缀）· 纯白 #FFFFFF
     使用比例  中性 60% · 品牌蓝 30% · 品牌金 ≤10%
   三条硬约束（改样式前务必守住）：
     1. 金色面积不得超 10%，只做细线、小标签、hover 点，不做大面积底色。
     2. 白底上的金色一律加深到 Gold 700 #B28B00 / Gold 800 #8C6B00（#FFEC20 对比度仅 1.6:1，不可读）。
     3. 金色在小尺寸（<16px 文字、<8px 图形）会消失 —— 小尺寸直接用品牌蓝。
   命名：全部 pz- 前缀，与各内页历史内联样式隔离，避免互相踩踏。
   ========================================================================== */

:root {
    /* 品牌蓝阶（Blue 50 → 900） */
    --pz-blue:      #1D1E8C;
    --pz-blue-900:  #080B31;
    --pz-blue-700:  #0C1768;
    --pz-blue-400:  #404AB3;
    --pz-blue-300:  #7078BA;
    --pz-blue-200:  #9FA9D1;
    --pz-blue-100:  #CFD2EB;
    --pz-blue-50:   #ECEDF6;

    /* 品牌金阶（只取安全可读档位用作文本/小图形） */
    --pz-gold:      #FFEC20;
    --pz-gold-800:  #8C6B00;
    --pz-gold-700:  #B28B00;
    --pz-gold-100:  #FFF0BF;
    --pz-gold-50:   #FFFAEB;

    /* 中性阶 */
    --pz-n0:   #FFFFFF;
    --pz-n50:  #F7F7F8;
    --pz-n100: #EDEDF2;
    --pz-n200: #D2D2D0;
    --pz-n300: #AFAFC2;
    --pz-n500: #85858B;
    --pz-n700: #3E3E75;
    --pz-n800: #2B2B30;

    /* 语义色（必须配文字或图标，不只靠颜色） */
    --pz-ok:     #16A34A;
    --pz-warn:   #F97316;
    --pz-danger: #EF4444;
    --pz-info:   #2563EB;

    --pz-wrap: 1280px;
    --pz-r:    10px;
    --pz-fs: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
             "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

/* ------------------------------ 基础 ------------------------------ */
.pz-body, body.pz-body {
    margin: 0;
    padding: 0;
    background: var(--pz-n0);
    color: var(--pz-n800);
    font-family: var(--pz-fs);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.pz-body * { box-sizing: border-box; }
.pz-body a { color: inherit; }
.pz-body img { max-width: 100%; display: block; }
.pz-body h1, .pz-body h2, .pz-body h3, .pz-body h4 { margin: 0; font-weight: 700; line-height: 1.4; }
.pz-body p { margin: 0; }
.pz-body ul { margin: 0; padding: 0; list-style: none; }

.pz-wrap { max-width: var(--pz-wrap); margin: 0 auto; padding: 0 24px; }
.pz-sr   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------ 顶部导航 ------------------------------ */
.pz-nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--pz-n100);
}
.pz-nav-in {
    max-width: var(--pz-wrap); margin: 0 auto; padding: 0 24px;
    height: 62px; display: flex; align-items: center; gap: 22px;
}
.pz-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.pz-logo img { width: 30px; height: 30px; border-radius: 8px; }
.pz-logo-tx b { display: block; font-size: 15px; color: var(--pz-n800); letter-spacing: .4px; line-height: 1.2; }
.pz-logo-tx small { display: block; font-size: 9.5px; color: var(--pz-n500); letter-spacing: 1.4px; margin-top: 2px; }

.pz-menu { display: flex; align-items: center; gap: 1px; flex: 1; min-width: 0; }
.pz-menu > a {
    position: relative; padding: 8px 11px; border-radius: 6px;
    font-size: 13.5px; color: var(--pz-n700); text-decoration: none; white-space: nowrap;
    transition: color .16s, background .16s;
}
.pz-menu > a:hover { color: var(--pz-blue); background: var(--pz-blue-50); }
.pz-menu > a.is-on { color: var(--pz-blue); font-weight: 700; }
.pz-menu > a.is-on::after {
    content: ''; position: absolute; left: 11px; right: 11px; bottom: 1px;
    height: 2px; border-radius: 2px; background: var(--pz-gold-700);
}

/* 「更多」下拉 —— hover 打开，触屏走汉堡菜单 */
.pz-more { position: relative; }
.pz-more > button {
    display: flex; align-items: center; gap: 4px; padding: 8px 11px;
    border: 0; background: none; cursor: pointer; border-radius: 6px;
    font-size: 13.5px; color: var(--pz-n700); font-family: inherit;
}
.pz-more > button:hover { color: var(--pz-blue); background: var(--pz-blue-50); }
.pz-more > button i { font-style: normal; font-size: 9px; opacity: .6; transition: transform .18s; }
.pz-more:hover > button i { transform: rotate(180deg); }
.pz-more-pop {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 172px; padding: 6px;
    background: #fff; border: 1px solid var(--pz-n100); border-radius: 10px;
    box-shadow: 0 14px 36px rgba(8, 11, 49, .13);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .16s, transform .16s, visibility .16s;
}
/* 透明桥：按钮与面板之间有 6px 空隙，鼠标穿过时若不桥接会丢失 :hover，菜单闪现即收 */
.pz-more-pop::before {
    content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: transparent;
}
.pz-more:hover .pz-more-pop,
.pz-more:focus-within .pz-more-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.pz-more-pop a {
    display: block; padding: 8px 11px; border-radius: 6px;
    font-size: 13px; color: var(--pz-n700); text-decoration: none;
}
.pz-more-pop a:hover { background: var(--pz-blue-50); color: var(--pz-blue); }

.pz-nav-act { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.pz-icon-btn {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; color: var(--pz-n700); text-decoration: none; transition: background .16s, color .16s;
}
.pz-icon-btn:hover { background: var(--pz-blue-50); color: var(--pz-blue); }
.pz-cta {
    padding: 8px 15px; border-radius: 8px; background: var(--pz-blue); color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background .16s;
}
.pz-cta:hover { background: var(--pz-blue-700); }

/* .pz-body a{color:inherit}（0,1,1）会压过 .pz-cta 的 color:#fff（0,1,0），
   深蓝底上的「机构入驻」因此变成深灰字、几乎看不见（2026-10-20 实测 cr=1.08）。
   这里用 0,2,0 抬一级，显式固定白字；hover 同样锁死。 */
.pz-body .pz-cta { color: #fff; }
.pz-body .pz-cta:hover { color: #fff; }

/* 移动端汉堡 */
.pz-burger {
    display: none; width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
    flex-direction: column; justify-content: center; gap: 4px; padding: 0 6px;
}
.pz-burger span { display: block; height: 1.6px; border-radius: 2px; background: var(--pz-n800); }
.pz-drawer-mask {
    display: none; position: fixed; inset: 0; background: rgba(8, 11, 49, .42); z-index: 300;
}
.pz-drawer-mask.on { display: block; }
.pz-drawer {
    /* 2026-10-20 修横向白边：原来 right:-300px 把抽屉停在屏幕外，它会撑大
       document.scrollWidth，手机内页能向右拖出一片空白（实测 390 视口拖到 669）。
       改 transform 也照样撑（子元素仍计入滚动区），所以关闭时直接 display:none，
       打开时才 block + 播放入场动画。关灯瞬间收起、无滑出动画，移动端可接受。 */
    position: fixed; top: 0; right: 0; width: 300px; height: 100%; z-index: 301;
    background: #fff; box-shadow: -8px 0 30px rgba(8, 11, 49, .16);
    display: none; overflow-y: auto; padding: 18px 0 40px;
}
.pz-drawer.on { display: block; animation: pz-drawer-in .26s ease; }
@keyframes pz-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.pz-drawer h4 { padding: 0 20px; margin: 18px 0 8px; font-size: 11px; letter-spacing: 1.2px; color: var(--pz-n300); font-weight: 600; }
.pz-drawer a { display: block; padding: 11px 20px; font-size: 14.5px; color: var(--pz-n800); text-decoration: none; }
.pz-drawer a:hover { background: var(--pz-n50); color: var(--pz-blue); }
.pz-drawer .pz-drawer-cta {
    margin: 20px 20px 0; padding: 12px; text-align: center; border-radius: 8px;
    background: var(--pz-blue); color: #fff; font-weight: 600;
}

/* ------------------------------ 背书细条 ------------------------------ */
.pz-factbar { background: var(--pz-n50); border-bottom: 1px solid var(--pz-n100); }
.pz-factbar-in {
    max-width: var(--pz-wrap); margin: 0 auto; padding: 0 24px; min-height: 34px;
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 11.5px; color: var(--pz-n500);
}
.pz-factbar .pz-gb {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pz-blue); font-weight: 600; letter-spacing: .2px;
}
.pz-factbar .pz-gb::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--pz-gold-700); flex: 0 0 auto;
}
.pz-factbar .pz-vr { width: 1px; height: 11px; background: var(--pz-n200); flex: 0 0 auto; }
.pz-factbar .pz-figs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pz-factbar .pz-figs b { color: var(--pz-n800); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------ 区块标题 ------------------------------ */
.pz-sec { margin-top: 38px; }
.pz-sec-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.pz-sec-hd h2 { font-size: 17.5px; color: var(--pz-n800); letter-spacing: .2px; }
.pz-sec-hd h2 em { font-style: normal; color: var(--pz-blue); }
.pz-sec-hd .pz-sub { font-size: 12px; color: var(--pz-n500); }
.pz-sec-hd .pz-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pz-link-more { font-size: 12.5px; color: var(--pz-n500); text-decoration: none; }
.pz-link-more:hover { color: var(--pz-blue); }

/* 内容栏头（竖条 + 名称 + 更多） */
.pz-col-hd {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 9px; margin-bottom: 14px; border-bottom: 1px solid var(--pz-n100);
}
.pz-col-hd::before {
    content: ''; width: 3px; height: 14px; border-radius: 2px;
    background: var(--pz-blue); flex: 0 0 auto;
}
.pz-col-hd h3 { font-size: 14.5px; color: var(--pz-n800); letter-spacing: .2px; }
.pz-col-hd .pz-link-more { margin-left: auto; }
.pz-col--b .pz-col-hd::before { background: var(--pz-blue-400); }
.pz-col--c .pz-col-hd::before { background: var(--pz-gold-700); }

/* ------------------------------ 通用标签/圆点 ------------------------------ */
.pz-tag {
    display: inline-block; padding: 1px 7px; border-radius: 4px;
    font-size: 11px; line-height: 17px; font-weight: 500; white-space: nowrap;
}
.pz-tag--blue { background: var(--pz-blue-50); color: var(--pz-blue); }
.pz-tag--gold { background: var(--pz-gold-50); color: var(--pz-gold-800); box-shadow: inset 0 0 0 1px var(--pz-gold-100); }
.pz-tag--line { background: #fff; color: var(--pz-n500); box-shadow: inset 0 0 0 1px var(--pz-n200); }
.pz-tag--solid { background: var(--pz-blue); color: #fff; }
.pz-tag--soft { background: var(--pz-n100); color: var(--pz-n700); }

.pz-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--pz-blue-200); flex: 0 0 auto; }
.pz-dot--gold { background: var(--pz-gold-700); }
.pz-dot--ok { background: var(--pz-ok); }
.pz-dot--end { background: var(--pz-n300); }

/* ------------------------------ 卡片骨架 ------------------------------ */
.pz-card { display: block; text-decoration: none; color: inherit; }
.pz-card h3 { transition: color .16s; }
.pz-card:hover h3 { color: var(--pz-blue); }
.pz-thumb { position: relative; overflow: hidden; background: var(--pz-blue-50); border-radius: 8px; }
.pz-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pz-card:hover .pz-thumb img { transform: scale(1.035); }

/* 无封面兜底：品牌蓝深底 + 大标题首字，绝不出现破图 */
.pz-thumb--text {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--pz-blue-700) 0%, var(--pz-blue) 62%, var(--pz-blue-900) 100%);
    color: rgba(255, 255, 255, .95); font-weight: 700; letter-spacing: 2px; text-align: center;
    padding: 10px; line-height: 1.5;
}

/* 元信息行 */
.pz-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--pz-n500); flex-wrap: wrap; }
.pz-meta .pz-vr { width: 1px; height: 9px; background: var(--pz-n200); }

/* 摘要行数限制 */
.pz-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pz-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pz-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ------------------------------ 侧栏模块 ------------------------------ */
.pz-side-card { border: 1px solid var(--pz-n100); border-radius: var(--pz-r); padding: 16px; background: #fff; }
.pz-side-card + .pz-side-card { margin-top: 16px; }
.pz-side-hd {
    display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
    font-size: 13px; font-weight: 700; color: var(--pz-n800);
}
.pz-side-hd::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--pz-blue); }
.pz-side-hd .pz-link-more { margin-left: auto; font-weight: 400; }

/* 榜单 */
.pz-rank { display: flex; gap: 10px; padding: 9px 0; text-decoration: none; border-top: 1px solid var(--pz-n100); }
.pz-rank:first-of-type { border-top: 0; }
.pz-rank:hover .pz-rank-t { color: var(--pz-blue); }
.pz-rank-n {
    flex: 0 0 17px; font-size: 12px; font-weight: 700; color: var(--pz-n300);
    font-variant-numeric: tabular-nums; line-height: 20px;
}
.pz-rank:nth-of-type(-n+3) .pz-rank-n { color: var(--pz-blue); }
.pz-rank-t { font-size: 12.8px; color: var(--pz-n800); line-height: 1.55; }

/* 数字小格 */
.pz-figs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pz-fig { background: var(--pz-n50); border-radius: 8px; padding: 10px 12px; }
.pz-fig b { display: block; font-size: 18px; color: var(--pz-blue); font-variant-numeric: tabular-nums; line-height: 1.25; }
.pz-fig span { display: block; font-size: 11px; color: var(--pz-n500); margin-top: 2px; }

/* ------------------------------ 深色块 ------------------------------ */
.pz-deep {
    background: linear-gradient(145deg, var(--pz-blue-700) 0%, var(--pz-blue) 55%, var(--pz-blue-900) 100%);
    color: #fff; border-radius: var(--pz-r); position: relative; overflow: hidden;
}
.pz-deep::after {
    content: ''; position: absolute; right: -46px; bottom: -58px; width: 168px; height: 168px;
    border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none;
}
.pz-deep .pz-deep-in { position: relative; z-index: 1; }
.pz-deep h3 { color: #fff; }
.pz-deep .pz-tag--gold { background: rgba(255, 236, 32, .14); color: var(--pz-gold); box-shadow: inset 0 0 0 1px rgba(255, 236, 32, .32); }
.pz-deep .pz-tag--line { background: transparent; color: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* ------------------------------ 按钮 ------------------------------ */
.pz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background .16s, color .16s, border-color .16s;
}
.pz-btn--primary { background: var(--pz-blue); color: #fff; }
.pz-btn--primary:hover { background: var(--pz-blue-700); }
.pz-btn--ghost { background: #fff; color: var(--pz-blue); border-color: var(--pz-blue-100); }
.pz-btn--ghost:hover { background: var(--pz-blue-50); border-color: var(--pz-blue-200); }
.pz-btn--onDark { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); }
.pz-btn--onDark:hover { background: rgba(255, 255, 255, .24); }

/* ------------------------------ 页脚 ------------------------------ */
.pz-ft { background: var(--pz-blue-900); color: rgba(255, 255, 255, .68); margin-top: 58px; padding: 42px 0 26px; font-size: 12.5px; }
.pz-ft a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.pz-ft a:hover { color: #fff; }
.pz-ft-top { display: flex; gap: 48px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pz-ft-brand { flex: 1 1 240px; min-width: 220px; }
.pz-ft-brand b { display: block; color: #fff; font-size: 15px; letter-spacing: .6px; margin-bottom: 7px; }
.pz-ft-brand p { font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, .58); }
.pz-ft-col { flex: 0 0 auto; }
.pz-ft-col h5 { margin: 0 0 10px; font-size: 12px; color: #fff; font-weight: 600; letter-spacing: .4px; }
.pz-ft-col a { display: block; padding: 3px 0; font-size: 12.5px; }
.pz-ft-bot { padding-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: rgba(255, 255, 255, .46); }
.pz-ft-bot .pz-vr { width: 1px; height: 10px; background: rgba(255, 255, 255, .2); }

/* ------------------------------ 悬浮客服 ------------------------------ */
.pz-float {
    position: fixed; right: 22px; bottom: 90px; z-index: 150;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--pz-blue); color: #fff; font-size: 19px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(29, 30, 140, .3); transition: transform .18s;
}
.pz-float:hover { transform: translateY(-2px) scale(1.04); }
.pz-modal-mask {
    display: none; position: fixed; inset: 0; z-index: 400; background: rgba(8, 11, 49, .48);
    align-items: center; justify-content: center; padding: 20px;
}
.pz-modal-mask.on { display: flex; }
.pz-modal {
    background: #fff; border-radius: 14px; padding: 30px 26px 24px; width: 100%; max-width: 330px;
    text-align: center; position: relative;
}
.pz-modal h3 { font-size: 16px; margin-bottom: 16px; color: var(--pz-n800); }
.pz-modal img { width: 176px; height: 176px; margin: 0 auto 14px; border-radius: 8px; object-fit: cover; }
.pz-modal p { font-size: 12.5px; color: var(--pz-n500); line-height: 1.9; }
.pz-modal .pz-modal-x {
    position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: var(--pz-n50); color: var(--pz-n500); font-size: 16px; cursor: pointer; line-height: 1;
}
.pz-modal .pz-modal-x:hover { background: var(--pz-n100); color: var(--pz-n800); }

/* ------------------------------ 内嵌模式（小程序 web-view） ------------------------------ */
/* 约定：?embed=1 → body.pz-embed，隐藏全站级导航/背书条/页脚/悬浮客服，只留内容；
   站内链接与表单的 embed=1 透传由各页面尾部 JS 完成（见 index.php / bid.php）。 */
body.pz-embed .pz-nav,
body.pz-embed .pz-factbar,
body.pz-embed .pz-ft,
body.pz-embed .pz-float { display: none !important; }
body.pz-embed { padding-bottom: env(safe-area-inset-bottom); }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1180px) {
    .pz-menu > a, .pz-more > button { padding: 8px 8px; font-size: 13px; }
    .pz-nav-in { gap: 12px; }
}
@media (max-width: 1024px) {
    .pz-menu, .pz-nav-act .pz-cta { display: none; }
    .pz-burger { display: flex; }
    .pz-nav-act { margin-left: auto; }
}
@media (max-width: 768px) {
    .pz-wrap, .pz-nav-in, .pz-factbar-in { padding-left: 16px; padding-right: 16px; }
    .pz-nav-in { height: 56px; }
    .pz-logo b { font-size: 14px; }
    .pz-factbar-in { min-height: 0; padding-top: 8px; padding-bottom: 8px; gap: 8px 10px; font-size: 11px; }
    .pz-factbar .pz-vr { display: none; }
    .pz-sec { margin-top: 30px; }
    .pz-sec-hd h2 { font-size: 16px; }
    .pz-sec-hd .pz-sub { display: none; }
    .pz-ft { padding: 30px 0 24px; margin-top: 40px; }
    .pz-ft-top { gap: 26px; padding-bottom: 20px; }
    .pz-float { right: 14px; bottom: 76px; width: 42px; height: 42px; font-size: 17px; }
}
