/* ===== 管理后台外壳（顶部菜单 + 选项卡） ===== */
.pl-shell-body,
.pl-page-body,
.pl-login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--td-bg-color-page, #f3f4f6);
}

.pl-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.pl-header {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 20px;
    background: #001a4d;
    color: #fff;
    flex: 0 0 auto;
}

.pl-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 220px;
    flex: 0 0 auto;
}

.pl-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--td-brand-color, #0052d9);
    font-weight: 700;
    font-size: 13px;
}

.pl-brand-text {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.pl-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
}

.pl-menu-item {
    padding: 6px 16px;
    border-radius: 4px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.pl-menu-item:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.pl-menu-item.is-active {
    background: var(--td-brand-color, #0052d9);
    color: #fff;
}

.pl-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.pl-header-user {
    font-size: 14px;
    color: rgba(255, 255, 255, .9);
}

.pl-header-link {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    text-decoration: none;
}

.pl-header-link:hover {
    color: #fff;
}

/* ===== 选项卡 ===== */
.pl-tabbar {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px 0 8px;
    background: #fff;
    border-bottom: 1px solid #e5e6eb;
    flex: 0 0 auto;
}

.pl-tabstrip {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
}

.pl-tabstrip::-webkit-scrollbar {
    height: 0;
}

.pl-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border: 1px solid #dcdee0;
    border-radius: 3px;
    background: #f5f6f7;
    color: #4b5b76;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.pl-tab:hover {
    border-color: var(--td-brand-color, #0052d9);
}

.pl-tab.is-active {
    background: var(--td-brand-color, #0052d9);
    border-color: var(--td-brand-color, #0052d9);
    color: #fff;
}

.pl-tab-label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-tab-close {
    font-size: 14px;
    line-height: 1;
    opacity: .65;
}

.pl-tab-close:hover {
    opacity: 1;
}

.pl-tabbar-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding-left: 12px;
}

.pl-tabbar-btn {
    height: 26px;
    padding: 0 10px;
    border: 1px solid #dcdee0;
    border-radius: 3px;
    background: #fff;
    color: #4b5b76;
    font-size: 12px;
    cursor: pointer;
}

.pl-tabbar-btn:hover {
    border-color: var(--td-brand-color, #0052d9);
    color: var(--td-brand-color, #0052d9);
}

/* ===== 内容区 ===== */
.pl-content {
    position: relative;
    flex: 1 1 auto;
    overflow: hidden;
}

.pl-pane {
    width: 100%;
    height: 100%;
}

.pl-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 功能页（iframe 内） ===== */
.pl-page-body {
    overflow: auto;
}

.pl-page {
    padding: 16px;
}

.pl-panel {
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 4px;
}

.pl-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.pl-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pl-filter-item > label {
    font-size: 13px;
    color: #4b5b76;
}

.pl-filter-btns {
    flex-direction: row;
    gap: 8px;
}

.pl-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.pl-avatar-empty {
    color: #a6a6a6;
}

.pl-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 16px;
}

.pl-tip {
    color: #86909c;
    font-size: 13px;
}

/* ===== 查看位置：当前页面模态弹窗 ===== */
.pl-map-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
    /* 需高于 TDesign 组件层级 */
    z-index: 3500;
}

.pl-map-dialog {
    display: flex;
    flex-direction: column;
    width: 60%;
    height: 80%;
    max-width: none;
    max-height: none;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.pl-map-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #e5e6eb;
}

.pl-map-dialog-title {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pl-map-dialog-close {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #86909c;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.pl-map-dialog-close:hover {
    color: #1d2129;
}

.pl-map-dialog-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
}

/* ===== 宠物相册预览 ===== */
.pl-album-body {
    overflow: auto;
    background: #f3f4f6;
}

.pl-album {
    padding: 16px;
}

.pl-album-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pl-album-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.pl-album-count {
    font-size: 13px;
    color: #86909c;
}

/* 每行 5 张 */
.pl-album-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.pl-album-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    cursor: pointer;
}

.pl-album-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.pl-album-item img:hover {
    opacity: .85;
}

/* 门店相册封面角标 */
.pl-album-cover {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #d54941;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    pointer-events: none;
}

.pl-album-desc {
    padding: 4px 6px;
    font-size: 12px;
    color: #4b5b76;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-album-empty {
    padding: 48px 0;
    text-align: center;
    color: #86909c;
}

.pl-album-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ===== 宠物相册大图预览（铺满窗口内部） ===== */
.pl-album-preview {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: rgba(0, 0, 0, .85);
    z-index: 3600;
}

.pl-album-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pl-album-preview-close {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}

.pl-album-preview-close:hover {
    opacity: 1;
}

.pl-album-preview-desc {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

/* ===== 表格中的多标签单元格（如宠物性格） ===== */
.pl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ===== 表格中的经纬度单元格 ===== */
.pl-geo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.5;
    font-size: 13px;
}

.pl-geo span {
    font-family: ui-monospace, Consolas, monospace;
    white-space: nowrap;
}

.pl-geo .t-button {
    height: 20px;
    padding: 0 4px;
}

/* ===== 弹窗表单 ===== */
.pl-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pl-form-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pl-form-item > label {
    width: 80px;
    flex: 0 0 auto;
    font-size: 13px;
    color: #4b5b76;
    text-align: right;
}

.pl-form-tip {
    font-size: 13px;
    color: #86909c;
}

.pl-welcome h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.pl-welcome p {
    margin: 0 0 12px;
    color: #4b5b76;
}

.pl-welcome ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5b76;
    line-height: 2;
}

/* ===== 表格操作列（用户/入驻管理等） ===== */
.pl-op-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pl-muted {
    color: #c4c9d2;
    font-size: 13px;
}

/* 迷你描边按钮：小号带边框/背景按钮在列内的尺寸适配 */
.pl-op-cell button.t-button {
    height: 24px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 22px;
}

.pl-op-cell button.t-button .t-button__text {
    font-size: 12px;
    line-height: 22px;
}

.pl-confirm-text {
    margin: 0 0 12px;
    font-size: 14px;
    color: #4b5b76;
    line-height: 1.7;
}

/* ===== 登录页 ===== */
.pl-login-body {
    background: linear-gradient(135deg, #0b2c6b 0%, #0052d9 100%);
}

.pl-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.pl-login-card {
    width: 380px;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.pl-login-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #1d2129;
}

.pl-login-sub {
    margin: 8px 0 24px;
    font-size: 13px;
    text-align: center;
    color: #86909c;
}

.pl-login-field {
    margin-bottom: 16px;
}

.pl-login-label {
    margin-bottom: 6px;
    font-size: 13px;
    color: #4b5b76;
}

.pl-login-error {
    margin-top: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    background: #fff1f0;
    color: #d54941;
    font-size: 13px;
    text-align: center;
}

/* ===== 首页欢迎语与趋势折线图 ===== */
.pl-dash-hello-wrap {
    padding: 18px 22px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: linear-gradient(120deg, #0b2c6b 0%, #0052d9 100%);
    color: #fff;
}

.pl-dash-hello {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.pl-dash-sub {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

.pl-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.pl-chart-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pl-chart-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pl-chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
}

.pl-chart-total {
    margin-left: 4px;
    font-size: 13px;
    color: #86909c;
}

.pl-chart-total b {
    margin: 0 2px;
    font-size: 17px;
}

.pl-chart-body {
    position: relative;
    height: 320px;
}

.pl-chart-canvas {
    width: 100%;
    height: 320px;
}

.pl-chart-mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .55);
    z-index: 5;
}

.pl-chart-mask-text {
    padding: 4px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .06);
    color: #86909c;
    font-size: 13px;
}

/* ===== 新闻编辑弹窗（基础属性 + Markdown 编辑 + 渲染预览） ===== */
.pl-news-body {
    overflow: hidden;
    background: #f3f4f6;
}

.pl-news-edit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
    height: 100vh;
    padding: 16px;
}

.pl-news-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex: 0 0 auto;
    padding: 16px;
    background: #fff;
    border-radius: 4px;
}

.pl-news-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pl-news-field > label {
    font-size: 13px;
    color: #4b5b76;
}

.pl-news-field-lg {
    width: 320px;
}

.pl-news-field-md {
    width: 240px;
}

.pl-news-field-sm {
    width: 120px;
}

.pl-news-field-grow {
    flex: 1 1 200px;
    min-width: 200px;
}

.pl-news-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 32px;
}

.pl-news-main {
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
    min-height: 0;
}

.pl-news-pane {
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
}

.pl-news-pane-head {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
}

.pl-news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f1f3;
}

.pl-news-toolbar button {
    height: 26px;
    padding: 0 10px;
    border: 1px solid #dcdee0;
    border-radius: 3px;
    background: #fff;
    color: #4b5b76;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.pl-news-toolbar button:hover {
    border-color: var(--td-brand-color, #0052d9);
    color: var(--td-brand-color, #0052d9);
}

.pl-news-textarea {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 0;
    outline: none;
    resize: none;
    font-family: ui-monospace, Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #1d2129;
}

.pl-news-preview {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px 16px;
}

.pl-news-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

/* ===== Markdown 渲染内容 ===== */
.pl-md-body {
    font-size: 14px;
    line-height: 1.8;
    color: #1d2129;
    word-wrap: break-word;
}

.pl-md-body > *:first-child {
    margin-top: 0;
}

.pl-md-body h1,
.pl-md-body h2,
.pl-md-body h3,
.pl-md-body h4,
.pl-md-body h5,
.pl-md-body h6 {
    margin: 18px 0 10px;
    font-weight: 600;
    line-height: 1.4;
}

.pl-md-body h1 {
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e6eb;
    font-size: 24px;
}

.pl-md-body h2 {
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 20px;
}

.pl-md-body h3 {
    font-size: 17px;
}

.pl-md-body h4 {
    font-size: 15px;
}

.pl-md-body h5 {
    font-size: 14px;
}

.pl-md-body h6 {
    font-size: 13px;
    color: #86909c;
}

.pl-md-body p {
    margin: 0 0 12px;
}

.pl-md-body a {
    color: var(--td-brand-color, #0052d9);
    text-decoration: none;
}

.pl-md-body a:hover {
    text-decoration: underline;
}

.pl-md-body img {
    max-width: 100%;
}

.pl-md-body code {
    padding: 1px 5px;
    border-radius: 3px;
    background: #f2f3f5;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    color: #d54941;
}

.pl-md-body .pl-md-pre {
    margin: 0 0 12px;
    padding: 12px 14px;
    overflow: auto;
    border-radius: 4px;
    background: #1f2430;
}

.pl-md-body .pl-md-pre code {
    padding: 0;
    background: transparent;
    color: #e6e6e6;
    font-size: 13px;
    line-height: 1.7;
}

.pl-md-body blockquote {
    margin: 0 0 12px;
    padding: 6px 14px;
    border-left: 4px solid #dcdee0;
    background: #f7f8fa;
    color: #4b5b76;
}

.pl-md-body blockquote p:last-child {
    margin-bottom: 0;
}

.pl-md-body ul,
.pl-md-body ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.pl-md-body li {
    margin: 2px 0;
}

.pl-md-body hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #e5e6eb;
}

.pl-md-body .pl-md-table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
    font-size: 13px;
}

.pl-md-body .pl-md-table th,
.pl-md-body .pl-md-table td {
    padding: 6px 10px;
    border: 1px solid #e5e6eb;
    text-align: left;
}

.pl-md-body .pl-md-table th {
    background: #f7f8fa;
    font-weight: 600;
}

/* ===== 表格中的“数据”列（相册 / 疫苗入口） ===== */
.pl-data-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* ===== 宠物疫苗接种记录（卡片网格，每行 4 个） ===== */
.pl-vaccine-body {
    overflow: auto;
    background: #f3f4f6;
}

.pl-vaccine {
    padding: 16px;
}

.pl-vaccine-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 4px;
}

.pl-vaccine-head {
    margin-bottom: 12px;
    font-size: 13px;
    color: #86909c;
}

.pl-vaccine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pl-vaccine-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.pl-vaccine-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d2129;
    word-break: break-all;
}

.pl-vaccine-time {
    font-size: 13px;
    color: #4b5b76;
}

.pl-vaccine-note {
    font-size: 13px;
    line-height: 1.7;
    color: #86909c;
    word-break: break-all;
}

/* ===== 宠物动态（卡片网格，每行 2 个） ===== */
.pl-activity-body {
    overflow: auto;
    background: #f3f4f6;
}

.pl-activity {
    padding: 16px;
}

.pl-activity-head {
    margin-bottom: 12px;
    font-size: 13px;
    color: #86909c;
}

.pl-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pl-activity-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.pl-activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pl-activity-time {
    font-size: 13px;
    color: #86909c;
}

.pl-activity-photo {
    flex: 0 0 auto;
    font-size: 13px;
    color: #4b5b76;
}

.pl-activity-content {
    font-size: 14px;
    line-height: 1.8;
    color: #1d2129;
    white-space: pre-wrap;
    word-break: break-word;
}

.pl-activity-geo {
    display: flex;
    gap: 16px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    color: #4b5b76;
}

.pl-activity-pager {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

/* ===== 动态卡片内的缩略图 ===== */
.pl-activity-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pl-activity-thumb {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
    background: #f3f4f6;
    cursor: pointer;
}

.pl-activity-thumb:hover {
    opacity: .85;
}

/* ===== 宠物待办（左中右三列卡片） ===== */
.pl-todo-body {
    overflow: auto;
    background: #f3f4f6;
}

.pl-todo {
    padding: 16px;
}

.pl-todo-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: start;
}

.pl-todo-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
}

.pl-todo-col-head {
    font-size: 14px;
    font-weight: 600;
}

.pl-todo-col-head.is-pending {
    color: #d46b08;
}

.pl-todo-col-head.is-finished {
    color: #2ba471;
}

.pl-todo-col-head.is-cancelled {
    color: #86909c;
}

.pl-todo-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pl-todo-card {
    padding: 12px 14px;
    border: 1px solid #e5e6eb;
    border-radius: 4px;
    background: #fff;
}

.pl-todo-content {
    font-size: 14px;
    line-height: 1.7;
    color: #1d2129;
    word-break: break-word;
}

.pl-todo-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #86909c;
}

.pl-todo-finish {
    color: #2ba471;
}

.pl-todo-empty {
    padding: 16px 0;
    font-size: 13px;
    text-align: center;
    color: #86909c;
}
