* {
    font-family: Microsoft YaHei, "PingFang SC", arial, tahoma, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
}

/* 空态页面 */
.page-img img {
    width: 100%;
}

.empty-page {
    flex-direction: column;
}

.empty-msg {
    white-space: nowrap;
    color: #677390;
}

/* grid布局图书 */
.p2-book-gird {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* column-gap: 100px;
    row-gap: 40px; */
}

.p2-my-content .p2-book-gird {
    display: none;
}

.p2-book-gird a {
    min-width: 0;
}

.p2-grid-card {
    cursor: pointer;
    position: relative;
    min-width: 0;
}

.p2-grid-card:hover .p2-book-title {
    color: #1549C0;
}

.p2-grid-card[data-type="MEDIA"] .p2-book-cover {
    border: 1px solid #DAE0EE;
    border-radius: 4px;
    padding-top: 180%;
    flex-shrink: 0;
}

.p2-grid-card[data-type="MEDIA"] .p2-book-title {
    margin: 0;
    flex-shrink: 0;
    word-break: break-all;
}

.p2-grid-card[data-type="MEDIA"] .p2-book-author {
    margin-top: 0;
    flex-shrink: 0;
}

.p2-book-auto {
    padding: 8px;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p2-book-desc {
    display: -webkit-box;
    line-clamp: 8;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #384572;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    max-height: 100%;
}

.p2-book-cover {
    margin: auto;
    position: relative;
    width: 100%;
    padding-top: 136%;
    perspective: 800px;
    box-shadow: 6px 6px 10px rgba(100, 100, 100, 0.2), 10px 10px 20px rgba(120, 120, 120, 0.15), 0 8px 15px rgba(150, 150, 150, 0.1);
}

.p2-modal-book-check {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    cursor: pointer;
}

.p2-book-check {
    display: none;
    position: absolute;
    width: 18%;
    padding-top: 18%;
    left: 12px;
    top: 12px;
    /* height: 30px; */
    border-radius: 50%;
    z-index: 1;
    outline: 1px solid #FFFFFF;
}

.edit-mode .p2-modal-book-check,
.edit-mode .p2-book-check {
    display: block;
}

.p2-book-check input {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    top: 0;
    left: 0;
}

.p2-check-div {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.p2-book-check input:checked+.p2-check-div {
    background-color: #1549C0;
    background-image: url(../static/checked.svg);
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.p2-book-cover img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transition: all .3s;
    transform-origin: 0 0;
    object-fit: cover;
}

.p2-grid-card:hover .p2-book-cover img {
    transform: rotateY(-25deg);
}

.p2-book-title {
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #384572;
    font-size: 16px;
    text-align: center;
    margin: 20px 0 8px 0;
}

.p2-book-author {
    color: #A6ACBC;
    text-align: center;
    font-size: 14px;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    overflow: hidden;
    -webkit-box-orient: vertical;
    margin-top: 8px;
}

.p2-my-modal {
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.p2-my-modal-fill {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 32px;
    border-radius: 20px;
    background-color: #1549C0;
    color: white;
    font-size: 14px;
}

.p2-my-modal-text {
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.p2-modal-book {
    flex: 1;
    position: relative;
}

.p2-modal-book>div:nth-child(1) {
    height: 100%;
}

.p2-modal-book .p2-grid-card:hover .p2-my-modal {
    display: flex;
}

.p2-modal-book .p2-grid-card .p2-book-cover img {
    transform: none;
}

/* 头部组件 */
.demo-main .p2-header-type1 {
    flex-shrink: 0;
    background-image: url(../static/detail-bg.jpg);
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    padding-top: 60px;
    height: 228px;
    display: flex;
    align-items: center;
}

.p2-header-type1-keyword {
    font-size: 40px;
    color: #384572;
}

/* 个人中心-左侧菜单 */
.p2-my-left-card {
    background-color: #F3F6FC;
    height: 100%;
}

.p2-my-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid #DAE0EE;
}

.p2-header-type1 .p2-my-header {
    display: none;
}

.p2-mh-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #FFFFFF;
    box-shadow: 0px 11.43px 25.14px 0px #AAB1BB1A;
    box-shadow: 0px 46.86px 46.86px 0px #AAB1BB17;
    box-shadow: 0px 105.14px 62.86px 0px #AAB1BB0D;
    box-shadow: 0px 186.29px 74.29px 0px #AAB1BB03;
    box-shadow: 0px 290.29px 81.14px 0px #AAB1BB00;
}

.p2-mh-avatar img {
    width: 100%;
    object-fit: cover;
    height: 100%;
}

.p2-mh-name {
    display: flex;
    gap: 6px;
    color: #384572;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
}

.p2-mh-name img {
    cursor: pointer;
}

.p2-my-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 16px;
}

.p2-mml-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    color: #384572;
    font-size: 16px;
    border-radius: 24px;
    cursor: pointer;
}

.p2-mml-btn:not(.p2-mml-actived):hover {
    background-color: rgba(21, 73, 192, 0.1);
    color: #1549C0;
}

.p2-mml-actived {
    color: #1549C0;
    font-weight: 600;
    background-color: white;
}

.p2-flex-div {
    flex: 1;
}

/* 图书列表功能 */
.p2-result-list-content,
.p2-flex-div {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.p2-result-list-card {
    display: flex;
    column-gap: 40px;
    padding-bottom: 38px;
    border-bottom: 1px solid #DAE0EE;
}

.p2-result-book-cover {
    width: 120px;
    height: 163px;
    perspective: 800px;
    flex-shrink: 0;
    box-shadow: 6px 6px 10px rgba(100, 100, 100, 0.2), 10px 10px 20px rgba(120, 120, 120, 0.15), 0 8px 15px rgba(150, 150, 150, 0.1);
}

.p2-result-book-cover img {
    width: 100%;
    height: 100%;
    transition: all .3s;
    transform-origin: 0 0;
}

.p2-result-list-card:hover .p2-result-book-cover img {
    transform: rotateY(-25deg);
}

.p2-result-sub-cover {
    width: 282px;
    height: 164px;
}

.p2-result-sub-cover img {
    width: 100%;
    height: 100%;
    transition: all .3s;
    transform-origin: 0 0;
    object-fit: cover;
}

.p2-result-book-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p2-result-book-title {
    line-height: 23px;
    color: #384572;
    font-size: 20px;
    font-weight: 600;
}

.p2-result-list-card:hover .p2-result-book-title {
    color: #1549C0;
}

.p2-result-tag-box {
    display: inline-flex;
    padding: 4px 12px;
    align-items: center;
    column-gap: 20px;
    border-radius: 88px;
    background: rgba(21, 73, 192, 0.1);
    color: #1549C0;
    white-space: nowrap;
}

.p2-result-tag-box span {
    position: relative;
}

.p2-result-tag-box span:nth-last-child(1)::after {
    display: none;
}

.p2-result-tag-box span::after {
    content: '';
    width: 4px;
    position: absolute;
    height: 4px;
    border-radius: 50%;
    background: #1549C0;
    top: calc(50% - 2px);
    right: -10px;
}

.p2-result-card-msg {
    display: flex;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 8px;
    color: #677390;
}

.p2-result-card-msg-block {
    display: flex;
    align-items: center;
    gap: 4px;
}

.p2-result-card-desc {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #A6ACBC;
    word-break: break-all;
}

.search-highlight {
    background-color: #FFDEBA;
}

.p2-result-book-card:hover .p2-result-book-btns {
    display: flex;
}

.p2-result-book-btns {
    display: none;
    column-gap: 12px;
}

.p2-result-book-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    color: #1549C0;
    padding: 4px 16px;
    border: 1px solid #1549C0;
    border-radius: 20px;
    gap: 4px;
}

.demo-main .fill-btn {
    color: white;
    background-color: #1549C0;
}

.down-tip-show {
    display: block;
}

.p2-result-book-down-tip {
    transition: all .3s;
    display: none;
    left: 0;
    top: 44px;
    padding: 17px;
    color: rgba(154, 154, 154, 1);
    width: 294px;
    background: white;
    height: 103px;
    position: absolute;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

.p2-result-book-down-tip-text {
    margin-bottom: 12px;
}

/* 权限提示 */
.p2-modal-dialog {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    overflow: auto;
    z-index: 999;
}

.p2-dialog-box {
    width: 520px;
    max-width: 100%;
    background-color: white;
    position: absolute;
    border-radius: 8px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-height: 100%;
    overflow-y: auto;
}

.p2-dialog-content {
    padding: 24px;
}

.p2-modal-login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.p2-modal-login-title {
    font-size: 16px;
    color: #384572;
    font-weight: 500;
}

.p2-modal-login-tip {
    font-size: 14px;
    color: #677390;
    font-weight: 400;
}

.p2-dialog-header {
    position: relative;
    padding: 12px 24px;
    border-bottom: 1px solid #E5E6EB;
}

.p2-dialog-header-title {
    font-size: 16px;
    font-weight: 500;
    color: #384572;
    line-height: 24px;
}

.p2-dialog-header-close {
    cursor: pointer;
    position: absolute;
    width: 16px;
    height: 16px;
    background-image: url(../static/close-line.svg);
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.p2-dialog-footer {
    border-top: 1px solid #E5E6EB;
    padding: 16px 20px;
}

.p2-dialog-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.p2-dialog-btn {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 100px;
    color: #384572;
    cursor: pointer;
    height: 32px;
    background-color: #F2F3F5;
}

.p2-dialog-btn-fill {
    background-color: #1549C0;
    color: white;
}

.p2-permission-modal {
    width: 640px;
    background-color: white;
    position: absolute;
    border-radius: 8px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.p2-permission-modal-header {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-image: url(../static/permission_bg.svg), linear-gradient(90deg, #E4EBFF 0%, #98D8FE 100%);
    background-repeat: no-repeat;
    background-position: right 24px top -8px,
        center center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;

}

.p2-pm-header-title {
    font-size: 18px;
    font-weight: 500;
    color: #384572;
}

.p2-pm-header-desc {
    font-size: 16px;
    color: #A6ACBC;
}

.p2-permission-modal-content {
    padding: 40px 30px;
    font-size: 16px;
    height: 146px;
    color: #384572;
}

.p2-permission-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #E5E6EB;
}

.p2-permission-modal-btns {
    display: flex;
    justify-content: flex-end;
}

.p2-permission-modal-btn {
    display: flex;
    cursor: pointer;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 52px;
    background-color: #1549C0;
    color: white;
}

/* 纠错 */
.p2-dialog-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p2-dialog-content input,
.p2-dialog-content textarea {
    outline: none;
    padding-left: 12px;
    border: 1px solid #DAE0EE;
}

.p2-dialog-content input:focus,
.p2-dialog-content textarea:focus {
    border-color: #1549C0;
}

.p2-feedback-form form textarea {
    resize: none;
    height: 154px;
}

.p2-feedback-form form textarea,
.p2-feedback-form form input {
    width: 400px;
}

.p2-feedback-form form input {
    height: 32px;
}

/* 去掉 number 输入框的加减按钮 */
.p2-feedback-form input[type="number"]::-webkit-outer-spin-button,
.p2-feedback-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    /* 针对 Chrome、Safari 等 WebKit 内核浏览器 */
    margin: 0;
}

.p2-feedback-select {
    position: relative;
    height: 32px;
    width: 400px;
    border: 1px solid #DAE0EE;
}

.p2-feedback-select h3 {
    cursor: pointer;
    display: flex;
    font-size: 14px;
    height: 32px;
    color: #A6ACBC;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
}

.p2-feedback-select h3 a[data-id] {
    color: #384572;
    font-weight: 400;
}

.p2-feedback-select .menus {
    position: absolute;
    left: 0;
    top: 32px;
    float: left;
    padding: 10px 0;
    width: 100%;
    line-height: 28px;
    background: #f9fdff;
    display: none;
    z-index: 99;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
}

.p2-feedback-select .menus li {
    font-size: 14px;
    padding: 0 12px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #606266;
    height: 34px;
    line-height: 34px;
    box-sizing: border-box;
    cursor: pointer
}

.p2-feedback-select .menus li:hover {
    background-color: #f5f7fa;
}

.p2-feedback-select .menus li.select-actived {
    color: #409eff;
    font-weight: 700;
}

.p2-feedback-title {
    color: #384572;
    font-size: 14px;
}

.p2-feedback-form-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p2-feedback-title.required {
    position: relative;
    padding-left: 14px;
}

.p2-feedback-title.required::before {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    content: '';
    width: 14px;
    height: 14px;
    background-image: url(../static/required.svg);
}

.p2-feedback-content .p2-upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 11px;
    width: 80px;
    height: 80px;
    border: 1px solid #DAE0EE;
    cursor: pointer;
    overflow: hidden;

}

.p2-upload-content {
    display: flex;
    gap: 12px;
}

.p2-preview-img-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
}

.p2-preview-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.p2-preview-box {
    cursor: pointer;
    border: 1px solid #DAE0EE;
    position: relative;
    width: 80px;
    height: 80px;
}

.p2-preview-img {
    /* width: 80px;
    height: 80px; */
    width: 100%;
    height: 100%;
}

/* 不想加额外元素直接放大两倍,处理部分区域cursor问题 */
.p2-feedback-form .p2-file-input {
    position: absolute;
    cursor: pointer;
    width: 200%;
    height: 200%;
    left: -50%;
    top: -50%;
    opacity: 0;
    z-index: 1;
}

.p2-upload-content {
    display: flex;
    gap: 12px;
}


.p2-feedback-content .upload-box img {
    width: 14px;
}

.p2-feedback-content .upload-box span {
    color: #384572;
}

.p2-file-tips {
    margin-top: 8px;
    color: #A6ACBC;
}

.p2-feedback-btn {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 20px;
    color: white;
    background-color: #1549C0;
    border: none;
    outline: none;
    border-radius: 30px;
}

.p2-edit-form-save:hover,
.p2-feedback-btn:hover {
    cursor: pointer;
    background-color: rgba(21, 73, 192, .8);
}

/* 图片缩放 */
#dragElement {
    position: absolute;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease-out;
    transform-origin: center;
    /* 确保以中心缩放 */
    max-width: 100%;
}

.preview-image {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .3);
    backdrop-filter: blur(60px);
    user-select: none;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.preview-close {
    position: absolute;
    right: 50px;
    top: 50px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0, 0, 0, .3);
}

.preview-close img {
    width: 20px;
    height: 20px;
}

.preview-toolbar {
    display: flex;
    position: absolute;
    bottom: 10%;
    left: 50%;
    height: 44px;
    border-radius: 22px;
    padding: 0 22px;
    transform: translateX(-50%);
    background-color: #191919;
    align-items: center;
    gap: 12px;
}

.preview-toolbar-btn {
    cursor: pointer;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-toolbar-btn img {
    width: 30px;
    height: 30px;
}


/** 确认弹窗 */
/* 弹窗遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 弹窗显示状态 */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 弹窗容器 */
.modal-container {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* 弹窗头部 */
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.modal-close {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #666;
}

/* 弹窗内容 */
.modal-body {
    padding: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 弹窗底部（按钮区） */
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-btn-cancel:hover {
    background: #eee;
}

.modal-btn-confirm {
    background: #1549C0;
    color: #fff;
}

.modal-btn-confirm:hover {
    background: rgba(21, 73, 192, .8);
}


/******      红点    ***************/
.p2-badge-tag {
    position: relative;
}

.p2-mrb-tag-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    height: 18px;
    background-color: red;
    /* width: 18px; */
    padding: 0 6px;
    border-radius: 18px;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.no-read::after {
    position: absolute;
    content: '';
    border: 1px solid white;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    right: 0;
    top: 3px;
}

/** 引文弹窗 **/
/* 弹窗遮罩层 */
.p2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* 弹窗容器 */
.p2-modal-box {
    width: 640px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 16px 24px;
}

/* 弹窗标题栏 */
.p2-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    padding-bottom: 12px;
    font-weight: 500;
    color: #384572;
}

.p2-modal-header-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 关闭按钮 */
.p2-modal-close {
    border: none;
    width: 32px;
    height: 32px;
    background-image: url(../static/close-circle.svg);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #999;
    position: relative;
    right: -4px;
    top: -3px;
}

.p2-modal-close:hover {
    color: #333;
}

/* 弹窗内容区 */
.p2-modal-content,
.p2-modal-error-content {
    padding: 16px;
    background: #F6F7F8;
    line-height: 22px;
    font-size: 14px;
    color: #677390;
    word-break: break-all;
}

.p2-modal-error-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: none;
}

.p2-error-msg1 {
    color: #333333;
    font-size: 14px;
}

.p2-error-msg2 {
    color: #9a9a9a;
    font-size: 12px;
}

.commit-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../static/toast-warning.svg);
}
.commit-icon-orange {
     width: 32px;
    height: 32px;
    background-image: url(../static/toast-orange.svg);
}
.commit-high {
    background-image: url(../static/toast-notallow.svg);
}



.p2-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 16px;
    left: -24px;
    padding-top: 16px;
    gap: 24px;
    width: calc(100% + 48px);
    border-top: 1px solid #E5E6EB;
}

/* 复制按钮 */
.p2-modal-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 32px;
    border-radius: 52px;
    background: #1549C0;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.p2-modal-cancel-btn {
    background: #F2F3F5;
    color: #384572;
}

.p2-modal-copy-btn:hover {
    background: rgba(21, 73, 192, .8);
}

.p2-modal-cancel-btn:hover {
    background: rgba(242, 243, 245, .8);
}

/**     加载动画       */
.p2-loadind-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.p2-loading-text {
    text-align: center;
    white-space: nowrap;
    color: #677390;
}

.p2-loading-spin {
    position: static;
    display: inline-block;
    opacity: 1;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    font-feature-settings: "tnum";
    color: rgb(24, 144, 255);
    text-align: center;
    vertical-align: middle;
    margin: 0px;
    padding: 0px;
    font-variant: tabular-nums;
    list-style: none;
    transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}

.p2-loading-spin-dot {
    position: relative;
    display: inline-block;
    font-size: 20px;
    width: 1em;
    height: 1em;
    animation: 1.2s linear 0s infinite normal none running antRotate;
}

.p2-loading-dot-item {
    width: 14px;
    height: 14px;
    position: absolute;
    display: block;
    width: 9px;
    height: 9px;
    background-color: #1549C0;
    transform: scale(0.75);
    transform-origin: 50% 50%;
    opacity: 0.3;
    border-radius: 100%;
    animation: 1s linear 0s infinite alternate none running antSpinMove;
}

.p2-loading-dot-item:first-child {
    top: 0px;
    left: 0px;
}

.p2-loading-dot-item:nth-child(2) {
    top: 0px;
    right: 0px;
    animation-delay: 0.4s;
}

.p2-loading-dot-item:nth-child(3) {
    right: 0px;
    bottom: 0px;
    animation-delay: 0.8s;
}

.p2-loading-dot-item:nth-child(4) {
    bottom: 0px;
    left: 0px;
    animation-delay: 1.2s;
}

@keyframes antSpinMove {
    100% {
        opacity: 1;
    }
}

@keyframes antRotate {
    0% {
        transform: rotate(0deg);
        /* 显式初始状态 */
    }

    100% {
        transform: rotate(360deg);
        /* 整圈旋转，无多余角度 */
    }
}