/* =============================================================
   好新闻推荐 · 前台申报端
   配色取自活动视觉：#C00000，页面底色 #F5F6F8
   仅使用原生 CSS，不依赖第三方组件库
   ============================================================= */

:root {
    --sd-primary: #C00000;
    --sd-primary-dark: #A30000;
    --sd-primary-light: #FBE9E7;
    --sd-sidebar: #B40000;
    --sd-sidebar-sub: #9E0000;
    --sd-page: #F5F6F8;
    --sd-panel: #FFFFFF;
    --sd-muted: #FAFBFC;
    --sd-line: #E4E7ED;
    --sd-divider: #EEF0F3;
    --sd-text: #1F2329;
    --sd-text-2: #5A6472;
    --sd-text-3: #9AA3AF;
    --sd-radius: 8px;
    --sd-radius-sm: 6px;
    --sd-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    --sd-sidebar-w: 224px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--sd-page);
    color: var(--sd-text);
    font-size: 14px;
    line-height: 1.6;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--sd-primary);
    text-decoration: none;
}

a:hover {
    color: var(--sd-primary-dark);
}

h1, h2, h3, h4, p, dl, dd, ul, ol {
    margin: 0;
}

img {
    max-width: 100%;
}

/* ------------------------------------------------------ 顶部 */
.pg-top {
    height: 64px;
    background: var(--sd-primary);
    color: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    position: sticky;
    top: 0;
    /* UEditor 容器默认 z-index:999、弹层约 1009，顶栏需高于它们才不会被滚动的编辑区遮盖；
       但需低于模态框的 2000，保证弹窗仍能覆盖顶栏 */
    z-index: 1100;
}

.pg-top__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex: 0 0 auto;
}

.pg-brand:hover {
    color: #fff;
}

.pg-brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #fff;
    color: var(--sd-primary);
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pg-brand__name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 1.2;
}

.pg-brand__sub {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
}

.pg-top__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.pg-top__nav a {
    color: rgba(255, 255, 255, .9);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.pg-top__nav a:hover,
.pg-top__nav a.is-active {
    background: rgba(0, 0, 0, .14);
    color: #fff;
}

.pg-top__user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
}

.pg-top__user a {
    color: rgba(255, 255, 255, .92);
    padding: 4px 8px;
    border-radius: 4px;
}

.pg-top__user a:hover {
    background: rgba(0, 0, 0, .14);
    color: #fff;
}

.pg-top__divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .3);
}

/* ------------------------------------------------------ 布局 */
.pg-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 20px 40px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pg-side {
    width: var(--sd-sidebar-w);
    flex: 0 0 var(--sd-sidebar-w);
    position: sticky;
    top: 82px;
}

.pg-side__title {
    font-size: 12px;
    color: var(--sd-text-3);
    padding: 0 4px 8px;
    letter-spacing: .5px;
}

.pg-menu {
    background: var(--sd-panel);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    overflow: hidden;
    box-shadow: var(--sd-shadow);
    margin-bottom: 12px;
}

.pg-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--sd-text);
    font-size: 14px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--sd-divider);
}

.pg-menu a:last-child {
    border-bottom: 0;
}

.pg-menu a:hover {
    background: var(--sd-primary-light);
    color: var(--sd-primary);
}

.pg-menu a.is-active {
    background: var(--sd-primary-light);
    border-left-color: var(--sd-primary);
    color: var(--sd-primary);
    font-weight: 600;
}

.pg-menu a .pg-count {
    margin-left: auto;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--sd-muted);
    color: var(--sd-text-2);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.pg-menu a.is-active .pg-count {
    background: var(--sd-primary);
    color: #fff;
}

.pg-menu a .fa,
.pg-menu a .bi {
    width: 16px;
    text-align: center;
    color: var(--sd-text-3);
}

.pg-menu a.is-active .fa,
.pg-menu a.is-active .bi {
    color: var(--sd-primary);
}

/* 侧栏信息块 */
.pg-sidecard {
    background: var(--sd-panel);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    padding: 12px 14px;
    box-shadow: var(--sd-shadow);
    margin-bottom: 12px;
    font-size: 13px;
}

.pg-sidecard__title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--sd-divider);
}

.pg-sidecard dl {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 4px 8px;
    font-size: 12px;
    color: var(--sd-text-2);
}

.pg-sidecard dt {
    color: var(--sd-text-3);
}

.pg-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* ------------------------------------------------------ 卡片 */
.pg-card {
    background: var(--sd-panel);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.pg-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sd-divider);
    font-size: 15px;
    font-weight: 600;
}

.pg-card__head .pg-head-extra {
    font-size: 12px;
    font-weight: 400;
    color: var(--sd-text-3);
}

.pg-card__body {
    padding: 16px;
}

.pg-card__body--flush {
    padding: 0;
}

.pg-card__foot {
    padding: 12px 16px;
    border-top: 1px solid var(--sd-divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ------------------------------------------------------ 页头 */
.pg-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pg-page-head h1 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

.pg-page-head .pg-desc {
    font-size: 13px;
    color: var(--sd-text-2);
    margin-top: 4px;
}

.pg-crumb {
    font-size: 12px;
    color: var(--sd-text-3);
    margin-bottom: 6px;
}

.pg-crumb a {
    color: var(--sd-text-3);
}

.pg-head-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ------------------------------------------------------ 指标 */
.pg-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pg-stat {
    background: var(--sd-panel);
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sd-shadow);
}

.pg-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sd-primary);
}

.pg-stat__label {
    font-size: 13px;
    color: var(--sd-text-2);
}

.pg-stat__value {
    font-size: 26px;
    line-height: 34px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pg-stat__value small {
    font-size: 13px;
    font-weight: 400;
    color: var(--sd-text-3);
    margin-left: 4px;
}

.pg-stat__foot {
    font-size: 12px;
    color: var(--sd-text-3);
}

/* ------------------------------------------------------ 进度条 */
.pg-bar {
    height: 6px;
    background: #F0F1F3;
    border-radius: 999px;
    overflow: hidden;
}

.pg-bar > span {
    display: block;
    height: 100%;
    background: var(--sd-primary);
    border-radius: 999px;
}

.pg-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.pg-bar-row__label {
    width: 150px;
    flex: 0 0 150px;
    color: var(--sd-text-2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-bar-row .pg-bar {
    flex: 1 1 auto;
}

.pg-bar-row__value {
    width: 82px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--sd-text-2);
}
.pg-bar-row__state {
    display: block;
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
}
.pg-bar-row__state.is-filled { color: var(--sd-primary); }
.pg-bar-row__state.is-empty { color: var(--sd-text-3); }
.pg-bar > span.is-empty { background: transparent; }

/* ------------------------------------------------------ 表格 */
.pg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pg-table th {
    background: var(--sd-muted);
    color: var(--sd-text);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sd-line);
    white-space: nowrap;
}

.pg-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--sd-divider);
    vertical-align: middle;
}

.pg-table tbody tr:hover td {
    background: var(--sd-primary-light);
}

.pg-table tbody tr:last-child td {
    border-bottom: 0;
}

.pg-table .pg-num {
    font-variant-numeric: tabular-nums;
}

.pg-table .pg-td-title a {
    color: var(--sd-text);
    font-weight: 600;
}

.pg-table .pg-td-title a:hover {
    color: var(--sd-primary);
}

.pg-sub {
    font-size: 12px;
    color: var(--sd-text-3);
    margin-top: 2px;
}

.pg-ops a {
    margin-right: 10px;
    font-size: 13px;
}

.pg-ops a:last-child {
    margin-right: 0;
}

/* ------------------------------------------------------ 状态标签 */
.pg-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

.pg-tag--draft { color: #5A6472; background: #F0F1F3; }
.pg-tag--submitted { color: #2456C4; background: #E7EEFC; }
.pg-tag--reviewing { color: #C97A0E; background: #FCF1DF; }
.pg-tag--passed { color: #1F8A4C; background: #E4F5EB; }
.pg-tag--rejected { color: #E5484D; background: #FDECEC; }
.pg-tag--info { color: #2456C4; background: #E7EEFC; }
.pg-tag--top { color: #C00000; background: #FBE9E7; }

/* ------------------------------------------------------ 表单 */
.pg-form__row {
    margin-bottom: 16px;
}

.pg-form__label {
    display: block;
    font-size: 13px;
    color: var(--sd-text-2);
    margin-bottom: 6px;
}

.pg-form__label .pg-req {
    color: #E5484D;
    margin-left: 2px;
}

.pg-input,
.pg-select,
.pg-textarea {
    width: 100%;
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--sd-text);
    background: #fff;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pg-input:focus,
.pg-select:focus,
.pg-textarea:focus {
    outline: 0;
    border-color: #E7B3AC;
    box-shadow: 0 0 0 3px rgba(192, 0, 0, .10);
}

.pg-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.7;
}

.pg-help {
    font-size: 12px;
    color: var(--sd-text-3);
    margin-top: 4px;
}

.pg-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.pg-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px;
}

.pg-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pg-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    cursor: pointer;
    font-size: 13px;
    background: #fff;
}

.pg-radio-group label:hover {
    border-color: #E7B3AC;
}

.pg-radio-group input:checked + span {
    color: var(--sd-primary);
    font-weight: 600;
}

.pg-radio-group label:has(input:checked) {
    border-color: var(--sd-primary);
    background: var(--sd-primary-light);
}

/* 按钮 */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--sd-radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: var(--sd-text);
    font-family: inherit;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pg-btn--primary {
    background: var(--sd-primary);
    border-color: var(--sd-primary);
    color: #fff;
}

.pg-btn--primary:hover {
    background: var(--sd-primary-dark);
    border-color: var(--sd-primary-dark);
    color: #fff;
}

.pg-btn--outline {
    border-color: var(--sd-line);
    color: var(--sd-text-2);
}

.pg-btn--outline:hover {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
}

.pg-btn--ghost {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
    background: #fff;
}

.pg-btn--ghost:hover {
    background: var(--sd-primary-light);
    color: var(--sd-primary);
}

.pg-btn--sm {
    padding: 5px 12px;
    font-size: 13px;
}

.pg-btn--lg {
    padding: 10px 22px;
    font-size: 15px;
}

.pg-btn--block {
    display: flex;
    width: 100%;
}

.pg-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

/* ------------------------------------------------------ 提示 */
.pg-flash {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--sd-radius-sm);
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid;
}

.pg-flash--success {
    background: #E4F5EB;
    border-color: #BEE5CD;
    color: #1F7A45;
}

.pg-flash--error {
    background: #FDECEC;
    border-color: #F5C6C6;
    color: #B42323;
}

.pg-flash--info {
    background: var(--sd-primary-light);
    border-color: #F0D8D5;
    color: #8A2B22;
}

.pg-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--sd-text-3);
    font-size: 13px;
}

.pg-empty strong {
    display: block;
    color: var(--sd-text-2);
    font-size: 14px;
    margin-bottom: 4px;
}

.pg-note {
    background: var(--sd-primary-light);
    border: 1px solid #F0D8D5;
    border-radius: var(--sd-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 22px;
    color: #8A2B22;
}

.pg-note--plain {
    background: var(--sd-muted);
    border-color: var(--sd-divider);
    color: var(--sd-text-2);
}

/* ------------------------------------------------------ 列表项 */
.pg-list {
    list-style: none;
    padding: 0;
}

.pg-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--sd-divider);
}

.pg-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pg-list__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sd-text);
    font-weight: 600;
}

.pg-list__title:hover {
    color: var(--sd-primary);
}

.pg-list__meta {
    font-size: 12px;
    color: var(--sd-text-3);
    margin-top: 4px;
    display: flex;
    gap: 12px;
}

.pg-list__summary {
    font-size: 13px;
    color: var(--sd-text-2);
    margin-top: 6px;
}

/* ------------------------------------------------------ 详情 */
.pg-detail-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.pg-kv {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 14px;
    font-size: 13px;
}

.pg-kv dt {
    color: var(--sd-text-3);
}

.pg-kv dd {
    color: var(--sd-text);
    word-break: break-word;
}

.pg-content {
    background: var(--sd-muted);
    border: 1px solid var(--sd-divider);
    border-radius: var(--sd-radius-sm);
    padding: 16px;
    line-height: 28px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--sd-text);
}

.pg-timeline {
    list-style: none;
    padding: 0 0 0 4px;
}

.pg-timeline li {
    position: relative;
    padding: 0 0 16px 18px;
    border-left: 2px solid var(--sd-divider);
    font-size: 13px;
}

.pg-timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.pg-timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #C9CED6;
}

.pg-timeline li.is-primary::before { border-color: var(--sd-primary); }
.pg-timeline li.is-success::before { border-color: #1F8A4C; }
.pg-timeline li.is-danger::before { border-color: #E5484D; }

.pg-timeline__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pg-timeline__time {
    font-size: 12px;
    color: var(--sd-text-3);
    white-space: nowrap;
}

.pg-timeline__body {
    color: var(--sd-text-2);
    margin-top: 2px;
}

/* 文件列表 */
.pg-files {
    list-style: none;
    padding: 0;
}

.pg-files li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--sd-divider);
    border-radius: var(--sd-radius-sm);
    margin-bottom: 8px;
    font-size: 13px;
    background: #fff;
}

/* 附件类型图标：默认灰，按 data-ext 着色 */
.pg-files li > i {
    flex: none;
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: #9AA3AF;
}
.pg-files li[data-ext="jpg"] > i,
.pg-files li[data-ext="jpeg"] > i,
.pg-files li[data-ext="png"] > i,
.pg-files li[data-ext="gif"] > i,
.pg-files li[data-ext="webp"] > i,
.pg-files li[data-ext="bmp"] > i { color: #1F8A4C; }
.pg-files li[data-ext="pdf"] > i { color: #C00000; }
.pg-files li[data-ext="doc"] > i,
.pg-files li[data-ext="docx"] > i { color: #2456C4; }
.pg-files li[data-ext="xls"] > i,
.pg-files li[data-ext="xlsx"] > i { color: #1F8A4C; }
.pg-files li[data-ext="ppt"] > i,
.pg-files li[data-ext="pptx"] > i { color: #C97A0E; }
.pg-files li[data-ext="zip"] > i,
.pg-files li[data-ext="rar"] > i { color: #8A5A2B; }
.pg-files li[data-ext="mp4"] > i,
.pg-files li[data-ext="mov"] > i,
.pg-files li[data-ext="mp3"] > i,
.pg-files li[data-ext="wav"] > i { color: #7B3FA0; }

.pg-files li .pg-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--sd-text);
}

.pg-files li .pg-file-size {
    flex: none;
    margin-left: auto;
    font-size: 12px;
    color: var(--sd-text-3);
    font-variant-numeric: tabular-nums;
}

.pg-files li .pg-file-del {
    color: var(--sd-text-3);
    cursor: pointer;
}

.pg-files li .pg-file-del:hover {
    color: #E5484D;
}

/* 名额 / chip */
.pg-chips span {
    display: inline-block;
    padding: 1px 8px;
    margin: 0 6px 6px 0;
    border-radius: 4px;
    background: var(--sd-primary-light);
    border: 1px solid #F0D8D5;
    color: var(--sd-primary-dark);
    font-size: 12px;
}

/* 分页 */
.pg-pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    flex-wrap: wrap;
}

.pg-pager a,
.pg-pager span {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--sd-text-2);
    background: #fff;
}

.pg-pager a:hover {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
}

.pg-pager .active,
.pg-pager span.current {
    background: var(--sd-primary);
    border-color: var(--sd-primary);
    color: #fff;
}

/* ------------------------------------------------------ 登录类页面 */
.pg-auth {
    min-height: 100vh;
    /* 整屏红色渐变：铺满可视窗口，滚动时保持不动 */
    background: radial-gradient(circle at 16% 8%, #D32F2F 0%, #C00000 34%, #A30000 68%, #7E0000 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 56px 16px 40px;
}

/* 登录/找回等短页面：桌面端内容垂直居中，窄屏或矮屏回落顶部对齐 */
.pg-auth--center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px), (max-height: 700px) {
    .pg-auth--center {
        justify-content: flex-start;
    }
}

.pg-auth__inner {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.pg-auth__side {
    color: #fff;
    padding-top: 24px;
}

.pg-auth__side h2 {
    font-size: 26px;
    line-height: 38px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pg-auth__side p {
    font-size: 13px;
    line-height: 24px;
    color: rgba(255, 255, 255, .85);
}

.pg-auth__points {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
}

.pg-auth__points li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    line-height: 22px;
}

/* Font Awesome 图标按文字行高居中，避免图标视觉上偏高或偏低 */
.pg-auth__points li > i {
    flex: 0 0 16px;
    width: 16px;
    line-height: 22px;
    font-size: 14px;
    text-align: center;
}

.pg-auth__points li > span {
    line-height: 22px;
}

.pg-auth__card {
    background: #fff;
    border-radius: var(--sd-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    padding: 26px 24px;
}

.pg-auth__card h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pg-auth__card .pg-auth__hint {
    font-size: 12px;
    color: var(--sd-text-3);
    margin-bottom: 18px;
}

.pg-captcha {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pg-captcha .pg-input {
    flex: 1 1 auto;
}

.pg-captcha img {
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    height: 40px;
    cursor: pointer;
}

.pg-auth__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sd-divider);
    font-size: 12px;
    color: var(--sd-text-3);
}

.pg-auth__page-foot {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
    margin-top: 24px;
    line-height: 22px;
}

.pg-auth__page-foot-contact {
    margin-top: 3px;
}

.pg-auth__page-foot-sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, .4);
}

/* ------------------------------------------------------ 页脚 */
.pg-foot {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 28px;
    text-align: center;
    font-size: 12px;
    color: var(--sd-text-3);
    line-height: 22px;
}

.pg-foot__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 14px;
    margin: 4px 0;
    color: var(--sd-text-2, #4b5563);
}

.pg-foot__contact i {
    margin-right: 4px;
    color: var(--sd-primary, #C00000);
}

.pg-foot__sep {
    color: var(--sd-line, #e5e7eb);
}

/* ------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
    .pg-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pg-auth__inner {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .pg-auth__side {
        display: none;
    }
}

@media (max-width: 860px) {
    .pg-layout {
        display: block;
    }

    .pg-side {
        width: auto;
        position: static;
        margin-bottom: 12px;
    }

    .pg-grid-2,
    .pg-grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-top__nav {
        display: none;
    }

    .pg-table th,
    .pg-table td {
        padding: 10px;
    }
}

/* ------------------------------------------------------ 分页（框架自带 pagination） */
.pg-pager-box {
    padding: 14px 16px;
    border-top: 1px solid var(--sd-divider);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.pagination li a,
.pagination li span,
.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sd-line);
    border-radius: var(--sd-radius-sm);
    background: #fff;
    color: var(--sd-text-2);
    font-size: 13px;
}

.pagination li a:hover {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
}

.pagination li.active a,
.pagination li.active span,
.pagination .active > .page-link {
    background: var(--sd-primary);
    border-color: var(--sd-primary);
    color: #fff;
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #C9CED6;
    pointer-events: none;
}

/* ------------------------------------------------------ 首页（产品说明） */
.pg-hero-body {
    background: #8E0000;
}

.pg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 88px 24px 104px;
    text-align: center;
    color: #fff;
    background: radial-gradient(circle at 50% 6%, #D22020 0%, #C00000 40%, #9B0000 74%, #7C0000 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* 细网格纹理：避免整屏纯色过于平板，同时不干扰文字 */
.pg-hero__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 82%);
    mask-image: radial-gradient(circle at 50% 38%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 82%);
}

.pg-hero__inner {
    position: relative;
    width: 100%;
    max-width: 760px;
}

.pg-hero__eyebrow {
    display: inline-block;
    margin-bottom: 28px;
    padding: 5px 16px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .92);
}

.pg-hero__title {
    margin: 0 0 24px;
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: 4px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .14);
}

/* 标题下的短横线：把标题与说明文字分开 */
.pg-hero__title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 22px auto 0;
    background: rgba(255, 255, 255, .55);
}

.pg-hero__desc {
    max-width: 620px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 30px;
    color: rgba(255, 255, 255, .86);
}

.pg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

.pg-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    height: 44px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--sd-radius-sm);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.pg-hero__btn:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .8);
    color: #fff;
}

.pg-hero__btn--light {
    background: #fff;
    border-color: #fff;
    color: #B00000;
    font-weight: 600;
}

.pg-hero__btn--light:hover {
    background: #FDECEC;
    border-color: #FDECEC;
    color: #8E0000;
}

.pg-hero__note {
    margin-top: 24px;
    font-size: 12.5px;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .7);
}

.pg-hero__foot {
    position: absolute;
    right: 0;
    bottom: 26px;
    left: 0;
    padding: 0 24px;
    font-size: 12px;
    line-height: 20px;
    color: rgba(255, 255, 255, .62);
}

.pg-hero__foot-sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, .35);
}

@media (max-width: 640px) {
    .pg-hero__foot {
        text-align: center;
        line-height: 22px;
    }

    .pg-hero__foot-sep {
        margin: 0 6px;
    }
}

@media (max-width: 640px) {
    .pg-hero {
        padding: 72px 20px 96px;
    }

    .pg-hero__title {
        letter-spacing: 2px;
    }

    .pg-hero__desc {
        font-size: 14px;
        line-height: 27px;
    }

    .pg-hero__btn {
        min-width: 0;
        flex: 1 1 100%;
    }
}

/* ------------------------------------------------------ 修改密码：强度与弹窗 */
.pg-pwd-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.pg-pwd-strength__bars {
    display: flex;
    flex: 1 1 auto;
    gap: 5px;
}

.pg-pwd-strength__bars i {
    flex: 1 1 auto;
    height: 4px;
    border-radius: 3px;
    background: #e8eaee;
    transition: background-color .2s ease;
}

.pg-pwd-strength__text {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--sd-text-3);
}

.pg-pwd-strength.is-1 .pg-pwd-strength__bars i:nth-child(1) { background: #e5484d; }
.pg-pwd-strength.is-2 .pg-pwd-strength__bars i:nth-child(-n+2) { background: #e5a33a; }
.pg-pwd-strength.is-3 .pg-pwd-strength__bars i:nth-child(-n+3) { background: #3aa76d; }
.pg-pwd-strength.is-4 .pg-pwd-strength__bars i:nth-child(-n+4) { background: #2b8a5a; }
.pg-pwd-strength.is-1 .pg-pwd-strength__text { color: #e5484d; }
.pg-pwd-strength.is-2 .pg-pwd-strength__text { color: #c9831c; }
.pg-pwd-strength.is-3 .pg-pwd-strength__text { color: #3aa76d; }
.pg-pwd-strength.is-4 .pg-pwd-strength__text { color: #2b8a5a; }

.pg-pwd-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.pg-pwd-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sd-text-3);
}

.pg-pwd-rules li i { font-size: 12px; }
.pg-pwd-rules li.is-ok { color: #2b8a5a; }
.pg-pwd-rules__must { margin-left: auto; color: #e5484d; font-size: 11px; opacity: .8; }
.pg-pwd-rules__opt { margin-left: auto; color: var(--sd-text-3); font-size: 11px; }

.pg-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pg-modal.is-open { display: flex; }

.pg-modal__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 28, .55);
}

.pg-modal__box {
    position: relative;
    z-index: 1;
    width: min(92vw, 380px);
    padding: 30px 28px 26px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    text-align: center;
}

.pg-modal__icon {
    width: 52px;
    height: 52px;
    line-height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eaf6f0;
    color: #24865a;
    font-size: 26px;
}

.pg-modal__box h3 { margin: 0 0 10px; font-size: 18px; }
.pg-modal__box p { margin: 0 0 22px; color: var(--sd-text-2); font-size: 13px; line-height: 1.8; }
.pg-modal__box .pg-btn { min-width: 160px; }

