/* ============================================================
   独立信息页（关于 / 规则 / 联系 / 帮助）与搜索页专属样式
   仅在精简布局(body.pd-standalone)与搜索页加载，不与论坛主体样式混用。
   颜色统一走 --pd-* 令牌，自动适配深浅色主题。
   ============================================================ */

/* ---------- 精简头部：仅 banner + logo，无导航 ----------
   独立页 banner 比首页更高（首页约 200px 窄条），走自己的高度，
   随视口在 260~460px 间伸缩（宽屏偏 4:3 的竖向观感）。 */
body.pd-standalone .pd-banner {
    min-height: clamp(260px, 34vw, 460px);
    align-items: flex-end;
    padding-bottom: 26px;
}
body.pd-standalone .pd-banner-logo img {
    height: 52px;
}

/* ---------- 信息页内容列 ----------
   卡片与站点正文同宽（撑满 main.wrap，wrap 已提供左右 20px），
   卡片自身左右内边距 20px。 */
.pd-info {
    max-width: none;
    margin: 0;
    padding: 8px 0;
}
.pd-info .pd-breadcrumb {
    margin: 20px 2px 14px;
}

/* 正文卡片 */
.pd-info-block {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    box-shadow: var(--pd-card-shadow);
    padding: 26px 20px;
}
.pd-info-block + .pd-info-block {
    margin-top: 16px;
}
.pd-info-block h1 {
    margin: 0 0 18px;
    padding-left: 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--pd-text-title);
    border-left: 4px solid var(--pd-accent);
}
.pd-info-block:not(.pd-legal) > h2 {
    margin: 0 0 14px;
    padding-left: 12px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--pd-text-title);
    border-left: 4px solid var(--pd-accent);
}
.pd-info-block p {
    margin: 0 0 14px;
    color: var(--pd-text);
    font-size: 16px;
    line-height: 1.8;
}
.pd-info-block p:last-child {
    margin-bottom: 0;
}
.pd-info-block h3 {
    margin: 18px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pd-text-title);
}
.pd-info-block ul {
    margin: 0 0 14px;
    padding-left: 22px;
}
.pd-info-block li {
    margin: 0 0 8px;
    color: var(--pd-text);
    font-size: 16px;
    line-height: 1.8;
}
.pd-info-block p a,
.pd-info-block li a {
    color: var(--pd-accent);
    text-decoration: none;
}
.pd-info-block p a:hover,
.pd-info-block li a:hover {
    text-decoration: underline;
}

/* 长文法律页排版（隐私政策 / 使用条款 / 服务协议） */
.pd-legal h2 {
    margin: 30px 0 12px;
    padding-top: 6px;
    font-size: 19px;
    font-weight: 800;
    color: var(--pd-text-title);
    scroll-margin-top: 20px;
}
.pd-legal h3 {
    margin: 20px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pd-text-title);
}
.pd-legal ul {
    margin: 0 0 14px;
    padding-left: 22px;
}
.pd-legal li {
    margin: 0 0 8px;
    color: var(--pd-text);
    font-size: 16px;
    line-height: 1.8;
}
.pd-legal a {
    color: var(--pd-accent);
    text-decoration: none;
}
.pd-legal a:hover {
    text-decoration: underline;
}
.pd-legal-updated {
    margin: 0 0 20px !important;
    color: var(--pd-muted) !important;
    font-size: 14px !important;
}
.pd-legal-license {
    margin-top: 26px !important;
    padding-top: 16px;
    border-top: 1px solid var(--pd-line);
    color: var(--pd-muted) !important;
    font-size: 14px !important;
}
.pd-legal-toc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 26px;
    padding: 16px 18px;
    background: var(--pd-surface-soft);
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    font-size: 14px;
}
.pd-legal-toc span {
    color: var(--pd-muted);
    font-weight: 700;
}
.pd-legal-toc a {
    color: var(--pd-accent);
    text-decoration: none;
}
.pd-legal-toc a:hover {
    text-decoration: underline;
}

/* 联系邮箱按钮 */
.pd-info-contact {
    margin-top: 20px;
}
.pd-info-mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--pd-text-on-accent);
    background: var(--pd-accent);
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s ease;
}
.pd-info-mail:hover {
    background: var(--pd-accent-hover);
}
.pd-info-mail i {
    font-size: 15px;
}

/* 注册页：密码实时强弱指示 */
/* 密码标签行：左侧 label、右侧强度文字（密码强度：弱/中/强） */
.pd-auth-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
.pd-pw-strength-text {
    font-size: 12px;
    white-space: nowrap;
    color: var(--pd-text-muted, #888);
}
/* 强度进度条：位于输入框下方 */
.pd-pw-strength-track {
    height: 6px;
    margin-top: 8px;
    border-radius: 3px;
    background: var(--pd-border);
    overflow: hidden;
}
.pd-pw-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width .2s ease, background .2s ease;
}
.pd-auth-field.pw-weak   .pd-pw-strength-fill { width: 33%;  background: #e5484d; }
.pd-auth-field.pw-mid    .pd-pw-strength-fill { width: 66%;  background: #f5a524; }
.pd-auth-field.pw-strong .pd-pw-strength-fill { width: 100%; background: #30a46c; }
.pd-auth-field.pw-weak   .pd-pw-strength-text { color: #e5484d; }
.pd-auth-field.pw-mid    .pd-pw-strength-text { color: #f5a524; }
.pd-auth-field.pw-strong .pd-pw-strength-text { color: #30a46c; }

/* 页头信息区子导航（info 模式：banner 下方一排信息页链接） */
.pd-infobar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--pd-surface);
    border-top: 1px solid var(--pd-border);
}
.pd-infobar-link {
    padding: 7px 15px;
    font-size: 14px;
    line-height: 1;
    color: var(--pd-text);
    background: transparent;
    border: 1px solid var(--pd-border);
    border-radius: 8px;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pd-infobar-link:hover {
    color: var(--pd-accent);
    border-color: var(--pd-accent);
}
.pd-infobar-link.active {
    color: var(--pd-text-on-accent);
    background: var(--pd-accent);
    border-color: var(--pd-accent);
}

/* 底部信息页互链 */
.pd-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.pd-info-links a {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--pd-text);
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 8px;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.pd-info-links a:hover {
    color: var(--pd-accent);
    border-color: var(--pd-accent);
}
.pd-info-links a.active {
    color: var(--pd-text-on-accent);
    background: var(--pd-accent);
    border-color: var(--pd-accent);
}

/* 关于页：沿用既有 .pd-about-* 组件，仅收窄阅读列 */
.pd-about.pd-info {
    max-width: 900px;
}

/* ---------- 搜索页：结果统计 + 列表（搜索框统一走顶部 header）---------- */
.pd-search {
    max-width: none;
}
.pd-search-summary {
    margin: 18px 2px 14px;
    color: var(--pd-muted);
    font-size: 14px;
}
.pd-search-summary b {
    color: var(--pd-accent);
}
.pd-search-summary span {
    color: var(--pd-text-title);
}
.pd-search-results .pd-empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--pd-muted);
    font-size: 15px;
}
.pd-search-empty {
    margin: 32px 0;
    padding: 48px 20px;
    text-align: center;
    color: var(--pd-muted);
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    box-shadow: var(--pd-card-shadow);
}
.pd-search-empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 30px;
    color: var(--pd-border);
}
.pd-search-empty p {
    margin: 0;
    font-size: 15px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .pd-info-block { padding: 22px 18px; }
    .pd-info-block h1 { font-size: 21px; }
}

/* ---------- 登录 / 注册：精简布局 + 左右两栏 ---------- */
.pd-auth2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.pd-auth2.pd-auth2--single {
    grid-template-columns: 1fr;
    max-width: 480px;
}
/* 注册/登录表单外框与首页卡片边框线保持一致（同一套卡片 token：色/宽/圆角） */
.pd-info-block.pd-auth2 {
    border: var(--pd-card-border);
    border-radius: var(--pd-card-radius-lg);
}
.pd-auth2 h1 {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    font-size: 30px;
    font-weight: 900;
    color: var(--pd-text-title);
}
.pd-auth2 .auth-alert {
    margin: 0 0 16px;
}
.pd-auth-field {
    margin: 0 0 18px;
}
.pd-auth2 label {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pd-text);
}
.pd-auth2 input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--pd-text-title);
    background: var(--pd-surface);
    border: var(--pd-card-border);
    /* !important 覆盖全局 input 的 6px；box-shadow:none 去掉全局给 input 的品牌色光晕 */
    border-radius: var(--pd-card-radius-lg) !important;
    box-shadow: none;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pd-auth2 input:focus {
    border-color: var(--pd-accent);
    box-shadow: 0 0 0 3px rgba(80, 91, 147, .12);
}
.pd-auth-submit {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--pd-text-on-accent);
    background: var(--pd-accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease;
}
.pd-auth-submit:hover {
    background: var(--pd-accent-hover);
}
/* 右栏：第三方登录 + Passkey */
.pd-auth2-side {
    border-left: 1px solid var(--pd-line);
    padding-left: 40px;
}
.pd-auth-side-label {
    margin: 0 0 14px !important;
    color: var(--pd-muted) !important;
    font-size: 13px !important;
}
.pd-auth-oauth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-auth-oauth a,
.pd-auth-oauth button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pd-text-title);
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.pd-auth-oauth a:hover,
.pd-auth-oauth button:hover {
    border-color: var(--pd-accent);
    background: var(--pd-surface-soft);
}
.pd-auth-oauth i {
    font-size: 17px;
}
.pd-auth-oauth .pd-oauth-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    object-fit: contain;
}
.pd-auth-oauth .pd-oauth-ficon {
    width: 18px;
    font-size: 17px;
    text-align: center;
}
/* 登录/Passkey/第三方按钮统一为圆角矩形（非胶囊），同一尺寸家族。
   main.css 顶部有 “Final shape lock” 对 button 强制 999px !important，
   这里用 !important 覆盖回 8px（Google/GitHub 是 <a> 不受影响）。 */
.pd-auth-submit,
.pd-auth-oauth a,
.pd-auth-oauth button {
    border-radius: 8px !important;
    height: 48px;
}
/* 找回密码右栏插画位：4:3、object-fit:cover、圆角对齐卡片 */
.pd-auth2-illus {
    align-self: center;
    display: flex;
}
.pd-auth2-illus img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--pd-card-radius-lg);
}
.pd-auth2-switch {
    margin: 22px 0 0;
    text-align: center;
    color: var(--pd-muted);
    font-size: 14px;
}
.pd-auth2-switch a {
    color: var(--pd-accent);
    font-weight: 700;
}
@media (max-width: 720px) {
    .pd-auth2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .pd-auth2-side {
        border-left: 0;
        border-top: 1px solid var(--pd-line);
        padding-left: 0;
        padding-top: 24px;
    }
}

/* 输入框内嵌按钮（骰子/发送验证码）+ 字段提示 + 忘记密码 */
.pd-input-affix { position: relative; }
.pd-input-affix input { padding-right: 46px; }
.pd-input-affix:has(.pd-affix-text) input { padding-right: 108px; }
/* 图标按钮（骰子）——正方形 */
.pd-affix-btn {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 34px; height: 34px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--pd-muted); background: var(--pd-surface-soft);
    border: 1px solid var(--pd-border); border-radius: 6px !important; cursor: pointer;
    font-size: 14px; transition: color .15s ease, border-color .15s ease;
}
.pd-affix-btn:hover { color: var(--pd-accent); border-color: var(--pd-accent); }
.pd-affix-btn:disabled { opacity: .55; cursor: default; }
/* 文本按钮（发送验证码）——保持矩形，宽度自适应 */
.pd-affix-btn.pd-affix-text { width: auto; padding: 0 12px; font-size: 13px; }
/* 字段提示：更高优先级压过 .pd-info-block p 的 16px，小字号浅灰 */
.pd-info-block .pd-field-hint,
.pd-field-hint {
    margin: 6px 2px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #a6acb5;
}
.pd-auth-forgot { margin: -8px 2px 14px; text-align: right; }
.pd-auth-forgot a { color: var(--pd-accent); font-size: 13px; text-decoration: none; }
